# HG changeset patch # User Dremov Kirill (Nokia-D-MSW/Tampere) # Date 1278420357 -10800 # Node ID 29ddb8a72f0e265d9de6c51e6818ef1ac628435c # Parent 7f25ef56562d73ba5f0c31bc42617736fcd16927 Revision: 201027 Kit: 2010127 diff -r 7f25ef56562d -r 29ddb8a72f0e egl/eglinterface/include/1.4/eglext.h --- a/egl/eglinterface/include/1.4/eglext.h Wed Jun 23 19:41:15 2010 +0300 +++ b/egl/eglinterface/include/1.4/eglext.h Tue Jul 06 15:45:57 2010 +0300 @@ -301,10 +301,10 @@ #define EGL_SLOW_NOK 3 #ifdef EGL_EGLEXT_PROTOTYPES -EGLAPI EGLint EGLAPIENTRY eglQuerySurfaceScalingCapabilityNOK(EGLDisplay dpy, EGLConfig config, EGLint surface_width, EGLint surface_height, EGLint target_width, EGLint target_height); +EGLAPI EGLBoolean EGLAPIENTRY eglQuerySurfaceScalingCapabilityNOK(EGLDisplay dpy, EGLConfig config, EGLint surface_width, EGLint surface_height, EGLint target_width, EGLint target_height, EGLint *value); EGLAPI EGLBoolean EGLAPIENTRY eglSetSurfaceScalingNOK(EGLDisplay dpy, EGLSurface surface, EGLint target_offset_x, EGLint target_offset_y, EGLint target_width, EGLint target_height); #endif -typedef EGLint (EGLAPIENTRYP PFNEGLQUERYSURFACESCALINGCAPABILITYNOKPROC)(EGLDisplay dpy, EGLConfig config, EGLint surface_width, EGLint surface_height, EGLint target_width, EGLint target_height); +typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSURFACESCALINGCAPABILITYNOKPROC)(EGLDisplay dpy, EGLConfig config, EGLint surface_width, EGLint surface_height, EGLint target_width, EGLint target_height, EGLint *value); typedef EGLBoolean (EGLAPIENTRYP PFNEGLSETSURFACESCALINGNOKPROC)(EGLDisplay dpy, EGLSurface surface, EGLint target_offset_x, EGLint target_offset_y, EGLint target_width, EGLint target_height); #endif /* EGL_NOK_SURFACE_SCALING */ diff -r 7f25ef56562d -r 29ddb8a72f0e egl/eglrefimpl/test/group/egltestref_helium.pkg --- a/egl/eglrefimpl/test/group/egltestref_helium.pkg Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,39 +0,0 @@ -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of "Eclipse Public License v1.0" -; which accompanies this distribution, and is available -; at the URL "http://www.eclipse.org/legal/epl-v10.html". -; -; Initial Contributors: -; Nokia Corporation - initial contribution. -; -; Contributors: -; -; Description: -; -;File: bitgdi.pkg; -; -;Auto-generated PKG file by Nokia PKG Wizard for CodeWarrior IDE - -;*Languages -&EN -; -;*Standard SIS file header. This section specifies the package name, -;application UID, and version/build numbers. Add the package TYPE here if needed. -#{"EGLTestRef"},(0x101FB3E8),1,0,1; -; - -;*Unique (Non-Localized) Vendor name -;This is used in combination with signing to prevent the unauthroized -;upgrade of a a package by someone other than the rightful vendor. -:"Nokia" - -;*Localized Vendor Name -;This specifies the localized vendor name(s) corresponding to language(s). -%{"Nokia Test EN"} - -;*Files To Copy... - -"..\scripts\egltest\egltest_t_reference.script"="c:\egltest\egltest_t_reference.script" - diff -r 7f25ef56562d -r 29ddb8a72f0e egl/egltest/endpointtestsuite/automated/group/eglendpointtest_helium.pkg --- a/egl/egltest/endpointtestsuite/automated/group/eglendpointtest_helium.pkg Wed Jun 23 19:41:15 2010 +0300 +++ b/egl/egltest/endpointtestsuite/automated/group/eglendpointtest_helium.pkg Tue Jul 06 15:45:57 2010 +0300 @@ -35,5 +35,5 @@ ;*Files To Copy... -"..\scripts\egltest_t_endpoint.script"-"c:\egltest\egltest_t_endpoint.script" +"\epoc32\data\z\egltest\egltest_t_endpoint.script"-"c:\egltest\egltest_t_endpoint.script" diff -r 7f25ef56562d -r 29ddb8a72f0e egl/egltest/group/egltest_helium.pkg --- a/egl/egltest/group/egltest_helium.pkg Wed Jun 23 19:41:15 2010 +0300 +++ b/egl/egltest/group/egltest_helium.pkg Tue Jul 06 15:45:57 2010 +0300 @@ -35,18 +35,18 @@ ;*Files To Copy... -"..\scripts\egltest_t_general.script"-"c:\egltest\egltest_t_general.script" -"..\scripts\egltest_t_geterroranddisplay.script"-"c:\egltest\egltest_t_geterroranddisplay.script" -"..\scripts\egltest_t_syncobject.script"-"c:\egltest\egltest_t_syncobject.script" -"..\scripts\egltest_t_syncobject_flush.script"-"c:\egltest\egltest_t_syncobject_flush.script" -"..\scripts\egltest_t_nativepixmaptype.script"-"c:\egltest\egltest_t_nativepixmaptype.script" -"..\scripts\egltest_t_createpixmapsurface.script"-"c:\egltest\egltest_t_createpixmapsurface.script" -"..\scripts\egltest_t_image.script"-"c:\egltest\egltest_t_image.script" -"..\scripts\egltest_t_sibling.script"-"c:\egltest\egltest_t_sibling.script" -"..\scripts\egltest_t_vgimagetosurfaces.script"-"c:\egltest\egltest_t_vgimagetosurfaces.script" -"..\scripts\egltest_t_image_multithread.script"-"c:\egltest\egltest_t_image_multithread.script" -"..\scripts\egltest_t_image_multiprocess.script"-"c:\egltest\egltest_t_image_multiprocess.script" -"..\scripts\egltest_t_image_negative.script"-"c:\egltest\egltest_t_image_negative.script" -"..\scripts\egltest_t_benchmark_sgimage.script"-"c:\egltest\egltest_t_benchmark_sgimage.script" -"..\scripts\egltest_t_benchmark_swapbuffers.script"-"c:\egltest\egltest_t_benchmark_swapbuffers.script" +"\epoc32\data\z\egltest\egltest_t_general.script"-"c:\egltest\egltest_t_general.script" +"\epoc32\data\z\egltest\egltest_t_geterroranddisplay.script"-"c:\egltest\egltest_t_geterroranddisplay.script" +"\epoc32\data\z\egltest\egltest_t_syncobject.script"-"c:\egltest\egltest_t_syncobject.script" +"\epoc32\data\z\egltest\egltest_t_syncobject_flush.script"-"c:\egltest\egltest_t_syncobject_flush.script" +"\epoc32\data\z\egltest\egltest_t_nativepixmaptype.script"-"c:\egltest\egltest_t_nativepixmaptype.script" +"\epoc32\data\z\egltest\egltest_t_createpixmapsurface.script"-"c:\egltest\egltest_t_createpixmapsurface.script" +"\epoc32\data\z\egltest\egltest_t_image.script"-"c:\egltest\egltest_t_image.script" +"\epoc32\data\z\egltest\egltest_t_sibling.script"-"c:\egltest\egltest_t_sibling.script" +"\epoc32\data\z\egltest\egltest_t_vgimagetosurfaces.script"-"c:\egltest\egltest_t_vgimagetosurfaces.script" +"\epoc32\data\z\egltest\egltest_t_image_multithread.script"-"c:\egltest\egltest_t_image_multithread.script" +"\epoc32\data\z\egltest\egltest_t_image_multiprocess.script"-"c:\egltest\egltest_t_image_multiprocess.script" +"\epoc32\data\z\egltest\egltest_t_image_negative.script"-"c:\egltest\egltest_t_image_negative.script" +"\epoc32\data\z\egltest\egltest_t_benchmark_sgimage.script"-"c:\egltest\egltest_t_benchmark_sgimage.script" +"\epoc32\data\z\egltest\egltest_t_benchmark_swapbuffers.script"-"c:\egltest\egltest_t_benchmark_swapbuffers.script" diff -r 7f25ef56562d -r 29ddb8a72f0e egl/egltest/inc/eglteststep.h --- a/egl/egltest/inc/eglteststep.h Wed Jun 23 19:41:15 2010 +0300 +++ b/egl/egltest/inc/eglteststep.h Tue Jul 06 15:45:57 2010 +0300 @@ -21,6 +21,8 @@ #ifndef EGLTEST_STEP_H #define EGLTEST_STEP_H +#include + #include _LIT(KEglTestStepDllName, "egltest.dll"); diff -r 7f25ef56562d -r 29ddb8a72f0e egl/egltest/src/egltest_image_multiprocess.cpp --- a/egl/egltest/src/egltest_image_multiprocess.cpp Wed Jun 23 19:41:15 2010 +0300 +++ b/egl/egltest/src/egltest_image_multiprocess.cpp Tue Jul 06 15:45:57 2010 +0300 @@ -1,4 +1,4 @@ -// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). // All rights reserved. // This component and the accompanying materials are made available // under the terms of "Eclipse Public License v1.0" @@ -518,7 +518,10 @@ ASSERT_EQUALS(rSgImageLocal.Open(sgImageId), KErrNone); } - INFO_PRINTF2(_L("Process %d, Creating an EGLImage from the shared RSgImage"),aIdx); + // Wait for both processes to reach this point + Rendezvous(aIdx); + + INFO_PRINTF2(_L("Process %d, Creating an EGLImage from the shared RSgImage"),aIdx); CleanupClosePushL(rSgImageLocal); EGLImageKHR eglImageLocal = iEglSess->eglCreateImageKhrL(iDisplay, EGL_NO_CONTEXT, EGL_NATIVE_PIXMAP_KHR, &rSgImageLocal, KEglImageAttribsPreservedTrue); ASSERT_EGL_TRUE(eglImageLocal != EGL_NO_IMAGE_KHR); @@ -695,6 +698,9 @@ ASSERT_EQUALS(rSgImageLocal.Open(sgImageId),KErrNone); } + // Wait for both processes to reach this point + Rendezvous(aIdx); + INFO_PRINTF2(_L("Process %d, Creating an EGLImage from the shared RSgImage"),aIdx); CleanupClosePushL(rSgImageLocal); EGLImageKHR eglImageLocal = iEglSess->eglCreateImageKhrL(iDisplay, EGL_NO_CONTEXT, EGL_NATIVE_PIXMAP_KHR, &rSgImageLocal, KEglImageAttribsPreservedTrue); @@ -2106,6 +2112,9 @@ ASSERT_EQUALS(rSgImageLocal.Open(sgImageId),KErrNone); } + // Wait for both processes to reach this point + Rendezvous(aIdx); + INFO_PRINTF2(_L("Process %d, Creating an EGLImage from the shared RSgImage"),aIdx); CleanupClosePushL(rSgImageLocal); EGLImageKHR eglImageLocal = iEglSess->eglCreateImageKhrL(iDisplay, EGL_NO_CONTEXT, EGL_NATIVE_PIXMAP_KHR, &rSgImageLocal, KEglImageAttribsPreservedTrue); diff -r 7f25ef56562d -r 29ddb8a72f0e fbs/fontandbitmapserver/Documentation/TestCode.rtf --- a/fbs/fontandbitmapserver/Documentation/TestCode.rtf Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,67 +0,0 @@ -{\rtf1\ansi\ansicpg1252\uc1 \deff0\deflang1033\deflangfe1033{\fonttbl{\f0\froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}{\f1\fswiss\fcharset0\fprq2{\*\panose 020b0604020202020204}Arial;} -{\f16\froman\fcharset238\fprq2 Times New Roman CE;}{\f17\froman\fcharset204\fprq2 Times New Roman Cyr;}{\f19\froman\fcharset161\fprq2 Times New Roman Greek;}{\f20\froman\fcharset162\fprq2 Times New Roman Tur;} -{\f21\froman\fcharset186\fprq2 Times New Roman Baltic;}{\f22\fswiss\fcharset238\fprq2 Arial CE;}{\f23\fswiss\fcharset204\fprq2 Arial Cyr;}{\f25\fswiss\fcharset161\fprq2 Arial Greek;}{\f26\fswiss\fcharset162\fprq2 Arial Tur;} -{\f27\fswiss\fcharset186\fprq2 Arial Baltic;}}{\colortbl;\red0\green0\blue0;\red0\green0\blue255;\red0\green255\blue255;\red0\green255\blue0;\red255\green0\blue255;\red255\green0\blue0;\red255\green255\blue0;\red255\green255\blue255;\red0\green0\blue128; -\red0\green128\blue128;\red0\green128\blue0;\red128\green0\blue128;\red128\green0\blue0;\red128\green128\blue0;\red128\green128\blue128;\red192\green192\blue192;}{\stylesheet{\widctlpar\adjustright \fs20\lang2057 \snext0 Normal;}{ -\s1\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\lang2057\kerning28 \sbasedon0 \snext0 heading 1;}{\s2\sb240\sa60\keepn\widctlpar\adjustright \b\i\f1\lang2057 \sbasedon0 \snext0 heading 2;}{\s3\sb240\sa60\keepn\widctlpar\adjustright \f1\lang2057 -\sbasedon0 \snext0 heading 3;}{\s4\keepn\widctlpar\outlinelevel3\adjustright \b\f1\fs20\lang2057 \sbasedon0 \snext0 heading 4;}{\s5\keepn\widctlpar\outlinelevel4\adjustright \b\f1\lang2057 \sbasedon0 \snext0 heading 5;}{\*\cs10 \additive -Default Paragraph Font;}}{\*\listtable{\list\listtemplateid38323078\listsimple{\listlevel\levelnfc23\leveljc0\levelfollow0\levelstartat0\levelspace0\levelindent0{\leveltext\'01-;}{\levelnumbers;}\f0\fbias0 \fi-360\li1800\jclisttab\tx1800 }{\listname -;}\listid817500656}{\list\listtemplateid38323078\listsimple{\listlevel\levelnfc23\leveljc0\levelfollow0\levelstartat0\levelspace0\levelindent0{\leveltext\'01-;}{\levelnumbers;}\f0\fbias0 \fi-360\li1800\jclisttab\tx1800 }{\listname ;}\listid1308366115} -{\list\listtemplateid38323078\listsimple{\listlevel\levelnfc23\leveljc0\levelfollow0\levelstartat0\levelspace0\levelindent0{\leveltext\'01-;}{\levelnumbers;}\f0\fbias0 \fi-360\li1800\jclisttab\tx1800 }{\listname ;}\listid1721782559}}{\*\listoverridetable -{\listoverride\listid1308366115\listoverridecount0\ls1}{\listoverride\listid817500656\listoverridecount0\ls2}{\listoverride\listid1721782559\listoverridecount0\ls3}}{\info{\title BITGDI test code}{\author Lane Roberts}{\operator Derek Clarke} -{\creatim\yr2001\mo6\dy13\hr15\min23}{\revtim\yr2002\mo10\dy10\hr17\min51}{\version6}{\edmins17}{\nofpages1}{\nofwords171}{\nofchars977}{\*\company Dell Computer Corporation}{\nofcharsws0}{\vern113}}\paperw11909\paperh16834\margl1440\margr1440 -\widowctrl\ftnbj\aenddoc\hyphcaps0\formshade\viewkind1\viewscale100 \fet0\sectd \psz9\linex0\headery706\footery706\colsx709\endnhere\sectdefaultcl {\*\pnseclvl1\pnucrm\pnstart1\pnindent720\pnhang{\pntxta .}}{\*\pnseclvl2 -\pnucltr\pnstart1\pnindent720\pnhang{\pntxta .}}{\*\pnseclvl3\pndec\pnstart1\pnindent720\pnhang{\pntxta .}}{\*\pnseclvl4\pnlcltr\pnstart1\pnindent720\pnhang{\pntxta )}}{\*\pnseclvl5\pndec\pnstart1\pnindent720\pnhang{\pntxtb (}{\pntxta )}}{\*\pnseclvl6 -\pnlcltr\pnstart1\pnindent720\pnhang{\pntxtb (}{\pntxta )}}{\*\pnseclvl7\pnlcrm\pnstart1\pnindent720\pnhang{\pntxtb (}{\pntxta )}}{\*\pnseclvl8\pnlcltr\pnstart1\pnindent720\pnhang{\pntxtb (}{\pntxta )}}{\*\pnseclvl9\pnlcrm\pnstart1\pnindent720\pnhang -{\pntxtb (}{\pntxta )}}\pard\plain \s1\sb240\sa60\keepn\widctlpar\outlinelevel0\adjustright \b\f1\fs28\lang2057\kerning28 {FBSERV test code -\par }\pard\plain \widctlpar\adjustright \fs20\lang2057 {\f1 -\par }{\b\f1\fs24 Test executable file locations -\par -\par }\trowd \trgaph108\trleft-108\trbrdrt\brdrs\brdrw10 \trbrdrl\brdrs\brdrw10 \trbrdrb\brdrs\brdrw10 \trbrdrr\brdrs\brdrw10 \trbrdrh\brdrs\brdrw10 \trbrdrv\brdrs\brdrw10 \clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr -\brdrs\brdrw10 \clshdng10000\cltxlrtb \cellx3050\clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 \clshdng10000\cltxlrtb \cellx6208\pard \widctlpar\intbl\adjustright {\b\f1 WINS location\cell -Hardware location\cell }\pard \widctlpar\intbl\adjustright {\b\f1 \row }\trowd \trgaph108\trleft-108\trbrdrt\brdrs\brdrw10 \trbrdrl\brdrs\brdrw10 \trbrdrb\brdrs\brdrw10 \trbrdrr\brdrs\brdrw10 \trbrdrh\brdrs\brdrw10 \trbrdrv\brdrs\brdrw10 \clvertalt -\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 \cltxlrtb \cellx3050\clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 \cltxlrtb \cellx6208\pard -\widctlpar\intbl\adjustright {\f1 \\epoc32\\release\\wins\\udeb\\ -\par or -\par \\epoc32\\release\\wins\\urel\\\cell c:\\ or z:\\\cell }\pard \widctlpar\intbl\adjustright {\f1 \row }\pard \widctlpar\adjustright {\f1 -\par }\pard\plain \s5\keepn\widctlpar\outlinelevel4\adjustright \b\f1\lang2057 {Automatic test executables - should be run before every release -\par }\pard\plain \widctlpar\adjustright \fs20\lang2057 {\f1 Success: Test program exits cleanly, apart from panic dialogs due to panic testing conducted by TCLEAN.EXE. -\par Failure: Test program stops with an error message.}{ -\par }{\b\f1 -\par }\trowd \trgaph108\trleft-108\trbrdrt\brdrs\brdrw10 \trbrdrl\brdrs\brdrw10 \trbrdrb\brdrs\brdrw10 \trbrdrr\brdrs\brdrw10 \trbrdrh\brdrs\brdrw10 \trbrdrv\brdrs\brdrw10 \clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr -\brdrs\brdrw10 \clshdng10000\cltxlrtb \cellx2380\clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 \clshdng10000\cltxlrtb \cellx8155\pard\plain \s4\keepn\widctlpar\intbl\outlinelevel3\adjustright -\b\f1\fs20\lang2057 {Filename\cell Purpose\cell }\pard\plain \widctlpar\intbl\adjustright \fs20\lang2057 {\b\f1 \row }\trowd \trgaph108\trleft-108\trbrdrt\brdrs\brdrw10 \trbrdrl\brdrs\brdrw10 \trbrdrb\brdrs\brdrw10 \trbrdrr\brdrs\brdrw10 \trbrdrh -\brdrs\brdrw10 \trbrdrv\brdrs\brdrw10 \clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 \cltxlrtb \cellx2380\clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr -\brdrs\brdrw10 \cltxlrtb \cellx8155\pard \widctlpar\intbl\adjustright {\f1 TALLOC.EXE\tab \cell Error handling and alloc heaven tests}{\b\f1 \cell }\pard \widctlpar\intbl\adjustright {\b\f1 \row }\pard \widctlpar\intbl\adjustright {\f1 TBITMAP.EXE\tab -\tab \cell Bitmap tests}{\b\f1 \cell }\pard \widctlpar\intbl\adjustright {\b\f1 \row }\pard \widctlpar\intbl\adjustright {\f1 TCLEAN.EXE\tab \tab \cell Panic testing}{\b\f1 \cell }\pard \widctlpar\intbl\adjustright {\b\f1 \row }\pard -\widctlpar\intbl\adjustright {\f1 TFBS.EXE\tab \tab \cell Font and server tests}{\b\f1 \cell }\pard \widctlpar\intbl\adjustright {\b\f1 \row }\trowd \trgaph108\trleft-108\trbrdrt\brdrs\brdrw10 \trbrdrl\brdrs\brdrw10 \trbrdrb\brdrs\brdrw10 \trbrdrr -\brdrs\brdrw10 \trbrdrh\brdrs\brdrw10 \trbrdrv\brdrs\brdrw10 \clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 \cltxlrtb \cellx2380\clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb -\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 \cltxlrtb \cellx8155\pard \widctlpar\intbl\adjustright {\f1 TCOMPRESSED.EXE\cell ROM and RAM bitmap compression tests\cell }\pard \widctlpar\intbl\adjustright {\b\f1 \row }\pard \widctlpar\adjustright {\b\f1 -\par }{\b\f1\fs24 Test support files}{\f1 -\par }{\b\f1 -\par }\trowd \trgaph108\trleft-108\trbrdrt\brdrs\brdrw10 \trbrdrl\brdrs\brdrw10 \trbrdrb\brdrs\brdrw10 \trbrdrr\brdrs\brdrw10 \trbrdrh\brdrs\brdrw10 \trbrdrv\brdrs\brdrw10 \clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr -\brdrs\brdrw10 \clshdng10000\cltxlrtb \cellx2205\clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 \clshdng10000\cltxlrtb \cellx5310\clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb -\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 \clshdng10000\cltxlrtb \cellx7290\clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 \clshdng10000\cltxlrtb \cellx9540\pard \widctlpar\intbl\adjustright {\b\f1 -Filename\cell Emulator location\cell Hardware location\cell Used by\cell }\pard \widctlpar\intbl\adjustright {\b\f1 \row }\trowd \trgaph108\trleft-108\trbrdrt\brdrs\brdrw10 \trbrdrl\brdrs\brdrw10 \trbrdrb\brdrs\brdrw10 \trbrdrr\brdrs\brdrw10 \trbrdrh -\brdrs\brdrw10 \trbrdrv\brdrs\brdrw10 \clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 \cltxlrtb \cellx2205\clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr -\brdrs\brdrw10 \cltxlrtb \cellx5310\clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 \cltxlrtb \cellx7290\clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr -\brdrs\brdrw10 \cltxlrtb \cellx9540\pard \widctlpar\intbl\adjustright {\f1 8BITNODITHER.MBM -\par 8BITDITHERFS.MBM -\par 12BIT.MBM -\par 16BIT.MBM -\par 24BIT.MBM\cell \\epoc32\\wins\\c\\\cell [c|z]:\\\cell TBITMAP.EXE\cell }\pard \widctlpar\intbl\adjustright {\f1 \row }\pard \widctlpar\intbl\adjustright {\f1 TFBS.MBM -\par \cell \\epoc32\\wins\\c\\\cell [c|z]:\\\cell TALLOC.EXE -\par TBITMAP.EXE -\par TFBS.EXE\cell }\pard \widctlpar\intbl\adjustright {\f1 \row }\pard \widctlpar\intbl\adjustright {\f1 TFBS.RBM\cell \\epoc32\\release\\wins\\udeb\\z\\ and \\epoc32\\release\\wins\\urel\\z\\\cell z:\\\cell TFBS.EXE\cell }\pard \widctlpar\intbl\adjustright { -\f1 \row }\trowd \trgaph108\trleft-108\trbrdrt\brdrs\brdrw10 \trbrdrl\brdrs\brdrw10 \trbrdrb\brdrs\brdrw10 \trbrdrr\brdrs\brdrw10 \trbrdrh\brdrs\brdrw10 \trbrdrv\brdrs\brdrw10 \clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 -\clbrdrr\brdrs\brdrw10 \cltxlrtb \cellx2205\clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 \cltxlrtb \cellx5310\clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr -\brdrs\brdrw10 \cltxlrtb \cellx7290\clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 \cltxlrtb \cellx9540\pard \widctlpar\intbl\adjustright {\f1 ROM.MBM -\par ROMCOMP.MBM -\par FILE.MBM -\par FILECOMP.MBM\cell \\epoc32\\release\\wins(cw)\\udeb\\z\\system\\data and \\epoc32\\release\\wins(cw)\\urel\\z\\system\\data\cell z:\\system\\data\cell TCOMPRESSED.EXE\cell }\pard \widctlpar\intbl\adjustright {\f1 \row }\pard \widctlpar\adjustright {\b\f1 - -\par }{\b\f1\fs24 Test rom building -\par }{\f1 -\par \\fbserv\\group\\fbservtest.iby is listed in bld.inf as a test export with destination \\epoc32\\rom\\include\\. This automatically includes all test programs and files in a rom when used as follows from \\epoc32\\rom\\: \ldblquote tools\\ -buildrom assabet Techview fbservtest.iby\rdblquote .}{\b\f1 -\par }} \ No newline at end of file diff -r 7f25ef56562d -r 29ddb8a72f0e fbs/fontandbitmapserver/group/TFbsServer.mmp --- a/fbs/fontandbitmapserver/group/TFbsServer.mmp Wed Jun 23 19:41:15 2010 +0300 +++ b/fbs/fontandbitmapserver/group/TFbsServer.mmp Tue Jul 06 15:45:57 2010 +0300 @@ -83,10 +83,6 @@ LIBRARY fontinjector.lib #endif -#if !defined(WINS) -LIBRARY viewsrv.lib -#endif - // We're quite heavy on the stack... 4k in WinS isn't enough... EPOCSTACKSIZE 0xf000 diff -r 7f25ef56562d -r 29ddb8a72f0e fbs/fontandbitmapserver/group/fbservtest_helium.pkg --- a/fbs/fontandbitmapserver/group/fbservtest_helium.pkg Wed Jun 23 19:41:15 2010 +0300 +++ b/fbs/fontandbitmapserver/group/fbservtest_helium.pkg Tue Jul 06 15:45:57 2010 +0300 @@ -1,5 +1,4 @@ -; -; Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). ; All rights reserved. ; This component and the accompanying materials are made available ; under the terms of "Eclipse Public License v1.0" @@ -13,10 +12,8 @@ ; ; Description: ; -;File: bitgdi.pkg; +;File: fbservtest_helium.pkg; ; -;Auto-generated PKG file by Nokia PKG Wizard for CodeWarrior IDE - ;*Languages &EN ; @@ -36,149 +33,20 @@ ;*Files To Copy... -;#include -;#include - -;// batch file that runs all automatic fbserv tests -;data=DATAZ_\fbstest\fbstest_run.bat \fbstest_run.bat -;data=DATAZ_\fbstest\fbstest.bat \fbstest.bat - -;//script files -"..\tfbs\scripts\fbstest_T_Alloc.script"-"c:\fbstest\fbstest_T_Alloc.script" -;"..\tfbs\scripts\fbstest_T_Alloc.ini"-"c:\fbstest\fbstest_T_Alloc.ini" -"..\tfbs\scripts\fbstest_T_Bitmap.script"-"c:\fbstest\fbstest_T_Bitmap.script" -"..\tfbs\scripts\fbstest_T_Fbs.script"-"c:\fbstest\fbstest_T_Fbs.script" -"..\tfbs\scripts\fbstest_T_Compressed.script"-"c:\fbstest\fbstest_T_Compressed.script" -"..\tfbs\scripts\fbstest_T_Ralc.script"-"c:\fbstest\fbstest_T_Ralc.script" -"..\tfbs\scripts\fbstest_T_Defect.script"-"c:\fbstest\fbstest_T_Defect.script" -"..\tfbs\scripts\fbstest_T_StreamIdCache.script"-"c:\fbstest\fbstest_T_StreamIdCache.script" -"..\tfbs\scripts\fbstest_T_Secure.script"-"c:\fbstest\fbstest_T_Secure.script" -"..\tfbs\scripts\fbstest_T_File.script"-"c:\fbstest\fbstest_T_File.script" -"..\tfbs\scripts\fbstest_t_getallbitmapscapability.script"-"c:\fbstest\fbstest_t_getallbitmapscapability.script" -"..\tfbs\scripts\fbstest_T_Clean.script"-"c:\fbstest\fbstest_T_Clean.script" -"..\tfbs\scripts\fbstest_t_fonttable.script"-"c:\fbstest\fbstest_t_fonttable.script" -"..\tfbs\scripts\fbstest_T_IPCTest.script"-"c:\fbstest\fbstest_T_IPCTest.script" -"..\tfbs\scripts\ipctest_config.ini"-"c:\fbstest\ipctest_config.ini" -"..\tfbs\scripts\fbstest_t_extendedbitmap.script"-"c:\fbstest\fbstest_t_extendedbitmap.script" -"..\tfbs\scripts\extendedbitmap_config.ini"-"c:\fbstest\extendedbitmap_config.ini" -"..\tfbs\scripts\fbstest_T_WDP_pagedata.script"-"c:\fbstest\fbstest_T_WDP_pagedata.script" -"..\tfbs\scripts\fbstest_T_WDP_unpagedata.script"-"c:\fbstest\fbstest_T_WDP_unpagedata.script" -"..\tfbs\scripts\fbstest_T_WDP_page_bitmap_data_only.script"-"c:\fbstest\fbstest_T_WDP_page_bitmap_data_only.script" -"..\tfbs\scripts\fbstest_T_WDP_page_bitmap_data_and_shared_heap_only.script"-"c:\fbstest\fbstest_T_WDP_page_bitmap_data_and_shared_heap_only.script" -;"..\tfbs\scripts\wdptest_config.ini"-"c:\fbstest\wdptest_config.ini" - -;// Fbserv WDP Alloc stress test -"..\tfbs\scripts\fbstest_T_WDP_Alloc_Stress.script"-"c:\fbstest\fbstest_T_WDP_Alloc_Stress.script" -;data=DATAZ_\fbstest\fbstest_T_WDP_Alloc_Stress.ini \fbstest\fbstest_T_WDP_Alloc_Stress.ini - -;REM near-duplicate fonts for test CTFnt::TestDuplicateFontFileEntries -;data=DATAZ_\PlatTest\Graphics\TestData\uniquified_fonts\xx_dejavusanscondensed.ttf \PlatTest\Graphics\TestData\uniquified_fonts\xx_dejavusanscondensed.ttf - +"\epoc32\data\z\fbstest\fbstest_T_Alloc.script"-"c:\fbstest\fbstest_T_Alloc.script" +"\epoc32\data\z\fbstest\fbstest_T_Bitmap.script"-"c:\fbstest\fbstest_T_Bitmap.script" +"\epoc32\data\z\fbstest\fbstest_T_Fbs.script"-"c:\fbstest\fbstest_T_Fbs.script" +"\epoc32\data\z\fbstest\fbstest_T_Compressed.script"-"c:\fbstest\fbstest_T_Compressed.script" +"\epoc32\data\z\fbstest\fbstest_T_Ralc.script"-"c:\fbstest\fbstest_T_Ralc.script" +"\epoc32\data\z\fbstest\fbstest_T_Defect.script"-"c:\fbstest\fbstest_T_Defect.script" +"\epoc32\data\z\fbstest\fbstest_T_StreamIdCache.script"-"c:\fbstest\fbstest_T_StreamIdCache.script" +"\epoc32\data\z\fbstest\fbstest_T_Secure.script"-"c:\fbstest\fbstest_T_Secure.script" +"\epoc32\data\z\fbstest\fbstest_T_File.script"-"c:\fbstest\fbstest_T_File.script" +"\epoc32\data\z\fbstest\fbstest_t_getallbitmapscapability.script"-"c:\fbstest\fbstest_t_getallbitmapscapability.script" +"\epoc32\data\z\fbstest\fbstest_T_Clean.script"-"c:\fbstest\fbstest_T_Clean.script" +"\epoc32\data\z\fbstest\fbstest_t_fonttable.script"-"c:\fbstest\fbstest_t_fonttable.script" +"\epoc32\data\z\fbstest\fbstest_T_IPCTest.script"-"c:\fbstest\fbstest_T_IPCTest.script" +"\epoc32\data\z\fbstest\ipctest_config.ini"-"c:\fbstest\ipctest_config.ini" +"\epoc32\data\z\fbstest\fbstest_t_extendedbitmap.script"-"c:\fbstest\fbstest_t_extendedbitmap.script" +"\epoc32\data\z\fbstest\extendedbitmap_config.ini"-"c:\fbstest\extendedbitmap_config.ini" -;// TFbsServer.exe needs to be copied into \sys\bin\ and set as data so it will be copied to the c: drive and we can change the capabilities of the .exe -;data=ABI_DIR\DEBUG_DIR\TFbsServer.exe \sys\bin\TFbsServer.exe -; -;data=ZSYSTEM\DATA\24bitSkin.mbm \System\Data\24bitSkin.mbm -;data=ZSYSTEM\DATA\16bitSkin.mbm \System\Data\16bitSkin.mbm -;data=ZSYSTEM\DATA\24bit6col.mbm \System\Data\24bit6col.mbm -;data=ZSYSTEM\DATA\24bit2col.mbm \System\Data\24bit2col.mbm -;data=ZSYSTEM\DATA\24bit3col.mbm \System\Data\24bit3col.mbm -;data=ZSYSTEM\DATA\16bit6col.mbm \System\Data\16bit6col.mbm -;data=ZSYSTEM\DATA\16bit2col.mbm \System\Data\16bit2col.mbm -;data=ZSYSTEM\DATA\16bit3col.mbm \System\Data\16bit3col.mbm -;data=ZSYSTEM\DATA\16bit20col.mbm \System\Data\16bit20col.mbm -;data=ZSYSTEM\DATA\32bitSkin.mbm \System\Data\32bitSkin.mbm -;data=ZSYSTEM\DATA\32bit2col.mbm \System\Data\32bit2col.mbm -;data=ZSYSTEM\DATA\32bit3col.mbm \System\Data\32bit3col.mbm -;data=ZSYSTEM\DATA\32bit6col.mbm \System\Data\32bit6col.mbm -;data=ZSYSTEM\DATA\32bit20col.mbm \System\Data\32bit20col.mbm -;data=ZSYSTEM\DATA\24bit20col.mbm \System\Data\24bit20col.mbm -;data=ZSYSTEM\DATA\tfbs.mbm \System\Data\tfbs.mbm -;data=ZSYSTEM\DATA\testcompression.mbm \System\Data\testcompression.mbm -;data=ZSYSTEM\DATA\tfbs.rbm \System\Data\tfbs.rbm -;data=ZSYSTEM\DATA\8bitNoDither.mbm \System\Data\8bitNoDither.mbm -;data=ZSYSTEM\DATA\8bitDitherFs.mbm \System\Data\8bitDitherFs.mbm -;data=ZSYSTEM\DATA\12bit.mbm \System\Data\12bit.mbm -;data=ZSYSTEM\DATA\16bit.mbm \System\Data\16bit.mbm -;data=ZSYSTEM\DATA\24bit.mbm \System\Data\24bit.mbm -;data=ZSYSTEM\DATA\32bit.mbm \System\Data\32bit.mbm -;data=ZSYSTEM\DATA\file.mbm \System\Data\file.mbm -;data=ZSYSTEM\DATA\filecomp.mbm \System\Data\filecomp.mbm -;data=ZSYSTEM\DATA\rom.mbm \System\Data\rom.mbm -;data=ZSYSTEM\DATA\romcomp.mbm \System\Data\romcomp.mbm -;data=ZSYSTEM\DATA\tfbs_file2.mbm \siuhsiughighifhgidfhguifhguidhfguifhghlarglaghghghghghkrjghszkjg\system\data\tfbs_file2.mbm -;data=ZSYSTEM\DATA\tfbs_file2.mbm \system\data\tfbs_file2.mbm -;data=ZSYSTEM\DATA\tfbs_file1.mbm \siuhsiughighifhgidfhguifhguidhfguifhghlarglaghghghghghkrjghszkjg\system\data\tfbs_file1.mbm -;data=ZSYSTEM\DATA\tfbs_file1.mbm \system\data\tfbs_file1.mbm -;data=ZSYSTEM\DATA\tfbs_file3.mbm \System\Data\tfbs_file3.mbm -;data=ZSYSTEM\DATA\tfbs_file4.mbm \System\Data\tfbs_file4.mbm -;data=ZSYSTEM\DATA\tfbs_file4a.mbm \System\Data\tfbs_file4a.mbm -;data=ZSYSTEM\DATA\tfbs_file4b.mbm \System\Data\tfbs_file4b.mbm -;data=ZSYSTEM\DATA\tfbs_file4c.mbm \System\Data\tfbs_file4c.mbm -;data=ZSYSTEM\DATA\tfbs_file4d.mbm \System\Data\tfbs_file4d.mbm -;data=ZSYSTEM\DATA\tfbs_file4e.mbm \System\Data\tfbs_file4e.mbm -;data=ZSYSTEM\DATA\tfbs_file4f.mbm \System\Data\tfbs_file4f.mbm -;data=ZSYSTEM\DATA\tfbs_file4g.mbm \System\Data\tfbs_file4g.mbm -;data=ZSYSTEM\DATA\tfbs_file4h.mbm \System\Data\tfbs_file4h.mbm -;data=ZSYSTEM\DATA\tfbs_file5.mbm \System\Data\tfbs_file5.mbm -;data=ZSYSTEM\DATA\compr12.mbm \System\Data\compr12.mbm -;data=ZSYSTEM\DATA\compr16.mbm \System\Data\compr16.mbm -;data=ZSYSTEM\DATA\compr24.mbm \System\Data\compr24.mbm -;data=ZSYSTEM\DATA\racompr12.mbm \System\Data\racompr12.mbm -;data=ZSYSTEM\DATA\racompr16.mbm \System\Data\racompr16.mbm -;data=ZSYSTEM\DATA\racompr24.mbm \System\Data\racompr24.mbm -; -;data=ZSYSTEM\DATA\RC_ROM8.mbm System\data\RC_ROM8.mbm -;data=ZSYSTEM\DATA\RC_ROM12.mbm System\data\RC_ROM12.mbm -;data=ZSYSTEM\DATA\RC_ROM16.mbm System\data\RC_ROM16.mbm -;data=ZSYSTEM\DATA\RC_ROM24.mbm System\data\RC_ROM24.mbm -;data=ZSYSTEM\DATA\RC_RAM8.mbm System\data\RC_RAM8.mbm -;data=ZSYSTEM\DATA\RC_RAM12.mbm System\data\RC_RAM12.mbm -;data=ZSYSTEM\DATA\RC_RAM16.mbm System\data\RC_RAM16.mbm -;data=ZSYSTEM\DATA\RC_RAM24.mbm System\data\RC_RAM24.mbm -; -;data=ZSYSTEM\DATA\MONO_M1.mbm System\data\MONO_M1.mbm -;data=ZSYSTEM\DATA\MONO_M2.mbm System\data\MONO_M2.mbm -;data=ZSYSTEM\DATA\MONO_M4.mbm System\data\MONO_M4.mbm -;data=ZSYSTEM\DATA\MONO_M8.mbm System\data\MONO_M8.mbm -;data=ZSYSTEM\DATA\MONO_C4.mbm System\data\MONO_C4.mbm -;data=ZSYSTEM\DATA\MONO_C8.mbm System\data\MONO_C8.mbm -;data=ZSYSTEM\DATA\MONO_C12.mbm System\data\MONO_C12.mbm -;data=ZSYSTEM\DATA\MONO_C16.mbm System\data\MONO_C16.mbm -;data=ZSYSTEM\DATA\MONO_C24.mbm System\data\MONO_C24.mbm -;data=ZSYSTEM\DATA\MONO_C32.mbm System\data\MONO_C32.mbm -.mbm -;data=ZSYSTEM\DATA\MONO_C32.mbm System\data\MONO_C32.mbm -; -;data=ZSYSTEM\DATA\16RAM2.mbm System\data\16RAM2.mbm -;data=ZSYSTEM\DATA\16ROMC2.mbm System\data\16ROMC2.mbm -;data=ZSYSTEM\DATA\RscHeader3.bin System\data\RscHeader3.bin -;data=ZSYSTEM\DATA\DummyRscFile3.rsc System\data\DummyRscFile3.rsc -;data=ZSYSTEM\DATA\tfbs_rsc.rsc System\data\tfbs_rsc.rsc -;data=ZSYSTEM\DATA\blackandwhite.mbm System\data\blackandwhite.mbm -; -;data=ZSYSTEM\DATA\rf1.mbm System\data\rf1.mbm -;data=ZSYSTEM\DATA\rf2.mbm System\data\rf2.mbm -;data=ZSYSTEM\DATA\rf3.mbm System\data\rf3.mbm -;data=ZSYSTEM\DATA\rf123.mbm System\data\rf123.mbm -; -;data=ZSYSTEM\DATA\00_grbmap.mbm \System\Data\00_grbmap.mbm -;data=ZSYSTEM\DATA\01_totalstramsize!.mbm \System\Data\01_totalstramsize!.mbm -;data=ZSYSTEM\DATA\02_headersize.mbm \System\Data\02_headersize.mbm -;data=ZSYSTEM\DATA\03_width!.mbm \System\Data\03_width!.mbm -;data=ZSYSTEM\DATA\04_height!.mbm \System\Data\04_height!.mbm -;data=ZSYSTEM\DATA\05_bitsperpixel.mbm \System\Data\05_bitsperpixel.mbm -;data=ZSYSTEM\DATA\bad_bmpsize.mbm \System\Data\bad_bmpsize.mbm -;data=ZSYSTEM\DATA\bad_colormode.mbm \System\Data\bad_colormode.mbm -;data=ZSYSTEM\DATA\bad_compression.mbm \System\Data\bad_compression.mbm -;data=ZSYSTEM\DATA\bad_paletteentries.mbm \System\Data\bad_paletteentries.mbm -;data=EPOCROOT##epoc32\data\z\PRIVATE\10273364\RC_RAM16.mbm \private\10273364\RC_RAM16.mbm -;data=EPOCROOT##epoc32\data\z\PRIVATE\10273364\RC_ROM12.mbm \private\10273364\RC_ROM12.mbm -;data=EPOCROOT##epoc32\data\z\PRIVATE\10273364\TFBS_RSC.rsc \private\10273364\TFBS_RSC.rsc -;data=EPOCROOT##epoc32\data\z\PRIVATE\10273364\DummyRscFile3.rsc \private\10273364\DummyRscFile3.rsc -;data=EPOCROOT##epoc32\data\z\PRIVATE\10273364\RscHeader3.bin \private\10273364\RscHeader3.bin -;data=EPOCROOT##epoc32\data\z\PRIVATE\00999999\RC_RAM16.mbm \private\00999999\RC_RAM16.mbm -;data=EPOCROOT##epoc32\data\z\PRIVATE\00999999\RC_ROM12.mbm \private\00999999\RC_ROM12.mbm -; -; -;#endif diff -r 7f25ef56562d -r 29ddb8a72f0e fbs/fontandbitmapserver/group/fbservtest_wdp_helium.pkg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/fbs/fontandbitmapserver/group/fbservtest_wdp_helium.pkg Tue Jul 06 15:45:57 2010 +0300 @@ -0,0 +1,41 @@ +; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +; All rights reserved. +; This component and the accompanying materials are made available +; under the terms of "Eclipse Public License v1.0" +; which accompanies this distribution, and is available +; at the URL "http://www.eclipse.org/legal/epl-v10.html". +; +; Initial Contributors: +; Nokia Corporation - initial contribution. +; +; Contributors: +; +; Description: +; +;File: fbservtest_wdp_helium.pkg; +; +;*Languages +&EN +; +;*Standard SIS file header. This section specifies the package name, +;application UID, and version/build numbers. Add the package TYPE here if needed. +#{"FbservTest WDP"},(0x101FB3E8),1,0,1; +; + +;*Unique (Non-Localized) Vendor name +;This is used in combination with signing to prevent the unauthroized +;upgrade of a a package by someone other than the rightful vendor. +:"Nokia" + +;*Localized Vendor Name +;This specifies the localized vendor name(s) corresponding to language(s). +%{"Nokia Test EN"} + +;*Files To Copy... + +"\epoc32\data\z\fbstest\fbstest_T_WDP_pagedata.script"-"c:\fbstest\fbstest_T_WDP_pagedata.script" +"\epoc32\data\z\fbstest\fbstest_T_WDP_unpagedata.script"-"c:\fbstest\fbstest_T_WDP_unpagedata.script" +"\epoc32\data\z\fbstest\fbstest_T_WDP_page_bitmap_data_only.script"-"c:\fbstest\fbstest_T_WDP_page_bitmap_data_only.script" +"\epoc32\data\z\fbstest\fbstest_T_WDP_page_bitmap_data_and_shared_heap_only.script"-"c:\fbstest\fbstest_T_WDP_page_bitmap_data_and_shared_heap_only.script" +"\epoc32\data\z\fbstest\fbstest_T_WDP_Alloc_Stress.script"-"c:\fbstest\fbstest_T_WDP_Alloc_Stress.script" +"\epoc32\data\z\fbstest\wdptest_config.ini"-"c:\fbstest\wdptest_config.ini" diff -r 7f25ef56562d -r 29ddb8a72f0e fbs/fontandbitmapserver/group/fbsrasterizertests_helium.pkg --- a/fbs/fontandbitmapserver/group/fbsrasterizertests_helium.pkg Wed Jun 23 19:41:15 2010 +0300 +++ b/fbs/fontandbitmapserver/group/fbsrasterizertests_helium.pkg Tue Jul 06 15:45:57 2010 +0300 @@ -35,5 +35,5 @@ ;*Files To Copy... -"..\trasterizer\test\scripts\rasterizer_t_general.script"-"c:\rasterizertest\rasterizer_t_general.script" +"\epoc32\data\z\rasterizertest\rasterizer_t_general.script"-"c:\rasterizertest\rasterizer_t_general.script" diff -r 7f25ef56562d -r 29ddb8a72f0e fbs/fontandbitmapserver/group/trasterizerserver.mmp --- a/fbs/fontandbitmapserver/group/trasterizerserver.mmp Wed Jun 23 19:41:15 2010 +0300 +++ b/fbs/fontandbitmapserver/group/trasterizerserver.mmp Tue Jul 06 15:45:57 2010 +0300 @@ -1,4 +1,4 @@ -// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). // All rights reserved. // This component and the accompanying materials are made available // under the terms of "Eclipse Public License v1.0" @@ -30,8 +30,7 @@ USERINCLUDE ../trasterizer/test USERINCLUDE ../trasterizer/src/ -OS_LAYER_SYSTEMINCLUDE_SYMBIAN -MW_LAYER_SYSTEMINCLUDE_SYMBIAN +OS_LAYER_SYSTEMINCLUDE OS_LAYER_ESTLIB_SYSTEMINCLUDE SOURCEPATH ../trasterizer/test diff -r 7f25ef56562d -r 29ddb8a72f0e fbs/fontandbitmapserver/sfbs/FBSBMP.CPP --- a/fbs/fontandbitmapserver/sfbs/FBSBMP.CPP Wed Jun 23 19:41:15 2010 +0300 +++ b/fbs/fontandbitmapserver/sfbs/FBSBMP.CPP Tue Jul 06 15:45:57 2010 +0300 @@ -23,7 +23,7 @@ #include "fbshelper.h" #include "fbsrasterizer.h" #include "BitwiseBitmap.inl" -#include "fbsmessage.h" +#include "FbsMessage.H" #include "bitmapconst.h" const TInt KMaxPixelSize = KMaxTInt / 4; // Maximum pixel size to avoid some overflow problems diff -r 7f25ef56562d -r 29ddb8a72f0e fbs/fontandbitmapserver/sfbs/FBSCLI.CPP --- a/fbs/fontandbitmapserver/sfbs/FBSCLI.CPP Wed Jun 23 19:41:15 2010 +0300 +++ b/fbs/fontandbitmapserver/sfbs/FBSCLI.CPP Tue Jul 06 15:45:57 2010 +0300 @@ -16,7 +16,7 @@ #include #include #include -#include "fbsmessage.h" +#include "FbsMessage.H" #include "SERVER.H" #include "BackGroundCompression.h" #include diff -r 7f25ef56562d -r 29ddb8a72f0e fbs/fontandbitmapserver/sfbs/FBSFONT.CPP --- a/fbs/fontandbitmapserver/sfbs/FBSFONT.CPP Wed Jun 23 19:41:15 2010 +0300 +++ b/fbs/fontandbitmapserver/sfbs/FBSFONT.CPP Tue Jul 06 15:45:57 2010 +0300 @@ -19,7 +19,7 @@ #include #include "UTILS.H" #include -#include "fbsmessage.h" +#include "FbsMessage.H" #include #include diff -r 7f25ef56562d -r 29ddb8a72f0e fbs/fontandbitmapserver/sfbs/FBSTOP.CPP --- a/fbs/fontandbitmapserver/sfbs/FBSTOP.CPP Wed Jun 23 19:41:15 2010 +0300 +++ b/fbs/fontandbitmapserver/sfbs/FBSTOP.CPP Tue Jul 06 15:45:57 2010 +0300 @@ -18,7 +18,7 @@ #include #include #include -#include "fbsmessage.h" +#include "FbsMessage.H" #include #include "SERVER.H" #include "BackGroundCompression.h" diff -r 7f25ef56562d -r 29ddb8a72f0e fbs/fontandbitmapserver/sfbs/SERVER.H --- a/fbs/fontandbitmapserver/sfbs/SERVER.H Wed Jun 23 19:41:15 2010 +0300 +++ b/fbs/fontandbitmapserver/sfbs/SERVER.H Tue Jul 06 15:45:57 2010 +0300 @@ -21,7 +21,7 @@ #include #include "UTILS.H" #include "FBSMBMC.H" -#include "fbsmessage.h" +#include "FbsMessage.H" class CFbTop; class CFbsBackgroundCompression; diff -r 7f25ef56562d -r 29ddb8a72f0e fbs/fontandbitmapserver/sfbs/SESSION.CPP --- a/fbs/fontandbitmapserver/sfbs/SESSION.CPP Wed Jun 23 19:41:15 2010 +0300 +++ b/fbs/fontandbitmapserver/sfbs/SESSION.CPP Tue Jul 06 15:45:57 2010 +0300 @@ -19,7 +19,7 @@ #include "FBSVER.H" #include "FbsRalc.h" #include "fbshelper.h" -#include "fbsmessage.h" +#include "FbsMessage.H" GLDEF_C void Panic(TFbsPanic aPanic) { diff -r 7f25ef56562d -r 29ddb8a72f0e fbs/fontandbitmapserver/sfbs/TFSTORE.CPP --- a/fbs/fontandbitmapserver/sfbs/TFSTORE.CPP Wed Jun 23 19:41:15 2010 +0300 +++ b/fbs/fontandbitmapserver/sfbs/TFSTORE.CPP Tue Jul 06 15:45:57 2010 +0300 @@ -17,7 +17,7 @@ #include #include "UTILS.H" #include -#include "fbsmessage.h" +#include "FbsMessage.H" GLREF_C void Panic(TFbsPanic aPanic); diff -r 7f25ef56562d -r 29ddb8a72f0e fbs/fontandbitmapserver/sfbs/fbshelper.cpp --- a/fbs/fontandbitmapserver/sfbs/fbshelper.cpp Wed Jun 23 19:41:15 2010 +0300 +++ b/fbs/fontandbitmapserver/sfbs/fbshelper.cpp Tue Jul 06 15:45:57 2010 +0300 @@ -20,7 +20,7 @@ #include "UTILS.H" #include "fbshelper.h" #include "fbsrasterizer.h" -#include "fbsmessage.h" +#include "FbsMessage.H" GLREF_C void Panic(TFbsPanic aPanic); diff -r 7f25ef56562d -r 29ddb8a72f0e graphics_info/graphicsdocs/EA-diagrams.EAP Binary file graphics_info/graphicsdocs/EA-diagrams.EAP has changed diff -r 7f25ef56562d -r 29ddb8a72f0e graphics_info/graphicsdocs/graphics_documentation.mrp --- a/graphics_info/graphicsdocs/graphics_documentation.mrp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,10 +0,0 @@ -component graphics_documentation - -source \sf\os\graphics\graphics_info\graphicsdocs\ - -notes_source \component_defs\release.src - - -ipr T -ipr E "\sf\os\graphics\graphics_info\graphicsdocs\Test Specifications" - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/bitgdi/group/T_GraphicsBitgdiAPI.mmp --- a/graphicsapitest/graphicssvs/bitgdi/group/T_GraphicsBitgdiAPI.mmp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,101 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// - -TARGETTYPE EXE -TARGET T_GraphicsBitgdiApi.exe -UID 0x1000007C 0x20003722 -VENDORID 0x70000001 - -CAPABILITY SwEvent WriteDeviceData Powermgmt ProtServ - -SOURCEPATH ../src - -SOURCE ../../common/src/UtilityClearPanicDlg.cpp -SOURCE ../../common/src/T_GraphicsUtil.cpp - -SOURCE T_GraphicsBitgdiAPIServer.cpp -SOURCE T_DataFbsBitGc.cpp -SOURCE T_DataFbsDevice.cpp -SOURCE T_DataFbsScreenDevice.cpp -SOURCE T_DataPolygonFiller.cpp -SOURCE T_DataFbsBitmapDevice.cpp -SOURCE T_DataFbsBitGcFont.cpp - -//from fntstore -SOURCE ../../fntstore/src/T_DataAlgStyle.cpp - -USERINCLUDE ../inc -USERINCLUDE ../../common/inc -USERINCLUDE ../../gdi/inc -USERINCLUDE ../../bitgdi/inc -USERINCLUDE ../../fntstore/inc -USERINCLUDE ../../fbserv/inc -USERINCLUDE ../../wserv/inc - -MW_LAYER_SYSTEMINCLUDE_SYMBIAN -OS_LAYER_SYSTEMINCLUDE_SYMBIAN - -LIBRARY euser.lib -LIBRARY efsrv.lib -LIBRARY esock.lib -LIBRARY testexecuteutils.lib -LIBRARY testexecutelogclient.lib -LIBRARY charconv.lib -LIBRARY fbscli.lib -LIBRARY ws32.lib -LIBRARY gdi.lib -LIBRARY bafl.lib -LIBRARY c32.lib -LIBRARY c32root.lib -LIBRARY hal.lib -LIBRARY w32stdgraphic.lib - -LIBRARY fntstr.lib -LIBRARY estor.lib -LIBRARY bitgdi.lib -LIBRARY eikcore.lib -LIBRARY cone.lib -LIBRARY apgrfx.lib -LIBRARY iniparser.lib -LIBRARY imageconversion.lib - -SOURCEPATH ..\..\gdi\src -SOURCE T_DataGraphicsContext.cpp T_DataGraphicsDevice.cpp T_DataGraphicsDeviceMap.cpp -SOURCEPATH ..\..\fbserv\src -SOURCE T_DataFbsSession.cpp -SOURCEPATH ..\..\common\src -SOURCE DataWrapperActive.cpp DataWrapperBase.cpp TestServerBase.cpp -SOURCEPATH ..\..\gdi\src -SOURCE T_DataBitmapContext.cpp T_DataBitmapDevice.cpp -SOURCEPATH ..\..\gdi\src -SOURCE T_DataPalette.cpp T_DataFont.cpp -SOURCEPATH ..\..\fbserv\src -SOURCE T_DataFbsFont.cpp T_DataFbsBitmap.cpp - -SOURCEPATH ..\..\wserv\src -SOURCE T_DataWsBitmap.cpp T_DataWsClientClass.cpp T_DataWsSession.cpp -SOURCEPATH ..\..\fbserv\src -SOURCE T_DataFbsTypefaceStore.cpp -SOURCEPATH ..\..\gdi\src -SOURCE T_DataTypefaceStore.cpp -SOURCEPATH ..\..\wserv\src -SOURCE T_DataWsScreenDevice.cpp -SOURCEPATH ..\src -SOURCE T_DataFbsBitGcBitmap.cpp -SOURCEPATH ..\..\fntstore\src -SOURCE T_DataLinkedTypefaceSpecification.cpp - -SMPSAFE diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/bitgdi/group/bld.inf --- a/graphicsapitest/graphicssvs/bitgdi/group/bld.inf Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,90 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// - -PRJ_TESTEXPORTS -t_bitgdiapi.iby /epoc32/rom/include/t_bitgdiapi.iby -t_bitgdiapi_binaries.iby /epoc32/rom/include/t_bitgdiapi_binaries.iby -t_bitgdiapi_testdata.iby /epoc32/rom/include/t_bitgdiapi_testdata.iby - -// to pkg -../pkg/t_bitgdiapi.pkg /epoc32/pkg/t_bitgdiapi.pkg -../pkg/tbitgdiapi.bat /epoc32/pkg/tbitgdiapi.bat - -../scripts/setup-T-GRAPHICS-BITGDI-PublicApi.script z:/graphics/setup-t-graphics-bitgdi-publicapi.script - -../scripts/GRAPHICS-BITGDI-PublicApi.script /epoc32/pkg/graphics-bitgdi-publicapi.script -../scripts/GRAPHICS-BITGDI-PublicApi.script z:/graphics/graphics-bitgdi-publicapi.script - -../scripts/GRAPHICS-BITGDI-FbsDevice-PublicApi.script /epoc32/pkg/graphics-bitgdi-fbsdevice-publicapi.script -../testdata/GRAPHICS-BITGDI-FbsDevice-PublicApi.ini /epoc32/pkg/graphics-bitgdi-fbsdevice-publicapi.ini -../scripts/GRAPHICS-BITGDI-FbsDevice-PublicApi.script z:/graphics/graphics-bitgdi-fbsdevice-publicapi.script -../testdata/GRAPHICS-BITGDI-FbsDevice-PublicApi.ini z:/graphics/graphics-bitgdi-fbsdevice-publicapi.ini - -../scripts/GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.script /epoc32/pkg/graphics-bitgdi-fbsscreendevice-publicapi.script -../testdata/GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini /epoc32/pkg/graphics-bitgdi-fbsscreendevice-publicapi.ini -../scripts/GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.script z:/graphics/graphics-bitgdi-fbsscreendevice-publicapi.script -../testdata/GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini z:/graphics/graphics-bitgdi-fbsscreendevice-publicapi.ini - -../scripts/GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.script /epoc32/pkg/graphics-bitgdi-fbsbitmapdevice-publicapi.script -../testdata/GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini /epoc32/pkg/graphics-bitgdi-fbsbitmapdevice-publicapi.ini -../scripts/GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.script z:/graphics/graphics-bitgdi-fbsbitmapdevice-publicapi.script -../testdata/GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini z:/graphics/graphics-bitgdi-fbsbitmapdevice-publicapi.ini - -../scripts/GRAPHICS-BITGDI-PolygonFiller-PublicApi.script /epoc32/pkg/GRAPHICS-BITGDI-PolygonFiller-PublicApi.script -../testdata/GRAPHICS-BITGDI-PolygonFiller-PublicApi.ini /epoc32/pkg/GRAPHICS-BITGDI-PolygonFiller-PublicApi.ini -../scripts/GRAPHICS-BITGDI-PolygonFiller-PublicApi.script z:/graphics/GRAPHICS-BITGDI-PolygonFiller-PublicApi.script -../testdata/GRAPHICS-BITGDI-PolygonFiller-PublicApi.ini z:/graphics/GRAPHICS-BITGDI-PolygonFiller-PublicApi.ini - -// T_DataFbsBitGc -../scripts/GRAPHICS-BITGDI-FbsBitGc-PublicApi.script /epoc32/pkg/graphics-bitgdi-fbsbitgc-publicapi.script -../testdata/GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini /epoc32/pkg/graphics-bitgdi-fbsbitgc-publicapi.ini -../testdata/GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini /epoc32/pkg/graphics-bitgdi-fbsbitgc-publicapi-2.ini -../testdata/GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini /epoc32/pkg/graphics-bitgdi-fbsbitgc-publicapi-3.ini -../scripts/GRAPHICS-BITGDI-FbsBitGc-PublicApi.script z:/graphics/graphics-bitgdi-fbsbitgc-publicapi.script -../testdata/GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini z:/graphics/graphics-bitgdi-fbsbitgc-publicapi.ini -../testdata/GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini z:/graphics/graphics-bitgdi-fbsbitgc-publicapi-2.ini -../testdata/GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini z:/graphics/graphics-bitgdi-fbsbitgc-publicapi-3.ini - -// T_DataFbsBitGc -../scripts/GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual.script /epoc32/pkg/graphics-bitgdi-fbsbitgc-publicapi-manual.script -../testdata/GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual.ini /epoc32/pkg/graphics-bitgdi-fbsbitgc-publicapi-manual.ini -../scripts/GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual.script z:/graphics/graphics-bitgdi-fbsbitgc-publicapi-manual.script -../testdata/GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual.ini z:/graphics/graphics-bitgdi-fbsbitgc-publicapi-manual.ini - -//T_DataFbsBitGcBitmap -../scripts/GRAPHICS-BITGDI-FbsBitGcBitmap-PublicApi.script /epoc32/pkg/GRAPHICS-BITGDI-FbsBitGcBitmap-PublicApi.script -../testdata/GRAPHICS-BITGDI-FbsBitGcBitmap-PublicApi.ini /epoc32/pkg/GRAPHICS-BITGDI-FbsBitGcBitmap-PublicApi.ini -../scripts/GRAPHICS-BITGDI-FbsBitGcBitmap-PublicApi.script z:/graphics/GRAPHICS-BITGDI-FbsBitGcBitmap-PublicApi.script -../testdata/GRAPHICS-BITGDI-FbsBitGcBitmap-PublicApi.ini z:/graphics/GRAPHICS-BITGDI-FbsBitGcBitmap-PublicApi.ini - -//T_DataFbsBitGcFont -../scripts/GRAPHICS-BITGDI-FbsBitGcFont-PublicApi.script /epoc32/pkg/GRAPHICS-BITGDI-FbsBitGcFont-PublicApi.script -../testdata/GRAPHICS-BITGDI-FbsBitGcFont-PublicApi.ini /epoc32/pkg/GRAPHICS-BITGDI-FbsBitGcFont-PublicApi.ini -../scripts/GRAPHICS-BITGDI-FbsBitGcFont-PublicApi.script z:/graphics/GRAPHICS-BITGDI-FbsBitGcFont-PublicApi.script -../testdata/GRAPHICS-BITGDI-FbsBitGcFont-PublicApi.ini z:/graphics/GRAPHICS-BITGDI-FbsBitGcFont-PublicApi.ini - - -// Generic test date -../testdata/test_rwssprite_bitmap.mbm /epoc32/pkg/bitgdi/test_rwssprite_bitmap.mbm -../testdata/test_rwssprite_bitmap.mbm z:/graphics/bitgdi/test_rwssprite_bitmap.mbm -../testdata/testfontws.gdr /epoc32/pkg/bitgdi/testfontws.gdr -../testdata/testfontws.gdr z:/graphics/bitgdi/testfontws.gdr - -PRJ_TESTMMPFILES -T_GraphicsBitgdiAPI.mmp -t_prompt.mmp - - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/bitgdi/group/t_bitgdiapi.iby --- a/graphicsapitest/graphicssvs/bitgdi/group/t_bitgdiapi.iby Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// - -#if (!defined __T_BITGDI_API_IBY__) -#define __T_BITGDI_API_IBY__ - -#include -#include - -#endif diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/bitgdi/group/t_bitgdiapi_binaries.iby --- a/graphicsapitest/graphicssvs/bitgdi/group/t_bitgdiapi_binaries.iby Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// - -#if (!defined __T_BITGDI_API_BINARIES_IBY__) -#define __T_BITGDI_API_BINARIES_IBY__ - -#include - -#if (!defined EKA2) -file=ABI_DIR\BUILD_DIR\T_GraphicsBitgdiAPI.exe system\libs\T_GraphicsBitgdiAPI.exe -file=ABI_DIR\BUILD_DIR\t_prompt.exe system\libs\t_prompt.exe - -#else -file=ABI_DIR\BUILD_DIR\T_GraphicsBitgdiAPI.exe system\bin\T_GraphicsBitgdiAPI.exe -file=ABI_DIR\BUILD_DIR\t_prompt.exe system\bin\t_prompt.exe - -#endif - -#endif diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/bitgdi/group/t_bitgdiapi_testdata.iby --- a/graphicsapitest/graphicssvs/bitgdi/group/t_bitgdiapi_testdata.iby Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,50 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// - -#if (!defined __T_BITGDI_API_TESTDATA_IBY__) -#define __T_BITGDI_API_TESTDATA_IBY__ - -data=EPOCROOT##Epoc32\data\z\graphics\setup-t-graphics-bitgdi-publicapi.script graphics\setup-t-graphics-bitgdi-publicapi.script - -data=EPOCROOT##Epoc32\data\z\graphics\graphics-bitgdi-fbsdevice-publicapi.script graphics\graphics-bitgdi-fbsdevice-publicapi.script -data=EPOCROOT##Epoc32\data\z\graphics\graphics-bitgdi-fbsdevice-publicapi.ini graphics\graphics-bitgdi-fbsdevice-publicapi.ini - -data=EPOCROOT##Epoc32\data\z\graphics\graphics-bitgdi-fbsscreendevice-publicapi.script graphics\graphics-bitgdi-fbsscreendevice-publicapi.script -data=EPOCROOT##Epoc32\data\z\graphics\graphics-bitgdi-fbsscreendevice-publicapi.ini graphics\graphics-bitgdi-fbsscreendevice-publicapi.ini - -data=EPOCROOT##Epoc32\data\z\graphics\graphics-bitgdi-fbsbitmapdevice-publicapi.script graphics\graphics-bitgdi-fbsbitmapdevice-publicapi.script -data=EPOCROOT##Epoc32\data\z\graphics\graphics-bitgdi-fbsbitmapdevice-publicapi.ini graphics\graphics-bitgdi-fbsbitmapdevice-publicapi.ini - -data=EPOCROOT##Epoc32\data\z\graphics\graphics-bitgdi-fbsbitgc-publicapi.script graphics\graphics-bitgdi-fbsbitgc-publicapi.script -data=EPOCROOT##Epoc32\data\z\graphics\graphics-bitgdi-fbsbitgc-publicapi.ini graphics\graphics-bitgdi-fbsbitgc-publicapi.ini -data=EPOCROOT##Epoc32\data\z\graphics\graphics-bitgdi-fbsbitgc-publicapi-2.ini graphics\graphics-bitgdi-fbsbitgc-publicapi-2.ini -data=EPOCROOT##Epoc32\data\z\graphics\graphics-bitgdi-fbsbitgc-publicapi-3.ini graphics\graphics-bitgdi-fbsbitgc-publicapi-3.ini - -data=EPOCROOT##Epoc32\data\z\graphics\graphics-bitgdi-fbsbitgc-publicapi-manual.script graphics\graphics-bitgdi-fbsbitgc-publicapi-manual.script -data=EPOCROOT##Epoc32\data\z\graphics\graphics-bitgdi-fbsbitgc-publicapi-manual.ini graphics\graphics-bitgdi-fbsbitgc-publicapi-manual.ini - -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-BITGDI-PolygonFiller-PublicApi.script graphics\GRAPHICS-BITGDI-PolygonFiller-PublicApi.script -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-BITGDI-PolygonFiller-PublicApi.ini graphics\GRAPHICS-BITGDI-PolygonFiller-PublicApi.ini - -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-BITGDI-FbsBitGcBitmap-PublicApi.script graphics\GRAPHICS-BITGDI-FbsBitGcBitmap-PublicApi.script -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-BITGDI-FbsBitGcBitmap-PublicApi.ini graphics\GRAPHICS-BITGDI-FbsBitGcBitmap-PublicApi.ini - -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-BITGDI-FbsBitGcFont-PublicApi.script graphics\GRAPHICS-BITGDI-FbsBitGcFont-PublicApi.script -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-BITGDI-FbsBitGcFont-PublicApi.ini graphics\GRAPHICS-BITGDI-FbsBitGcFont-PublicApi.ini - -data=EPOCROOT##Epoc32\data\z\graphics\bitgdi\test_rwssprite_bitmap.mbm graphics\bitgdi\test_rwssprite_bitmap.mbm -data=EPOCROOT##Epoc32\data\z\graphics\bitgdi\testfontws.gdr graphics\bitgdi\testfontws.gdr -#endif diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/bitgdi/group/t_bitgdiapi_testdata.pkg --- a/graphicsapitest/graphicssvs/bitgdi/group/t_bitgdiapi_testdata.pkg Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,47 +0,0 @@ -; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of "Eclipse Public License v1.0" -; which accompanies this distribution, and is available -; at the URL "http://www.eclipse.org/legal/epl-v10.html". -; -; Initial Contributors: -; Nokia Corporation - initial contribution. -; -; Contributors: -; -; Description: -; -;File: bitgdi.pkg; -; -;Auto-generated PKG file by Nokia PKG Wizard for CodeWarrior IDE - -;*Languages -&EN -; -;*Standard SIS file header. This section specifies the package name, -;application UID, and version/build numbers. Add the package TYPE here if needed. -#{"TBitGDIAPITest"},(0x101FB3E8),1,0,1; -; - -;*Unique (Non-Localized) Vendor name -;This is used in combination with signing to prevent the unauthroized -;upgrade of a a package by someone other than the rightful vendor. -:"Nokia" - -;*Localized Vendor Name -;This specifies the localized vendor name(s) corresponding to language(s). -%{"Nokia Test EN"} - -;*Files To Copy... - -"..\Epoc32\data\z\graphics\setup-t-graphics-bitgdi-publicapi.script"-"graphics\setup-t-graphics-bitgdi-publicapi.script" -"..\Epoc32\data\z\graphics\graphics-bitgdi-fbsdevice-publicapi.script"-"graphics\graphics-bitgdi-fbsdevice-publicapi.script" -"..\Epoc32\data\z\graphics\graphics-bitgdi-fbsscreendevice-publicapi.script"-"graphics\graphics-bitgdi-fbsscreendevice-publicapi.script" -"..\Epoc32\data\z\graphics\graphics-bitgdi-fbsbitmapdevice-publicapi.script"-"graphics\graphics-bitgdi-fbsbitmapdevice-publicapi.script" -"..\Epoc32\data\z\graphics\graphics-bitgdi-fbsbitgc-publicapi.script"-"graphics\graphics-bitgdi-fbsbitgc-publicapi.script" -"..\Epoc32\data\z\graphics\graphics-bitgdi-fbsbitgc-publicapi-manual.script"-"graphics\graphics-bitgdi-fbsbitgc-publicapi-manual.script" -"..\Epoc32\data\z\graphics\GRAPHICS-BITGDI-PolygonFiller-PublicApi.script"-"graphics\GRAPHICS-BITGDI-PolygonFiller-PublicApi.script" -"..\Epoc32\data\z\graphics\GRAPHICS-BITGDI-FbsBitGcBitmap-PublicApi.script"-"graphics\GRAPHICS-BITGDI-FbsBitGcBitmap-PublicApi.script" -"..\Epoc32\data\z\graphics\GRAPHICS-BITGDI-FbsBitGcFont-PublicApi.script"-"graphics\GRAPHICS-BITGDI-FbsBitGcFont-PublicApi.script" - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/bitgdi/group/t_prompt.mmp --- a/graphicsapitest/graphicssvs/bitgdi/group/t_prompt.mmp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,34 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -TARGET t_prompt.exe -TARGETTYPE exe -UID 0x1000007A 0x200041C9 -VENDORID 0x70000001 - -CAPABILITY WriteDeviceData - -SOURCEPATH ../src -SOURCE t_prompt.cpp - -OS_LAYER_SYSTEMINCLUDE_SYMBIAN - -LIBRARY euser.lib -LIBRARY efile.lib - -SMPSAFE diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/bitgdi/inc/T_DataFbsBitGc.h --- a/graphicsapitest/graphicssvs/bitgdi/inc/T_DataFbsBitGc.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,90 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -#if (!defined __T_DATA_FBS_BIT_GC_H__) -#define __T_DATA_FBS_BIT_GC_H__ - -// User includes -#include "T_DataBitmapContext.h" - -class CT_DataFbsBitGc : public CT_DataBitmapContext - { -public: - static CT_DataFbsBitGc* NewL(); - - ~CT_DataFbsBitGc(); - - // CTPData implementation - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - - virtual TAny* GetObject(); - virtual void SetObjectL(TAny* aObject); - virtual void DisownObjectL(); - void DestroyData(); - - // CT_DataGraphicsContext implementation - virtual CGraphicsContext* GetGraphicsContext() const; - - // CT_DataBitmapContext implementation - virtual CBitmapContext* GetBitmapContext() const; - -protected: - CT_DataFbsBitGc(); - void ConstructL(); - -private: - void DoCmdNewL(); - void DoCmdDestructor(); - void DoCmdActivateL(const TDesC& aSection); - void DoCmdActivateNoJustAutoUpdateL(const TDesC& aSection); - TBool DoCmdAlphaBlendBitmapsL(const TDesC& aSection); - void DoCmdDrawPolyLineNoEndPointL(const TDesC& aSection); - - void DoCmdCancelClipping(const TDesC& aSection); - void DoCmdCopySettingsL(const TDesC& aSection); - TBool DoCmdBitBltL(const TDesC& aSection); - - void DoCmdDrawTextL(const TDesC& aSection); - void DoCmdDrawTextVerticalL(const TDesC& aSection); - void DoCmdUpdateJustificationL(const TDesC& aSection); - void DoCmdUpdateJustificationVerticalL(const TDesC& aSection); - - void DoCmdFadeArea(const TDesC& aSection); - void DoCmdIsBrushPatternUsed(const TDesC& aSection); - void DoCmdIsFontUsed(const TDesC& aSection); - void DoCmdOrientationsAvailable(const TDesC& aSection); - void DoCmdRectDrawnTo(const TDesC& aSection); - void DoCmdResized(const TDesC& aSection); - void DoCmdSetDitherOrigin(const TDesC& aSection); - void DoCmdSetFadeMode(const TDesC& aSection); - TBool DoCmdSetFadingParameters(const TDesC& aSection); - void DoCmdSetOrientation(const TDesC& aSection); - void DoCmdSetShadowMode(const TDesC& aSection); - void DoCmdSetUserDisplayMode(const TDesC& aSection); - void DoCmdShadowArea(const TDesC& aSection); - void DoCmdUseBrushPatternL(const TDesC& aSection); - void DoCmdUseFontL(const TDesC& aSection); - void DoCmdUseFontNoDuplicateL(const TDesC& aSection); - void DoCmdPromptMessageL(const TDesC& aSection); -protected: - /** test step reference*/ - CFbsBitGc* iFbsBitGc; - - }; - -#endif /* __T_DATA_FBS_BIT_GC_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/bitgdi/inc/T_DataFbsBitGcBitmap.h --- a/graphicsapitest/graphicssvs/bitgdi/inc/T_DataFbsBitGcBitmap.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,54 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -#ifndef T_DATAFBSBITGCBITMAP_H_ -#define T_DATAFBSBITGCBITMAP_H_ - -#include "T_DataFbsBitmap.h" - - -class CT_DataFbsBitGcBitmap : public CT_DataFbsBitmap - { -public: - static CT_DataFbsBitGcBitmap* NewL(); - - ~CT_DataFbsBitGcBitmap(); - - virtual TAny* GetObject(); - virtual void SetObjectL(TAny* aAny); - virtual void DisownObjectL(); - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - -protected: - CT_DataFbsBitGcBitmap(); - void ConstructL(); - virtual CFbsBitmap* GetFbsBitmap() const; - -private: - void DestroyData(); - void DoCmdDestructor(); - void DoCmdNewL(); - void DoCmdAddress(const TDesC& aSection); - void DoCmdLockHeap(); - void DoCmdUnlockHeap(); -private: - CFbsBitGcBitmap* iFbsBitGcBitmap; - - }; - -#endif /*T_DATAFBSBITGCBITMAP_H_*/ - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/bitgdi/inc/T_DataFbsBitGcFont.h --- a/graphicsapitest/graphicssvs/bitgdi/inc/T_DataFbsBitGcFont.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,68 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataFbsBitGcFont -*/ - -#if (!defined __T_DATA_FBS_BITGC_FONT_H__) -#define __T_DATA_FBS_BITGC_FONT_H__ - -// User includes -#include "T_DataFbsFont.h" - -class CT_DataFbsBitGcFont : public CT_DataFbsFont - { -public: - static CT_DataFbsBitGcFont* NewL(); - - ~CT_DataFbsBitGcFont(); - - // CTPData implementation - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - virtual TAny* GetObject(); - virtual void SetObjectL(TAny* aObject); - virtual void DisownObjectL(); - -protected: - CT_DataFbsBitGcFont(); - void ConstructL(); - - // CT_DataFont implementation - virtual CFont* GetFont() const; - - // CT_DataFbsFont implementation - virtual CFbsFont* GetFbsFont() const; - -private: - void DoCmdNewL(); - void DoCmdDestructor(); - - void DoCmdAddress(); - void DoCmdDuplicate(const TDesC& aSection); - void DoCmdReset(); - - -protected: - /** test step reference*/ - CFbsBitGcFont* iFbsBitGcFont; - }; - -#endif /* __T_DATA_FBS_BITGC_FONT_H__ */ \ No newline at end of file diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/bitgdi/inc/T_DataFbsBitmapDevice.h --- a/graphicsapitest/graphicssvs/bitgdi/inc/T_DataFbsBitmapDevice.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,76 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataFbsBitmapDevice -*/ - -#if (!defined __T_DATA_FBS_BITMAP_DEVICE_H__) -#define __T_DATA_FBS_BITMAP_DEVICE_H__ - -// User includes -#include "T_DataFbsDevice.h" - -class CT_DataFbsBitmapDevice : public CT_DataFbsDevice - { -public: - static CT_DataFbsBitmapDevice* NewL(); - - ~CT_DataFbsBitmapDevice(); - - // CTPData implementation - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - - virtual TAny* GetObject(); - virtual void SetObjectL(TAny* aObject); - virtual void DisownObjectL(); - void DestroyData(); - -protected: - CT_DataFbsBitmapDevice(); - void ConstructL(); - - // CT_DataGraphicsDeviceMap implementation - virtual MGraphicsDeviceMap* GetGraphicsDeviceMap() const; - - // CT_DataGraphicsDevice implementation - virtual CGraphicsDevice* GetGraphicsDevice() const; - - // CT_DataBitmapDevice implementation - virtual CBitmapDevice* GetBitmapDevice() const; - - // CT_DataFbsDevice implementation - virtual CFbsDevice* GetFbsDevice() const; - -private: - void DoCmdNewL(const TDesC& aSection); - void DoCmdDestructor(); - void DoCmdDrawingBegin(const TDesC& aSection); - void DoCmdDrawingEnd(const TDesC& aSection); - void DoCmdResize(const TDesC& aSection); - void DoCmdSwapWidthAndHeight(); - - -protected: - /** test step reference*/ - CFbsBitmapDevice* iFbsBitmapDevice; - }; - -#endif /* __T_DATA_FBS_BITMAP_DEVICE_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/bitgdi/inc/T_DataFbsDevice.h --- a/graphicsapitest/graphicssvs/bitgdi/inc/T_DataFbsDevice.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,65 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataFbsDevice -*/ - -#if (!defined __T_DATA_FBS_DEVICE_H__) -#define __T_DATA_FBS_DEVICE_H__ - -// User includes -#include "DataWrapperBase.h" -#include "T_DataBitmapDevice.h" - -class CT_DataFbsDevice : public CT_DataBitmapDevice - { -public: - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - CT_DataFbsDevice(); - -protected: - void DoCmdCheckPixels(const TDesC& aSection); - void DoCmdCheckLineColor(const TDesC& aSection); - void DoCmdCheckRectColor(const TDesC& aSection); - void DoCmdGetFontByIdL(const TDesC& aSection); - TBool DoCmdGetNearestFontInPixelsL(const TDesC& aSection); - TBool DoCmdGetNearestFontInTwipsL(const TDesC& aSection); - TBool DoCmdGetNearestFontToDesignHeightInPixelsL(const TDesC& aSection); - TBool DoCmdGetNearestFontToDesignHeightInTwipsL(const TDesC& aSection); - TBool DoCmdGetNearestFontToMaxHeightInPixelsL(const TDesC& aSection); - TBool DoCmdGetNearestFontToMaxHeightInTwipsL(const TDesC& aSection); - void DoCmdSizeInPixels(const TDesC& aSection); - - TBool DoCmdCreateContextL(const TDesC& aSection); - void DoCmdRectCompareL(const TDesC& aSection); - void DoCmdSetCustomPaletteL(const TDesC& aSection); - void DoCmdGraphicsAccelerator(); - void DoCmdOrientation(const TDesC& aSection); - void DoCmdDisplayMode16M(const TDesC& aSection); - void DoCmdSetScalingFactor(const TDesC& aSection); - void DoCmdGetDrawRect(const TDesC& aSection); - void DoCmdRegisterLinkedTypefaceL(const TDesC& aSection); - void DoCmdSetDrawDeviceOffset(const TDesC& aSection); - - virtual CFbsDevice* GetFbsDevice() const = 0; - }; - -#endif /* __T_DATA_FBS_DEVICE_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/bitgdi/inc/T_DataFbsScreenDevice.h --- a/graphicsapitest/graphicssvs/bitgdi/inc/T_DataFbsScreenDevice.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,82 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataFbsScreenDevice -*/ - -#if (!defined __T_DATA_FBS_SCREEN_DEVICE_H__) -#define __T_DATA_FBS_SCREEN_DEVICE_H__ - -// User includes -#include "T_DataFbsDevice.h" - -class CT_DataFbsScreenDevice : public CT_DataFbsDevice - { -public: - static CT_DataFbsScreenDevice* NewL(); - - // CTPData implementation - virtual TAny* GetObject(); - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - virtual void SetObjectL(TAny* aAny); - ~CT_DataFbsScreenDevice(); - void DestroyData(); - virtual void DisownObjectL(); - -protected: - CT_DataFbsScreenDevice(); - void ConstructL(); - - // CT_DataGraphicsDeviceMap implementation - virtual MGraphicsDeviceMap* GetGraphicsDeviceMap() const; - - // CT_DataGraphicsDevice implementation - virtual CGraphicsDevice* GetGraphicsDevice() const; - - // CT_DataBitmapDevice implementation - virtual CBitmapDevice* GetBitmapDevice() const; - - // CT_DataFbsDevice implementation - virtual CFbsDevice* GetFbsDevice() const; - -private: - void DoCmdNew(const TDesC& aSection); - void DoCmdDestructor(); -// void DoCmdSizeInTwips(); - - void DoCmdChangeScreenDeviceL(const TDesC& aSection); - void DoCmdDrawSpriteBegin(); - void DoCmdDrawSpriteEnd(); - void DoCmdHardwareBitmap(); - void DoCmdScreenNo(const TDesC& aSection); - void DoCmdSetAutoUpdate(const TDesC& aSection); - void DoCmdUpdateL(const TDesC& aSection); - void DoCmdCancelSprite(); - void DoCmdHideSpriteL(const TDesC& aSection); - void DoCmdShowSpriteL(const TDesC& aSection); - - -protected: - /** test step reference*/ - CFbsScreenDevice* iFbsScreenDevice; - }; - -#endif /* __T_DATA_FBS_SCREEN_DEVICE_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/bitgdi/inc/T_DataPolygonFiller.h --- a/graphicsapitest/graphicssvs/bitgdi/inc/T_DataPolygonFiller.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,55 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ -#ifndef T_DATAPOLYGONFILLER_H_ -#define T_DATAPOLYGONFILLER_H_ - - -#include "DataWrapperBase.h" - - -class CT_DataPolygonFiller : public CDataWrapperBase - { -public: - static CT_DataPolygonFiller* NewL(); - - ~CT_DataPolygonFiller(); - - virtual TAny* GetObject(); - virtual void SetObjectL(TAny* aAny); - virtual void DisownObjectL(); - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt); - //void RunL(CActive* aActive, TInt aIndex); - -protected: - CT_DataPolygonFiller(); - void ConstructL(); - -private: - void DestroyData(); - void DoCmdnewL(); - void DoCmdConstructL(const TDesC& aSection); - void DoCmdReset(); - void DoCmdGetNextPixelRun(const TDesC& aSection); - void DoCmdGetNextPixelRunOnSpecifiedScanLine(const TDesC& aSection); - void DoCmdDestructor(); -private: - CPolygonFiller* iPolygonFiller; - CArrayFix* iPointsArray; - TPoint* iPoints; - }; - -#endif /*T_DATAPOLYGONFILLER_H_*/ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/bitgdi/inc/T_GraphicsBitgdiAPIServer.h --- a/graphicsapitest/graphicssvs/bitgdi/inc/T_GraphicsBitgdiAPIServer.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,48 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -#if (!defined __T_GRAPHICS_BITGDI_API_SERVER_H__) -#define __T_GRAPHICS_BITGDI_API_SERVER_H__ - -// User Include -#include "TestServerBase.h" - -class CT_GraphicsBitgdiAPIServer : public CTestServerBase - { -private: - class CT_GraphicsBitgdiAPIBlock : public CTestBlockController - { - public: - inline CT_GraphicsBitgdiAPIBlock(); - inline ~CT_GraphicsBitgdiAPIBlock(); - - CDataWrapper* CreateDataL(const TDesC& aData); - }; - -public: - inline CT_GraphicsBitgdiAPIServer(); - inline ~CT_GraphicsBitgdiAPIServer(); - - static CT_GraphicsBitgdiAPIServer* NewL(); - - inline CTestBlockController* CreateTestBlock(); - }; - -#include "T_GraphicsBitgdiAPIServer.inl" - -#endif /* __T_GRAPHICS_BITGDI_API_SERVER_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/bitgdi/inc/T_GraphicsBitgdiAPIServer.inl --- a/graphicsapitest/graphicssvs/bitgdi/inc/T_GraphicsBitgdiAPIServer.inl Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,48 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_GraphicsBitgdiAPIServer inline functions -*/ - - -/*@{*/ -/*@}*/ - -inline CT_GraphicsBitgdiAPIServer::CT_GraphicsBitgdiAPIBlock::CT_GraphicsBitgdiAPIBlock() - { - } - -inline CT_GraphicsBitgdiAPIServer::CT_GraphicsBitgdiAPIBlock::~CT_GraphicsBitgdiAPIBlock() - { - } - -inline CT_GraphicsBitgdiAPIServer::CT_GraphicsBitgdiAPIServer() - { - } - -inline CT_GraphicsBitgdiAPIServer::~CT_GraphicsBitgdiAPIServer() - { - } - -inline CTestBlockController* CT_GraphicsBitgdiAPIServer::CreateTestBlock() - { - return new CT_GraphicsBitgdiAPIBlock(); - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/bitgdi/pkg/t_bitgdiapi.pkg --- a/graphicsapitest/graphicssvs/bitgdi/pkg/t_bitgdiapi.pkg Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,79 +0,0 @@ -; -; Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of "Eclipse Public License v1.0" -; which accompanies this distribution, and is available -; at the URL "http://www.eclipse.org/legal/epl-v10.html". -; -; Initial Contributors: -; Nokia Corporation - initial contribution. -; -; Contributors: -; -; Description: -; -; -; Install file for T_GraphicsBitgdiApi.exe -; - -; Languages - -&EN - -; Installation header -; UID is the app's UID -#{"T_BitgdiAPI"},(0x20003722),1,0,0 - -;%{"Vendor-EN"} -;:"Symbian" - -; Localised Vendor name -%{"Nokia"} - -; Unique Vendor name -:"Nokia" - - -"T_GraphicsBitgdiApi.exe"-"!:\sys\bin\T_GraphicsBitgdiApi.exe" -"t_prompt.exe"-"!:\sys\bin\t_prompt.exe" - -"t_graphics.ini"-"!:\graphics\t_graphics.ini" -"tbitgdiapi.bat"-"!:\graphics\tbitgdiapi.bat" -"t_graphics.tcs"-"!:\graphics\t_graphics.tcs" -"t_graphics_panic.tcs"-"!:\graphics\t_graphics_panic.tcs" -"graphics-bitgdi-publicapi.script"-"!:\graphics\graphics-bitgdi-publicapi.script" - -"graphics-bitgdi-fbsdevice-publicapi.script"-"!:\graphics\graphics-bitgdi-fbsdevice-publicapi.script" -"graphics-bitgdi-fbsdevice-publicapi.ini"-"!:\graphics\graphics-bitgdi-fbsdevice-publicapi.ini" - -"graphics-bitgdi-fbsscreendevice-publicapi.script"-"!:\graphics\graphics-bitgdi-fbsscreendevice-publicapi.script" -"graphics-bitgdi-fbsscreendevice-publicapi.ini"-"!:\graphics\graphics-bitgdi-fbsscreendevice-publicapi.ini" - -"graphics-bitgdi-fbsbitmapdevice-publicapi.script"-"!:\graphics\graphics-bitgdi-fbsbitmapdevice-publicapi.script" -"graphics-bitgdi-fbsbitmapdevice-publicapi.ini"-"!:\graphics\graphics-bitgdi-fbsbitmapdevice-publicapi.ini" - -"graphics-bitgdi-fbsbitgc-publicapi.script"-"!:\graphics\graphics-bitgdi-fbsbitgc-publicapi.script" -"graphics-bitgdi-fbsbitgc-publicapi.ini"-"!:\graphics\graphics-bitgdi-fbsbitgc-publicapi.ini" -"graphics-bitgdi-fbsbitgc-publicapi-2.ini"-"!:\graphics\graphics-bitgdi-fbsbitgc-publicapi-2.ini" -"graphics-bitgdi-fbsbitgc-publicapi-3.ini"-"!:\graphics\graphics-bitgdi-fbsbitgc-publicapi-3.ini" - -"graphics-bitgdi-fbsbitgc-publicapi-manual.script"-"!:\graphics\graphics-bitgdi-fbsbitgc-publicapi-manual.script" -"graphics-bitgdi-fbsbitgc-publicapi-manual.ini"-"!:\graphics\graphics-bitgdi-fbsbitgc-publicapi-manual.ini" - -"bitgdi\test_rwssprite_bitmap.mbm"-"!:\graphics\bitgdi\test_rwssprite_bitmap.mbm" -"bitgdi\testfontws.gdr"-"!:\graphics\bitgdi\testfontws.gdr" - -"GRAPHICS-BITGDI-PolygonFiller-PublicApi.script"-"!:\graphics\GRAPHICS-BITGDI-PolygonFiller-PublicApi.script" -"GRAPHICS-BITGDI-PolygonFiller-PublicApi.ini"-"!:\graphics\GRAPHICS-BITGDI-PolygonFiller-PublicApi.ini" - -"GRAPHICS-BITGDI-FbsBitGcBitmap-PublicApi.script"-"!:\graphics\GRAPHICS-BITGDI-FbsBitGcBitmap-PublicApi.script" -"GRAPHICS-BITGDI-FbsBitGcBitmap-PublicApi.ini"-"!:\graphics\GRAPHICS-BITGDI-FbsBitGcBitmap-PublicApi.ini" - -"GRAPHICS-BITGDI-FbsBitGcFont-PublicApi.script"-"!:\graphics\GRAPHICS-BITGDI-FbsBitGcFont-PublicApi.script" -"GRAPHICS-BITGDI-FbsBitGcFont-PublicApi.ini"-"!:\graphics\GRAPHICS-BITGDI-FbsBitGcFont-PublicApi.ini" - -; Required files -; None - -; Component .sis files -; None diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/bitgdi/pkg/tbitgdiapi.bat --- a/graphicsapitest/graphicssvs/bitgdi/pkg/tbitgdiapi.bat Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,17 +0,0 @@ -@rem -@rem Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -@rem All rights reserved. -@rem This component and the accompanying materials are made available -@rem under the terms of "Eclipse Public License v1.0" -@rem which accompanies this distribution, and is available -@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". -@rem -@rem Initial Contributors: -@rem Nokia Corporation - initial contribution. -@rem -@rem Contributors: -@rem -@rem Description: -@rem - -testexecute \graphics\graphics-bitgdi-publicapi diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/bitgdi/scripts/GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual.script --- a/graphicsapitest/graphicssvs/bitgdi/scripts/GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,454 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// -//! @file -//! @SYMTestSuiteName GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual -//! @SYMScriptTestEnvironment This test script requires a basic ROM. - -/////////////////////////////////////////////////////////////////////////////// -// GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual.script -// -// Tests all public elements of the CFbsBitGc class -// as a means of confidence that the API works as expected. -// -// The purpose is to provide a regression test suite of PublishedAll APIs for CFbsBitGc. -// -// The tests are fully manual. -/////////////////////////////////////////////////////////////////////////////// - - -LOAD_SUITE T_GraphicsBitgdiApi -DELAY 1000 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0001 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0001 -//! @SYMAPI CFbsBitGc::Plot(const TPoint{ref}) -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 02/04/2009 -//! @SYMTestCaseDesc Draw a single point. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object and activate it. -//! 4. Clear the device. -//! 5. Set pen size TSize(2, 2). -//! 6. Set pen color TRgb(255, 0, 0). -//! 7. Draw a single point at TPoint(100, 100). -//! 8. Check the point. -//! 9. Check manually. -//! 10.Destruct CFbsBitGc object, CFbsScreenDevice object and disconnect RFbsSession object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults A red point is drawn as expected. -//! @SYMTestType CIT - - START_TEST_BLOCK 100 T_GraphicsBitgdiApi \graphics\graphics-bitgdi-fbsbitgc-publicapi-manual.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0001-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0001-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenSize GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0001-SetPenSize_command06 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0001-SetPenColor_command07 - COMMAND fbsBitGc Plot GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0001-Plot_command08 - COMMAND fbsScrDev Update - DELAY 6000000 - COMMAND fbsScrDev checkPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0001-checkPixels_command11 - COMMAND fbsBitGc PromptMessage GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0001-PromptMessage_command12 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0001 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0002 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0002 -//! @SYMAPI CFbsBitGc::Plot(const TPoint{ref}) -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 02/04/2009 -//! @SYMTestCaseDesc Draw five points. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object and activate it. -//! 4. Clear the device. -//! 5. Set pen size TSize(2, 2). -//! 6. Set pen color TRgb(255, 0, 0). -//! 7. Draw a point at TPoint(100, 30). -//! 8. Set pen color TRgb(0, 255, 0). -//! 9. Draw a point at TPoint(50, 70). -//! 10.Draw a point at TPoint(150, 70). -//! 11.Set pen color TRgb(0, 0, 255). -//! 12.Draw a point at TPoint(75, 120). -//! 13.Draw a point at TPoint(125, 120). -//! 14.Check the five points. -//! 15.Check manually. -//! 16.Destruct CFbsBitGc object, CFbsScreenDevice object and disconnect RFbsSession object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Five points are drawn as expected. -//! @SYMTestType CIT - - START_TEST_BLOCK 100 T_GraphicsBitgdiApi \graphics\graphics-bitgdi-fbsbitgc-publicapi-manual.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0002-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0002-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenSize GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0002-SetPenSize_command06 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0002-SetPenColor_command07 - COMMAND fbsBitGc Plot GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0002-Plot_command08 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0002-SetPenColor_command09 - COMMAND fbsBitGc Plot GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0002-Plot_command10 - COMMAND fbsBitGc Plot GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0002-Plot_command11 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0002-SetPenColor_command12 - COMMAND fbsBitGc Plot GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0002-Plot_command13 - COMMAND fbsBitGc Plot GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0002-Plot_command14 - COMMAND fbsScrDev Update - DELAY 6000000 - COMMAND fbsScrDev checkPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0002-checkPixels_command17 - COMMAND fbsBitGc PromptMessage GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0002-PromptMessage_command18 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0002 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0003 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0003 -//! @SYMAPI CFbsBitGc::DrawLine(const TPoint{ref}, const TPoint{ref}) -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 02/04/2009 -//! @SYMTestCaseDesc Draws a straight line. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object and activate it. -//! 4. Clear the device. -//! 5. Set pen size TSize(1, 1). -//! 6. Set pen color TRgb(255, 0, 0). -//! 7. Draw a straight line between TPoint(20, 100) and TPoint(120, 100). -//! 8. Check the line. -//! 9. Check manually. -//! 10.Destruct CFbsBitGc object, CFbsScreenDevice object and disconnect RFbsSession object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults A red straight line is drawn as expected. -//! @SYMTestType CIT - - START_TEST_BLOCK 100 T_GraphicsBitgdiApi \graphics\graphics-bitgdi-fbsbitgc-publicapi-manual.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0003-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0003-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenSize GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0003-SetPenSize_command06 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0003-SetPenColor_command07 - COMMAND fbsBitGc DrawLine GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0003-DrawLine_command08 - COMMAND fbsScrDev Update - DELAY 6000000 - COMMAND fbsScrDev checkLineColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0003-checkLineColor_command11 - COMMAND fbsBitGc PromptMessage GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0003-PromptMessage_command12 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0003 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0004 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0004 -//! @SYMAPI CFbsBitGc::DrawLine(const TPoint{ref}, const TPoint{ref}) -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 02/04/2009 -//! @SYMTestCaseDesc Draws three lines. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object and activate it. -//! 4. Clear the device. -//! 5. Set pen size TSize(1, 1). -//! 6. Set pen color TRgb(255, 0, 0). -//! 7. Draw a line between TPoint(80, 20) and TPoint(80, 100). -//! 8. Set pen color TRgb(0, 255, 0). -//! 9. Draw a line between TPoint(20, 20) and TPoint(60, 100). -//! 10.Set pen color TRgb(0, 0, 255). -//! 11.Draw a line between TPoint(120, 100) and TPoint(100, 100). -//! 12.Check three lines. -//! 13.Check manually. -//! 14.Destruct CFbsBitGc object, CFbsScreenDevice object and disconnect RFbsSession object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Three lines are drawn as expected. -//! @SYMTestType CIT - - START_TEST_BLOCK 100 T_GraphicsBitgdiApi \graphics\graphics-bitgdi-fbsbitgc-publicapi-manual.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0004-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0004-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenSize GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0004-SetPenSize_command06 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0004-SetPenColor_command07 - COMMAND fbsBitGc DrawLine GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0004-DrawLine_command08 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0004-SetPenColor_command09 - COMMAND fbsBitGc DrawLine GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0004-DrawLine_command10 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0004-SetPenColor_command11 - COMMAND fbsBitGc DrawLine GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0004-DrawLine_command12 - COMMAND fbsScrDev Update - DELAY 6000000 - COMMAND fbsScrDev checkLineColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0004-checkLineColor_command15 - COMMAND fbsBitGc PromptMessage GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0004-PromptMessage_command16 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0004 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0005 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0005 -//! @SYMAPI CFbsBitGc::DrawBitmap(const TPoint{ref}, const CFbsBitmap{ptr}) -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 02/04/2009 -//! @SYMTestCaseDesc Draw a bitmap at TPoint(20, 20). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object and activate it. -//! 4. Create a CFbsBitmap object. -//! 5. Load a bitmap and set size in twips of bitmap to TSize(1000, 1000). -//! 6. Clear the device. -//! 7. Draw the bitmap at TPoint(20, 20). -//! 8. Check manually. -//! 9. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults A bitmap will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 100 T_GraphicsBitgdiApi \graphics\graphics-bitgdi-fbsbitgc-publicapi-manual.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0005-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0005-Activate_command04 - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0005-Load_command06 - COMMAND fbsBitmap SetSizeInTwips GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0005-SetSizeInTwips_command07 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc DrawBitmap GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0005-DrawBitmap_command09 - COMMAND fbsScrDev Update - DELAY 6000000 - COMMAND fbsBitGc PromptMessage GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0005-PromptMessage_command12 - COMMAND fbsBitmap ~ - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0005 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0006 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0006 -//! @SYMAPI CFbsBitGc::DrawBitmap(const TRect{ref}, const CFbsBitmap{ptr}) -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 02/04/2009 -//! @SYMTestCaseDesc Draw two bitmaps to fit TRect(0, 0, 120, 100) and TRect(110, 50, 130, 70). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object and activate it. -//! 4. Create a CFbsBitmap object. -//! 6. Clear the device. -//! 7. Draw the bitmap to fit TRect(0, 0, 120, 100). -//! 8. Draw the bitmap to fit TRect(110, 50, 130, 70). -//! 9. Check manually. -//! 10.Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Two bitmaps will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 100 T_GraphicsBitgdiApi \graphics\graphics-bitgdi-fbsbitgc-publicapi-manual.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0006-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0006-Activate_command04 - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0006-Load_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc DrawBitmap GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0006-DrawBitmap_command08 - COMMAND fbsBitGc DrawBitmap GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0006-DrawBitmap_command09 - COMMAND fbsScrDev Update - DELAY 6000000 - COMMAND fbsBitGc PromptMessage GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0006-PromptMessage_command12 - COMMAND fbsBitmap ~ - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0006 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0007 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0007 -//! @SYMAPI CFbsBitGc::DrawText(const TDesC{ref}, const TPoint(ref)). -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 02/04/2009 -//! @SYMTestCaseDesc Draw a line of text at the specific position. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object and activate it. -//! 4. Clear the device and set pen color TRgb(255, 0, 0). -//! 5. Set the device font. -//! 6. Draw a line of the text at (20,50). -//! 7. Check manually. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults A line of red text will be drawn as expected. -//! @SYMTestType CIT - - START_TEST_BLOCK 100 T_GraphicsBitgdiApi \graphics\graphics-bitgdi-fbsbitgc-publicapi-manual.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0007-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0007-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0007-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0007-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0007-UseFont_command08 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0007-DrawText_command09 - COMMAND fbsScrDev Update - DELAY 6000000 - COMMAND fbsBitGc PromptMessage GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0007-PromptMessage_command12 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0007-ReleaseFont_command14 - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0007 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0008 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0008 -//! @SYMAPI CFbsBitGc::DrawTextVertical(const TDesC{ref}, const TPoint(ref), TBool). -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 02/04/2009 -//! @SYMTestCaseDesc Draw two lines of text vertically. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object and activate it. -//! 4. Clear the device and set pen color TRgb(0, 0, 255). -//! 5. Set the device font. -//! 6. Draw a line of text vertically at TPoint(20,20). -//! 7. Draw a line of text vertically at TPoint(100, 200). -//! 8. Check manually. -//! 9. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Two lines of blue text will be drawn vertically as expected. -//! @SYMTestType CIT - - START_TEST_BLOCK 100 T_GraphicsBitgdiApi \graphics\graphics-bitgdi-fbsbitgc-publicapi-manual.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0008-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0008-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0008-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0008-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0008-UseFont_command08 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0008-DrawTextVertical_command09 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0008-DrawTextVertical_command10 - COMMAND fbsScrDev Update - DELAY 6000000 - COMMAND fbsBitGc PromptMessage GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0008-PromptMessage_command12 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0008-ReleaseFont_command14 - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0008 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0009 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0009 -//! @SYMAPI CFbsBitGc::DrawEllipse(const TRect{ref}) -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 02/04/2009 -//! @SYMTestCaseDesc Draw an ellipse. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object and activate it. -//! 4. Clear the device. -//! 5. Set brush style ESolidStyle. -//! 6. Set brush color TRgb(0, 255, 0). -//! 7. Draw an ellipse at TRect(20, 20, 100, 160). -//! 8. Check manually . -//! 9. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults A green ellipse is drawn as expected. -//! @SYMTestType CIT - - START_TEST_BLOCK 100 T_GraphicsBitgdiApi \graphics\graphics-bitgdi-fbsbitgc-publicapi-manual.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0009-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0009-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0009-SetBrushStyle_command06 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0009-SetBrushColor_command07 - COMMAND fbsBitGc DrawEllipse GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0009-DrawEllipse_command08 - COMMAND fbsScrDev Update - DELAY 6000000 - COMMAND fbsBitGc PromptMessage GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0009-PromptMessage_command12 - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0009 - - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/bitgdi/scripts/GRAPHICS-BITGDI-FbsBitGc-PublicApi.script --- a/graphicsapitest/graphicssvs/bitgdi/scripts/GRAPHICS-BITGDI-FbsBitGc-PublicApi.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,17459 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// -//! @file -//! @SYMTestSuiteName GRAPHICS-BITGDI-FbsBitGc-PublicApi -//! @SYMScriptTestEnvironment This test script requires a basic ROM. - -/////////////////////////////////////////////////////////////////////////////// -// GRAPHICS-BITGDI-FbsBitGc-PublicApi.script -// -// Tests all public elements of the CFbsBitGc class -// as a means of confidence that the API works as expected. -// -// The purpose is to provide a regression test suite of PublishedAll APIs for CFbsBitGc. -// Negative testing is performed to confirm that correct errors are returned -// when incorrect parameters are given. -// -// The tests are fully automated. -/////////////////////////////////////////////////////////////////////////////// - - -LOAD_SUITE T_GraphicsBitgdiApi -DELAY 1000 - -// **************************************************************************** -// CFbsBitGc class -// **************************************************************************** - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0001 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0001 -//! @SYMAPI CFbsBitGc::NewL() -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 28/11/2008 -//! @SYMTestCaseDesc Create a CFbsBitGc object by NewL(). -//! @SYMTestActions Create a CFbsBitGc object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CFbsBitGc object can be created without error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsBitGc NewL - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0001 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0002 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0002 -//! @SYMAPI CFbsBitGc::~CFbsBitGc() -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 28/11/2008 -//! @SYMTestCaseDesc Create and destruct a CFbsBitGc -//! @SYMTestActions 1. Create a CFbsBitGc object. -//! 2. Destruct CFbsBitGc. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CFbsBitGc object can be destructed without error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsBitGc NewL - COMMAND fbsBitGc ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0002 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0003 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0003 -//! @SYMAPI CFbsBitGc::Activate(CFbsDevice{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 28/11/2008 -//! @SYMTestCaseDesc Activate a CFbsBitGc to draw to a graphic device. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to CFbsScreenDevice. -//! 5. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CFbsBitGc object can be activated to draw to CFbsScreenDevice without error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0003-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0003-Activate_command04 - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0003 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0004 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0004 -//! @SYMAPI CFbsBitGc::Activate(CFbsDevice{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 03/12/2008 -//! @SYMTestCaseDesc Negative case. Activate a CFbsBitGc, which is already activated, to draw to graphic device. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object -//! 3. Create a CFbsScreenDevice object. -//! 4. Activated the CFbsBitGc object to draw to the CFbsScreenDevice object twice. -//! 5. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CFbsBitGc object can be associated with CFbsScreenDevice. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0004-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0004-Activate_command04 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0004-Activate_command05 - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0004 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0005 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0005 -//! @SYMAPI CFbsBitGc::Activate(CFbsDevice{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 03/12/2008 -//! @SYMTestCaseDesc Negative case. Activate a CFbsBitGc to draw to invalid graphic device. -//! @SYMTestActions 1. Create a CFbsBitGc object. -//! 2. Activated the CFbsBitGc object to draw to invalid CFbsScreenDevice object. -//! 3. Destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CFbsBitGc object can be activated without panic. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0005-Activate_command02 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0005 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0006 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0006 -//! @SYMAPI CFbsBitGc::ActivateNoJustAutoUpdate(CFbsDevice{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 28/11/2008 -//! @SYMTestCaseDesc Activate a CFbsBitGc to draw to a graphic device. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CFbsBitGc object can be activated to draw to CFbsScreenDevice without error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0006-NewL_command03 - COMMAND fbsBitGc ActivateNoJustAutoUpdate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0006-ActivateNoJustAutoUpdate_command04 - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0006 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0007 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0007 -//! @SYMAPI CFbsBitGc::ActivateNoJustAutoUpdate(CFbsDevice{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 28/11/2008 -//! @SYMTestCaseDesc Negative case. Activate a CFbsBitGc to draw to a graphic device twice. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object twice. -//! 5. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CFbsBitGc object can be activated to draw to CFbsScreenDevice. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0007-NewL_command03 - COMMAND fbsBitGc ActivateNoJustAutoUpdate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0007-ActivateNoJustAutoUpdate_command04 - COMMAND fbsBitGc ActivateNoJustAutoUpdate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0007-ActivateNoJustAutoUpdate_command05 - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0007 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0008 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0008 -//! @SYMAPI CFbsBitGc::ActivateNoJustAutoUpdate(CFbsDevice{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 28/11/2008 -//! @SYMTestCaseDesc Negative case. Activate a CFbsBitGc to draw to an invalid graphic device. -//! @SYMTestActions 1. Create a CFbsBitGc object. -//! 2. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 3. Destruct the CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CFbsBitGc object can be activated without panic. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsBitGc NewL - COMMAND fbsBitGc ActivateNoJustAutoUpdate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0008-ActivateNoJustAutoUpdate_command02 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0008 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0011 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0011 -//! @SYMAPI CFbsBitGc::BitBlt(const TPoint{ref}, const CFbsBitGc{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 23/12/2008 -//! @SYMTestCaseDesc Draw from another CFbsBitGc object. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create 2 CFbsBitGc objects. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the 2 CFbsBitGc objects to draw to the CFbsScreenDevice object. -//! 5. Draw a rectangle (0, 0, 40, 40) in color TRgb(255, 0, 0) with solid brush TRgb(255, 0, 0) with first CFbsBitGc object. -//! 6. Set clipping region of second CFbsBitGc object to TRect(50, 50, 90, 90) area. -//! 7. Draw on second CFbsBitGc object from first CFbsBitGc object. -//! 8. Check the rectangle drawn by second CFbsBitGc object. -//! 9. Disconnect RFbsSession and destruct CFbsBitGc objects and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Draw from first CFbsBitGc object without error. -//! 2. The drawing result is as expected. -//! 3. The rectangle is drawn in pen in color TRgb(0, 0, 0) with brush TRgb(255, 0, 0). -//! 4. Check the drawn rectangle. -//! Check pixel1~pixel4 outside the drawn rectangle area. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitGc fbsBitGc2 - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitGc2 NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0011-NewL_command04 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0011-Activate_command05 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc2 Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0011-Activate_command07 - COMMAND fbsBitGc2 Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0011-SetBrushColor_command09 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0011-SetBrushStyle_command10 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0011-SetPenColor_command11 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-0011-DrawRect_command12 - COMMAND fbsBitGc2 SetClippingRegion GRAPHICS-BITGDI-FbsBitGc-PublicApi-0011-SetClippingRegion_command13 - COMMAND fbsBitGc2 BitBlt GRAPHICS-BITGDI-FbsBitGc-PublicApi-0011-BitBlt_command14 - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0011-checkRectColor_command15 - COMMAND fbsScrDev checkPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0011-checkPixels_command16 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsBitGc2 ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0011 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0012 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0012 -//! @SYMAPI CFbsBitGc::BitBlt(const TPoint{ref}, const CFbsBitGc{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 23/12/2008 -//! @SYMTestCaseDesc Negative case. Draw from another CFbsBitGc object using a non-activated CFbsBitGc object. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create 2 CFbsBitGc objects. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the first CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Draw a rectangle (0, 0, 40, 40) in color TRgb(255, 0, 0) with solid brush TRgb(255, 0, 0) with first CFbsBitGc object. -//! 6. Set clipping region of second CFbsBitGc object to TRect(50, 50, 90, 90) area. -//! 7. Draw on second CFbsBitGc object from first CFbsBitGc object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Cannot draw from another CFbsBitGc object. Get Panic code 1 and PanicString BITGDI. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitGc fbsBitGc2 - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitGc2 NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0012-NewL_command04 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0012-Activate_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0012-SetBrushColor_command06 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0012-SetBrushStyle_command07 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0012-SetPenColor_command08 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-0012-DrawRect_command09 - COMMAND fbsBitGc2 BitBlt GRAPHICS-BITGDI-FbsBitGc-PublicApi-0012-BitBlt_command10 - END_TEST_BLOCK !PanicString=BITGDI !PanicCode=1 - RUN_TEST_STEP 100 T_GraphicsBitgdiApi utilityClearPanicDlg -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0012 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0013 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0013 -//! @SYMAPI CFbsBitGc::BitBlt(const TPoint{ref}, const CFbsBitGc{ref}, const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 24/12/2008 -//! @SYMTestCaseDesc Draw a rectangle from another CFbsBitGc object. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create 2 CFbsBitGc objects. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the 2 CFbsBitGc objects to draw to the CFbsScreenDevice object. -//! 5. Draw a rectangle (0, 0, 40, 40) in color TRgb(255, 0, 0) with solid brush TRgb(255, 0, 0) with first CFbsBitGc object. -//! 6. Draw a rectangle (0, 0, 80, 80) area on second CFbsBitGc object from first CFbsBitGc object. -//! 7. Check the rectangle drawn by second CFbsBitGc object. -//! 8. Check some pixels outside the rectangle. -//! 9. Disconnect RFbsSession and destruct CFbsBitGc objects and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Draw from first CFbsBitGc object without error. -//! 2. The drawing result is as expected. -//! 3. The rectangle is drawn in pen in color TRgb(0, 0, 0) with brush TRgb(255, 0, 0). -//! 4. Check the drawn rectangle. -//! Check pixel1~pixel4 outside the drawn rectangle area. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitGc fbsBitGc2 - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitGc2 NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0013-NewL_command04 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0013-Activate_command05 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc2 Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0013-Activate_command07 - COMMAND fbsBitGc2 Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0013-SetBrushColor_command09 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0013-SetBrushStyle_command10 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0013-SetPenColor_command11 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-0013-DrawRect_command12 - COMMAND fbsBitGc2 BitBlt GRAPHICS-BITGDI-FbsBitGc-PublicApi-0013-BitBlt_command13 - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0013-checkRectColor_command14 - COMMAND fbsScrDev checkPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0013-checkPixels_command15 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsBitGc2 ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0013 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0014 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0014 -//! @SYMAPI CFbsBitGc::BitBlt(const TPoint{ref}, const CFbsBitGc{ref}, const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 24/12/2008 -//! @SYMTestCaseDesc Negative case. Draw an empty rectangle from another CFbsBitGc object. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create 2 CFbsBitGc objects. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the 2 CFbsBitGc objects to draw to the CFbsScreenDevice object. -//! 5. Draw a rectangle (0, 0, 40, 40) in color TRgb(255, 0, 0) with solid brush TRgb(255, 0, 0) with first CFbsBitGc object. -//! 6. Draw a rectangle (0, 0, 0, 0) area on second CFbsBitGc object from first CFbsBitGc object. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc objects and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The rectangle will not be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitGc fbsBitGc2 - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitGc2 NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0014-NewL_command04 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0014-Activate_command05 - COMMAND fbsBitGc2 Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0014-Activate_command06 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0014-SetBrushColor_command07 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0014-SetBrushStyle_command08 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0014-SetPenColor_command09 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-0014-DrawRect_command10 - COMMAND fbsBitGc2 BitBlt GRAPHICS-BITGDI-FbsBitGc-PublicApi-0014-BitBlt_command11 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsBitGc2 ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0014 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0015 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0015 -//! @SYMAPI CFbsBitGc::BitBlt(const TPoint{ref}, const CFbsBitGc{ref}, const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 24/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a rectangle from another CFbsBitGc object which is not activated. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create 2 CFbsBitGc objects. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the second CFbsBitGc objects to draw to the CFbsScreenDevice object. -//! 5. Draw a rectangle (0, 0, 100, 100) area on second CFbsBitGc object from first CFbsBitGc object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The rectangle will not be drawn. Get Panic code 1 and PanicString BITGDI. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitGc fbsBitGc2 - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitGc2 NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0015-NewL_command04 - COMMAND fbsBitGc2 Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0015-Activate_command05 - COMMAND fbsBitGc2 BitBlt GRAPHICS-BITGDI-FbsBitGc-PublicApi-0015-BitBlt_command06 - END_TEST_BLOCK !PanicString=BITGDI !PanicCode=1 - RUN_TEST_STEP 100 T_GraphicsBitgdiApi utilityClearPanicDlg -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0015 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0016 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0016 -//! @SYMAPI CFbsBitGc::BitBlt(const TPoint{ref}, const CFbsBitGc{ref}, const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 24/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a rectangle area (8000, 8000, 8010, 8010) from another CFbsBitGc object. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create 2 CFbsBitGc objects. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the 2 CFbsBitGc objects to draw to the CFbsScreenDevice object. -//! 5. Draw a rectangle (0, 0, 40, 40) in color TRgb(255, 0, 0) with solid brush TRgb(255, 0, 0) with first CFbsBitGc object. -//! 6. Draw a rectangle (8000, 8000, 8010, 8010) area on second CFbsBitGc object from first CFbsBitGc object. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc objects and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The rectangle will not be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitGc fbsBitGc2 - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitGc2 NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0016-NewL_command04 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0016-Activate_command05 - COMMAND fbsBitGc2 Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0016-Activate_command06 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0016-SetBrushColor_command07 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0016-SetBrushStyle_command08 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0016-SetPenColor_command09 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-0016-DrawRect_command10 - COMMAND fbsBitGc2 BitBlt GRAPHICS-BITGDI-FbsBitGc-PublicApi-0016-BitBlt_command11 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsBitGc2 ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0016 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0017 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0017 -//! @SYMAPI CFbsBitGc::BitBlt(const TPoint{ref}, const CFbsBitGc{ref}, const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 24/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a rectangle at point (8000, 8000) from another CFbsBitGc object. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create 2 CFbsBitGc objects. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the 2 CFbsBitGc objects to draw to the CFbsScreenDevice object. -//! 5. Draw a rectangle (0, 0, 40, 40) in color TRgb(255, 0, 0) with solid brush TRgb(255, 0, 0) with first CFbsBitGc object. -//! 6. Draw a rectangle (0, 0, 40, 40) area on second CFbsBitGc object from first CFbsBitGc object at point (8000, 8000). -//! 7. Disconnect RFbsSession and destruct CFbsBitGc objects and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The rectangle will not be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitGc fbsBitGc2 - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitGc2 NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0017-NewL_command04 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0017-Activate_command05 - COMMAND fbsBitGc2 Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0017-Activate_command06 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0017-SetBrushColor_command07 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0017-SetBrushStyle_command08 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0017-SetPenColor_command09 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-0017-DrawRect_command10 - COMMAND fbsBitGc2 BitBlt GRAPHICS-BITGDI-FbsBitGc-PublicApi-0017-BitBlt_command11 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsBitGc2 ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0017 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0018 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0018 -//! @SYMAPI CFbsBitGc::BitBlt(const TPoint{ref}, const CFbsBitGc{ref}, const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 24/12/2008 -//! @SYMTestCaseDesc Draw a rectangle from another CFbsBitGc object with draw mode set to EDrawModeWriteAlpha. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create 2 CFbsBitGc objects. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the 2 CFbsBitGc objects to draw to the CFbsScreenDevice object. -//! 5. Set draw mode to EDrawModeWriteAlpha to the 2nd CFbsBitGc object. -//! 6. Draw a rectangle (0, 0, 40, 40) in color TRgb(255, 0, 0) with solid brush TRgb(255, 0, 0) with first CFbsBitGc object. -//! 7. Draw a rectangle (0, 0, 40, 40) area on second CFbsBitGc object from first CFbsBitGc object at point (50, 50). -//! 8. Check the rectangle drawn by second CFbsBitGc object. -//! 9. Disconnect RFbsSession and destruct CFbsBitGc objects and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Draw from first CFbsBitGc object without error. -//! 2. The drawing result is as expected. -//! 3. The rectangle is drawn in pen in color TRgb(0, 0, 0) with brush TRgb(255, 0, 0). -//! 4. Check the drawn rectangle. -//! Check pixel1~pixel4 outside the drawn rectangle area. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitGc fbsBitGc2 - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitGc2 NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0018-NewL_command04 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0018-Activate_command05 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc2 Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0018-Activate_command07 - COMMAND fbsBitGc2 Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0018-SetBrushColor_command09 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0018-SetBrushStyle_command10 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0018-SetPenColor_command11 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-0018-DrawRect_command12 - COMMAND fbsBitGc2 SetClippingRegion GRAPHICS-BITGDI-FbsBitGc-PublicApi-0018-SetClippingRegion_command13 - COMMAND fbsBitGc2 SetDrawMode GRAPHICS-BITGDI-FbsBitGc-PublicApi-0018-SetDrawMode_command14 - COMMAND fbsBitGc2 BitBlt GRAPHICS-BITGDI-FbsBitGc-PublicApi-0018-BitBlt_command15 - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0018-checkRectColor_command16 - COMMAND fbsScrDev checkPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0018-checkPixels_command17 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsBitGc2 ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0018 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0022 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0022 -//! @SYMAPI CFbsBitGc::BitBlt(const TPoint{ref}, const CFbsBitmap{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 24/12/2008 -//! @SYMTestCaseDesc Draw a whole CFbsBitmap object. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and a CFbsBitmap object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load a bitmap to CFbsBitmap object. -//! 6. Draw the bitmap. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will be drawn -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0022-NewL_command04 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0022-Activate_command05 - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0022-Load_command06 - COMMAND fbsBitGc BitBlt GRAPHICS-BITGDI-FbsBitGc-PublicApi-0022-BitBlt_command07 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0022 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0023 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0023 -//! @SYMAPI CFbsBitGc::BitBlt(const TPoint{ref}, const CFbsBitmap{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 24/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a whole CFbsBitmap object using a non-activated CFbsBitGc object. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and a CFbsBitmap object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load a bitmap to CFbsBitmap object. -//! 6. Draw the bitmap. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will not be drawn. Get Panic code 1 and PanicString BITGDI. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0023-NewL_command04 - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0023-Load_command05 - COMMAND fbsBitGc BitBlt GRAPHICS-BITGDI-FbsBitGc-PublicApi-0023-BitBlt_command06 - END_TEST_BLOCK !PanicString=BITGDI !PanicCode=1 - RUN_TEST_STEP 100 T_GraphicsBitgdiApi utilityClearPanicDlg -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0023 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0024 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0024 -//! @SYMAPI CFbsBitGc::BitBlt(const TPoint{ref}, const CFbsBitmap{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 26/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a null CFbsBitmap object. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and a CFbsBitmap object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Draw the bitmap. -//! 6. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will not be drawn -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0024-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0024-Activate_command04 - COMMAND fbsBitGc BitBlt GRAPHICS-BITGDI-FbsBitGc-PublicApi-0024-BitBlt_command05 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0024 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0026 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0026 -//! @SYMAPI CFbsBitGc::BitBlt(const TPoint{ref}, const CFbsBitmap{ptr}, const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 24/12/2008 -//! @SYMTestCaseDesc Draw a rectangle from CFbsBitmap object. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and a CFbsBitmap object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load a bitmap to CFbsBitmap object. -//! 6. Draw the bitmap. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will be drawn -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0026-NewL_command04 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0026-Activate_command05 - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0026-Load_command06 - COMMAND fbsBitGc BitBlt GRAPHICS-BITGDI-FbsBitGc-PublicApi-0026-BitBlt_command07 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0026 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0027 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0027 -//! @SYMAPI CFbsBitGc::BitBlt(const TPoint{ref}, const CFbsBitmap{ptr}, const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 26/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a rectangle from a not loaded CFbsBitmap object. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and a CFbsBitmap object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Draw the bitmap. -//! 6. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will not be drawn -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0027-NewL_command04 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0027-Activate_command05 - COMMAND fbsBitGc BitBlt GRAPHICS-BITGDI-FbsBitGc-PublicApi-0027-BitBlt_command06 - COMMAND fbsBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0027 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0028 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0028 -//! @SYMAPI CFbsBitGc::BitBlt(const TPoint{ref}, const CFbsBitmap{ptr}, const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 26/12/2008 -//! @SYMTestCaseDesc Negative case. Draw an empty rectangle from CFbsBitmap object. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and a CFbsBitmap object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load a bitmap to CFbsBitmap object. -//! 6. Draw the bitmap. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will not be drawn -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0028-NewL_command04 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0028-Activate_command05 - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0028-Load_command06 - COMMAND fbsBitGc BitBlt GRAPHICS-BITGDI-FbsBitGc-PublicApi-0028-BitBlt_command07 - COMMAND fbsScrDev Update - COMMAND fbsBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0028 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0029 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0029 -//! @SYMAPI CFbsBitGc::BitBlt(const TPoint{ref}, const CFbsBitmap{ptr}, const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 26/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a rectangle area of a bitmap which is not inside the bitmap. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and a CFbsBitmap object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load a bitmap to CFbsBitmap object. -//! 6. Draw the bitmap. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will not be drawn -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0029-NewL_command04 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0029-Activate_command05 - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0029-Load_command06 - COMMAND fbsBitGc BitBlt GRAPHICS-BITGDI-FbsBitGc-PublicApi-0029-BitBlt_command07 - COMMAND fbsScrDev Update - COMMAND fbsBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0029 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0030 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0030 -//! @SYMAPI CFbsBitGc::BitBlt(const TPoint{ref}, const CFbsBitmap{ptr}, const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 26/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a rectangle area of a bitmap to an area starting from TPoint(8000, 8000). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and a CFbsBitmap object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load a bitmap to CFbsBitmap object. -//! 6. Draw the bitmap. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will not be drawn -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0030-NewL_command04 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0030-Activate_command05 - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0030-Load_command06 - COMMAND fbsBitGc BitBlt GRAPHICS-BITGDI-FbsBitGc-PublicApi-0030-BitBlt_command07 - COMMAND fbsScrDev Update - COMMAND fbsBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0030 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0031 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0031 -//! @SYMAPI CFbsBitGc::BitBlt(const TPoint{ref}, const CFbsBitmap{ptr}, const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 26/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a rectangle area of a bitmap to an area which doesnt intersect with clipping rectangle. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and a CFbsBitmap object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set clipping rectangle (8000, 8000, 8005, 8005). -//! 6. Load a bitmap to CFbsBitmap object. -//! 7. Draw the bitmap. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will not be drawn -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0031-NewL_command04 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0031-Activate_command05 - COMMAND fbsBitGc SetClippingRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-0031-SetClippingRect_command06 - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0031-Load_command07 - COMMAND fbsBitGc BitBlt GRAPHICS-BITGDI-FbsBitGc-PublicApi-0031-BitBlt_command08 - COMMAND fbsScrDev Update - COMMAND fbsBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0031 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0032 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0032 -//! @SYMAPI CFbsBitGc::BitBlt(const TPoint{ref}, const CFbsBitmap{ptr}, const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 26/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a rectangle area of a bitmap using a non-activated CFbsBitGc object. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and a CFbsBitmap object. -//! 4. Load a bitmap to CFbsBitmap object. -//! 5. Draw the bitmap. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get Panic code 1 and PanicString BITGDI. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0032-Load_command04 - COMMAND fbsBitGc BitBlt GRAPHICS-BITGDI-FbsBitGc-PublicApi-0032-BitBlt_command05 - END_TEST_BLOCK !PanicString=BITGDI !PanicCode=1 - RUN_TEST_STEP 100 T_GraphicsBitgdiApi utilityClearPanicDlg -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0032 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0033 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0033 -//! @SYMAPI CFbsBitGc::BitBlt(const TPoint{ref}, const CFbsBitmap{ptr}, const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 30/12/2008 -//! @SYMTestCaseDesc Draw a bitmap and compare the destination rectangle with another rectangle which is the same to the destination rectangle before draw. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and a CFbsBitmap object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Create and connect a RWsSession object. -//! 6. Create a CWsScreenDevice object and construct it with the same screen number to CFbsScreenDevice object. -//! 7. Set clipping rectangle of CFbsBitGc object and compare the rectangle right to it. -//! 8. Load the bitmap. -//! 9. Draw the bitmap. -//! 10. Compare the destination rectangle with the rectangle right to it. -//! 11. Disconnect RFbsSession, close RWsSession. Destruct CFbsBitGc object, CFbsScreenDevice object, CWsScreenDevice object, and CFbsBitmap object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will be drawn. And the two rectangles are the same before draw. After draw, they are different. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RWsSession wsSession - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CWsScreenDevice wsScrDev - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND fbsSession Connect - COMMAND fbsBitmap new - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0033-NewL_command04 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0033-Activate_command05 - COMMAND fbsBitGc Clear - COMMAND wsSession new - COMMAND wsSession Connect - COMMAND wsScrDev new GRAPHICS-BITGDI-FbsBitGc-PublicApi-0033-new_command09 - COMMAND wsScrDev Construct GRAPHICS-BITGDI-FbsBitGc-PublicApi-0033-Construct_command10 - COMMAND wsScrDev RectCompare GRAPHICS-BITGDI-FbsBitGc-PublicApi-0033-RectCompare_command11 - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0033-Load_command12 - COMMAND fbsBitGc BitBlt GRAPHICS-BITGDI-FbsBitGc-PublicApi-0033-BitBlt_command13 - COMMAND wsScrDev RectCompare GRAPHICS-BITGDI-FbsBitGc-PublicApi-0033-RectCompare_command14 - COMMAND wsScrDev ~ - COMMAND wsSession Close - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0033 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0042 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0042 -//! @SYMAPI CFbsBitGc::BitBltMasked(const TPoint{ref}, const CFbsBitmap{ptr}, const TRect{ref}, const CFbsBitmap{ptr}, TBool) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 24/12/2008 -//! @SYMTestCaseDesc Performs a masked bitmap block transfer. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and 2 CFbsBitmap object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load src and mask bitmaps. -//! 6. Draw the masked bitmap. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will be drawn -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - CREATE_OBJECT CFbsBitmap fbsMaskBitmap - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsMaskBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0042-NewL_command05 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0042-Activate_command06 - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0042-Load_command07 - COMMAND fbsMaskBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0042-Load_command08 - COMMAND fbsBitGc BitBltMasked GRAPHICS-BITGDI-FbsBitGc-PublicApi-0042-BitBltMasked_command09 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsBitmap ~ - COMMAND fbsMaskBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0042 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0043 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0043 -//! @SYMAPI CFbsBitGc::BitBltMasked(const TPoint{ref}, const CFbsBitmap{ptr}, const TRect{ref}, const CFbsBitmap{ptr}, TBool) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 24/12/2008 -//! @SYMTestCaseDesc Negative case. Performs a masked bitmap block transfer from a null src bitmap. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and 2 CFbsBitmap objects. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load bitmap to mask CFbsBitmap object. -//! 6. Draw the masked bitmap. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will not be drawn -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - CREATE_OBJECT CFbsBitmap fbsMaskBitmap - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsMaskBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0043-NewL_command04 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0043-Activate_command05 - COMMAND fbsMaskBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0043-Load_command06 - COMMAND fbsBitGc BitBltMasked GRAPHICS-BITGDI-FbsBitGc-PublicApi-0043-BitBltMasked_command07 - COMMAND fbsScrDev Update - COMMAND fbsMaskBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0043 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0044 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0044 -//! @SYMAPI CFbsBitGc::BitBltMasked(const TPoint{ref}, const CFbsBitmap{ptr}, const TRect{ref}, const CFbsBitmap{ptr}, TBool) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 24/12/2008 -//! @SYMTestCaseDesc Negative case. Performs a masked bitmap block transfer from a not loaded src bitmap. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and 2 CFbsBitmap objects. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load bitmap to mask CFbsBitmap object. -//! 6. Draw the masked bitmap. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will not be drawn -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - CREATE_OBJECT CFbsBitmap fbsMaskBitmap - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsMaskBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0044-NewL_command05 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0044-Activate_command06 - COMMAND fbsMaskBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0044-Load_command07 - COMMAND fbsBitGc BitBltMasked GRAPHICS-BITGDI-FbsBitGc-PublicApi-0044-BitBltMasked_command08 - COMMAND fbsScrDev Update - COMMAND fbsBitmap ~ - COMMAND fbsMaskBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0044 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0045 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0045 -//! @SYMAPI CFbsBitGc::BitBltMasked(const TPoint{ref}, const CFbsBitmap{ptr}, const TRect{ref}, const CFbsBitmap{ptr}, TBool) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 29/12/2008 -//! @SYMTestCaseDesc Negative case. Performs a masked bitmap block transfer with a null mask bitmap. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and 2 CFbsBitmap objects. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load bitmap to src CFbsBitmap object. -//! 6. Draw the bitmap with null mask bitmap. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will not be drawn -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - CREATE_OBJECT CFbsBitmap fbsMaskBitmap - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0045-NewL_command04 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0045-Activate_command05 - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0045-Load_command06 - COMMAND fbsBitGc BitBltMasked GRAPHICS-BITGDI-FbsBitGc-PublicApi-0045-BitBltMasked_command07 - COMMAND fbsScrDev Update - COMMAND fbsBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0045 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0046 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0046 -//! @SYMAPI CFbsBitGc::BitBltMasked(const TPoint{ref}, const CFbsBitmap{ptr}, const TRect{ref}, const CFbsBitmap{ptr}, TBool) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 29/12/2008 -//! @SYMTestCaseDesc Negative case. Performs a masked bitmap block transfer with a not loaded mask bitmap. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and 2 CFbsBitmap objects. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load bitmap to src CFbsBitmap object. -//! 6. Draw the bitmap with not loaded mask. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will not be drawn -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - CREATE_OBJECT CFbsBitmap fbsMaskBitmap - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsMaskBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0046-NewL_command05 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0046-Activate_command06 - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0046-Load_command07 - COMMAND fbsBitGc BitBltMasked GRAPHICS-BITGDI-FbsBitGc-PublicApi-0046-BitBltMasked_command08 - COMMAND fbsScrDev Update - COMMAND fbsBitmap ~ - COMMAND fbsMaskBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0046 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0047 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0047 -//! @SYMAPI CFbsBitGc::BitBltMasked(const TPoint{ref}, const CFbsBitmap{ptr}, const TRect{ref}, const CFbsBitmap{ptr}, TBool) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 29/12/2008 -//! @SYMTestCaseDesc Negative case. Performs a masked bitmap block transfer from an empty rectangle area of source bitmap. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and 2 CFbsBitmap objects. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load src and mask bitmaps. -//! 6. Draw the masked bitmap. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will not be drawn -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - CREATE_OBJECT CFbsBitmap fbsMaskBitmap - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsMaskBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0047-NewL_command05 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0047-Activate_command06 - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0047-Load_command07 - COMMAND fbsMaskBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0047-Load_command08 - COMMAND fbsBitGc BitBltMasked GRAPHICS-BITGDI-FbsBitGc-PublicApi-0047-BitBltMasked_command09 - COMMAND fbsScrDev Update - COMMAND fbsBitmap ~ - COMMAND fbsMaskBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0047 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0048 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0048 -//! @SYMAPI CFbsBitGc::BitBltMasked(const TPoint{ref}, const CFbsBitmap{ptr}, const TRect{ref}, const CFbsBitmap{ptr}, TBool) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 29/12/2008 -//! @SYMTestCaseDesc Negative case. Performs a masked bitmap block transfer from rectangle area (-1000, -1000, -990, -990)of source bitmap. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and 2 CFbsBitmap objects. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load src and mask bitmaps. -//! 6. Draw the masked bitmap. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will not be drawn -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - CREATE_OBJECT CFbsBitmap fbsMaskBitmap - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsMaskBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0048-NewL_command05 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0048-Activate_command06 - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0048-Load_command07 - COMMAND fbsMaskBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0048-Load_command08 - COMMAND fbsBitGc BitBltMasked GRAPHICS-BITGDI-FbsBitGc-PublicApi-0048-BitBltMasked_command09 - COMMAND fbsScrDev Update - COMMAND fbsBitmap ~ - COMMAND fbsMaskBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0048 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0049 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0049 -//! @SYMAPI CFbsBitGc::BitBltMasked(const TPoint{ref}, const CFbsBitmap{ptr}, const TRect{ref}, const CFbsBitmap{ptr}, TBool) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 29/12/2008 -//! @SYMTestCaseDesc Negative case. Performs a masked bitmap block transfer to rectangle area starting from point (-9000, -9000). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and 2 CFbsBitmap objects. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load src and mask bitmaps. -//! 6. Draw the masked bitmap. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will not be drawn -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - CREATE_OBJECT CFbsBitmap fbsMaskBitmap - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsMaskBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0049-NewL_command05 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0049-Activate_command06 - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0049-Load_command07 - COMMAND fbsMaskBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0049-Load_command08 - COMMAND fbsBitGc BitBltMasked GRAPHICS-BITGDI-FbsBitGc-PublicApi-0049-BitBltMasked_command09 - COMMAND fbsScrDev Update - COMMAND fbsBitmap ~ - COMMAND fbsMaskBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0049 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0050 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0050 -//! @SYMAPI CFbsBitGc::BitBltMasked(const TPoint{ref}, const CFbsBitmap{ptr}, const TRect{ref}, const CFbsBitmap{ptr}, TBool) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 29/12/2008 -//! @SYMTestCaseDesc Performs a masked bitmap block transfer with src same to mask bitmap -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and CFbsBitmap object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load bitmap to the CFbsBitmap object. -//! 6. Draw the bitmap. -//! 5. Load src and mask bitmaps. -//! 6. Draw the masked bitmap. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will be drawn -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0050-NewL_command04 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0050-Activate_command05 - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0050-Load_command06 - COMMAND fbsBitGc BitBltMasked GRAPHICS-BITGDI-FbsBitGc-PublicApi-0050-BitBltMasked_command07 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0050 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0051 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0051 -//! @SYMAPI CFbsBitGc::BitBltMasked(const TPoint{ref}, const CFbsBitmap{ptr}, const TRect{ref}, const CFbsBitmap{ptr}, TBool) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 24/12/2008 -//! @SYMTestCaseDesc Performs a masked bitmap block transfer with mask bitmap resize to TSize(10, 8000). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and 2 CFbsBitmap objects. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load src and mask bitmap. -//! 6. Draw the masked bitmap. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will be drawn -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - CREATE_OBJECT CFbsBitmap fbsMaskBitmap - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsMaskBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0051-NewL_command05 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0051-Activate_command06 - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0051-Load_command07 - COMMAND fbsMaskBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0051-Load_command08 - COMMAND fbsMaskBitmap Resize GRAPHICS-BITGDI-FbsBitGc-PublicApi-0051-Resize_command09 - COMMAND fbsBitGc BitBltMasked GRAPHICS-BITGDI-FbsBitGc-PublicApi-0051-BitBltMasked_command10 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsBitmap ~ - COMMAND fbsMaskBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0051 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0052 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0052 -//! @SYMAPI CFbsBitGc::BitBltMasked(const TPoint{ref}, const CFbsBitmap{ptr}, const TRect{ref}, const CFbsBitmap{ptr}, TBool) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 24/12/2008 -//! @SYMTestCaseDesc Performs a masked bitmap block transfer with mask bitmap resize to TSize(8000, 10). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and 2 CFbsBitmap objects. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load src and mask bitmap. -//! 6. Draw the masked bitmap. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will be drawn -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - CREATE_OBJECT CFbsBitmap fbsMaskBitmap - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsMaskBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0052-NewL_command05 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0052-Activate_command06 - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0052-Load_command07 - COMMAND fbsMaskBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0052-Load_command08 - COMMAND fbsMaskBitmap Resize GRAPHICS-BITGDI-FbsBitGc-PublicApi-0052-Resize_command09 - COMMAND fbsBitGc BitBltMasked GRAPHICS-BITGDI-FbsBitGc-PublicApi-0052-BitBltMasked_command10 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsBitmap ~ - COMMAND fbsMaskBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0052 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0091 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0091 -//! @SYMAPI CFbsBitGc::CancelClipping() -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 24/12/2008 -//! @SYMTestCaseDesc Cancel clipping rectangle and region. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Set clipping rectangle to rectangle (10, 10, 30, 30) area. -//! 5. Set clipping region to rectangle (30, 30, 50, 50) area. -//! 6. Cancel clipping. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CancelClipping can be called successfully. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0091-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0091-Activate_command04 - COMMAND fbsBitGc SetClippingRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-0091-SetClippingRect_command05 - COMMAND fbsBitGc SetClippingRegion GRAPHICS-BITGDI-FbsBitGc-PublicApi-0091-SetClippingRegion_command06 - COMMAND fbsBitGc CancelClipping - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0091 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0092 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0092 -//! @SYMAPI CFbsBitGc::CancelClippingRect() -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 24/12/2008 -//! @SYMTestCaseDesc Cancel clipping rectangle. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Cancel clipping rectangle. -//! 5. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CancelClippingRect can be called successfully. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0092-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0092-Activate_command04 - COMMAND fbsBitGc CancelClippingRect - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0092 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0093 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0093 -//! @SYMAPI CFbsBitGc::CancelClippingRect() -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 24/12/2008 -//! @SYMTestCaseDesc Cancel clipping rectangle using a non-activated CFbsBitGc object. -//! @SYMTestActions 1. Create a CFbsBitGc object. -//! 2. Cancel clipping rectangle. -//! 3. Destruct CFbsBitGc object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CancelClippingRect can be called successfully. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsBitGc NewL - COMMAND fbsBitGc CancelClippingRect - COMMAND fbsBitGc ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0093 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0094 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0094 -//! @SYMAPI CFbsBitGc::CancelClippingRegion() -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 24/12/2008 -//! @SYMTestCaseDesc Cancel clipping region. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc to draw to CFbsScreenDevice object. Cancel clipping region. -//! 5. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CancelClippingRegion be called successfully. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0094-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0094-Activate_command04 - COMMAND fbsBitGc CancelClippingRegion - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0094 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0095 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0095 -//! @SYMAPI CFbsBitGc::CancelClippingRegion() -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 24/12/2008 -//! @SYMTestCaseDesc Cancel clipping region using a non-activated CFbsBitGc object. -//! @SYMTestActions 1. Create a CFbsBitGc object. -//! 2. Cancel clipping region. -//! 3. Destruct CFbsBitGc object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CancelClippingRegion can be called successfully. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsBitGc NewL - COMMAND fbsBitGc CancelClippingRegion - COMMAND fbsBitGc ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0095 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0096 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0096 -//! @SYMAPI CFbsBitGc::Clear() -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 24/12/2008 -//! @SYMTestCaseDesc Clear the whole device. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate CFbsBitGc object to draw to CFbsScreenDevice object. -//! 5. Clear the device with brush color TRgb(255, 0, 0). -//! 6. Check some pixels. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. The whole device is cleared. -//! 2. Check pixel1~pixel4 specified in test data. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0096-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0096-Activate_command04 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0096-SetBrushColor_command05 - COMMAND fbsBitGc Clear - COMMAND fbsScrDev checkPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0096-checkPixels_command07 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0096 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0097 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0097 -//! @SYMAPI CFbsBitGc::Clear() -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 24/12/2008 -//! @SYMTestCaseDesc Clear the whole device starting from point (0, 10) -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate CFbsBitGc object to draw to CFbsScreenDevice object. -//! 5. Set origin point to (0, 10) -//! 6. Clear the device with brush color TRgb(255, 0, 0). -//! 7. Check some pixels. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. The whole device is cleared, despite of start point. -//! 2. Check pixel1~pixel4 specified in test data. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0097-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0097-Activate_command04 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0097-SetBrushColor_command05 - COMMAND fbsBitGc SetOrigin GRAPHICS-BITGDI-FbsBitGc-PublicApi-0097-SetOrigin_command06 - COMMAND fbsBitGc Clear - COMMAND fbsScrDev checkPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0097-checkPixels_command08 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0097 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0098 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0098 -//! @SYMAPI CFbsBitGc::Clear() -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 24/12/2008 -//! @SYMTestCaseDesc Clear the whole device starting from point (10, 0) -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate CFbsBitGc object to draw to CFbsScreenDevice object. -//! 5. Set origin point to (10, 0) -//! 6. Clear the device with brush color TRgb(255, 0, 0). -//! 7. Check some pixels. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. The whole device is cleared, despite of start point. -//! 2. Check pixel1~pixel4 specified in test data. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0098-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0098-Activate_command04 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0098-SetBrushColor_command05 - COMMAND fbsBitGc SetOrigin GRAPHICS-BITGDI-FbsBitGc-PublicApi-0098-SetOrigin_command06 - COMMAND fbsBitGc Clear - COMMAND fbsScrDev checkPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0098-checkPixels_command08 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0098 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0099 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0099 -//! @SYMAPI CFbsBitGc::Clear(const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 24/12/2008 -//! @SYMTestCaseDesc Clear a rectangle area. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate CFbsBitGc object to draw to CFbsScreenDevice object. -//! 6. Clear the rectangle (0, 0, 100, 100) with brush color TRgb(255, 0, 0). -//! 7. Check some pixels. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. The whole device is cleared, despite of start point. -//! 2. Check pixel1~pixel4 specified in test data. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0099-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0099-Activate_command04 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0099-SetBrushColor_command05 - COMMAND fbsBitGc Clear GRAPHICS-BITGDI-FbsBitGc-PublicApi-0099-Clear_command06 - COMMAND fbsScrDev checkPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0099-checkPixels_command07 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0099 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0100 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0100 -//! @SYMAPI CFbsBitGc::Clear(const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 24/12/2008 -//! @SYMTestCaseDesc Negative case. Clear an empty rectangle area. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate CFbsBitGc object to draw to CFbsScreenDevice object. -//! 6. Clear the rectangle (0, 0, 0, 0) with brush color TRgb(255, 0, 0). -//! 7. Check some pixels. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults This case has no effect. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0100-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0100-Activate_command04 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0100-SetBrushColor_command05 - COMMAND fbsBitGc Clear GRAPHICS-BITGDI-FbsBitGc-PublicApi-0100-Clear_command06 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0100 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0101 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0101 -//! @SYMAPI CFbsBitGc::Clear(const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 24/12/2008 -//! @SYMTestCaseDesc Negative case. Clear a rectangle area (8000, 8000, 8008, 8008). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate CFbsBitGc object to draw to CFbsScreenDevice object. -//! 5. Clear the rectangle (8000, 8000, 8008, 8008) with brush color TRgb(255, 0, 0). -//! 6. Check some pixels. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults This case has no effect. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0101-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0101-Activate_command04 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0101-SetBrushColor_command05 - COMMAND fbsBitGc Clear GRAPHICS-BITGDI-FbsBitGc-PublicApi-0101-Clear_command06 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0101 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0102 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0102 -//! @SYMAPI CFbsBitGc::Clear(const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 26/12/2008 -//! @SYMTestCaseDesc Negative case. Clear a rectangle area which doesnt intersect with clipping rectangle. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate CFbsBitGc object to draw to CFbsScreenDevice object. -//! 5. Set clipping rectangle (120, 120, 50, 50). -//! 6. Clear the rectangle (0, 0, 100, 100) with brush color TRgb(255, 0, 0). -//! 7. Check some pixels. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The Clear will have no effect. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0102-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0102-Activate_command04 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0102-SetBrushColor_command05 - COMMAND fbsBitGc SetClippingRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-0102-SetClippingRect_command06 - COMMAND fbsBitGc Clear GRAPHICS-BITGDI-FbsBitGc-PublicApi-0102-Clear_command07 - COMMAND fbsScrDev checkPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0102-checkPixels_command08 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0102 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0103 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0103 -//! @SYMAPI CFbsBitGc::CopyRect(const TPoint{ref}, const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 24/12/2008 -//! @SYMTestCaseDesc Copy a rectangle. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate CFbsBitGc object to draw to CFbsScreenDevice object. -//! 5. Copy a rectangle (0, 0, 50, 50) with offset TPoint(10, 10) -//! 6. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CopyRect can be called successfully. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0103-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0103-Activate_command04 - COMMAND fbsBitGc CopyRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-0103-CopyRect_command05 - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0103 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0104 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0104 -//! @SYMAPI CFbsBitGc::CopyRect(const TPoint{ref}, const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 24/12/2008 -//! @SYMTestCaseDesc Negative case. Copy an empty rectangle. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate CFbsBitGc object to draw to CFbsScreenDevice object. -//! 5. Copy a rectangle (0, 0, 0, 0) with offset TPoint(10, 10) -//! 6. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CopyRect can be called successfully. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0104-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0104-Activate_command04 - COMMAND fbsBitGc CopyRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-0104-CopyRect_command05 - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0104 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0105 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0105 -//! @SYMAPI CFbsBitGc::CopyRect(const TPoint{ref}, const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 24/12/2008 -//! @SYMTestCaseDesc Negative case. Copy a rectangle with offset (0, 0). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate CFbsBitGc object to draw to CFbsScreenDevice object. -//! 5. Copy a rectangle (0, 0, 50, 50) with offset TPoint(0, 0) -//! 6. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CopyRect can be called successfully. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0105-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0105-Activate_command04 - COMMAND fbsBitGc CopyRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-0105-CopyRect_command05 - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0105 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0106 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0106 -//! @SYMAPI CFbsBitGc::CopyRect(const TPoint{ref}, const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 24/12/2008 -//! @SYMTestCaseDesc Negative case. Copy a rectangle area (8000, 8000, 8050, 8050). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate CFbsBitGc object to draw to CFbsScreenDevice object. -//! 5. Copy a rectangle (8000, 8000, 8050, 8050) with offset TPoint(5, 5) -//! 6. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CopyRect can be called successfully. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0106-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0106-Activate_command04 - COMMAND fbsBitGc CopyRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-0106-CopyRect_command05 - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0106 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0107 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0107 -//! @SYMAPI CFbsBitGc::CopyRect(const TPoint{ref}, const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 24/12/2008 -//! @SYMTestCaseDesc Negative case. Copy a rectangle which doesnt intersect with clipping rectangle. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate CFbsBitGc object to draw to CFbsScreenDevice object. -//! 5. Set clipping rectangle (10, 10, 30, 30). -//! 6. Copy a rectangle (40, 40, 50, 50) with offset TPoint(5, 5) -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CopyRect can be called successfully. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0107-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0107-Activate_command04 - COMMAND fbsBitGc SetClippingRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-0107-SetClippingRect_command05 - COMMAND fbsBitGc CopyRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-0107-CopyRect_command06 - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0107 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0111 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0111 -//! @SYMAPI CFbsBitGc::CopySettings(const CFbsBitGc{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 24/12/2008 -//! @SYMTestCaseDesc Copy settings from another CFbsBitGc object. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create 2 CFbsBitGc objects. -//! 3. Create a CFbsScreenDevice object. -//! 4. Copy settings from 2nd CFbsBitGc object to 1st CFbsBitGc object. -//! 5. Disconnect RFbsSession and destruct CFbsBitGc objects and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CopySettings can be called successfully. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitGc fbsBitGc2 - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitGc2 NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0111-NewL_command04 - COMMAND fbsBitGc2 Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0111-Activate_command05 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0111-Activate_command06 - COMMAND fbsBitGc CopySettings GRAPHICS-BITGDI-FbsBitGc-PublicApi-0111-CopySettings_command07 - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsBitGc2 ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0111 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0112 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0112 -//! @SYMAPI CFbsBitGc::CopySettings(const CFbsBitGc{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 26/12/2008 -//! @SYMTestCaseDesc Copy settings from another CFbsBitGc object which has font set. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create 2 CFbsBitGc objects and CFbsTypefaceStore object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Set font to 2nd CFbsBitGc object. -//! 5. Copy settings from 2nd CFbsBitGc object to 1st CFbsBitGc object. -//! 6. Disconnect RFbsSession and destruct CFbsBitGc objects and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CopySettings can be called successfully. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitGc fbsBitGc2 - CREATE_OBJECT CFbsFont fbsFont - CREATE_OBJECT CFbsTypefaceStore fbsTypefaceStore - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsTypefaceStore NewL - COMMAND fbsBitGc NewL - COMMAND fbsBitGc2 NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0112-NewL_command05 - COMMAND fbsBitGc2 Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0112-Activate_command06 - COMMAND fbsTypefaceStore GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0112-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc2 UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0112-UseFont_command08 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0112-Activate_command09 - COMMAND fbsBitGc CopySettings GRAPHICS-BITGDI-FbsBitGc-PublicApi-0112-CopySettings_command10 - COMMAND fbsTypefaceStore ~ - COMMAND fbsBitGc ~ - COMMAND fbsBitGc2 ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0112 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0113 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0113 -//! @SYMAPI CFbsBitGc::CopySettings(const CFbsBitGc{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 26/12/2008 -//! @SYMTestCaseDesc Copy settings from another CFbsBitGc object which has brush pattern set. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create 2 CFbsBitGc objects and CFbsBitmap object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Set font to 2nd CFbsBitGc object. -//! 5. Copy settings from 2nd CFbsBitGc object to 1st CFbsBitGc object. -//! 6. Disconnect RFbsSession and destruct CFbsBitGc objects and CFbsScreenDevice object, CFbsBitmap object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CopySettings can be called successfully. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitGc fbsBitGc2 - CREATE_OBJECT CFbsBitmap fbsBitmap - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitmap new - COMMAND fbsBitGc NewL - COMMAND fbsBitGc2 NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0113-NewL_command05 - COMMAND fbsBitGc2 Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0113-Activate_command06 - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0113-Load_command07 - COMMAND fbsBitGc2 UseBrushPattern GRAPHICS-BITGDI-FbsBitGc-PublicApi-0113-UseBrushPattern_command08 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0113-Activate_command09 - COMMAND fbsBitGc CopySettings GRAPHICS-BITGDI-FbsBitGc-PublicApi-0113-CopySettings_command10 - COMMAND fbsBitmap ~ - COMMAND fbsBitGc ~ - COMMAND fbsBitGc2 ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0113 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0114 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0114 -//! @SYMAPI CFbsBitGc::Device() -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Get the graphics device currently being drawn to by a CFbsBitGc object. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate CFbsBitGc object to draw to CFbsScreenDevice object. -//! 5. Get the device. -//! 6. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Device can be called successfully. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0114-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0114-Activate_command04 - COMMAND fbsBitGc Device - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0114 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0115 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0115 -//! @SYMAPI CFbsBitGc::Device() -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negative case. Get the graphics device currently being drawn to using a non-activated CFbsBitGc object. -//! @SYMTestActions 1. Create a CFbsBitGc object. -//! 2. Get the device. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Device can be called successfully. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Device - COMMAND fbsBitGc ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0115 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0116 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0116 -//! @SYMAPI CFbsBitGc::DiscardBrushPattern() -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 07/01/2009 -//! @SYMTestCaseDesc Discards a non-built-in brush pattern. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsBitmap object. -//! 4. Sets the brush pattern to the CFbsBitmap object. -//! 5. Test if brush pattern is used. -//! 6. Discard brush pattern and test if brush pattern is used. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsBitmap object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults DiscardBrushPattern() is called without error. Before this call, IsBrushPatternUsed() returns true, and returns false after this call. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0116-Load_command04 - COMMAND fbsBitGc UseBrushPattern GRAPHICS-BITGDI-FbsBitGc-PublicApi-0116-UseBrushPattern_command05 - COMMAND fbsBitGc IsBrushPatternUsed GRAPHICS-BITGDI-FbsBitGc-PublicApi-0116-IsBrushPatternUsed_command06 - COMMAND fbsBitGc DiscardBrushPattern - COMMAND fbsBitGc IsBrushPatternUsed GRAPHICS-BITGDI-FbsBitGc-PublicApi-0116-IsBrushPatternUsed_command08 - COMMAND fbsBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0116 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0117 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0117 -//! @SYMAPI CFbsBitGc::DiscardBrushPattern() -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 07/01/2009 -//! @SYMTestCaseDesc Negative case. Discards a non-built-in brush pattern without using any brush pattern. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Discard brush pattern. -//! 4. Disconnect RFbsSession and destruct CFbsBitGc object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults DiscardBrushPattern() is called without error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitGc DiscardBrushPattern - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0117 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0118 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0118 -//! @SYMAPI CFbsBitGc::DiscardBrushPattern() -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 07/01/2009 -//! @SYMTestCaseDesc Discards a non-built-in brush pattern when brush style set to ESolidBrush. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Sets the brush style to ESolidBrush. -//! 4. Discard brush pattern. -//! 4. Disconnect RFbsSession and destruct CFbsBitGc object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults DiscardBrushPattern() is called without error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0118-SetBrushStyle_command03 - COMMAND fbsBitGc DiscardBrushPattern - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0118 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0119 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0119 -//! @SYMAPI CFbsBitGc::DiscardFont() -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 07/01/2009 -//! @SYMTestCaseDesc Discards a selected device font. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsFont object and a CFbsTypefaceStore object. -//! 4. Get font and select the device font using CFbsBitGc object. -//! 5. Test if font is used. -//! 6. Discard font and test if font is used. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object, release CFbsFont object and CFbsTypefaceStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults DiscardFont() is called without error. Before this call, IsFontUsed() returns true, and returns false after this call. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsTypefaceStore fbsTypefaceStore - CREATE_OBJECT CFbsFont fbsFont - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsTypefaceStore NewL - COMMAND fbsTypefaceStore GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0119-GetNearestFontToDesignHeightInPixels_command04 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0119-UseFont_command05 - COMMAND fbsBitGc IsFontUsed GRAPHICS-BITGDI-FbsBitGc-PublicApi-0119-IsFontUsed_command06 - COMMAND fbsBitGc DiscardFont - COMMAND fbsBitGc IsFontUsed GRAPHICS-BITGDI-FbsBitGc-PublicApi-0119-IsFontUsed_command08 - COMMAND fbsTypefaceStore ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0119-ReleaseFont_command09 - COMMAND fbsTypefaceStore ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0119 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0120 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0120 -//! @SYMAPI CFbsBitGc::DiscardFont() -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 07/01/2009 -//! @SYMTestCaseDesc Negative case. Discards a selected device font using a CFbsBitGc object which does not select any device font. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Discard font. -//! 4. Disconnect RFbsSession and destruct CFbsBitGc object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults DiscardFont() is called without error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitGc DiscardFont - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0120 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0121 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0121 -//! @SYMAPI CFbsBitGc::DrawArc(const TRect{ref}, const TPoint{ref}, const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 28/11/2008 -//! @SYMTestCaseDesc Draw an arc in a rectangle(0, 0, 100, 200) area from start point to end point. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device with brush color just set. -//! 6. Draw the arc in default color TRgb(0, 0, 0). -//! 7. Check pixels on the arc. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Draw an arc without error. -//! 2. The drawing result is as expected. -//! 3. The arc is drawn in pen in color TRgb(0, 0, 0). -//! Only check sample points pixel1~pixel5 specified in test data on the arc. -//! 4. The adjacent points of above points are not drawn so that they are in color TRgb(255, 255, 255). -//! Only check sample points pixel6~pixel10 specified in test data. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0121-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0121-Activate_command04 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0121-SetBrushColor_command05 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc DrawArc GRAPHICS-BITGDI-FbsBitGc-PublicApi-0121-DrawArc_command07 - COMMAND fbsScrDev checkPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0121-checkPixels_command08 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0121 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0122 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0122 -//! @SYMAPI CFbsBitGc::DrawArc(const TRect{ref}, const TPoint{ref}, const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/12/2008 -//! @SYMTestCaseDesc Negative case. Draw an arc in a rectangle(0, 0, 0, 0) area from start point to end point. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device with brush color just set. -//! 6. Draw the arc in default color TRgb(0, 0, 0). -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The arc will not be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0122-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0122-Activate_command04 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0122-SetBrushColor_command05 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc DrawArc GRAPHICS-BITGDI-FbsBitGc-PublicApi-0122-DrawArc_command07 - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0122 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0123 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0123 -//! @SYMAPI CFbsBitGc::DrawArc(const TRect{ref}, const TPoint{ref}, const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/12/2008 -//! @SYMTestCaseDesc Negative case. Draw an arc in a rectangle(0, 0, 100, 200) area with null pen. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device with brush color just set. -//! 6. Set pen style to null pen. -//! 6. Draw the arc. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The arc will not be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0123-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0123-Activate_command04 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0123-SetBrushColor_command05 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0123-SetPenStyle_command07 - COMMAND fbsBitGc DrawArc GRAPHICS-BITGDI-FbsBitGc-PublicApi-0123-DrawArc_command08 - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0123 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0124 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0124 -//! @SYMAPI CFbsBitGc::DrawArc(const TRect{ref}, const TPoint{ref}, const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/12/2008 -//! @SYMTestCaseDesc Negative case. Draw an arc in a rectangle(0, 0, 100, 200) area with 0-width pen. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device with brush color just set. -//! 6. Set pen size to TSize(0, 1). -//! 7. Draw the arc. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The arc will not be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0124-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0124-Activate_command04 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0124-SetBrushColor_command05 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenSize GRAPHICS-BITGDI-FbsBitGc-PublicApi-0124-SetPenSize_command07 - COMMAND fbsBitGc DrawArc GRAPHICS-BITGDI-FbsBitGc-PublicApi-0124-DrawArc_command08 - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0124 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0125 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0125 -//! @SYMAPI CFbsBitGc::DrawArc(const TRect{ref}, const TPoint{ref}, const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/12/2008 -//! @SYMTestCaseDesc Negative case. Draw an arc in a rectangle(0, 0, 100, 200) area with 0-height pen. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device with brush color just set. -//! 6. Set pen size to TSize(1, 0). -//! 7. Draw the arc. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The arc will not be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0125-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0125-Activate_command04 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0125-SetBrushColor_command05 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenSize GRAPHICS-BITGDI-FbsBitGc-PublicApi-0125-SetPenSize_command07 - COMMAND fbsBitGc DrawArc GRAPHICS-BITGDI-FbsBitGc-PublicApi-0125-DrawArc_command08 - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0125 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0126 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0126 -//! @SYMAPI CFbsBitGc::DrawArc(const TRect{ref}, const TPoint{ref}, const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/12/2008 -//! @SYMTestCaseDesc Negative case. Draw an arc in a rectangle(1000, 1000, 8000, 8000) area. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device with brush color just set. -//! 6. Draw the arc. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The arc will not be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0126-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0126-Activate_command04 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0126-SetBrushColor_command05 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc DrawArc GRAPHICS-BITGDI-FbsBitGc-PublicApi-0126-DrawArc_command07 - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0126 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0128 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0128 -//! @SYMAPI CFbsBitGc::DrawArc(const TRect{ref}, const TPoint{ref}, const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 03/12/2008 -//! @SYMTestCaseDesc Negative case. Draw an arc in a rectangle(0, 0, 100, 200) area from start point to end point, -//! without activating the graphic context. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Draw the arc -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get panic code 1 of BITGDI when trying to draw using a non-activated graphics context. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsBitGc NewL - COMMAND fbsBitGc DrawArc GRAPHICS-BITGDI-FbsBitGc-PublicApi-0128-DrawArc_command02 - END_TEST_BLOCK !PanicString=BITGDI !PanicCode=1 - RUN_TEST_STEP 100 T_GraphicsBitgdiApi utilityClearPanicDlg -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0128 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0129 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0129 -//! @SYMAPI CFbsBitGc::DrawArc(const TRect{ref}, const TPoint{ref}, const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 03/12/2008 -//! @SYMTestCaseDesc Negative case. Draw an arc in a rectangle(0, 0, 100, 200) area from start point to end point, -//! using a graphic context activated to draw to an invalid graphic device. -//! @SYMTestActions 1. Create a CFbsBitGc object. -//! 2. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 3. Draw the arc. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get panic code 1 of BITGDI when trying to draw to an invalid device. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0129-Activate_command02 - COMMAND fbsBitGc DrawArc GRAPHICS-BITGDI-FbsBitGc-PublicApi-0129-DrawArc_command03 - END_TEST_BLOCK !PanicString=BITGDI !PanicCode=1 - RUN_TEST_STEP 100 T_GraphicsBitgdiApi utilityClearPanicDlg -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0129 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0130 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0130 -//! @SYMAPI CFbsBitGc::DrawPie(const TRect{ref}, const TPoint{ref}, const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 03/12/2008 -//! @SYMTestCaseDesc Draw a pie in a rectangle(0, 0, 100, 200) area from start point to end point. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device with brush color just set. -//! 6. Set pen and brush color to draw and fill the pie in color TRgb(255, 0, 0). -//! 7. Draw the pie. -//! 8. Check pixels in the pie, on the border of the pie, and outside the pie. -//! 9. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Draw a pie without error. -//! 2. The drawing result is as expected. -//! 3. The pie is drawn and filled with color TRgb(255, 0, 0). -//! Check the border of pie. Pick sample points pixel1~pixel10 specified in test data. -//! Inside the pie, check sample points pixel11~pixel14 specified in test data. -//! 4. Nothing is drawn outside the pie, in color TRgb(255, 255, 255). -//! Only check sample points pixel15~pixel17 specified in test data. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0130-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0130-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0130-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0130-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0130-SetBrushColor_command08 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0130-SetPenColor_command09 - COMMAND fbsBitGc DrawPie GRAPHICS-BITGDI-FbsBitGc-PublicApi-0130-DrawPie_command10 - COMMAND fbsScrDev checkPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0130-checkPixels_command11 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0130 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0131 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0131 -//! @SYMAPI CFbsBitGc::DrawPie(const TRect{ref}, const TPoint{ref}, const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/12/2008 -//! @SYMTestCaseDesc Draw a pie in a rectangle(0, 0, 100, 200) area from start point to start point. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device with brush color just set. -//! 6. Set pen and brush color to draw and fill the pie in color TRgb(255, 0, 0). -//! 7. Draw the pie. -//! 8. Check pixels in the pie, on the border of the pie, and outside the pie. -//! 9. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Draw a pie without error. -//! 2. The drawing result is as expected. -//! 3. The pie is drawn and filled with color TRgb(255, 0, 0). -//! Check the border of pie. Pick sample points pixel1~pixel10 specified in test data. -//! Inside the pie, check sample points pixel11~pixel14 specified in test data. -//! 4. Nothing is drawn outside the pie, in color TRgb(255, 255, 255). -//! Only check sample points pixel15~pixel17 specified in test data. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0131-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0131-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0131-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0131-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0131-SetBrushColor_command08 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0131-SetPenColor_command09 - COMMAND fbsBitGc DrawPie GRAPHICS-BITGDI-FbsBitGc-PublicApi-0131-DrawPie_command10 - COMMAND fbsScrDev checkPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0131-checkPixels_command11 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0131 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0132 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0132 -//! @SYMAPI CFbsBitGc::DrawPie(const TRect{ref}, const TPoint{ref}, const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a pie in a rectangle(0, 0, 100, 200) area with null pen. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device with brush color just set. -//! 6. Set pen style to null pen. -//! 7. Draw the pie. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The pie will not be drawn -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0132-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0132-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0132-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0132-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0132-SetPenStyle_command08 - COMMAND fbsBitGc DrawPie GRAPHICS-BITGDI-FbsBitGc-PublicApi-0132-DrawPie_command09 - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0132 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0133 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0133 -//! @SYMAPI CFbsBitGc::DrawPie(const TRect{ref}, const TPoint{ref}, const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a pie in a rectangle(0, 0, 100, 200) area with 0-width pen. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device with brush color just set. -//! 6. Set pen size to TSize(0, 1). -//! 7. Draw the pie. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The pie will not be drawn -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0133-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0133-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0133-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0133-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenSize GRAPHICS-BITGDI-FbsBitGc-PublicApi-0133-SetPenSize_command08 - COMMAND fbsBitGc DrawPie GRAPHICS-BITGDI-FbsBitGc-PublicApi-0133-DrawPie_command09 - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0133 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0134 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0134 -//! @SYMAPI CFbsBitGc::DrawPie(const TRect{ref}, const TPoint{ref}, const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a pie in a rectangle(0, 0, 100, 200) area with 0-height pen. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device with brush color just set. -//! 6. Set pen size to TSize(1, 0). -//! 7. Draw the pie. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The pie will not be drawn -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0134-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0134-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0134-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0134-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenSize GRAPHICS-BITGDI-FbsBitGc-PublicApi-0134-SetPenSize_command08 - COMMAND fbsBitGc DrawPie GRAPHICS-BITGDI-FbsBitGc-PublicApi-0134-DrawPie_command09 - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0134 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0135 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0135 -//! @SYMAPI CFbsBitGc::DrawPie(const TRect{ref}, const TPoint{ref}, const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a pie in a rectangle(0, 0, 0, 0) area. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device with brush color just set. -//! 6. Set pen size to TSize(1, 0). -//! 7. Draw the pie. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The pie will not be drawn -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0135-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0135-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0135-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0135-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc DrawPie GRAPHICS-BITGDI-FbsBitGc-PublicApi-0135-DrawPie_command08 - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0135 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0136 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0136 -//! @SYMAPI CFbsBitGc::DrawPie(const TRect{ref}, const TPoint{ref}, const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a pie in a rectangle(1000, 1000, 8000, 8000) area. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device with brush color just set. -//! 6. Draw the pie. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The pie will not be drawn -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0136-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0136-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0136-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0136-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc DrawPie GRAPHICS-BITGDI-FbsBitGc-PublicApi-0136-DrawPie_command08 - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0136 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0137 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0137 -//! @SYMAPI CFbsBitGc::DrawPie(const TRect{ref}, const TPoint{ref}, const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 03/12/2008 -//! @SYMTestCaseDesc Draw a pie in a rectangle(0, 0, 100, 200) area from start point to end point, filled with null brush. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device with brush color just set. -//! 6. Set pen color to draw in color TRgb(255, 0, 0), and set the to null brush. -//! 7. Draw the pie. -//! 8. Check pixels in the pie, on the border of the pie, and outside the pie. -//! 9. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Draw a pie without error. -//! 2. The drawing result is as expected. -//! 3. The pie is drawn and filled with color TRgb(255, 0, 0). -//! Check the border of pie. Pick sample points pixel1~pixel10 specified in test data. -//! Inside the pie, check sample points pixel11~pixel14 specified in test data. -//! 4. Nothing is drawn outside the pie, in color TRgb(255, 255, 255). -//! Only check sample points pixel15~pixel17 specified in test data. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0137-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0137-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0137-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0137-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0137-SetBrushStyle_command08 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0137-SetPenColor_command09 - COMMAND fbsBitGc DrawPie GRAPHICS-BITGDI-FbsBitGc-PublicApi-0137-DrawPie_command10 - COMMAND fbsScrDev checkPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0137-checkPixels_command11 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0137 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0138 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0138 -//! @SYMAPI CFbsBitGc::DrawPie(const TRect{ref}, const TPoint{ref}, const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 03/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a pie in a rectangle(0, 0, 100, 200) area from start point to end point to an invalid graphic device. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 4. Draw the pie. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get panic code 1 of BITGDI when trying to draw using a non-activated graphics context. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0138-Activate_command02 - COMMAND fbsBitGc DrawPie GRAPHICS-BITGDI-FbsBitGc-PublicApi-0138-DrawPie_command03 - END_TEST_BLOCK !PanicString=BITGDI !PanicCode=1 - RUN_TEST_STEP 100 T_GraphicsBitgdiApi utilityClearPanicDlg -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0138 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0139 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0139 -//! @SYMAPI CFbsBitGc::DrawPie(const TRect{ref}, const TPoint{ref}, const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 03/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a pie in a rectangle(0, 0, 100, 200) area from start point to end point -//! using a non-activated graphic context. -//! @SYMTestActions 1. Create a CFbsBitGc object. -//! 2. Draw the pie. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get panic code 1 of BITGDI when trying to draw using a non-activated graphics context. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsBitGc NewL - COMMAND fbsBitGc DrawPie GRAPHICS-BITGDI-FbsBitGc-PublicApi-0139-DrawPie_command02 - END_TEST_BLOCK !PanicString=BITGDI !PanicCode=1 - RUN_TEST_STEP 100 T_GraphicsBitgdiApi utilityClearPanicDlg -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0139 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0151 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0151 -//! @SYMAPI CFbsBitGc::DrawBitmap(const TPoint{ref}, const CFbsBitmap{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Draw a bitmap. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and a CFbsBitmap object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load the bitmap. -//! 7. Set size in twips of bitmap to TSize(1000, 1000). -//! 8. Draw the bitmap. -//! 9. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0151-NewL_command04 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0151-Activate_command05 - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0151-Load_command06 - COMMAND fbsBitmap SetSizeInTwips GRAPHICS-BITGDI-FbsBitGc-PublicApi-0151-SetSizeInTwips_command07 - COMMAND fbsBitGc DrawBitmap GRAPHICS-BITGDI-FbsBitGc-PublicApi-0151-DrawBitmap_command08 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0151 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0152 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0152 -//! @SYMAPI CFbsBitGc::DrawBitmap(const TPoint{ref}, const CFbsBitmap{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a bitmap from null CFbsBitmap object. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and a CFbsBitmap object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Draw the bitmap. -//! 6. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will not be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0152-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0152-Activate_command04 - COMMAND fbsBitGc DrawBitmap GRAPHICS-BITGDI-FbsBitGc-PublicApi-0152-DrawBitmap_command05 - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0152 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0153 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0153 -//! @SYMAPI CFbsBitGc::DrawBitmap(const TPoint{ref}, const CFbsBitmap{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a bitmap using a non-activated CFbsBitGc object. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsBitmap object. -//! 4. Load the bitmap. -//! 5. Draw the bitmap. -//! 6. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will not be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0153-Load_command03 - COMMAND fbsBitGc DrawBitmap GRAPHICS-BITGDI-FbsBitGc-PublicApi-0153-DrawBitmap_command04 - COMMAND fbsBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0153 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0154 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0154 -//! @SYMAPI CFbsBitGc::DrawBitmap(const TPoint{ref}, const CFbsBitmap{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Draw a bitmap with size TSize(0, 10) in twips. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and a CFbsBitmap object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load the bitmap. -//! 6. Set size in twips of bitmap to TSize(0, 10). -//! 7. Draw the bitmap. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will not be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0154-NewL_command04 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0154-Activate_command05 - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0154-Load_command06 - COMMAND fbsBitmap SetSizeInTwips GRAPHICS-BITGDI-FbsBitGc-PublicApi-0154-SetSizeInTwips_command07 - COMMAND fbsBitGc DrawBitmap GRAPHICS-BITGDI-FbsBitGc-PublicApi-0154-DrawBitmap_command08 - COMMAND fbsScrDev Update - COMMAND fbsBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0154 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0155 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0155 -//! @SYMAPI CFbsBitGc::DrawBitmap(const TPoint{ref}, const CFbsBitmap{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Draw a bitmap with size TSize(10, 0) in twips. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and a CFbsBitmap object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load the bitmap. -//! 6. Set size in twips of bitmap to TSize(0, 10). -//! 7. Draw the bitmap. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will not be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0155-NewL_command04 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0155-Activate_command05 - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0155-Load_command06 - COMMAND fbsBitmap SetSizeInTwips GRAPHICS-BITGDI-FbsBitGc-PublicApi-0155-SetSizeInTwips_command07 - COMMAND fbsBitGc DrawBitmap GRAPHICS-BITGDI-FbsBitGc-PublicApi-0155-DrawBitmap_command08 - COMMAND fbsScrDev Update - COMMAND fbsBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0155 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0156 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0156 -//! @SYMAPI CFbsBitGc::DrawBitmap(const TPoint{ref}, const CFbsBitmap{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 29/12/2008 -//! @SYMTestCaseDesc Draw a bitmap which is not loaded. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and a CFbsBitmap object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Draw the bitmap. -//! 6. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will not be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0156-NewL_command04 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0156-Activate_command05 - COMMAND fbsBitGc DrawBitmap GRAPHICS-BITGDI-FbsBitGc-PublicApi-0156-DrawBitmap_command06 - COMMAND fbsScrDev Update - COMMAND fbsBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0156 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0157 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0157 -//! @SYMAPI CFbsBitGc::DrawBitmap(const TRect{ref}, const CFbsBitmap{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Draw a bitmap to fit rectangle (0, 0, 200, 100). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and a CFbsBitmap object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load the bitmap. -//! 6. Draw the bitmap. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0157-NewL_command04 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0157-Activate_command05 - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0157-Load_command06 - COMMAND fbsBitGc DrawBitmap GRAPHICS-BITGDI-FbsBitGc-PublicApi-0157-DrawBitmap_command07 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0157 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0158 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0158 -//! @SYMAPI CFbsBitGc::DrawBitmap(const TRect{ref}, const CFbsBitmap{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a bitmap to fit rectangle (0, 0, 0, 0). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and a CFbsBitmap object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load the bitmap. -//! 6. Draw the bitmap. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will not be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0158-NewL_command04 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0158-Activate_command05 - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0158-Load_command06 - COMMAND fbsBitGc DrawBitmap GRAPHICS-BITGDI-FbsBitGc-PublicApi-0158-DrawBitmap_command07 - COMMAND fbsScrDev Update - COMMAND fbsBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0158 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0159 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0159 -//! @SYMAPI CFbsBitGc::DrawBitmap(const TRect{ref}, const CFbsBitmap{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a bitmap to fit rectangle (0, 0, 100, 200) with a null CFbsBitmap object. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and a CFbsBitmap object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Draw the bitmap. -//! 6. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will not be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0159-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0159-Activate_command04 - COMMAND fbsBitGc DrawBitmap GRAPHICS-BITGDI-FbsBitGc-PublicApi-0159-DrawBitmap_command05 - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0159 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0160 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0160 -//! @SYMAPI CFbsBitGc::DrawBitmap(const TRect{ref}, const CFbsBitmap{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a bitmap to fit rectangle (0, 0, 100, 200) using a non-activated CFbsBitGc object. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and a CFbsBitmap object. -//! 4. Load the bitmap -//! 5. Draw the bitmap. -//! 6. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will not be drawn. Get Panic code 1 and PanicString BITGDI. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0160-Load_command04 - COMMAND fbsBitGc DrawBitmap GRAPHICS-BITGDI-FbsBitGc-PublicApi-0160-DrawBitmap_command05 - END_TEST_BLOCK !PanicString=BITGDI !PanicCode=1 - RUN_TEST_STEP 100 T_GraphicsBitgdiApi utilityClearPanicDlg -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0160 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0161 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0161 -//! @SYMAPI CFbsBitGc::DrawBitmap(const TRect{ref}, const CFbsBitmap{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 29/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a bitmap which is not loaded -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and a CFbsBitmap object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Draw the bitmap. -//! 6. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will not be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0161-NewL_command04 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0161-Activate_command05 - COMMAND fbsBitGc DrawBitmap GRAPHICS-BITGDI-FbsBitGc-PublicApi-0161-DrawBitmap_command06 - COMMAND fbsScrDev Update - COMMAND fbsBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0161 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0162 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0162 -//! @SYMAPI CFbsBitGc::DrawBitmap(const TRect{ref}, const CFbsBitmap{ptr}, const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Draw rectangle area (0, 0, 10, 10) of a source bitmap to fit into rectangle area (10, 10, 200, 100). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and a CFbsBitmap object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load the bitmap. -//! 6. Draw the bitmap. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0162-NewL_command04 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0162-Activate_command05 - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0162-Load_command06 - COMMAND fbsBitGc DrawBitmap GRAPHICS-BITGDI-FbsBitGc-PublicApi-0162-DrawBitmap_command07 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0162 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0163 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0163 -//! @SYMAPI CFbsBitGc::DrawBitmap(const TRect{ref}, const CFbsBitmap{ptr}, const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negative case. Draw rectangle area (0, 0, 0, 0) of a source bitmap to fit into rectangle area (10, 10, 200, 100). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and a CFbsBitmap object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load the bitmap. -//! 6. Draw the bitmap. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will not be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0163-NewL_command04 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0163-Activate_command05 - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0163-Load_command06 - COMMAND fbsBitGc DrawBitmap GRAPHICS-BITGDI-FbsBitGc-PublicApi-0163-DrawBitmap_command07 - COMMAND fbsScrDev Update - COMMAND fbsBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0163 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0164 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0164 -//! @SYMAPI CFbsBitGc::DrawBitmap(const TRect{ref}, const CFbsBitmap{ptr}, const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negative case. Draw rectangle area (0, 0, 10, 10) of null bitmap object to fit into rectangle area (10, 10, 200, 100). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and a CFbsBitmap object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load the bitmap. -//! 6. Draw the bitmap. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will not be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0164-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0164-Activate_command04 - COMMAND fbsBitGc DrawBitmap GRAPHICS-BITGDI-FbsBitGc-PublicApi-0164-DrawBitmap_command05 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0164 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0165 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0165 -//! @SYMAPI CFbsBitGc::DrawBitmap(const TRect{ref}, const CFbsBitmap{ptr}, const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 29/12/2008 -//! @SYMTestCaseDesc Negative case. Draw rectangle area (0, 0, 10, 10) of a source bitmap which is not loaded to fit into rectangle area (10, 10, 200, 100). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and a CFbsBitmap object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Draw the bitmap. -//! 6. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will not be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0165-NewL_command04 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0165-Activate_command05 - COMMAND fbsBitGc DrawBitmap GRAPHICS-BITGDI-FbsBitGc-PublicApi-0165-DrawBitmap_command09 - COMMAND fbsScrDev Update - COMMAND fbsBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0165 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0166 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0166 -//! @SYMAPI CFbsBitGc::DrawBitmap(const TRect{ref}, const CFbsBitmap{ptr}, const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 29/12/2008 -//! @SYMTestCaseDesc Negative case. Draw rectangle area (-10, 0, 10, 10) of a source bitmap to fit into rectangle area (10, 10, 200, 100). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and a CFbsBitmap object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load the bitmap. -//! 6. Draw the bitmap. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will not be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0166-NewL_command04 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0166-Activate_command05 - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0166-Load_command06 - COMMAND fbsBitGc DrawBitmap GRAPHICS-BITGDI-FbsBitGc-PublicApi-0166-DrawBitmap_command07 - COMMAND fbsScrDev Update - COMMAND fbsBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0166 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0167 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0167 -//! @SYMAPI CFbsBitGc::DrawBitmap(const TRect{ref}, const CFbsBitmap{ptr}, const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 29/12/2008 -//! @SYMTestCaseDesc Negative case. Draw rectangle area (0, -10, 10, 10) of a source bitmap to fit into rectangle area (10, 10, 200, 100). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and a CFbsBitmap object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load the bitmap. -//! 6. Draw the bitmap. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will not be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0167-NewL_command04 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0167-Activate_command05 - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0167-Load_command06 - COMMAND fbsBitGc DrawBitmap GRAPHICS-BITGDI-FbsBitGc-PublicApi-0167-DrawBitmap_command07 - COMMAND fbsScrDev Update - COMMAND fbsBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0167 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0168 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0168 -//! @SYMAPI CFbsBitGc::DrawBitmap(const TRect{ref}, const CFbsBitmap{ptr}, const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 29/12/2008 -//! @SYMTestCaseDesc Negative case. Draw rectangle area (0, 0, 8000, 10) of a source bitmap to fit into rectangle area (10, 10, 200, 100). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and a CFbsBitmap object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load the bitmap. -//! 6. Draw the bitmap. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will not be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0168-NewL_command04 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0168-Activate_command05 - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0168-Load_command06 - COMMAND fbsBitGc DrawBitmap GRAPHICS-BITGDI-FbsBitGc-PublicApi-0168-DrawBitmap_command07 - COMMAND fbsScrDev Update - COMMAND fbsBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0168 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0169 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0169 -//! @SYMAPI CFbsBitGc::DrawBitmap(const TRect{ref}, const CFbsBitmap{ptr}, const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 29/12/2008 -//! @SYMTestCaseDesc Negative case. Draw rectangle area (0, 0, 10, 8000) of a source bitmap to fit into rectangle area (10, 10, 200, 100). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and a CFbsBitmap object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load the bitmap. -//! 6. Draw the bitmap. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will not be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0169-NewL_command04 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0169-Activate_command05 - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0169-Load_command06 - COMMAND fbsBitGc DrawBitmap GRAPHICS-BITGDI-FbsBitGc-PublicApi-0169-DrawBitmap_command07 - COMMAND fbsScrDev Update - COMMAND fbsBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0169 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0170 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0170 -//! @SYMAPI CFbsBitGc::DrawBitmap(const TRect{ref}, const CFbsBitmap{ptr}, const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 29/12/2008 -//! @SYMTestCaseDesc Negative case. Draw rectangle area (0, 0, 10, 10) of a source bitmap to fit into rectangle area (8000, 8000, 200, 100). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and a CFbsBitmap object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load the bitmap. -//! 6. Draw the bitmap. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will not be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0170-NewL_command04 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0170-Activate_command05 - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0170-Load_command06 - COMMAND fbsBitGc SetClippingRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-0170-SetClippingRect_command07 - COMMAND fbsBitGc DrawBitmap GRAPHICS-BITGDI-FbsBitGc-PublicApi-0170-DrawBitmap_command08 - COMMAND fbsScrDev Update - COMMAND fbsBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0170 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0171 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0171 -//! @SYMAPI CFbsBitGc::DrawBitmap(const TPoint{ref}, const CFbsBitmap{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 30/12/2008 -//! @SYMTestCaseDesc Draw a bitmap and compare the destination rectangle with another rectangle which is the same to the destination rectangle before draw. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and a CFbsBitmap object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Create and connect a RWsSession object. -//! 6. Create a CWsScreenDevice object and construct it with the same screen number to CFbsScreenDevice object. -//! 7. Set clipping rectangle of CFbsBitGc object and compare the rectangle right to it. -//! 8. Load the bitmap. -//! 9. Set size in pixels of bitmap to TSize(1000, 1000). -//! 10. Draw the bitmap. -//! 11. Compare the destination rectangle with the rectangle right to it. -//! 12. Disconnect RFbsSession, close RWsSession. Destruct CFbsBitGc object, CFbsScreenDevice object, CWsScreenDevice object, and CFbsBitmap object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will be drawn. And the two rectangles are the same before draw. After draw, they are different. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RWsSession wsSession - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CWsScreenDevice wsScrDev - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND fbsSession Connect - COMMAND fbsBitmap new - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0171-NewL_command04 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0171-Activate_command05 - COMMAND fbsBitGc Clear - COMMAND wsSession new - COMMAND wsSession Connect - COMMAND wsScrDev new GRAPHICS-BITGDI-FbsBitGc-PublicApi-0171-new_command09 - COMMAND wsScrDev Construct GRAPHICS-BITGDI-FbsBitGc-PublicApi-0171-Construct_command10 - COMMAND fbsBitGc SetClippingRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-0171-SetClippingRect_command11 - COMMAND wsScrDev RectCompare GRAPHICS-BITGDI-FbsBitGc-PublicApi-0171-RectCompare_command12 - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0171-Load_command13 - COMMAND fbsBitmap SetSizeInTwips GRAPHICS-BITGDI-FbsBitGc-PublicApi-0171-SetSizeInTwips_command14 - COMMAND fbsBitGc DrawBitmap GRAPHICS-BITGDI-FbsBitGc-PublicApi-0171-DrawBitmap_command15 - COMMAND wsScrDev RectCompare GRAPHICS-BITGDI-FbsBitGc-PublicApi-0171-RectCompare_command16 - COMMAND wsScrDev ~ - COMMAND wsSession Close - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0171 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0172 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0172 -//! @SYMAPI CFbsBitGc::DrawBitmap(const TPoint{ref}, const CFbsBitmap{ptr}, const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 30/12/2008 -//! @SYMTestCaseDesc Draw rectangle area (0, 0, 30, 30) of a source bitmap to fit into rectangle area (0, 0, 90, 90). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and a CFbsBitmap object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Create and connect a RWsSession object. -//! 6. Create a CWsScreenDevice object and construct it with the same screen number to CFbsScreenDevice object. -//! 7. Load the bitmap. -//! 8. Draw the bitmap. -//! 9. Compare the destination rectangle with the rectangle right to it. -//! 10. Disconnect RFbsSession, close RWsSession. Destruct CFbsBitGc object, CFbsScreenDevice object, CWsScreenDevice object, and CFbsBitmap object. -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will be drawn. And the two rectangles are the same before draw. After draw, they are different. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RWsSession wsSession - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CWsScreenDevice wsScrDev - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND fbsSession Connect - COMMAND fbsBitmap new - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0172-NewL_command04 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0172-Activate_command05 - COMMAND fbsBitGc Clear - COMMAND wsSession new - COMMAND wsSession Connect - COMMAND wsScrDev new GRAPHICS-BITGDI-FbsBitGc-PublicApi-0172-new_command09 - COMMAND wsScrDev Construct GRAPHICS-BITGDI-FbsBitGc-PublicApi-0172-Construct_command10 - COMMAND wsScrDev RectCompare GRAPHICS-BITGDI-FbsBitGc-PublicApi-0172-RectCompare_command11 - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0172-Load_command12 - COMMAND fbsBitGc DrawBitmap GRAPHICS-BITGDI-FbsBitGc-PublicApi-0172-DrawBitmap_command13 - COMMAND wsScrDev RectCompare GRAPHICS-BITGDI-FbsBitGc-PublicApi-0172-RectCompare_command14 - COMMAND wsScrDev ~ - COMMAND wsSession Close - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0172 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0201 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0201 -//! @SYMAPI CFbsBitGc::DrawBitmapMasked(const TRect{ref}, const CFbsBitmap{ptr}, const TRect{ref}, const CFbsBitmap{ptr}, TBool) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Draw rectangle area (0, 0, 10, 10) of a source bitmap and its mask to fit into rectangle area (10, 10, 200, 100). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and 2 CFbsBitmap objects. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load src and mask bitmaps. -//! 6. Draw the masked bitmap. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - CREATE_OBJECT CFbsBitmap fbsMaskBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsMaskBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0201-NewL_command05 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0201-Activate_command06 - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0201-Load_command07 - COMMAND fbsMaskBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0201-Load_command08 - COMMAND fbsBitGc DrawBitmapMasked GRAPHICS-BITGDI-FbsBitGc-PublicApi-0201-DrawBitmapMasked_command09 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsBitmap ~ - COMMAND fbsMaskBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0201 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0202 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0202 -//! @SYMAPI CFbsBitGc::DrawBitmapMasked(const TRect{ref}, const CFbsBitmap{ptr}, const TRect{ref}, const CFbsBitmap{ptr}, TBool) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negative case. Draw rectangle area (0, 0, 10, 10) of a null bitmap and its mask to fit into rectangle area (10, 10, 200, 100). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and 2 CFbsBitmap objects. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load the mask bitmap. -//! 6. Draw the bitmap. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will not be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - CREATE_OBJECT CFbsBitmap fbsMaskBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsMaskBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0202-NewL_command04 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0202-Activate_command05 - COMMAND fbsMaskBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0202-Load_command06 - COMMAND fbsBitGc DrawBitmapMasked GRAPHICS-BITGDI-FbsBitGc-PublicApi-0202-DrawBitmapMasked_command07 - COMMAND fbsScrDev Update - COMMAND fbsMaskBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0202 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0203 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0203 -//! @SYMAPI CFbsBitGc::DrawBitmapMasked(const TRect{ref}, const CFbsBitmap{ptr}, const TRect{ref}, const CFbsBitmap{ptr}, TBool) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negative case. Draw rectangle area (0, 0, 10, 10) of a source bitmap and a null mask bitmap to fit into rectangle area (10, 10, 200, 100). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and 2 CFbsBitmap objects. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load src bitmap. -//! 6. Draw the bitmap. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will not be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - CREATE_OBJECT CFbsBitmap fbsMaskBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0203-NewL_command04 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0203-Activate_command05 - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0203-Load_command06 - COMMAND fbsBitGc DrawBitmapMasked GRAPHICS-BITGDI-FbsBitGc-PublicApi-0203-DrawBitmapMasked_command07 - COMMAND fbsScrDev Update - COMMAND fbsBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0203 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0204 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0204 -//! @SYMAPI CFbsBitGc::DrawBitmapMasked(const TRect{ref}, const CFbsBitmap{ptr}, const TRect{ref}, const CFbsBitmap{ptr}, TBool) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negative case. Draw rectangle area (0, 0, 0, 0) of a source bitmap and its mask to fit into rectangle area (10, 10, 200, 100). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and 2 CFbsBitmap objects. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load src and mask bitmaps. -//! 6. Draw the masked bitmap. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - CREATE_OBJECT CFbsBitmap fbsMaskBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsMaskBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0204-NewL_command05 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0204-Activate_command06 - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0204-Load_command07 - COMMAND fbsMaskBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0204-Load_command08 - COMMAND fbsBitGc DrawBitmapMasked GRAPHICS-BITGDI-FbsBitGc-PublicApi-0204-DrawBitmapMasked_command09 - COMMAND fbsScrDev Update - COMMAND fbsBitmap ~ - COMMAND fbsMaskBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0204 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0205 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0205 -//! @SYMAPI CFbsBitGc::DrawBitmapMasked(const TRect{ref}, const CFbsBitmap{ptr}, const TRect{ref}, const CFbsBitmap{ptr}, TBool) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negative case. Draw rectangle area (0, 0, 10, 10) of a source bitmap and its mask to fit into rectangle area (0, 0, 0, 0). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and 2 CFbsBitmap objects. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load src and mask bitmaps. -//! 6. Draw the masked bitmap. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - CREATE_OBJECT CFbsBitmap fbsMaskBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsMaskBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0205-NewL_command05 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0205-Activate_command06 - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0205-Load_command07 - COMMAND fbsMaskBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0205-Load_command08 - COMMAND fbsBitGc DrawBitmapMasked GRAPHICS-BITGDI-FbsBitGc-PublicApi-0205-DrawBitmapMasked_command09 - COMMAND fbsScrDev Update - COMMAND fbsBitmap ~ - COMMAND fbsMaskBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0205 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0206 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0206 -//! @SYMAPI CFbsBitGc::DrawBitmapMasked(const TRect{ref}, const CFbsBitmap{ptr}, const TRect{ref}, const CFbsBitmap{ptr}, TBool) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negative case. Draw rectangle area (0, 0, 10, 10) of a source bitmap which is not loaded. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and 2 CFbsBitmap objects. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load mask bitmap. -//! 6. Draw the bitmap. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will not be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - CREATE_OBJECT CFbsBitmap fbsMaskBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsMaskBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0206-NewL_command05 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0206-Activate_command06 - COMMAND fbsMaskBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0206-Load_command07 - COMMAND fbsBitGc DrawBitmapMasked GRAPHICS-BITGDI-FbsBitGc-PublicApi-0206-DrawBitmapMasked_command08 - COMMAND fbsScrDev Update - COMMAND fbsBitmap ~ - COMMAND fbsMaskBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0206 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0207 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0207 -//! @SYMAPI CFbsBitGc::DrawBitmapMasked(const TRect{ref}, const CFbsBitmap{ptr}, const TRect{ref}, const CFbsBitmap{ptr}, TBool) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 26/12/2008 -//! @SYMTestCaseDesc Negative case. Draw rectangle area (0, 0, 10, 10) of a source bitmap using a not loaded mask bitmap. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and 2 CFbsBitmap objects. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load src bitmap. -//! 6. Draw the bitmap. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will not be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - CREATE_OBJECT CFbsBitmap fbsMaskBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsMaskBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0207-NewL_command05 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0207-Activate_command06 - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0207-Load_command07 - COMMAND fbsBitGc DrawBitmapMasked GRAPHICS-BITGDI-FbsBitGc-PublicApi-0207-DrawBitmapMasked_command08 - COMMAND fbsScrDev Update - COMMAND fbsBitmap ~ - COMMAND fbsMaskBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0207 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0208 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0208 -//! @SYMAPI CFbsBitGc::DrawBitmapMasked(const TRect{ref}, const CFbsBitmap{ptr}, const TRect{ref}, const CFbsBitmap{ptr}, TBool) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 26/12/2008 -//! @SYMTestCaseDesc Negative case. Draw rectangle area (-10, 0, 10, 10) of a source bitmap and its mask to fit into rectangle area (10, 10, 200, 100). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and 2 CFbsBitmap objects. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load src and mask bitmaps. -//! 6. Draw the masked bitmap. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - CREATE_OBJECT CFbsBitmap fbsMaskBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsMaskBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0208-NewL_command05 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0208-Activate_command06 - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0208-Load_command07 - COMMAND fbsMaskBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0208-Load_command08 - COMMAND fbsBitGc DrawBitmapMasked GRAPHICS-BITGDI-FbsBitGc-PublicApi-0208-DrawBitmapMasked_command09 - COMMAND fbsScrDev Update - COMMAND fbsBitmap ~ - COMMAND fbsMaskBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0208 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0209 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0209 -//! @SYMAPI CFbsBitGc::DrawBitmapMasked(const TRect{ref}, const CFbsBitmap{ptr}, const TRect{ref}, const CFbsBitmap{ptr}, TBool) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 26/12/2008 -//! @SYMTestCaseDesc Negative case. Draw rectangle area (0, -10, 10, 10) of a source bitmap and its mask to fit into rectangle area (10, 10, 200, 100). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and 2 CFbsBitmap objects. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load src and mask bitmaps. -//! 6. Draw the masked bitmap. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - CREATE_OBJECT CFbsBitmap fbsMaskBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsMaskBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0209-NewL_command05 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0209-Activate_command06 - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0209-Load_command07 - COMMAND fbsMaskBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0209-Load_command08 - COMMAND fbsBitGc DrawBitmapMasked GRAPHICS-BITGDI-FbsBitGc-PublicApi-0209-DrawBitmapMasked_command09 - COMMAND fbsScrDev Update - COMMAND fbsBitmap ~ - COMMAND fbsMaskBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0209 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0210 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0210 -//! @SYMAPI CFbsBitGc::DrawBitmapMasked(const TRect{ref}, const CFbsBitmap{ptr}, const TRect{ref}, const CFbsBitmap{ptr}, TBool) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 26/12/2008 -//! @SYMTestCaseDesc Negative case. Draw rectangle area (0, 0, 8000, 10) of a source bitmap and its mask to fit into rectangle area (10, 10, 200, 100). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and 2 CFbsBitmap objects. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load src and mask bitmaps. -//! 6. Draw the masked bitmap. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - CREATE_OBJECT CFbsBitmap fbsMaskBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsMaskBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0210-NewL_command05 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0210-Activate_command06 - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0210-Load_command07 - COMMAND fbsMaskBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0210-Load_command08 - COMMAND fbsBitGc DrawBitmapMasked GRAPHICS-BITGDI-FbsBitGc-PublicApi-0210-DrawBitmapMasked_command09 - COMMAND fbsScrDev Update - COMMAND fbsBitmap ~ - COMMAND fbsMaskBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0210 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0211 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0211 -//! @SYMAPI CFbsBitGc::DrawBitmapMasked(const TRect{ref}, const CFbsBitmap{ptr}, const TRect{ref}, const CFbsBitmap{ptr}, TBool) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 26/12/2008 -//! @SYMTestCaseDesc Negative case. Draw rectangle area (0, 0, 10, 8000) of a source bitmap and its mask to fit into rectangle area (10, 10, 200, 100). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and 2 CFbsBitmap objects. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load src and mask bitmaps. -//! 6. Draw the masked bitmap. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - CREATE_OBJECT CFbsBitmap fbsMaskBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsMaskBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0211-NewL_command05 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0211-Activate_command06 - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0211-Load_command07 - COMMAND fbsMaskBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0211-Load_command08 - COMMAND fbsBitGc DrawBitmapMasked GRAPHICS-BITGDI-FbsBitGc-PublicApi-0211-DrawBitmapMasked_command09 - COMMAND fbsScrDev Update - COMMAND fbsBitmap ~ - COMMAND fbsMaskBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0211 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0212 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0212 -//! @SYMAPI CFbsBitGc::DrawBitmapMasked(const TRect{ref}, const CFbsBitmap{ptr}, const TRect{ref}, const CFbsBitmap{ptr}, TBool) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 26/12/2008 -//! @SYMTestCaseDesc Negative case. Draw rectangle area (0, 0, 10, 10) of a source bitmap and its mask to fit into rectangle area (10, 10, 200, 100). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and 2 CFbsBitmap objects. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load src and mask bitmaps. -//! 6. Set clipping rectangle (210, 110, 10, 10) -//! 7. Draw the masked bitmap. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - CREATE_OBJECT CFbsBitmap fbsMaskBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsMaskBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0212-NewL_command05 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0212-Activate_command06 - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0212-Load_command07 - COMMAND fbsMaskBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0212-Load_command08 - COMMAND fbsBitGc SetClippingRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-0212-SetClippingRect_command09 - COMMAND fbsBitGc DrawBitmapMasked GRAPHICS-BITGDI-FbsBitGc-PublicApi-0212-DrawBitmapMasked_command10 - COMMAND fbsScrDev Update - COMMAND fbsBitmap ~ - COMMAND fbsMaskBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0212 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0213 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0213 -//! @SYMAPI CFbsBitGc::DrawBitmapMasked(const TRect{ref}, const CFbsBitmap{ptr}, const TRect{ref}, const CFbsBitmap{ptr}, TBool) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 29/12/2008 -//! @SYMTestCaseDesc Negative case. Draw rectangle area (0, 0, 10, 10) of a source bitmap and its mask with mask bitmap resize to TSize(8000, 10). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and 2 CFbsBitmap objects. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load src and mask bitmaps. -//! 6. Set clipping rectangle (210, 110, 10, 10) -//! 7. Draw the masked bitmap. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - CREATE_OBJECT CFbsBitmap fbsMaskBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsMaskBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0213-NewL_command05 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0213-Activate_command06 - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0213-Load_command07 - COMMAND fbsMaskBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0213-Load_command08 - COMMAND fbsMaskBitmap Resize GRAPHICS-BITGDI-FbsBitGc-PublicApi-0213-Resize_command09 - COMMAND fbsBitGc DrawBitmapMasked GRAPHICS-BITGDI-FbsBitGc-PublicApi-0213-DrawBitmapMasked_command10 - COMMAND fbsScrDev Update - COMMAND fbsBitmap ~ - COMMAND fbsMaskBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0213 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0214 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0214 -//! @SYMAPI CFbsBitGc::DrawBitmapMasked(const TRect{ref}, const CFbsBitmap{ptr}, const TRect{ref}, const CFbsBitmap{ptr}, TBool) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 29/12/2008 -//! @SYMTestCaseDesc Negative case. Draw rectangle area (0, 0, 10, 10) of a source bitmap and its mask with mask bitmap resize to TSize(10, 8000). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and 2 CFbsBitmap objects. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load src and mask bitmaps. -//! 6. Set clipping rectangle (210, 110, 10, 10) -//! 7. Draw the masked bitmap. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - CREATE_OBJECT CFbsBitmap fbsMaskBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsMaskBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0214-NewL_command05 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0214-Activate_command06 - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0214-Load_command07 - COMMAND fbsMaskBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0214-Load_command08 - COMMAND fbsMaskBitmap Resize GRAPHICS-BITGDI-FbsBitGc-PublicApi-0214-Resize_command09 - COMMAND fbsBitGc DrawBitmapMasked GRAPHICS-BITGDI-FbsBitGc-PublicApi-0214-DrawBitmapMasked_command10 - COMMAND fbsScrDev Update - COMMAND fbsBitmap ~ - COMMAND fbsMaskBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0214 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0252 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0252 -//! @SYMAPI CFbsBitGc::DrawBitmapMasked(const TRect{ref}, const CWsBitmap{ptr}, const TRect{ref}, const CWsBitmap{ptr}, TBool) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Draw rectangle area (0, 0, 10, 10) of a source bitmap and its mask to fit into rectangle area (20, 20, 100, 100). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object, 2 CWsBitmap objects. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load src and mask bitmaps. -//! 6. Draw the masked bitmap. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CWsBitmap objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RWsSession wsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CWsBitmap wsBitmap - CREATE_OBJECT CWsBitmap wsMaskBitmap - COMMAND wsSession new - COMMAND wsSession Connect - COMMAND fbsBitGc NewL - COMMAND wsBitmap new GRAPHICS-BITGDI-FbsBitGc-PublicApi-0252-new_command05 - COMMAND wsMaskBitmap new GRAPHICS-BITGDI-FbsBitGc-PublicApi-0252-new_command06 - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0252-NewL_command07 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0252-Activate_command08 - COMMAND wsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0252-Load_command09 - COMMAND wsMaskBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0252-Load_command10 - COMMAND fbsBitGc DrawBitmapMasked GRAPHICS-BITGDI-FbsBitGc-PublicApi-0252-DrawBitmapMasked_command11 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND wsBitmap ~ - COMMAND wsMaskBitmap ~ - COMMAND wsSession Close - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0252 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0253 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0253 -//! @SYMAPI CFbsBitGc::DrawBitmapMasked(const TRect{ref}, const CWsBitmap{ptr}, const TRect{ref}, const CWsBitmap{ptr}, TBool) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negative case. Draw rectangle area (0, 0, 10, 10) of a source bitmap and its mask to fit into rectangle area (20, 20, 100, 100) using a non-activated CFbsBitGc object. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object, 2 CWsBitmap objects. -//! 4. Load src and mask bitmaps. -//! 5. Draw the masked bitmap. -//! 6. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CWsBitmap objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RWsSession wsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CWsBitmap wsBitmap - CREATE_OBJECT CWsBitmap wsMaskBitmap - COMMAND wsSession new - COMMAND wsSession Connect - COMMAND fbsBitGc NewL - COMMAND wsBitmap new GRAPHICS-BITGDI-FbsBitGc-PublicApi-0253-new_command05 - COMMAND wsMaskBitmap new GRAPHICS-BITGDI-FbsBitGc-PublicApi-0253-new_command06 - COMMAND wsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0253-Load_command07 - COMMAND wsMaskBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0253-Load_command08 - COMMAND fbsBitGc DrawBitmapMasked GRAPHICS-BITGDI-FbsBitGc-PublicApi-0253-DrawBitmapMasked_command09 - COMMAND wsBitmap ~ - COMMAND wsMaskBitmap ~ - COMMAND wsSession Close - COMMAND fbsBitGc ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0253 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0254 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0254 -//! @SYMAPI CFbsBitGc::DrawBitmapMasked(const TRect{ref}, const CFbsBitmap{ptr}, const TRect{ref}, const CFbsBitmap{ptr}, TBool) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Draw rectangle area (0, 0, 10, 10) of a source bitmap and its mask to fit into rectangle area (10, 10, 200, 100). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and 2 CFbsBitmap objects. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load src and mask bitmaps. -//! 6. Draw the masked bitmap with draw mode set to EDrawModeNOTPEN. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - CREATE_OBJECT CFbsBitmap fbsMaskBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsMaskBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0254-NewL_command05 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0254-Activate_command06 - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0254-Load_command07 - COMMAND fbsMaskBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0254-Load_command08 - COMMAND fbsBitGc SetDrawMode GRAPHICS-BITGDI-FbsBitGc-PublicApi-0254-SetDrawMode_command09 - COMMAND fbsBitGc DrawBitmapMasked GRAPHICS-BITGDI-FbsBitGc-PublicApi-0254-DrawBitmapMasked_command10 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsBitmap ~ - COMMAND fbsMaskBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0254 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0271 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0271 -//! @SYMAPI CFbsBitGc::DrawRoundRect(const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 01/12/2008 -//! @SYMTestCaseDesc Draw a round rectangle -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush style and color TRgb(255, 255, 255) to clear the device. -//! 6. Set brush and pen color to fill and draw the round rectangle. -//! 7. Draw round rectangle. -//! 8. Check the 2 rectangles, out most border of the 2 rectangles, and pixels inside & outside the round rectangle. -//! 9. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Draw a round rectangle without error. -//! 2. The drawing result is as expected. -//! 3. The rectangle is drawn and filled with color TRgb(0, 0, 255). -//! Check the 2 rectangles without rounded angle specified in test data. -//! 4. Check the out most borders of the 2 intersected rectangles. -//! 5. Inside the round rectangle, check sample points pixel1~pixel3 specified in test data. -//! Outside the round rectangle, check sample points pixel4~pixel6 specified in test data. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0271-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0271-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0271-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0271-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0271-SetBrushColor_command08 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0271-SetPenColor_command09 - COMMAND fbsBitGc DrawRoundRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-0271-DrawRoundRect_command10 - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0271-checkRectColor_command11 - COMMAND fbsScrDev checkLineColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0271-checkLineColor_command12 - COMMAND fbsScrDev checkPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0271-checkPixels_command13 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0271 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0272 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0272 -//! @SYMAPI CFbsBitGc::DrawRoundRect(const TRect{ref}, const TSize{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/12/2008 -//! @SYMTestCaseDesc Draw a rectangle because of TSize(0, 5). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush style and color TRgb(255, 255, 255) to clear the device. -//! 6. Set brush and pen color to fill and draw the round rectangle. -//! 7. Draw round rectangle. -//! 8. Check the 2 rectangles, out most border of the 2 rectangles, and pixels inside & outside the round rectangle. -//! 9. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Draw a round rectangle without error. -//! 2. The drawing result is as expected. -//! 3. The rectangle is drawn and filled with color TRgb(0, 0, 255). -//! Check the rectangle. -//! 4. Check the out most borders of rectangle. -//! 5. Inside the rectangle, check sample points pixel1~pixel3 specified in test data. -//! Outside the rectangle, check sample points pixel4~pixel5 specified in test data. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0272-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0272-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0272-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0272-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0272-SetBrushColor_command08 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0272-SetPenColor_command09 - COMMAND fbsBitGc DrawRoundRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-0272-DrawRoundRect_command10 - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0272-checkRectColor_command11 - COMMAND fbsScrDev checkLineColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0272-checkLineColor_command12 - COMMAND fbsScrDev checkPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0272-checkPixels_command13 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0272 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0273 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0273 -//! @SYMAPI CFbsBitGc::DrawRoundRect(const TRect{ref}, const TSize{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/12/2008 -//! @SYMTestCaseDesc Draw a rectangle because of TSize(5, 0). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush style and color TRgb(255, 255, 255) to clear the device. -//! 6. Set brush and pen color to fill and draw the round rectangle. -//! 7. Draw rectangle. -//! 8. Check the rectangle, out most border of the rectangle, and pixels inside & outside the rectangle. -//! 9. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Draw a rectangle without error. -//! 2. The drawing result is as expected. -//! 3. The rectangle is drawn and filled with color TRgb(0, 0, 255). -//! Check the rectangle. -//! 4. Check the out most borders of rectangle. -//! 5. Inside the rectangle, check sample points pixel1~pixel3 specified in test data. -//! Outside the rectangle, check sample points pixel4~pixel5 specified in test data. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0273-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0273-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0273-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0273-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0273-SetBrushColor_command08 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0273-SetPenColor_command09 - COMMAND fbsBitGc DrawRoundRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-0273-DrawRoundRect_command10 - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0273-checkRectColor_command11 - COMMAND fbsScrDev checkLineColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0273-checkLineColor_command12 - COMMAND fbsScrDev checkPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0273-checkPixels_command13 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0273 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0274 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0274 -//! @SYMAPI CFbsBitGc::DrawRoundRect(const TRect{ref}, const TSize{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/12/2008 -//! @SYMTestCaseDesc Draw an ellipse in rectangle (0, 0, 100, 150) area because TSize(160, 110), which is bigger than rectangle. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush style and color TRgb(255, 255, 255) to clear the device. -//! 6. Set brush and pen color to fill and draw the ellipse. -//! 7. Draw ellipse. -//! 8. Check the ellipse. -//! 9. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Draw an ellipse without error. -//! 2. The drawing result is as expected. -//! 3. The ellipse is drawn and filled with color TRgb(0, 0, 255). -//! 4. Check the out most borders of ellipse. -//! Only check pixel1~pixel5 on the border of ellipse. -//! 5. Inside the ellipse, check sample points pixel6~pixel8 specified in test data. -//! Outside the ellipse, check sample points pixel9~pixel11 specified in test data. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0274-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0274-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0274-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0274-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0274-SetBrushColor_command08 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0274-SetPenColor_command09 - COMMAND fbsBitGc DrawRoundRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-0274-DrawRoundRect_command10 - COMMAND fbsScrDev checkPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0274-checkPixels_command11 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0274 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0275 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0275 -//! @SYMAPI CFbsBitGc::DrawRoundRect(const TRect{ref}, const TSize{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a rectangle (0, 0, 0, 0) area. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush style and color TRgb(255, 255, 255) to clear the device. -//! 6. Set brush and pen color to fill and draw the rectangle. -//! 7. Draw rectangle. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The rectangle will not be drawn -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0275-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0275-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0275-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0275-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0275-SetBrushColor_command08 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0275-SetPenColor_command09 - COMMAND fbsBitGc DrawRoundRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-0275-DrawRoundRect_command10 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0275 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0276 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0276 -//! @SYMAPI CFbsBitGc::DrawRoundRect(const TRect{ref}, const TSize{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/12/2008 -//! @SYMTestCaseDesc Draw a round rectangle (0, 0, 100, 150) area with null brush. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush style and color TRgb(255, 255, 255) to clear the device. -//! 6. Set pen color and null brush to fill and draw the rectangle. -//! 7. Draw rectangle. -//! 8. Check the rectangle, its border, as well as sample pixels inside and outside the rectangle. -//! 9. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. The round rectangle will be drawn without error. -//! 2. The drawing result is as expected. -//! 3. The round rectangle is drawn with color TRgb(0, 0, 0). -//! 4. Check the out most borders of round rectangle. -//! Check the rectangle. -//! 5. Inside the rectangle, check sample points pixel1~pixel3 specified in test data. -//! Outside the rectangle, check sample points pixel4~pixel6 specified in test data. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0276-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0276-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0276-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0276-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0276-SetBrushStyle_command08 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0276-SetPenColor_command09 - COMMAND fbsBitGc DrawRoundRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-0276-DrawRoundRect_command10 - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0276-checkRectColor_command11 - COMMAND fbsScrDev checkLineColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0276-checkLineColor_command12 - COMMAND fbsScrDev checkPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0276-checkPixels_command13 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0276 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0277 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0277 -//! @SYMAPI CFbsBitGc::DrawRoundRect(const TRect{ref}, const TSize{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/12/2008 -//! @SYMTestCaseDesc Draw a round rectangle (0, 0, 100, 150) area with null pen. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush style and color TRgb(255, 255, 255) to clear the device. -//! 6. Set brush color to fill and draw the rectangle. Also set null pen. -//! 7. Draw rectangle. -//! 8. Check the rectangle, its border, as well as sample pixels inside and outside the rectangle. -//! 9. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. The round rectangle will be drawn without error. -//! 2. The drawing result is as expected. -//! 3. The round rectangle is filled with color TRgb(0, 0, 255). -//! 4. Check the out most borders of round rectangle. -//! Check the rectangle. -//! 5. Inside the rectangle, check sample points pixel1~pixel3 specified in test data. -//! Outside the rectangle, check sample points pixel4~pixel6 specified in test data. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0277-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0277-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0277-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0277-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0277-SetBrushColor_command08 - COMMAND fbsBitGc SetPenStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0277-SetPenStyle_command09 - COMMAND fbsBitGc DrawRoundRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-0277-DrawRoundRect_command10 - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0277-checkRectColor_command11 - COMMAND fbsScrDev checkLineColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0277-checkLineColor_command12 - COMMAND fbsScrDev checkPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0277-checkPixels_command13 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0277 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0278 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0278 -//! @SYMAPI CFbsBitGc::DrawRoundRect(const TRect{ref}, const TSize{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a round rectangle (0, 0, 100, 150) area with 0-width pen. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush style and color TRgb(255, 255, 255) to clear the device. -//! 6. Set brush color to fill and draw the rectangle. Also set pen size to TSize(0, 1). -//! 7. Draw rectangle. -//! 8. Check the rectangle, its border, as well as sample pixels inside and outside the rectangle. -//! 9. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. The round rectangle will be drawn without error. -//! 2. The drawing result is as expected. -//! 3. The round rectangle is filled with color TRgb(0, 0, 255). -//! 4. Check the rectangle. -//! 5. Inside the rectangle, check sample points pixel1~pixel3 specified in test data. -//! Outside the rectangle, check sample points pixel4~pixel6 specified in test data. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0278-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0278-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0278-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0278-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0278-SetBrushColor_command08 - COMMAND fbsBitGc SetPenSize GRAPHICS-BITGDI-FbsBitGc-PublicApi-0278-SetPenSize_command09 - COMMAND fbsBitGc DrawRoundRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-0278-DrawRoundRect_command10 - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0278-checkRectColor_command11 - COMMAND fbsScrDev checkPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0278-checkPixels_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0278 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0279 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0279 -//! @SYMAPI CFbsBitGc::DrawRoundRect(const TRect{ref}, const TSize{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/12/2008 -//! @SYMTestCaseDesc Draw a round rectangle (0, 0, 100, 150) area with 0-height pen. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush style and color TRgb(255, 255, 255) to clear the device. -//! 6. Set brush color to fill and draw the rectangle. Also set pen size to TSize(0, 1). -//! 7. Draw rectangle. -//! 8. Check the rectangle, its border, as well as sample pixels inside and outside the rectangle. -//! 9. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. The round rectangle will be drawn without error. -//! 2. The drawing result is as expected. -//! 3. The round rectangle is filled with color TRgb(0, 0, 255). -//! 4. Check the rectangle. -//! 5. Inside the rectangle, check sample points pixel1~pixel3 specified in test data. -//! Outside the rectangle, check sample points pixel4~pixel6 specified in test data. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0279-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0279-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0279-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0279-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0279-SetBrushColor_command08 - COMMAND fbsBitGc SetPenSize GRAPHICS-BITGDI-FbsBitGc-PublicApi-0279-SetPenSize_command09 - COMMAND fbsBitGc DrawRoundRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-0279-DrawRoundRect_command10 - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0279-checkRectColor_command11 - COMMAND fbsScrDev checkPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0279-checkPixels_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0279 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0280 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0280 -//! @SYMAPI CFbsBitGc::DrawRoundRect(const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/12/2008 -//! @SYMTestCaseDesc Draw a round rectangle in rectangle (8000, 8000, 9000, 9000) area. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush style and color TRgb(255, 255, 255) to clear the device. -//! 6. Set brush and pen color to fill and draw the round rectangle. -//! 7. Draw round rectangle. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The round rectangle will not be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0280-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0280-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0280-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0280-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0280-SetBrushColor_command08 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0280-SetPenColor_command09 - COMMAND fbsBitGc DrawRoundRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-0280-DrawRoundRect_command10 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0280 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0282 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0282 -//! @SYMAPI CFbsBitGc::DrawRoundRect(const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a round rectangle to invalid graphic device. -//! @SYMTestActions 1. Create a CFbsBitGc object. -//! 2. Associate the CFbsBitGc object with the invalid CFbsScreenDevice object. -//! 3. Draw round rectangle. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get panic code 1 of BITGDI when trying to draw to an invalid device. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0282-Activate_command02 - COMMAND fbsBitGc DrawRoundRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-0282-DrawRoundRect_command03 - END_TEST_BLOCK !PanicString=BITGDI !PanicCode=1 - RUN_TEST_STEP 100 T_GraphicsBitgdiApi utilityClearPanicDlg -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0282 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0283 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0283 -//! @SYMAPI CFbsBitGc::DrawRoundRect(const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a round rectangle by using a non-activated graphics context. -//! @SYMTestActions 1. Create a CFbsBitGc object. -//! 2. Draw round rectangle. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get panic code 1 of BITGDI when drawing round rectangle using a non-activated graphics context. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsBitGc NewL - COMMAND fbsBitGc DrawRoundRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-0283-DrawRoundRect_command02 - END_TEST_BLOCK !PanicString=BITGDI !PanicCode=1 - RUN_TEST_STEP 100 T_GraphicsBitgdiApi utilityClearPanicDlg -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0283 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0284 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0284 -//! @SYMAPI CFbsBitGc::DrawPolyLine(const CArrayFix{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 28/11/2008 -//! @SYMTestCaseDesc Draw a polyline from a point list. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device with brush color just set. -//! 6. Draw a polyline from a point list. -//! 7. Check the whole line. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Draw a polyline without error. -//! 2. The drawing result is as expected. -//! 3. Check color of the lines -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0284-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0284-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0284-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0284-SetBrushColor_cmand0006 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc DrawPolyLine GRAPHICS-BITGDI-FbsBitGc-PublicApi-0284-DrawPolyLine_command08 - COMMAND fbsScrDev checkLineColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0284-checkLineColor_command09 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0284 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0285 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0285 -//! @SYMAPI CFbsBitGc::DrawPolyLine(const CArrayFix{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a polyline from a point list with 0-width pen. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device with brush color just set. -//! 6. Set pen size to TSize(0, 1). -//! 7. Draw a polyline from a point list. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The polyline will not be drawn -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0285-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0285-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0285-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0285-SetBrushColor_cmand0006 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenSize GRAPHICS-BITGDI-FbsBitGc-PublicApi-0285-SetPenSize_command08 - COMMAND fbsBitGc DrawPolyLine GRAPHICS-BITGDI-FbsBitGc-PublicApi-0285-DrawPolyLine_command09 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0285 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0286 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0286 -//! @SYMAPI CFbsBitGc::DrawPolyLine(const CArrayFix{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a polyline from a point list with 0-height pen. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device with brush color just set. -//! 6. Set pen size to TSize(1, 0). -//! 7. Draw a polyline from a point list. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The polyline will not be drawn -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0286-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0286-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0286-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0286-SetBrushColor_cmand0006 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenSize GRAPHICS-BITGDI-FbsBitGc-PublicApi-0286-SetPenSize_command08 - COMMAND fbsBitGc DrawPolyLine GRAPHICS-BITGDI-FbsBitGc-PublicApi-0286-DrawPolyLine_command09 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0286 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0287 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0287 -//! @SYMAPI CFbsBitGc::DrawPolyLine(const CArrayFix{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a polyline from a point list with null pen. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device with brush color just set. -//! 6. Set null pen. -//! 7. Draw a polyline from a point list. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The polyline will not be drawn -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0287-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0287-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0287-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0287-SetBrushColor_cmand0006 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0287-SetPenStyle_command08 - COMMAND fbsBitGc DrawPolyLine GRAPHICS-BITGDI-FbsBitGc-PublicApi-0287-DrawPolyLine_command09 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0287 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0290 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0290 -//! @SYMAPI CFbsBitGc::DrawPolyLine(const CArrayFix{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Draw a polyline to invalid graphic device. -//! @SYMTestActions 1. Create a CFbsBitGc object. -//! 2. Associate the CFbsBitGc object with the invalid CFbsScreenDevice object. -//! 3. Draw polyline. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get panic code 1 of BITGDI when trying to draw to an invalid device. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0290-Activate_command02 - COMMAND fbsBitGc DrawPolyLine GRAPHICS-BITGDI-FbsBitGc-PublicApi-0290-DrawPolyLine_command03 - END_TEST_BLOCK !PanicString=BITGDI !PanicCode=1 - RUN_TEST_STEP 100 T_GraphicsBitgdiApi utilityClearPanicDlg -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0290 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0291 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0291 -//! @SYMAPI CFbsBitGc::DrawPolyLine(const CArrayFix{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a polyline by using a non-activated graphics context. -//! @SYMTestActions 1. Create a CFbsBitGc object. -//! 2. Draw polyline. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get panic code 1 of BITGDI when drawing round rectangle using a non-activated graphics context. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsBitGc NewL - COMMAND fbsBitGc DrawPolyLine GRAPHICS-BITGDI-FbsBitGc-PublicApi-0291-DrawPolyLine_command02 - END_TEST_BLOCK !PanicString=BITGDI !PanicCode=1 - RUN_TEST_STEP 100 T_GraphicsBitgdiApi utilityClearPanicDlg -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0291 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0292 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0292 -//! @SYMAPI CFbsBitGc::DrawPolyLineNoEndPoint(const CArrayFix{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 28/11/2008 -//! @SYMTestCaseDesc Draw a polyline from a point list but not draw the end point. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device with brush color just set. -//! 6. Draw a polyline from a point list. -//! 7. Check the lines drawn. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Draw a polyline without error. -//! 2. The drawing result is as expected. -//! 3. Check color of the lines -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0292-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0292-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0292-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0292-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc DrawPolyLineNoEndPoint GRAPHICS-BITGDI-FbsBitGc-PublicApi-0292-DrawPolyLineNoEndPoint_command08 - COMMAND fbsScrDev checkLineColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0292-checkLineColor_command09 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0292 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0293 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0293 -//! @SYMAPI CFbsBitGc::DrawPolyLineNoEndPoint(const CArrayFix{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a polyline from a point list but not draw the end point with 0-width pen. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device with brush color just set. -//! 6. Set pen size TSize(0, 1). -//! 7. Draw a polyline from a point list. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The polyline will not be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0293-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0293-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0293-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0293-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenSize GRAPHICS-BITGDI-FbsBitGc-PublicApi-0293-SetPenSize_command08 - COMMAND fbsBitGc DrawPolyLineNoEndPoint GRAPHICS-BITGDI-FbsBitGc-PublicApi-0293-DrawPolyLineNoEndPoint_command09 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0293 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0294 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0294 -//! @SYMAPI CFbsBitGc::DrawPolyLineNoEndPoint(const CArrayFix{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a polyline from a point list but not draw the end point with 0-height pen. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device with brush color just set. -//! 6. Set pen size TSize(1, 0). -//! 7. Draw a polyline from a point list. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The polyline will not be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0294-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0294-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0294-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0294-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenSize GRAPHICS-BITGDI-FbsBitGc-PublicApi-0294-SetPenSize_command08 - COMMAND fbsBitGc DrawPolyLineNoEndPoint GRAPHICS-BITGDI-FbsBitGc-PublicApi-0294-DrawPolyLineNoEndPoint_command09 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0294 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0296 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0296 -//! @SYMAPI CFbsBitGc::DrawPolyLineNoEndPoint(const CArrayFix{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a polyline to invalid graphic device. -//! @SYMTestActions 1. Create a CFbsBitGc object. -//! 2. Associate the CFbsBitGc object with the invalid CFbsScreenDevice object. -//! 3. Draw polyline. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get panic code 1 of BITGDI when trying to draw to an invalid device. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0296-Activate_command02 - COMMAND fbsBitGc DrawPolyLineNoEndPoint GRAPHICS-BITGDI-FbsBitGc-PublicApi-0296-DrawPolyLineNoEndPoint_command03 - END_TEST_BLOCK !PanicString=BITGDI !PanicCode=1 - RUN_TEST_STEP 100 T_GraphicsBitgdiApi utilityClearPanicDlg -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0296 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0297 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0297 -//! @SYMAPI CFbsBitGc::DrawPolyLineNoEndPoint(const CArrayFix{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a polyline by using a non-activated graphics context. -//! @SYMTestActions 1. Create a CFbsBitGc object. -//! 2. Draw polyline. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get panic code 1 of BITGDI when drawing round rectangle using a non-activated graphics context. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsBitGc NewL - COMMAND fbsBitGc DrawPolyLineNoEndPoint GRAPHICS-BITGDI-FbsBitGc-PublicApi-0297-DrawPolyLineNoEndPoint_command02 - END_TEST_BLOCK !PanicString=BITGDI !PanicCode=1 - RUN_TEST_STEP 100 T_GraphicsBitgdiApi utilityClearPanicDlg -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0297 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0298 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0298 -//! @SYMAPI CFbsBitGc::DrawPolyLine(const TPoint{ptr}, TInt) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 28/11/2008 -//! @SYMTestCaseDesc Draw a polyline from a list of points. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device with brush color just set. -//! 6. Draw a polyline from a point list with number of points. -//! 7. Check the lines drawn. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Draw a polyline without error. -//! 2. The drawing result is as expected. -//! 3. Check color of the lines -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0298-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0298-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0298-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0298-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc DrawPolyLine GRAPHICS-BITGDI-FbsBitGc-PublicApi-0298-DrawPolyLine_command08 - COMMAND fbsScrDev checkLineColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0298-checkLineColor_command09 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0298 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0299 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0299 -//! @SYMAPI CFbsBitGc::DrawPolyLine(const TPoint{ptr}, TInt) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a polyline from a list of points with a null pen. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device with brush color just set. -//! 6. Set null pen. -//! 7. Draw a polyline from a point list with number of points. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The polyline will not be drawn -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0299-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0299-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0299-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0299-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0299-SetPenStyle_command08 - COMMAND fbsBitGc DrawPolyLine GRAPHICS-BITGDI-FbsBitGc-PublicApi-0299-DrawPolyLine_command09 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0299 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0300 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0300 -//! @SYMAPI CFbsBitGc::DrawPolyLine(const TPoint{ptr}, TInt) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a polyline to invalid graphic device. -//! @SYMTestActions 1. Create a CFbsBitGc object. -//! 2. Associate the CFbsBitGc object with the invalid CFbsScreenDevice object. -//! 3. Draw polyline. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get panic code 1 of BITGDI when trying to draw to an invalid device. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0300-Activate_command02 - COMMAND fbsBitGc DrawPolyLine GRAPHICS-BITGDI-FbsBitGc-PublicApi-0300-DrawPolyLine_command03 - END_TEST_BLOCK !PanicString=BITGDI !PanicCode=1 - RUN_TEST_STEP 100 T_GraphicsBitgdiApi utilityClearPanicDlg -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0300 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0301 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0301 -//! @SYMAPI CFbsBitGc::DrawPolyLine(const TPoint{ptr}, TInt) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a polyline by using a non-activated graphics context. -//! @SYMTestActions 1. Create a CFbsBitGc object. -//! 2. Draw polyline. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get panic code 1 of BITGDI when drawing round rectangle using a non-activated graphics context. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsBitGc NewL - COMMAND fbsBitGc DrawPolyLine GRAPHICS-BITGDI-FbsBitGc-PublicApi-0301-DrawPolyLine_command02 - END_TEST_BLOCK !PanicString=BITGDI !PanicCode=1 - RUN_TEST_STEP 100 T_GraphicsBitgdiApi utilityClearPanicDlg -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0301 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0302 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0302 -//! @SYMAPI CFbsBitGc::DrawPolyLineNoEndPoint(const TPoint{ptr}, TInt) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 28/11/2008 -//! @SYMTestCaseDesc Draw a polyline but not draw the final point from a list of points. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device with brush color just set. -//! 6. Draw a polyline from a point list with number of points. -//! 7. Check all the lines. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Draw a polyline without error. -//! 2. The drawing result is as expected. -//! 3. Check color of the lines -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0302-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0302-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0302-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0302-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc DrawPolyLineNoEndPoint GRAPHICS-BITGDI-FbsBitGc-PublicApi-0302-DrawPolyLineNoEndPoint_command08 - COMMAND fbsScrDev checkLineColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0302-checkLineColor_command09 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0302 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0303 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0303 -//! @SYMAPI CFbsBitGc::DrawPolyLineNoEndPoint(const TPoint{ptr}, TInt) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a polyline but not draw the final point when number of points set to 0. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device with brush color just set. -//! 6. Draw a polyline from a point list with number of points. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The polyline will not be drawn -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0303-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0303-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0303-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0303-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc DrawPolyLineNoEndPoint GRAPHICS-BITGDI-FbsBitGc-PublicApi-0303-DrawPolyLineNoEndPoint_command08 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0303 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0304 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0304 -//! @SYMAPI CFbsBitGc::DrawPolyLineNoEndPoint(const TPoint{ptr}, TInt) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a polyline but not draw the final point from a list of points with 0-width pen -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device with brush color just set. -//! 6. Set pen size TSize(0, 1). -//! 7. Draw a polyline from a point list with number of points. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The polyline will not be drawn -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0304-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0304-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0304-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0304-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenSize GRAPHICS-BITGDI-FbsBitGc-PublicApi-0304-SetPenSize_command08 - COMMAND fbsBitGc DrawPolyLineNoEndPoint GRAPHICS-BITGDI-FbsBitGc-PublicApi-0304-DrawPolyLineNoEndPoint_command09 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0304 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0305 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0305 -//! @SYMAPI CFbsBitGc::DrawPolyLineNoEndPoint(const TPoint{ptr}, TInt) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a polyline but not draw the final point from a list of points with 0-height pen -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device with brush color just set. -//! 6. Set pen size TSize(1, 0). -//! 7. Draw a polyline from a point list with number of points. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The polyline will not be drawn -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0305-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0305-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0305-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0305-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenSize GRAPHICS-BITGDI-FbsBitGc-PublicApi-0305-SetPenSize_command08 - COMMAND fbsBitGc DrawPolyLineNoEndPoint GRAPHICS-BITGDI-FbsBitGc-PublicApi-0305-DrawPolyLineNoEndPoint_command09 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0305 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0307 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0307 -//! @SYMAPI CFbsBitGc::DrawPolyLineNoEndPoint(const TPoint{ptr}, TInt) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a polyline to invalid graphic device. -//! @SYMTestActions 1. Create a CFbsBitGc object. -//! 2. Associate the CFbsBitGc object with the invalid CFbsScreenDevice object. -//! 3. Draw polyline. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get panic code 1 of BITGDI when trying to draw to an invalid device. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0307-Activate_command02 - COMMAND fbsBitGc DrawPolyLineNoEndPoint GRAPHICS-BITGDI-FbsBitGc-PublicApi-0307-DrawPolyLineNoEndPoint_command03 - END_TEST_BLOCK !PanicString=BITGDI !PanicCode=1 - RUN_TEST_STEP 100 T_GraphicsBitgdiApi utilityClearPanicDlg -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0307 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0308 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0308 -//! @SYMAPI CFbsBitGc::DrawPolyLineNoEndPoint(const TPoint{ptr}, TInt) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a polyline by using a non-activated graphics context. -//! @SYMTestActions 1. Create a CFbsBitGc object. -//! 2. Draw polyline. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get panic code 1 of BITGDI when drawing round rectangle using a non-activated graphics context. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsBitGc NewL - COMMAND fbsBitGc DrawPolyLineNoEndPoint GRAPHICS-BITGDI-FbsBitGc-PublicApi-0308-DrawPolyLineNoEndPoint_command02 - END_TEST_BLOCK !PanicString=BITGDI !PanicCode=1 - RUN_TEST_STEP 100 T_GraphicsBitgdiApi utilityClearPanicDlg -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0308 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0309 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0309 -//! @SYMAPI CFbsBitGc::DrawPolygon(const CArrayFix< TPoint > {ptr},TFillRule) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Draw a polygon from a list of points. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color to clear device. -//! 6. Set brush and pen color to fill and draw the polygon. -//! 7. Draw the polygon -//! 8. Check the border and pixels inside & outside the polygon. -//! 9. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Draw a polygon without error. -//! 2. The drawing result is as expected. -//! 3. Check the lines drawn per point list specified in test data. -//! 4. Inside the polygon, check pixel1~pixel3 specified in test data. -//! Outside the polygon, check pixel4~pixel6 specified in test data. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0309-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0309-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0309-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0309-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0309-SetBrushColor_command08 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0309-SetPenColor_command09 - COMMAND fbsBitGc DrawPolygon GRAPHICS-BITGDI-FbsBitGc-PublicApi-0309-DrawPolygon_command10 - COMMAND fbsScrDev checkLineColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0309-checkLineColor_command11 - COMMAND fbsScrDev checkPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0309-checkPixels_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0309 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0310 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0310 -//! @SYMAPI CFbsBitGc::DrawPolygon(const CArrayFix< TPoint > {ptr},TFillRule) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Draw a large polygon from a list of points. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color to clear device. -//! 6. Set brush and pen color to fill and draw the polygon. -//! 7. Draw the polygon -//! 8. Check the border and pixels inside & outside the polygon. -//! 9. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Draw a polygon without error. -//! 2. The drawing result is as expected. -//! 3. Check the lines drawn per point list specified in test data. -//! 4. Inside the polygon, check pixel1~pixel3 specified in test data. -//! Outside the polygon, check pixel4~pixel6 specified in test data. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0310-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0310-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0310-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0310-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0310-SetBrushColor_command08 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0310-SetPenColor_command09 - COMMAND fbsBitGc DrawPolygon GRAPHICS-BITGDI-FbsBitGc-PublicApi-0310-DrawPolygon_command10 - COMMAND fbsScrDev checkLineColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0310-checkLineColor_command11 - COMMAND fbsScrDev checkPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0310-checkPixels_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0310 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0311 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0311 -//! @SYMAPI CFbsBitGc::DrawPolygon(const CArrayFix< TPoint > {ptr},TFillRule) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/12/2008 -//! @SYMTestCaseDesc Draw a polygon from a list of points and fill it with null brush. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color to clear device. -//! 6. Set pen color to draw the polygon and null brush to fill the polygon. -//! 7. Draw the polygon -//! 8. Check the border and pixels inside & outside the polygon. -//! 9. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Draw a polygon without error. -//! 2. The drawing result is as expected. -//! 3. Check the lines drawn per point list specified in test data. -//! 4. Inside the polygon, check pixel1~pixel3 specified in test data. -//! Outside the polygon, check pixel4~pixel6 specified in test data. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0311-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0311-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0311-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0311-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0311-SetBrushStyle_command08 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0311-SetPenColor_command09 - COMMAND fbsBitGc DrawPolygon GRAPHICS-BITGDI-FbsBitGc-PublicApi-0311-DrawPolygon_command10 - COMMAND fbsScrDev checkLineColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0311-checkLineColor_command11 - COMMAND fbsScrDev checkPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0311-checkPixels_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0311 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0312 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0312 -//! @SYMAPI CFbsBitGc::DrawPolygon(const CArrayFix< TPoint > {ptr},TFillRule) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/12/2008 -//! @SYMTestCaseDesc Draw a polygon from a list of points with 0-width pen. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color to clear device. -//! 6. Set brush color to fill the polygon and pen size to TSize(0, 1). -//! 7. Draw the polygon -//! 8. Check the border and pixels inside & outside the polygon. -//! 9. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Draw a polygon without error. -//! 2. The drawing result is as expected. -//! 3. Check the lines drawn per point list specified in test data. -//! 4. Inside the polygon, check pixel1~pixel3 specified in test data. -//! Outside the polygon, check pixel4~pixel6 specified in test data. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0312-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0312-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0312-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0312-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0312-SetBrushColor_command08 - COMMAND fbsBitGc SetPenSize GRAPHICS-BITGDI-FbsBitGc-PublicApi-0312-SetPenSize_command09 - COMMAND fbsBitGc DrawPolygon GRAPHICS-BITGDI-FbsBitGc-PublicApi-0312-DrawPolygon_command10 - COMMAND fbsScrDev checkLineColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0312-checkLineColor_command11 - COMMAND fbsScrDev checkPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0312-checkPixels_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0312 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0313 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0313 -//! @SYMAPI CFbsBitGc::DrawPolygon(const CArrayFix< TPoint > {ptr},TFillRule) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/12/2008 -//! @SYMTestCaseDesc Draw a polygon from a list of points with 0-height pen. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color to clear device. -//! 6. Set brush color to fill the polygon and pen size to TSize(1, 0). -//! 7. Draw the polygon -//! 8. Check the border and pixels inside & outside the polygon. -//! 9. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Draw a polygon without error. -//! 2. The drawing result is as expected. -//! 3. Check the lines drawn per point list specified in test data. -//! 4. Inside the polygon, check pixel1~pixel3 specified in test data. -//! Outside the polygon, check pixel4~pixel6 specified in test data. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0313-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0313-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0313-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0313-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0313-SetBrushColor_command08 - COMMAND fbsBitGc SetPenSize GRAPHICS-BITGDI-FbsBitGc-PublicApi-0313-SetPenSize_command09 - COMMAND fbsBitGc DrawPolygon GRAPHICS-BITGDI-FbsBitGc-PublicApi-0313-DrawPolygon_command10 - COMMAND fbsScrDev checkLineColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0313-checkLineColor_command11 - COMMAND fbsScrDev checkPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0313-checkPixels_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0313 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0314 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0314 -//! @SYMAPI CFbsBitGc::DrawPolygon(const CArrayFix< TPoint > {ptr},TFillRule) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/12/2008 -//! @SYMTestCaseDesc Draw a polygon from a list of points with null pen. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color to clear device. -//! 6. Set brush color to fill the polygon and null pen. -//! 7. Draw the polygon -//! 8. Check the border and pixels inside & outside the polygon. -//! 9. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Draw a polygon without error. -//! 2. The drawing result is as expected. -//! 3. Check the lines drawn per point list specified in test data. -//! 4. Inside the polygon, check pixel1~pixel3 specified in test data. -//! Outside the polygon, check pixel4~pixel6 specified in test data. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0314-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0314-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0314-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0314-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0314-SetBrushColor_command08 - COMMAND fbsBitGc SetPenStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0314-SetPenStyle_command09 - COMMAND fbsBitGc DrawPolygon GRAPHICS-BITGDI-FbsBitGc-PublicApi-0314-DrawPolygon_command10 - COMMAND fbsScrDev checkLineColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0314-checkLineColor_command11 - COMMAND fbsScrDev checkPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0314-checkPixels_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0314 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0318 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0318 -//! @SYMAPI CFbsBitGc::DrawPolygon(const CArrayFix< TPoint > {ptr},TFillRule) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a polygon to invalid graphic device. -//! @SYMTestActions 1. Create a CFbsBitGc object. -//! 2. Associate the CFbsBitGc object with the invalid CFbsScreenDevice object. -//! 3. Draw polygon. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get panic code 1 of BITGDI when trying to draw to an invalid device. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0318-Activate_command02 - COMMAND fbsBitGc DrawPolygon GRAPHICS-BITGDI-FbsBitGc-PublicApi-0318-DrawPolygon_command03 - END_TEST_BLOCK !PanicString=BITGDI !PanicCode=1 - RUN_TEST_STEP 100 T_GraphicsBitgdiApi utilityClearPanicDlg -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0318 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0319 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0319 -//! @SYMAPI CFbsBitGc::DrawPolygon(const CArrayFix< TPoint > {ptr},TFillRule) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a polygon by using a non-activated graphics context. -//! @SYMTestActions 1. Create a CFbsBitGc object. -//! 2. Draw polygon. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get panic code 1 of BITGDI when drawing polygon using a non-activated graphics context. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsBitGc NewL - COMMAND fbsBitGc DrawPolygon GRAPHICS-BITGDI-FbsBitGc-PublicApi-0319-DrawPolygon_command02 - END_TEST_BLOCK !PanicString=BITGDI !PanicCode=1 - RUN_TEST_STEP 100 T_GraphicsBitgdiApi utilityClearPanicDlg -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0319 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0320 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0320 -//! @SYMAPI CFbsBitGc::DrawPolygon(const TPoint{ptr},TInt, TFillRule) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Draw a polygon from a array of points. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color to clear device. -//! 6. Set brush and pen color to fill and draw the polygon. -//! 7. Draw the polygon -//! 8. Check the border and pixels inside & outside the polygon. -//! 9. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Draw a polygon without error. -//! 2. The drawing result is as expected. -//! 3. Check the lines drawn per point list specified in test data. -//! 4. Inside the polygon, check pixel1~pixel2 specified in test data. -//! Outside the polygon, check pixel3~pixel4 specified in test data. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0320-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0320-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0320-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0320-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0320-SetBrushColor_command08 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0320-SetPenColor_command09 - COMMAND fbsBitGc DrawPolygon GRAPHICS-BITGDI-FbsBitGc-PublicApi-0320-DrawPolygon_command10 - COMMAND fbsScrDev checkLineColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0320-checkLineColor_command11 - COMMAND fbsScrDev checkPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0320-checkPixels_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0320 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0321 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0321 -//! @SYMAPI CFbsBitGc::DrawPolygon(const TPoint{ptr},TInt, TFillRule) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/12/2008 -//! @SYMTestCaseDesc Draw a polygon from a array of points which doesn't have any point. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color to clear device. -//! 6. Set brush and pen color to fill and draw the polygon. -//! 7. Draw the polygon -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The polygon will not be drawn -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0321-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0321-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0321-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0321-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0321-SetBrushColor_command08 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0321-SetPenColor_command09 - COMMAND fbsBitGc DrawPolygon GRAPHICS-BITGDI-FbsBitGc-PublicApi-0321-DrawPolygon_command10 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0321 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0322 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0322 -//! @SYMAPI CFbsBitGc::DrawPolygon(const TPoint{ptr},TInt, TFillRule) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/12/2008 -//! @SYMTestCaseDesc Draw a large polygon from a array of points. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color to clear device. -//! 6. Set brush and pen color to fill and draw the polygon. -//! 7. Draw the polygon -//! 8. Check the border and pixels inside & outside the polygon. -//! 9. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Draw a polygon without error. -//! 2. The drawing result is as expected. -//! 3. Check the lines drawn per point list specified in test data. -//! 4. Inside the polygon, check pixel1~pixel2 specified in test data. -//! Outside the polygon, check pixel3~pixel4 specified in test data. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0322-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0322-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0322-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0322-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0322-SetBrushColor_command08 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0322-SetPenColor_command09 - COMMAND fbsBitGc DrawPolygon GRAPHICS-BITGDI-FbsBitGc-PublicApi-0322-DrawPolygon_command10 - COMMAND fbsScrDev checkLineColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0322-checkLineColor_command11 - COMMAND fbsScrDev checkPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0322-checkPixels_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0322 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0323 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0323 -//! @SYMAPI CFbsBitGc::DrawPolygon(const TPoint{ptr},TInt, TFillRule) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/12/2008 -//! @SYMTestCaseDesc Draw a polygon from a array of points and fill it with null brush. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color to clear device. -//! 6. Set brush and pen color to fill and draw the polygon. -//! 7. Draw the polygon -//! 8. Check the border and pixels inside & outside the polygon. -//! 9. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Draw a polygon without error. -//! 2. The drawing result is as expected. -//! 3. Check the lines drawn per point list specified in test data. -//! 4. Inside the polygon, check pixel1~pixel2 specified in test data. -//! Outside the polygon, check pixel3~pixel4 specified in test data. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0323-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0323-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0323-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0323-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0323-SetBrushStyle_command08 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0323-SetPenColor_command09 - COMMAND fbsBitGc DrawPolygon GRAPHICS-BITGDI-FbsBitGc-PublicApi-0323-DrawPolygon_command10 - COMMAND fbsScrDev checkLineColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0323-checkLineColor_command11 - COMMAND fbsScrDev checkPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0323-checkPixels_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0323 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0324 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0324 -//! @SYMAPI CFbsBitGc::DrawPolygon(const TPoint{ptr},TInt, TFillRule) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/12/2008 -//! @SYMTestCaseDesc Draw a polygon from a array of points and draw it with null pen. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color to clear device. -//! 6. Set brush color to fill and set null pen to draw the polygon. -//! 7. Draw the polygon -//! 8. Check the border and pixels inside & outside the polygon. -//! 9. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Draw a polygon without error. -//! 2. The drawing result is as expected. -//! 3. Check the lines drawn per point list specified in test data. -//! 4. Inside the polygon, check pixel1~pixel2 specified in test data. -//! Outside the polygon, check pixel3~pixel4 specified in test data. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0324-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0324-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0324-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0324-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0324-SetBrushColor_command08 - COMMAND fbsBitGc SetPenStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0324-SetPenStyle_command09 - COMMAND fbsBitGc DrawPolygon GRAPHICS-BITGDI-FbsBitGc-PublicApi-0324-DrawPolygon_command10 - COMMAND fbsScrDev checkLineColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0324-checkLineColor_command11 - COMMAND fbsScrDev checkPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0324-checkPixels_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0324 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0325 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0325 -//! @SYMAPI CFbsBitGc::DrawPolygon(const TPoint{ptr},TInt, TFillRule) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/12/2008 -//! @SYMTestCaseDesc Draw a polygon from a array of points with 0-width pen. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color to clear device. -//! 6. Set brush color to fill and draw the polygon. -//! 7. Set pen size to TSize(0, 1). -//! 8. Draw the polygon -//! 9. Check the border and pixels inside & outside the polygon. -//! 10. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Draw a polygon without error. -//! 2. The drawing result is as expected. -//! 3. Check the lines drawn per point list specified in test data. -//! 4. Inside the polygon, check pixel1~pixel2 specified in test data. -//! Outside the polygon, check pixel3~pixel4 specified in test data. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0325-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0325-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0325-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0325-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0325-SetBrushColor_command08 - COMMAND fbsBitGc SetPenSize GRAPHICS-BITGDI-FbsBitGc-PublicApi-0325-SetPenSize_command09 - COMMAND fbsBitGc DrawPolygon GRAPHICS-BITGDI-FbsBitGc-PublicApi-0325-DrawPolygon_command10 - COMMAND fbsScrDev checkLineColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0325-checkLineColor_command11 - COMMAND fbsScrDev checkPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0325-checkPixels_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0325 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0326 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0326 -//! @SYMAPI CFbsBitGc::DrawPolygon(const TPoint{ptr},TInt, TFillRule) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/12/2008 -//! @SYMTestCaseDesc Draw a polygon from a array of points with 0-height pen. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color to clear device. -//! 6. Set brush color to fill and draw the polygon. -//! 7. Set pen size to TSize(1, 0). -//! 8. Draw the polygon -//! 9. Check the border and pixels inside & outside the polygon. -//! 10. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Draw a polygon without error. -//! 2. The drawing result is as expected. -//! 3. Check the lines drawn per point list specified in test data. -//! 4. Inside the polygon, check pixel1~pixel2 specified in test data. -//! Outside the polygon, check pixel3~pixel4 specified in test data. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0326-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0326-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0326-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0326-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0326-SetBrushColor_command08 - COMMAND fbsBitGc SetPenSize GRAPHICS-BITGDI-FbsBitGc-PublicApi-0326-SetPenSize_command09 - COMMAND fbsBitGc DrawPolygon GRAPHICS-BITGDI-FbsBitGc-PublicApi-0326-DrawPolygon_command10 - COMMAND fbsScrDev checkLineColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0326-checkLineColor_command11 - COMMAND fbsScrDev checkPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0326-checkPixels_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0326 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0327 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0327 -//! @SYMAPI CFbsBitGc::DrawPolygon(const TPoint{ptr}, TInt, TFillRule) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a polygon to invalid graphic device. -//! @SYMTestActions 1. Create a CFbsBitGc object. -//! 2. Associate the CFbsBitGc object with the invalid CFbsScreenDevice object. -//! 3. Draw polygon. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get panic code 1 of BITGDI when trying to draw to an invalid device. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0327-Activate_command02 - COMMAND fbsBitGc DrawPolygon GRAPHICS-BITGDI-FbsBitGc-PublicApi-0327-DrawPolygon_command03 - END_TEST_BLOCK !PanicString=BITGDI !PanicCode=1 - RUN_TEST_STEP 100 T_GraphicsBitgdiApi utilityClearPanicDlg -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0327 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0328 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0328 -//! @SYMAPI CFbsBitGc::DrawPolygon(const TPoint{ptr}, TInt, TFillRule) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a polygon by using a non-activated graphics context. -//! @SYMTestActions 1. Create a CFbsBitGc object. -//! 2. Draw polygon. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get panic code 1 of BITGDI when drawing polygon using a non-activated graphics context. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsBitGc NewL - COMMAND fbsBitGc DrawPolygon GRAPHICS-BITGDI-FbsBitGc-PublicApi-0328-DrawPolygon_command02 - END_TEST_BLOCK !PanicString=BITGDI !PanicCode=1 - RUN_TEST_STEP 100 T_GraphicsBitgdiApi utilityClearPanicDlg -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0328 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0329 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0329 -//! @SYMAPI CFbsBitGc::DrawEllipse(const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 01/12/2008 -//! @SYMTestCaseDesc Draw an ellipse in rectangle (0, 0, 100, 200) area. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device with brush color just set. -//! 6. Set brush style and color. -//! 7. Draw ellipse. -//! 8. Check the border and pixels inside & outside the ellipse. -//! 9. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Draw a ellipse without error. -//! 2. The drawing result is as expected. -//! 3. Check pixel1~pixel8 on the border of ellipse. -//! 4. Inside the ellipse, check pixel9~pixel10 specified in test data. -//! Outside the ellipse, check pixel11~pixel2 specified in test data. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0329-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0329-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0329-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0329-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0329-SetBrushColor_command08 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0329-SetPenColor_command09 - COMMAND fbsBitGc DrawEllipse GRAPHICS-BITGDI-FbsBitGc-PublicApi-0329-DrawEllipse_command10 - COMMAND fbsScrDev checkPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0329-checkPixels_command11 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0329 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0330 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0330 -//! @SYMAPI CFbsBitGc::DrawEllipse(const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/12/2008 -//! @SYMTestCaseDesc Negative case. Draw an ellipse in rectangle (0, 0, 0, 0) area. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device with brush color just set. -//! 6. Set brush style and color. -//! 7. Draw ellipse. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The ellipse will not be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0330-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0330-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0330-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0330-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0330-SetBrushColor_command08 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0330-SetPenColor_command09 - COMMAND fbsBitGc DrawEllipse GRAPHICS-BITGDI-FbsBitGc-PublicApi-0330-DrawEllipse_command10 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0330 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0331 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0331 -//! @SYMAPI CFbsBitGc::DrawEllipse(const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/12/2008 -//! @SYMTestCaseDesc Negative case. Draw an ellipse in rectangle (8000, 8000, 9000, 9000) area. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device with brush color just set. -//! 6. Set brush style and color. -//! 7. Draw ellipse. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The ellipse will not be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0331-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0331-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0331-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0331-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0331-SetBrushColor_command08 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0331-SetPenColor_command09 - COMMAND fbsBitGc DrawEllipse GRAPHICS-BITGDI-FbsBitGc-PublicApi-0331-DrawEllipse_command10 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0331 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0332 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0332 -//! @SYMAPI CFbsBitGc::DrawEllipse(const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/12/2008 -//! @SYMTestCaseDesc Draw an ellipse in rectangle (0, 0, 100, 200) area and fill it with null brush. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device with brush color just set. -//! 6. Set to null brush. -//! 7. Draw ellipse. -//! 8. Check the border and pixels inside & outside the ellipse. -//! 9. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Draw a ellipse without error. -//! 2. The drawing result is as expected. -//! 3. Check pixel1~pixel8 on the border of ellipse. -//! 4. Inside the ellipse, check pixel9~pixel10 specified in test data. -//! Outside the ellipse, check pixel11~pixel2 specified in test data. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0332-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0332-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0332-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0332-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0332-SetBrushStyle_command08 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0332-SetPenColor_command09 - COMMAND fbsBitGc DrawEllipse GRAPHICS-BITGDI-FbsBitGc-PublicApi-0332-DrawEllipse_command10 - COMMAND fbsScrDev checkPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0332-checkPixels_command11 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0332 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0333 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0333 -//! @SYMAPI CFbsBitGc::DrawEllipse(const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/12/2008 -//! @SYMTestCaseDesc Draw an ellipse in rectangle (0, 0, 100, 200) area and draw it with null pen. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device with brush color just set. -//! 6. Set brush color and set null pen. -//! 7. Draw ellipse. -//! 8. Check the border and pixels inside & outside the ellipse. -//! 9. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Draw a ellipse without error. -//! 2. The drawing result is as expected. -//! 3. Check pixel1~pixel8 on the border of ellipse. -//! 4. Inside the ellipse, check pixel9~pixel10 specified in test data. -//! Outside the ellipse, check pixel11~pixel2 specified in test data. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0333-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0333-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0333-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0333-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0333-SetBrushColor_command08 - COMMAND fbsBitGc SetPenStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0333-SetPenStyle_command09 - COMMAND fbsBitGc DrawEllipse GRAPHICS-BITGDI-FbsBitGc-PublicApi-0333-DrawEllipse_command10 - COMMAND fbsScrDev checkPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0333-checkPixels_command11 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0333 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0334 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0334 -//! @SYMAPI CFbsBitGc::DrawEllipse(const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/12/2008 -//! @SYMTestCaseDesc Draw an ellipse in rectangle (0, 0, 100, 200) area and draw it with null pen. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device with brush color just set. -//! 6. Set brush color and set pen size to TSize(0, 0). -//! 7. Draw ellipse. -//! 8. Check the border and pixels inside & outside the ellipse. -//! 9. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Draw a ellipse without error. -//! 2. The drawing result is as expected. -//! 3. Check pixel1~pixel8 on the border of ellipse. -//! 4. Inside the ellipse, check pixel9~pixel10 specified in test data. -//! Outside the ellipse, check pixel11~pixel2 specified in test data. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0334-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0334-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0334-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0334-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0334-SetBrushColor_command08 - COMMAND fbsBitGc SetPenSize GRAPHICS-BITGDI-FbsBitGc-PublicApi-0334-SetPenSize_command09 - COMMAND fbsBitGc DrawEllipse GRAPHICS-BITGDI-FbsBitGc-PublicApi-0334-DrawEllipse_command10 - COMMAND fbsScrDev checkPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0334-checkPixels_command11 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0334 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0335 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0335 -//! @SYMAPI CFbsBitGc::DrawEllipse(const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/12/2008 -//! @SYMTestCaseDesc Draw an ellipse in rectangle (0, 0, 100, 200) area and draw it with null pen. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device with brush color just set. -//! 6. Set brush color and set pen size to TSize(1, 0) -//! 7. Draw ellipse. -//! 8. Check the border and pixels inside & outside the ellipse. -//! 9. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Draw a ellipse without error. -//! 2. The drawing result is as expected. -//! 3. Check pixel1~pixel8 on the border of ellipse. -//! 4. Inside the ellipse, check pixel9~pixel10 specified in test data. -//! Outside the ellipse, check pixel11~pixel2 specified in test data. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0335-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0335-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0335-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0335-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0335-SetBrushColor_command08 - COMMAND fbsBitGc SetPenSize GRAPHICS-BITGDI-FbsBitGc-PublicApi-0335-SetPenSize_command09 - COMMAND fbsBitGc DrawEllipse GRAPHICS-BITGDI-FbsBitGc-PublicApi-0335-DrawEllipse_command10 - COMMAND fbsScrDev checkPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0335-checkPixels_command11 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0335 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0336 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0336 -//! @SYMAPI CFbsBitGc::DrawEllipse(const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/12/2008 -//! @SYMTestCaseDesc Draw an ellipse in rectangle (0, 0, 100, 200) area and draw it with null pen. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device with brush color just set. -//! 6. Set brush color and set pen size to TSize(2, 1). -//! 7. Draw ellipse. -//! 8. Check the border and pixels inside & outside the ellipse. -//! 9. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Draw a ellipse without error. -//! 2. The drawing result is as expected. -//! 3. Check pixel1~pixel8 on the border of ellipse. -//! 4. Inside the ellipse, check pixel9~pixel10 specified in test data. -//! Outside the ellipse, check pixel11~pixel2 specified in test data. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0336-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0336-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0336-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0336-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0336-SetBrushColor_command08 - COMMAND fbsBitGc SetPenSize GRAPHICS-BITGDI-FbsBitGc-PublicApi-0336-SetPenSize_command09 - COMMAND fbsBitGc DrawEllipse GRAPHICS-BITGDI-FbsBitGc-PublicApi-0336-DrawEllipse_command10 - COMMAND fbsScrDev checkPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0336-checkPixels_command11 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0336 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0337 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0337 -//! @SYMAPI CFbsBitGc::DrawEllipse(const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/12/2008 -//! @SYMTestCaseDesc Draw an ellipse in rectangle (0, 0, 100, 300) area and draw it with null pen. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device with brush color just set. -//! 6. Set brush color and set pen size to TSize(2, 2). -//! 7. Draw ellipse. -//! 8. Check the border and pixels inside & outside the ellipse. -//! 9. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Draw a ellipse without error. -//! 2. The drawing result is as expected. -//! 3. Check pixel1~pixel8 on the border of ellipse. -//! 4. Inside the ellipse, check pixel9~pixel10 specified in test data. -//! Outside the ellipse, check pixel11~pixel2 specified in test data. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0337-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0337-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0337-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0337-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0337-SetBrushColor_command08 - COMMAND fbsBitGc SetPenSize GRAPHICS-BITGDI-FbsBitGc-PublicApi-0337-SetPenSize_command09 - COMMAND fbsBitGc DrawEllipse GRAPHICS-BITGDI-FbsBitGc-PublicApi-0337-DrawEllipse_command10 - COMMAND fbsScrDev checkPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0337-checkPixels_command11 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0337 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0340 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0340 -//! @SYMAPI CFbsBitGc::DrawEllipse(const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a ellipse to invalid graphic device. -//! @SYMTestActions 1. Create a CFbsBitGc object. -//! 2. Associate the CFbsBitGc object with the invalid CFbsScreenDevice object. -//! 3. Draw ellipse. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get panic code 1 of BITGDI when trying to draw to an invalid device. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0340-Activate_command02 - COMMAND fbsBitGc DrawEllipse GRAPHICS-BITGDI-FbsBitGc-PublicApi-0340-DrawEllipse_command03 - END_TEST_BLOCK !PanicString=BITGDI !PanicCode=1 - RUN_TEST_STEP 100 T_GraphicsBitgdiApi utilityClearPanicDlg -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0340 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0341 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0341 -//! @SYMAPI CFbsBitGc::DrawEllipse(const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a ellipse by using a non-activated graphics context. -//! @SYMTestActions 1. Create a CFbsBitGc object. -//! 2. Draw Ellipse. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get panic code 1 of BITGDI when drawing ellipse using a non-activated graphics context. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsBitGc NewL - COMMAND fbsBitGc DrawEllipse GRAPHICS-BITGDI-FbsBitGc-PublicApi-0341-DrawEllipse_command02 - END_TEST_BLOCK !PanicString=BITGDI !PanicCode=1 - RUN_TEST_STEP 100 T_GraphicsBitgdiApi utilityClearPanicDlg -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0341 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0342 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0342 -//! @SYMAPI CFbsBitGc::DrawLine(const TPoint{ref}, const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 28/11/2008 -//! @SYMTestCaseDesc Draw a line from start point to end point. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device with brush color just set. -//! 6. Draw a line from start point to end point. -//! 7. Check the whole line. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Draw a line without error. -//! 2. The drawing result is as expected. -//! 3. Check the line color specified in test data -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0342-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0342-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0342-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0342-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc DrawLine GRAPHICS-BITGDI-FbsBitGc-PublicApi-0342-DrawLine_command08 - COMMAND fbsScrDev checkLineColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0342-checkLineColor_command09 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0342 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0343 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0343 -//! @SYMAPI CFbsBitGc::DrawLine(const TPoint{ref}, const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a line from start point to end point which is out of user clip region. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device with brush color just set. -//! 6. Draw a line from start point to end point. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The line will not be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0343-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0343-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0343-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0343-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc DrawLine GRAPHICS-BITGDI-FbsBitGc-PublicApi-0343-DrawLine_command08 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0343 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0344 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0344 -//! @SYMAPI CFbsBitGc::DrawLine(const TPoint{ref}, const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a line to invalid graphic device. -//! @SYMTestActions 1. Create a CFbsBitGc object. -//! 2. Associate the CFbsBitGc object with the invalid CFbsScreenDevice object. -//! 3. Draw line. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get panic code 1 of BITGDI when trying to draw to an invalid device. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0344-Activate_command02 - COMMAND fbsBitGc DrawLine GRAPHICS-BITGDI-FbsBitGc-PublicApi-0344-DrawLine_command03 - END_TEST_BLOCK !PanicString=BITGDI !PanicCode=1 - RUN_TEST_STEP 100 T_GraphicsBitgdiApi utilityClearPanicDlg -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0344 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0345 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0345 -//! @SYMAPI CFbsBitGc::DrawLine(const TPoint{ref}, const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a line by using a non-activated graphics context. -//! @SYMTestActions 1. Create a CFbsBitGc object. -//! 2. Draw line. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get panic code 1 of BITGDI when drawing line using a non-activated graphics context. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsBitGc NewL - COMMAND fbsBitGc DrawLine GRAPHICS-BITGDI-FbsBitGc-PublicApi-0345-DrawLine_command02 - END_TEST_BLOCK !PanicString=BITGDI !PanicCode=1 - RUN_TEST_STEP 100 T_GraphicsBitgdiApi utilityClearPanicDlg -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0345 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0346 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0346 -//! @SYMAPI CFbsBitGc::DrawLineTo(const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 02/12/2008 -//! @SYMTestCaseDesc Draw a line from current drawing point to a specified point. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device with brush color just set. -//! 6. Draw a line from current drawing point to a specified point. -//! 7. Check the whole line. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Draw a line without error. -//! 2. The drawing result is as expected. -//! 3. Check the line color specified in test data -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0346-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0346-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0346-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0346-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc DrawLineTo GRAPHICS-BITGDI-FbsBitGc-PublicApi-0346-DrawLineTo_command08 - COMMAND fbsScrDev checkLineColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0346-checkLineColor_command09 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0346 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0347 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0347 -//! @SYMAPI CFbsBitGc::DrawLineTo(const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a line to invalid graphic device. -//! @SYMTestActions 1. Create a CFbsBitGc object. -//! 2. Associate the CFbsBitGc object with the invalid CFbsScreenDevice object. -//! 3. Draw line. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get panic code 1 of BITGDI when trying to draw to an invalid device. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0347-Activate_command02 - COMMAND fbsBitGc DrawLineTo GRAPHICS-BITGDI-FbsBitGc-PublicApi-0347-DrawLineTo_command03 - END_TEST_BLOCK !PanicString=BITGDI !PanicCode=1 - RUN_TEST_STEP 100 T_GraphicsBitgdiApi utilityClearPanicDlg -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0347 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0348 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0348 -//! @SYMAPI CFbsBitGc::DrawLineTo(const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a line by using a non-activated graphics context. -//! @SYMTestActions 1. Create a CFbsBitGc object. -//! 2. Draw line. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get panic code 1 of BITGDI when drawing line using a non-activated graphics context. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsBitGc NewL - COMMAND fbsBitGc DrawLineTo GRAPHICS-BITGDI-FbsBitGc-PublicApi-0348-DrawLineTo_command02 - END_TEST_BLOCK !PanicString=BITGDI !PanicCode=1 - RUN_TEST_STEP 100 T_GraphicsBitgdiApi utilityClearPanicDlg -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0348 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0349 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0349 -//! @SYMAPI CFbsBitGc::DrawLineBy(const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 02/12/2008 -//! @SYMTestCaseDesc Draw a straight line relative to the current drawing point, using a vector. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device with brush color just set. -//! 6. Draw a straight line relative to the current drawing point, using a vector. -//! 7. Check the whole line. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Draw a line without error. -//! 2. The drawing result is as expected. -//! 3. Check the line color specified in test data -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0349-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0349-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0349-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0349-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc DrawLineBy GRAPHICS-BITGDI-FbsBitGc-PublicApi-0349-DrawLineBy_command08 - COMMAND fbsScrDev checkLineColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0349-checkLineColor_command09 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0349 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0350 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0350 -//! @SYMAPI CFbsBitGc::DrawLineBy(const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a line to invalid graphic device. -//! @SYMTestActions 1. Create a CFbsBitGc object. -//! 2. Associate the CFbsBitGc object with the invalid CFbsScreenDevice object. -//! 3. Draw line. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get panic code 1 of BITGDI when trying to draw to an invalid device. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0350-Activate_command02 - COMMAND fbsBitGc DrawLineBy GRAPHICS-BITGDI-FbsBitGc-PublicApi-0350-DrawLineBy_command03 - END_TEST_BLOCK !PanicString=BITGDI !PanicCode=1 - RUN_TEST_STEP 100 T_GraphicsBitgdiApi utilityClearPanicDlg -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0350 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0351 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0351 -//! @SYMAPI CFbsBitGc::DrawLineBy(const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a line by using a non-activated graphics context. -//! @SYMTestActions 1. Create a CFbsBitGc object. -//! 2. Draw line. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get panic code 1 of BITGDI when drawing line using a non-activated graphics context. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsBitGc NewL - COMMAND fbsBitGc DrawLineBy GRAPHICS-BITGDI-FbsBitGc-PublicApi-0351-DrawLineTo_command02 - END_TEST_BLOCK !PanicString=BITGDI !PanicCode=1 - RUN_TEST_STEP 100 T_GraphicsBitgdiApi utilityClearPanicDlg -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0351 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0352 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0352 -//! @SYMAPI CFbsBitGc::DrawRect(const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/12/2008 -//! @SYMTestCaseDesc Draw a rectangle. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device with brush color just set. -//! 6. Set brush and pen color. -//! 7. Draw rectangle. -//! 8. Check the rectangle drawn. -//! 9. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Draw a rectangle without error. -//! 2. The drawing result is as expected. -//! 3. Check the rectangle. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0352-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0352-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0352-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0352-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0352-SetBrushColor_command08 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0352-SetPenColor_command09 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-0352-DrawRect_command10 - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0352-checkRectColor_command11 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0352 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0353 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0353 -//! @SYMAPI CFbsBitGc::DrawRect(const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 01/12/2008 -//! @SYMTestCaseDesc Negative case. Draw an empty rectangle. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device with brush color just set. -//! 6. Set brush and pen color. -//! 7. Draw rectangle. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The rectangle will not be drawn -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0353-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0353-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0353-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0353-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0353-SetBrushColor_command08 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0353-SetPenColor_command09 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-0353-DrawRect_command10 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0353 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0354 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0354 -//! @SYMAPI CFbsBitGc::DrawRect(const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a rectangle out of user clip region. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device with brush color just set. -//! 6. Set brush and pen color. -//! 7. Draw rectangle. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The rectangle will not be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0354-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0354-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0354-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0354-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0354-SetBrushColor_command08 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0354-SetPenColor_command09 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-0354-DrawRect_command10 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0354 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0355 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0355 -//! @SYMAPI CFbsBitGc::DrawRect(const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 09/12/2008 -//! @SYMTestCaseDesc Draw a rectangle with 0-width pen -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device with brush color just set. -//! 6. Set brush color and pen size to TSize(0, 1). -//! 7. Draw rectangle. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Draw a rectangle without error. -//! 2. The drawing result is as expected. -//! 3. Check the rectangle. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0355-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0355-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0355-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0355-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0355-SetBrushColor_command08 - COMMAND fbsBitGc SetPenSize GRAPHICS-BITGDI-FbsBitGc-PublicApi-0355-SetPenSize_command09 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-0355-DrawRect_command10 - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0355-checkRectColor_command11 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0355 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0356 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0356 -//! @SYMAPI CFbsBitGc::DrawRect(const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 09/12/2008 -//! @SYMTestCaseDesc Draw a rectangle with 0-height pen -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device with brush color just set. -//! 6. Set brush color and pen size to TSize(0, 1). -//! 7. Draw rectangle. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The rectangle will not be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0356-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0356-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0356-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0356-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0356-SetBrushColor_command08 - COMMAND fbsBitGc SetPenSize GRAPHICS-BITGDI-FbsBitGc-PublicApi-0356-SetPenSize_command09 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-0356-DrawRect_command10 - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0356-checkRectColor_command11 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0356 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0357 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0357 -//! @SYMAPI CFbsBitGc::DrawRect(const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 09/12/2008 -//! @SYMTestCaseDesc Draw a rectangle with null pen -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device with brush color just set. -//! 6. Set brush color and null pen. -//! 7. Draw rectangle. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The rectangle will not be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0357-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0357-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0357-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0357-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0357-SetBrushColor_command08 - COMMAND fbsBitGc SetPenStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0357-SetPenStyle_command09 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-0357-DrawRect_command10 - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0357-checkRectColor_command11 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0357 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0358 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0358 -//! @SYMAPI CFbsBitGc::DrawRect(const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 09/12/2008 -//! @SYMTestCaseDesc Draw a rectangle with dotted pen -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device with brush color just set. -//! 6. Set brush color and dotted pen. -//! 7. Draw rectangle. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The rectangle will not be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0358-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0358-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0358-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0358-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0358-SetBrushColor_command08 - COMMAND fbsBitGc SetPenStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0358-SetPenStyle_command09 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-0358-DrawRect_command10 - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0358-checkRectColor_command11 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0358 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0359 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0359 -//! @SYMAPI CFbsBitGc::DrawRect(const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 09/12/2008 -//! @SYMTestCaseDesc Draw a 1-width rectangle (a line). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device with brush color just set. -//! 6. Set brush and pen color. -//! 7. Draw rectangle. -//! 8. Check the rectangle drawn. -//! 9. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Draw a rectangle without error. -//! 2. The drawing result is as expected. -//! 3. Check the rectangle. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0359-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0359-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0359-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0359-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0359-SetBrushColor_command08 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0359-SetPenColor_command09 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-0359-DrawRect_command10 - COMMAND fbsScrDev checkLineColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0359-checkLineColor_command11 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0359 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0360 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0360 -//! @SYMAPI CFbsBitGc::DrawRect(const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 09/12/2008 -//! @SYMTestCaseDesc Draw a 1 x 1 rectangle (a line). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device with brush color just set. -//! 6. Set brush and pen color. -//! 7. Draw rectangle. -//! 8. Check the rectangle drawn. -//! 9. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Draw a rectangle without error. -//! 2. The drawing result is as expected. -//! 3. Check the rectangle. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0360-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0360-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0360-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0360-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0360-SetBrushColor_command08 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0360-SetPenColor_command09 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-0360-DrawRect_command10 - COMMAND fbsScrDev checkLineColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0360-checkLineColor_command11 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0360 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0361 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0361 -//! @SYMAPI CFbsBitGc::DrawRect(const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 09/12/2008 -//! @SYMTestCaseDesc Draw a rectangle with pen size TSize(1, 2). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device with brush color just set. -//! 6. Set brush color and pen size to TSize(1, 2). -//! 7. Draw rectangle. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The rectangle will not be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0361-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0361-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0361-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0361-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0361-SetBrushColor_command08 - COMMAND fbsBitGc SetPenSize GRAPHICS-BITGDI-FbsBitGc-PublicApi-0361-SetPenSize_command09 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-0361-DrawRect_command10 - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0361-checkRectColor_command11 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0361 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0362 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0362 -//! @SYMAPI CFbsBitGc::DrawRect(const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 09/12/2008 -//! @SYMTestCaseDesc Draw a rectangle with draw mode set to EDrawModeWriteAlpha. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device with brush color just set. -//! 6. Set brush color and draw mode. -//! 7. Draw rectangle. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The rectangle will not be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0362-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0362-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0362-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0362-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0362-SetBrushColor_command08 - COMMAND fbsBitGc SetDrawMode GRAPHICS-BITGDI-FbsBitGc-PublicApi-0362-SetDrawMode_command09 - COMMAND fbsBitGc SetPenSize GRAPHICS-BITGDI-FbsBitGc-PublicApi-0362-SetPenSize_command10 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-0362-DrawRect_command11 - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0362-checkRectColor_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0362 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0401 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0401 -//! @SYMAPI CFbsBitGc::DrawText(const TDesC{ref}) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 23/12/2008 -//! @SYMTestCaseDesc Draw a line of the text at the current position. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Set the current position to the point(20,20). -//! 8. Draw a line of the text. -//! 9. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults A line of text will be drawn without any panic. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0401-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0401-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0401-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0401-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0401-UseFont_command08 - COMMAND fbsBitGc MoveTo GRAPHICS-BITGDI-FbsBitGc-PublicApi-0401-MoveTo_command09 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0401-DrawText_command10 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0401-ReleaseFont_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0401 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0402 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0402 -//! @SYMAPI CFbsBitGc::DrawText(const TDesC{ref}) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 23/12/2008 -//! @SYMTestCaseDesc Negitive case, Set the TDesC is Null. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Set the current position to the point(20,20). -//! 8. Draw a line of the text. -//! 9. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Nothing will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0402-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0402-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0402-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0402-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0402-UseFont_command08 - COMMAND fbsBitGc MoveTo GRAPHICS-BITGDI-FbsBitGc-PublicApi-0402-MoveTo_command09 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0402-DrawText_command10 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0402-ReleaseFont_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0402 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0403 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0403 -//! @SYMAPI CFbsBitGc::DrawText(const TDesC{ref}, const TPoint(ref)). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 23/12/2008 -//! @SYMTestCaseDesc Draw a line of text at the specific position. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a line of the text at the beginning point(20,30). -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults A line of text will be drawn without any panic. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0403-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0403-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0403-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0403-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0403-UseFont_command08 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0403-DrawText_command09 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0403-ReleaseFont_command11 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0403 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0404 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0404 -//! @SYMAPI CFbsBitGc::DrawText(const TDesC{ref}, const TPoint(ref)). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 23/12/2008 -//! @SYMTestCaseDesc Negitve case,Draw a line of text at negitve/too big position. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a line of the text at negitive(-10,-10)/too big(640000,640000) point. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults DrawText is called without panic. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0404-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0404-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0404-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0404-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0404-UseFont_command08 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0404-DrawText_command09 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0404-DrawText_command10 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0404-ReleaseFont_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0404 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0405 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0405 -//! @SYMAPI CFbsBitGc::DrawText(const TDesC{ref}, const TRect(ref)). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 23/12/2008 -//! @SYMTestCaseDesc Draw a line of text within the clipping rectangle(0,0,100,200). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a line of the text within the clipping rectangle. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults A line of text will be drawn within the rectangle. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0405-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0405-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0405-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0405-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0405-UseFont_command08 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0405-DrawText_command09 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0405-ReleaseFont_command11 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0405 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0406 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0406 -//! @SYMAPI CFbsBitGc::DrawText(const TDesC{ref}, const TRect(ref)). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 23/12/2008 -//! @SYMTestCaseDesc Negitve case,Draw a line of text within the clipping rectangle(0,0,0,0). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a line of the text within the clipping rectangle. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Nothing will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0406-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0406-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0406-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0406-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0406-UseFont_command08 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0406-DrawText_command09 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0406-ReleaseFont_command11 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0406 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0407 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0407 -//! @SYMAPI CFbsBitGc::DrawText(const TDesC{ref}, const TRect(ref), TInt, TTextAlign, TInt). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 23/12/2008 -//! @SYMTestCaseDesc Draw a line of text within the clipping rectangle with params TTextAlign=ELeft/ECenter/ERight. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a line of the text within the clipping rectangle with params TTextAlign=ELeft/ECenter/ERight. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults A line of text will be drawn within the rectangle. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0407-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0407-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0407-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0407-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0407-UseFont_command08 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0407-DrawText_command09 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0407-DrawText_command10 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0407-DrawText_command11 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0407-ReleaseFont_command13 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0407 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0408 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0408 -//! @SYMAPI CFbsBitGc::DrawText(const TDesC{ref}, const TRect(ref), TInt, TTextAlign, TInt). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 23/12/2008 -//! @SYMTestCaseDesc Negtive case,Draw a line of text with bad params.(negtive/too big Baselineoffset and Margin) -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a line of the text with bad params. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Nothing will be drawn without any panic. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0408-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0408-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0408-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0408-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0408-UseFont_command08 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0408-DrawText_command09 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0408-DrawText_command10 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0408-ReleaseFont_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0408 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0409 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0409 -//! @SYMAPI CFbsBitGc::DrawText(const TDesC{ref}, const TRect(ref), TInt, TInt, TTextAlign, TInt). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 23/12/2008 -//! @SYMTestCaseDesc Draw a line of text within a rectangle. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a line of the text within the rectangle. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults A line of the text will be drawn without any panic. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0409-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0409-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0409-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0409-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0409-UseFont_command08 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0409-DrawText_command09 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0409-DrawText_command10 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0409-DrawText_command11 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0409-ReleaseFont_command13 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0409 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0410 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0410 -//! @SYMAPI CFbsBitGc::DrawText(const TDesC{ref}, const TRect(ref), TInt, TInt, TTextAlign, TInt). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 23/12/2008 -//! @SYMTestCaseDesc Negtive case,Draw a line of text with negitive/too big aTextWidth params. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a line of the text with bad params. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Nothing will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0410-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0410-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0410-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0410-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0410-UseFont_command08 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0410-DrawText_command09 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0410-DrawText_command10 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0410-ReleaseFont_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0410 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0411 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0411 -//! @SYMAPI CFbsBitGc::DrawTextVertical(const TDesC{ref}, TBool) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 23/12/2008 -//! @SYMTestCaseDesc Draw a vertical line of the text at the current position. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Set the current position to the point(20,20). -//! 8. Draw a vertical line of the text. -//! 9. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults A vertical line of text will be drawn without any panic. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0411-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0411-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0411-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0411-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0411-UseFont_command08 - COMMAND fbsBitGc MoveTo GRAPHICS-BITGDI-FbsBitGc-PublicApi-0411-MoveTo_command09 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0411-DrawTextVertical_command10 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0411-DrawTextVertical_command11 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0411-ReleaseFont_command13 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0411 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0412 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0412 -//! @SYMAPI CFbsBitGc::DrawTextVertical(const TDesC{ref}, TBool) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 23/12/2008 -//! @SYMTestCaseDesc Negitive case, Set the TDesC is Null. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Set the current position to the point(20,20). -//! 8. Draw a vertical line of the text. -//! 9. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Nothing will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0412-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0412-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0412-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0412-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0412-UseFont_command08 - COMMAND fbsBitGc MoveTo GRAPHICS-BITGDI-FbsBitGc-PublicApi-0412-MoveTo_command09 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0412-DrawTextVertical_command10 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0412-ReleaseFont_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0412 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0413 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0413 -//! @SYMAPI CFbsBitGc::DrawTextVertical(const TDesC{ref}, const TPoint(ref), TBool). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 23/12/2008 -//! @SYMTestCaseDesc Draw a vertical line of text at the specific position. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a vertical line of the text at the beginning point(20,30). -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults A verical line of text will be drawn without any panic. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0413-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0413-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0413-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0413-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0413-UseFont_command08 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0413-DrawTextVertical_command09 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0413-ReleaseFont_command11 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0413 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0414 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0414 -//! @SYMAPI CFbsBitGc::DrawTextVertical(const TDesC{ref}, const TPoint(ref), TBool). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 23/12/2008 -//! @SYMTestCaseDesc Negitve case,Draw a vertical line of text at negitve/too big position. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a vertical line of the text at negitive(-10,-10)/too big(640000,640000) point. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults DrawTextVertical is called without panic. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0414-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0414-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0414-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0414-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0414-UseFont_command08 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0414-DrawTextVertical_command09 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0414-DrawTextVertical_command10 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0414-ReleaseFont_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0414 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0415 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0415 -//! @SYMAPI CFbsBitGc::DrawTextVertical(const TDesC{ref}, const TRect(ref), TBool). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 23/12/2008 -//! @SYMTestCaseDesc Draw a vertical line of text within the clipping rectangle(0,0,100,200). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a vertical line of the text within the clipping rectangle. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults A vertical line of text will be drawn within the rectangle. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0415-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0415-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0415-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0415-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0415-UseFont_command08 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0415-DrawTextVertical_command09 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0415-ReleaseFont_command11 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0415 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0416 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0416 -//! @SYMAPI CFbsBitGc::DrawTextVertical(const TDesC{ref}, const TRect(ref), TBool). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 23/12/2008 -//! @SYMTestCaseDesc Negitve case,Draw a vertical line of text within the clipping rectangle(0,0,0,0). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a vertical line of the text within the clipping rectangle. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Nothing will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0416-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0416-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0416-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0416-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0416-UseFont_command08 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0416-DrawTextVertical_command09 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0416-ReleaseFont_command11 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0416 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0417 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0417 -//! @SYMAPI CFbsBitGc::DrawTextVertical(const TDesC{ref}, const TRect(ref), TInt, TBool, TTextAlign, TInt). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 23/12/2008 -//! @SYMTestCaseDesc Draw a vertical line of text within the clipping rectangle with params TTextAlign=ELeft/ECenter/ERight. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a vertical line of the text within the clipping rectangle with params TTextAlign=ELeft/ECenter/ERight. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults A vertical line of text will be drawn within the rectangle. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0417-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0417-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0417-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0417-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0417-UseFont_command08 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0417-DrawTextVertical_command09 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0417-DrawTextVertical_command10 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0417-DrawTextVertical_command11 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0417-ReleaseFont_command13 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0417 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0418 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0418 -//! @SYMAPI CFbsBitGc::DrawTextVertical(const TDesC{ref}, const TRect(ref), TInt, TBool, TTextAlign, TInt). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 23/12/2008 -//! @SYMTestCaseDesc Negtive case,Draw a vertical line of text with bad params.(negtive/too big Baselineoffset and Margin) -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a vertical line of the text with bad params. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Nothing will be drawn without any panic. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0418-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0418-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0418-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0418-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0418-UseFont_command08 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0418-DrawTextVertical_command09 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0418-DrawTextVertical_command10 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0418-ReleaseFont_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0418 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0419 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0419 -//! @SYMAPI CFbsBitGc::DrawTextVertical(const TDesC{ref}, const TRect(ref), TInt, TInt, TBool, TTextAlign, TInt). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 23/12/2008 -//! @SYMTestCaseDesc Draw a vertical line of text within a rectangle. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a vertical line of the text within the rectangle. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults A vertical line of the text will be drawn without any panic. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0419-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0419-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0419-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0419-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0419-UseFont_command08 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0419-DrawTextVertical_command09 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0419-ReleaseFont_command11 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0419 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0420 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0420 -//! @SYMAPI CFbsBitGc::DrawTextVertical(const TDesC{ref}, const TRect(ref), TInt, TInt, TBool, TTextAlign, TInt). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 23/12/2008 -//! @SYMTestCaseDesc Negtive case,Draw a vertical line of text with negitive/too big aTextWidth params. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a vertical line of the text with bad params. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Nothing will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0420-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0420-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0420-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0420-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0420-UseFont_command08 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0420-DrawTextVertical_command09 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0420-DrawTextVertical_command10 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0420-ReleaseFont_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0420 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0441 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0441 -//! @SYMAPI CFbsBitGc::DrawText(const TDesC{ref}, const TTextParameters{ptr}) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 24/12/2008 -//! @SYMTestCaseDesc Draw a line of the text at the specific position. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Set the current position to the TTextParameter. -//! 8. Draw a line of the text. -//! 9. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults A line of text will be drawn without any panic. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0441-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0441-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0441-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0441-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0441-UseFont_command08 - COMMAND fbsBitGc MoveTo GRAPHICS-BITGDI-FbsBitGc-PublicApi-0441-MoveTo_command09 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0441-DrawText_command10 - DELAY 500000 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0441-DrawText_command13 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0441-ReleaseFont_command16 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0441 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0442 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0442 -//! @SYMAPI CFbsBitGc::DrawText(const TDesC{ref}, const TTextParameters{ptr}) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negitive case, Set the TDesC is Null. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Set the current position to the point(20,20). -//! 8. Draw a line of the text. -//! 9. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Nothing will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0442-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0442-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0442-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0442-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0442-UseFont_command08 - COMMAND fbsBitGc MoveTo GRAPHICS-BITGDI-FbsBitGc-PublicApi-0442-MoveTo_command09 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0442-DrawText_command10 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0442-ReleaseFont_command13 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0442 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0443 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0443 -//! @SYMAPI CFbsBitGc::DrawText(const TDesC{ref}, const TTextParameters{ptr}) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negitive case, DrawText with bad TTextParameters(negtive position). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Set the current position to the point(20,20). -//! 8. Draw a line of the text. -//! 9. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Nothing will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0443-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0443-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0443-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0443-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0443-UseFont_command08 - COMMAND fbsBitGc MoveTo GRAPHICS-BITGDI-FbsBitGc-PublicApi-0443-MoveTo_command09 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0443-DrawText_command10 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0443-ReleaseFont_command13 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0443 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0444 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0444 -//! @SYMAPI CFbsBitGc::DrawText(const TDesC{ref}, const TTextParameters{ptr}) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negitive case, DrawText with bad TTextParameters(too big position). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Set the current position to the point(20,20). -//! 8. Draw a line of the text. -//! 9. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Nothing will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0444-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0444-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0444-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0444-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0444-UseFont_command08 - COMMAND fbsBitGc MoveTo GRAPHICS-BITGDI-FbsBitGc-PublicApi-0444-MoveTo_command09 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0444-DrawText_command10 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0444-ReleaseFont_command13 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0444 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0445 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0445 -//! @SYMAPI CFbsBitGc::DrawText(const TDesC{ref}, const TTextParameters{ptr}) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negitive case, DrawText with bad TTextParameters(iStart is bigger than iEnd). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Set the current position to the point(20,20). -//! 8. Draw a line of the text. -//! 9. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults GNothing will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0445-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0445-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0445-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0445-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0445-UseFont_command08 - COMMAND fbsBitGc MoveTo GRAPHICS-BITGDI-FbsBitGc-PublicApi-0445-MoveTo_command09 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0445-DrawText_command10 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0445-ReleaseFont_command13 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0445 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0446 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0446 -//! @SYMAPI CFbsBitGc::DrawText(const TDesC{ref}, const TTextParameters{ptr}) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negitive case, DrawText with bad TTextParameters(iStart is equal to iEnd). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Set the current position to the point(20,20). -//! 8. Draw a line of the text. -//! 9. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Nothing will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0446-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0446-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0446-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0446-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0446-UseFont_command08 - COMMAND fbsBitGc MoveTo GRAPHICS-BITGDI-FbsBitGc-PublicApi-0446-MoveTo_command09 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0446-DrawText_command10 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0446-ReleaseFont_command13 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0446 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0447 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0447 -//! @SYMAPI CFbsBitGc::DrawText(const TDesC{ref}, const TTextParameters{ptr}, const TPoint(ref)). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Draw a line of text at the specific position. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a line of the text at the beginning point(20,30). -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults A line of text will be drawn without any panic. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0447-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0447-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0447-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0447-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0447-UseFont_command08 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0447-DrawText_command09 - DELAY 500000 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0447-DrawText_command12 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0447-ReleaseFont_command15 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0447 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0448 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0448 -//! @SYMAPI CFbsBitGc::DrawText(const TDesC{ref}, const TTextParameters{ptr}, const TPoint(ref)). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negitve case, draw text with Null input and bad TPoint(Negtive/too big). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a line of the text. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults DrawText is called without panic. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0448-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0448-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0448-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0448-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0448-UseFont_command08 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0448-DrawText_command09 - DELAY 500000 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0448-DrawText_command11 - DELAY 500000 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0448-DrawText_command13 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0448-ReleaseFont_command16 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0448 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0449 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0449 -//! @SYMAPI CFbsBitGc::DrawText(const TDesC{ref}, const TTextParameters{ptr}, const TPoint(ref)). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negitive case, DrawText with bad TTextParameters(negtive position). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a line of the text. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults DrawText is called without panic. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0449-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0449-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0449-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0449-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0449-UseFont_command08 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0449-DrawText_command09 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0449-ReleaseFont_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0449 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0450 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0450 -//! @SYMAPI CFbsBitGc::DrawText(const TDesC{ref}, const TTextParameters{ptr}, const TPoint(ref)). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negitive case, DrawText with bad TTextParameters(too big position). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a line of the text. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults DrawText is called without panic. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0450-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0450-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0450-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0450-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0450-UseFont_command08 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0450-DrawText_command09 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0450-ReleaseFont_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0450 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0451 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0451 -//! @SYMAPI CFbsBitGc::DrawText(const TDesC{ref}, const TTextParameters{ptr}, const TPoint(ref)). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negitive case, DrawText with bad TTextParameters(iStart is bigger than iEnd). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a line of the text. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults DrawText is called without panic. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0451-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0451-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0451-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0451-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0451-UseFont_command08 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0451-DrawText_command09 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0451-ReleaseFont_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0451 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0452 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0452 -//! @SYMAPI CFbsBitGc::DrawText(const TDesC{ref}, const TTextParameters{ptr}, const TPoint(ref)). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negitive case, DrawText with bad TTextParameters(iStart is equal to iEnd). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a line of the text. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults DrawText is called without panic. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0452-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0452-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0452-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0452-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0452-UseFont_command08 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0452-DrawText_command09 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0452-ReleaseFont_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0452 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0453 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0453 -//! @SYMAPI CFbsBitGc::DrawText(const TDesC{ref}, const TTextParameters{ptr}, const TRect(ref)). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Draw a line of text within the clipping rectangle(0,0,100,200). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a line of the text within the clipping rectangle. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults A line of text will be drawn within the rectangle. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0453-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0453-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0453-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0453-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0453-UseFont_command08 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0453-DrawText_command09 - DELAY 500000 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0453-DrawText_command12 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0453-ReleaseFont_command15 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0453 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0454 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0454 -//! @SYMAPI CFbsBitGc::DrawText(const TDesC{ref}, const TTextParameters{ptr}, const TRect(ref)). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negitve case,Draw a line of text with Null input and bad TRect. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a line of the text within the clipping rectangle. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Nothing will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0454-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0454-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0454-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0454-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0454-UseFont_command08 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0454-DrawText_command09 - DELAY 500000 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0454-DrawText_command11 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0454-ReleaseFont_command14 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0454 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0455 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0455 -//! @SYMAPI CFbsBitGc::DrawText(const TDesC{ref}, const TTextParameters{ptr}, const TRect(ref)). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negitive case, DrawText with bad TTextParameters(negtive position). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a line of the text. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Nothing will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0455-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0455-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0455-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0455-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0455-UseFont_command08 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0455-DrawText_command09 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0455-ReleaseFont_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0455 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0456 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0456 -//! @SYMAPI CFbsBitGc::DrawText(const TDesC{ref}, const TTextParameters{ptr}, const TRect(ref)). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negitive case, DrawText with bad TTextParameters(too big position). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a line of the text. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Nothing will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0456-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0456-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0456-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0456-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0456-UseFont_command08 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0456-DrawText_command09 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0456-ReleaseFont_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0456 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0457 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0457 -//! @SYMAPI CFbsBitGc::DrawText(const TDesC{ref}, const TTextParameters{ptr}, const TRect(ref)). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negitive case, DrawText with bad TTextParameters(iStart is bigger than iEnd). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a line of the text. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Nothing will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0457-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0457-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0457-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0457-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0457-UseFont_command08 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0457-DrawText_command09 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0457-ReleaseFont_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0457 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0458 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0458 -//! @SYMAPI CFbsBitGc::DrawText(const TDesC{ref}, const TTextParameters{ptr}, const TRect(ref)). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negitive case, DrawText with bad TTextParameters(iStart is equal to iEnd). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a line of the text. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Nothing will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0458-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0458-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0458-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0458-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0458-UseFont_command08 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0458-DrawText_command09 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0458-ReleaseFont_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0458 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0459 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0459 -//! @SYMAPI CFbsBitGc::DrawText(const TDesC{ref}, const TTextParameters{ptr}, const TRect(ref), TInt, TTextAlign, TInt). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Draw a line of text within the clipping rectangle with params TTextAlign=ELeft/ECenter/ERight. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a line of the text within the clipping rectangle with params TTextAlign=ELeft/ECenter/ERight. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults A line of text will be drawn within the rectangle. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0459-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0459-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0459-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0459-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0459-UseFont_command08 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0459-DrawText_command09 - DELAY 500000 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0459-DrawText_command12 - DELAY 500000 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0459-DrawText_command15 - DELAY 500000 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0459-DrawText_command18 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0459-ReleaseFont_command21 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0459 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0460 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0460 -//! @SYMAPI CFbsBitGc::DrawText(const TDesC{ref}, const TTextParameters{ptr}, const TRect(ref), TInt, TTextAlign, TInt). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negtive case,Draw a line of text with Null input, bad aBaselineOffset and bad aMargin. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a line of the text with bad params. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Nothing will be drawn without any panic. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0460-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0460-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0460-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0460-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0460-UseFont_command08 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0460-DrawText_command09 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0460-DrawText_command10 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0460-DrawText_command11 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0460-ReleaseFont_command14 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0460 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0461 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0461 -//! @SYMAPI CFbsBitGc::DrawText(const TDesC{ref}, const TTextParameters{ptr}, const TRect(ref), TInt, TTextAlign, TInt). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negitive case, DrawText with bad TTextParameters(negtive position). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a line of the text. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Nothing will be drawn without any panic. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0461-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0461-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0461-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0461-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0461-UseFont_command08 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0461-DrawText_command09 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0461-ReleaseFont_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0461 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0462 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0462 -//! @SYMAPI CFbsBitGc::DrawText(const TDesC{ref}, const TTextParameters{ptr}, const TRect(ref), TInt, TTextAlign, TInt). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negitive case, DrawText with bad TTextParameters(too big position). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a line of the text. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Nothing will be drawn without any panic. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0462-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0462-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0462-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0462-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0462-UseFont_command08 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0462-DrawText_command09 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0462-ReleaseFont_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0462 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0463 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0463 -//! @SYMAPI CFbsBitGc::DrawText(const TDesC{ref}, const TTextParameters{ptr}, const TRect(ref), TInt, TTextAlign, TInt). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negitive case, DrawText with bad TTextParameters(iStart is bigger than iEnd). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a line of the text. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Nothing will be drawn without any panic. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0463-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0463-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0463-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0463-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0463-UseFont_command08 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0463-DrawText_command09 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0463-ReleaseFont_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0463 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0464 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0464 -//! @SYMAPI CFbsBitGc::DrawText(const TDesC{ref}, const TTextParameters{ptr}, const TRect(ref), TInt, TTextAlign, TInt). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negitive case, DrawText with bad TTextParameters(iStart is equal to iEnd). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a line of the text. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Nothing will be drawn without any panic. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0464-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0464-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0464-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0464-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0464-UseFont_command08 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0464-DrawText_command09 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0464-ReleaseFont_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0464 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0465 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0465 -//! @SYMAPI CFbsBitGc::DrawText(const TDesC{ref}, const TTextParameters{ptr}, const TRect(ref), TInt, TInt, TTextAlign, TInt). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Draw a line of text within a rectangle. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a line of the text within the rectangle. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults A line of the text will be drawn without any panic. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0465-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0465-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0465-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0465-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0465-UseFont_command08 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0465-DrawText_command09 - DELAY 500000 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0465-DrawText_command12 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0465-ReleaseFont_command15 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0465 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0466 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0466 -//! @SYMAPI CFbsBitGc::DrawText(const TDesC{ref}, const TTextParameters{ptr}, const TRect(ref), TInt, TInt, TTextAlign, TInt). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negtive case,Draw a line of text with Null input and bad aTextWidth. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a line of the text with bad params. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Nothing will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0466-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0466-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0466-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0466-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0466-UseFont_command08 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0466-DrawText_command09 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0466-DrawText_command10 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0466-DrawText_command11 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0466-ReleaseFont_command14 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0466 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0467 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0467 -//! @SYMAPI CFbsBitGc::DrawText(const TDesC{ref}, const TTextParameters{ptr}, const TRect(ref), TInt, TInt, TTextAlign, TInt). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negitive case, DrawText with bad TTextParameters(negtive position). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a line of the text. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Nothing will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0467-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0467-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0467-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0467-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0467-UseFont_command08 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0467-DrawText_command09 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0467-ReleaseFont_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0467 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0468 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0468 -//! @SYMAPI CFbsBitGc::DrawText(const TDesC{ref}, const TTextParameters{ptr}, const TRect(ref), TInt, TInt, TTextAlign, TInt). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negitive case, DrawText with bad TTextParameters(too big position). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a line of the text. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Nothing will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0468-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0468-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0468-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0468-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0468-UseFont_command08 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0468-DrawText_command09 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0468-ReleaseFont_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0468 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0469 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0469 -//! @SYMAPI CFbsBitGc::DrawText(const TDesC{ref}, const TTextParameters{ptr}, const TRect(ref), TInt, TInt, TTextAlign, TInt). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negitive case, DrawText with bad TTextParameters(iStart is bigger than iEnd). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a line of the text. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Nothing will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0469-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0469-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0469-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0469-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0469-UseFont_command08 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0469-DrawText_command09 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0469-ReleaseFont_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0469 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0470 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0470 -//! @SYMAPI CFbsBitGc::DrawText(const TDesC{ref}, const TTextParameters{ptr}, const TRect(ref), TInt, TInt, TTextAlign, TInt). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negitive case, DrawText with bad TTextParameters(iStart is equal to iEnd). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a line of the text. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Nothing will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0470-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0470-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0470-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0470-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0470-UseFont_command08 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-0470-DrawText_command09 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0470-ReleaseFont_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0470 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0471 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0471 -//! @SYMAPI CFbsBitGc::DrawTextVertical(const TDesC{ref}, const TTextParameters{ptr}, TBool) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Draw a vertical line of the text at the specific position. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Set the current position to the TTextParameter. -//! 8. Draw a vertical line of the text. -//! 9. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults A vertical line of text will be drawn without any panic. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0471-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0471-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0471-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0471-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0471-UseFont_command08 - COMMAND fbsBitGc MoveTo GRAPHICS-BITGDI-FbsBitGc-PublicApi-0471-MoveTo_command09 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0471-DrawTextVertical_command10 - DELAY 500000 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0471-DrawTextVertical_command13 - DELAY 500000 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0471-DrawTextVertical_command16 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0471-ReleaseFont_command19 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0471 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0472 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0472 -//! @SYMAPI CFbsBitGc::DrawTextVertical(const TDesC{ref}, const TTextParameters{ptr}, TBool) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negitive case, Set the TDesC is Null. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Set the current position to the point(20,20). -//! 8. Draw a line of the text. -//! 9. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Nothing will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0472-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0472-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0472-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0472-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0472-UseFont_command08 - COMMAND fbsBitGc MoveTo GRAPHICS-BITGDI-FbsBitGc-PublicApi-0472-MoveTo_command09 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0472-DrawTextVertical_command10 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0472-ReleaseFont_command13 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0472 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0473 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0473 -//! @SYMAPI CFbsBitGc::DrawTextVertical(const TDesC{ref}, const TTextParameters{ptr}, TBool) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negitive case, DrawText with bad TTextParameters(negtive position). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Set the current position to the point(20,20). -//! 8. Draw a vertical line of the text. -//! 9. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Nothing will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0473-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0473-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0473-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0473-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0473-UseFont_command08 - COMMAND fbsBitGc MoveTo GRAPHICS-BITGDI-FbsBitGc-PublicApi-0473-MoveTo_command09 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0473-DrawTextVertical_command10 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0473-ReleaseFont_command13 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0473 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0474 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0474 -//! @SYMAPI CFbsBitGc::DrawTextVertical(const TDesC{ref}, const TTextParameters{ptr}, TBool) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negitive case, DrawText with bad TTextParameters(too big position). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Set the current position to the point(20,20). -//! 8. Draw a line of the text. -//! 9. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Nothing will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0474-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0474-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0474-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0474-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0474-UseFont_command08 - COMMAND fbsBitGc MoveTo GRAPHICS-BITGDI-FbsBitGc-PublicApi-0474-MoveTo_command09 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0474-DrawTextVertical_command10 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0474-ReleaseFont_command13 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0474 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0475 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0475 -//! @SYMAPI CFbsBitGc::DrawTextVertical(const TDesC{ref}, const TTextParameters{ptr}, TBool) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negitive case, DrawText with bad TTextParameters(iStart is equal to iEnd). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Set the current position to the point(20,20). -//! 8. Draw a vertical line of the text. -//! 9. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Nothing will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0475-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0475-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0475-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0475-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0475-UseFont_command08 - COMMAND fbsBitGc MoveTo GRAPHICS-BITGDI-FbsBitGc-PublicApi-0475-MoveTo_command09 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0475-DrawTextVertical_command10 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0475-ReleaseFont_command13 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0475 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0476 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0476 -//! @SYMAPI CFbsBitGc::DrawTextVertical(const TDesC{ref}, const TTextParameters{ptr}, TBool) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negitive case, DrawText with bad TTextParameters(iStart is bigger than iEnd). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Set the current position to the point(20,20). -//! 8. Draw a vertical line of the text. -//! 9. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Nothing will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0476-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0476-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0476-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0476-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0476-UseFont_command08 - COMMAND fbsBitGc MoveTo GRAPHICS-BITGDI-FbsBitGc-PublicApi-0476-MoveTo_command09 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0476-DrawTextVertical_command10 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0476-ReleaseFont_command13 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0476 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0477 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0477 -//! @SYMAPI CFbsBitGc::DrawTextVertical(const TDesC{ref}, const TTextParameters{ptr}, const TPoint(ref), TBool). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Draw a vertical line of text at the specific position. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a vertical line of the text at the beginning point(20,30). -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults A vertical line of text will be drawn without any panic. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0477-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0477-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0477-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0477-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0477-UseFont_command08 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0477-DrawTextVertical_command09 - DELAY 500000 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0477-DrawTextVertical_command12 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0477-ReleaseFont_command15 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0477 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0478 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0478 -//! @SYMAPI CFbsBitGc::DrawTextVertical(const TDesC{ref}, const TTextParameters{ptr}, const TPoint(ref), TBool). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negitive case, Set the TDesC is Null and bad Point. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Set the current position to the point(20,20). -//! 8. Draw a line of the text. -//! 9. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Nothing will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0478-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0478-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0478-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0478-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0478-UseFont_command08 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0478-DrawTextVertical_command09 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0478-DrawTextVertical_command10 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0478-DrawTextVertical_command11 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0478-ReleaseFont_command14 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0478 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0479 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0479 -//! @SYMAPI CFbsBitGc::DrawTextVertical(const TDesC{ref}, const TTextParameters{ptr}, const TPoint(ref), TBool). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negitive case, Draw text with bad TTextParameters(negtive position). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Set the current position to the point(20,20). -//! 8. Draw a line of the text. -//! 9. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Nothing will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0479-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0479-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0479-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0479-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0479-UseFont_command08 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0479-DrawTextVertical_command09 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0479-ReleaseFont_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0479 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0480 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0480 -//! @SYMAPI CFbsBitGc::DrawTextVertical(const TDesC{ref}, const TTextParameters{ptr}, const TPoint(ref), TBool). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negitive case, DrawText with bad TTextParameters(too big position). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Set the current position to the point(20,20). -//! 8. Draw a line of the text. -//! 9. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Nothing will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0480-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0480-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0480-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0480-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0480-UseFont_command08 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0480-DrawTextVertical_command09 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0480-ReleaseFont_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0480 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0481 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0481 -//! @SYMAPI CFbsBitGc::DrawTextVertical(const TDesC{ref}, const TTextParameters{ptr}, const TPoint(ref), TBool). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negitive case, DrawText with bad TTextParameters(iStart is equal to iEnd). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Set the current position to the point(20,20). -//! 8. Draw a line of the text. -//! 9. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Nothing will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0481-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0481-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0481-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0481-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0481-UseFont_command08 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0481-DrawTextVertical_command09 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0481-ReleaseFont_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0481 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0482 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0482 -//! @SYMAPI CFbsBitGc::DrawTextVertical(const TDesC{ref}, const TTextParameters{ptr}, const TPoint(ref), TBool). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negitive case, DrawText with bad TTextParameters(iStart is bigger than iEnd). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Set the current position to the point(20,20). -//! 8. Draw a line of the text. -//! 9. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Nothing will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0482-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0482-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0482-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0482-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0482-UseFont_command08 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0482-DrawTextVertical_command09 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0482-ReleaseFont_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0482 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0483 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0483 -//! @SYMAPI CFbsBitGc::DrawTextVertical(const TDesC{ref}, const TTextParameters{ptr}, const TRect(ref), TBool). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Draw a vertical line of text within the clipping rectangle(0,0,100,200). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a vertical line of the text within the clipping rectangle. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults A vertical line of text will be drawn within the rectangle. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0483-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0483-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0483-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0483-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0483-UseFont_command08 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0483-DrawTextVertical_command09 - DELAY 500000 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0483-DrawTextVertical_command12 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0483-ReleaseFont_command15 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0483 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0484 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0484 -//! @SYMAPI CFbsBitGc::DrawTextVertical(const TDesC{ref}, const TTextParameters{ptr}, const TRect(ref), TBool). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negitve case,Draw a vertical line of text with Null input and bad TRect. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a vertical line of the text within the clipping rectangle. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Nothing will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0484-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0484-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0484-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0484-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0484-UseFont_command08 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0484-DrawTextVertical_command09 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0484-DrawTextVertical_command10 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0484-DrawTextVertical_command11 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0484-DrawTextVertical_command12 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0484-ReleaseFont_command15 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0484 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0485 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0485 -//! @SYMAPI CFbsBitGc::DrawTextVertical(const TDesC{ref}, const TTextParameters{ptr}, const TRect(ref), TBool). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negitve case,Draw a vertical with bad TTextParameters(negitive position). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a vertical line of the text within the clipping rectangle. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Nothing will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0485-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0485-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0485-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0485-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0485-UseFont_command08 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0485-DrawTextVertical_command09 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0485-ReleaseFont_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0485 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0486 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0486 -//! @SYMAPI CFbsBitGc::DrawTextVertical(const TDesC{ref}, const TTextParameters{ptr}, const TRect(ref), TBool). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negitve case,Draw a vertical line with bad TTextParameters(Too big position). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a vertical line of the text within the clipping rectangle. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Nothing will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0486-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0486-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0486-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0486-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0486-UseFont_command08 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0486-DrawTextVertical_command09 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0486-ReleaseFont_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0486 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0487 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0487 -//! @SYMAPI CFbsBitGc::DrawTextVertical(const TDesC{ref}, const TTextParameters{ptr}, const TRect(ref), TBool). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negitve case,Draw a vertical with bad TTextParameters(iStart is equal to iEnd). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a vertical line of the text within the clipping rectangle. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Nothing will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0487-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0487-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0487-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0487-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0487-UseFont_command08 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0487-DrawTextVertical_command09 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0487-ReleaseFont_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0487 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0488 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0488 -//! @SYMAPI CFbsBitGc::DrawTextVertical(const TDesC{ref}, const TTextParameters{ptr}, const TRect(ref), TBool). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negitve case,Draw a vertical with bad TTextParameters(iStart is bigger than iEnd). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a vertical line of the text within the clipping rectangle. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Nothing will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0488-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0488-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0488-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0488-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0488-UseFont_command08 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0488-DrawTextVertical_command09 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0488-ReleaseFont_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0488 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0489 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0489 -//! @SYMAPI CFbsBitGc::DrawTextVertical(const TDesC{ref}, const TTextParameters{ptr}, const TRect(ref), TInt, TTextAlign, TInt, TBool). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Draw a vertical line of text within the clipping rectangle with params TTextAlign=ELeft/ECenter/ERight. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a vertical line of the text within the clipping rectangle with params TTextAlign=ELeft/ECenter/ERight. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults A vertical line of text will be drawn within the rectangle. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0489-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0489-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0489-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0489-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0489-UseFont_command08 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0489-DrawTextVertical_command09 - DELAY 500000 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0489-DrawTextVertical_command12 - DELAY 500000 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0489-DrawTextVertical_command15 - DELAY 500000 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0489-DrawTextVertical_command18 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0489-ReleaseFont_command21 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0489 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0490 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0490 -//! @SYMAPI CFbsBitGc::DrawTextVertical(const TDesC{ref}, const TTextParameters{ptr}, const TRect(ref), TInt, TTextAlign, TInt, TBool). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negtive case,Draw a vertical line of text with Null input and bad BaselineOffset and bad Margin. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a vertical line of the text with bad params. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Nothing will be drawn without any panic. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0490-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0490-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0490-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0490-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0490-UseFont_command08 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0490-DrawTextVertical_command09 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0490-DrawTextVertical_command10 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0490-DrawTextVertical_command11 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0490-ReleaseFont_command14 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0490 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0491 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0491 -//! @SYMAPI CFbsBitGc::DrawTextVertical(const TDesC{ref}, const TTextParameters{ptr}, const TRect(ref), TInt, TTextAlign, TInt, TBool). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negtive case,Draw a vertical line of text with bad TTextParameters(negitive point). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a vertical line of the text with bad params. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Nothing will be drawn without any panic. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0491-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0491-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0491-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0491-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0491-UseFont_command08 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0491-DrawTextVertical_command09 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0491-ReleaseFont_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0491 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0492 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0492 -//! @SYMAPI CFbsBitGc::DrawTextVertical(const TDesC{ref}, const TTextParameters{ptr}, const TRect(ref), TInt, TTextAlign, TInt, TBool). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negtive case,Draw a vertical line of text with bad TTextParameters(too big position). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a vertical line of the text with bad params. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Nothing will be drawn without any panic. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0492-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0492-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0492-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0492-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0492-UseFont_command08 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0492-DrawTextVertical_command09 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0492-ReleaseFont_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0492 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0493 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0493 -//! @SYMAPI CFbsBitGc::DrawTextVertical(const TDesC{ref}, const TTextParameters{ptr}, const TRect(ref), TInt, TTextAlign, TInt, TBool). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 26/12/2008 -//! @SYMTestCaseDesc Negtive case,Draw a vertical line of text with bad TTextParameters(iStart is equal to iEnd). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a vertical line of the text with bad params. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Nothing will be drawn without any panic. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0493-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0493-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0493-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0493-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0493-UseFont_command08 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0493-DrawTextVertical_command09 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0493-ReleaseFont_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0493 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0494 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0494 -//! @SYMAPI CFbsBitGc::DrawTextVertical(const TDesC{ref}, const TTextParameters{ptr}, const TRect(ref), TInt, TTextAlign, TInt, TBool). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 26/12/2008 -//! @SYMTestCaseDesc Negtive case,Draw a vertical line of text with bad TTextParameters(iStart is bigger than iEnd). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a vertical line of the text with bad params. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Nothing will be drawn without any panic. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0494-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0494-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0494-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0494-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0494-UseFont_command08 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0494-DrawTextVertical_command09 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0494-ReleaseFont_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0494 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0495 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0495 -//! @SYMAPI CFbsBitGc::DrawTextVertical(const TDesC{ref}, const TTextParameters{ptr}, const TRect(ref), TInt, TInt, TTextAlign, TInt, TBool). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Draw a vertical line of text within a rectangle. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a vertical line of the text within the rectangle. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults A vertical line of the text will be drawn without any panic. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0495-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0495-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0495-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0495-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0495-UseFont_command08 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0495-DrawTextVertical_command09 - DELAY 500000 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0495-DrawTextVertical_command12 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0495-ReleaseFont_command15 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0495 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0496 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0496 -//! @SYMAPI CFbsBitGc::DrawTextVertical(const TDesC{ref}, const TTextParameters{ptr}, const TRect(ref), TInt, TInt, TTextAlign, TInt, TBool). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 26/12/2008 -//! @SYMTestCaseDesc Negtive case,Draw a vertical line of text with Null input and bad TextWidth. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a vertical line of the text with bad params. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Nothing will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0496-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0496-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0496-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0496-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0496-UseFont_command08 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0496-DrawTextVertical_command09 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0496-DrawTextVertical_command10 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0496-DrawTextVertical_command11 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0496-DrawTextVertical_command12 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0496-ReleaseFont_command15 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0496 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0497 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0497 -//! @SYMAPI CFbsBitGc::DrawTextVertical(const TDesC{ref}, const TTextParameters{ptr}, const TRect(ref), TInt, TInt, TTextAlign, TInt, TBool). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negtive case,Draw a vertical line of text with bad TTextParameters(negitive position). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a vertical line of the text within the rectangle. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Nothing will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0497-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0497-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0497-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0497-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0497-UseFont_command08 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0497-DrawTextVertical_command09 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0497-ReleaseFont_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0497 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0498 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0498 -//! @SYMAPI CFbsBitGc::DrawTextVertical(const TDesC{ref}, const TTextParameters{ptr}, const TRect(ref), TInt, TInt, TTextAlign, TInt, TBool). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 26/12/2008 -//! @SYMTestCaseDesc Negtive case,Draw a vertical line of text with bad TTextParameters(too big position). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a vertical line of the text with bad params. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Nothing will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0498-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0498-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0498-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0498-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0498-UseFont_command08 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0498-DrawTextVertical_command09 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0498-ReleaseFont_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0498 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0499 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0499 -//! @SYMAPI CFbsBitGc::DrawTextVertical(const TDesC{ref}, const TTextParameters{ptr}, const TRect(ref), TInt, TInt, TTextAlign, TInt, TBool). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negtive case,Draw a vertical line of text with bad TTextParameters(iStart is equal to iEnd). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a vertical line of the text within the rectangle. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Nothing will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0499-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0499-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0499-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0499-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0499-UseFont_command08 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0499-DrawTextVertical_command09 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0499-ReleaseFont_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0499 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0500 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0500 -//! @SYMAPI CFbsBitGc::DrawTextVertical(const TDesC{ref}, const TTextParameters{ptr}, const TRect(ref), TInt, TInt, TTextAlign, TInt, TBool). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negtive case,Draw a vertical line of text with bad TTextParameters(iStart is bigger than iEnd). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Clear the device and set pen color TRgb(255, 0, 255). -//! 6. Set the useFont. -//! 7. Draw a vertical line of the text within the rectangle. -//! 8. Release useFont and disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Nothing will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0500-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0500-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0500-SetPenColor_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0500-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0500-UseFont_command08 - COMMAND fbsBitGc DrawTextVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0500-DrawTextVertical_command09 - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0500-ReleaseFont_command12 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0500 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0501 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0501 -//! @SYMAPI CFbsBitGc::UpdateJustification(const TDesC{ref}) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 24/12/2008 -//! @SYMTestCaseDesc Update the Justification setting. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Update the justification settings. -//! 6. Disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Justification is updated without any error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0501-NewL_command03 - COMMAND fbsBitGc ActivateNoJustAutoUpdate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0501-ActivateNoJustAutoUpdate_command04 - COMMAND fbsBitGc UpdateJustification GRAPHICS-BITGDI-FbsBitGc-PublicApi-0501-UpdateJustification_command05 - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0501 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0502 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0502 -//! @SYMAPI CFbsBitGc::UpdateJustification(const TDesC{ref}) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 24/12/2008 -//! @SYMTestCaseDesc Negitive case,Update the Justification setting by Null input. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Update the justification settings. -//! 6. Disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Justification is called without any panic. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0502-NewL_command03 - COMMAND fbsBitGc ActivateNoJustAutoUpdate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0502-ActivateNoJustAutoUpdate_command04 - COMMAND fbsBitGc UpdateJustification GRAPHICS-BITGDI-FbsBitGc-PublicApi-0502-UpdateJustification_command05 - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0502 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0503 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0503 -//! @SYMAPI CFbsBitGc::UpdateJustificationVertical(const TDesC{ref}, TBool) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 24/12/2008 -//! @SYMTestCaseDesc Update the Justification setting. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Update the justification settings. -//! 6. Disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Justification is updated without any error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0503-NewL_command03 - COMMAND fbsBitGc ActivateNoJustAutoUpdate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0503-ActivateNoJustAutoUpdate_command04 - COMMAND fbsBitGc UpdateJustificationVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0503-UpdateJustificationVertical_command05 - COMMAND fbsBitGc UpdateJustificationVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0503-UpdateJustificationVertical_command06 - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0503 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0504 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0504 -//! @SYMAPI CFbsBitGc::UpdateJustificationVertical(const TDesC{ref}, TBool) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 24/12/2008 -//! @SYMTestCaseDesc Negitive case,Update the Justification setting by Null input. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Update the justification settings. -//! 6. Disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Justification is called without any panic. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0504-NewL_command03 - COMMAND fbsBitGc ActivateNoJustAutoUpdate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0504-ActivateNoJustAutoUpdate_command04 - COMMAND fbsBitGc UpdateJustificationVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0504-UpdateJustificationVertical_command05 - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0504 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0505 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0505 -//! @SYMAPI CFbsBitGc::UpdateJustification(const TDesC{ref}, const TTextParameters{ptr}) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Update the Justification setting. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Update the justification settings. -//! 6. Disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Justification is updated without any error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0505-NewL_command03 - COMMAND fbsBitGc ActivateNoJustAutoUpdate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0505-ActivateNoJustAutoUpdate_command04 - COMMAND fbsBitGc UpdateJustification GRAPHICS-BITGDI-FbsBitGc-PublicApi-0505-UpdateJustification_command05 - COMMAND fbsBitGc UpdateJustification GRAPHICS-BITGDI-FbsBitGc-PublicApi-0505-UpdateJustification_command06 - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0505 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0506 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0506 -//! @SYMAPI CFbsBitGc::UpdateJustification(const TDesC{ref}, const TTextParameters{ptr}) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negtive case, Update the Justification setting with Null input. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Update the justification settings. -//! 6. Disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Justification is updated without any error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0506-NewL_command03 - COMMAND fbsBitGc ActivateNoJustAutoUpdate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0506-ActivateNoJustAutoUpdate_command04 - COMMAND fbsBitGc UpdateJustification GRAPHICS-BITGDI-FbsBitGc-PublicApi-0506-UpdateJustification_command05 - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0506 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0507 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0507 -//! @SYMAPI CFbsBitGc::UpdateJustification(const TDesC{ref}, const TTextParameters{ptr}) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negtive case, Update the Justification with bad TTextParameters(negtive position). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Update the justification settings. -//! 6. Disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Justification is updated without any error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0507-NewL_command03 - COMMAND fbsBitGc ActivateNoJustAutoUpdate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0507-ActivateNoJustAutoUpdate_command04 - COMMAND fbsBitGc UpdateJustification GRAPHICS-BITGDI-FbsBitGc-PublicApi-0507-UpdateJustification_command05 - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0507 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0508 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0508 -//! @SYMAPI CFbsBitGc::UpdateJustification(const TDesC{ref}, const TTextParameters{ptr}) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negtive case, Update the Justification with bad TTextParameters(too big position). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Update the justification settings. -//! 6. Disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Justification is updated without any error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0508-NewL_command03 - COMMAND fbsBitGc ActivateNoJustAutoUpdate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0508-ActivateNoJustAutoUpdate_command04 - COMMAND fbsBitGc UpdateJustification GRAPHICS-BITGDI-FbsBitGc-PublicApi-0508-UpdateJustification_command05 - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0508 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0509 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0509 -//! @SYMAPI CFbsBitGc::UpdateJustification(const TDesC{ref}, const TTextParameters{ptr}) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negtive case, Update the Justification with bad TTextParameters(iStart is equal to iEnd). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Update the justification settings. -//! 6. Disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Justification is updated without any error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0509-NewL_command03 - COMMAND fbsBitGc ActivateNoJustAutoUpdate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0509-ActivateNoJustAutoUpdate_command04 - COMMAND fbsBitGc UpdateJustification GRAPHICS-BITGDI-FbsBitGc-PublicApi-0509-UpdateJustification_command05 - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0509 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0510 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0510 -//! @SYMAPI CFbsBitGc::UpdateJustification(const TDesC{ref}, const TTextParameters{ptr}) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negtive case, Update the Justification with bad TTextParameters(iStart is bigger than iEnd). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Update the justification settings. -//! 6. Disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Justification is updated without any error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0510-NewL_command03 - COMMAND fbsBitGc ActivateNoJustAutoUpdate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0510-ActivateNoJustAutoUpdate_command04 - COMMAND fbsBitGc UpdateJustification GRAPHICS-BITGDI-FbsBitGc-PublicApi-0510-UpdateJustification_command05 - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0510 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0511 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0511 -//! @SYMAPI CFbsBitGc::UpdateJustificationVertical(const TDesC{ref}, const TTextParameters{ptr}, TBool) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Update the Justification setting. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Update the justification settings. -//! 6. Disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Justification is updated without any error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0511-NewL_command03 - COMMAND fbsBitGc ActivateNoJustAutoUpdate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0511-ActivateNoJustAutoUpdate_command04 - COMMAND fbsBitGc UpdateJustificationVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0511-UpdateJustificationVertical_command05 - COMMAND fbsBitGc UpdateJustificationVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0511-UpdateJustificationVertical_command06 - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0511 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0512 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0512 -//! @SYMAPI CFbsBitGc::UpdateJustificationVertical(const TDesC{ref}, const TTextParameters{ptr}, TBool) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negtive case, Update the Justification setting with NULL input. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Update the justification settings. -//! 6. Disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Justification is updated without any error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0512-NewL_command03 - COMMAND fbsBitGc ActivateNoJustAutoUpdate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0512-ActivateNoJustAutoUpdate_command04 - COMMAND fbsBitGc UpdateJustificationVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0512-UpdateJustificationVertical_command05 - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0512 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0513 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0513 -//! @SYMAPI CFbsBitGc::UpdateJustificationVertical(const TDesC{ref}, const TTextParameters{ptr}, TBool) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negtive case, Update the Justification setting with bad TTextParameters(negtive position). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Update the justification settings. -//! 6. Disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Justification is updated without any error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0513-NewL_command03 - COMMAND fbsBitGc ActivateNoJustAutoUpdate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0513-ActivateNoJustAutoUpdate_command04 - COMMAND fbsBitGc UpdateJustificationVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0513-UpdateJustificationVertical_command05 - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0513 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0514 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0514 -//! @SYMAPI CFbsBitGc::UpdateJustificationVertical(const TDesC{ref}, const TTextParameters{ptr}, TBool) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negtive case, Update the Justification setting with bad TTextParameters(too big position). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Update the justification settings. -//! 6. Disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Justification is updated without any error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0514-NewL_command03 - COMMAND fbsBitGc ActivateNoJustAutoUpdate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0514-ActivateNoJustAutoUpdate_command04 - COMMAND fbsBitGc UpdateJustificationVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0514-UpdateJustificationVertical_command05 - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0514 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0515 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0515 -//! @SYMAPI CFbsBitGc::UpdateJustificationVertical(const TDesC{ref}, const TTextParameters{ptr}, TBool) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negtive case, Update the Justification setting with bad TTextParameters(iStart is equal to iEnd). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Update the justification settings. -//! 6. Disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Justification is updated without any error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0515-NewL_command03 - COMMAND fbsBitGc ActivateNoJustAutoUpdate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0515-ActivateNoJustAutoUpdate_command04 - COMMAND fbsBitGc UpdateJustificationVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0515-UpdateJustificationVertical_command05 - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0515 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0516 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0516 -//! @SYMAPI CFbsBitGc::UpdateJustificationVertical(const TDesC{ref}, const TTextParameters{ptr}, TBool) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Negtive case, Update the Justification setting with bad TTextParameters(iStart is bigger than iEnd). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Update the justification settings. -//! 6. Disconnect RFbsSession, destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Justification is updated without any error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0516-NewL_command03 - COMMAND fbsBitGc ActivateNoJustAutoUpdate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0516-ActivateNoJustAutoUpdate_command04 - COMMAND fbsBitGc UpdateJustificationVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0516-UpdateJustificationVertical_command05 - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0516 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0517 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0517 -//! @SYMAPI CFbsBitGc::UpdateJustificationVertical(const TDesC{ref}, TBool); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 19/01/2009 -//! @SYMTestCaseDesc Set the character justification to (30, 6), (-30, 6), (30, -1), (0, -2); -//! Set the word justification to (20, 3), (-20, 3), (20, -1), (0, -1); -//! Update the justification for vertical text respectively. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object. -//! 4. Activate the CFbsBitGc object and clear the device. -//! 5. Set the character justification to (30, 6). -//! 6. Update the justification for vertical text. -//! 7. Set the word justification to (20, 3). -//! 8. Update the justification for vertical text. -//! 9. Set the character justification to (-30, 6). -//! 10.Update the justification for vertical text. -//! 11.Set the word justification to (-20, 3). -//! 12.Update the justification for vertical text. -//! 13.Set the character justification to (30, -1). -//! 14.Update the justification for vertical text. -//! 15.Set the word justification to (20, -1). -//! 16.Update the justification for vertical text. -//! 17.Set the character justification to (0, -2). -//! 18.Update the justification for vertical text. -//! 19.Set the word justification to (0, -1). -//! 20.Update the justification for vertical text. -//! 21.Destroy CFbsBitGc object and CFbsScreenDevice object. -//! 22.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Update justification without error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0517-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc ActivateNoJustAutoUpdate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0517-ActivateNoJustAutoUpdate_command04 - COMMAND fbsBitGc SetCharJustification GRAPHICS-BITGDI-FbsBitGc-PublicApi-0517-SetCharJustification_command05 - COMMAND fbsBitGc UpdateJustificationVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0517-UpdateJustificationVertical_command06 - COMMAND fbsBitGc SetWordJustification GRAPHICS-BITGDI-FbsBitGc-PublicApi-0517-SetWordJustification_command07 - COMMAND fbsBitGc UpdateJustificationVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0517-UpdateJustificationVertical_command08 - COMMAND fbsBitGc SetCharJustification GRAPHICS-BITGDI-FbsBitGc-PublicApi-0517-SetCharJustification_command09 - COMMAND fbsBitGc UpdateJustificationVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0517-UpdateJustificationVertical_command10 - COMMAND fbsBitGc SetWordJustification GRAPHICS-BITGDI-FbsBitGc-PublicApi-0517-SetWordJustification_command11 - COMMAND fbsBitGc UpdateJustificationVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0517-UpdateJustificationVertical_command12 - COMMAND fbsBitGc SetCharJustification GRAPHICS-BITGDI-FbsBitGc-PublicApi-0517-SetCharJustification_command13 - COMMAND fbsBitGc UpdateJustificationVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0517-UpdateJustificationVertical_command14 - COMMAND fbsBitGc SetWordJustification GRAPHICS-BITGDI-FbsBitGc-PublicApi-0517-SetWordJustification_command15 - COMMAND fbsBitGc UpdateJustificationVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0517-UpdateJustificationVertical_command16 - COMMAND fbsBitGc SetCharJustification GRAPHICS-BITGDI-FbsBitGc-PublicApi-0517-SetCharJustification_command17 - COMMAND fbsBitGc UpdateJustificationVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0517-UpdateJustificationVertical_command18 - COMMAND fbsBitGc SetWordJustification GRAPHICS-BITGDI-FbsBitGc-PublicApi-0517-SetWordJustification_command19 - COMMAND fbsBitGc UpdateJustificationVertical GRAPHICS-BITGDI-FbsBitGc-PublicApi-0517-UpdateJustificationVertical_command20 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0517 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0601 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0601 -//! @SYMAPI CFbsBitGc::DrawRect(const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a rectangle to invalid graphic device. -//! @SYMTestActions 1. Create a CFbsBitGc object. -//! 2. Associate the CFbsBitGc object with the invalid CFbsScreenDevice object. -//! 3. Draw rectangle. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get panic code 1 of BITGDI when trying to draw to an invalid device. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0601-Activate_command02 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-0601-DrawRect_command03 - END_TEST_BLOCK !PanicString=BITGDI !PanicCode=1 - RUN_TEST_STEP 100 T_GraphicsBitgdiApi utilityClearPanicDlg -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0601 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0602 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0602 -//! @SYMAPI CFbsBitGc::DrawRect(const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Negative case. Draw a rectangle by using a non-activated graphics context. -//! @SYMTestActions 1. Create a CFbsBitGc object. -//! 2. Draw rectangle. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get panic code 1 of BITGDI when drawing line using a non-activated graphics context. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsBitGc NewL - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-0602-DrawRect_command02 - END_TEST_BLOCK !PanicString=BITGDI !PanicCode=1 - RUN_TEST_STEP 100 T_GraphicsBitgdiApi utilityClearPanicDlg -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0602 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0801 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0801 -//! @SYMAPI CFbsBitGc::MapColors(const TRect{ref}, const TRgb{ptr}, TInt, TBool) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 07/01/2009 -//! @SYMTestCaseDesc Maps pixels in the specified rectangle. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and solid brush and clear the device. -//! 6. Map pixels in rectangle area (0, 0, 100, 100) with TRgb pair {TRgb(255, 255, 255), TRgb(0, 255, 0)}. -//! 7. Check the rectangle area which has color mapped. -//! 8. Map pixels in rectangle area (101, 101, 150, 150) with TRgb pair {TRgb(0, 0, 255), TRgb(0, 255, 0)}. -//! 9. Check the rectangle area which has color mapped. -//! 10. Update the device. -//! 11. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. The color-mapped rectangle will be drawn in color TRgb(0, 255, 0) -//! 2. Check the 2 mapped rectangles. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0801-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0801-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0801-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0801-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc MapColors GRAPHICS-BITGDI-FbsBitGc-PublicApi-0801-MapColors_command08 - COMMAND fbsBitGc MapColors GRAPHICS-BITGDI-FbsBitGc-PublicApi-0801-MapColors_command09 - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0801-checkRectColor_command10 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0801 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0802 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0802 -//! @SYMAPI CFbsBitGc::MapColors(const TRect{ref}, const TRgb{ptr}, TInt, TBool) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 07/01/2009 -//! @SYMTestCaseDesc Negative case. Maps pixels in empty rectangle and a rectangle intersects with but does not equal to mapping rectangle. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and solid brush and clear the device. -//! 6. Map pixels in rectangle area (0, 0, 0, 0) with TRgb pair {TRgb(255, 255, 255), TRgb(0, 255, 0)} and clear the device. -//! 7. Set brush color TRgb(255, 0, 0) and pen color TRgb(255, 0, 0). -//! 8. Draw a rectangle area (0, 0, 50, 50) in TRgb(255, 0, 0). -//! 9. Map pixels in rectangle area (10, 10, 100, 100) with TRgb pair {TRgb(255, 0, 0), TRgb(0, 255, 0)}. -//! 10. Check the drawn and mapped rectangles. -//! 11. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. First call to MapColors() will have no effects. -//! 2. Second call to MapColors() will have color of rectangle area (10, 10, 50, 50) mapped. -//! 3. The color of rectangles (0, 0, 10 ,50), (10, 0, 50, 10) in color TRgb(255, 0, 0). -//! 4. The color of rectangles (10, 50, 50 ,100), (50, 10, 100, 100) in color TRgb(255, 255, 255). -//! 5. The color of rectangle (10, 10, 50 ,50) in color TRgb(0, 255, 0). -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0802-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0802-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0802-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0802-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc MapColors GRAPHICS-BITGDI-FbsBitGc-PublicApi-0802-MapColors_command08 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0802-SetBrushColor_command10 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0802-SetPenColor_command11 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-0802-DrawRect_command12 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsBitGc MapColors GRAPHICS-BITGDI-FbsBitGc-PublicApi-0802-MapColors_command15 - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0802-checkRectColor_command16 - COMMAND fbsSession Disconnect - DELAY 500000 - COMMAND fbsScrDev Update - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0802 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0803 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0803 -//! @SYMAPI CFbsBitGc::MapColors(const TRect{ref}, const TRgb{ptr}, TInt, TBool) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 07/01/2009 -//! @SYMTestCaseDesc Negative case. Maps pixels in the specified rectangle which does not intersect with clipping rectangle. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device. -//! 6. Set clipping rectangle area(110, 110, 120, 120). -//! 7. Map pixels in rectangle area (0, 0, 100, 100) with TRgb pair {TRgb(255, 255, 255), TRgb(0, 255, 0)}. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults MapColors() will be called without error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0803-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0803-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0803-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0803-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetClippingRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-0803-SetClippingRect_command08 - COMMAND fbsBitGc MapColors GRAPHICS-BITGDI-FbsBitGc-PublicApi-0803-MapColors_command09 - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0803 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0804 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0804 -//! @SYMAPI CFbsBitGc::MapColors(const TRect{ref}, const TRgb{ptr}, TInt, TBool) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 07/01/2009 -//! @SYMTestCaseDesc Negative case. Maps pixels in the specified rectangle using non-activated CFbsBitGc object. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Map pixels in rectangle area (0, 0, 100, 100) with TRgb pair {TRgb(255, 255, 255), TRgb(0, 255, 0)}. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get Panic code 1 and PanicString BITGDI. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsBitGc NewL - COMMAND fbsBitGc MapColors GRAPHICS-BITGDI-FbsBitGc-PublicApi-0804-MapColors_command03 - END_TEST_BLOCK !PanicString=BITGDI !PanicCode=1 - RUN_TEST_STEP 100 T_GraphicsBitgdiApi utilityClearPanicDlg -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0804 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0901 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0901 -//! @SYMAPI CFbsBitGc::MoveTo(const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 01/12/2008 -//! @SYMTestCaseDesc Sets the internal drawing position relative to the co-ordinate origin. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device with brush color just set. -//! 6. Move the drawing position to point. -//! 7. Draw a line. -//! 8. Check the start point of the line as the result of MoveTo() operation. -//! 9. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Current drawing position is move to point specified in test data. -//! 2. The target point is drawn as the start point of the line. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0901-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0901-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0901-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0901-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc MoveTo GRAPHICS-BITGDI-FbsBitGc-PublicApi-0901-MoveTo_command08 - COMMAND fbsBitGc DrawLineTo GRAPHICS-BITGDI-FbsBitGc-PublicApi-0901-DrawLineTo_command09 - COMMAND fbsScrDev checkPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0901-checkPixels_command10 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0901 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0902 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0902 -//! @SYMAPI CFbsBitGc::MoveBy(const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 01/12/2008 -//! @SYMTestCaseDesc Sets the internal drawing position relative to the co-ordinate origin. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device with brush color just set. -//! 6. Draw a line. -//! 7. Move current drawing position relative to the end point of the line just drawn. -//! 8. Draw a line. -//! 9. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Current drawing position is move to point specified in test data. -//! 2. The target point is drawn as the start point of the line. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0902-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0902-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0902-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0902-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc DrawLine GRAPHICS-BITGDI-FbsBitGc-PublicApi-0902-DrawLine_command08 - COMMAND fbsBitGc MoveBy GRAPHICS-BITGDI-FbsBitGc-PublicApi-0902-MoveBy_command09 - COMMAND fbsBitGc DrawLineBy GRAPHICS-BITGDI-FbsBitGc-PublicApi-0902-DrawLineBy_command10 - COMMAND fbsScrDev Update - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0902 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0911 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0911 -//! @SYMAPI CFbsBitGc::OrientationsAvailable(TBool{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 09/01/2009 -//! @SYMTestCaseDesc Get the orientations supported. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Get the orientations supported. -//! 6. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults OrientationsAvailable() will be called without error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0911-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0911-Activate_command04 - COMMAND fbsBitGc OrientationsAvailable GRAPHICS-BITGDI-FbsBitGc-PublicApi-0911-OrientationsAvailable_command05 - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0911 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0912 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0912 -//! @SYMAPI CFbsBitGc::OrientationsAvailable(TBool{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 09/01/2009 -//! @SYMTestCaseDesc Negative case. Get the orientations supported on a non-activated CFbsBitGc object. -//! @SYMTestActions 1. Create a CFbsBitGc object. -//! 2. Get the orientations supported. -//! 3. Destruct CFbsBitGc object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults OrientationsAvailable() will be called without error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsBitGc NewL - COMMAND fbsBitGc OrientationsAvailable GRAPHICS-BITGDI-FbsBitGc-PublicApi-0912-OrientationsAvailable_command02 - COMMAND fbsBitGc ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0912 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0921 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0921 -//! @SYMAPI CFbsBitGc::Plot(const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 07/01/2009 -//! @SYMTestCaseDesc Draws a single point. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color TRgb(255, 255, 255) and clear the device with brush color just set. -//! 6. Draw a single point (10, 7). -//! 7. check the pixels just drawn. -//! 8. Set pen size to TSize(30, 1) and plot point (30, 30). -//! 9. Set pen size to TSize(1, 30) and plot point (60, 60). -//! 10. Check the 2 drawn lines and clear the device. -//! 11. Set pen size to TSize(40, 40) and plot point (110, 110). -//! 12. Check pixels of the filled circle. -//! 13. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. The point will be drawn. -//! 2. Point (10, 7) in color TRgb(0, 0, 0). -//! 3. Lines from point (16, 30) to point (45, 30) and from point (60, 46) to (60, 75) in color TRgb(0, 0, 0). -//! 4. Point (110, 110), (130, 110), (91, 110), (110, 91), (110, 130) in color TRgb(0, 0, 0). -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0921-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0921-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0921-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0921-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc Plot GRAPHICS-BITGDI-FbsBitGc-PublicApi-0921-Plot_command08 - COMMAND fbsScrDev checkPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0921-checkPixels_command09 - COMMAND fbsBitGc SetPenSize GRAPHICS-BITGDI-FbsBitGc-PublicApi-0921-SetPenSize_command10 - COMMAND fbsBitGc Plot GRAPHICS-BITGDI-FbsBitGc-PublicApi-0921-Plot_command11 - COMMAND fbsBitGc SetPenSize GRAPHICS-BITGDI-FbsBitGc-PublicApi-0921-SetPenSize_command12 - COMMAND fbsBitGc Plot GRAPHICS-BITGDI-FbsBitGc-PublicApi-0921-Plot_command13 - COMMAND fbsScrDev checkLineColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0921-checkLineColor_command14 - COMMAND fbsBitGc SetPenSize GRAPHICS-BITGDI-FbsBitGc-PublicApi-0921-SetPenSize_command15 - COMMAND fbsBitGc Plot GRAPHICS-BITGDI-FbsBitGc-PublicApi-0921-Plot_command16 - COMMAND fbsScrDev checkPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0921-checkPixels_command17 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0921 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0922 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0922 -//! @SYMAPI CFbsBitGc::Plot(const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 07/01/2009 -//! @SYMTestCaseDesc Negative case. Draws a single point using non-activated CFbsBitGc object. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Draw a point. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get Panic code 1 and PanicString BITGDI. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Plot GRAPHICS-BITGDI-FbsBitGc-PublicApi-0922-Plot_command03 - END_TEST_BLOCK !PanicString=BITGDI !PanicCode=1 - RUN_TEST_STEP 100 T_GraphicsBitgdiApi utilityClearPanicDlg -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0922 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0923 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0923 -//! @SYMAPI CFbsBitGc::Plot(const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 07/01/2009 -//! @SYMTestCaseDesc Negative case. Draws a single point with null pen. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object and clear the device. -//! 5. Set pen style to null pen. -//! 6. Draw a single point. -//! 7. Check color of the point. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. The point will not be drawn. -//! 2. The color of the point is TRgb(255, 255, 255). -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0923-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0923-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0923-SetPenStyle_command06 - COMMAND fbsBitGc Plot GRAPHICS-BITGDI-FbsBitGc-PublicApi-0923-Plot_command07 - COMMAND fbsScrDev checkPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0923-checkPixels_command08 - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0923 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0924 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0924 -//! @SYMAPI CFbsBitGc::Plot(const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 07/01/2009 -//! @SYMTestCaseDesc Negative case. Draws a single point with pen size set to TSize(0, 1). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object and clear the device. -//! 5. Set pen size to TSize(0, 1). -//! 6. Draw a single point. -//! 7. Check color of the point. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. The point will not be drawn. -//! 2. The color of the point is TRgb(255, 255, 255). -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0924-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0924-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenSize GRAPHICS-BITGDI-FbsBitGc-PublicApi-0924-SetPenSize_command06 - COMMAND fbsBitGc Plot GRAPHICS-BITGDI-FbsBitGc-PublicApi-0924-Plot_command07 - COMMAND fbsScrDev checkPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0924-checkPixels_command08 - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0924 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0925 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0925 -//! @SYMAPI CFbsBitGc::Plot(const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 07/01/2009 -//! @SYMTestCaseDesc Negative case. Draws a single point with pen size set to TSize(0, 0). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object and clear the device. -//! 5. Set pen size to TSize(0, 0). -//! 6. Draw a single point. -//! 7. Check color of the point. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. The point will not be drawn. -//! 2. The color of the point is TRgb(255, 255, 255). -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0925-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0925-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenSize GRAPHICS-BITGDI-FbsBitGc-PublicApi-0925-SetPenSize_command06 - COMMAND fbsBitGc Plot GRAPHICS-BITGDI-FbsBitGc-PublicApi-0925-Plot_command07 - COMMAND fbsScrDev checkPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0925-checkPixels_command08 - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0925 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0926 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0926 -//! @SYMAPI CFbsBitGc::Plot(const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 07/01/2009 -//! @SYMTestCaseDesc Negative case. Draws a single point in rectangle area which doesnt intersect with clipping rectangle. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set clipping rectangle area TRect(8000, 8000, 8005, 8005). -//! 6. Draw a single point (10, 10). -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The point will not be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0926-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0926-Activate_command04 - COMMAND fbsBitGc SetClippingRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-0926-SetClippingRect_command05 - COMMAND fbsBitGc Plot GRAPHICS-BITGDI-FbsBitGc-PublicApi-0926-Plot_command06 - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0926 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0927 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0927 -//! @SYMAPI CFbsBitGc::RectDrawnTo(TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 09/01/2009 -//! @SYMTestCaseDesc Get the bounding rectangle of all drawing done before this function is called. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Draw a line from TPoint(5, 0) to TPoint(5, 100) -//! 6. Draw a line from TPoint(0, 0) to TPoint(100, 0) -//! 7. Get the bounding rectangle of all drawing done. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults RectDrawnTo() will be called without error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0927-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0927-Activate_command04 - COMMAND fbsBitGc DrawLine GRAPHICS-BITGDI-FbsBitGc-PublicApi-0927-DrawLine_command05 - COMMAND fbsBitGc DrawLine GRAPHICS-BITGDI-FbsBitGc-PublicApi-0927-DrawLine_command06 - COMMAND fbsBitGc RectDrawnTo GRAPHICS-BITGDI-FbsBitGc-PublicApi-0927-RectDrawnTo_command07 - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0927 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0928 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0928 -//! @SYMAPI CFbsBitGc::RectDrawnTo(TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 09/01/2009 -//! @SYMTestCaseDesc Negative case. Get the bounding rectangle of all drawing done before this function is called which is very large. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Draw a line from TPoint(5, 0) to TPoint(5, 8000) -//! 6. Get the bounding rectangle of all drawing done. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults RectDrawnTo() will be called without error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0928-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0928-Activate_command04 - COMMAND fbsBitGc DrawLine GRAPHICS-BITGDI-FbsBitGc-PublicApi-0928-DrawLine_command05 - COMMAND fbsBitGc RectDrawnTo GRAPHICS-BITGDI-FbsBitGc-PublicApi-0928-RectDrawnTo_command06 - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0928 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0929 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0929 -//! @SYMAPI CFbsBitGc::RectDrawnTo(TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 09/01/2009 -//! @SYMTestCaseDesc Negative case. Get the bounding rectangle when no drawing done. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Get the bounding rectangle of all drawing done. -//! 6. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults RectDrawnTo() will be called without error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0929-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0929-Activate_command04 - COMMAND fbsBitGc RectDrawnTo GRAPHICS-BITGDI-FbsBitGc-PublicApi-0929-RectDrawnTo_command05 - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0929 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0930 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0930 -//! @SYMAPI CFbsBitGc::RectDrawnTo(TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 09/01/2009 -//! @SYMTestCaseDesc Negative case. Get the bounding rectangle of non-activated CFbsBitGc object. -//! @SYMTestActions 1. Create a CFbsBitGc object. -//! 5. Get the bounding rectangle of all drawing done. -//! 6. Destruct CFbsBitGc object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults RectDrawnTo() will be called without error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsBitGc NewL - COMMAND fbsBitGc RectDrawnTo GRAPHICS-BITGDI-FbsBitGc-PublicApi-0930-RectDrawnTo_command02 - COMMAND fbsBitGc ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0930 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0931 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0931 -//! @SYMAPI CFbsBitGc::Reset() -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/01/2009 -//! @SYMTestCaseDesc Resets the graphics context to its default settings. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and a CFbsTypefaceStore object and a CFbsFont object. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Set brush color to TRgb(255, 0, 0) and brush style to ESolidBrush and clear the device. -//! 6. Set pen size to (10, 1) and draw a line from point (0, 5) to point (10, 5) which is actually a rectangle. -//! 7. Set clipping rectangle area (10, 20, 20, 30). -//! 8. Draw a line from point (25, 20) to (35, 20) which is actually a rectangle. -//! 9. Set brush and pen color to TRgb(0, 255, 0) and TRgb(0, 0, 255) respectively. -//! 10. Set clipping rectangle area (30, 0, 100, 100). -//! 11. Set draw mode to EDrawModeAND and set pen style to EDottedPen. -//! 12. Draw a rectangle area (30, 0, 120, 120). -//! 13. Check the 3 rectangles. -//! 14. Get a font and make CFbsBitGc object use this font. -//! 15. Test if the font is used. -//! 16. Reset the CFbsBitGc object. -//! 17. Clear the device and test if the font is used. -//! 18. Draw a rectangle area (0, 0, 60, 120). -//! 19. Check the rectangle and its border. -//! 20. Disconnect RFbsSession , release CFbsFont object and destruct CFbsBitGc object, CFbsTypefaceStore object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Reset() will be called without error. -//! 2. The first 2 rectangles drawn before Reset() call is in color TRgb(0, 0, 0). The 3rd rectangle area in clipping rectangle is in color TRgb(255, 0, 0) -//! 3. Before Reset() is called, IsFontUsed() returns true. After that call, IsFontUsed() returns false. -//! 4. The rectangle drawn after Reset() call is in color TRgb(255, 255, 255). -//! 5. The border of rectangle drawn after Reset() call is in color TRgb(0, 0, 0). -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsTypefaceStore fbsTypefaceStore - CREATE_OBJECT CFbsFont fbsFont - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0931-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0931-Activate_command04 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0931-SetBrushColor_command05 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0931-SetBrushStyle_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenSize GRAPHICS-BITGDI-FbsBitGc-PublicApi-0931-SetPenSize_command08 - COMMAND fbsBitGc DrawLine GRAPHICS-BITGDI-FbsBitGc-PublicApi-0931-DrawLine_command09 - COMMAND fbsBitGc SetClippingRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-0931-SetClippingRect_command10 - COMMAND fbsBitGc DrawLine GRAPHICS-BITGDI-FbsBitGc-PublicApi-0931-DrawLine_command11 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0931-SetBrushColor_command12 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0931-SetPenColor_command13 - COMMAND fbsBitGc SetClippingRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-0931-SetClippingRect_command14 - COMMAND fbsBitGc SetDrawMode GRAPHICS-BITGDI-FbsBitGc-PublicApi-0931-SetDrawMode_command15 - COMMAND fbsBitGc SetPenStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-0931-SetPenStyle_command16 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-0931-DrawRect_command17 - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0931-checkRectColor_command18 - COMMAND fbsTypefaceStore NewL - COMMAND fbsTypefaceStore GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-0931-GetNearestFontToDesignHeightInPixels_command19 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0931-UseFont_command20 - COMMAND fbsBitGc IsFontUsed GRAPHICS-BITGDI-FbsBitGc-PublicApi-0931-IsFontUsed_command21 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsBitGc Reset - COMMAND fbsBitGc Clear - COMMAND fbsBitGc IsFontUsed GRAPHICS-BITGDI-FbsBitGc-PublicApi-0931-IsFontUsed_command26 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-0931-DrawRect_command27 - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0931-checkRectColor_command28 - COMMAND fbsScrDev checkLineColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-0931-checkLineColor_command29 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsTypefaceStore ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-0931-ReleaseFont_command32 - COMMAND fbsTypefaceStore ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0931 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0932 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0932 -//! @SYMAPI CFbsBitGc::Reset() -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/01/2009 -//! @SYMTestCaseDesc Resets the graphics context to its default settings using a non-activated CFbsBitGc object. -//! @SYMTestActions 1. Create a CFbsBitGc object. -//! 2. Reset the CFbsBitGc object. -//! 3. Destruct CFbsBitGc object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Reset will be called without error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Reset - COMMAND fbsBitGc ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0932 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0941 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0941 -//! @SYMAPI CFbsBitGc::Resized() -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 12/01/2009 -//! @SYMTestCaseDesc Needs to be called if the CFbsBitmapDevice is resized. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object and a CFbsBitmap object. -//! 3. Load the bitmap. -//! 4. Create a CFbsBitmapDevice object using the CFbsBitmap object. -//! 5. Activate the CFbsBitGc object to draw to the CFbsBitmapDevice object. -//! 6. Resize CFbsBitmapDevice object. -//! 7. Call Resized of CFbsBitGc object -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object, CFbsBitmap object and CFbsBitmapDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Resized will be called without error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitmapDevice fbsBmpDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0941-Load_command04 - COMMAND fbsBmpDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0941-NewL_command05 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0941-Activate_command06 - COMMAND fbsBmpDev Resize GRAPHICS-BITGDI-FbsBitGc-PublicApi-0941-Resize_command07 - COMMAND fbsBitGc Resized - COMMAND fbsBitGc ~ - COMMAND fbsBitmap ~ - COMMAND fbsBmpDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0941 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0942 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0942 -//! @SYMAPI CFbsBitGc::Resized() -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 12/01/2009 -//! @SYMTestCaseDesc Negative case. Called without CFbsBitmapDevice object resized. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object and a CFbsBitmap object. -//! 3. Load the bitmap. -//! 4. Create a CFbsBitmapDevice object using the CFbsBitmap object. -//! 5. Activate the CFbsBitGc object to draw to the CFbsBitmapDevice object. -//! 6. Call Resized of CFbsBitGc object -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object, CFbsBitmap object and CFbsBitmapDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Resized will be called without error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitmapDevice fbsBmpDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0942-Load_command04 - COMMAND fbsBmpDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0942-NewL_command05 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0942-Activate_command06 - COMMAND fbsBitGc Resized - COMMAND fbsBitGc ~ - COMMAND fbsBitmap ~ - COMMAND fbsBmpDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0942 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0943 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0943 -//! @SYMAPI CFbsBitGc::Resized() -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 12/01/2009 -//! @SYMTestCaseDesc Negative case. Called using a non-activated CFbsBitGc object. -//! @SYMTestActions 1. Create a CFbsBitGc object. -//! 2. Call Resized of CFbsBitGc object -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get Panic code 1 and Panic String BITGDI -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Resized - END_TEST_BLOCK !PanicString=BITGDI !PanicCode=1 - RUN_TEST_STEP 100 T_GraphicsBitgdiApi utilityClearPanicDlg -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0943 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0944 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-0944 -//! @SYMAPI CFbsBitGc::Resized() -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 13/01/2009 -//! @SYMTestCaseDesc Negative case. Needs to be called if the CFbsBitmapDevice is resized. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsBitmap object and load the bitmap. -//! 4. Create a CFbsBitmapDevice object using the CFbsBitmap object. -//! 5. Activate the CFbsBitGc object to draw to the CFbsBitmapDevice object. -//! 6. Draw a line from point (0, 0) to (8000, 8000). -//! 7. Set the drawing and brush origin to (-8000, -8000). -//! 8. Resize CFbsBitmapDevice object. -//! 9. Call Resized of CFbsBitGc object -//! 10. Disconnect RFbsSession and destruct CFbsBitGc object, CFbsBitmap object and CFbsBitmapDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Resized will be called without error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitmapDevice fbsBmpDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-0944-Load_command04 - COMMAND fbsBmpDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-0944-NewL_command05 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-0944-Activate_command06 - COMMAND fbsBitGc DrawLine GRAPHICS-BITGDI-FbsBitGc-PublicApi-0944-DrawLine_command07 - COMMAND fbsBitGc SetOrigin GRAPHICS-BITGDI-FbsBitGc-PublicApi-0944-SetOrigin_command08 - COMMAND fbsBitGc SetBrushOrigin GRAPHICS-BITGDI-FbsBitGc-PublicApi-0944-SetBrushOrigin_command09 - COMMAND fbsBmpDev Resize GRAPHICS-BITGDI-FbsBitGc-PublicApi-0944-Resize_command10 - COMMAND fbsBitGc Resized - COMMAND fbsBitGc ~ - COMMAND fbsBitmap ~ - COMMAND fbsBmpDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-0944 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1101 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1101 -//! @SYMAPI CFbsBitGc::SetBrushStyle(TBrushStyle); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 08/01/2009 -//! @SYMTestCaseDesc Set the brush style to ENullBrush and draw a hollow pie. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object. -//! 4. Activate the CFbsBitGc object and clear the device. -//! 5. Set the brush style to ENullBrush. -//! 6. Set the brush color to TRgb(0, 0, 0). -//! 7. Draw a pie. -//! 8. Update the device. -//! 9. Check a pixel in pie. -//! 10.Delay half a second -//! 11.Destroy CFbsBitGc object and CFbsScreenDevice object. -//! 12.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults A hollow pie will be drawn and the color in TPoint(90, 90) should be TRgb(255, 255, 255). -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1101-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1101-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-1101-SetBrushStyle_command06 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1101-SetBrushColor_command07 - COMMAND fbsBitGc DrawPie GRAPHICS-BITGDI-FbsBitGc-PublicApi-1101-DrawPie_command08 - COMMAND fbsScrDev Update - COMMAND fbsScrDev checkPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-1101-checkPixels_command10 - DELAY 500000 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1101 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1102 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1102 -//! @SYMAPI CFbsBitGc::SetBrushStyle(TBrushStyle); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 08/01/2009 -//! @SYMTestCaseDesc Set the brush style to ESolidBrush and draw a solid pie. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object. -//! 4. Activate the CFbsBitGc object and clear the device. -//! 5. Set the brush style to ESolidBrush. -//! 6. Set the brush color to TRgb(0, 0, 0). -//! 7. Draw a pie. -//! 8. Update the device and Delay half a second. -//! 9. Destroy CFbsBitGc object and CFbsScreenDevice object. -//! 10.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults A pie will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1102-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1102-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-1102-SetBrushStyle_command06 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1102-SetBrushColor_command07 - COMMAND fbsBitGc DrawPie GRAPHICS-BITGDI-FbsBitGc-PublicApi-1102-DrawPie_command08 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1102 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1103 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1103 -//! @SYMAPI CFbsBitGc::SetBrushStyle(TBrushStyle); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 08/01/2009 -//! @SYMTestCaseDesc Set the brush style to EPatternedBrush and draw a patterned pie. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object. -//! 4. Create a CFbsBitmap and load a bitmap. -//! 5. Activate the CFbsBitGc object and clear the device. -//! 6. Set the brush pattern to the bitmap. -//! 7. Set the brush style to EPatternedBrush. -//! 8. Draw a pie. -//! 9. Update the device and Delay half a second. -//! 10.Destroy the CFbsBitmap object, CFbsBitGc object and CFbsScreenDevice object. -//! 11.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults A pie will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1103-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-1103-Load_command05 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1103-Activate_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc UseBrushPattern GRAPHICS-BITGDI-FbsBitGc-PublicApi-1103-UseBrushPattern_command08 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-1103-SetBrushStyle_command09 - COMMAND fbsBitGc DrawPie GRAPHICS-BITGDI-FbsBitGc-PublicApi-1103-DrawPie_command10 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsBitmap ~ - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1103 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1104 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1104 -//! @SYMAPI CFbsBitGc::SetBrushStyle(TBrushStyle); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 08/01/2009 -//! @SYMTestCaseDesc Negative case; Set the brush style to EPatternedBrush and draw a patterned pie without setting the brush pattern to a bitmap. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object. -//! 4. Create a CFbsBitmap and load a bitmap. -//! 5. Activate the CFbsBitGc object and clear the device. -//! 6. Set the brush pattern to the bitmap. -//! 7. Set the brush style to EPatternedBrush. -//! 8. Draw a pie and panic occurs. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get panic "BITGDI 13". -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1104-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-1104-Load_command05 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1104-Activate_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-1104-SetBrushStyle_command08 - COMMAND fbsBitGc DrawPie GRAPHICS-BITGDI-FbsBitGc-PublicApi-1104-DrawPie_command09 - END_TEST_BLOCK !PanicString=BITGDI !PanicCode=13 - RUN_TEST_STEP 100 T_GraphicsBitgdiApi utilityClearPanicDlg -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1104 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1105 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1105 -//! @SYMAPI CFbsBitGc::SetBrushColor(const TRgb{ref}); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 08/01/2009 -//! @SYMTestCaseDesc Set the brush color to TRgb(255, 0, 0) and draw a red pie. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object. -//! 4. Activate the CFbsBitGc object and clear the device. -//! 5. Set brush color to TRgb(255, 0, 0). -//! 6. Draw a red pie. -//! 7. Update the device and Delay half a second. -//! 8. Destroy CFbsBitGc object and CFbsScreenDevice object. -//! 9. Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults A red pie will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1105-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1105-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-1105-SetBrushStyle_command06 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1105-SetBrushColor_command07 - COMMAND fbsBitGc DrawPie GRAPHICS-BITGDI-FbsBitGc-PublicApi-1105-DrawPie_command08 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1105 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1106 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1106 -//! @SYMAPI CFbsBitGc::SetBrushStyle(TBrushStyle); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 08/01/2009 -//! @SYMTestCaseDesc Set the brush style to EVerticalHatchBrush, EForwardDiagonalHatchBrush, EHorizontalHatchBrush, ERearwardDiagonalHatchBrush, -//! ESquareCrossHatchBrush, EDiamondCrossHatchBrush and draw six colorful rectangles respectively. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object. -//! 4. Activate the CFbsBitGc object and clear the device. -//! 5. Set the brush color to TRgb(255, 0, 0). -//! 6. Set the brush style to EVerticalHatchBrush. -//! 7. Draw a rectangle. -//! 8. Set the brush style to EForwardDiagonalHatchBrush. -//! 9. Draw a rectangle. -//! 10.Set the brush color to TRgb(0, 255, 0). -//! 11.Set the brush style to EHorizontalHatchBrush. -//! 12.Draw a rectangle. -//! 13.Set the brush style to ERearwardDiagonalHatchBrush. -//! 14.Draw a rectangle. -//! 15.Set the brush color to TRgb(0, 0, 255). -//! 16.Set the brush style to ESquareCrossHatchBrush. -//! 17.Draw a rectangle. -//! 18.Set the brush style to EDiamondCrossHatchBrush. -//! 19.Draw a rectangle. -//! 20.Update the device and Delay half a second. -//! 21.Destroy the CFbsBitmap object, CFbsBitGc object and CFbsScreenDevice object. -//! 22.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Six rectangles with different brush styles will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1106-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1106-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1106-SetBrushColor_command06 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-1106-SetBrushStyle_command07 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1106-DrawRect_command08 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-1106-SetBrushStyle_command09 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1106-DrawRect_command10 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1106-SetBrushColor_command11 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-1106-SetBrushStyle_command12 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1106-DrawRect_command13 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-1106-SetBrushStyle_command14 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1106-DrawRect_command15 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1106-SetBrushColor_command16 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-1106-SetBrushStyle_command17 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1106-DrawRect_command18 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-1106-SetBrushStyle_command19 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1106-DrawRect_command20 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1106 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1107 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1107 -//! @SYMAPI CFbsBitGc::SetBrushOrigin(const TPoint{ref}); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 08/01/2009 -//! @SYMTestCaseDesc Set the brush pattern origin to TPoint(10, 10) and draw a retangle with default brush style. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object. -//! 4. Activate the CFbsBitGc object and clear the device. -//! 5. Set the brush pattern origin to TPoint(10, 10). -//! 6. Draw a rectangle. -//! 7. Update the device and Delay half a second. -//! 8. Destroy CFbsBitGc object and CFbsScreenDevice object. -//! 9. Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults A retangle will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1107-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1107-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushOrigin GRAPHICS-BITGDI-FbsBitGc-PublicApi-1107-SetBrushOrigin_command06 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1107-DrawRect_command07 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1107 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1108 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1108 -//! @SYMAPI CFbsBitGc::SetBrushOrigin(const TPoint{ref}); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 08/01/2009 -//! @SYMTestCaseDesc Set the brush pattern origin to TPoint(20, 10) and draw a retangle with a bitmap pattern; -//! Then set the brush pattern origin to TPoint(0, 0) and draw another retangle. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object. -//! 4. Create a CFbsBitmap and load a bitmap. -//! 5. Activate the CFbsBitGc object and clear the device. -//! 6. Set the brush pattern to the bitmap. -//! 7. Set the brush style to EPatternedBrush. -//! 8. Set the brush pattern origin to TPoint(20, 10). -//! 9. Draw a retangle. -//! 10.Set the brush pattern origin to TPoint(0, 0). -//! 11.Draw a retangle. -//! 12.Update the device and Delay half a second. -//! 13.Destroy fbsBitmap object, CFbsBitGc object and CFbsScreenDevice object. -//! 14.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Two retangles with different pattern origins will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1108-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-1108-Load_command05 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1108-Activate_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc UseBrushPattern GRAPHICS-BITGDI-FbsBitGc-PublicApi-1108-UseBrushPattern_command08 - COMMAND fbsBitGc SetBrushOrigin GRAPHICS-BITGDI-FbsBitGc-PublicApi-1108-SetBrushOrigin_command09 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1108-DrawRect_command10 - COMMAND fbsBitGc SetBrushOrigin GRAPHICS-BITGDI-FbsBitGc-PublicApi-1108-SetBrushOrigin_command11 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1108-DrawRect_command12 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsBitmap ~ - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1108 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1109 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1109 -//! @SYMAPI CFbsBitGc::SetBrushColor(const TRgb{ref}); -//! CFbsBitGc::SetBrushStyle(TBrushStyle); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 08/01/2009 -//! @SYMTestCaseDesc Set the brush style to ESolidBrush; Set the brush color to TRgb(255, 0, 0), TRgb(0, 0, 0), TRgb(255, 255, 255); -//! Draw three rectangles and check retangle color respectively. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object. -//! 4. Activate the CFbsBitGc object and clear the device. -//! 5. Set the brush style to ESolidBrush. -//! 6. Set the brush color to TRgb(255, 0, 0). -//! 7. Draw a rectangle. -//! 8. Set the brush color to TRgb(0, 0, 0). -//! 9. Draw a rectangle. -//! 10.Set the brush color to TRgb(255, 255, 255). -//! 11.Draw a rectangle. -//! 12.Update the device. -//! 13.Check retangle color. -//! 14.Delay half a second. -//! 15.Destroy the CFbsBitmap object, CFbsBitGc object and CFbsScreenDevice object. -//! 16.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults checkRectColor returns TRUE. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1109-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1109-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-1109-SetBrushStyle_command06 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1109-SetBrushColor_command07 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1109-DrawRect_command08 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1109-SetBrushColor_command09 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1109-DrawRect_command10 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1109-SetBrushColor_command11 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1109-DrawRect_command12 - COMMAND fbsScrDev Update - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1109-checkRectColor_command14 - DELAY 500000 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1109 - - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1111 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1111 -//! @SYMAPI CFbsBitGc::SetPenColor(const TRgb{ref}); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 09/01/2009 -//! @SYMTestCaseDesc Set the pen color to TRgb(0, 0, 255) and draw a pie with blue edge. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object. -//! 4. Activate the CFbsBitGc object and clear the device. -//! 5. Set pen color to TRgb(0, 0, 255). -//! 6. Draw a pie with blue edge. -//! 7. Update the device and Delay half a second. -//! 8. Destroy CFbsBitGc object and CFbsScreenDevice object. -//! 9. Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults A pie with blue edge will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1111-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1111-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1111-SetPenColor_command06 - COMMAND fbsBitGc DrawPie GRAPHICS-BITGDI-FbsBitGc-PublicApi-1111-DrawPie_command07 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1111 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1112 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1112 -//! @SYMAPI CFbsBitGc::SetPenStyle(TPenStyle); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 09/01/2009 -//! @SYMTestCaseDesc Set the pen style to ENullPen and draw a pie. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object. -//! 4. Activate the CFbsBitGc object and clear the device. -//! 5. Set pen style to ENullPen. -//! 6. Draw a pie. -//! 7. Update the device and Delay half a second. -//! 8. Destroy CFbsBitGc object and CFbsScreenDevice object. -//! 9. Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The pie will be drawn without border. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1112-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1112-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-1112-SetPenStyle_command06 - COMMAND fbsBitGc DrawPie GRAPHICS-BITGDI-FbsBitGc-PublicApi-1112-DrawPie_command07 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1112 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1113 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1113 -//! @SYMAPI CFbsBitGc::SetPenStyle(TPenStyle); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 09/01/2009 -//! @SYMTestCaseDesc Set the pen style to ESolidPen and draw a pie. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object. -//! 4. Activate the CFbsBitGc object and clear the device. -//! 5. Set pen style to ESolidPen. -//! 6. Draw a pie. -//! 7. Update the device and Delay half a second. -//! 8. Destroy CFbsBitGc object and CFbsScreenDevice object. -//! 9. Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults A pie will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1113-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1113-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-1113-SetPenStyle_command06 - COMMAND fbsBitGc DrawPie GRAPHICS-BITGDI-FbsBitGc-PublicApi-1113-DrawPie_command07 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1113 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1114 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1114 -//! @SYMAPI CFbsBitGc::SetPenStyle(TPenStyle); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 09/01/2009 -//! @SYMTestCaseDesc Set the pen style to EDottedPen, EDashedPen, EDotDashPen, EDotDotDashPen and draw four colorful rectangles respectively. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object. -//! 4. Activate the CFbsBitGc object and clear the device. -//! 5. Set pen color to TRgb(255, 128, 0); -//! 6. Set pen style to EDottedPen. -//! 7. Draw a rectangle. -//! 8. Set pen style to EDashedPen. -//! 9. Draw a rectangle. -//! 10.Set pen color to TRgb(0, 128, 255); -//! 11.Set pen style to EDotDashPen. -//! 12.Draw a rectangle. -//! 13.Set pen style to EDotDotDashPen. -//! 14.Draw a rectangle. -//! 15.Update the device and Delay half a second. -//! 16.Destroy CFbsBitGc object and CFbsScreenDevice object. -//! 17.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Four colorful rectangles with different pen styles will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1114-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1114-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1111-SetPenColor_command06 - COMMAND fbsBitGc SetPenStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-1114-SetPenStyle_command07 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1114-DrawRect_command08 - COMMAND fbsBitGc SetPenStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-1114-SetPenStyle_command09 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1114-DrawRect_command10 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1111-SetPenColor_command11 - COMMAND fbsBitGc SetPenStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-1114-SetPenStyle_command12 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1114-DrawRect_command13 - COMMAND fbsBitGc SetPenStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-1114-SetPenStyle_command14 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1114-DrawRect_command15 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1114 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1115 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1115 -//! @SYMAPI CFbsBitGc::SetPenSize(const TSize{ref}); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 09/01/2009 -//! @SYMTestCaseDesc Set the pen size to TSize(4, 2) and draw a rectangle. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object. -//! 4. Activate the CFbsBitGc object and clear the device. -//! 5. Set pen size to TSize(4, 2). -//! 6. Draw a rectangle. -//! 7. Update the device and Delay half a second. -//! 8. Destroy CFbsBitGc object and CFbsScreenDevice object. -//! 9. Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults A rectangle will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1115-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1115-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenSize GRAPHICS-BITGDI-FbsBitGc-PublicApi-1115-SetPenSize_command06 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1115-DrawRect_command07 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1115 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1116 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1116 -//! @SYMAPI CFbsBitGc::SetPenSize(const TSize{ref}); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 09/01/2009 -//! @SYMTestCaseDesc Set the pen size to TSize(0, 2), TSize(-2, 0), TSize(0, 0) and draw three rectangles respectively. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object. -//! 4. Activate the CFbsBitGc object and clear the device. -//! 7. Set pen size to TSize(0, 2). -//! 8. Draw a rectangle. -//! 9. Set pen size to TSize(-2, 0). -//! 10.Draw a rectangle. -//! 11.Set pen size to TSize(0, 0). -//! 12.Draw a rectangle. -//! 13.Update the device and Delay half a second. -//! 14.Destroy CFbsBitGc object and CFbsScreenDevice object. -//! 15.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Three rectangles will not be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1116-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1116-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenSize GRAPHICS-BITGDI-FbsBitGc-PublicApi-1116-SetPenSize_command06 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1116-DrawRect_command07 - COMMAND fbsBitGc SetPenSize GRAPHICS-BITGDI-FbsBitGc-PublicApi-1116-SetPenSize_command08 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1116-DrawRect_command09 - COMMAND fbsBitGc SetPenSize GRAPHICS-BITGDI-FbsBitGc-PublicApi-1116-SetPenSize_command10 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1116-DrawRect_command11 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1116 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1117 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1117 -//! @SYMAPI CFbsBitGc::SetPenColor(const TRgb{ref}); -//! CFbsBitGc::SetPenSize(const TSize{ref}); -//! CFbsBitGc::SetPenStyle(TPenStyle); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 09/01/2009 -//! @SYMTestCaseDesc Set the pen style to ESolidPen; Set the pen color to TRgb(255, 0, 0), TRgb(0, 0, 0), TRgb(255, 255, 255); -//! Set the pen size to TSize(5, 2), TSize(0, 0), TSize(1, 1); -//! Draw three different rectangles, then check retangle edge color respectively. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object. -//! 4. Activate the CFbsBitGc object and clear the device.. -//! 5. Set pen style to ESolidPen. -//! 6. Set the pen color to TRgb(255, 0, 0) -//! 7. Set the pen size to TSize(5, 2). -//! 8. Draw a rectangle. -//! 9. Set the pen color to TRgb(0, 0, 0) -//! 10.Set the pen size to TSize(0, 0). -//! 11.Draw a rectangle. -//! 12.Set the pen color to TRgb(255, 255, 255) -//! 13.Set the pen size to TSize(1, 1). -//! 14.Draw a rectangle. -//! 15.Update the device -//! 16.Check rectangle edge color. -//! 17.Delay half a second. -//! 18.Destroy CFbsBitGc object and CFbsScreenDevice object. -//! 19.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. The first Rectangle will be drawn with red border color. -//! 2. The second Rectangle will not be drawn. -//! 3. The third Rectangle will be drawn with white border color. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1117-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1117-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-1117-SetPenStyle_command06 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1117-SetPenColor_command07 - COMMAND fbsBitGc SetPenSize GRAPHICS-BITGDI-FbsBitGc-PublicApi-1117-SetPenSize_command08 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1117-DrawRect_command09 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1117-SetPenColor_command10 - COMMAND fbsBitGc SetPenSize GRAPHICS-BITGDI-FbsBitGc-PublicApi-1117-SetPenSize_command11 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1117-DrawRect_command12 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1117-SetPenColor_command13 - COMMAND fbsBitGc SetPenSize GRAPHICS-BITGDI-FbsBitGc-PublicApi-1117-SetPenSize_command14 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1117-DrawRect_command15 - COMMAND fbsScrDev Update - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1117-checkRectColor_command17 - DELAY 500000 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1117 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1121 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1121 -//! @SYMAPI CFbsBitGc::SetClippingRect(const TRect{ref}); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 09/01/2009 -//! @SYMTestCaseDesc Set the clipping rectangle to TRect(0, 0, 120, 120) and draw a rectangle which is in the clipping area. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object. -//! 4. Activate the CFbsBitGc object and clear the device.. -//! 5. Set the brush style to ESolidBrush. -//! 6. Set the brush color to TRgb(255, 0, 0). -//! 7. Set the clipping rectangle to TRect(0, 0, 120, 120) and clear the device. -//! 8. Draw a rectangle TRect(20, 20, 100, 100) and update the device. -//! 9. Check whether the rectangle is drawn as expected. -//! 10.Delay half a second. -//! 11.Destroy CFbsBitGc object and CFbsScreenDevice object. -//! 12.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The rectangle will be drawn as expected. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1121-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1121-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-1121-SetBrushStyle_command06 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1121-SetBrushColor_command07 - COMMAND fbsBitGc SetClippingRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1121-SetClippingRect_command08 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1121-DrawRect_command09 - COMMAND fbsScrDev Update - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1121-checkRectColor_command11 - DELAY 500000 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1121 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1122 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1122 -//! @SYMAPI CFbsBitGc::SetClippingRect(const TRect{ref}); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 09/01/2009 -//! @SYMTestCaseDesc Set the clipping rectangle to TRect(0, 0, 120, 120) and draw a rectangle which is not in the clipping area. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create two CFbsBitGc objects. -//! 4. Activate a CFbsBitGc object and clear the screen. -//! 5. Activate another CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 6. Set the brush style to ESolidBrush. -//! 7. Set the brush color to TRgb(0, 255, 0). -//! 8. Set the clipping rectangle to TRect(0, 0, 120, 120) and clear the device. -//! 9. Draw a rectangle TRect(130, 130, 180, 180) and update the device. -//! 10.Check whether the rectangle is drawn as expected. -//! 11.Delay half a second. -//! 12.Destroy two CFbsBitGc objects and CFbsScreenDevice object. -//! 13.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The rectangle will not be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitGc fbsBitGc2 - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1122-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc2 NewL - COMMAND fbsBitGc2 Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1122-Activate_command05 - COMMAND fbsBitGc2 Clear - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1122-Activate_command07 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-1122-SetBrushStyle_command08 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1122-SetBrushColor_command09 - COMMAND fbsBitGc SetClippingRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1122-SetClippingRect_command10 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1122-DrawRect_command11 - COMMAND fbsScrDev Update - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1122-checkRectColor_command13 - DELAY 500000 - COMMAND fbsBitGc2 ~ - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1122 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1123 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1123 -//! @SYMAPI CFbsBitGc::SetClippingRect(const TRect{ref}); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 09/01/2009 -//! @SYMTestCaseDesc Set the clipping rectangle to TRect(0, 0, 120, 120) and draw a rectangle whose one corner is in the clipping area. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create two CFbsBitGc objects. -//! 4. Activate a CFbsBitGc object and clear the screen. -//! 5. Activate another CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 6. Set the brush style to ESolidBrush. -//! 7. Set the brush color to TRgb(0, 0, 255). -//! 8. Set the clipping rectangle to TRect(0, 0, 120, 120) and clear the device. -//! 9. Draw a rectangle TRect(100, 100, 150, 150) and update the device. -//! 10.Check whether the rectangle is drawn as expected. -//! 11.Delay half a second. -//! 12.Destroy two CFbsBitGc objects and CFbsScreenDevice object. -//! 13.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Only the top left corner of the rectangle will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitGc fbsBitGc2 - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1123-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc2 NewL - COMMAND fbsBitGc2 Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1123-Activate_command05 - COMMAND fbsBitGc2 Clear - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1123-Activate_command07 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-1123-SetBrushStyle_command08 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1123-SetBrushColor_command09 - COMMAND fbsBitGc SetClippingRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1123-SetClippingRect_command10 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1123-DrawRect_command11 - COMMAND fbsScrDev Update - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1123-checkRectColor_command13 - DELAY 500000 - COMMAND fbsBitGc2 ~ - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1123 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1124 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1124 -//! @SYMAPI CFbsBitGc::SetClippingRect(const TRect{ref}); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 09/01/2009 -//! @SYMTestCaseDesc Set the clipping rectangle to TRect(120, 120, 0, 0) and draw a rectangle. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create two CFbsBitGc objects. -//! 4. Activate a CFbsBitGc object and clear the screen. -//! 5. Activate another CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 6. Set the brush style to ESolidBrush. -//! 7. Set the brush color to TRgb(0, 255, 0). -//! 8. Set the clipping rectangle to TRect(120, 120, 0, 0)and clear the device. -//! 9. Draw a rectangle TRect(50, 50, 100, 100) and update the device. -//! 10.Check whether the rectangle is drawn as expected. -//! 11.Delay half a second. -//! 12.Destroy two CFbsBitGc objects and CFbsScreenDevice object. -//! 13.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The rectangle will not be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitGc fbsBitGc2 - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1124-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc2 NewL - COMMAND fbsBitGc2 Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1124-Activate_command05 - COMMAND fbsBitGc2 Clear - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1124-Activate_command07 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-1124-SetBrushStyle_command08 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1124-SetBrushColor_command09 - COMMAND fbsBitGc SetClippingRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1124-SetClippingRect_command10 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1124-DrawRect_command11 - COMMAND fbsScrDev Update - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1124-checkRectColor_command13 - DELAY 500000 - COMMAND fbsBitGc2 ~ - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1124 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1125 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1125 -//! @SYMAPI CFbsBitGc::SetClippingRegion(const TRegion{ptr}) -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 09/01/2009 -//! @SYMTestCaseDesc Set the clipping region to two nonadjacent rectangles; -//! Draw a rectangle in which one clipping area is encircled and whose right edge acrosses another clipping area. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create two CFbsBitGc objects. -//! 4. Activate a CFbsBitGc object and clear the screen. -//! 5. Activate another CFbsBitGc object. -//! 6. Set the brush style to ESolidBrush. -//! 7. Set the brush color to TRgb(255, 0, 0). -//! 8. Set the clipping region to TRect(50, 50, 80, 80) and TRect(100, 50, 130, 80). -//! 9. Draw a rectangle TRect(30, 30, 120, 100) and update the device. -//! 10.Check rectangle color. -//! 11.Delay half a second. -//! 12.Destroy two CFbsBitGc objects and CFbsScreenDevice object. -//! 13.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The clipped rectangle will be drawn as expected. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitGc fbsBitGc2 - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1125-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc2 NewL - COMMAND fbsBitGc2 Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1125-Activate_command05 - COMMAND fbsBitGc2 Clear - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1125-Activate_command07 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-1125-SetBrushStyle_command08 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1125-SetBrushColor_command09 - COMMAND fbsBitGc SetClippingRegion GRAPHICS-BITGDI-FbsBitGc-PublicApi-1125-SetClippingRegion_command10 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1125-DrawRect_command11 - COMMAND fbsScrDev Update - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1125-checkRectColor_command13 - DELAY 500000 - COMMAND fbsBitGc2 ~ - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1125 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1126 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1126 -//! @SYMAPI CFbsBitGc::SetClippingRegion(const TRegion{ptr}) -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 09/01/2009 -//! @SYMTestCaseDesc Set the clipping region to two intersectant rectangles; -//! Draw a rectangle whose one corner is in one clipping area respectively. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create two CFbsBitGc objects. -//! 4. Activate a CFbsBitGc object and clear the screen. -//! 5. Activate another CFbsBitGc object. -//! 6. Set the brush style to ESolidBrush. -//! 7. Set the brush color to TRgb(0, 0, 255). -//! 8. Set the clipping region to TRect(20, 20, 100, 100) and TRect(80, 80, 160, 160). -//! 9. Draw a rectangle TRect(60, 60, 120, 120) and update the device. -//! 10.Check rectangle color. -//! 11.Delay half a second. -//! 12.Destroy two CFbsBitGc objects and CFbsScreenDevice object. -//! 13.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The clipped rectangle will be drawn as expected. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitGc fbsBitGc2 - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1126-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc2 NewL - COMMAND fbsBitGc2 Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1126-Activate_command05 - COMMAND fbsBitGc2 Clear - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1126-Activate_command07 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-1126-SetBrushStyle_command08 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1126-SetBrushColor_command09 - COMMAND fbsBitGc SetClippingRegion GRAPHICS-BITGDI-FbsBitGc-PublicApi-1126-SetClippingRegion_command10 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1126-DrawRect_command11 - COMMAND fbsScrDev Update - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1126-checkRectColor_command13 - DELAY 500000 - COMMAND fbsBitGc2 ~ - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1126 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1127 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1127 -//! @SYMAPI CFbsBitGc::SetClippingRegion(const TRegion{ptr}) -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 09/01/2009 -//! @SYMTestCaseDesc Negative case; Set the clipping region to TRect(-1, -1, 100, 100). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc objects. -//! 4. Activate the CFbsBitGc objects and clear the screen. -//! 5. Set the clipping region to TRect(-1, -1, 100, 100). -//! 6. Destroy two CFbsBitGc objects and CFbsScreenDevice object. -//! 7 .Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults SetClippingRegion returns -6(KErrArgument). -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1127-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1127-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND !Error=-6 fbsBitGc SetClippingRegion GRAPHICS-BITGDI-FbsBitGc-PublicApi-1127-SetClippingRegion_command06 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1127 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1128 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1128 -//! @SYMAPI CFbsBitGc::SetClippingRegion(const TRegion{ptr}) -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 09/01/2009 -//! @SYMTestCaseDesc Negative case; Set the clipping region to TRect(10, 10, 9999, 9999). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc objects. -//! 4. Activate the CFbsBitGc objects and clear the screen. -//! 5. Set the clipping region to TRect(10, 10, 9999, 9999). -//! 6. Destroy two CFbsBitGc objects and CFbsScreenDevice object. -//! 7 .Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults SetClippingRegion returns -6(KErrArgument). -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1128-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1128-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND !Error=-6 fbsBitGc SetClippingRegion GRAPHICS-BITGDI-FbsBitGc-PublicApi-1128-SetClippingRegion_command06 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1128 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1131 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1131 -//! @SYMAPI CFbsBitGc::SetFaded(TBool); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 12/01/2009 -//! @SYMTestCaseDesc Set the fade mode to ETrue and draw a rectangle in the fade area. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object. -//! 4. Activate the CFbsBitGc object and clear the screen. -//! 5. Set the brush style to ESolidBrush. -//! 6. Set the brush color to TRgb(0, 0, 255). -//! 7. Set the fade mode to ETrue. -//! 8. Set the fading parameters to (255, 255). -//! 9. Draw a rectangle TRect(30, 30, 60, 60) and update the device. -//! 10.Check rectangle color. -//! 11.Delay half a second. -//! 12.Destroy CFbsBitGc object and CFbsScreenDevice object. -//! 13.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The rectangle color will be mapped to TRgb(255, 255, 255). -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1131-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1131-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-1131-SetBrushStyle_command06 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1131-SetBrushColor_command07 - COMMAND fbsBitGc SetFaded GRAPHICS-BITGDI-FbsBitGc-PublicApi-1131-SetFaded_command08 - COMMAND fbsBitGc SetFadingParameters GRAPHICS-BITGDI-FbsBitGc-PublicApi-1131-SetFadingParameters_command09 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1131-DrawRect_command10 - COMMAND fbsScrDev Update - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1131-checkRectColor_command12 - DELAY 500000 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1131 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1132 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1132 -//! @SYMAPI CFbsBitGc::SetFaded(TBool); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 12/01/2009 -//! @SYMTestCaseDesc Set the fade mode to EFalse and draw a rectangle in the fade area. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object. -//! 4. Activate the CFbsBitGc object and clear the screen. -//! 5. Set the brush style to ESolidBrush. -//! 6. Set the brush color to TRgb(255, 0, 0). -//! 7. Set the fade mode to EFalse. -//! 8. Set the fading parameters to (255, 255). -//! 9. Draw a rectangle TRect(30, 30, 60, 60) and update the device. -//! 10.Check rectangle color. -//! 11.Delay half a second. -//! 12.Destroy CFbsBitGc object and CFbsScreenDevice object. -//! 13.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The rectangle color will still be TRgb(255, 0, 0). -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1132-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1132-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-1132-SetBrushStyle_command06 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1132-SetBrushColor_command07 - COMMAND fbsBitGc SetFaded GRAPHICS-BITGDI-FbsBitGc-PublicApi-1132-SetFaded_command08 - COMMAND fbsBitGc SetFadingParameters GRAPHICS-BITGDI-FbsBitGc-PublicApi-1132-SetFadingParameters_command09 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1132-DrawRect_command10 - COMMAND fbsScrDev Update - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1132-checkRectColor_command12 - DELAY 500000 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1132 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1133 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1133 -//! @SYMAPI CFbsBitGc::SetFadingParameters(TUint8, TUint8); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 12/01/2009 -//! @SYMTestCaseDesc Set the fading parameters to (66, 130) and draw a rectangle in the fade area. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object. -//! 4. Activate the CFbsBitGc object and clear the screen. -//! 5. Set the brush style to ESolidBrush. -//! 6. Set the brush color to TRgb(0, 255, 0). -//! 7. Set the fade mode to ETrue. -//! 8. Set the fading parameters to (66, 130). -//! 9. Draw a rectangle TRect(30, 30, 60, 60) and update the device. -//! 10.Check rectangle color. -//! 11.Delay half a second. -//! 12.Destroy CFbsBitGc object and CFbsScreenDevice object. -//! 13.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The rectangle color will be mapped to TRgb(66, 130, 66). -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1133-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1133-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-1133-SetBrushStyle_command06 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1133-SetBrushColor_command07 - COMMAND fbsBitGc SetFaded GRAPHICS-BITGDI-FbsBitGc-PublicApi-1133-SetFaded_command08 - COMMAND fbsBitGc SetFadingParameters GRAPHICS-BITGDI-FbsBitGc-PublicApi-1133-SetFadingParameters_command09 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1133-DrawRect_command10 - COMMAND fbsScrDev Update - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1133-checkRectColor_command12 - DELAY 500000 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1133 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1134 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1134 -//! @SYMAPI CFbsBitGc::SetFadingParameters(TUint8, TUint8); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 12/01/2009 -//! @SYMTestCaseDesc Set the fading parameters to (0, 255) and draw a rectangle in the fade area. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object. -//! 4. Activate the CFbsBitGc object and clear the screen. -//! 5. Set the brush style to ESolidBrush. -//! 6. Set the brush color to TRgb(0, 255, 0). -//! 7. Set the fade mode to ETrue. -//! 8. Set the fading parameters to (0, 255). -//! 9. Draw a rectangle TRect(30, 30, 60, 60) and update the device. -//! 10.Check rectangle color. -//! 11.Delay half a second. -//! 12.Destroy CFbsBitGc object and CFbsScreenDevice object. -//! 13.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The rectangle color will still be TRgb(0, 255, 0). -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1134-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1134-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-1134-SetBrushStyle_command06 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1134-SetBrushColor_command07 - COMMAND fbsBitGc SetFaded GRAPHICS-BITGDI-FbsBitGc-PublicApi-1134-SetFaded_command08 - COMMAND fbsBitGc SetFadingParameters GRAPHICS-BITGDI-FbsBitGc-PublicApi-1134-SetFadingParameters_command09 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1134-DrawRect_command10 - COMMAND fbsScrDev Update - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1134-checkRectColor_command12 - DELAY 500000 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1134 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1135 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1135 -//! @SYMAPI CFbsBitGc::SetFadingParameters(TUint8, TUint8); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 12/01/2009 -//! @SYMTestCaseDesc Set the fading parameters to (0, 0) and draw a rectangle in the fade area. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object. -//! 4. Activate the CFbsBitGc object and clear the screen. -//! 5. Set the brush style to ESolidBrush. -//! 6. Set the brush color to TRgb(255, 127, 0). -//! 7. Set the fade mode to ETrue. -//! 8. Set the fading parameters to (0, 0). -//! 9. Draw a rectangle TRect(30, 30, 60, 60) and update the device. -//! 10.Check rectangle color. -//! 11.Delay half a second. -//! 12.Destroy CFbsBitGc object and CFbsScreenDevice object. -//! 13.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The rectangle color will be mapped to TRgb(0, 0, 0). -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1135-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1135-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-1135-SetBrushStyle_command06 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1135-SetBrushColor_command07 - COMMAND fbsBitGc SetFaded GRAPHICS-BITGDI-FbsBitGc-PublicApi-1135-SetFaded_command08 - COMMAND fbsBitGc SetFadingParameters GRAPHICS-BITGDI-FbsBitGc-PublicApi-1135-SetFadingParameters_command09 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1135-DrawRect_command10 - COMMAND fbsScrDev Update - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1135-checkRectColor_command12 - DELAY 500000 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1135 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1136 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1136 -//! @SYMAPI CFbsBitGc::SetFadingParameters(TUint8, TUint8); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 12/01/2009 -//! @SYMTestCaseDesc Set the fading parameters to (255, 0) and draw a rectangle in the fade area. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object. -//! 4. Activate the CFbsBitGc object and clear the screen. -//! 5. Set the brush style to ESolidBrush. -//! 6. Set the brush color to TRgb(255, 0, 0). -//! 7. Set the fade mode to ETrue. -//! 8. Set the fading parameters to (255, 0). -//! 9. Draw a rectangle TRect(30, 30, 60, 60) and update the device. -//! 10.Check rectangle color. -//! 11.Delay half a second. -//! 12.Destroy CFbsBitGc object and CFbsScreenDevice object. -//! 13.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The rectangle color will be mapped to TRgb(0, 255, 255). -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1136-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1136-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-1136-SetBrushStyle_command06 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1136-SetBrushColor_command07 - COMMAND fbsBitGc SetFaded GRAPHICS-BITGDI-FbsBitGc-PublicApi-1136-SetFaded_command08 - COMMAND fbsBitGc SetFadingParameters GRAPHICS-BITGDI-FbsBitGc-PublicApi-1136-SetFadingParameters_command09 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1136-DrawRect_command10 - COMMAND fbsScrDev Update - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1136-checkRectColor_command12 - DELAY 500000 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1136 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1141 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1141 -//! @SYMAPI CFbsBitGc::SetDitherOrigin(const TPoint{ref}); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 12/01/2009 -//! @SYMTestCaseDesc Set the dither origion to TPoint(3, 3) and draw a pie. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object. -//! 4. Activate the CFbsBitGc object and clear the device. -//! 5. Set the brush style to ESolidBrush. -//! 6. Set the brush color to TRgb(255, 0, 0). -//! 7. Set the dither origin to TPoint(3, 3). -//! 8. Draw a pie. -//! 9. Update the device and Delay half a second. -//! 10.Destroy CFbsBitGc object and CFbsScreenDevice object. -//! 11.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults A pie will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1141-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1141-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-1141-SetBrushStyle_command06 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1141-SetBrushColor_command07 - COMMAND fbsBitGc SetDitherOrigin GRAPHICS-BITGDI-FbsBitGc-PublicApi-1141-SetDitherOrigin_command08 - COMMAND fbsBitGc DrawPie GRAPHICS-BITGDI-FbsBitGc-PublicApi-1141-DrawPie_command09 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1141 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1142 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1142 -//! @SYMAPI CFbsBitGc::SetOrigin(const TPoint{ref}); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 12/01/2009 -//! @SYMTestCaseDesc Set the origin to TPoint(100, 100) and draw a rectangle. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object. -//! 4. Activate the CFbsBitGc object and clear the device. -//! 5. Set the brush style to ESolidBrush. -//! 6. Set the brush color to TRgb(0, 0, 255). -//! 7. Set the origin to TPoint(100, 100). -//! 8. Draw a rectangle TRect(0, 0, 80, 60). -//! 9. Check whether the rectangle is in TRect(100, 100, 180, 60). -//! 10.Update the device and Delay half a second. -//! 11.Destroy CFbsBitGc object and CFbsScreenDevice object. -//! 12.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The rectangle is in TRect(100, 100, 180, 160) as expected. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1142-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1142-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-1142-SetBrushStyle_command06 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1142-SetBrushColor_command07 - COMMAND fbsBitGc SetOrigin GRAPHICS-BITGDI-FbsBitGc-PublicApi-1142-SetOrigin_command08 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1142-DrawRect_command09 - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1142-checkRectColor_command10 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1142 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1143 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1143 -//! @SYMAPI CFbsBitGc::SetOrigin(const TPoint{ref}); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 12/01/2009 -//! @SYMTestCaseDesc Set the origin to TPoint(-50, -50) and draw a rectangle. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object. -//! 4. Activate the CFbsBitGc object and clear the device. -//! 5. Set the brush style to ESolidBrush. -//! 6. Set the brush color to TRgb(0, 255, 0). -//! 7. Set the origin to TPoint(-50, -50). -//! 8. Draw a rectangle TRect(100, 100, 180, 160). -//! 9. Check whether the rectangle is in TRect(50, 50, 130, 110). -//! 10.Update the device and Delay half a second. -//! 11.Destroy CFbsBitGc object and CFbsScreenDevice object. -//! 12.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The rectangle is in TRect(50, 50, 130, 110) as expected. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1143-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1143-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-1143-SetBrushStyle_command06 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1143-SetBrushColor_command07 - COMMAND fbsBitGc SetOrigin GRAPHICS-BITGDI-FbsBitGc-PublicApi-1143-SetOrigin_command08 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1143-DrawRect_command09 - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1143-checkRectColor_command10 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1143 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1144 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1144 -//! @SYMAPI CFbsBitGc::SetOrigin(const TPoint{ref}); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 12/01/2009 -//! @SYMTestCaseDesc Set the origin to TPoint(-50, 0), TPoint(0, 0) and draw two rectangles respectively. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object. -//! 4. Activate the CFbsBitGc object and clear the device. -//! 5. Set the brush style to ESolidBrush. -//! 6. Set the brush color to TRgb(255, 0, 0). -//! 7. Set the origin to TPoint(-50, 0). -//! 8. Draw a rectangle TRect(0, 0, 100, 60). -//! 9. Set the origin to TPoint(0, 0). -//! 10.Draw a rectangle TRect(120, 0, 160, 60). -//! 11.Check whether two rectangles are in expected position. -//! 12.Update the device and Delay half a second. -//! 13.Destroy CFbsBitGc object and CFbsScreenDevice object. -//! 14.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. The right half part of the first rectangle will be drawn in TRect(0, 0, 50, 60). -//! 2. The second rectangle will be drawn in TRect(120, 0, 160, 60). -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1144-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1144-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-1144-SetBrushStyle_command06 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1144-SetBrushColor_command07 - COMMAND fbsBitGc SetOrigin GRAPHICS-BITGDI-FbsBitGc-PublicApi-1144-SetOrigin_command08 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1144-DrawRect_command09 - COMMAND fbsBitGc SetOrigin GRAPHICS-BITGDI-FbsBitGc-PublicApi-1144-SetOrigin_command10 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1144-DrawRect_command11 - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1144-checkRectColor_command12 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1144 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1146 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1146 -//! @SYMAPI CFbsBitGc::SetOrientation(TGraphicsOrientation); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 12/01/2009 -//! @SYMTestCaseDesc Set the orientation to EGraphicsOrientationNormal, EGraphicsOrientationRotated90, EGraphicsOrientationRotated180, -//! EGraphicsOrientationRotated270 respectively. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object. -//! 4. Activate the CFbsBitGc object and clear the device. -//! 7. Call OrientationsAvailable(TBool[4]). -//! 8. Set the orientation to EGraphicsOrientationRotated90. -//! 9. Set the orientation to EGraphicsOrientationRotated180. -//! 10.Set the orientation to EGraphicsOrientationRotated270. -//! 11.Set the orientation to EGraphicsOrientationNormal. -//! 12.Destroy CFbsBitGc object and CFbsScreenDevice object. -//! 13.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Results returned by SetOrientation match those acquired from OrientationsAvailable. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1146-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1146-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc OrientationsAvailable - COMMAND fbsBitGc SetOrientation GRAPHICS-BITGDI-FbsBitGc-PublicApi-1146-SetOrientation_command07 - DELAY 250000 - COMMAND fbsBitGc SetOrientation GRAPHICS-BITGDI-FbsBitGc-PublicApi-1146-SetOrientation_command08 - DELAY 250000 - COMMAND fbsBitGc SetOrientation GRAPHICS-BITGDI-FbsBitGc-PublicApi-1146-SetOrientation_command09 - DELAY 250000 - COMMAND fbsBitGc SetOrientation GRAPHICS-BITGDI-FbsBitGc-PublicApi-1146-SetOrientation_command10 - DELAY 250000 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1146 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1147 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1147 -//! @SYMAPI CFbsBitGc::SetOrientation(TGraphicsOrientation); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 13/01/2009 -//! @SYMTestCaseDesc Negatvie case; Set the orientation to EGraphicsOrientationRotated90 using a non-active graphics context. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Set the orientation to EGraphicsOrientationRotated90. -//! 4. Destroy CFbsBitGc object. -//! 5. Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults SetOrientation returns false. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitGc SetOrientation GRAPHICS-BITGDI-FbsBitGc-PublicApi-1147-SetOrientation_command07 - COMMAND fbsBitGc ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1147 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1151 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1151 -//! @SYMAPI CFbsBitGc::SetStrikethroughStyle(TFontStrikethrough); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 13/01/2009 -//! @SYMTestCaseDesc Set the strikethrough style to EStrikethroughOn, EStrikethroughOff and draw two lines of text respectively. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object. -//! 4. Activate the CFbsBitGc object and clear the device. -//! 5. Get and use a font. -//! 6. Set the strikethrough style to EStrikethroughOn. -//! 7. Draw a line of text. -//! 8. Set the strikethrough style to EStrikethroughOff. -//! 9. Draw a line of text. -//! 10. Update the device and Delay half a second. -//! 11. Descard and release the font. -//! 12.Destroy CFbsBitGc object and CFbsScreenDevice object. -//! 13.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. A line of text with strikethrough will be drawn in first line. -//! 2. A line of text without strikethrough will be drawn in second line. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1151-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1151-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-1151-GetNearestFontToDesignHeightInPixels_command06 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-1151-UseFont_command07 - COMMAND fbsBitGc SetStrikethroughStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-1151-SetStrikethroughStyle_command08 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-1151-DrawText_command09 - COMMAND fbsBitGc SetStrikethroughStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-1151-SetStrikethroughStyle_command10 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-1151-DrawText_command11 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-1151-ReleaseFont_command15 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1151 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1153 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1153 -//! @SYMAPI CFbsBitGc::SetUnderlineStyle(TFontUnderline); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 13/01/2009 -//! @SYMTestCaseDesc Set the underline style to EUnderlineOn, EUnderlineOff and draw two lines of text respectively. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object. -//! 4. Activate the CFbsBitGc object and clear the device. -//! 5. Get and use a font. -//! 6. Set the underline style to EUnderlineOn. -//! 7. Draw a line of text. -//! 8. Set the underline style to EUnderlineOff. -//! 9. Draw a line of text. -//! 10.Update the device and Delay half a second. -//! 11.Descard and release the font. -//! 12.Destroy CFbsBitGc object and CFbsScreenDevice object. -//! 13.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. A line of text with underline will be drawn in first line. -//! 2. A line of text without underline will be drawn in second line. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1153-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1153-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-1153-GetNearestFontToDesignHeightInPixels_command06 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-1153-UseFont_command07 - COMMAND fbsBitGc SetUnderlineStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-1153-SetStrikethroughStyle_command08 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-1153-DrawText_command09 - COMMAND fbsBitGc SetUnderlineStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-1153-SetStrikethroughStyle_command10 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-1153-DrawText_command11 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-1153-ReleaseFont_command15 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1153 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1155 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1155 -//! @SYMAPI CFbsBitGc::SetShadowMode(TBool); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 13/01/2009 -//! @SYMTestCaseDesc Set the shadow mode on, then off, and draw threee lines of text respectively. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object. -//! 4. Activate the CFbsBitGc object and clear the device. -//! 5. Set pen size to TSize(2, 2). -//! 6. Set pen color to TRgb(255, 191, 0); -//! 7. Get and use a font. -//! 8. Draw a line of text. -//! 9. Set the shadow mode to ETrue. -//! 10.Draw a line of text. -//! 11.Set the shadow mode to EFalse. -//! 12.Draw a line of text. -//! 13.Update the device and Delay half a second. -//! 14.Descard and release the font. -//! 15.Destroy CFbsBitGc object and CFbsScreenDevice object. -//! 16.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. A line of text with normal color will be drawn in first line. -//! 2. A line of text with shadow color will be drawn in second line. -//! 3. A line of text with normal color will be drawn in third line. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1155-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1155-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenSize GRAPHICS-BITGDI-FbsBitGc-PublicApi-1155-SetPenSize_command06 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1155-SetPenColor_command07 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-1155-GetNearestFontToDesignHeightInPixels_command08 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-1155-UseFont_command09 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-1155-DrawText_command10 - COMMAND fbsBitGc SetShadowMode GRAPHICS-BITGDI-FbsBitGc-PublicApi-1155-SetShadowMode_command11 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-1155-DrawText_command12 - COMMAND fbsBitGc SetShadowMode GRAPHICS-BITGDI-FbsBitGc-PublicApi-1155-SSetShadowMode_command13 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-1155-DrawText_command14 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-1155-ReleaseFont_command18 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1155 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1156 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1156 -//! @SYMAPI CFbsBitGc::SetCharJustification(TInt, TInt); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 13/01/2009 -//! @SYMTestCaseDesc Set the character justification to (30, 6), (-20, 6), and draw three lines of text respectively. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object. -//! 4. Activate the CFbsBitGc object and clear the device. -//! 5. Get and use a font. -//! 6. Draw a line of text. -//! 7. Set the character justification to (30, 6). -//! 8. Draw a line of text. -//! 9. Set the character justification to (-20, 6). -//! 10.Draw a line of text. -//! 11.Update the device and Delay half a second. -//! 12.Descard and release the font. -//! 13.Destroy CFbsBitGc object and CFbsScreenDevice object. -//! 14.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. A line of text without character justification will be drawn in first line. -//! 2. A line of text whose left six character gaps are justified widen will be drawn in second line. -//! 3. A line of text whose left six character gaps are justified narrow will be drawn in third line. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1156-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1156-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-1156-GetNearestFontToDesignHeightInPixels_command06 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-1156-UseFont_command07 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-1156-DrawText_command08 - COMMAND fbsBitGc SetCharJustification GRAPHICS-BITGDI-FbsBitGc-PublicApi-1156-SetCharJustification_command09 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-1156-DrawText_command10 - COMMAND fbsBitGc SetCharJustification GRAPHICS-BITGDI-FbsBitGc-PublicApi-1156-SetCharJustification_command11 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-1156-DrawText_command12 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-1156-ReleaseFont_command16 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1156 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1157 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1157 -//! @SYMAPI CFbsBitGc::SetCharJustification(TInt, TInt); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 13/01/2009 -//! @SYMTestCaseDesc Set the character justification to (0, 6), (20, 0), (0, 0) and draw four lines of text respectively. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object. -//! 4. Activate the CFbsBitGc object and clear the device. -//! 5. Get and use a font. -//! 6. Draw a line of text. -//! 7. Set the character justification to (0, 6). -//! 8. Draw a line of text. -//! 9. Set the character justification to (20, 0). -//! 10.Draw a line of text. -//! 11.Set the character justification to (0, 0). -//! 12.Draw a line of text. -//! 13.Update the device and Delay half a second. -//! 14.Descard and release the font. -//! 15.Destroy CFbsBitGc object and CFbsScreenDevice object. -//! 16.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Four lines of text without char justification will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1157-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1157-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-1157-GetNearestFontToDesignHeightInPixels_command06 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-1157-UseFont_command07 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-1157-DrawText_command08 - COMMAND fbsBitGc SetCharJustification GRAPHICS-BITGDI-FbsBitGc-PublicApi-1157-SetCharJustification_command09 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-1157-DrawText_command10 - COMMAND fbsBitGc SetCharJustification GRAPHICS-BITGDI-FbsBitGc-PublicApi-1157-SetCharJustification_command11 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-1157-DrawText_command12 - COMMAND fbsBitGc SetCharJustification GRAPHICS-BITGDI-FbsBitGc-PublicApi-1157-SetCharJustification_command13 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-1157-DrawText_command14 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-1157-ReleaseFont_command18 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1157 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1158 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1158 -//! @SYMAPI CFbsBitGc::SetWordJustification(TInt, TInt); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 13/01/2009 -//! @SYMTestCaseDesc Set the word justification to (20, 0), (-10, 2), (-20, -2), (20, 2) and draw four lines of text respectively. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object. -//! 4. Activate the CFbsBitGc object and clear the device. -//! 5. Get and use a font. -//! 6. Set the word justification to (20, 0). -//! 7. Draw a line of text. -//! 8. Set the word justification to (-10, 2). -//! 9. Draw a line of text. -//! 10.Set the word justification to (-20, 2). -//! 11.Draw a line of text. -//! 12.Set the word justification to (20, 2). -//! 13.Draw a line of text. -//! 14.Update the device and Delay half a second. -//! 15.Descard and release the font. -//! 16.Destroy CFbsBitGc object and CFbsScreenDevice object. -//! 17.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Four lines of text will be drawn without error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont font - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1158-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1158-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-1158-GetNearestFontToDesignHeightInPixels_command06 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-1158-UseFont_command07 - COMMAND fbsBitGc SetWordJustification GRAPHICS-BITGDI-FbsBitGc-PublicApi-1158-SetWordJustification_command08 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-1158-DrawText_command09 - COMMAND fbsBitGc SetWordJustification GRAPHICS-BITGDI-FbsBitGc-PublicApi-1158-SetWordJustification_command10 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-1158-DrawText_command11 - COMMAND fbsBitGc SetWordJustification GRAPHICS-BITGDI-FbsBitGc-PublicApi-1158-SetWordJustification_command12 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-1158-DrawText_command13 - COMMAND fbsBitGc SetWordJustification GRAPHICS-BITGDI-FbsBitGc-PublicApi-1158-SetWordJustification_command14 - COMMAND fbsBitGc DrawText GRAPHICS-BITGDI-FbsBitGc-PublicApi-1158-DrawText_command15 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsBitGc DiscardFont - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-1158-ReleaseFont_command19 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1158 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1161 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1161 -//! @SYMAPI CFbsBitGc::SetUserDisplayMode(TDisplayMode); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 13/01/2009 -//! @SYMTestCaseDesc Simulate the display mode EGray2 and draw a rectangle. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object. -//! 4. Activate the CFbsBitGc object and clear the screen. -//! 7. Set the brush style to ESolidBrush. -//! 8. Set the brush color to TRgb(100, 100, 100). -//! 9. Set the display mode to EGray2. -//! 10.Draw a rectangle TRect(30, 30, 90, 120). -//! 11.Set the brush color to TRgb(200, 200, 200). -//! 12.Draw a rectangle TRect(100, 30, 160, 120). -//! 13.Update the device. -//! 14.Check whether rectangle color is expected. -//! 15.Delay half a second. -//! 16.Destroy CFbsBitGc object and CFbsScreenDevice object. -//! 17.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. A rectangle with color TRgb(0, 0, 0) will be drawn. -//! 2. A rectangle with color TRgb(255, 255, 255) will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1161-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1161-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-1161-SetBrushStyle_command06 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1161-SetBrushColor_command07 - COMMAND fbsBitGc SetUserDisplayMode GRAPHICS-BITGDI-FbsBitGc-PublicApi-1161-SetUserDisplayMode_command08 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1161-DrawRect_command09 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1161-SetBrushColor_command10 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1161-DrawRect_command11 - COMMAND fbsScrDev Update - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1161-checkRectColor_command13 - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1161-checkRectColor_command14 - DELAY 500000 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1161 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1163 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1163 -//! @SYMAPI CFbsBitGc::SetDrawMode(TDrawMode); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 13/01/2009 -//! @SYMTestCaseDesc Set the drawing mode to EDrawModeAND and draw a rectangle. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object. -//! 4. Activate the CFbsBitGc object and clear the screen. -//! 5. Set the pen color to TRgb(0, 0, 0). -//! 6. Set the brush style to ESolidBrush. -//! 7. Set the brush color to TRgb(0, 0, 0). -//! 8. Draw a rectangle TRect(0, 0, 100, 100). -//! 9. Set the drawing mode to EDrawModeAND. -//! 10.Set the pen color to TRgb(255, 255, 255). -//! 11.Set the brush color to TRgb(255, 255, 255). -//! 12.Draw a rectangle TRect(30, 30, 60, 60). -//! 13.Update the device. -//! 14.Check whether rectangle color is expected. -//! 15.Delay half a second. -//! 16.Destroy CFbsBitGc object and CFbsScreenDevice object. -//! 17.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The rectangle TRect(30, 30, 60, 60) with color TRgb(0, 0, 0) will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1163-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1163-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1163-SetPenColor_command06 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-1163-SetBrushStyle_command07 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1163-SetBrushColor_command08 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1163-DrawRect_command09 - COMMAND fbsBitGc SetDrawMode GRAPHICS-BITGDI-FbsBitGc-PublicApi-1163-SetDrawMode_command10 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1163-SetPenColor_command11 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1163-SetBrushColor_command12 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1163-DrawRect_command13 - COMMAND fbsScrDev Update - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1163-checkRectColor_command15 - DELAY 500000 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1163 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1164 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1164 -//! @SYMAPI CFbsBitGc::SetDrawMode(TDrawMode); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 13/01/2009 -//! @SYMTestCaseDesc Set the drawing mode to EDrawModeNOTAND and draw a rectangle. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object. -//! 4. Activate the CFbsBitGc object and clear the screen. -//! 5. Set the pen color to TRgb(255, 255, 255). -//! 6. Set the brush style to ESolidBrush. -//! 7. Set the brush color to TRgb(255, 255, 255). -//! 8. Draw a rectangle TRect(0, 0, 100, 100). -//! 9. Set the drawing mode to EDrawModeNOTAND. -//! 10.Set the pen color to TRgb(255, 255, 255). -//! 11.Set the brush color to TRgb(255, 255, 255). -//! 12.Draw a rectangle TRect(30, 30, 60, 60). -//! 13.Update the device. -//! 14.Check whether rectangle color is expected. -//! 15.Delay half a second. -//! 16.Destroy CFbsBitGc object and CFbsScreenDevice object. -//! 17.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The rectangle TRect(30, 30, 60, 60) with color TRgb(0, 0, 0) will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1164-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1164-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1164-SetPenColor_command06 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-1164-SetBrushStyle_command07 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1164-SetBrushColor_command08 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1164-DrawRect_command09 - COMMAND fbsBitGc SetDrawMode GRAPHICS-BITGDI-FbsBitGc-PublicApi-1164-SetDrawMode_command10 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1164-SetPenColor_command11 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1164-SetBrushColor_command12 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1164-DrawRect_command13 - COMMAND fbsScrDev Update - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1164-checkRectColor_command15 - DELAY 500000 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1164 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1165 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1165 -//! @SYMAPI CFbsBitGc::SetDrawMode(TDrawMode); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 13/01/2009 -//! @SYMTestCaseDesc Set the drawing mode to EDrawModePEN and draw a rectangle. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object. -//! 4. Activate the CFbsBitGc object and clear the screen. -//! 5. Set the pen color to TRgb(0, 0, 0). -//! 6. Set the brush style to ESolidBrush. -//! 7. Set the brush color to TRgb(255, 255, 255). -//! 8. Draw a rectangle TRect(0, 0, 100, 100). -//! 9. Set the drawing mode to EDrawModePEN. -//! 10.Set the pen color to TRgb(0, 0, 0). -//! 11.Set the brush color to TRgb(0, 0, 0). -//! 12.Draw a rectangle TRect(30, 30, 60, 60). -//! 13.Update the device. -//! 14.Check whether rectangle color is expected. -//! 15.Delay half a second. -//! 16.Destroy CFbsBitGc object and CFbsScreenDevice object. -//! 17.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The rectangle TRect(30, 30, 60, 60) with color TRgb(0, 0, 0) will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1165-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1165-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1165-SetPenColor_command06 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-1165-SetBrushStyle_command07 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1165-SetBrushColor_command08 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1165-DrawRect_command09 - COMMAND fbsBitGc SetDrawMode GRAPHICS-BITGDI-FbsBitGc-PublicApi-1165-SetDrawMode_command10 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1165-SetPenColor_command11 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1165-SetBrushColor_command12 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1165-DrawRect_command13 - COMMAND fbsScrDev Update - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1165-checkRectColor_command15 - DELAY 500000 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1165 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1166 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1166 -//! @SYMAPI CFbsBitGc::SetDrawMode(TDrawMode); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 13/01/2009 -//! @SYMTestCaseDesc Set the drawing mode to EDrawModeANDNOT and draw a rectangle. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object. -//! 4. Activate the CFbsBitGc object and clear the screen. -//! 5. Set the pen color to TRgb(255, 255, 255). -//! 6. Set the brush style to ESolidBrush. -//! 7. Set the brush color to TRgb(255, 255, 255). -//! 8. Draw a rectangle TRect(0, 0, 100, 100). -//! 9. Set the drawing mode to EDrawModeANDNOT. -//! 10.Set the pen color to TRgb(255, 255, 255). -//! 11.Set the brush color to TRgb(255, 255, 255). -//! 12.Draw a rectangle TRect(30, 30, 60, 60). -//! 13.Update the device. -//! 14.Check whether rectangle color is expected. -//! 15.Delay half a second. -//! 16.Destroy CFbsBitGc object and CFbsScreenDevice object. -//! 17.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The rectangle TRect(30, 30, 60, 60) with color TRgb(0, 0, 0) will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1166-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1166-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1166-SetPenColor_command06 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-1166-SetBrushStyle_command07 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1166-SetBrushColor_command08 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1166-DrawRect_command09 - COMMAND fbsBitGc SetDrawMode GRAPHICS-BITGDI-FbsBitGc-PublicApi-1166-SetDrawMode_command10 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1166-SetPenColor_command11 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1166-SetBrushColor_command12 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1166-DrawRect_command13 - COMMAND fbsScrDev Update - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1166-checkRectColor_command15 - DELAY 500000 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1166 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1167 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1167 -//! @SYMAPI CFbsBitGc::SetDrawMode(TDrawMode); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 13/01/2009 -//! @SYMTestCaseDesc Set the drawing mode to EDrawModeXOR and draw a rectangle. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object. -//! 4. Activate the CFbsBitGc object and clear the screen. -//! 5. Set the pen color to TRgb(255, 0, 0). -//! 6. Set the brush style to ESolidBrush. -//! 7. Set the brush color to TRgb(255, 0, 0). -//! 8. Draw a rectangle TRect(0, 0, 100, 100). -//! 9. Set the drawing mode to EDrawModeXOR. -//! 10.Set the pen color to TRgb(255, 255, 255). -//! 11.Set the brush color to TRgb(255, 255, 255). -//! 12.Draw a rectangle TRect(30, 30, 60, 60). -//! 13.Update the device. -//! 14.Check whether rectangle color is expected. -//! 15.Delay half a second. -//! 16.Destroy CFbsBitGc object and CFbsScreenDevice object. -//! 17.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The rectangle TRect(30, 30, 60, 60) with color TRgb(0, 255, 255) will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1167-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1167-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1167-SetPenColor_command06 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-1167-SetBrushStyle_command07 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1167-SetBrushColor_command08 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1167-DrawRect_command09 - COMMAND fbsBitGc SetDrawMode GRAPHICS-BITGDI-FbsBitGc-PublicApi-1167-SetDrawMode_command10 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1167-SetPenColor_command11 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1167-SetBrushColor_command12 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1167-DrawRect_command13 - COMMAND fbsScrDev Update - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1167-checkRectColor_command15 - DELAY 500000 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1167 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1168 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1168 -//! @SYMAPI CFbsBitGc::SetDrawMode(TDrawMode); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 13/01/2009 -//! @SYMTestCaseDesc Set the drawing mode to EDrawModeOR and draw a rectangle. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object. -//! 4. Activate the CFbsBitGc object and clear the screen. -//! 5. Set the pen color to TRgb(255, 0, 0). -//! 6. Set the brush style to ESolidBrush. -//! 7. Set the brush color to TRgb(255, 0, 0). -//! 8. Draw a rectangle TRect(0, 0, 100, 100). -//! 9. Set the drawing mode to EDrawModeOR. -//! 10.Set the pen color to TRgb(0, 0, 0). -//! 11.Set the brush color to TRgb(0, 0, 0). -//! 12.Draw a rectangle TRect(30, 30, 60, 60). -//! 13.Update the device. -//! 14.Check whether rectangle color is expected. -//! 15.Delay half a second. -//! 16.Destroy CFbsBitGc object and CFbsScreenDevice object. -//! 17.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The rectangle TRect(30, 30, 60, 60) with color TRgb(255, 0, 0) will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1168-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1168-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1168-SetPenColor_command06 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-1168-SetBrushStyle_command07 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1168-SetBrushColor_command08 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1168-DrawRect_command09 - COMMAND fbsBitGc SetDrawMode GRAPHICS-BITGDI-FbsBitGc-PublicApi-1168-SetDrawMode_command10 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1168-SetPenColor_command11 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1168-SetBrushColor_command12 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1168-DrawRect_command13 - COMMAND fbsScrDev Update - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1168-checkRectColor_command15 - DELAY 500000 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1168 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1169 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1169 -//! @SYMAPI CFbsBitGc::SetDrawMode(TDrawMode); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 13/01/2009 -//! @SYMTestCaseDesc Set the drawing mode to EDrawModeNOTANDNOT and draw a rectangle. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object. -//! 4. Activate the CFbsBitGc object and clear the screen. -//! 5. Set the pen color to TRgb(255, 0, 0). -//! 6. Set the brush style to ESolidBrush. -//! 7. Set the brush color to TRgb(255, 0, 0). -//! 8. Draw a rectangle TRect(0, 0, 100, 100). -//! 9. Set the drawing mode to EDrawModeNOTANDNOT. -//! 10.Set the pen color to TRgb(0, 0, 0). -//! 11.Set the brush color to TRgb(0, 0, 0). -//! 12.Draw a rectangle TRect(30, 30, 60, 60). -//! 13.Update the device. -//! 14.Check whether rectangle color is expected. -//! 15.Delay half a second. -//! 16.Destroy CFbsBitGc object and CFbsScreenDevice object. -//! 17.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The rectangle TRect(30, 30, 60, 60) with color TRgb(0, 255, 255) will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1169-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1169-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1169-SetPenColor_command06 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-1169-SetBrushStyle_command07 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1169-SetBrushColor_command08 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1169-DrawRect_command09 - COMMAND fbsBitGc SetDrawMode GRAPHICS-BITGDI-FbsBitGc-PublicApi-1169-SetDrawMode_command10 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1169-SetPenColor_command11 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1169-SetBrushColor_command12 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1169-DrawRect_command13 - COMMAND fbsScrDev Update - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1169-checkRectColor_command15 - DELAY 500000 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1169 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1170 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1170 -//! @SYMAPI CFbsBitGc::SetDrawMode(TDrawMode); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 13/01/2009 -//! @SYMTestCaseDesc Set the drawing mode to EDrawModeNOTXOR and draw a rectangle. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object. -//! 4. Activate the CFbsBitGc object and clear the screen. -//! 5. Set the pen color to TRgb(255, 0, 0). -//! 6. Set the brush style to ESolidBrush. -//! 7. Set the brush color to TRgb(255, 0, 0). -//! 8. Draw a rectangle TRect(0, 0, 100, 100). -//! 9. Set the drawing mode to EDrawModeNOTXOR. -//! 10.Set the pen color to TRgb(0, 0, 0). -//! 11.Set the brush color to TRgb(0, 0, 0). -//! 12.Draw a rectangle TRect(30, 30, 60, 60). -//! 13.Update the device. -//! 14.Check whether rectangle color is expected. -//! 15.Delay half a second. -//! 16.Destroy CFbsBitGc object and CFbsScreenDevice object. -//! 17.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The rectangle TRect(30, 30, 60, 60) with color TRgb(0, 255, 255) will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1170-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1170-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1170-SetPenColor_command06 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-1170-SetBrushStyle_command07 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1170-SetBrushColor_command08 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1170-DrawRect_command09 - COMMAND fbsBitGc SetDrawMode GRAPHICS-BITGDI-FbsBitGc-PublicApi-1170-SetDrawMode_command10 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1170-SetPenColor_command11 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1170-SetBrushColor_command12 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1170-DrawRect_command13 - COMMAND fbsScrDev Update - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1170-checkRectColor_command15 - DELAY 500000 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1170 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1171 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1171 -//! @SYMAPI CFbsBitGc::SetDrawMode(TDrawMode); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 13/01/2009 -//! @SYMTestCaseDesc Set the drawing mode to EDrawModeNOTSCREEN and draw a rectangle. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object. -//! 4. Activate the CFbsBitGc object and clear the screen. -//! 5. Set the pen color to TRgb(0, 0, 255). -//! 6. Set the brush style to ESolidBrush. -//! 7. Set the brush color to TRgb(0, 0, 255). -//! 8. Draw a rectangle TRect(0, 0, 100, 100). -//! 9. Set the drawing mode to EDrawModeNOTSCREEN. -//! 10.Set the pen color to TRgb(1, 2, 3). -//! 11.Set the brush color to TRgb(3, 2, 1). -//! 12.Draw a rectangle TRect(30, 30, 60, 60). -//! 13.Update the device. -//! 14.Check whether rectangle color is expected. -//! 15.Delay half a second. -//! 16.Destroy CFbsBitGc object and CFbsScreenDevice object. -//! 17.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The rectangle TRect(30, 30, 60, 60) with color TRgb(255, 255, 0) will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1171-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1171-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1171-SetPenColor_command06 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-1171-SetBrushStyle_command07 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1171-SetBrushColor_command08 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1171-DrawRect_command09 - COMMAND fbsBitGc SetDrawMode GRAPHICS-BITGDI-FbsBitGc-PublicApi-1171-SetDrawMode_command10 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1171-SetPenColor_command11 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1171-SetBrushColor_command12 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1171-DrawRect_command13 - COMMAND fbsScrDev Update - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1171-checkRectColor_command15 - DELAY 500000 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1171 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1172 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1172 -//! @SYMAPI CFbsBitGc::SetDrawMode(TDrawMode); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 13/01/2009 -//! @SYMTestCaseDesc Set the drawing mode to EDrawModeNOTOR and draw a rectangle. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object. -//! 4. Activate the CFbsBitGc object and clear the screen. -//! 5. Set the pen color to TRgb(0, 0, 255). -//! 6. Set the brush style to ESolidBrush. -//! 7. Set the brush color to TRgb(0, 0, 255). -//! 8. Draw a rectangle TRect(0, 0, 100, 100). -//! 9. Set the drawing mode to EDrawModeNOTOR. -//! 10.Set the pen color to TRgb(0, 0, 0). -//! 11.Set the brush color to TRgb(0, 0, 0). -//! 12.Draw a rectangle TRect(30, 30, 60, 60). -//! 13.Update the device. -//! 14.Check whether rectangle color is expected. -//! 15.Delay half a second. -//! 16.Destroy CFbsBitGc object and CFbsScreenDevice object. -//! 17.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The rectangle TRect(30, 30, 60, 60) with color TRgb(255, 255, 0) will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1172-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1172-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1172-SetPenColor_command06 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-1172-SetBrushStyle_command07 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1172-SetBrushColor_command08 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1172-DrawRect_command09 - COMMAND fbsBitGc SetDrawMode GRAPHICS-BITGDI-FbsBitGc-PublicApi-1172-SetDrawMode_command10 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1172-SetPenColor_command11 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1172-SetBrushColor_command12 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1172-DrawRect_command13 - COMMAND fbsScrDev Update - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1172-checkRectColor_command15 - DELAY 500000 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1172 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1173 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1173 -//! @SYMAPI CFbsBitGc::SetDrawMode(TDrawMode); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 13/01/2009 -//! @SYMTestCaseDesc Set the drawing mode to EDrawModeNOTPEN and draw a rectangle. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object. -//! 4. Activate the CFbsBitGc object and clear the screen. -//! 5. Set the pen color to TRgb(0, 0, 255). -//! 6. Set the brush style to ESolidBrush. -//! 7. Set the brush color to TRgb(0, 0, 255). -//! 8. Draw a rectangle TRect(0, 0, 100, 100). -//! 9. Set the drawing mode to EDrawModeNOTPEN. -//! 10.Set the pen color to TRgb(0, 255, 0). -//! 11.Set the brush color to TRgb(0, 255, 0). -//! 12.Draw a rectangle TRect(30, 30, 60, 60). -//! 13.Update the device. -//! 14.Check whether rectangle color is expected. -//! 15.Delay half a second. -//! 16.Destroy CFbsBitGc object and CFbsScreenDevice object. -//! 17.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The rectangle TRect(30, 30, 60, 60) with color TRgb(255, 0, 255) will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1173-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1173-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1173-SetPenColor_command06 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-1173-SetBrushStyle_command07 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1173-SetBrushColor_command08 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1173-DrawRect_command09 - COMMAND fbsBitGc SetDrawMode GRAPHICS-BITGDI-FbsBitGc-PublicApi-1173-SetDrawMode_command10 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1173-SetPenColor_command11 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1173-SetBrushColor_command12 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1173-DrawRect_command13 - COMMAND fbsScrDev Update - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1173-checkRectColor_command15 - DELAY 500000 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1173 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1174 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1174 -//! @SYMAPI CFbsBitGc::SetDrawMode(TDrawMode); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 13/01/2009 -//! @SYMTestCaseDesc Set the drawing mode to EDrawModeORNOT and draw a rectangle. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object. -//! 4. Activate the CFbsBitGc object and clear the screen. -//! 5. Set the pen color to TRgb(0, 0, 0). -//! 6. Set the brush style to ESolidBrush. -//! 7. Set the brush color to TRgb(0, 0, 0). -//! 8. Draw a rectangle TRect(0, 0, 100, 100). -//! 9. Set the drawing mode to EDrawModeORNOT. -//! 10.Set the pen color to TRgb(255, 255, 255). -//! 11.Set the brush color to TRgb(255, 255, 255). -//! 12.Draw a rectangle TRect(30, 30, 60, 60). -//! 13.Update the device. -//! 14.Check whether rectangle color is expected. -//! 15.Delay half a second. -//! 16.Destroy CFbsBitGc object and CFbsScreenDevice object. -//! 17.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The rectangle TRect(30, 30, 60, 60) with color TRgb(0, 0, 0) will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1174-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1174-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1174-SetPenColor_command06 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-1174-SetBrushStyle_command07 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1174-SetBrushColor_command08 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1174-DrawRect_command09 - COMMAND fbsBitGc SetDrawMode GRAPHICS-BITGDI-FbsBitGc-PublicApi-1174-SetDrawMode_command10 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1174-SetPenColor_command11 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1174-SetBrushColor_command12 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1174-DrawRect_command13 - COMMAND fbsScrDev Update - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1174-checkRectColor_command15 - DELAY 500000 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1174 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1175 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-1175 -//! @SYMAPI CFbsBitGc::SetDrawMode(TDrawMode); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 13/01/2009 -//! @SYMTestCaseDesc Set the drawing mode to EDrawModeNOTORNOT and draw a rectangle. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object. -//! 4. Activate the CFbsBitGc object and clear the screen. -//! 5. Set the pen color to TRgb(255, 255, 255). -//! 6. Set the brush style to ESolidBrush. -//! 7. Set the brush color to TRgb(255, 255, 255). -//! 8. Draw a rectangle TRect(0, 0, 100, 100). -//! 9. Set the drawing mode to EDrawModeNOTORNOT. -//! 10.Set the pen color to TRgb(0, 255, 0). -//! 11.Set the brush color to TRgb(0, 255, 0). -//! 12.Draw a rectangle TRect(30, 30, 60, 60). -//! 13.Update the device. -//! 14.Check whether rectangle color is expected. -//! 15.Delay half a second. -//! 16.Destroy CFbsBitGc object and CFbsScreenDevice object. -//! 17.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The rectangle TRect(30, 30, 60, 60) with color TRgb(255, 0, 255) will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-1175-NewL_command02 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-1175-Activate_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1175-SetPenColor_command06 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-1175-SetBrushStyle_command07 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1175-SetBrushColor_command08 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1175-DrawRect_command09 - COMMAND fbsBitGc SetDrawMode GRAPHICS-BITGDI-FbsBitGc-PublicApi-1175-SetDrawMode_command10 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1175-SetPenColor_command11 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1175-SetBrushColor_command12 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-1175-DrawRect_command13 - COMMAND fbsScrDev Update - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-1175-checkRectColor_command15 - DELAY 500000 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-1175 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-2321 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-2321 -//! @SYMAPI CFbsBitGc::ShadowArea(const TRegion{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 09/01/2009 -//! @SYMTestCaseDesc Set the shadow area. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to CFbsScreenDevice object. -//! 5. Set brush style to ESolidBrush and brush color to TRgb(0, 0, 255) and clear the device. -//! 6. Sets the shadow area to rectangle area TRect(0, 0, 50, 50) and update the device. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults ShadowArea() is called without error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-2321-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-2321-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-2321-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-2321-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc ShadowArea GRAPHICS-BITGDI-FbsBitGc-PublicApi-2321-ShadowArea_command08 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-2321 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-2322 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-2322 -//! @SYMAPI CFbsBitGc::ShadowArea(const TRegion{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 09/01/2009 -//! @SYMTestCaseDesc Negative case. Set the shadow area to empty rectangle. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to CFbsScreenDevice object. -//! 5. Set brush style to ESolidBrush and brush color to TRgb(0, 0, 255) and clear the device. -//! 6. Sets the shadow area to rectangle area TRect(0, 0, 0, 0). -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults ShadowArea() is called without error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-2322-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-2322-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-2322-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-2322-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc ShadowArea GRAPHICS-BITGDI-FbsBitGc-PublicApi-2322-ShadowArea_command08 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-2322 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-2323 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-2323 -//! @SYMAPI CFbsBitGc::ShadowArea(const TRegion{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 09/01/2009 -//! @SYMTestCaseDesc Negative case. Set the shadow area with null region. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to CFbsScreenDevice object. -//! 5. Set brush style to ESolidBrush and brush color to TRgb(0, 0, 255) and clear the device. -//! 6. Sets the shadow area with null region. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults ShadowArea() is called without error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-2323-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-2323-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-2323-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-2323-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc ShadowArea - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-2323 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-2331 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-2331 -//! @SYMAPI CFbsBitGc::FadeArea(const TRegion{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 09/01/2009 -//! @SYMTestCaseDesc Set the fade area. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to CFbsScreenDevice object. -//! 5. Set brush style to ESolidBrush and brush color to TRgb(0, 0, 255) and clear the device. -//! 6. Set fading parameters to 63 and 130. -//! 7. Draw a rectangle area (0, 0, 50, 50). -//! 8. Sets the fade area to rectangle area TRect(0, 0, 50, 50). -//! 9. Check the drawn rectangle. -//! 10. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. FadeArea() is called without error. -//! 2. The rectangle drawn in color TRgb(63, 63, 130). -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-2331-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-2331-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-2331-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-2331-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetFadingParameters GRAPHICS-BITGDI-FbsBitGc-PublicApi-2331-SetFadingParameters_command08 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-2331-DrawRect_command09 - COMMAND fbsBitGc FadeArea GRAPHICS-BITGDI-FbsBitGc-PublicApi-2331-FadeArea_command10 - COMMAND fbsScrDev Update - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-2331-checkRectColor_command12 - DELAY 500000 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-2331 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-2332 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-2332 -//! @SYMAPI CFbsBitGc::FadeArea(const TRegion{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 09/01/2009 -//! @SYMTestCaseDesc Negative case. Set the fade area to empty rectangle. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to CFbsScreenDevice object. -//! 5. Set brush style to ESolidBrush and brush color to TRgb(0, 0, 255) and clear the device. -//! 6. Sets the fade area to rectangle area TRect(0, 0, 0, 0). -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults FadeArea() is called without error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-2332-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-2332-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-2332-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-2332-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc FadeArea GRAPHICS-BITGDI-FbsBitGc-PublicApi-2332-FadeArea_command08 - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-2332 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-2333 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-2333 -//! @SYMAPI CFbsBitGc::FadeArea(const TRegion{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 09/01/2009 -//! @SYMTestCaseDesc Negative case. Set the fade area with null region. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object. -//! 4. Activate the CFbsBitGc object to draw to CFbsScreenDevice object. -//! 5. Set brush style to ESolidBrush and brush color to TRgb(0, 0, 255) and clear the device. -//! 6. Sets the fade area with null region. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults FadeArea() is called without error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-2333-NewL_command03 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-2333-Activate_command04 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsBitGc-PublicApi-2333-SetBrushStyle_command05 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsBitGc-PublicApi-2333-SetBrushColor_command06 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc FadeArea - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-2333 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-2701 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-2701 -//! @SYMAPI CFbsBitGc::UseBrushPattern(const CFbsBitmap{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/01/2009 -//! @SYMTestCaseDesc Set the CFbsBitGc object to use a specified bitmap as brush pattern. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsBitmap object. -//! 4. Sets the brush pattern to the CFbsBitmap object. -//! 5. Test if brush pattern is used. -//! 6. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsBitmap object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults UseBrushPattern() is called without error. After this call, IsBrushPatternUsed() returns true. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-2701-Load_command04 - COMMAND fbsBitGc UseBrushPattern GRAPHICS-BITGDI-FbsBitGc-PublicApi-2701-UseBrushPattern_command05 - COMMAND fbsBitGc IsBrushPatternUsed GRAPHICS-BITGDI-FbsBitGc-PublicApi-2701-IsBrushPatternUsed_command06 - COMMAND fbsBitGc ~ - COMMAND fbsBitmap ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-2701 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-2702 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-2702 -//! @SYMAPI CFbsBitGc::UseBrushPattern(const CFbsBitmap{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/01/2009 -//! @SYMTestCaseDesc Negative case. Set the CFbsBitGc object to use a not loaded bitmap as brush pattern. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object and a CFbsBitmap object. -//! 3. Sets the brush pattern to the CFbsBitmap object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get Panic code 13 and PanicString BITGDI. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsBitGc UseBrushPattern GRAPHICS-BITGDI-FbsBitGc-PublicApi-2702-UseBrushPattern_command04 - END_TEST_BLOCK !PanicString=BITGDI !PanicCode=13 - RUN_TEST_STEP 100 T_GraphicsBitgdiApi utilityClearPanicDlg -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-2702 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-2703 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-2703 -//! @SYMAPI CFbsBitGc::UseBrushPattern(const CFbsBitmap{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/01/2009 -//! @SYMTestCaseDesc Negative case. Set the CFbsBitGc object to use a null bitmap as brush pattern. -//! @SYMTestActions 1. Create a CFbsBitGc object and a CFbsBitmap object.. -//! 2. Sets the brush pattern to the CFbsBitmap object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get Panic code 13 and PanicString BITGDI. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND fbsBitGc NewL - COMMAND fbsBitGc UseBrushPattern GRAPHICS-BITGDI-FbsBitGc-PublicApi-2703-UseBrushPattern_command03 - END_TEST_BLOCK !PanicString=BITGDI !PanicCode=13 - RUN_TEST_STEP 100 T_GraphicsBitgdiApi utilityClearPanicDlg -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-2703 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-2711 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-2711 -//! @SYMAPI CFbsBitGc::UseBrushPattern(TInt) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 12/01/2009 -//! @SYMTestCaseDesc Set the CFbsBitGc object to use a specified bitmap as brush pattern through handle. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsBitmap object. -//! 4. Sets the brush pattern to the handle of CFbsBitmap object. -//! 5. Test if brush pattern is used. -//! 6. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsBitmap object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults UseBrushPattern() is called without error. After this call, IsBrushPatternUsed() returns true. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-2711-Load_command04 - COMMAND fbsBitGc UseBrushPattern GRAPHICS-BITGDI-FbsBitGc-PublicApi-2711-UseBrushPattern_command05 - COMMAND fbsBitGc IsBrushPatternUsed GRAPHICS-BITGDI-FbsBitGc-PublicApi-2711-IsBrushPatternUsed_command06 - COMMAND fbsBitGc ~ - COMMAND fbsBitmap ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-2711 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-2712 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-2712 -//! @SYMAPI CFbsBitGc::UseBrushPattern(TInt) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 12/01/2009 -//! @SYMTestCaseDesc Negative case. Set the CFbsBitGc object to use a specified bitmap as brush pattern twice through handle. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsBitmap object. -//! 4. Sets the brush pattern to the handle of CFbsBitmap object. -//! 5. Test if brush pattern is used. -//! 6. Sets the brush pattern to the handle of CFbsBitmap object. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsBitmap object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults UseBrushPattern() is called without error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-2712-Load_command04 - COMMAND fbsBitGc UseBrushPattern GRAPHICS-BITGDI-FbsBitGc-PublicApi-2712-UseBrushPattern_command05 - COMMAND fbsBitGc IsBrushPatternUsed GRAPHICS-BITGDI-FbsBitGc-PublicApi-2712-IsBrushPatternUsed_command06 - COMMAND fbsBitGc UseBrushPattern GRAPHICS-BITGDI-FbsBitGc-PublicApi-2712-UseBrushPattern_command07 - COMMAND fbsBitGc ~ - COMMAND fbsBitmap ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-2712 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-2713 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-2713 -//! @SYMAPI CFbsBitGc::UseBrushPattern(TInt) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 12/01/2009 -//! @SYMTestCaseDesc Negative case. Set the CFbsBitGc object to use an invalid bitmap handle as brush pattern. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Sets the brush pattern to the handle of CFbsBitmap object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get panic code 13 of BITGDI. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitGc UseBrushPattern GRAPHICS-BITGDI-FbsBitGc-PublicApi-2713-UseBrushPattern_command05 - END_TEST_BLOCK !PanicString=BITGDI !PanicCode=13 - RUN_TEST_STEP 100 T_GraphicsBitgdiApi utilityClearPanicDlg -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-2713 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-2721 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-2721 -//! @SYMAPI CFbsBitGc::UseFont(TInt) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 12/01/2009 -//! @SYMTestCaseDesc Set the CFbsBitGc object to use a specified font through handle. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsFont object and a CFbsTypefaceStore object. -//! 4. Get font and select the device font using CFbsBitGc object. -//! 5. Test if font is used. -//! 6. Disconnect RFbsSession and destruct CFbsBitGc object, release CFbsFont object and CFbsTypefaceStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults UseFont() is called without error. After this call, IsFontUsed() returns true. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsTypefaceStore fbsTypefaceStore - CREATE_OBJECT CFbsFont fbsFont - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsTypefaceStore NewL - COMMAND fbsTypefaceStore GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-2721-GetNearestFontToDesignHeightInPixels_command04 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-2721-UseFont_command05 - COMMAND fbsBitGc IsFontUsed GRAPHICS-BITGDI-FbsBitGc-PublicApi-2721-IsFontUsed_command06 - COMMAND fbsTypefaceStore ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-2721-ReleaseFont_command07 - COMMAND fbsTypefaceStore ~ - COMMAND fbsBitGc ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-2721 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-2722 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-2722 -//! @SYMAPI CFbsBitGc::UseFont(TInt) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 12/01/2009 -//! @SYMTestCaseDesc Negative case. Set the CFbsBitGc object to use a specified font through handle twice. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsFont object and a CFbsTypefaceStore object. -//! 4. Get font and select the device font using CFbsBitGc object. -//! 5. Test if font is used. -//! 6. Disconnect RFbsSession and destruct CFbsBitGc object, release CFbsFont object and CFbsTypefaceStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults UseFont() is called without error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsTypefaceStore fbsTypefaceStore - CREATE_OBJECT CFbsFont fbsFont - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsTypefaceStore NewL - COMMAND fbsTypefaceStore GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-2722-GetNearestFontToDesignHeightInPixels_command04 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-2722-UseFont_command05 - COMMAND fbsBitGc IsFontUsed GRAPHICS-BITGDI-FbsBitGc-PublicApi-2722-IsFontUsed_command06 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-2722-UseFont_command07 - COMMAND fbsTypefaceStore ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-2722-ReleaseFont_command08 - COMMAND fbsTypefaceStore ~ - COMMAND fbsBitGc ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-2722 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-2723 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-2723 -//! @SYMAPI CFbsBitGc::UseFont(TInt) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 12/01/2009 -//! @SYMTestCaseDesc Negative case. Set the CFbsBitGc object to use a font through an invalid handle. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsFont object and a CFbsTypefaceStore object. -//! 4. Get font and select the device font using CFbsBitGc object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get panic code 12 of BITGDI. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-2723-UseFont_command02 - END_TEST_BLOCK !PanicString=BITGDI !PanicCode=12 - RUN_TEST_STEP 100 T_GraphicsBitgdiApi utilityClearPanicDlg -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-2723 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-2731 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-2731 -//! @SYMAPI CFbsBitGc::UseFontNoDuplicate(const CFont{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/01/2009 -//! @SYMTestCaseDesc Select the device font. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsFont object and a CFbsTypefaceStore object. -//! 4. Get font and select the device font using CFbsBitGc object. -//! 5. Test if font is used. -//! 6. Disconnect RFbsSession and destruct CFbsBitGc object, release CFbsFont object and CFbsTypefaceStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults UseFont() is called without error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsTypefaceStore fbsTypefaceStore - CREATE_OBJECT CFbsFont fbsFont - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsTypefaceStore NewL - COMMAND fbsTypefaceStore GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-2731-GetNearestFontToDesignHeightInPixels_command04 - COMMAND fbsBitGc UseFontNoDuplicate GRAPHICS-BITGDI-FbsBitGc-PublicApi-2731-UseFontNoDuplicate_command05 - COMMAND fbsBitGc IsFontUsed GRAPHICS-BITGDI-FbsBitGc-PublicApi-2731-IsFontUsed_command06 - COMMAND fbsTypefaceStore ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-2731-ReleaseFont_command07 - COMMAND fbsTypefaceStore ~ - COMMAND fbsBitGc ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-2731 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-2732 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-2732 -//! @SYMAPI CFbsBitGc::UseFontNoDuplicate(const CFont{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/01/2009 -//! @SYMTestCaseDesc Negative case. Select the same device font twice. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsFont object and a CFbsTypefaceStore object. -//! 4. Get font and select the device font using CFbsBitGc object. -//! 5. Test if font is used. -//! 6. Select the device font using CFbsBitGc object -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object, release CFbsFont object and CFbsTypefaceStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults UseFont() is called without error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsTypefaceStore fbsTypefaceStore - CREATE_OBJECT CFbsFont fbsFont - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsTypefaceStore NewL - COMMAND fbsTypefaceStore GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-2732-GetNearestFontToDesignHeightInPixels_command04 - COMMAND fbsBitGc UseFontNoDuplicate GRAPHICS-BITGDI-FbsBitGc-PublicApi-2732-UseFontNoDuplicate_command05 - COMMAND fbsBitGc IsFontUsed GRAPHICS-BITGDI-FbsBitGc-PublicApi-2732-IsFontUsed_command06 - COMMAND fbsBitGc UseFontNoDuplicate GRAPHICS-BITGDI-FbsBitGc-PublicApi-2732-UseFontNoDuplicate_command07 - COMMAND fbsTypefaceStore ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-2732-ReleaseFont_command08 - COMMAND fbsTypefaceStore ~ - COMMAND fbsBitGc ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-2732 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-2801 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-2801 -//! @SYMAPI CFbsBitGc::UseFont(const CFont{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/01/2009 -//! @SYMTestCaseDesc Select the device font. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsFont object and a CFbsTypefaceStore object. -//! 4. Get font and select the device font using CFbsBitGc object. -//! 5. Test if font is used. -//! 6. Disconnect RFbsSession and destruct CFbsBitGc object, release CFbsFont object and CFbsTypefaceStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults UseFont() is called without error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsTypefaceStore fbsTypefaceStore - CREATE_OBJECT CFbsFont fbsFont - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsTypefaceStore NewL - COMMAND fbsTypefaceStore GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-2801-GetNearestFontToDesignHeightInPixels_command04 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-2801-UseFont_command05 - COMMAND fbsBitGc IsFontUsed GRAPHICS-BITGDI-FbsBitGc-PublicApi-2801-IsFontUsed_command06 - COMMAND fbsTypefaceStore ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-2801-ReleaseFont_command07 - COMMAND fbsTypefaceStore ~ - COMMAND fbsBitGc ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-2801 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-2802 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-2802 -//! @SYMAPI CFbsBitGc::UseFont(const CFont{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 08/01/2009 -//! @SYMTestCaseDesc Negative case. Select a null font to CFbsBitGc object. -//! @SYMTestActions 1. Create a CFbsBitGc object and a CFbsFont object. -//! 2. Select the null font using CFbsBitGc object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get Panic code 12 and PanicString BITGDI. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsFont fbsFont - COMMAND fbsBitGc NewL - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-2802-UseFont_command02 - END_TEST_BLOCK !PanicString=BITGDI !PanicCode=12 - RUN_TEST_STEP 100 T_GraphicsBitgdiApi utilityClearPanicDlg -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-2802 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-2901 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-2901 -//! @SYMAPI CFbsBitGc::IsBrushPatternUsed() -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 09/01/2009 -//! @SYMTestCaseDesc Tests whether a brush pattern is being used. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsBitmap object. -//! 4. Test if brush pattern is used. -//! 5. Sets the brush pattern to the CFbsBitmap object. -//! 6. Test if brush pattern is used. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsBitmap object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults IsBrushPattern() is called without error. Before UseBrushPattern() called, IsBrushPatternUsed() return false. After that call, it returns true. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-2901-Load_command04 - COMMAND fbsBitGc IsBrushPatternUsed GRAPHICS-BITGDI-FbsBitGc-PublicApi-2901-IsBrushPatternUsed_command05 - COMMAND fbsBitGc UseBrushPattern GRAPHICS-BITGDI-FbsBitGc-PublicApi-2901-UseBrushPattern_command06 - COMMAND fbsBitGc IsBrushPatternUsed GRAPHICS-BITGDI-FbsBitGc-PublicApi-2901-IsBrushPatternUsed_command07 - COMMAND fbsBitmap ~ - COMMAND fbsBitGc ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-2901 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-2951 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-2951 -//! @SYMAPI CFbsBitGc::IsFontUsed() -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 09/01/2009 -//! @SYMTestCaseDesc Tests whether a font is being used. -//! @SYMTestCaseDesc Select the device font. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsFont object and a CFbsTypefaceStore object. -//! 4. Test if font is used. -//! 5. Get font and select the device font using CFbsBitGc object. -//! 6. Test if font is used. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object, release CFbsFont object and CFbsTypefaceStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults IsFontUsed() is called without error. Before UseFont() called, IsFontUsed() return false. After that call, it returns true. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsTypefaceStore fbsTypefaceStore - CREATE_OBJECT CFbsFont fbsFont - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsTypefaceStore NewL - COMMAND fbsTypefaceStore GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGc-PublicApi-2951-GetNearestFontToDesignHeightInPixels_command04 - COMMAND fbsBitGc IsFontUsed GRAPHICS-BITGDI-FbsBitGc-PublicApi-2951-IsFontUsed_command05 - COMMAND fbsBitGc UseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-2951-UseFont_command06 - COMMAND fbsBitGc IsFontUsed GRAPHICS-BITGDI-FbsBitGc-PublicApi-2951-IsFontUsed_command07 - COMMAND fbsTypefaceStore ReleaseFont GRAPHICS-BITGDI-FbsBitGc-PublicApi-2951-ReleaseFont_command08 - COMMAND fbsTypefaceStore ~ - COMMAND fbsBitGc ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-2951 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3001 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-3001 -//! @SYMAPI AlphaBlendBitmaps(const TPoint{ref},const CFbsBitmap{ptr},const CFbsBitmap{ptr},const TRect{ref},const TPoint{ref},const CFbsBitmap{ptr},const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 25/12/2008 -//! @SYMTestCaseDesc Perform an alpha blending of the source bitmap. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and 3 CFbsBitmap objects. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load 3 bitmaps. -//! 6. Perform alpha blending. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The action is performed successfully. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitmap fbsSrcBitmap1 - CREATE_OBJECT CFbsBitmap fbsSrcBitmap2 - CREATE_OBJECT CFbsBitmap alphaBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsSrcBitmap1 new - COMMAND fbsSrcBitmap2 new - COMMAND alphaBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-3001-NewL_command06 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-3001-Activate_command07 - COMMAND fbsSrcBitmap1 Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3001-Load_command08 - COMMAND fbsSrcBitmap2 Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3001-Load_command09 - COMMAND alphaBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3001-Load_command10 - COMMAND fbsBitGc AlphaBlendBitmaps GRAPHICS-BITGDI-FbsBitGc-PublicApi-3001-AlphaBlendBitmaps_command11 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsSrcBitmap1 ~ - COMMAND fbsSrcBitmap2 ~ - COMMAND alphaBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3001 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3002 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-3002 -//! @SYMAPI AlphaBlendBitmaps(const TPoint{ref},const CFbsBitmap{ptr},const CFbsBitmap{ptr},const TRect{ref},const TPoint{ref},const CFbsBitmap{ptr},const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 26/12/2008 -//! @SYMTestCaseDesc Negative case. Perform an alpha blending of the source bitmap using a non-activated CFbsBitGc object. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create 3 CFbsBitmap objects. -//! 4. Load 3 bitmaps. -//! 5. Perform alpha blending. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get Panic code 1 and PanicString BITGDI. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsSrcBitmap1 - CREATE_OBJECT CFbsBitmap fbsSrcBitmap2 - CREATE_OBJECT CFbsBitmap alphaBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsSrcBitmap1 new - COMMAND fbsSrcBitmap2 new - COMMAND alphaBitmap new - COMMAND fbsSrcBitmap1 Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3002-Load_command06 - COMMAND fbsSrcBitmap2 Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3002-Load_command07 - COMMAND alphaBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3002-Load_command08 - COMMAND fbsBitGc AlphaBlendBitmaps GRAPHICS-BITGDI-FbsBitGc-PublicApi-3002-AlphaBlendBitmaps_command09 - END_TEST_BLOCK !PanicString=BITGDI !PanicCode=1 - RUN_TEST_STEP 100 T_GraphicsBitgdiApi utilityClearPanicDlg -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3002 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3003 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-3003 -//! @SYMAPI AlphaBlendBitmaps(const TPoint{ref},const CFbsBitmap{ptr},const CFbsBitmap{ptr},const TRect{ref},const TPoint{ref},const CFbsBitmap{ptr},const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 26/12/2008 -//! @SYMTestCaseDesc Negative case. Perform an alpha blending of the source bitmap with error point arguments. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and 3 CFbsBitmap objects. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load 3 bitmaps. -//! 6. Perform alpha blending. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Error code -6 is returned. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitmap fbsSrcBitmap1 - CREATE_OBJECT CFbsBitmap fbsSrcBitmap2 - CREATE_OBJECT CFbsBitmap alphaBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsSrcBitmap1 new - COMMAND fbsSrcBitmap2 new - COMMAND alphaBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-3003-NewL_command06 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-3003-Activate_command07 - COMMAND fbsSrcBitmap1 Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3003-Load_command08 - COMMAND fbsSrcBitmap2 Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3003-Load_command09 - COMMAND alphaBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3003-Load_command10 - COMMAND !Error=-6 fbsBitGc AlphaBlendBitmaps GRAPHICS-BITGDI-FbsBitGc-PublicApi-3003-AlphaBlendBitmaps_command11 - COMMAND fbsScrDev Update - COMMAND fbsSrcBitmap1 ~ - COMMAND fbsSrcBitmap2 ~ - COMMAND alphaBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3003 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3004 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-3004 -//! @SYMAPI AlphaBlendBitmaps(const TPoint{ref},const CFbsBitmap{ptr},const CFbsBitmap{ptr},const TRect{ref},const TPoint{ref},const CFbsBitmap{ptr},const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 26/12/2008 -//! @SYMTestCaseDesc Negative case. Perform an alpha blending of the source bitmap with 1st src bitmap null. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and 3 CFbsBitmap objects. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load 2 bitmaps. -//! 6. Perform alpha blending. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Error code -6 is returned. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitmap fbsSrcBitmap1 - CREATE_OBJECT CFbsBitmap fbsSrcBitmap2 - CREATE_OBJECT CFbsBitmap alphaBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsSrcBitmap2 new - COMMAND alphaBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-3004-NewL_command05 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-3004-Activate_command06 - COMMAND fbsSrcBitmap2 Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3004-Load_command07 - COMMAND alphaBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3004-Load_command08 - COMMAND !Error=-6 fbsBitGc AlphaBlendBitmaps GRAPHICS-BITGDI-FbsBitGc-PublicApi-3004-AlphaBlendBitmaps_command09 - COMMAND fbsScrDev Update - COMMAND fbsSrcBitmap2 ~ - COMMAND alphaBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3004 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3005 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-3005 -//! @SYMAPI AlphaBlendBitmaps(const TPoint{ref},const CFbsBitmap{ptr},const CFbsBitmap{ptr},const TRect{ref},const TPoint{ref},const CFbsBitmap{ptr},const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 26/12/2008 -//! @SYMTestCaseDesc Negative case. Perform an alpha blending of the source bitmap with 2nd src bitmap null. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and 3 CFbsBitmap objects. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load 2 bitmaps. -//! 6. Perform alpha blending. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Error code -6 is returned. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitmap fbsSrcBitmap1 - CREATE_OBJECT CFbsBitmap fbsSrcBitmap2 - CREATE_OBJECT CFbsBitmap alphaBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsSrcBitmap1 new - COMMAND alphaBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-3005-NewL_command05 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-3005-Activate_command06 - COMMAND fbsSrcBitmap1 Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3005-Load_command07 - COMMAND alphaBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3005-Load_command08 - COMMAND !Error=-6 fbsBitGc AlphaBlendBitmaps GRAPHICS-BITGDI-FbsBitGc-PublicApi-3005-AlphaBlendBitmaps_command09 - COMMAND fbsScrDev Update - COMMAND fbsSrcBitmap1 ~ - COMMAND alphaBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3005 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3006 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-3006 -//! @SYMAPI AlphaBlendBitmaps(const TPoint{ref},const CFbsBitmap{ptr},const CFbsBitmap{ptr},const TRect{ref},const TPoint{ref},const CFbsBitmap{ptr},const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 26/12/2008 -//! @SYMTestCaseDesc Negative case. Perform an alpha blending of the source bitmap with null alpha bitmap. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and 3 CFbsBitmap objects. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load 3 bitmaps. -//! 6. Perform alpha blending. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Error code -6 is returned. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitmap fbsSrcBitmap1 - CREATE_OBJECT CFbsBitmap fbsSrcBitmap2 - CREATE_OBJECT CFbsBitmap alphaBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsSrcBitmap1 new - COMMAND fbsSrcBitmap2 new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-3006-NewL_command05 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-3006-Activate_command06 - COMMAND fbsSrcBitmap1 Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3006-Load_command07 - COMMAND fbsSrcBitmap2 Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3006-Load_command08 - COMMAND !Error=-6 fbsBitGc AlphaBlendBitmaps GRAPHICS-BITGDI-FbsBitGc-PublicApi-3006-AlphaBlendBitmaps_command09 - COMMAND fbsScrDev Update - COMMAND fbsSrcBitmap1 ~ - COMMAND fbsSrcBitmap2 ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3006 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3007 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-3007 -//! @SYMAPI AlphaBlendBitmaps(const TPoint{ref},const CFbsBitmap{ptr},const CFbsBitmap{ptr},const TRect{ref},const TPoint{ref},const CFbsBitmap{ptr},const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 26/12/2008 -//! @SYMTestCaseDesc Negative case. Perform an alpha blending of an empty rectangle area of the source bitmap. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and 3 CFbsBitmap objects. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load 3 bitmaps. -//! 6. Perform alpha blending. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Error code -6 is returned. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitmap fbsSrcBitmap1 - CREATE_OBJECT CFbsBitmap fbsSrcBitmap2 - CREATE_OBJECT CFbsBitmap alphaBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsSrcBitmap1 new - COMMAND fbsSrcBitmap2 new - COMMAND alphaBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-3007-NewL_command06 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-3007-Activate_command07 - COMMAND fbsSrcBitmap1 Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3007-Load_command08 - COMMAND fbsSrcBitmap2 Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3007-Load_command09 - COMMAND alphaBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3007-Load_command10 - COMMAND !Error=-6 fbsBitGc AlphaBlendBitmaps GRAPHICS-BITGDI-FbsBitGc-PublicApi-3007-AlphaBlendBitmaps_command11 - COMMAND fbsScrDev Update - COMMAND fbsSrcBitmap1 ~ - COMMAND fbsSrcBitmap2 ~ - COMMAND alphaBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3007 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3008 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-3008 -//! @SYMAPI AlphaBlendBitmaps(const TPoint{ref},const CFbsBitmap{ptr},const CFbsBitmap{ptr},const TRect{ref},const TPoint{ref},const CFbsBitmap{ptr},const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 26/12/2008 -//! @SYMTestCaseDesc Negative case. Perform an alpha blending of the source bitmap with 1st src bitmap not loaded. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and 3 CFbsBitmap objects. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load 3 bitmaps. -//! 6. Perform alpha blending. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Error code -6 is returned. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitmap fbsSrcBitmap1 - CREATE_OBJECT CFbsBitmap fbsSrcBitmap2 - CREATE_OBJECT CFbsBitmap alphaBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsSrcBitmap1 new - COMMAND fbsSrcBitmap2 new - COMMAND alphaBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-3008-NewL_command06 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-3008-Activate_command07 - COMMAND fbsSrcBitmap2 Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3008-Load_command08 - COMMAND alphaBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3008-Load_command09 - COMMAND !Error=-6 fbsBitGc AlphaBlendBitmaps GRAPHICS-BITGDI-FbsBitGc-PublicApi-3008-AlphaBlendBitmaps_command10 - COMMAND fbsScrDev Update - COMMAND fbsSrcBitmap1 ~ - COMMAND fbsSrcBitmap2 ~ - COMMAND alphaBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3008 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3009 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-3009 -//! @SYMAPI AlphaBlendBitmaps(const TPoint{ref},const CFbsBitmap{ptr},const CFbsBitmap{ptr},const TRect{ref},const TPoint{ref},const CFbsBitmap{ptr},const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 26/12/2008 -//! @SYMTestCaseDesc Negative case. Perform an alpha blending of the source bitmap with 2nd src bitmap not loaded. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and 3 CFbsBitmap objects. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load 3 bitmaps. -//! 6. Perform alpha blending. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Error code -6 is returned. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitmap fbsSrcBitmap1 - CREATE_OBJECT CFbsBitmap fbsSrcBitmap2 - CREATE_OBJECT CFbsBitmap alphaBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsSrcBitmap1 new - COMMAND fbsSrcBitmap2 new - COMMAND alphaBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-3009-NewL_command06 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-3009-Activate_command07 - COMMAND fbsSrcBitmap1 Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3009-Load_command08 - COMMAND alphaBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3009-Load_command09 - COMMAND !Error=-6 fbsBitGc AlphaBlendBitmaps GRAPHICS-BITGDI-FbsBitGc-PublicApi-3009-AlphaBlendBitmaps_command10 - COMMAND fbsScrDev Update - COMMAND fbsSrcBitmap1 ~ - COMMAND fbsSrcBitmap2 ~ - COMMAND alphaBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3009 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3010 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-3010 -//! @SYMAPI AlphaBlendBitmaps(const TPoint{ref},const CFbsBitmap{ptr},const CFbsBitmap{ptr},const TRect{ref},const TPoint{ref},const CFbsBitmap{ptr},const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 26/12/2008 -//! @SYMTestCaseDesc Negative case. Perform an alpha blending of the source bitmap with alpha bitmap not loaded. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and 3 CFbsBitmap objects. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load 3 bitmaps. -//! 6. Perform alpha blending. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Error code -6 is returned. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitmap fbsSrcBitmap1 - CREATE_OBJECT CFbsBitmap fbsSrcBitmap2 - CREATE_OBJECT CFbsBitmap alphaBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsSrcBitmap1 new - COMMAND fbsSrcBitmap2 new - COMMAND alphaBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-3010-NewL_command06 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-3010-Activate_command07 - COMMAND fbsSrcBitmap1 Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3010-Load_command08 - COMMAND fbsSrcBitmap2 Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3010-Load_command09 - COMMAND !Error=-6 fbsBitGc AlphaBlendBitmaps GRAPHICS-BITGDI-FbsBitGc-PublicApi-3010-AlphaBlendBitmaps_command10 - COMMAND fbsScrDev Update - COMMAND fbsSrcBitmap1 ~ - COMMAND fbsSrcBitmap2 ~ - COMMAND alphaBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3010 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3011 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-3011 -//! @SYMAPI AlphaBlendBitmaps(const TPoint{ref},const CFbsBitmap{ptr},const CFbsBitmap{ptr},const TRect{ref},const TPoint{ref},const CFbsBitmap{ptr},const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 29/12/2008 -//! @SYMTestCaseDesc Negative case. Perform an alpha blending of rectangle area (0, 0, 500, 500) of the source bitmap. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and 3 CFbsBitmap objects. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load 3 bitmaps. -//! 6. Perform alpha blending. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Error code -6 is returned. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitmap fbsSrcBitmap1 - CREATE_OBJECT CFbsBitmap fbsSrcBitmap2 - CREATE_OBJECT CFbsBitmap alphaBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsSrcBitmap1 new - COMMAND fbsSrcBitmap2 new - COMMAND alphaBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-3011-NewL_command06 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-3011-Activate_command07 - COMMAND fbsSrcBitmap1 Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3011-Load_command08 - COMMAND fbsSrcBitmap2 Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3011-Load_command09 - COMMAND alphaBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3011-Load_command10 - COMMAND !Error=-6 fbsBitGc AlphaBlendBitmaps GRAPHICS-BITGDI-FbsBitGc-PublicApi-3011-AlphaBlendBitmaps_command11 - COMMAND fbsScrDev Update - COMMAND fbsSrcBitmap1 ~ - COMMAND fbsSrcBitmap2 ~ - COMMAND alphaBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3011 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3012 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-3012 -//! @SYMAPI AlphaBlendBitmaps(const TPoint{ref},const CFbsBitmap{ptr},const CFbsBitmap{ptr},const TRect{ref},const TPoint{ref},const CFbsBitmap{ptr},const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 29/12/2008 -//! @SYMTestCaseDesc Negative case. Perform an alpha blending of the source bitmap to point (-9000, -9000). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and 3 CFbsBitmap objects. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load 3 bitmaps. -//! 6. Perform alpha blending. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Error code -6 is returned. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitmap fbsSrcBitmap1 - CREATE_OBJECT CFbsBitmap fbsSrcBitmap2 - CREATE_OBJECT CFbsBitmap alphaBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsSrcBitmap1 new - COMMAND fbsSrcBitmap2 new - COMMAND alphaBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-3012-NewL_command06 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-3012-Activate_command07 - COMMAND fbsSrcBitmap1 Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3012-Load_command08 - COMMAND fbsSrcBitmap2 Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3012-Load_command09 - COMMAND alphaBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3012-Load_command10 - COMMAND !Error=-6 fbsBitGc AlphaBlendBitmaps GRAPHICS-BITGDI-FbsBitGc-PublicApi-3012-AlphaBlendBitmaps_command11 - COMMAND fbsScrDev Update - COMMAND fbsSrcBitmap1 ~ - COMMAND fbsSrcBitmap2 ~ - COMMAND alphaBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3012 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3013 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-3013 -//! @SYMAPI AlphaBlendBitmaps(const TPoint{ref},const CFbsBitmap{ptr},const CFbsBitmap{ptr},const TRect{ref},const TPoint{ref},const CFbsBitmap{ptr},const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 29/12/2008 -//! @SYMTestCaseDesc Negative case. Perform an alpha blending of the source bitmap with alpha point set to (-10, 0). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and 3 CFbsBitmap objects. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load 3 bitmaps. -//! 6. Perform alpha blending. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Error code -6 is returned. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitmap fbsSrcBitmap1 - CREATE_OBJECT CFbsBitmap fbsSrcBitmap2 - CREATE_OBJECT CFbsBitmap alphaBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsSrcBitmap1 new - COMMAND fbsSrcBitmap2 new - COMMAND alphaBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-3013-NewL_command06 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-3013-Activate_command07 - COMMAND fbsSrcBitmap1 Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3013-Load_command08 - COMMAND fbsSrcBitmap2 Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3013-Load_command09 - COMMAND alphaBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3013-Load_command10 - COMMAND !Error=-6 fbsBitGc AlphaBlendBitmaps GRAPHICS-BITGDI-FbsBitGc-PublicApi-3013-AlphaBlendBitmaps_command11 - COMMAND fbsScrDev Update - COMMAND fbsSrcBitmap1 ~ - COMMAND fbsSrcBitmap2 ~ - COMMAND alphaBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3013 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3014 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-3014 -//! @SYMAPI AlphaBlendBitmaps(const TPoint{ref},const CFbsBitmap{ptr},const CFbsBitmap{ptr},const TRect{ref},const TPoint{ref},const CFbsBitmap{ptr},const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 29/12/2008 -//! @SYMTestCaseDesc Negative case. Perform an alpha blending of the source bitmap with alpha point set to (10, -10). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and 3 CFbsBitmap objects. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load 3 bitmaps. -//! 6. Perform alpha blending. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Error code -6 is returned. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitmap fbsSrcBitmap1 - CREATE_OBJECT CFbsBitmap fbsSrcBitmap2 - CREATE_OBJECT CFbsBitmap alphaBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsSrcBitmap1 new - COMMAND fbsSrcBitmap2 new - COMMAND alphaBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-3014-NewL_command06 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-3014-Activate_command07 - COMMAND fbsSrcBitmap1 Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3014-Load_command08 - COMMAND fbsSrcBitmap2 Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3014-Load_command09 - COMMAND alphaBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3014-Load_command10 - COMMAND !Error=-6 fbsBitGc AlphaBlendBitmaps GRAPHICS-BITGDI-FbsBitGc-PublicApi-3014-AlphaBlendBitmaps_command11 - COMMAND fbsScrDev Update - COMMAND fbsSrcBitmap1 ~ - COMMAND fbsSrcBitmap2 ~ - COMMAND alphaBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3014 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3037 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-3037 -//! @SYMAPI AlphaBlendBitmaps(const TPoint{ref},const CFbsBitmap{ptr},const TRect{ref},const CFbsBitmap{ptr},const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 26/12/2008 -//! @SYMTestCaseDesc Perform an alpha blending of the source bitmap. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and 2 CFbsBitmap objects. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load 2 bitmaps. -//! 6. Perform alpha blending. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The action is performed successfully. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitmap fbsSrcBitmap1 - CREATE_OBJECT CFbsBitmap alphaBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsSrcBitmap1 new - COMMAND alphaBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-3037-NewL_command05 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-3037-Activate_command06 - COMMAND fbsSrcBitmap1 Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3037-Load_command07 - COMMAND alphaBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3037-Load_command08 - COMMAND fbsBitGc AlphaBlendBitmaps GRAPHICS-BITGDI-FbsBitGc-PublicApi-3037-AlphaBlendBitmaps_command09 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsSrcBitmap1 ~ - COMMAND alphaBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3037 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3038 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-3038 -//! @SYMAPI AlphaBlendBitmaps(const TPoint{ref},const CFbsBitmap{ptr},const TRect{ref}const CFbsBitmap{ptr},const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 26/12/2008 -//! @SYMTestCaseDesc Negative case. Perform an alpha blending of the source bitmap using a non-activated CFbsBitGc object. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create 2 CFbsBitmap objects. -//! 4. Load 2 bitmaps. -//! 5. Perform alpha blending. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get Panic code 1 and PanicString BITGDI. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitmap fbsSrcBitmap1 - CREATE_OBJECT CFbsBitmap alphaBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsSrcBitmap1 new - COMMAND alphaBitmap new - COMMAND fbsSrcBitmap1 Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3038-Load_command05 - COMMAND alphaBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3038-Load_command06 - COMMAND fbsBitGc AlphaBlendBitmaps GRAPHICS-BITGDI-FbsBitGc-PublicApi-3038-AlphaBlendBitmaps_command07 - END_TEST_BLOCK !PanicString=BITGDI !PanicCode=1 - RUN_TEST_STEP 100 T_GraphicsBitgdiApi utilityClearPanicDlg -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3038 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3039 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-3039 -//! @SYMAPI AlphaBlendBitmaps(const TPoint{ref},const CFbsBitmap{ptr},const TRect{ref},const CFbsBitmap{ptr},const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 26/12/2008 -//! @SYMTestCaseDesc Negative case. Perform an alpha blending of a null source bitmap. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and 2 CFbsBitmap objects. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load mask bitmap. -//! 6. Perform alpha blending. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Error -6 is returned. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitmap fbsSrcBitmap1 - CREATE_OBJECT CFbsBitmap alphaBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND alphaBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-3039-NewL_command04 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-3039-Activate_command05 - COMMAND alphaBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3039-Load_command06 - COMMAND !Error=-6 fbsBitGc AlphaBlendBitmaps GRAPHICS-BITGDI-FbsBitGc-PublicApi-3039-AlphaBlendBitmaps_command07 - COMMAND fbsScrDev Update - COMMAND alphaBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3039 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3040 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-3040 -//! @SYMAPI AlphaBlendBitmaps(const TPoint{ref},const CFbsBitmap{ptr},const TRect{ref},const CFbsBitmap{ptr},const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 26/12/2008 -//! @SYMTestCaseDesc Negative case. Perform an alpha blending of a not loaded source bitmap. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and 2 CFbsBitmap objects. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load mask bitmap. -//! 6. Perform alpha blending. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Error -6 is returned. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitmap fbsSrcBitmap1 - CREATE_OBJECT CFbsBitmap alphaBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsSrcBitmap1 new - COMMAND alphaBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-3040-NewL_command05 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-3040-Activate_command06 - COMMAND alphaBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3040-Load_command07 - COMMAND !Error=-6 fbsBitGc AlphaBlendBitmaps GRAPHICS-BITGDI-FbsBitGc-PublicApi-3040-AlphaBlendBitmaps_command08 - COMMAND fbsScrDev Update - COMMAND fbsSrcBitmap1 ~ - COMMAND alphaBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3040 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3041 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-3041 -//! @SYMAPI AlphaBlendBitmaps(const TPoint{ref},const CFbsBitmap{ptr},const TRect{ref},const CFbsBitmap{ptr},const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 26/12/2008 -//! @SYMTestCaseDesc Negative case. Perform an alpha blending of a null mask bitmap. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and 2 CFbsBitmap objects. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load src bitmap. -//! 6. Perform alpha blending. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Error -6 is returned. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitmap fbsSrcBitmap1 - CREATE_OBJECT CFbsBitmap alphaBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsSrcBitmap1 new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-3041-NewL_command04 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-3041-Activate_command05 - COMMAND fbsSrcBitmap1 Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3041-Load_command06 - COMMAND !Error=-6 fbsBitGc AlphaBlendBitmaps GRAPHICS-BITGDI-FbsBitGc-PublicApi-3041-AlphaBlendBitmaps_command07 - COMMAND fbsScrDev Update - COMMAND fbsSrcBitmap1 ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3041 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3042 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-3042 -//! @SYMAPI AlphaBlendBitmaps(const TPoint{ref},const CFbsBitmap{ptr},const TRect{ref},const CFbsBitmap{ptr},const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 26/12/2008 -//! @SYMTestCaseDesc Negative case. Perform an alpha blending of a not loaded mask bitmap. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and 2 CFbsBitmap objects. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load src bitmap. -//! 6. Perform alpha blending. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Error -6 is returned. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitmap fbsSrcBitmap1 - CREATE_OBJECT CFbsBitmap alphaBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsSrcBitmap1 new - COMMAND alphaBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-3042-NewL_command05 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-3042-Activate_command06 - COMMAND fbsSrcBitmap1 Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3042-Load_command07 - COMMAND !Error=-6 fbsBitGc AlphaBlendBitmaps GRAPHICS-BITGDI-FbsBitGc-PublicApi-3042-AlphaBlendBitmaps_command08 - COMMAND fbsScrDev Update - COMMAND fbsSrcBitmap1 ~ - COMMAND alphaBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3042 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3043 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-3043 -//! @SYMAPI AlphaBlendBitmaps(const TPoint{ref},const CFbsBitmap{ptr},const TRect{ref},const CFbsBitmap{ptr},const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 26/12/2008 -//! @SYMTestCaseDesc Negative case. Perform an alpha blending of an empty rectangle area of the source bitmap. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and 2 CFbsBitmap objects. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load 2 bitmaps. -//! 6. Perform alpha blending. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Error -6 is returned. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitmap fbsSrcBitmap1 - CREATE_OBJECT CFbsBitmap alphaBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsSrcBitmap1 new - COMMAND alphaBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-3043-NewL_command05 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-3043-Activate_command06 - COMMAND fbsSrcBitmap1 Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3043-Load_command07 - COMMAND alphaBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3043-Load_command08 - COMMAND !Error=-6 fbsBitGc AlphaBlendBitmaps GRAPHICS-BITGDI-FbsBitGc-PublicApi-3043-AlphaBlendBitmaps_command09 - COMMAND fbsScrDev Update - COMMAND fbsSrcBitmap1 ~ - COMMAND alphaBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3043 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3044 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-3044 -//! @SYMAPI AlphaBlendBitmaps(const TPoint{ref},const CFbsBitmap{ptr},const TRect{ref},const CFbsBitmap{ptr},const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 26/12/2008 -//! @SYMTestCaseDesc Negative case. Perform an alpha blending of an out of bound rectangle area of the source bitmap. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and 2 CFbsBitmap objects. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load 2 bitmaps. -//! 6. Perform alpha blending. -//! 7. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Error -6 is returned. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitmap fbsSrcBitmap1 - CREATE_OBJECT CFbsBitmap alphaBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsSrcBitmap1 new - COMMAND alphaBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-3044-NewL_command05 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-3044-Activate_command06 - COMMAND fbsSrcBitmap1 Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3044-Load_command07 - COMMAND alphaBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3044-Load_command08 - COMMAND fbsBitGc AlphaBlendBitmaps GRAPHICS-BITGDI-FbsBitGc-PublicApi-3044-AlphaBlendBitmaps_command09 - COMMAND fbsScrDev Update - COMMAND fbsSrcBitmap1 ~ - COMMAND alphaBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3044 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3045 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-3045 -//! @SYMAPI AlphaBlendBitmaps(const TPoint{ref},const CFbsBitmap{ptr},const TRect{ref},const CFbsBitmap{ptr},const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 26/12/2008 -//! @SYMTestCaseDesc Negative case. Perform an alpha blending of a source bitmap with clipping rectangle set to (-100, -100, -90, -90). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and 2 CFbsBitmap objects. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load 2 bitmaps. -//! 6. Load 2 bitmaps. -//! 7. Perform alpha blending. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Error -6 is returned. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitmap fbsSrcBitmap1 - CREATE_OBJECT CFbsBitmap alphaBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsSrcBitmap1 new - COMMAND alphaBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-3045-NewL_command05 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-3045-Activate_command06 - COMMAND fbsSrcBitmap1 Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3045-Load_command07 - COMMAND alphaBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3045-Load_command08 - COMMAND fbsBitGc SetClippingRect GRAPHICS-BITGDI-FbsBitGc-PublicApi-3045-SetClippingRect_command09 - COMMAND !Error=-6 fbsBitGc AlphaBlendBitmaps GRAPHICS-BITGDI-FbsBitGc-PublicApi-3045-AlphaBlendBitmaps_command10 - COMMAND fbsScrDev Update - COMMAND fbsSrcBitmap1 ~ - COMMAND alphaBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3045 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3046 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-3046 -//! @SYMAPI AlphaBlendBitmaps(const TPoint{ref},const CFbsBitmap{ptr},const TRect{ref},const CFbsBitmap{ptr},const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 26/12/2008 -//! @SYMTestCaseDesc Perform an alpha blending of a source bitmap with alpha point (-10, 10). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and 2 CFbsBitmap objects. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load 2 bitmaps. -//! 6. Load 2 bitmaps. -//! 7. Perform alpha blending. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitmap fbsSrcBitmap1 - CREATE_OBJECT CFbsBitmap alphaBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsSrcBitmap1 new - COMMAND alphaBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-3046-NewL_command05 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-3046-Activate_command06 - COMMAND fbsSrcBitmap1 Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3046-Load_command07 - COMMAND alphaBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3046-Load_command08 - COMMAND fbsBitGc AlphaBlendBitmaps GRAPHICS-BITGDI-FbsBitGc-PublicApi-3046-AlphaBlendBitmaps_command09 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsSrcBitmap1 ~ - COMMAND alphaBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3046 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3047 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-3047 -//! @SYMAPI AlphaBlendBitmaps(const TPoint{ref},const CFbsBitmap{ptr},const TRect{ref},const CFbsBitmap{ptr},const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 26/12/2008 -//! @SYMTestCaseDesc Perform an alpha blending of a source bitmap with alpha point (10, -10). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and 2 CFbsBitmap objects. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load 2 bitmaps. -//! 6. Load 2 bitmaps. -//! 7. Perform alpha blending. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitmap fbsSrcBitmap1 - CREATE_OBJECT CFbsBitmap alphaBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsSrcBitmap1 new - COMMAND alphaBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-3047-NewL_command05 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-3047-Activate_command06 - COMMAND fbsSrcBitmap1 Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3047-Load_command07 - COMMAND alphaBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3047-Load_command08 - COMMAND fbsBitGc AlphaBlendBitmaps GRAPHICS-BITGDI-FbsBitGc-PublicApi-3047-AlphaBlendBitmaps_command09 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsSrcBitmap1 ~ - COMMAND alphaBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3047 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3048 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-3048 -//! @SYMAPI AlphaBlendBitmaps(const TPoint{ref},const CFbsBitmap{ptr},const TRect{ref},const CFbsBitmap{ptr},const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 26/12/2008 -//! @SYMTestCaseDesc Perform an alpha blending of a source bitmap with alpha point (0, 10). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and 2 CFbsBitmap objects. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load 2 bitmaps. -//! 6. Load 2 bitmaps. -//! 7. Perform alpha blending. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitmap fbsSrcBitmap1 - CREATE_OBJECT CFbsBitmap alphaBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsSrcBitmap1 new - COMMAND alphaBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-3048-NewL_command05 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-3048-Activate_command06 - COMMAND fbsSrcBitmap1 Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3048-Load_command07 - COMMAND alphaBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3048-Load_command08 - COMMAND fbsBitGc AlphaBlendBitmaps GRAPHICS-BITGDI-FbsBitGc-PublicApi-3048-AlphaBlendBitmaps_command09 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsSrcBitmap1 ~ - COMMAND alphaBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3048 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3049 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-3049 -//! @SYMAPI AlphaBlendBitmaps(const TPoint{ref},const CFbsBitmap{ptr},const TRect{ref},const CFbsBitmap{ptr},const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 26/12/2008 -//! @SYMTestCaseDesc Perform an alpha blending of a source bitmap with alpha point (0, 10). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and 2 CFbsBitmap objects. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load 2 bitmaps. -//! 6. Load 2 bitmaps. -//! 7. Perform alpha blending. -//! 8. Disconnect RFbsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CFbsBitmap objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap will be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitmap fbsSrcBitmap1 - CREATE_OBJECT CFbsBitmap alphaBitmap - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND fbsSrcBitmap1 new - COMMAND alphaBitmap new - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-3049-NewL_command05 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-3049-Activate_command06 - COMMAND fbsSrcBitmap1 Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3049-Load_command07 - COMMAND alphaBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3049-Load_command08 - COMMAND fbsBitGc AlphaBlendBitmaps GRAPHICS-BITGDI-FbsBitGc-PublicApi-3049-AlphaBlendBitmaps_command09 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsSrcBitmap1 ~ - COMMAND alphaBitmap ~ - COMMAND fbsSession Disconnect - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3049 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3071 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-3071 -//! @SYMAPI AlphaBlendBitmaps(const TPoint{ref},const CWsBitmap{ptr},const TRect{ref},const CWsBitmap{ptr},const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 26/12/2008 -//! @SYMTestCaseDesc Perform an alpha blending of the source bitmap. -//! @SYMTestActions 1. Create and connect a RFbsSession object and a RWsSession. -//! 2. Create a CFbsBitGc object. -//! 3. Create a CFbsScreenDevice object and 2 CWsBitmap objects. -//! 4. Activate the CFbsBitGc object to draw to the CFbsScreenDevice object. -//! 5. Load 2 bitmaps. -//! 6. Perform alpha blending. -//! 7. Disconnect RFbsSession, RWsSession and destruct CFbsBitGc object and CFbsScreenDevice object, CWsBitmap objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The action is performed successfully. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT RWsSession wsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CWsBitmap wsBitmap - CREATE_OBJECT CWsBitmap alphaBitmap - COMMAND wsSession new - COMMAND wsSession Connect - COMMAND fbsSession Connect - COMMAND fbsBitGc NewL - COMMAND wsBitmap new GRAPHICS-BITGDI-FbsBitGc-PublicApi-3071-new_command05 - COMMAND alphaBitmap new GRAPHICS-BITGDI-FbsBitGc-PublicApi-3071-new_command06 - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitGc-PublicApi-3071-NewL_command07 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitGc-PublicApi-3071-Activate_command08 - COMMAND wsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3071-Load_command09 - COMMAND alphaBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3071-Load_command10 - COMMAND fbsBitGc AlphaBlendBitmaps GRAPHICS-BITGDI-FbsBitGc-PublicApi-3071-AlphaBlendBitmaps_command11 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND wsBitmap ~ - COMMAND alphaBitmap ~ - COMMAND fbsSession Disconnect - COMMAND wsSession Close - COMMAND fbsBitGc ~ - COMMAND fbsScrDev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3071 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3072 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGc-PublicApi-3072 -//! @SYMAPI AlphaBlendBitmaps(const TPoint{ref},const CWsBitmap{ptr},const TRect{ref},const CWsBitmap{ptr},const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 26/12/2008 -//! @SYMTestCaseDesc Negative case. Perform an alpha blending of the source bitmap using a non-activated CFbsBitGc object. -//! @SYMTestActions 1. Create a RWsSession object. -//! 2. Create a CFbsBitGc object. -//! 3. Create 2 CWsBitmap objects. -//! 4. Load 2 bitmaps. -//! 5. Perform alpha blending. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get Panic code 1 and PanicString BITGDI. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - CREATE_OBJECT RWsSession wsSession - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CWsBitmap wsBitmap - CREATE_OBJECT CWsBitmap alphaBitmap - COMMAND wsSession new - COMMAND wsSession Connect - COMMAND fbsBitGc NewL - COMMAND wsBitmap new GRAPHICS-BITGDI-FbsBitGc-PublicApi-3072-new_command04 - COMMAND alphaBitmap new GRAPHICS-BITGDI-FbsBitGc-PublicApi-3072-new_command05 - COMMAND wsBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3072-Load_command06 - COMMAND alphaBitmap Load GRAPHICS-BITGDI-FbsBitGc-PublicApi-3072-Load_command07 - COMMAND fbsBitGc AlphaBlendBitmaps GRAPHICS-BITGDI-FbsBitGc-PublicApi-3072-AlphaBlendBitmaps_command08 - END_TEST_BLOCK !PanicString=BITGDI !PanicCode=1 - RUN_TEST_STEP 100 T_GraphicsBitgdiApi utilityClearPanicDlg -END_TESTCASE GRAPHICS-BITGDI-FbsBitGc-PublicApi-3072 - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/bitgdi/scripts/GRAPHICS-BITGDI-FbsBitGcBitmap-PublicApi.script --- a/graphicsapitest/graphicssvs/bitgdi/scripts/GRAPHICS-BITGDI-FbsBitGcBitmap-PublicApi.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,172 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// -//! @file -//! @SYMTestSuiteName GRAPHICS-BITGDI-FbsBitGcBitmap-PublicApi -//! @SYMScriptTestEnvironment - -///////////////////////////////////////////////////////////////////// -// GRAPHICS-BITGDI-FbsBitGcBitmap-PublicApi.script -// -// Tests all public elements of the CFbsBitGcBitmap -// classes as a means of confidence that the APIs work as expected. -// -// The purpose is to provide a regression test suite of PublishedAll APIs for CFbsBitGcBitmap -// The tests are fully automated. -///////////////////////////////////////////////////////////////////// - -LOAD_SUITE T_GraphicsBitgdiApi -DELAY 1000 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGcBitmap-PublicAPI-0001 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGcBitmap-PublicAPI-0001 -//! @SYMAPI CFbsBitGcBitmap::Address() -//! @SYMAuthor Dorothy Zhang -//! @SYMCreationDate 09/01/2009 -//! @SYMTestCaseDesc Get the bitmap address without bitmap created -//! @SYMTestActions 1. Create a CFbsBitGcBitmap object -//! 2. Create a RFbsSession with font and bitmap server -//! 3. Call Address to get the bitmap address -//! 4. Destroy the object anc close the session -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The CFbsBitGcBitmap::Address() call returns NULL as expected and should not cause any panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitgdiApi c:\graphics\GRAPHICS-BITGDI-FbsBitGcBitmap-PublicAPI.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitGcBitmap CFbsBitGcBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitGcBitmap1 new - COMMAND CFbsBitGcBitmap1 Address - COMMAND CFbsBitGcBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGcBitmap-PublicAPI-0001 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGcBitmap-PublicAPI-0002 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGcBitmap-PublicAPI-0002 -//! @SYMAPI CFbsBitGcBitmap::Address() -//! @SYMAuthor Dorothy Zhang -//! @SYMCreationDate 09/01/2009 -//! @SYMTestCaseDesc Get a new created bitmap address -//! @SYMTestActions 1. Create a CFbsBitGcBitmap object -//! 2. Create a RFbsSession with font and bitmap server -//! 3. Create a 100x200 bitmap -//! 4. Call Address to get the bitmap address -//! 5. Destroy the object and close the session -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The CFbsBitGcBitmap::Address() call returns are expected and should not cause any panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitgdiApi c:\graphics\GRAPHICS-BITGDI-FbsBitGcBitmap-PublicAPI.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitGcBitmap CFbsBitGcBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitGcBitmap1 new - COMMAND CFbsBitGcBitmap1 Create GRAPHICS-BITGDI-FbsBitGcBitmap-PublicAPI-0002-0001-Create_Command03 - COMMAND CFbsBitGcBitmap1 Address GRAPHICS-BITGDI-FbsBitGcBitmap-PublicAPI-0002-0001-Address_Command04 - COMMAND CFbsBitGcBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGcBitmap-PublicAPI-0002 - - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGcBitmap-PublicAPI-0003 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGcBitmap-PublicAPI-0003 -//! @SYMAPI CFbsBitGcBitmap::LockHeap() -//! @SYMAuthor Dorothy Zhang -//! @SYMCreationDate 09/01/2009 -//! @SYMTestCaseDesc Lock the global bitmap heap -//! @SYMTestActions 1. Create a CFbsBitGcBitmap object -//! 2. Create a RFbsSession with font and bitmap server -//! 3. Call LockHeap to lock the global bitmap heap -//! 4. Call UnlockHeap to unlock the global bitmap heap -//! 5. Destroy the object and disconnect the session -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The CFbsBitGcBitmap::LockHeap() call should not cause any panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitgdiApi c:\graphics\GRAPHICS-BITGDI-FbsBitGcBitmap-PublicAPI.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitGcBitmap CFbsBitGcBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitGcBitmap1 new - COMMAND CFbsBitGcBitmap1 LockHeap - COMMAND CFbsBitGcBitmap1 UnlockHeap - COMMAND CFbsBitGcBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGcBitmap-PublicAPI-0003 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGcBitmap-PublicAPI-0004 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGcBitmap-PublicAPI-0004 -//! @SYMAPI CFbsBitGcBitmap::LockHeap() -//! @SYMAuthor Dorothy Zhang -//! @SYMCreationDate 09/01/2009 -//! @SYMTestCaseDesc Lock the global bitmap heap with a new bitmap created -//! @SYMTestActions 1. Create a CFbsBitGcBitmap object -//! 2. Create a RFbsSession with font and bitmap server -//! 3. Create a 100x200 bitmap -//! 4. Call LockHeap to lock the global bitmap heap -//! 5. Call UnlockHeap to unlock the global bitmap heap -//! 6. Destroy the object and disconnect the session -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The CFbsBitGcBitmap::LockHeap() call should not cause any panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitgdiApi c:\graphics\GRAPHICS-BITGDI-FbsBitGcBitmap-PublicAPI.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitGcBitmap CFbsBitGcBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitGcBitmap1 new - COMMAND CFbsBitGcBitmap1 Create GRAPHICS-BITGDI-FbsBitGcBitmap-PublicAPI-0004-0001-Create_Command03 - COMMAND CFbsBitGcBitmap1 LockHeap - COMMAND CFbsBitGcBitmap1 UnlockHeap - COMMAND CFbsBitGcBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGcBitmap-PublicAPI-0004 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGcBitmap-PublicAPI-0005 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGcBitmap-PublicAPI-0005 -//! @SYMAPI CFbsBitGcBitmap::LockHeap() -//! @SYMAuthor Dorothy Zhang -//! @SYMCreationDate 09/01/2009 -//! @SYMTestCaseDesc Get the address of the first pixel in the bitmap with LockHeap and UnlockHeap call in pairs -//! @SYMTestActions 1. Create a CFbsBitGcBitmap object -//! 2. Create a RFbsSession with font and bitmap server -//! 3. Create a 100x200 bitmap -//! 4. Call LockHeap to lock the global bitmap heap -//! 5. Call DataAddress to get the address of the first pixel in the bitmap -//! 6. Call UnlockHeap to unlock the global bitmap heap -//! 7. Destroy the object and disconnect the session. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The CFbsBitGcBitmap::UnlockHeap() call should not cause any panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitgdiApi c:\graphics\GRAPHICS-BITGDI-FbsBitGcBitmap-PublicAPI.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitGcBitmap CFbsBitGcBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitGcBitmap1 new - COMMAND CFbsBitGcBitmap1 Create GRAPHICS-BITGDI-FbsBitGcBitmap-PublicAPI-0005-0001-Create_Command03 - COMMAND CFbsBitGcBitmap1 LockHeap - COMMAND CFbsBitGcBitmap1 DataAddress - COMMAND CFbsBitGcBitmap1 UnlockHeap - COMMAND CFbsBitGcBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGcBitmap-PublicAPI-0005 - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/bitgdi/scripts/GRAPHICS-BITGDI-FbsBitGcFont-PublicApi.script --- a/graphicsapitest/graphicssvs/bitgdi/scripts/GRAPHICS-BITGDI-FbsBitGcFont-PublicApi.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,202 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// -//! @file -//! @SYMTestSuiteName GRAPHICS-BITGDI-FbsBitGcFont-PublicApi -//! @SYMScriptTestEnvironment - -///////////////////////////////////////////////////////////////////// -// GRAPHICS-BITGDI-FbsBitGcFont-PublicApi.script -// -// Tests all public elements of the CFbsBitGcFont -// classes as a means of confidence that the APIs work as expected. -// -// The purpose is to provide a regression test suite of PublishedAll APIs for CFbsBitGcFont -// The tests are fully automated. -///////////////////////////////////////////////////////////////////// - -// **************************************************************************** -// Class Name CFbsBitGcFont -// **************************************************************************** - -LOAD_SUITE T_GraphicsBitgdiApi -DELAY 1000 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGcFont-PublicApi-0001 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGcFont-PublicApi-0001 -//! @SYMAPI CFbsBitGcFont::CFbsBitGcFont() -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 20/01/2009 -//! @SYMTestCaseDesc Create the CFbsBitGcFont Object by CFbsBitGcFont() function. -//! @SYMTestActions 1. Create a RFbsSession object and connect it. -//! 2. Create a CFbsBitGcFont object by default constructor. -//! 3. Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CFbsBitGcFont Object is created by default construction function without any error. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGcFont-PublicApi.ini - CREATE_OBJECT RFbsSession FbsSession - CREATE_OBJECT CFbsBitGcFont FbsBitGcFont - COMMAND FbsSession Connect - COMMAND FbsBitGcFont NewL - COMMAND FbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGcFont-PublicApi-0001 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGcFont-PublicApi-0002 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGcFont-PublicApi-0002 -//! @SYMAPI CFbsBitGcFont::~CFbsBitGcFont() -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 20/01/2009 -//! @SYMTestCaseDesc Delete the CFbsBitGcFont Object by default distructor function. -//! @SYMTestActions 1. Create a RFbsSession object and connect it. -//! 2. Create a CFbsBitGcFont object by default construction. -//! 3. Delete a CFbsBitGcFont object by default distruction. -//! 4. Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CFbsBitGcFont Object is deleted by default distruction function without any error. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGcFont-PublicApi.ini - CREATE_OBJECT RFbsSession FbsSession - CREATE_OBJECT CFbsBitGcFont FbsBitGcFont - COMMAND FbsSession Connect - COMMAND FbsBitGcFont NewL - COMMAND FbsBitGcFont ~ - COMMAND FbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGcFont-PublicApi-0002 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGcFont-PublicApi-0003 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGcFont-PublicApi-0003 -//! @SYMAPI CFbsBitGcFont::Address() const -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 20/01/2009 -//! @SYMTestCaseDesc Get the Address pointer from the CFbsBitGcFont::Address() function. -//! @SYMTestActions 1. Create a RFbsSession object and connect it. -//! 2. Create CFbsTypefaceStore. -//! 3. Get the FbsBitGcFont Object from CFbsTypefaceStore object. -//! 4. Get the Address pointer from Address(). -//! 5. Delete all the objects. -//! 6. Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The address pointer is received without any error. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGcFont-PublicApi.ini - CREATE_OBJECT RFbsSession FbsSession - CREATE_OBJECT CFbsBitGcFont FbsBitGcFont - CREATE_OBJECT CFbsTypefaceStore FbsTypefaceStore - COMMAND FbsSession Connect - COMMAND FbsTypefaceStore NewL - COMMAND FbsTypefaceStore GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGcFont-PublicApi-0003-GetNearestFontToDesignHeightInPixels_command03 - COMMAND FbsBitGcFont Address - COMMAND FbsTypefaceStore ~ - COMMAND FbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGcFont-PublicApi-0003 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGcFont-PublicApi-0004 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGcFont-PublicApi-0004 -//! @SYMAPI CFbsBitGcFont::Duplicate(TInt) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 20/01/2009 -//! @SYMTestCaseDesc Duplicates a font by CFbsBitGcFont::Duplicate(TInt) function. -//! @SYMTestActions 1. Create a RFbsSession object and connect it. -//! 2. Create 2 FbsBitGcFont Objects. -//! 3. Create CFbsTypefaceStore. -//! 4. Get the FbsBitGcFont Object from CFbsTypefaceStore object. -//! 5. Get the FbsBitGcFont2 Object from CFbsTypefaceStore object. -//! 6. Duplicate the font in the FbsBitGcFont Object. -//! 7. Delete all the objects. -//! 8. Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Duplicate function is called without any error. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGcFont-PublicApi.ini - CREATE_OBJECT RFbsSession FbsSession - CREATE_OBJECT CFbsBitGcFont FbsBitGcFont - CREATE_OBJECT CFbsBitGcFont FbsBitGcFont2 - CREATE_OBJECT CFbsTypefaceStore FbsTypefaceStore - COMMAND FbsSession Connect - COMMAND FbsTypefaceStore NewL - COMMAND FbsTypefaceStore GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGcFont-PublicApi-0004-GetNearestFontToDesignHeightInPixels_command03 - COMMAND FbsTypefaceStore GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGcFont-PublicApi-0004-GetNearestFontToDesignHeightInPixels_command04 - COMMAND FbsBitGcFont Duplicate GRAPHICS-BITGDI-FbsBitGcFont-PublicApi-0004-Duplicate_command05 - COMMAND FbsTypefaceStore ~ - COMMAND FbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGcFont-PublicApi-0004 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGcFont-PublicApi-0005 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGcFont-PublicApi-0005 -//! @SYMAPI CFbsBitGcFont::Duplicate(TInt) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 20/01/2009 -//! @SYMTestCaseDesc Negative case, Duplicates a font by using bad handle. -//! @SYMTestActions 1. Create a RFbsSession object and connect it. -//! 2. Create a FbsBitGcFont Objects. -//! 3. Create CFbsTypefaceStore. -//! 4. Get the FbsBitGcFont Object from CFbsTypefaceStore object. -//! 5. Duplicate the font using a bad handle. -//! 7. Delete all the objects. -//! 8. Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults KErrUnknown error will occur. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGcFont-PublicApi.ini - CREATE_OBJECT RFbsSession FbsSession - CREATE_OBJECT CFbsBitGcFont FbsBitGcFont - CREATE_OBJECT CFbsTypefaceStore FbsTypefaceStore - COMMAND FbsSession Connect - COMMAND FbsTypefaceStore NewL - COMMAND FbsTypefaceStore GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGcFont-PublicApi-0005-GetNearestFontToDesignHeightInPixels_command03 - COMMAND !Error=-19 FbsBitGcFont Duplicate GRAPHICS-BITGDI-FbsBitGcFont-PublicApi-0005-Duplicate_command04 - COMMAND FbsTypefaceStore ~ - COMMAND FbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGcFont-PublicApi-0005 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitGcFont-PublicApi-0006 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitGcFont-PublicApi-0006 -//! @SYMAPI CFbsBitGcFont::Reset() const -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 20/01/2009 -//! @SYMTestCaseDesc Resets to its default settings. -//! @SYMTestActions 1. Create a RFbsSession object and connect it. -//! 2. Create CFbsTypefaceStore. -//! 3. Get the FbsBitGcFont Object from CFbsTypefaceStore object. -//! 4. Reset the FbsBitGcFont Object. -//! 5. Delete all the objects. -//! 6. Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The Reset function is called without any error. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsBitGcFont-PublicApi.ini - CREATE_OBJECT RFbsSession FbsSession - CREATE_OBJECT CFbsBitGcFont FbsBitGcFont - CREATE_OBJECT CFbsTypefaceStore FbsTypefaceStore - COMMAND FbsSession Connect - COMMAND FbsTypefaceStore NewL - COMMAND FbsTypefaceStore GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsBitGcFont-PublicApi-0006-GetNearestFontToDesignHeightInPixels_command03 - COMMAND FbsBitGcFont Reset - COMMAND FbsTypefaceStore ~ - COMMAND FbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitGcFont-PublicApi-0006 diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/bitgdi/scripts/GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.script --- a/graphicsapitest/graphicssvs/bitgdi/scripts/GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1445 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// -//! @file -//! @SYMTestSuiteName GRAPHICS-BitGDI-CFbsBitmapDevice-PublicApi -//! @SYMScriptTestEnvironment This test script requires a basic ROM. - -/////////////////////////////////////////////////////////////////////////////// -// GRAPHICS-BitGDI-CFbsBitmapDevice-PublicApi.script -// -// Tests all public elements of the CFbsBitmapDevice class -// as a means of confidence that the API works as expected. -// -// The purpose is to provide a regression test suite of PublishedAll APIs for -// CFbsBitmapDevice related classes. -// Negative testing is performed to confirm that correct errors are returned -// when incorrect parameters are given. -// -// The tests are fully automated. -/////////////////////////////////////////////////////////////////////////////// - - -LOAD_SUITE T_GraphicsBitGDIAPI -DELAY 1000 - -// **************************************************************************** -// Class Name CFbsBitmapDevice -// **************************************************************************** - -START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0001 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0001 -//! @SYMAPI CFbsBitmapDevice::NewL(CFbsBitmap{ptr}) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 05/01/2009 -//! @SYMTestCaseDesc Create CFbsBitmapDevice object by using NewL(CFbsBitmap{ptr}) and destroy it. -//! @SYMTestActions 1.Create RFbsSession Object and connect it. -//! 2.Create CFbsBitmap Object and load bitmap. -//! 3.Create CFbsBitmapDevice Object and distroy it. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CFbsBitmapDevice was created without any error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini - CREATE_OBJECT CFbsBitmapDevice fbsbitdev - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND rfbssession Connect - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0001-Load_command03 - COMMAND fbsBitmap SetSizeInTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0001-SetSizeInTwips_command04 - COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0001-NewL_command05 - COMMAND fbsbitdev ~ - COMMAND fbsBitmap ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0001 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0002 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0002 -//! @SYMAPI CFbsBitmapDevice::NewL(CFbsBitmap{ptr}) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 05/01/2009 -//! @SYMTestCaseDesc Negative case, Create CFbsBitmapDevice object with NULL CFbsBitmap* param. -//! @SYMTestActions 1.Create RFbsSession Object and connect it. -//! 2.Create CFbsBitmapDevice Object with Null CFbsBitmap param. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults BITGDI panic will occur as expected. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini - CREATE_OBJECT CFbsBitmapDevice fbsbitdev - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND rfbssession Connect - COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0002-NewL_command02 - END_TEST_BLOCK !PanicString=BITGDI !PanicCode=13 - RUN_TEST_STEP 100 T_GraphicsBitGDIAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0002 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0003 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0003 -//! @SYMAPI CFbsBitmapDevice::NewL(CFbsBitmap{ptr}) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 05/01/2009 -//! @SYMTestCaseDesc Negative case, Create CFbsBitmapDevice object by using bad CFbsBitmap object and destroy it. -//! @SYMTestActions 1.Create RFbsSession Object and connect it. -//! 2.Create CFbsBitmap Object. -//! 3.Create CFbsBitmapDevice Object and distroy it. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults KErrArgument error occurs. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini - CREATE_OBJECT CFbsBitmapDevice fbsbitdev - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND rfbssession Connect - COMMAND fbsBitmap new - COMMAND !Error=-6 fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0003-NewL_command03 - COMMAND fbsbitdev ~ - COMMAND fbsBitmap ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0003 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0004 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0004 -//! @SYMAPI CFbsBitmapDevice::NewL(CFbsBitmap{ptr}) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 05/01/2009 -//! @SYMTestCaseDesc Negative case, create CFbsBitmapDevice object using ROM bitmap. -//! @SYMTestActions 1.Create RFbsSession Object and connect it. -//! 2.Create CFbsBitmap Object and load a ROM bitmap. -//! 3.Create CFbsBitmapDevice Object and distroy it. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults KErrAccessDenied error was received. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini - CREATE_OBJECT CFbsBitmapDevice fbsbitdev - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND rfbssession Connect - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0004-Load_command03 - COMMAND fbsBitmap SetSizeInTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0004-SetSizeInTwips_command04 - COMMAND !Error=-21 fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0004-NewL_command05 - COMMAND fbsbitdev ~ - COMMAND fbsBitmap ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0004 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0005 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0005 -//! @SYMAPI CFbsBitmapDevice::NewL(CFbsBitmap{ptr}, const TDesC{ref}) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 05/01/2009 -//! @SYMTestCaseDesc Create CFbsBitmapDevice object by using NewL(CFbsBitmap{ptr}, const TDesC{ref}) and destroy it. -//! @SYMTestActions 1.Create RFbsSession Object and connect it. -//! 2.Create CFbsBitmap Object and load bitmap. -//! 3.Create CFbsBitmapDevice Object and distroy it. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CFbsBitmapDevice was created without any error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini - CREATE_OBJECT CFbsBitmapDevice fbsbitdev - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND rfbssession Connect - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0005-Load_command03 - COMMAND fbsBitmap SetSizeInTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0005-SetSizeInTwips_command04 - COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0005-NewL_command05 - COMMAND fbsbitdev ~ - COMMAND fbsBitmap ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0005 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0006 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0006 -//! @SYMAPI CFbsBitmapDevice::NewL(CFbsBitmap{ptr}, const TDesC{ref}) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 05/01/2009 -//! @SYMTestCaseDesc Negative case, Create CFbsBitmapDevice object by using bad CFbsBitmap object and destroy it. -//! @SYMTestActions 1.Create RFbsSession Object and connect it. -//! 2.Create CFbsBitmap Object. -//! 3.Create CFbsBitmapDevice Object and distroy it. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults KErrArgument error occurs. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini - CREATE_OBJECT CFbsBitmapDevice fbsbitdev - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND rfbssession Connect - COMMAND fbsBitmap new - COMMAND !Error=-6 fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0006-NewL_command03 - COMMAND fbsbitdev ~ - COMMAND fbsBitmap ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0006 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0007 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0007 -//! @SYMAPI CFbsBitmapDevice::NewL(CFbsBitmap{ptr}, const TDesC{ref}) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 05/01/2009 -//! @SYMTestCaseDesc Negative case, Create CFbsBitmapDevice object with NULL CFbsBitmap* param. -//! @SYMTestActions 1.Create RFbsSession Object and connect it. -//! 2.Create CFbsBitmapDevice Object with Null CFbsBitmap param. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults BITGDI panic will occur as expected. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini - CREATE_OBJECT CFbsBitmapDevice fbsbitdev - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND rfbssession Connect - COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0007-NewL_command02 - END_TEST_BLOCK !PanicString=BITGDI !PanicCode=13 - RUN_TEST_STEP 100 T_GraphicsBitGDIAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0007 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0008 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0008 -//! @SYMAPI CFbsBitmapDevice::NewL(CFbsBitmap{ptr}, const TDesC{ref}) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 05/01/2009 -//! @SYMTestCaseDesc Negative case, create CFbsBitmapDevice object using ROM bitmap. -//! @SYMTestActions 1.Create RFbsSession Object and connect it. -//! 2.Create CFbsBitmap Object and load a ROM bitmap. -//! 3.Create CFbsBitmapDevice Object and distroy it. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults KErrAccessDenied error was received. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini - CREATE_OBJECT CFbsBitmapDevice fbsbitdev - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND rfbssession Connect - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0008-Load_command03 - COMMAND fbsBitmap SetSizeInTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0008-SetSizeInTwips_command04 - COMMAND !Error=-21 fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0008-NewL_command05 - COMMAND fbsbitdev ~ - COMMAND fbsBitmap ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0008 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0009 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0009 -//! @SYMAPI CFbsBitmapDevice::~CFbsBitmapDevice() -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 05/01/2009 -//! @SYMTestCaseDesc Create CFbsBitmapDevice object by using NewL(CFbsBitmap{ptr}) and destroy it. -//! @SYMTestActions 1.Create RFbsSession Object and connect it. -//! 2.Create CFbsBitmap Object and load bitmap. -//! 3.Create CFbsBitmapDevice Object and distroy it. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CFbsBitmapDevice was deleted without any error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini - CREATE_OBJECT CFbsBitmapDevice fbsbitdev - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND rfbssession Connect - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0009-Load_command03 - COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0009-NewL_command04 - COMMAND fbsbitdev ~ - COMMAND fbsBitmap ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0009 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0010 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0010 -//! @SYMAPI CFbsBitmapDevice::DrawingBegin(TBool) and CFbsBitmapDevice::DrawingEnd(TBool) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 05/01/2009 -//! @SYMTestCaseDesc Create CFbsBitmapDevice object and drawing it. -//! @SYMTestActions 1.Create RFbsSession Object and connect it. -//! 2.Create CFbsBitmap Object and load bitmap. -//! 3.Create CFbsBitmapDevice Object. -//! 4.Create CFbsBitGc Object and related to CFbsBitmapDevice Object. -//! 5.Call DrawingBegin to begin a draw. -//! 6.Draw a line on the bitmap. -//! 7.Call DrawingEnd to end a draw. -//! 8.Destroy all the objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults DrawingBegin and DrawingEnd are called without any error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini - CREATE_OBJECT CFbsBitmapDevice fbsbitdev - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsBitmap fbsBitmap - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND rfbssession Connect - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0010-Load_command03 - COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0010-NewL_command04 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0010-Activate_command05 - COMMAND fbsbitdev DrawingBegin GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0010-DrawingBegin_command06 - COMMAND fbsBitGc DrawLine GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0010-DrawLine_command07 - COMMAND fbsbitdev DrawingEnd GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0010-DrawingEnd_command08 - COMMAND fbsbitdev ~ - COMMAND fbsBitmap ~ - COMMAND fbsBitGc ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0010 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0011 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0011 -//! @SYMAPI CFbsBitmapDevice::DrawingBegin(TBool) and CFbsBitmapDevice::DrawingEnd(TBool) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 05/01/2009 -//! @SYMTestCaseDesc Negative case, Drawing a line on the bitmap without calling DrawingBegin first. -//! @SYMTestActions 1.Create RFbsSession Object and connect it. -//! 2.Create CFbsBitmap Object and load bitmap. -//! 3.Create CFbsBitmapDevice Object. -//! 4.Create CFbsBitGc Object and related to CFbsBitmapDevice Object. -//! 5.Draw a line on the bitmap. -//! 6.Destroy all the objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults DrawingEnd are called without any error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini - CREATE_OBJECT CFbsBitmapDevice fbsbitdev - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsBitmap fbsBitmap - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND rfbssession Connect - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0011-Load_command03 - COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0011-NewL_command04 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0011-Activate_command05 - COMMAND fbsBitGc DrawLine GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0011-DrawLine_command06 - COMMAND fbsbitdev DrawingEnd - COMMAND fbsbitdev ~ - COMMAND fbsBitmap ~ - COMMAND fbsBitGc ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0011 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0012 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0012 -//! @SYMAPI CFbsBitmapDevice::DrawingBegin(TBool) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 05/01/2009 -//! @SYMTestCaseDesc Negative case, call DrawingBegin without DrawingEnd. -//! @SYMTestActions 1.Create RFbsSession Object and connect it. -//! 2.Create CFbsBitmap Object and load bitmap. -//! 3.Create CFbsBitmapDevice Object. -//! 4.Call DrawingBegin to begin a draw. -//! 5.Destroy all the objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults DrawingBegin is called without any error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini - CREATE_OBJECT CFbsBitmapDevice fbsbitdev - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND rfbssession Connect - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0012-Load_command03 - COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0012-NewL_command04 - COMMAND fbsbitdev DrawingBegin GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0012-DrawingBegin_command05 - COMMAND fbsbitdev ~ - COMMAND fbsBitmap ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0012 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0013 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0013 -//! @SYMAPI CFbsBitmapDevice::DrawingEnd(TBool) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 05/01/2009 -//! @SYMTestCaseDesc Negative case, call DrawingEnd without call DrawingBegin before. -//! @SYMTestActions 1.Create RFbsSession Object and connect it. -//! 2.Create CFbsBitmap Object and load bitmap. -//! 3.Create CFbsBitmapDevice Object. -//! 4.Call DrawingEnd to begin a draw. -//! 5.Destroy all the objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults DrawingBegin is called without any error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini - CREATE_OBJECT CFbsBitmapDevice fbsbitdev - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND rfbssession Connect - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0013-Load_command03 - COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0013-NewL_command04 - COMMAND fbsbitdev DrawingEnd GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0013-DrawingEnd_command05 - COMMAND fbsbitdev ~ - COMMAND fbsBitmap ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0013 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0014 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0014 -//! @SYMAPI CFbsBitmapDevice::SetPalette(CPalette{ptr}). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 06/01/2009 -//! @SYMTestCaseDesc Set a palette to CFbsBitmapDevice Object. -//! @SYMTestActions 1.Create RFbsSession Object and connect it. -//! 2.Create CFbsBitmap Object and load bitmap. -//! 3.Create CFbsBitmapDevice Object. -//! 4.Create CPalette Object. -//! 5.Set the palette with the existing palette. -//! 6.Destroy all the objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults A Palette was set without any error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini - CREATE_OBJECT CFbsBitmapDevice fbsbitdev - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsBitmap fbsBitmap - CREATE_OBJECT CPalette palette - COMMAND rfbssession Connect - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0014-Load_command03 - COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0014-NewL_command04 - COMMAND palette NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0014-NewL_command05 - COMMAND fbsbitdev SetPalette GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0014-SetPalette_command06 - COMMAND fbsbitdev ~ - COMMAND fbsBitmap ~ - COMMAND palette ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0014 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0015 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0015 -//! @SYMAPI CFbsBitmapDevice::SetPalette(CPalette{ptr}). -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 06/01/2009 -//! @SYMTestCaseDesc Negative case, Set a NULL Palette to CFbsBitmapDevice Object. -//! @SYMTestActions 1.Create RFbsSession Object and connect it. -//! 2.Create CFbsBitmap Object and load bitmap. -//! 3.Create CFbsBitmapDevice Object. -//! 4.Create CPalette Object. -//! 5.Set the NULL Palette. -//! 6.Destroy all the objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Null palette is set to the device. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini - CREATE_OBJECT CFbsBitmapDevice fbsbitdev - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsBitmap fbsBitmap - CREATE_OBJECT CPalette palette - COMMAND rfbssession Connect - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0015-Load_command03 - COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0015-NewL_command04 - COMMAND fbsbitdev SetPalette GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0015-SetPalette_command05 - COMMAND fbsbitdev ~ - COMMAND fbsBitmap ~ - COMMAND palette ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0015 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0016 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0016 -//! @SYMAPI CFbsBitmapDevice::GetPalette(CPalette{ptr}{ref}) const -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 06/01/2009 -//! @SYMTestCaseDesc Get the Palette from the CFbsBitmapDevice object and verify it. -//! @SYMTestActions 1.Create RFbsSession Object and connect it. -//! 2.Create CFbsBitmap Object and load bitmap. -//! 3.Create CFbsBitmapDevice Object. -//! 4.Create CPalette Object. -//! 5.Set the palette with the existing palette. -//! 6.Get the palette and verify whether it is the same as we set before. -//! 7.Destroy all the objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Palette was received as expected. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini - CREATE_OBJECT CFbsBitmapDevice fbsbitdev - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsBitmap fbsBitmap - CREATE_OBJECT CPalette palette - COMMAND rfbssession Connect - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0016-Load_command03 - COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0016-NewL_command04 - COMMAND palette NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0016-NewL_command05 - COMMAND fbsbitdev SetPalette GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0016-SetPalette_command06 - COMMAND fbsbitdev GetPalette GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0016-GetPalette_command07 - COMMAND fbsbitdev ~ - COMMAND fbsBitmap ~ - COMMAND palette ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0016 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0017 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0017 -//! @SYMAPI CFbsBitmapDevice::GetPixel(TRgb{ref}, const TPoint{ref}) const -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 06/01/2009 -//! @SYMTestCaseDesc Check the color of specified points of CFbsBitmapDevice object. -//! @SYMTestActions 1.Create RFbsSession Object and connect it. -//! 2.Create CFbsBitmap Object and load bitmap. -//! 3.Create another CFbsBitmap2 Object without load any bitmap. -//! 4.Create CFbsBitmapDevice Object with CFbsBitmap Object. -//! 5.Create CFbsBitGc and CFbsBitGc2 objects and related to CFbsBitmapDevice and CFbsScreenDevice separately. -//! 6.Gets pixel of CFbsBitmap object at point(20, 20) to verify the color of pixel is White. -//! 7.Gets pixel of CFbsBitmap object at point(10, 30) to verify the color of pixel is Black. -//! 8.Call BitBlt function of CFbsScreenDevice object with CFbsBitmap object to show the bitmap on the device. -//! 9.Update the Screendevice to show the bitmap in the Screendevice. -//! 10.Delay 1 second. -//! 11.Destroy all the objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The color of specified points matchs with expected value. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini - CREATE_OBJECT CFbsBitmapDevice fbsbitdev - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsBitmap fbsBitmap - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc2 - COMMAND rfbssession Connect - COMMAND fbsBitmap new - COMMAND fbsBitGc NewL - COMMAND fbsBitGc2 NewL - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0017-Load_command05 - COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0017-NewL_command06 - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0017-NewL_command07 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0017-Activate_command08 - COMMAND fbsBitGc2 Activate GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0017-Activate_command09 - COMMAND fbsBitGc2 BitBlt GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0017-BitBlt_command10 - COMMAND fbsScrDev Update - DELAY 1000000 - COMMAND fbsbitdev GetPixel GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0017-GetPixel_command12 - COMMAND fbsbitdev GetPixel GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0017-GetPixel_command13 - COMMAND fbsbitdev ~ - COMMAND fbsBitmap ~ - COMMAND fbsScrDev ~ - COMMAND fbsBitGc ~ - COMMAND fbsBitGc2 ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0017 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0018 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0018 -//! @SYMAPI CFbsBitmapDevice::GetPixel(TRgb{ref}, const TPoint{ref}) const -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 06/01/2009 -//! @SYMTestCaseDesc Negative case, Check the negative x- and y-coordinate/too big x- and y-coordinate. -//! @SYMTestActions 1.Create RFbsSession Object and connect it. -//! 2.Create CFbsBitmap Object and load bitmap. -//! 3.Create CFbsBitmapDevice Object. -//! 4.Gets pixel at point(-1, 0) and check the RGB color is white. -//! 5.Gets pixel at point(0, -1) and check the RGB color is white. -//! 6.Gets pixel at point(-1, -1) and check the RGB color is white. -//! 7.Gets pixel at point(10000, 0) and check the RGB color is white. -//! 8.Gets pixel at point(0, 10000) and check the RGB color is white. -//! 9.Gets pixel at point(10000, 10000) and check the RGB color is white. -//! 10.Destroy all the objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The color of specified points matchs with expected value. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini - CREATE_OBJECT CFbsBitmapDevice fbsbitdev - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND rfbssession Connect - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0018-Load_command03 - COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0018-NewL_command04 - COMMAND fbsbitdev GetPixel GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0018-GetPixel_command05 - COMMAND fbsbitdev GetPixel GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0018-GetPixel_command06 - COMMAND fbsbitdev GetPixel GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0018-GetPixel_command07 - COMMAND fbsbitdev GetPixel GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0018-GetPixel_command08 - COMMAND fbsbitdev GetPixel GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0018-GetPixel_command09 - COMMAND fbsbitdev GetPixel GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0018-GetPixel_command10 - COMMAND fbsbitdev ~ - COMMAND fbsBitmap ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0018 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0019 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0019 -//! @SYMAPI CFbsBitmapDevice::GetScanLine(TDes8{ref}, const TPoint{ref}, TInt, TDisplayMode) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 06/01/2009 -//! @SYMTestCaseDesc Gets a scanline into a buffer and verify it. -//! @SYMTestActions 1.Create RFbsSession Object and connect it. -//! 2.Create CFbsBitmap Object and load bitmap. -//! 3.Create CFbsBitmapDevice Object. -//! 4.Get scanline from CFbsBitmapDevice and verify the pixels just drawed. -//! 5.Destroy all the objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The color of specified scanline matchs with expected value. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini - CREATE_OBJECT CFbsBitmapDevice fbsbitdev - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND rfbssession Connect - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0019-Load_command03 - COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0019-NewL_command04 - COMMAND fbsbitdev GetScanLine GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0019-GetScanLine_command05 - COMMAND fbsbitdev ~ - COMMAND fbsBitmap ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0019 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0020 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0020 -//! @SYMAPI CFbsBitmapDevice::GetScanLine(TDes8{ref}, const TPoint{ref}, TInt, TDisplayMode) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 06/01/2009 -//! @SYMTestCaseDesc Negative test, uses a zero-length buffer. -//! @SYMTestActions 1.Create RFbsSession Object and connect it. -//! 2.Create CFbsBitmap Object and load bitmap. -//! 3.Create CFbsBitmapDevice Object. -//! 4.Get scanline from CFbsBitmapDevice and verify the pixels just drawed. -//! 5.Destroy all the objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults GetScanLine is called without panic. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini - CREATE_OBJECT CFbsBitmapDevice fbsbitdev - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND rfbssession Connect - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0020-Load_command03 - COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0020-NewL_command04 - COMMAND fbsbitdev GetScanLine GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0020-GetScanLine_command05 - COMMAND fbsbitdev ~ - COMMAND fbsBitmap ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0020 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0021 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0021 -//! @SYMAPI CFbsBitmapDevice::GetScanLine(TDes8{ref}, const TPoint{ref}, TInt, TDisplayMode) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 06/01/2009 -//! @SYMTestCaseDesc Negative case, Test for a zero-length scanline. -//! @SYMTestActions 1.Create RFbsSession Object and connect it. -//! 2.Create CFbsBitmap Object and load bitmap. -//! 3.Create CFbsBitmapDevice Object. -//! 4.Get scanline from CFbsBitmapDevice and verify the pixels just drawed. -//! 5.Destroy all the objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults GetScanLine is called without panic. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini - CREATE_OBJECT CFbsBitmapDevice fbsbitdev - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND rfbssession Connect - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0021-Load_command03 - COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0021-NewL_command04 - COMMAND fbsbitdev GetScanLine GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0021-GetScanLine_command05 - COMMAND fbsbitdev ~ - COMMAND fbsBitmap ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0021 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0022 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0022 -//! @SYMAPI CFbsBitmapDevice::GetScanLine(TDes8{ref}, const TPoint{ref}, TInt, TDisplayMode) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 06/01/2009 -//! @SYMTestCaseDesc Negative case, Test for a negative-length scanline. -//! @SYMTestActions 1.Create RFbsSession Object and connect it. -//! 2.Create CFbsBitmap Object and load bitmap. -//! 3.Create CFbsBitmapDevice Object. -//! 4.Get scanline from CFbsBitmapDevice and verify the pixels just drawed. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults GetScanLine is called with USER 23 panic received. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini - CREATE_OBJECT CFbsBitmapDevice fbsbitdev - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND rfbssession Connect - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0022-Load_command03 - COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0022-NewL_command04 - COMMAND fbsbitdev GetScanLine GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0022-GetScanLine_command05 - END_TEST_BLOCK !PanicString=USER !PanicCode=23 - RUN_TEST_STEP 100 T_GraphicsBitGDIAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0022 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0023 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0023 -//! @SYMAPI CFbsBitmapDevice::GetScanLine(TDes8{ref}, const TPoint{ref}, TInt, TDisplayMode) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 06/01/2009 -//! @SYMTestCaseDesc Negative case, Test for a 99999-length scanline with starting point (0, 0). -//! @SYMTestActions 1.Create RFbsSession Object and connect it. -//! 2.Create CFbsBitmap Object and load bitmap. -//! 3.Create CFbsBitmapDevice Object. -//! 4.Get scanline from CFbsBitmapDevice and verify the pixels just drawed. -//! 5.Destroy all the objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults GetScanLine is called without panic. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini - CREATE_OBJECT CFbsBitmapDevice fbsbitdev - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND rfbssession Connect - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0023-Load_command03 - COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0023-NewL_command04 - COMMAND fbsbitdev GetScanLine GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0023-GetScanLine_command05 - COMMAND fbsbitdev ~ - COMMAND fbsBitmap ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0023 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0024 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0024 -//! @SYMAPI CFbsBitmapDevice::GetScanLine(TDes8{ref}, const TPoint{ref}, TInt, TDisplayMode) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 06/01/2009 -//! @SYMTestCaseDesc Negative case, Test for a 10-length scanline with negative starting point (-1, -1). -//! @SYMTestActions 1.Create RFbsSession Object and connect it. -//! 2.Create CFbsBitmap Object and load bitmap. -//! 3.Create CFbsBitmapDevice Object. -//! 4.Get scanline from CFbsBitmapDevice and verify the pixels just drawed. -//! 5.Destroy all the objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults GetScanLine is called without panic. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini - CREATE_OBJECT CFbsBitmapDevice fbsbitdev - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND rfbssession Connect - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0024-Load_command03 - COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0024-NewL_command04 - COMMAND fbsbitdev GetScanLine GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0024-GetScanLine_command05 - COMMAND fbsbitdev ~ - COMMAND fbsBitmap ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0024 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0025 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0025 -//! @SYMAPI CFbsBitmapDevice::GetScanLine(TDes8{ref}, const TPoint{ref}, TInt, TDisplayMode) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 06/01/2009 -//! @SYMTestCaseDesc Negative case, Test for a 10-length scanline with starting point (10000, 10000). -//! @SYMTestActions 1.Create RFbsSession Object and connect it. -//! 2.Create CFbsBitmap Object and load bitmap. -//! 3.Create CFbsBitmapDevice Object. -//! 4.Get scanline from CFbsBitmapDevice and verify the pixels just drawed. -//! 5.Destroy all the objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults GetScanLine is called without panic. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini - CREATE_OBJECT CFbsBitmapDevice fbsbitdev - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND rfbssession Connect - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0025-Load_command03 - COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0025-NewL_command04 - COMMAND fbsbitdev GetScanLine GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0025-GetScanLine_command05 - COMMAND fbsbitdev ~ - COMMAND fbsBitmap ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0025 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0026 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0026 -//! @SYMAPI CFbsBitmapDevice::GetScanLine(TDes8{ref}, const TPoint{ref}, TInt, TDisplayMode) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 06/01/2009 -//! @SYMTestCaseDesc Negative case, call scanline with bad TDisplayMode params. -//! @SYMTestActions 1.Create RFbsSession Object and connect it. -//! 2.Create CFbsBitmap Object and load bitmap. -//! 3.Create CFbsBitmapDevice Object. -//! 4.Get scanline from CFbsBitmapDevice and verify the pixels just drawed. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults A BITGDI panic is received. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini - CREATE_OBJECT CFbsBitmapDevice fbsbitdev - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND rfbssession Connect - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0026-Load_command03 - COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0026-NewL_command04 - COMMAND fbsbitdev GetScanLine GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0026-GetScanLine_command05 - END_TEST_BLOCK !PanicString=BITGDI !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsBitGDIAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0026 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0027 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0027 -//! @SYMAPI CFbsBitmapDevice::HorizontalPixelsToTwips(TInt) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 06/01/2009 -//! @SYMTestCaseDesc Translates a horizontal dimension of a bitmap device in pixels into twips -//! @SYMTestActions 1.Create RFbsSession Object and connect it. -//! 2.Create CFbsBitmap Object and load bitmap. -//! 3.Create CFbsBitmapDevice Object. -//! 4.Translates a horizontal dimension pixels into twips. -//! 5.Destroy all the objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults HorizontalPixelsToTwips doesn't cause panic and the returned twips are as expected -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini - CREATE_OBJECT CFbsBitmapDevice fbsbitdev - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND rfbssession Connect - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0027-Load_command03 - COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0027-NewL_command04 - COMMAND fbsbitdev HorizontalPixelsToTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0027-HorizontalPixelsToTwips_command05 - COMMAND fbsbitdev ~ - COMMAND fbsBitmap ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0027 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0028 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0028 -//! @SYMAPI CFbsBitmapDevice::HorizontalPixelsToTwips(TInt) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 06/01/2009 -//! @SYMTestCaseDesc Translates a horizontal dimension of a bitmap device in pixels into twips -//! @SYMTestActions 1.Create RFbsSession Object and connect it. -//! 2.Create CFbsBitmap Object and load bitmap. -//! 3.Set the size of the bitmap. -//! 3.Create CFbsBitmapDevice Object. -//! 4.Translates a horizontal dimension pixels into twips. -//! 5.Destroy all the objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults HorizontalPixelsToTwips doesn't cause panic and the returned twips are as expected -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini - CREATE_OBJECT CFbsBitmapDevice fbsbitdev - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND rfbssession Connect - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0028-Load_command03 - COMMAND fbsBitmap SetSizeInTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0028-SetSizeInTwips_command04 - COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0028-NewL_command05 - COMMAND fbsbitdev HorizontalPixelsToTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0028-HorizontalPixelsToTwips_command06 - COMMAND fbsbitdev HorizontalPixelsToTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0028-HorizontalPixelsToTwips_command07 - COMMAND fbsbitdev HorizontalPixelsToTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0028-HorizontalPixelsToTwips_command08 - COMMAND fbsbitdev ~ - COMMAND fbsBitmap ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0028 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0029 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0029 -//! @SYMAPI CFbsBitmapDevice::HorizontalTwipsToPixels(TInt) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 06/01/2009 -//! @SYMTestCaseDesc Translates a horizontal dimension of a screen device in twips into pixels. -//! @SYMTestActions 1.Create RFbsSession Object and connect it. -//! 2.Create CFbsBitmap Object and load bitmap. -//! 3.Create CFbsBitmapDevice Object. -//! 4.Translates a horizontal dimension twips into pixels. -//! 5.Destroy all the objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults HorizontalTwipsToPixels doesn't cause panic and the returned pixels are as expected. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini - CREATE_OBJECT CFbsBitmapDevice fbsbitdev - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND rfbssession Connect - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0029-Load_command03 - COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0029-NewL_command04 - COMMAND fbsbitdev HorizontalTwipsToPixels GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0029-HorizontalTwipsToPixels_command05 - COMMAND fbsbitdev ~ - COMMAND fbsBitmap ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0029 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0030 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0030 -//! @SYMAPI CFbsBitmapDevice::HorizontalTwipsToPixels(TInt) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 06/01/2009 -//! @SYMTestCaseDesc Negative case, Uses big twips/0/small negative twips. -//! @SYMTestActions 1.Create RFbsSession Object and connect it. -//! 2.Create CFbsBitmap Object and load bitmap. -//! 3.Set the size of the bitmap. -//! 4.Create CFbsBitmapDevice Object. -//! 5.Input twips = 1280, return 640. -//! 6.Input twips = 0, return 0. -//! 7. Input twips = -100, return -49. -//! 8.Destroy all the objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults HorizontalPixelsToTwips doesn't cause panic and the returned twips are as expected -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini - CREATE_OBJECT CFbsBitmapDevice fbsbitdev - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND rfbssession Connect - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0030-Load_command03 - COMMAND fbsBitmap SetSizeInTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0030-SetSizeInTwips_command04 - COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0030-NewL_command05 - COMMAND fbsbitdev HorizontalTwipsToPixels GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0030-HorizontalTwipsToPixels_command06 - COMMAND fbsbitdev HorizontalTwipsToPixels GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0030-HorizontalTwipsToPixels_command07 - COMMAND fbsbitdev HorizontalTwipsToPixels GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0030-HorizontalTwipsToPixels_command08 - COMMAND fbsbitdev ~ - COMMAND fbsBitmap ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0030 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0031 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0031 -//! @SYMAPI CFbsBitmapDevice::PaletteAttributes(TBool{ref}, TInt{ref}) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 06/01/2009 -//! @SYMTestCaseDesc Gets the attributes of the device's palette. -//! @SYMTestActions 1.Create RFbsSession Object and connect it. -//! 2.Create CFbsBitmap Object and load bitmap. -//! 3.Create CFbsBitmapDevice Object. -//! 4.Get PaletteAttributes and verify the palette received is the default. -//! 5.Destroy all the objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The attributes of the Palette returned are the same as expected. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini - CREATE_OBJECT CFbsBitmapDevice fbsbitdev - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND rfbssession Connect - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0031-Load_command03 - COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0031-NewL_command04 - COMMAND fbsbitdev PaletteAttributes GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0031-PaletteAttributes_command05 - COMMAND fbsbitdev ~ - COMMAND fbsBitmap ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0031 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0032 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0032 -//! @SYMAPI CFbsBitmapDevice::PaletteAttributes(TBool{ref}, TInt{ref}) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 06/01/2009 -//! @SYMTestCaseDesc Gets the attributes of the device's palette. -//! @SYMTestActions 1.Create RFbsSession Object and connect it. -//! 2.Create CFbsBitmap Object and load bitmap. -//! 3.Create CFbsBitmapDevice Object. -//! 4.Set Palette to the device. -//! 4.Get PaletteAttributes and verify the palette received. -//! 5.Destroy all the objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The attributes of the Palette returned are the same as expected. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini - CREATE_OBJECT CFbsBitmapDevice fbsbitdev - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsBitmap fbsBitmap - CREATE_OBJECT CPalette palette - COMMAND rfbssession Connect - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0032-Load_command03 - COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0032-NewL_command04 - COMMAND palette NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0032-NewL_command05 - COMMAND fbsbitdev SetPalette GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0032-SetPalette_command06 - COMMAND fbsbitdev PaletteAttributes GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0032-PaletteAttributes_command07 - COMMAND fbsbitdev ~ - COMMAND fbsBitmap ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0032 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0033 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0033 -//! @SYMAPI CFbsBitmapDevice::SizeInTwips() -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 06/01/2009 -//! @SYMTestCaseDesc Gets the size of the device, in twips. -//! @SYMTestActions 1.Create RFbsSession Object and connect it. -//! 2.Create CFbsBitmap Object and load bitmap. -//! 3.Create CFbsBitmapDevice Object. -//! 4.Get the size of the device and verify it. -//! 5.Destroy all the objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The size of the device is the same as expected. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini - CREATE_OBJECT CFbsBitmapDevice fbsbitdev - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND rfbssession Connect - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0033-Load_command03 - COMMAND fbsBitmap SetSizeInTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0033-SetSizeInTwips_command04 - COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0033-NewL_command05 - COMMAND fbsbitdev SizeInTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0033-SizeInTwips_command06 - COMMAND fbsbitdev ~ - COMMAND fbsBitmap ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0033 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0034 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0034 -//! @SYMAPI CFbsBitmapDevice::Resize(const TSize {ref}) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 06/01/2009 -//! @SYMTestCaseDesc Gets the size of the device, in twips. -//! @SYMTestActions 1.Create RFbsSession Object and connect it. -//! 2.Create CFbsBitmap Object and load bitmap. -//! 3.Create CFbsBitmapDevice Object. -//! 4.Get the size of the device. -//! 5.Resize the size of the device. -//! 6.Get the size of the device and verify it. -//! 7.Destroy all the objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The resize the bitmap as expected. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini - CREATE_OBJECT CFbsBitmapDevice fbsbitdev - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND rfbssession Connect - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0034-Load_command03 - COMMAND fbsBitmap SetSizeInTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0034-SetSizeInTwips_command04 - COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0034-NewL_command05 - COMMAND fbsbitdev SizeInTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0034-SizeInTwips_command06 - COMMAND fbsbitdev Resize GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0034-Resize_command07 - COMMAND fbsbitdev SizeInTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0034-SizeInTwips_command08 - COMMAND fbsbitdev ~ - COMMAND fbsBitmap ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0034 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0035 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0035 -//! @SYMAPI CFbsBitmapDevice::Resize(const TSize {ref}) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 06/01/2009 -//! @SYMTestCaseDesc Negative case, Set too big size. -//! @SYMTestActions 1.Create RFbsSession Object and connect it. -//! 2.Create CFbsBitmap Object and load bitmap. -//! 3.Create CFbsBitmapDevice Object. -//! 4.Get the size of the device. -//! 5.Resize the size of the device. -//! 6.Destroy all the objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults KErrTooBig error occurs. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini - CREATE_OBJECT CFbsBitmapDevice fbsbitdev - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND rfbssession Connect - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0035-Load_command03 - COMMAND fbsBitmap SetSizeInTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0035-SetSizeInTwips_command04 - COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0035-NewL_command05 - COMMAND fbsbitdev SizeInTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0035-SizeInTwips_command06 - COMMAND !Error=-40 fbsbitdev Resize GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0035-Resize_command07 - COMMAND fbsbitdev ~ - COMMAND fbsBitmap ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0035 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0036 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0036 -//! @SYMAPI CFbsBitmapDevice::Resize(const TSize {ref}) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 06/01/2009 -//! @SYMTestCaseDesc Negative case, Set Negative width size. -//! @SYMTestActions 1.Create RFbsSession Object and connect it. -//! 2.Create CFbsBitmap Object and load bitmap. -//! 3.Create CFbsBitmapDevice Object. -//! 4.Get the size of the device. -//! 5.Resize the size of the device. -//! 6.Destroy all the objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults KErrArgument error occurs. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini - CREATE_OBJECT CFbsBitmapDevice fbsbitdev - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND rfbssession Connect - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0036-Load_command03 - COMMAND fbsBitmap SetSizeInTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0036-SetSizeInTwips_command04 - COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0036-NewL_command05 - COMMAND fbsbitdev SizeInTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0036-SizeInTwips_command06 - COMMAND !Error=-6 fbsbitdev Resize GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0036-Resize_command07 - COMMAND fbsbitdev ~ - COMMAND fbsBitmap ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0036 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0037 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0037 -//! @SYMAPI CFbsBitmapDevice::Resize(const TSize {ref}) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 06/01/2009 -//! @SYMTestCaseDesc Negative case, Set Negative Height size. -//! @SYMTestActions 1.Create RFbsSession Object and connect it. -//! 2.Create CFbsBitmap Object and load bitmap. -//! 3.Create CFbsBitmapDevice Object. -//! 4.Get the size of the device. -//! 5.Resize the size of the device. -//! 6.Destroy all the objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults KErrArgument error occurs. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini - CREATE_OBJECT CFbsBitmapDevice fbsbitdev - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND rfbssession Connect - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0037-Load_command03 - COMMAND fbsBitmap SetSizeInTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0037-SetSizeInTwips_command04 - COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0037-NewL_command05 - COMMAND fbsbitdev SizeInTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0037-SizeInTwips_command06 - COMMAND !Error=-6 fbsbitdev Resize GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0037-Resize_command07 - COMMAND fbsbitdev ~ - COMMAND fbsBitmap ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0037 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0038 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0038 -//! @SYMAPI CFbsBitmapDevice::SwapWidthAndHeight() -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 06/01/2009 -//! @SYMTestCaseDesc Swaps bitmap device's width and height. -//! @SYMTestActions 1.Create RFbsSession Object and connect it. -//! 2.Create CFbsBitmap Object and load bitmap. -//! 3.Create CFbsBitmapDevice Object with CFbsBitmap object. -//! 4.Set the size of the bitmap first. -//! 5.Swaps bitmap device's width and height. -//! 6.Verify the device's width and height. -//! 7.Destroy all the objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Swap the width and heigth as expected. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini - CREATE_OBJECT CFbsBitmapDevice fbsbitdev - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND rfbssession Connect - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0038-Load_command03 - COMMAND fbsBitmap SetSizeInTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0038-SetSizeInTwips_command04 - COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0038-NewL_command05 - COMMAND fbsbitdev Resize GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0038-Resize_command06 - COMMAND fbsbitdev SwapWidthAndHeight - COMMAND fbsbitdev SizeInPixels GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0038-SizeInPixels_command08 - COMMAND fbsbitdev ~ - COMMAND fbsBitmap ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0038 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0039 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0039 -//! @SYMAPI CFbsBitmapDevice::SwapWidthAndHeight() -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 06/01/2009 -//! @SYMTestCaseDesc Swaps bitmap device's width and height. -//! @SYMTestActions 1.Create RFbsSession Object and connect it. -//! 2.Create CFbsBitmap Object and load bitmap. -//! 3.Create CFbsBitmapDevice Object. -//! 4.Create CFbsBitGc Object and connected to CFbsBitmapDevice. -//! 5.Set the size of the device. -//! 6.Swaps bitmap device's width and height. -//! 7.Draw a line to the device. -//! 8.Destroy all the objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Swap the width and heigth without any error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini - CREATE_OBJECT CFbsBitmapDevice fbsbitdev - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsBitmap fbsBitmap - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND rfbssession Connect - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0039-Load_command03 - COMMAND fbsBitmap SetSizeInTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0039-SetSizeInTwips_command04 - COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0039-NewL_command05 - COMMAND fbsBitGc NewL - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0039-Activate_command07 - COMMAND fbsbitdev Resize GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0039-Resize_command08 - COMMAND fbsbitdev SwapWidthAndHeight - COMMAND fbsBitGc DrawLine GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0039-DrawLine_command10 - COMMAND fbsbitdev ~ - COMMAND fbsBitmap ~ - COMMAND fbsBitGc ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0039 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0040 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0040 -//! @SYMAPI CFbsBitmapDevice::VerticalPixelsToTwips(TInt) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 06/01/2009 -//! @SYMTestCaseDesc Translates a vertical dimension of a bitmap device in pixels into twips -//! @SYMTestActions 1.Create RFbsSession Object and connect it. -//! 2.Create CFbsBitmap Object and load bitmap. -//! 3.Create CFbsBitmapDevice Object. -//! 4.Translates a vertical dimension pixels into twips. -//! 5.Destroy all the objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults VerticalPixelsToTwips doesn't cause panic and the returned twips are as expected -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini - CREATE_OBJECT CFbsBitmapDevice fbsbitdev - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND rfbssession Connect - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0040-Load_command03 - COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0040-NewL_command04 - COMMAND fbsbitdev VerticalPixelsToTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0040-VerticalPixelsToTwips_command05 - COMMAND fbsbitdev ~ - COMMAND fbsBitmap ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0040 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0041 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0041 -//! @SYMAPI CFbsBitmapDevice::VerticalPixelsToTwips(TInt) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 06/01/2009 -//! @SYMTestCaseDesc Negative case, Uses big pixels/0/small negative pixels. -//! @SYMTestActions 1.Create RFbsSession Object and connect it. -//! 2.Create CFbsBitmap Object and load bitmap. -//! 3.Create CFbsBitmapDevice Object. -//! 4.Set the size of the bitmap. -//! 5.Input pixel = 240, return 480. -//! 6.Input pixel = 0, return 0. -//! 7.Input pixel = -100, return -49. -//! 8.Destroy all the objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults VerticalPixelsToTwips doesn't cause panic and the returned twips are as expected -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini - CREATE_OBJECT CFbsBitmapDevice fbsbitdev - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND rfbssession Connect - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0041-Load_command03 - COMMAND fbsBitmap SetSizeInTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0041-SetSizeInTwips_command04 - COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0041-NewL_command05 - COMMAND fbsbitdev VerticalPixelsToTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0041-VerticalPixelsToTwips_command06 - COMMAND fbsbitdev VerticalPixelsToTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0041-VerticalPixelsToTwips_command07 - COMMAND fbsbitdev VerticalPixelsToTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0041-VerticalPixelsToTwips_command08 - COMMAND fbsbitdev ~ - COMMAND fbsBitmap ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0041 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0042 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0042 -//! @SYMAPI CFbsBitmapDevice::VerticalTwipsToPixels(TInt) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 06/01/2009 -//! @SYMTestCaseDesc Translates a vertical dimension of a bitmap device in twips into Pixels -//! @SYMTestActions 1.Create RFbsSession Object and connect it. -//! 2.Create CFbsBitmap Object and load bitmap. -//! 3.Create CFbsBitmapDevice Object. -//! 4.Translates a vertical dimension twips into Pixels. -//! 5.Destroy all the objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults VerticalTwipsToPixels doesn't cause panic and the returned twips are as expected -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini - CREATE_OBJECT CFbsBitmapDevice fbsbitdev - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND rfbssession Connect - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0042-Load_command03 - COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0042-NewL_command04 - COMMAND fbsbitdev VerticalTwipsToPixels GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0042-VerticalTwipsToPixels_command05 - COMMAND fbsbitdev ~ - COMMAND fbsBitmap ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0042 - -START_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0043 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0043 -//! @SYMAPI CFbsBitmapDevice::VerticalTwipsToPixels(TInt) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 06/01/2009 -//! @SYMTestCaseDesc Negative case, Uses big twips/0/small negative twips. -//! @SYMTestActions 1.Create RFbsSession Object and connect it. -//! 2.Create CFbsBitmap Object and load bitmap. -//! 3.Create CFbsBitmapDevice Object. -//! 4.Set the size of the bitmap. -//! 5.Translates a vertical dimension twips into Pixels. -//! 6.Destroy all the objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults VerticalTwipsToPixels doesn't cause panic and the returned twips are as expected -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini - CREATE_OBJECT CFbsBitmapDevice fbsbitdev - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND rfbssession Connect - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0043-Load_command03 - COMMAND fbsBitmap SetSizeInTwips GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0043-SetSizeInTwips_command04 - COMMAND fbsbitdev NewL GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0043-NewL_command05 - COMMAND fbsbitdev VerticalTwipsToPixels GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0043-VerticalTwipsToPixels_command06 - COMMAND fbsbitdev VerticalTwipsToPixels GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0043-VerticalTwipsToPixels_command07 - COMMAND fbsbitdev VerticalTwipsToPixels GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0043-VerticalTwipsToPixels_command08 - COMMAND fbsbitdev ~ - COMMAND fbsBitmap ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0043 diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/bitgdi/scripts/GRAPHICS-BITGDI-FbsDevice-PublicApi.script --- a/graphicsapitest/graphicssvs/bitgdi/scripts/GRAPHICS-BITGDI-FbsDevice-PublicApi.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,2338 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// -//! @file -//! @SYMTestSuiteName GRAPHICS-BitGDI-CFbsDevice-PublicApi -//! @SYMScriptTestEnvironment This test script requires a basic ROM. - -/////////////////////////////////////////////////////////////////////////////// -// GRAPHICS-BitGDI-CFbsDevice-PublicApi.script -// -// Tests all public elements of the CFbsDevice class -// as a means of confidence that the API works as expected. -// -// The purpose is to provide a regression test suite of PublishedAll APIs for -// CFbsDevice related classes. -// Negative testing is performed to confirm that correct errors are returned -// when incorrect parameters are given. -// -// The tests are fully automated. -/////////////////////////////////////////////////////////////////////////////// - - -LOAD_SUITE T_GraphicsBitgdiApi -DELAY 1000 - -// **************************************************************************** -// Class Name CFbsDevice -// **************************************************************************** - -START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0001 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0001 -//! @SYMAPI CFbsDevice::CreateContext(CFbsBitGc{prt}{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 06/02/2009 -//! @SYMTestCaseDesc Create a CFbsBitGc object using a CFbsScreenDevice object and check the availablity of the context. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object through CFbsScreenDevice object. -//! 4. Draw a line to CFbsScreenDevice object through CFbsBitGc object. -//! 5. Check the line color. -//! 6. Destruct CFbsBitGc and CFbsScreenDevice objects and disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. CFbsBitGc object can be created without error. -//! 2. The line color is as specified in test data. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0001-NewL_command02 - COMMAND fbsScrDev CreateContext GRAPHICS-BITGDI-FbsDevice-PublicApi-0001-CreateContext_command03 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc DrawLine GRAPHICS-BITGDI-FbsDevice-PublicApi-0001-DrawLine_command05 - COMMAND fbsScrDev checkLineColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0001-checkLineColor_command06 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsScrDev ~ - COMMAND fbsBitGc ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0001 - -START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0002 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0002 -//! @SYMAPI CFbsDevice::CreateContext(CGraphicsContext{prt}{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 06/02/2009 -//! @SYMTestCaseDesc Create a CGraphicsContext derived object using a CFbsScreenDevice object and check the availablity of the context. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CGraphicsContext derived object through CFbsScreenDevice object. -//! 4. Draw a line to CFbsScreenDevice object through CGraphicsContext derived object. -//! 5. Check the line color. -//! 6. Destruct CGraphicsContext derived and CFbsScreenDevice objects and disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. CGraphicsContext derived object can be created without error. -//! 2. The line color is as specified in test data. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0002-NewL_command02 - COMMAND fbsScrDev CreateContext GRAPHICS-BITGDI-FbsDevice-PublicApi-0002-CreateContext_command03 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc DrawLine GRAPHICS-BITGDI-FbsDevice-PublicApi-0002-DrawLine_command05 - COMMAND fbsScrDev checkLineColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0002-checkLineColor_command06 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsScrDev ~ - COMMAND fbsBitGc ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0002 - -START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0003 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0003 -//! @SYMAPI CFbsDevice::DisplayMode() -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 06/02/2009 -//! @SYMTestCaseDesc Gets the device's display mode. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create and destruct CFbsScreenDevice objects using all valid TDisplayMode values respectively. -//! 3. Get the display mode. -//! 4. Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults DisplayMode() returns expected display mode. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0003-NewL_command02 - COMMAND fbsScrDev DisplayMode GRAPHICS-BITGDI-FbsDevice-PublicApi-0003-DisplayMode_command03 - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0003 - -START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0004 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsDevice-PublicApi-0004 -//! @SYMAPI CFbsDevice::SizeInPixels() -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 06/02/2009 -//! @SYMTestCaseDesc Gets the size of the device, in pixels. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsBitmap Object and load the bitmap. -//! 3. Create a CFbsBitmapDevice Object with the CFbsBitmap object. -//! 4. Get the size of the device. -//! 5. Destroy all the objects and disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults SizeInPixels() returns expected size. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT CFbsBitmapDevice fbsBmpDev - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND fbsSession Connect - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsDevice-PublicApi-0004-Load_command03 - COMMAND fbsBmpDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0004-NewL_command04 - COMMAND fbsBmpDev SizeInPixels GRAPHICS-BITGDI-FbsDevice-PublicApi-0004-SizeInPixels_command05 - COMMAND fbsBmpDev ~ - COMMAND fbsBitmap ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0004 - -START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0005 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0005 -//! @SYMAPI CFbsDevice::RectCompare(const TRect{ref}, const CFbsDevice{ref}, const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 06/02/2009 -//! @SYMTestCaseDesc Compares two rectangles with same color and size on same device, including their contents. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object through CFbsScreenDevice object. -//! 4. Clear the device and draw 2 rectangles TRect(10, 10, 60, 110) and TRect(80, 10, 130, 110) in color TRgb(255, 255, 0). -//! 5. Compare the 2 rectangles. -//! 6. Destruct all objects and disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. RectCompare() can be called without error. -//! 2. The 2 rectangles are the same and RectCompare() returns true. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0005-NewL_command02 - COMMAND fbsScrDev CreateContext GRAPHICS-BITGDI-FbsDevice-PublicApi-0005-CreateContext_command03 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0005-SetBrushColor_command05 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsDevice-PublicApi-0005-SetBrushStyle_command06 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0005-SetPenColor_command07 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0005-DrawRect_command08 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0005-DrawRect_command09 - COMMAND fbsScrDev RectCompare GRAPHICS-BITGDI-FbsDevice-PublicApi-0005-RectCompare_command10 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsScrDev ~ - COMMAND fbsBitGc ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0005 - -START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0006 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0006 -//! @SYMAPI CFbsDevice::RectCompare(const TRect{ref}, const CFbsDevice{ref}, const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 06/02/2009 -//! @SYMTestCaseDesc Compares same rectangle on same device. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object through CFbsScreenDevice object. -//! 4. Clear the device and draw rectangle TRect(10, 10, 60, 110) in color TRgb(255, 0, 0). -//! 5. Compare the rectangle with itself. -//! 6. Destruct all objects and disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. RectCompare() can be called without error. -//! 2. RectCompare() returns true. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0006-NewL_command02 - COMMAND fbsScrDev CreateContext GRAPHICS-BITGDI-FbsDevice-PublicApi-0006-CreateContext_command03 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0006-SetBrushColor_command05 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsDevice-PublicApi-0006-SetBrushStyle_command06 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0006-SetPenColor_command07 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0006-DrawRect_command08 - COMMAND fbsScrDev RectCompare GRAPHICS-BITGDI-FbsDevice-PublicApi-0006-RectCompare_command09 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsScrDev ~ - COMMAND fbsBitGc ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0006 - -START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0007 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0007 -//! @SYMAPI CFbsDevice::RectCompare(const TRect{ref}, const CFbsDevice{ref}, const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 06/02/2009 -//! @SYMTestCaseDesc Compares 2 empty rectangles on same device. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object through CFbsScreenDevice object. -//! 4. Clear the device and draw a rectangle TRect(10, 10, 60, 110) in TRgb(0, 255, 0). -//! 5. Compare 2 empty rectangles TRect(20, 20, 20, 20) and TRect(80, 10, 80, 10). -//! 6. Destruct all objects and disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. RectCompare() can be called without error. -//! 2. RectCompare() returns true. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0007-NewL_command02 - COMMAND fbsScrDev CreateContext GRAPHICS-BITGDI-FbsDevice-PublicApi-0007-CreateContext_command03 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0007-SetBrushColor_command05 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsDevice-PublicApi-0007-SetBrushStyle_command06 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0007-SetPenColor_command07 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0007-DrawRect_command08 - COMMAND fbsScrDev RectCompare GRAPHICS-BITGDI-FbsDevice-PublicApi-0007-RectCompare_command09 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsScrDev ~ - COMMAND fbsBitGc ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0007 - -START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0008 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0008 -//! @SYMAPI CFbsDevice::RectCompare(const TRect{ref}, const CFbsDevice{ref}, const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 06/02/2009 -//! @SYMTestCaseDesc Compares 2 rectangles with same color and height but different width on same device. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object through CFbsScreenDevice object. -//! 4. Clear the device and draw 2 rectangles TRect(10, 10, 60, 110) and TRect (80, 10, 100, 110) in TRgb(0, 0, 255). -//! 5. Compare the 2 rectangles. -//! 6. Destruct all objects and disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. RectCompare() can be called without error. -//! 2. RectCompare() returns false. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0008-NewL_command02 - COMMAND fbsScrDev CreateContext GRAPHICS-BITGDI-FbsDevice-PublicApi-0008-CreateContext_command03 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0008-SetBrushColor_command05 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsDevice-PublicApi-0008-SetBrushStyle_command06 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0008-SetPenColor_command07 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0008-DrawRect_command08 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0008-DrawRect_command09 - COMMAND fbsScrDev RectCompare GRAPHICS-BITGDI-FbsDevice-PublicApi-0008-RectCompare_command10 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsScrDev ~ - COMMAND fbsBitGc ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0008 - -START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0009 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0009 -//! @SYMAPI CFbsDevice::RectCompare(const TRect{ref}, const CFbsDevice{ref}, const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 06/02/2009 -//! @SYMTestCaseDesc Compares 2 rectangles with different color and different width but same height on same device. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object through CFbsScreenDevice object. -//! 4. Clear the device and draw 2 rectangles TRect(10, 10, 60, 110) and TRect (80, 10, 100, 110) in TRgb(0, 0, 255) and TRgb(255, 0, 0) respectively. -//! 5. Compare the 2 rectangles. -//! 6. Destruct all objects and disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. RectCompare() can be called without error. -//! 2. RectCompare() returns false. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0009-NewL_command02 - COMMAND fbsScrDev CreateContext GRAPHICS-BITGDI-FbsDevice-PublicApi-0009-CreateContext_command03 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0009-SetBrushColor_command05 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsDevice-PublicApi-0009-SetBrushStyle_command06 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0009-SetPenColor_command07 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0009-DrawRect_command08 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0009-SetBrushColor_command09 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0009-SetPenColor_command10 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0009-DrawRect_command11 - COMMAND fbsScrDev RectCompare GRAPHICS-BITGDI-FbsDevice-PublicApi-0009-RectCompare_command12 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsScrDev ~ - COMMAND fbsBitGc ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0009 - -START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0010 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0010 -//! @SYMAPI CFbsDevice::RectCompare(const TRect{ref}, const CFbsDevice{ref}, const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 06/02/2009 -//! @SYMTestCaseDesc Compares 2 rectangles with different color but same size on same device. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object through CFbsScreenDevice object. -//! 4. Clear the device and draw 2 rectangles TRect(10, 10, 60, 110) and TRect (80, 10, 130, 110) in TRgb(0, 0, 255) and TRgb(255, 0, 0) respectively. -//! 5. Compare the 2 rectangles TRect(0, 0, 60, 110) and TRect(70, 0, 130, 110). -//! 6. Destruct all objects and disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. RectCompare() can be called without error. -//! 2. RectCompare() returns false. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0010-NewL_command02 - COMMAND fbsScrDev CreateContext GRAPHICS-BITGDI-FbsDevice-PublicApi-0010-CreateContext_command03 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0010-SetBrushColor_command05 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsDevice-PublicApi-0010-SetBrushStyle_command06 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0010-SetPenColor_command07 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0010-DrawRect_command08 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0010-SetBrushColor_command09 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0010-SetPenColor_command10 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0010-DrawRect_command11 - COMMAND fbsScrDev RectCompare GRAPHICS-BITGDI-FbsDevice-PublicApi-0010-RectCompare_command12 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsScrDev ~ - COMMAND fbsBitGc ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0010 - -START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0011 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0011 -//! @SYMAPI CFbsDevice::RectCompare(const TRect{ref}, const CFbsDevice{ref}, const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 06/02/2009 -//! @SYMTestCaseDesc Negative case. Compares 2 very large rectangles with same color and size on same device. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object through CFbsScreenDevice object. -//! 4. Clear the device and draw 2 rectangles TRect(0, 0, 8000, 8000) and TRect (10, 10, 8010, 8010) in TRgb(0, 0, 255). -//! 5. Compare the 2 rectangles. -//! 6. Destruct all objects and disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. RectCompare() can be called without error. -//! 2. RectCompare() returns false. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0011-NewL_command02 - COMMAND fbsScrDev CreateContext GRAPHICS-BITGDI-FbsDevice-PublicApi-0011-CreateContext_command03 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0011-SetBrushColor_command05 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsDevice-PublicApi-0011-SetBrushStyle_command06 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0011-SetPenColor_command07 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0011-DrawRect_command08 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0011-DrawRect_command09 - COMMAND fbsScrDev RectCompare GRAPHICS-BITGDI-FbsDevice-PublicApi-0011-RectCompare_command10 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsScrDev ~ - COMMAND fbsBitGc ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0011 - -START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0015 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0015 -//! @SYMAPI CFbsDevice::RectCompare(const TRect{ref}, const CFbsDevice{ref}, const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 06/02/2009 -//! @SYMTestCaseDesc Compares two rectangles with same color and size on different device, including their contents. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object and a CFbsBitmap object. -//! 3. Load a bitmap to CFbsBitmap object. -//! 4. Create a CFbsBitmapDevice through the bitmap. -//! 5. Create a CFbsBitGc object through CFbsScreenDevice object. -//! 6. Create a CFbsBitGc object through CFbsBitmapDevice object. -//! 7. Clear the 2 devices and draw 2 rectangles TRect(10, 10, 40, 40) and TRect(10, 10, 40, 40) in color TRgb(0, 0, 0) on each device. -//! 8. Compare the 2 rectangles. -//! 9. Destruct all objects and disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. RectCompare() can be called without error. -//! 2. The 2 rectangles are the same and RectCompare() returns true. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitmapDevice fbsBmpDev - CREATE_OBJECT CFbsBitmap fbsBitmap - CREATE_OBJECT CFbsBitGc fbsBitGc - CREATE_OBJECT CFbsBitGc fbsBitGc2 - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0015-NewL_command02 - COMMAND fbsScrDev CreateContext GRAPHICS-BITGDI-FbsDevice-PublicApi-0015-CreateContext_command03 - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-BITGDI-FbsDevice-PublicApi-0015-Load_command05 - COMMAND fbsBmpDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0015-NewL_command06 - COMMAND fbsBmpDev CreateContext GRAPHICS-BITGDI-FbsDevice-PublicApi-0015-CreateContext_command07 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc2 Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0015-SetBrushColor_command10 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsDevice-PublicApi-0015-SetBrushStyle_command11 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0015-SetPenColor_command12 - COMMAND fbsBitGc2 SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0015-SetBrushColor_command13 - COMMAND fbsBitGc2 SetBrushStyle GRAPHICS-BITGDI-FbsDevice-PublicApi-0015-SetBrushStyle_command14 - COMMAND fbsBitGc2 SetPenColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0015-SetPenColor_command15 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0015-DrawRect_command16 - COMMAND fbsBitGc2 DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0015-DrawRect_command17 - COMMAND fbsScrDev RectCompare GRAPHICS-BITGDI-FbsDevice-PublicApi-0015-RectCompare_command18 - COMMAND fbsBmpDev RectCompare GRAPHICS-BITGDI-FbsDevice-PublicApi-0015-RectCompare_command19 - COMMAND fbsScrDev Update - DELAY 500100 - COMMAND fbsScrDev ~ - COMMAND fbsBmpDev ~ - COMMAND fbsBitmap ~ - COMMAND fbsBitGc ~ - COMMAND fbsBitGc2 ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0015 - -START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0017 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0017 -//! @SYMAPI CFbsDevice::RectCompare(const TRect{ref}, const CFbsDevice{ref}, const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 06/02/2009 -//! @SYMTestCaseDesc Compares 2 rectangles with same color and width but different height on same device. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object through CFbsScreenDevice object. -//! 4. Clear the device and draw 2 rectangles TRect(0, 0, 50, 50) and TRect (60, 10, 110, 50) in TRgb(0, 0, 255). -//! 5. Compare the 2 rectangles. -//! 6. Destruct all objects and disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. RectCompare() can be called without error. -//! 2. RectCompare() returns false. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0017-NewL_command02 - COMMAND fbsScrDev CreateContext GRAPHICS-BITGDI-FbsDevice-PublicApi-0017-CreateContext_command03 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0017-SetBrushColor_command05 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsDevice-PublicApi-0017-SetBrushStyle_command06 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0017-SetPenColor_command07 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0017-DrawRect_command08 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0017-DrawRect_command09 - COMMAND fbsScrDev RectCompare GRAPHICS-BITGDI-FbsDevice-PublicApi-0017-RectCompare_command10 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsScrDev ~ - COMMAND fbsBitGc ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0017 - -START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0018 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0018 -//! @SYMAPI CFbsDevice::RectCompare(const TRect{ref}, const CFbsDevice{ref}, const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 06/02/2009 -//! @SYMTestCaseDesc Compares 2 rectangles with different color and different height but same width on same device. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object through CFbsScreenDevice object. -//! 4. Clear the device and draw 2 rectangles TRect(10, 10, 60, 110) and TRect (80, 10, 130, 150) in TRgb(0, 0, 255) and TRgb(255, 0, 0) respectively. -//! 5. Compare the 2 rectangles. -//! 6. Destruct all objects and disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. RectCompare() can be called without error. -//! 2. RectCompare() returns false. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0018-NewL_command02 - COMMAND fbsScrDev CreateContext GRAPHICS-BITGDI-FbsDevice-PublicApi-0018-CreateContext_command03 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0018-SetBrushColor_command05 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsDevice-PublicApi-0018-SetBrushStyle_command06 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0018-SetPenColor_command07 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0018-DrawRect_command08 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0018-SetBrushColor_command09 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0018-SetPenColor_command10 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0018-DrawRect_command11 - COMMAND fbsScrDev RectCompare GRAPHICS-BITGDI-FbsDevice-PublicApi-0018-RectCompare_command12 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsScrDev ~ - COMMAND fbsBitGc ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0018 - -START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0019 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0019 -//! @SYMAPI CFbsDevice::RectCompare(const TRect{ref}, const CFbsDevice{ref}, const TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 06/02/2009 -//! @SYMTestCaseDesc Compares 2 rectangles with different color but same size on same device, which is created using EColor16. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Create a CFbsBitGc object through CFbsScreenDevice object. -//! 4. Clear the device and draw 2 rectangles TRect(10, 10, 60, 110) and TRect (80, 10, 130, 110) in TRgb(0, 0, 255) and TRgb(255, 0, 0) respectively. -//! 5. Compare the 2 rectangles. -//! 6. Destruct all objects and disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. RectCompare() can be called without error. -//! 2. RectCompare() returns false. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0019-NewL_command02 - COMMAND fbsScrDev CreateContext GRAPHICS-BITGDI-FbsDevice-PublicApi-0019-CreateContext_command03 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0019-SetBrushColor_command05 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsDevice-PublicApi-0019-SetBrushStyle_command06 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0019-SetPenColor_command07 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0019-DrawRect_command08 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0019-SetBrushColor_command09 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0019-SetPenColor_command10 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0019-DrawRect_command11 - COMMAND fbsScrDev RectCompare GRAPHICS-BITGDI-FbsDevice-PublicApi-0019-RectCompare_command12 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsScrDev ~ - COMMAND fbsBitGc ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0019 - -START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0020 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0020 -//! @SYMAPI CFbsDevice::AddFile(const TDesC{ref},TInt{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 06/02/2009 -//! @SYMTestCaseDesc Adds a font file to the device's typeface store. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object and a CFbsFont object. -//! 3. Add a font file. -//! 4. Checks the expected font is added successfully. -//! 5. Remove the font file. -//! 6. Destruct all objects and disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Font file can be added successfully. -//! 2. Font in newly add font file can be used. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsFont fbsFont - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0020-NewL_command02 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsDevice-PublicApi-0020-GetNearestFontToDesignHeightInPixels_command03 - COMMAND !Error=-1 fbsFont FontSpecInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0020-FontSpecInTwips_command04 - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0020-ReleaseFont_command05 - COMMAND fbsScrDev AddFile GRAPHICS-BITGDI-FbsDevice-PublicApi-0020-AddFile_command06 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsDevice-PublicApi-0020-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fbsFont FontSpecInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0020-FontSpecInTwips_command08 - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0020-ReleaseFont_command09 - COMMAND fbsScrDev RemoveFile GRAPHICS-BITGDI-FbsDevice-PublicApi-0020-RemoveFile_command10 - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0020 - -START_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0021 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0021 -//! @SYMAPI CFbsDevice::AddFile(const TDesC{ref},TInt{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 09/02/2009 -//! @SYMTestCaseDesc Negative case. Adds a dir as font file to the device's typeface store. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Add a dir. -//! 4. Destruct all objects and disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults AddFile() returns -21 KErrAccessDenied. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0021-NewL_command02 - COMMAND !Error=-21 fbsScrDev AddFile GRAPHICS-BITGDI-FbsDevice-PublicApi-0021-AddFile_command03 - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0021 - -START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0022 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0022 -//! @SYMAPI CFbsDevice::AddFile(const TDesC{ref},TInt{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 09/02/2009 -//! @SYMTestCaseDesc Negative case. Adds a non-existent file to the device's typeface store. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Add a non-existent file. -//! 4. Destruct all objects and disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults AddFile() returns -1 KErrNotFound. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0022-NewL_command02 - COMMAND !Error=-1 fbsScrDev AddFile GRAPHICS-BITGDI-FbsDevice-PublicApi-0022-AddFile_command03 - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0022 - -START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0023 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0023 -//! @SYMAPI CFbsDevice::RemoveFile(TInt) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 09/02/2009 -//! @SYMTestCaseDesc Removes the specified font file from the device's typeface store. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object and a CFbsFont object. -//! 3. Add a font file. -//! 4. Checks the expected font is added successfully. -//! 5. Remove the font file. -//! 6. Checks the expected font is removed successfully. -//! 7. Destruct all objects and disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Font file can be removed successfully. -//! 2. Font in newly add font file can not be used after RemoveFile(). -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsFont fbsFont - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0023-NewL_command02 - COMMAND fbsScrDev AddFile GRAPHICS-BITGDI-FbsDevice-PublicApi-0023-AddFile_command03 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsDevice-PublicApi-0023-GetNearestFontToDesignHeightInPixels_command04 - COMMAND fbsFont FontSpecInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0023-FontSpecInTwips_command05 - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0023-ReleaseFont_command06 - COMMAND fbsScrDev RemoveFile GRAPHICS-BITGDI-FbsDevice-PublicApi-0023-RemoveFile_command07 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsDevice-PublicApi-0023-GetNearestFontToDesignHeightInPixels_command08 - COMMAND !Error=-1 fbsFont FontSpecInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0023-FontSpecInTwips_command09 - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0023-ReleaseFont_command10 - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0023 - -START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0024 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0024 -//! @SYMAPI CFbsDevice::RemoveFile(TInt) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 09/02/2009 -//! @SYMTestCaseDesc Removes all font files from the device's typeface store. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object and a CFbsFont object. -//! 3. Add a font file. -//! 4. Checks the expected font is added successfully. -//! 5. Remove all files. -//! 6. Checks the expected font is not removed because there are some font is being used. -//! 7. Destruct all objects and disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Font file can not be removed. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsFont fbsFont - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0024-NewL_command02 - COMMAND fbsScrDev AddFile GRAPHICS-BITGDI-FbsDevice-PublicApi-0024-AddFile_command03 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsDevice-PublicApi-0024-GetNearestFontToDesignHeightInPixels_command04 - COMMAND fbsFont FontSpecInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0024-FontSpecInTwips_command05 - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0024-ReleaseFont_command06 - COMMAND fbsScrDev RemoveFile GRAPHICS-BITGDI-FbsDevice-PublicApi-0024-RemoveFile_command07 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsDevice-PublicApi-0024-GetNearestFontToDesignHeightInPixels_command08 - COMMAND fbsFont FontSpecInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0024-FontSpecInTwips_command09 - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0024-ReleaseFont_command10 - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0024 - -START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0025 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0025 -//! @SYMAPI CFbsDevice::RemoveFile(TInt) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 09/02/2009 -//! @SYMTestCaseDesc Negative case. Removes font file from the device's typeface store specified by UID -9. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Remove font file by specifying UID to -9. -//! 4. Destruct all objects and disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults RemoveFile() will be called without panic. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsFont fbsFont - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0025-NewL_command02 - COMMAND fbsScrDev RemoveFile GRAPHICS-BITGDI-FbsDevice-PublicApi-0025-RemoveFile_command03 - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0025 - -START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0026 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0026 -//! @SYMAPI CFbsDevice::NumTypefaces() -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 09/02/2009 -//! @SYMTestCaseDesc Gets the number of typefaces supported by the device. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Get the number of typefaces. -//! 4. Add a font file. -//! 5. Get the number of typefaces. -//! 6. Remove the font file. -//! 7. Get the number of typefaces. -//! 8. Destruct all objects and disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. NumTypefaces() will be called without error. -//! 2. Before AddFile() and after RemoveFile(), the NumTypefaces() returns same value. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0026-NewL_command02 - COMMAND fbsScrDev NumTypefaces GRAPHICS-BITGDI-FbsDevice-PublicApi-0026-NumTypefaces_command03 - COMMAND fbsScrDev AddFile GRAPHICS-BITGDI-FbsDevice-PublicApi-0026-AddFile_command04 - COMMAND fbsScrDev NumTypefaces GRAPHICS-BITGDI-FbsDevice-PublicApi-0026-NumTypefaces_command05 - COMMAND fbsScrDev RemoveFile GRAPHICS-BITGDI-FbsDevice-PublicApi-0026-RemoveFile_command06 - COMMAND fbsScrDev NumTypefaces GRAPHICS-BITGDI-FbsDevice-PublicApi-0026-NumTypefaces_command07 - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0026 - -START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0027 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0027 -//! @SYMAPI CFbsDevice::TypefacesSupport(TTypefaceSupport{ref}, TInt) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 09/02/2009 -//! @SYMTestCaseDesc Gets information about an indexed typeface. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Get the information about typeface indexed 6 -//! 4. Destruct all objects and disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults TypefaceSupport() will be called successfully. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0027-NewL_command02 - COMMAND fbsScrDev TypefaceSupport GRAPHICS-BITGDI-FbsDevice-PublicApi-0027-TypefaceSupport_command03 - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0027 - -START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0028 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0028 -//! @SYMAPI CFbsDevice::TypefacesSupport(TTypefaceSupport{ref}, TInt) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 09/02/2009 -//! @SYMTestCaseDesc Negative case. Gets information about an indexed typeface. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Get the information about typeface indexed -6 -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get panic code 26 and panic string FBSCLI -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0028-NewL_command02 - COMMAND fbsScrDev TypefaceSupport GRAPHICS-BITGDI-FbsDevice-PublicApi-0028-TypefaceSupport_command03 - END_TEST_BLOCK !PanicString=FBSCLI !PanicCode=26 - RUN_TEST_STEP 100 T_GraphicsBitgdiApi utilityClearPanicDlg -END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0028 - -START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0029 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0029 -//! @SYMAPI CFbsDevice::SetCustomPalette(const CPalette{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 09/02/2009 -//! @SYMTestCaseDesc Sets the variable 8 bits per pixel colour palette, replacing the system default one. Support for palette will depend on the screen driver implementation, it's not supported in techview. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object and a CPalette object. -//! 3. Set the custom palette. -//! 4. Destruct all objects and disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults SetCustomPalette() will be called successfully. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CPalette palette - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0029-NewL_command02 - COMMAND palette NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0029-NewL_command03 - COMMAND fbsScrDev SetCustomPalette GRAPHICS-BITGDI-FbsDevice-PublicApi-0029-SetCustomPalette_command04 - COMMAND fbsScrDev ~ - COMMAND palette ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0029 - -START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0030 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0030 -//! @SYMAPI CFbsDevice::GraphicsAccelerator() -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 09/02/2009 -//! @SYMTestCaseDesc Gets a pointer to the 2D graphics accelerator owned by the device. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Gets a pointer to the 2D graphics accelerator. -//! 4. Destruct all objects and disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults GraphicsAccelerator() will be called successfully. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0030-NewL_command02 - COMMAND fbsScrDev GraphicsAccelerator - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0030 - -START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0031 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0031 -//! @SYMAPI CFbsDevice::Orientation() -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 09/02/2009 -//! @SYMTestCaseDesc Gets the device's orientation. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object and a CFbsBigGc object. -//! 3. Set device orientation to EGraphicsOrientationRotated90, EGraphicsOrientationRotated180, EGraphicsOrientationRotated270, EGraphicsOrientationNormal and Get the device's orientation respectively. -//! 4. Destruct all objects and disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Orientation() will be called successfully. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0031-NewL_command02 - COMMAND fbsScrDev CreateContext GRAPHICS-BITGDI-FbsDevice-PublicApi-0031-CreateContext_command03 - COMMAND fbsBitGc OrientationsAvailable - COMMAND fbsBitGc SetOrientation GRAPHICS-BITGDI-FbsDevice-PublicApi-0031-SetOrientation_command05 - COMMAND fbsScrDev Orientation GRAPHICS-BITGDI-FbsDevice-PublicApi-0031-Orientation_command06 - DELAY 500000 - COMMAND fbsBitGc SetOrientation GRAPHICS-BITGDI-FbsDevice-PublicApi-0031-SetOrientation_command08 - COMMAND fbsScrDev Orientation GRAPHICS-BITGDI-FbsDevice-PublicApi-0031-Orientation_command09 - DELAY 500000 - COMMAND fbsBitGc SetOrientation GRAPHICS-BITGDI-FbsDevice-PublicApi-0031-SetOrientation_command11 - COMMAND fbsScrDev Orientation GRAPHICS-BITGDI-FbsDevice-PublicApi-0031-Orientation_command12 - DELAY 500000 - COMMAND fbsBitGc SetOrientation GRAPHICS-BITGDI-FbsDevice-PublicApi-0031-SetOrientation_command14 - COMMAND fbsScrDev Orientation GRAPHICS-BITGDI-FbsDevice-PublicApi-0031-Orientation_command15 - COMMAND fbsScrDev ~ - COMMAND fbsBitGc ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0031 - -START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0032 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0032 -//! @SYMAPI CFbsDevice::DisplayMode16M() -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 09/02/2009 -//! @SYMTestCaseDesc Return one of the 16M video modes defined in TDisplayMode -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create and destruct CFbsScreenDevice objects using all valid TDisplayMode values respectively. -//! 3. Get the display mode. -//! 4. Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults DisplayMode16M() returns expected display mode. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0032-NewL_command02 - COMMAND fbsScrDev DisplayMode16M GRAPHICS-BITGDI-FbsDevice-PublicApi-0032-DisplayMode16M_command03 - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0032 - -START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0033 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0033 -//! @SYMAPI CFbsDevice::SetScalingFactor(const TPoint{ref}, TInt, TInt, TInt, TInt) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 09/02/2009 -//! @SYMTestCaseDesc Sets scaling factor by which the drawing device should scale the drawing images. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Set scaling factor to 10, 10, 1, 1 and scaling origin to TPoint(10, 10). -//! 4. Create a CFbsBitGc object through CFbsScreenDevice object and clear the device. -//! 5. Set brush and pen color to TRgb(0, 255, 255). -//! 6. Draw a rectangle TRect(10, 10, 30, 30) and check it. -//! 7. Set scaling factor to 1, 1, 1, 1 and scaling origin to TPoint(0, 0) and re-activate CFbsBitGc object. -//! 8. Clear the device. Set brush and pen color to TRgb(0, 255, 255). -//! 9. Draw a rectangle TRect(0, 0, 50, 50) and check it. -//! 10. Set scaling factor to 1, 1, 1, 1 and scaling origin to TPoint(10, 10) and re-activate CFbsBitGc object. -//! 11. Clear the device. Set brush and pen color to TRgb(0, 255, 255). -//! 12. Draw a rectangle TRect(0, 0, 50, 50) and check it. -//! 13. Destruct all objects and disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. SetScalingFactor() will be called successfully. -//! 2. All the three rectangles are in color TRgb(0, 255, 255). -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-NewL_command02 - COMMAND fbsScrDev SetScalingFactor GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-SetScalingFactor_command03 - COMMAND fbsScrDev CreateContext GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-CreateContext_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-SetBrushColor_command06 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-SetBrushStyle_command07 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-SetPenColor_command08 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-DrawRect_command09 - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-checkRectColor_command10 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsScrDev SetScalingFactor GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-SetScalingFactor_command13 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-Activate_command14 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-SetBrushColor_command15 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-SetBrushColor_command17 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-SetBrushStyle_command18 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-SetPenColor_command19 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-DrawRect_command20 - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-checkRectColor_command21 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsScrDev SetScalingFactor GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-SetScalingFactor_command24 - COMMAND fbsBitGc Activate GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-Activate_command25 - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-SetBrushColor_command26 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-SetBrushColor_command28 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-SetBrushStyle_command29 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-SetPenColor_command30 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-DrawRect_command31 - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-checkRectColor_command32 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsScrDev ~ - COMMAND fbsBitGc ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0033 - -START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0034 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0034 -//! @SYMAPI CFbsDevice::SetScalingFactor(const TPoint{ref}, TInt, TInt, TInt, TInt) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 09/02/2009 -//! @SYMTestCaseDesc Negative case. Sets scaling factor by which the drawing device should scale the drawing images using negative X-axis factor. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Set scaling factor to -10, 10, 1, 1 and scaling origin to TPoint(10, 10). -//! 4. Create a CFbsBitGc object through CFbsScreenDevice object. Set brush style to ESolidBrush and clear the device. -//! 5. Clear the device. Set brush and pen color to TRgb(0, 255, 255). -//! 6. Draw a rectangle TRect(0, 0, 100, 100). -//! 7. Destruct all objects and disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. SetScalingFactor() will be called successfully. -//! 2. The scaled rectangle will not be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0034-NewL_command02 - COMMAND fbsScrDev SetScalingFactor GRAPHICS-BITGDI-FbsDevice-PublicApi-0034-SetScalingFactor_command03 - COMMAND fbsScrDev CreateContext GRAPHICS-BITGDI-FbsDevice-PublicApi-0034-CreateContext_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0034-SetBrushColor_command06 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsDevice-PublicApi-0034-SetBrushStyle_command07 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0034-SetPenColor_command08 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0034-DrawRect_command09 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsScrDev ~ - COMMAND fbsBitGc ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0034 - -START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0035 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0035 -//! @SYMAPI CFbsDevice::SetScalingFactor(const TPoint{ref}, TInt, TInt, TInt, TInt) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 09/02/2009 -//! @SYMTestCaseDesc Negative case. Sets scaling factor by which the drawing device should scale the drawing images using negative Y-axis factor. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object and a CFbsBitGc object. -//! 3. Set brush style to ESolidBrush and clear the device. -//! 4. Set scaling factor to 10, -10, 1, 1 and scaling origin to TPoint(10, 10). -//! 5. Set brush and pen color to TRgb(0, 255, 255). -//! 6. Draw a rectangle TRect(0, 0, 100, 100). -//! 7. Destruct all objects and disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. SetScalingFactor() will be called successfully. -//! 2. The scaled rectangle will not be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0035-NewL_command02 - COMMAND fbsScrDev SetScalingFactor GRAPHICS-BITGDI-FbsDevice-PublicApi-0035-SetScalingFactor_command03 - COMMAND fbsScrDev CreateContext GRAPHICS-BITGDI-FbsDevice-PublicApi-0035-CreateContext_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0035-SetBrushColor_command06 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsDevice-PublicApi-0035-SetBrushStyle_command07 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0035-SetPenColor_command08 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0035-DrawRect_command09 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsScrDev ~ - COMMAND fbsBitGc ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0035 - -START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0036 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0036 -//! @SYMAPI CFbsDevice::SetScalingFactor(const TPoint{ref}, TInt, TInt, TInt, TInt) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 09/02/2009 -//! @SYMTestCaseDesc Negative case. Sets scaling factor by which the drawing device should scale the drawing images using TPoint(-100, -100). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object and a CFbsBitGc object. -//! 3. Set brush style to ESolidBrush and clear the device. -//! 4. Set scaling factor to 10, 10, 1, 1 and scaling origin to TPoint(-100, -100). -//! 5. Set brush and pen color to TRgb(0, 255, 255). -//! 6. Draw a rectangle TRect(0, 0, 20, 20) and check it. -//! 7. Destruct all objects and disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. SetScalingFactor() will be called successfully. -//! 2. The rectangle is in color TRgb(0, 255, 255). -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0036-NewL_command02 - COMMAND fbsScrDev SetScalingFactor GRAPHICS-BITGDI-FbsDevice-PublicApi-0036-SetScalingFactor_command03 - COMMAND fbsScrDev CreateContext GRAPHICS-BITGDI-FbsDevice-PublicApi-0036-CreateContext_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0036-SetBrushColor_command06 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsDevice-PublicApi-0036-SetBrushStyle_command07 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0036-SetPenColor_command08 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0036-DrawRect_command09 - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0036-checkRectColor_command10 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsScrDev ~ - COMMAND fbsBitGc ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0036 - -START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0037 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0037 -//! @SYMAPI CFbsDevice::SetScalingFactor(const TPoint{ref}, TInt, TInt, TInt, TInt) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 09/02/2009 -//! @SYMTestCaseDesc Negative case. Sets scaling factor by which the drawing device should scale the drawing images using TPoint(9100, 9100). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object and a CFbsBitGc object. -//! 3. Set brush style to ESolidBrush and clear the device. -//! 4. Set scaling factor to 10, 10, 1, 1 and scaling origin to TPoint(9100, 9100). -//! 5. Set brush and pen color to TRgb(0, 255, 255). -//! 6. Draw a rectangle TRect(0, 0, 100, 100). -//! 7. Destruct all objects and disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. SetScalingFactor() will be called successfully. -//! 2. The scaled rectangle will not be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0037-NewL_command02 - COMMAND fbsScrDev SetScalingFactor GRAPHICS-BITGDI-FbsDevice-PublicApi-0037-SetScalingFactor_command03 - COMMAND fbsScrDev CreateContext GRAPHICS-BITGDI-FbsDevice-PublicApi-0037-CreateContext_command04 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0037-SetBrushColor_command06 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsDevice-PublicApi-0037-SetBrushStyle_command07 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0037-SetPenColor_command08 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0037-DrawRect_command09 - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsScrDev ~ - COMMAND fbsBitGc ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0037 - -START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0038 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0038 -//! @SYMAPI CFbsDevice::GetDrawRect(TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 10/02/2009 -//! @SYMTestCaseDesc Gets logical coordinates of the drawing rectangle. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Get draw rectangle. -//! 4. Destruct all objects and disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults GetDrawRect() will be called successfully. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0038-NewL_command02 - COMMAND fbsScrDev GetDrawRect - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0038 - -START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0039 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0039 -//! @SYMAPI CFbsDevice::GetDrawRect(TRect{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 10/02/2009 -//! @SYMTestCaseDesc Gets logical coordinates of the drawing rectangle of a scaled device. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Set scaling factor to 10, 10, 1, 1 and scaling origin to TPoint(5, 5). -//! 4. Get draw rectangle. -//! 5. Destruct all objects and disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults GetDrawRect() will be called successfully. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0039-NewL_command02 - COMMAND fbsScrDev SetScalingFactor GRAPHICS-BITGDI-FbsDevice-PublicApi-0039-SetScalingFactor_command03 - COMMAND fbsScrDev GetDrawRect - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0039 - -START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0040 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0040 -//! @SYMAPI CFbsDevice::RegisterLinkedTypeface(const CLinkedTypefaceSpecification{ref},TInt{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 10/02/2009 -//! @SYMTestCaseDesc Add a CLinkedTypefaceSpecification to the font and bitmap server typeface store. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object and a CLinkedTypefaceSpecification object. -//! 3. Register the CLinkedTypefaceSpecification object. -//! 4. Destruct all objects and disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults RegisterLinkedTypeface() returns -5 KErrNotSupported. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CLinkedTypefaceSpecification linkedTypefaceSpec - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0040-NewL_command02 - COMMAND linkedTypefaceSpec NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0040-NewLC_command03 - COMMAND !Error=-5 fbsScrDev RegisterLinkedTypeface GRAPHICS-BITGDI-FbsDevice-PublicApi-0040-RegisterLinkedTypeface_command04 - COMMAND fbsScrDev ~ - COMMAND linkedTypefaceSpec ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0040 - -START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0041 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0041 -//! @SYMAPI CFbsDevice::SetDrawDeviceOffset(const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 10/02/2009 -//! @SYMTestCaseDesc Set the offset of draw device. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object and then create a CFbsBitGc object through CFbsScreenDevice object. -//! 3. Clear the device and set brush and pen color to TRgb(0, 255, 0) and brush style to ESolidBrush. -//! 4. Set offset of draw device to TPoint(50, 50). -//! 5. Draw a rectangle TRect(0, 0, 100, 100) and check it. -//! 6. Get draw rectangle. -//! 7. Destruct all objects and disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. SetDrawDeviceOffset() will be called without error. -//! 2. TRect(0, 0, 100, 100) is in color TRgb(0, 255, 0). -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0041-NewL_command02 - COMMAND fbsScrDev CreateContext GRAPHICS-BITGDI-FbsDevice-PublicApi-0041-CreateContext_command03 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0041-SetBrushColor_command05 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsDevice-PublicApi-0041-SetBrushStyle_command06 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0041-SetPenColor_command07 - COMMAND fbsScrDev SetDrawDeviceOffset GRAPHICS-BITGDI-FbsDevice-PublicApi-0041-SetDrawDeviceOffset_command08 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0041-DrawRect_command09 - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0041-checkRectColor_command10 - COMMAND fbsScrDev GetDrawRect - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsScrDev ~ - COMMAND fbsBitGc ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0041 - -START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0042 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0042 -//! @SYMAPI CFbsDevice::SetDrawDeviceOffset(const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 10/02/2009 -//! @SYMTestCaseDesc Set the offset of draw device to TPoint(-50, -50). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object and then create a CFbsBitGc object through CFbsScreenDevice object. -//! 3. Clear the device and set brush and pen color to TRgb(0, 255, 0) and brush style to ESolidBrush. -//! 4. Set offset of draw device to TPoint(50, 50). -//! 5. Draw a rectangle TRect(0, 0, 100, 100) and check it. -//! 6. Get draw rectangle. -//! 7. Destruct all objects and disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. SetDrawDeviceOffset() will be called without error. -//! 2. TRect(50, 50, 100, 100) is in color TRgb(0, 255, 0). -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0042-NewL_command02 - COMMAND fbsScrDev CreateContext GRAPHICS-BITGDI-FbsDevice-PublicApi-0042-CreateContext_command03 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0042-SetBrushColor_command05 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsDevice-PublicApi-0042-SetBrushStyle_command06 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0042-SetPenColor_command07 - COMMAND fbsScrDev SetDrawDeviceOffset GRAPHICS-BITGDI-FbsDevice-PublicApi-0042-SetDrawDeviceOffset_command08 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0042-DrawRect_command09 - COMMAND fbsScrDev checkRectColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0042-checkRectColor_command10 - COMMAND fbsScrDev GetDrawRect - COMMAND fbsScrDev Update - DELAY 500000 - COMMAND fbsScrDev ~ - COMMAND fbsBitGc ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0042 - -START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0043 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0043 -//! @SYMAPI CFbsDevice::SetDrawDeviceOffset(const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 10/02/2009 -//! @SYMTestCaseDesc Set the offset of draw device to TPoint(-100, -100) and draw rectangle TRect(0, 0, 100, 100). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object and then create a CFbsBitGc object through CFbsScreenDevice object. -//! 3. Clear the device and set brush and pen color to TRgb(0, 255, 0) and brush style to ESolidBrush. -//! 4. Set offset of draw device to TPoint(-100, -100). -//! 5. Draw a rectangle TRect(0, 0, 100, 100). -//! 6. Get draw rectangle. -//! 7. Destruct all objects and disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. SetDrawDeviceOffset() will be called without error. -//! 2. The rectangle will not be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0043-NewL_command02 - COMMAND fbsScrDev CreateContext GRAPHICS-BITGDI-FbsDevice-PublicApi-0043-CreateContext_command03 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0043-SetBrushColor_command05 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsDevice-PublicApi-0043-SetBrushStyle_command06 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0043-SetPenColor_command07 - COMMAND fbsScrDev SetDrawDeviceOffset GRAPHICS-BITGDI-FbsDevice-PublicApi-0043-SetDrawDeviceOffset_command08 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0043-DrawRect_command09 - COMMAND fbsScrDev GetDrawRect - COMMAND fbsScrDev ~ - COMMAND fbsBitGc ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0043 - -START_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0044 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsDevice-PublicApi-0044 -//! @SYMAPI CFbsDevice::SetDrawDeviceOffset(const TPoint{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 10/02/2009 -//! @SYMTestCaseDesc Negative case. Set the offset of draw device to TPoint(9000, 9000) and draw rectangle TRect(0, 0, 100, 100). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object and then create a CFbsBitGc object through CFbsScreenDevice object. -//! 3. Clear the device and set brush and pen color to TRgb(0, 255, 0) and brush style to ESolidBrush. -//! 4. Set offset of draw device to TPoint(9000, 9000). -//! 5. Draw a rectangle TRect(0, 0, 100, 100). -//! 6. Get draw rectangle. -//! 7. Destruct all objects and disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. SetDrawDeviceOffset() will be called without error. -//! 2. The rectangle will not be drawn. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsBitGc fbsBitGc - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0044-NewL_command02 - COMMAND fbsScrDev CreateContext GRAPHICS-BITGDI-FbsDevice-PublicApi-0044-CreateContext_command03 - COMMAND fbsBitGc Clear - COMMAND fbsBitGc SetBrushColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0044-SetBrushColor_command05 - COMMAND fbsBitGc SetBrushStyle GRAPHICS-BITGDI-FbsDevice-PublicApi-0044-SetBrushStyle_command06 - COMMAND fbsBitGc SetPenColor GRAPHICS-BITGDI-FbsDevice-PublicApi-0044-SetPenColor_command07 - COMMAND fbsScrDev SetDrawDeviceOffset GRAPHICS-BITGDI-FbsDevice-PublicApi-0044-SetDrawDeviceOffset_command08 - COMMAND fbsBitGc DrawRect GRAPHICS-BITGDI-FbsDevice-PublicApi-0044-DrawRect_command09 - COMMAND fbsScrDev GetDrawRect - COMMAND fbsScrDev ~ - COMMAND fbsBitGc ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsDevice-PublicApi-0044 - - -START_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0201 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsDevice-PublicApi-0201 -//! @SYMAPI CFbsDevice::GetFontById(CFont{ptr}{ref}, TUid, const TAlgStyle{ref}); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 04/02/2009 -//! @SYMTestCaseDesc Get font by a valid uid. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object and a TAlgStyle object. -//! 3. Get font by uid and algstyle. -//! 4. Check font height in pixels. -//! 5. Release the font. -//! 6. Destroy TAlgStyle object and CFbsScreenDevice object. -//! 7. Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. GetFontById returns KErrNone(0). -//! 2. FontMaxHeight returns expected value. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsFont font - CREATE_OBJECT TAlgStyle algstyle - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0201-NewL_command02 - COMMAND algstyle new - COMMAND fbsScrDev GetFontById GRAPHICS-BITGDI-FbsDevice-PublicApi-0201-GetFontById_command04 - COMMAND font FontMaxHeight GRAPHICS-BITGDI-FbsDevice-PublicApi-0201-FontMaxHeight_command05 - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0201-ReleaseFont_command06 - COMMAND algstyle ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0201 - - -START_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0202 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsDevice-PublicApi-0202 -//! @SYMAPI CFbsDevice::GetFontById(CFbsFont{ptr}{ref}, TUid, const TAlgStyle{ref}); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 04/02/2009 -//! @SYMTestCaseDesc Get font by a valid uid. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object and a TAlgStyle object. -//! 3. Get font by uid and algstyle. -//! 4. Check font height in pixels. -//! 5. Release the font. -//! 7. Destroy TAlgStyle object and CFbsScreenDevice object. -//! 8. Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. GetFontById returns KErrNone(0). -//! 2. FontMaxHeight returns expected value. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsFont fbsFont - CREATE_OBJECT TAlgStyle algstyle - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0202-NewL_command02 - COMMAND algstyle new - COMMAND fbsScrDev GetFontById GRAPHICS-BITGDI-FbsDevice-PublicApi-0202-GetFontById_command04 - COMMAND fbsFont FontMaxHeight GRAPHICS-BITGDI-FbsDevice-PublicApi-0202-FontMaxHeight_command05 - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0202-ReleaseFont_command06 - COMMAND algstyle ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0202 - - -START_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0203 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsDevice-PublicApi-0203 -//! @SYMAPI CFbsDevice::GetFontById(CFont{ptr}{ref}, TUid, const TAlgStyle{ref}); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 04/02/2009 -//! @SYMTestCaseDesc Get font by a invalid uid. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object and a TAlgStyle object. -//! 3. Get font by uid and algstyle. -//! 4. Check font height in pixels. -//! 5. Release the font. -//! 6. Destroy TAlgStyle object and CFbsScreenDevice object. -//! 7. Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults GetFontById returns KErrNotFound(-1). -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsFont font - CREATE_OBJECT TAlgStyle algstyle - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0203-NewL_command02 - COMMAND algstyle new - COMMAND !Error=-1 fbsScrDev GetFontById GRAPHICS-BITGDI-FbsDevice-PublicApi-0203-GetFontById_command04 - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0203-ReleaseFont_command05 - COMMAND algstyle ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0203 - - -START_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0204 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsDevice-PublicApi-0204 -//! @SYMAPI CFbsDevice::GetFontById(CFbsFont{ptr}{ref}, TUid, const TAlgStyle{ref}); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 04/02/2009 -//! @SYMTestCaseDesc Get font by a invalid uid. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object and a TAlgStyle object. -//! 3. Get font by uid and algstyle. -//! 4. Check font height in pixels. -//! 5. Release the font. -//! 6. Destroy TAlgStyle object and CFbsScreenDevice object. -//! 7. Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults GetFontById returns KErrNotFound(-1). -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsFont fbsFont - CREATE_OBJECT TAlgStyle algstyle - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0204-NewL_command02 - COMMAND algstyle new - COMMAND !Error=-1 fbsScrDev GetFontById GRAPHICS-BITGDI-FbsDevice-PublicApi-0204-GetFontById_command04 - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0204-ReleaseFont_command05 - COMMAND algstyle ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0204 - - -START_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0211 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsDevice-PublicApi-0211 -//! @SYMAPI CFbsDevice::GetNearestFontToDesignHeightInPixels(CFbsFont{ptr}{ref}, const TFontSpec{ref}); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 04/02/2009 -//! @SYMTestCaseDesc Get the font which most closely matches TFontSpec(DejaVu Sans Mono, 30). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Get font by font specification. -//! 4. Check font maximum height in pixels. -//! 5. Release the font. -//! 6. Destroy CFbsScreenDevice object. -//! 7. Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. GetNearestFontToDesignHeightInPixels returns KErrNone(0). -//! 2. FontMaxHeight returns expected value. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsFont fbsFont - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0211-NewL_command02 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsDevice-PublicApi-0211-GetNearestFontToDesignHeightInPixels_command04 - COMMAND fbsFont FontMaxHeight GRAPHICS-BITGDI-FbsDevice-PublicApi-0211-FontMaxHeight_command05 - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0211-ReleaseFont_command06 - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0211 - - -START_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0212 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsDevice-PublicApi-0212 -//! @SYMAPI CFbsDevice::GetNearestFontToDesignHeightInPixels(CFbsFont{ptr}{ref}, const TFontSpec{ref}); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 04/02/2009 -//! @SYMTestCaseDesc Negative case; Get the font which most closely matches the font specification with null typeface name. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Get font by font specification with null name. -//! 4. Check font maximum height in pixels. -//! 5. Release the font. -//! 6. Destroy CFbsScreenDevice object. -//! 7. Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. GetNearestFontToDesignHeightInPixels returns KErrNone(0). -//! 2. FontMaxHeight returns expected value. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsFont fbsFont - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0212-NewL_command02 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsDevice-PublicApi-0212-GetNearestFontToDesignHeightInPixels_command04 - COMMAND fbsFont FontMaxHeight GRAPHICS-BITGDI-FbsDevice-PublicApi-0212-FontMaxHeight_command05 - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0212-ReleaseFont_command06 - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0212 - - -START_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0213 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsDevice-PublicApi-0213 -//! @SYMAPI CFbsDevice::GetNearestFontToDesignHeightInPixels(CFbsFont{ptr}{ref}, const TFontSpec{ref}); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 04/02/2009 -//! @SYMTestCaseDesc Negative case; Get the font which most closely matches the specified font with large, 0, negetive font height. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Get font by font specification with height 999999. -//! 4. Check font maximum height in pixels. -//! 5. Get font by font specification with height 0. -//! 6. Check font maximum height in pixels. -//! 7. Get font by font specification with height -1. -//! 8. Check font maximum height in pixels. -//! 9. Release the font. -//! 10.Destroy CFbsScreenDevice object. -//! 11.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. GetNearestFontToDesignHeightInPixels returns KErrNone(0). -//! 2. FontMaxHeight returns expected value. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsFont fbsFont - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0213-NewL_command02 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsDevice-PublicApi-0213-GetNearestFontToDesignHeightInPixels_command04 - COMMAND fbsFont FontMaxHeight GRAPHICS-BITGDI-FbsDevice-PublicApi-0213-FontMaxHeight_command05 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsDevice-PublicApi-0213-GetNearestFontToDesignHeightInPixels_command06 - COMMAND fbsFont FontMaxHeight GRAPHICS-BITGDI-FbsDevice-PublicApi-0213-FontMaxHeight_command07 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsDevice-PublicApi-0213-GetNearestFontToDesignHeightInPixels_command08 - COMMAND fbsFont FontMaxHeight GRAPHICS-BITGDI-FbsDevice-PublicApi-0213-FontMaxHeight_command09 - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0213-ReleaseFont_command10 - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0213 - - -START_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0214 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsDevice-PublicApi-0214 -//! @SYMAPI CFbsDevice::GetNearestFontToDesignHeightInTwips(CFbsFont{ptr}{ref}, const TFontSpec{ref}); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 06/02/2009 -//! @SYMTestCaseDesc Get the font which most closely matches TFontSpec(DejaVu Sans Mono, 500). -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Get font by font specification. -//! 4. Check font name and height in twips. -//! 5. Release the font. -//! 6. Destroy CFbsScreenDevice object. -//! 7. Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. GetNearestFontToDesignHeightInTwips returns KErrNone(0). -//! 2. Both font name and height are expected. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsFont fbsFont - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0214-NewL_command02 - COMMAND fbsScrDev GetNearestFontToDesignHeightInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0214-GetNearestFontToDesignHeightInTwips_command04 - COMMAND fbsFont FontSpecInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0214-FontSpecInTwips_command05 - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0214-ReleaseFont_command06 - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0214 - - -START_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0215 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsDevice-PublicApi-0215 -//! @SYMAPI CFbsDevice::GetNearestFontToDesignHeightInTwips(CFbsFont{ptr}{ref}, const TFontSpec{ref}); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 06/02/2009 -//! @SYMTestCaseDesc Negative case; Get the font which most closely matches the font specification with null typeface name. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Get font by font specification with null name. -//! 4. Check font name and font height in twips.. -//! 5. Release the font. -//! 6. Destroy CFbsScreenDevice object. -//! 7. Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. GetNearestFontToDesignHeightInTwips returns KErrNone(0). -//! 2. Both font name and height are expected. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsFont fbsFont - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0215-NewL_command02 - COMMAND fbsScrDev GetNearestFontToDesignHeightInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0215-GetNearestFontToDesignHeightInTwips_command04 - COMMAND fbsFont FontSpecInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0215-FontSpecInTwips_command05 - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0215-ReleaseFont_command06 - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0215 - - -START_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0216 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsDevice-PublicApi-0216 -//! @SYMAPI CFbsDevice::GetNearestFontToDesignHeightInTwips(CFbsFont{ptr}{ref}, const TFontSpec{ref}); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 06/02/2009 -//! @SYMTestCaseDesc Negative case; Get the font which most closely matches the specified font with large, 0, negetive font height. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Get font by font specification with height 999999. -//! 4. Check font height in twips. -//! 5. Get font by font specification with height 0. -//! 6. Check font height in twips. -//! 7. Get font by font specification with height -1. -//! 8. Check font height in twips. -//! 9. Release the font. -//! 10.Destroy CFbsScreenDevice object. -//! 11.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. GetNearestFontToDesignHeightInTwips returns KErrNone(0). -//! 2. Both font name and height are expected. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsFont fbsFont - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0216-NewL_command02 - COMMAND fbsScrDev GetNearestFontToDesignHeightInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0216-GetNearestFontToDesignHeightInTwips_command04 - COMMAND fbsFont FontSpecInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0216-FontSpecInTwips_command05 - COMMAND fbsScrDev GetNearestFontToDesignHeightInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0216-GetNearestFontToDesignHeightInTwips_command06 - COMMAND fbsFont FontSpecInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0216-FontSpecInTwips_command07 - COMMAND fbsScrDev GetNearestFontToDesignHeightInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0216-GetNearestFontToDesignHeightInTwips_command08 - COMMAND fbsFont FontSpecInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0216-FontSpecInTwips_command09 - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0216-ReleaseFont_command10 - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0216 - - -START_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0221 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsDevice-PublicApi-0221 -//! @SYMAPI CFbsDevice::GetNearestFontToMaxHeightInPixels(CFbsFont{ptr}{ref}, const TFontSpec{ref}); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 06/02/2009 -//! @SYMTestCaseDesc Get the font which most closely matches TFontSpec(DejaVu Sans Mono, 0) and maximum height 30. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Get font by font specification. -//! 4. Check font maximum height in pixels. -//! 5. Release the font. -//! 6. Destroy CFbsScreenDevice object. -//! 7. Disconnect RFbsSession.. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. GetNearestFontToMaxHeightInPixels returns KErrNone(0). -//! 2. FontMaxHeight returns expected value. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsFont fbsFont - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0221-NewL_command02 - COMMAND fbsScrDev GetNearestFontToMaxHeightInPixels GRAPHICS-BITGDI-FbsDevice-PublicApi-0221-GetNearestFontToMaxHeightInPixels_command04 - COMMAND fbsFont FontMaxHeight GRAPHICS-BITGDI-FbsDevice-PublicApi-0221-FontMaxHeight_command05 - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0221-ReleaseFont_command06 - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0221 - - -START_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0222 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsDevice-PublicApi-0222 -//! @SYMAPI CFbsDevice::GetNearestFontToMaxHeightInPixels(CFbsFont{ptr}{ref}, const TFontSpec{ref}); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 06/02/2009 -//! @SYMTestCaseDesc Negative case; Get the font which most closely matches TFontSpec(NULL, 0) and maximum height 30. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Get font by font specification with null name. -//! 4. Check font maximum height in pixels. -//! 5. Release the font. -//! 6. Destroy CFbsScreenDevice object. -//! 7. Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. GetNearestFontToMaxHeightInPixels returns KErrNone(0). -//! 2. FontMaxHeight returns expected value. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsFont fbsFont - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0222-NewL_command02 - COMMAND fbsScrDev GetNearestFontToMaxHeightInPixels GRAPHICS-BITGDI-FbsDevice-PublicApi-0222-GetNearestFontToMaxHeightInPixels_command04 - COMMAND fbsFont FontMaxHeight GRAPHICS-BITGDI-FbsDevice-PublicApi-0222-FontMaxHeight_command05 - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0222-ReleaseFont_command06 - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0222 - - -START_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0223 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsDevice-PublicApi-0223 -//! @SYMAPI CFbsDevice::GetNearestFontToMaxHeightInPixels(CFbsFont{ptr}{ref}, const TFontSpec{ref}); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 06/02/2009 -//! @SYMTestCaseDesc Negative case; Get the font which most closely matches the specified font with large, 0, negetive maximum height. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Get font by font specification with maximum height 999999. -//! 4. Get font by font specification with maximum height 0. -//! 5. Check font maximum height in pixels. -//! 6. Release the font. -//! 7. Destroy CFbsScreenDevice object. -//! 8. Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. GetNearestFontToMaxHeightInPixels returns KErrTooBig(-40), KErrNone(0), -//! 2. FontMaxHeight returns expected value. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsFont fbsFont - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0223-NewL_command02 - COMMAND !Error=-40 fbsScrDev GetNearestFontToMaxHeightInPixels GRAPHICS-BITGDI-FbsDevice-PublicApi-0223-GetNearestFontToMaxHeightInPixels_command04 - COMMAND fbsScrDev GetNearestFontToMaxHeightInPixels GRAPHICS-BITGDI-FbsDevice-PublicApi-0223-GetNearestFontToMaxHeightInPixels_command06 - COMMAND fbsFont FontMaxHeight GRAPHICS-BITGDI-FbsDevice-PublicApi-0223-FontMaxHeight_command07 - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0223-ReleaseFont_command08 - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0223 - - -START_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0224 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsDevice-PublicApi-0224 -//! @SYMAPI CFbsDevice::GetNearestFontToMaxHeightInTwips(CFbsFont{ptr}{ref}, const TFontSpec{ref}); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 06/02/2009 -//! @SYMTestCaseDesc Get the font which most closely matches TFontSpec(DejaVu Sans Mono, 0) and maximum height 500. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Get font by font specification. -//! 4. Check font name and height in twips. -//! 5. Release the font. -//! 6. Destroy CFbsScreenDevice object. -//! 7. Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. GetNearestFontToMaxHeightInTwips returns KErrNone(0). -//! 2. Both font name and height are expected. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsFont fbsFont - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0224-NewL_command02 - COMMAND fbsScrDev GetNearestFontToMaxHeightInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0224-GetNearestFontToMaxHeightInTwips_command04 - COMMAND fbsFont FontSpecInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0224-FontSpecInTwips_command05 - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0224-ReleaseFont_command06 - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0224 - - -START_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0225 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsDevice-PublicApi-0225 -//! @SYMAPI CFbsDevice::GetNearestFontToMaxHeightInTwips(CFbsFont{ptr}{ref}, const TFontSpec{ref}); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 06/02/2009 -//! @SYMTestCaseDesc Negative case; Get the font which most closely matches TFontSpec(NULL, 500) and maximum height 500. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Get font by font specification with null name. -//! 4. Check font name and font height in twips.. -//! 5. Release the font. -//! 6. Destroy CFbsScreenDevice object. -//! 7. Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. GetNearestFontToMaxHeightInTwips returns KErrNone(0). -//! 2. Both font name and height are expected. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsFont fbsFont - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0225-NewL_command02 - COMMAND fbsScrDev GetNearestFontToMaxHeightInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0225-GetNearestFontToMaxHeightInTwips_command04 - COMMAND fbsFont FontSpecInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0225-FontSpecInTwips_command05 - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0225-ReleaseFont_command06 - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0225 - - -START_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0226 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsDevice-PublicApi-0226 -//! @SYMAPI CFbsDevice::GetNearestFontToMaxHeightInTwips(CFbsFont{ptr}{ref}, const TFontSpec{ref}); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 06/02/2009 -//! @SYMTestCaseDesc Negative case; Get the font which most closely matches the specified font with large, 0, negetive maximun height. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Get font by font specification with height 999999. -//! 4. Check font height in twips. -//! 5. Get font by font specification with height 0. -//! 6. Check font height in twips. -//! 7. Get font by font specification with height -1. -//! 8. Check font height in twips. -//! 9. Release the font. -//! 10.Destroy CFbsScreenDevice object. -//! 11.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. GetNearestFontToMaxHeightInTwips returns KErrTooBig(-40), KErrNone(0), KErrNone(0),. -//! 2. Both font name and height are expected.. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsFont fbsFont - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0226-NewL_command02 - COMMAND !Error=-40 fbsScrDev GetNearestFontToMaxHeightInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0226-GetNearestFontToMaxHeightInTwips_command04 - COMMAND fbsScrDev GetNearestFontToMaxHeightInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0226-GetNearestFontToMaxHeightInTwips_command06 - COMMAND fbsFont FontSpecInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0226-FontSpecInTwips_command07 - COMMAND fbsScrDev GetNearestFontToMaxHeightInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0226-GetNearestFontToMaxHeightInTwips_command08 - COMMAND fbsFont FontSpecInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0226-FontSpecInTwips_command09 - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0226-ReleaseFont_command10 - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0226 - - - -START_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0231 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsDevice-PublicApi-0231 -//! @SYMAPI CFbsDevice::FontHeightInPixels(TInt, TInt); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 10/02/2009 -//! @SYMTestCaseDesc Get font height in pixels with typeface index 0 and height index 0. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Get font height of the specified font and check it. -//! 4. Release the font. -//! 5. Destroy CFbsScreenDevice object. -//! 6. Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults FontHeightInPixels returns as expected. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsFont fbsFont - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0231-NewL_command02 - COMMAND fbsScrDev FontHeightInPixels GRAPHICS-BITGDI-FbsDevice-PublicApi-0231-FontHeightInPixels_command04 - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0231-ReleaseFont_command05 - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0231 - - -START_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0232 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsDevice-PublicApi-0232 -//! @SYMAPI CFbsDevice::FontHeightInPixels(TInt, TInt); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 10/02/2009 -//! @SYMTestCaseDesc Negative case; Get font height in pixels with large typeface index. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Get font height with (999, 0). -//! 4. Release the font. -//! 5. Destroy CFbsScreenDevice object. -//! 6. Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults FontHeightInPixels returns 0. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsFont fbsFont - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0232-NewL_command02 - COMMAND fbsScrDev FontHeightInPixels GRAPHICS-BITGDI-FbsDevice-PublicApi-0232-FontHeightInPixels_command04 - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0232-ReleaseFont_command05 - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0232 - - -START_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0233 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsDevice-PublicApi-0233 -//! @SYMAPI CFbsDevice::FontHeightInPixels(TInt, TInt); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 10/02/2009 -//! @SYMTestCaseDesc Negative case; Get font height in pixels with large and negative height index. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Get font height with (0, 999) and check it. -//! 4. Get font height with (0, -1) and check it. -//! 5. Release the font. -//! 6. Destroy CFbsScreenDevice object. -//! 7. Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Two FontHeightInPixels returns as expected. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsFont fbsFont - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0233-NewL_command02 - COMMAND fbsScrDev FontHeightInPixels GRAPHICS-BITGDI-FbsDevice-PublicApi-0233-FontHeightInPixels_command04 - COMMAND fbsScrDev FontHeightInPixels GRAPHICS-BITGDI-FbsDevice-PublicApi-0233-FontHeightInPixels_command05 - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0233-ReleaseFont_command06 - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0233 - - -START_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0234 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsDevice-PublicApi-0234 -//! @SYMAPI CFbsDevice::FontHeightInTwips(TInt, TInt); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 10/02/2009 -//! @SYMTestCaseDesc Get font height in twips with typeface index 0 and height index 0. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Get font height of the specified font and check it. -//! 4. Release the font. -//! 5. Destroy CFbsScreenDevice object. -//! 6. Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults FontHeightInTwips returns as expected. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsFont fbsFont - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0234-NewL_command02 - COMMAND fbsScrDev FontHeightInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0234-FontHeightInTwips_command03 - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0234-ReleaseFont_command04 - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0234 - - -START_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0235 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsDevice-PublicApi-0235 -//! @SYMAPI CFbsDevice::FontHeightInTwips(TInt, TInt); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 10/02/2009 -//! @SYMTestCaseDesc Negative case; Get font height in twips with large typeface index. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Get font height with (999, 0). -//! 4. Release the font. -//! 5. Destroy CFbsScreenDevice object. -//! 6. Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults FontHeightInTwips returns 0. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsFont fbsFont - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0235-NewL_command02 - COMMAND fbsScrDev FontHeightInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0235-FontHeightInTwips_command04 - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0235-ReleaseFont_command05 - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0235 - - -START_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0236 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsDevice-PublicApi-0236 -//! @SYMAPI CFbsDevice::FontHeightInTwips(TInt, TInt); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 10/02/2009 -//! @SYMTestCaseDesc Negative case; Get font height in twips with large and negative height index. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Get font height with (0, 999) and check it. -//! 4. Get font height with (0, -1) and check it. -//! 5. Release the font. -//! 6. Destroy CFbsScreenDevice object. -//! 7. Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Two FontHeightInTwips returns as expected. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsFont fbsFont - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0236-NewL_command02 - COMMAND fbsScrDev FontHeightInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0236-FontHeightInTwips_command03 - COMMAND fbsScrDev FontHeightInTwips GRAPHICS-BITGDI-FbsDevice-PublicApi-0236-FontHeightInTwips_command04 - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0236-ReleaseFont_command05 - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0236 - - -START_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0241 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsDevice-PublicApi-0241 -//! @SYMAPI CFbsDevice::ReleaseFont(CFont{ptr}); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 10/02/2009 -//! @SYMTestCaseDesc Get a font and release the font. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Get a font. -//! 4. Release the font. -//! 5. Destroy CFbsScreenDevice object. -//! 6. Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults ReleaseFont is called without error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsFont font - CREATE_OBJECT TAlgStyle algstyle - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0241-NewL_command02 - COMMAND fbsScrDev GetNearestFontToDesignHeightInPixels GRAPHICS-BITGDI-FbsDevice-PublicApi-0241-GetNearestFontToDesignHeightInPixels_command03 - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0241-ReleaseFont_command04 - COMMAND algstyle ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0241 - - -START_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0242 -//! @SYMTestCaseID GRAPHICS-BITGDI-FbsDevice-PublicApi-0242 -//! @SYMAPI CFbsDevice::ReleaseFont(CFont{ptr}); -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 10/02/2009 -//! @SYMTestCaseDesc Negative case; Release a null font. -//! @SYMTestActions 1. Create and connect a RFbsSession object. -//! 2. Create a CFbsScreenDevice object. -//! 3. Release the font. -//! 4. Destroy CFbsScreenDevice object. -//! 5. Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults ReleaseFont is called without error. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitgdiApi \graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - CREATE_OBJECT RFbsSession fbsSession - CREATE_OBJECT CFbsScreenDevice fbsScrDev - CREATE_OBJECT CFbsFont font - CREATE_OBJECT TAlgStyle algstyle - COMMAND fbsSession Connect - COMMAND fbsScrDev NewL GRAPHICS-BITGDI-FbsDevice-PublicApi-0242-NewL_command02 - COMMAND fbsScrDev ReleaseFont GRAPHICS-BITGDI-FbsDevice-PublicApi-0242-ReleaseFont_command03 - COMMAND algstyle ~ - COMMAND fbsScrDev ~ - COMMAND fbsSession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-FbsDevice-PublicApi-0242 - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/bitgdi/scripts/GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.script --- a/graphicsapitest/graphicssvs/bitgdi/scripts/GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1239 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// -//! @file -//! @SYMTestSuiteName GRAPHICS-BitGDI-CFbsScreenDevice-PublicApi -//! @SYMScriptTestEnvironment This test script requires a basic ROM. - -/////////////////////////////////////////////////////////////////////////////// -// GRAPHICS-BitGDI-CFbsScreenDevice-PublicApi.script -// -// Tests all public elements of the CFbsScreenDevice class -// as a means of confidence that the API works as expected. -// -// The purpose is to provide a regression test suite of PublishedAll APIs for -// CFbsScreenDevice related classes. -// Negative testing is performed to confirm that correct errors are returned -// when incorrect parameters are given. -// -// The tests are fully automated. -/////////////////////////////////////////////////////////////////////////////// - - -LOAD_SUITE T_GraphicsBitGDIAPI -DELAY 1000 - -// **************************************************************************** -// Class Name CFbsScreenDevice -// **************************************************************************** - -START_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0001 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0001 -//! @SYMAPI CFbsScreenDevice::NewL(const TDesC{ref}, TDisplayMode) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 03/12/2008 -//! @SYMTestCaseDesc Create CFbsScreenDevice object by using NewL(const TDesC{ref}, TDisplayMode) and destroy it. -//! @SYMTestActions 1.Create CFbsScreenDevice Object by using TDesC{ref} and TDisplayMode params. -//! 2.destroy object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CFbsScreenDevice was created without causing panic. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini - CREATE_OBJECT CFbsScreenDevice fbsscrdev - CREATE_OBJECT RFbsSession rfbssession - COMMAND rfbssession Constructor - COMMAND rfbssession Connect - COMMAND fbsscrdev NewL GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0001-NewL_command03 - COMMAND fbsscrdev ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0001 - -START_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0002 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0002 -//! @SYMAPI CFbsScreenDevice::NewL(const TDesC{ref}, TDisplayMode) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 03/12/2008 -//! @SYMTestCaseDesc Negtive case, create the CFbsScreenDevice object with a bad TDisplayMode arguments. -//! @SYMTestActions 1.create CFbsScreenDevice object with a bad TDisplayMode. -//! 2.destroy object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults NewL(const TDesC{ref}, TDisplayMode) is called with KErrNotSupported returned. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini - CREATE_OBJECT CFbsScreenDevice fbsscrdev - CREATE_OBJECT RFbsSession rfbssession - COMMAND rfbssession Constructor - COMMAND rfbssession Connect - COMMAND !Error=-5 fbsscrdev NewL GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0002-NewL_command03 - COMMAND fbsscrdev ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0002 - -START_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0003 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0003 -//! @SYMAPI CFbsScreenDevice::NewL(const TDesC{ref}, TDisplayMode, TRgb) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 03/12/2008 -//! @SYMTestCaseDesc Create CFbsScreenDevice object by using NewL(const TDesC{ref}, TDisplayMode, TRgb) and destory it. -//! @SYMTestActions 1.Create CFbsScreenDevice object by NewL(const TDesC{ref}, TDisplayMode, TRgb). -//! 2.destroy object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CFbsScreenDevice was created without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini - CREATE_OBJECT CFbsScreenDevice fbsscrdev - CREATE_OBJECT RFbsSession rfbssession - COMMAND rfbssession Constructor - COMMAND rfbssession Connect - COMMAND fbsscrdev NewL GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0003-NewL_command03 - COMMAND fbsscrdev ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0003 - -START_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0004 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0004 -//! @SYMAPI CFbsScreenDevice::NewL(const TDesC{ref}, TDisplayMode, TRgb) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 03/12/2008 -//! @SYMTestCaseDesc Negtive case, create CFbsScreenDevice object with bad TDisplayMode arguments -//! @SYMTestActions 1.create CFbsScreenDevice object with a bad TDisplayMode. -//! 2.destroy object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults NewL(const TDesC{ref}, TDisplayMode, TRgb) is called with KErrNotSupported returned. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini - CREATE_OBJECT CFbsScreenDevice fbsscrdev - CREATE_OBJECT RFbsSession rfbssession - COMMAND rfbssession Constructor - COMMAND rfbssession Connect - COMMAND !Error=-5 fbsscrdev NewL GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0004-NewL_command03 - COMMAND rfbssession Disconnect - COMMAND fbsscrdev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0004 - -START_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0005 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0005 -//! @SYMAPI CFbsScreenDevice::NewL(TInt, TDisplayMode) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 03/12/2008 -//! @SYMTestCaseDesc Create CFbsScreenDevice object by using NewL(TInt, TDisplayMode) method and destroy it. -//! @SYMTestActions 1.create CfbsScreenDevice object by NewL(TInt, TDisplayMode) method. -//! 2.destroy object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CFbsScreenDevice was created without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini - CREATE_OBJECT CFbsScreenDevice fbsscrdev - CREATE_OBJECT RFbsSession rfbssession - COMMAND rfbssession Constructor - COMMAND rfbssession Connect - COMMAND fbsscrdev NewL GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0005-NewL_command03 - COMMAND fbsscrdev ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0005 - -START_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0006 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0006 -//! @SYMAPI CFbsScreenDevice::NewL(TInt, TDisplayMode) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 03/12/2008 -//! @SYMTestCaseDesc Negtive case, create CFbsScreenDevice object with bad aScreenNo argument -//! @SYMTestActions 1.create CFbsScreenDevice object with bad aScreenNo argument. -//! 2.destroy object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults NewL(TInt, TDisplayMode) is called with KErrNotSupported returned. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini - CREATE_OBJECT CFbsScreenDevice fbsscrdev - CREATE_OBJECT RFbsSession rfbssession - COMMAND rfbssession Constructor - COMMAND rfbssession Connect - COMMAND !Error=-5 fbsscrdev NewL GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0006-NewL_command03 - COMMAND rfbssession Disconnect - COMMAND fbsscrdev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0006 - -START_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0007 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0007 -//! @SYMAPI CFbsScreenDevice::NewL(TInt, TDisplayMode) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 03/12/2008 -//! @SYMTestCaseDesc Negtive case, create CFbsScreenDevice object with bad aDispMode argument -//! @SYMTestActions 1.create CFbsScreenDevice object with bad aDispMode argument. -//! 2.destroy object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults NewL(TInt, TDisplayMode) is called with KErrNotSupported returned. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini - CREATE_OBJECT CFbsScreenDevice fbsscrdev - CREATE_OBJECT RFbsSession rfbssession - COMMAND rfbssession Constructor - COMMAND rfbssession Connect - COMMAND !Error=-5 fbsscrdev NewL GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0007-NewL_command03 - COMMAND rfbssession Disconnect - COMMAND fbsscrdev ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0007 - -START_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0008 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0008 -//! @SYMAPI CFbsScreenDevice::~CFbsScreenDevice() -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 03/12/2008 -//! @SYMTestCaseDesc Create a CFbsScreenDevice attached to a RFbsSession and destruct it. -//! @SYMTestActions 1. Create and connect a RFbsSession -//! 2. Create a CFbsScreenDevice attached to RFbsSession -//! 3. Destruct the CFbsScreenDevice object -//! 4. Disconnect the RFbsSession object -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CFbsScreenDevice was destructed without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini - CREATE_OBJECT CFbsScreenDevice fbsscrdev - CREATE_OBJECT RFbsSession rfbssession - COMMAND rfbssession Constructor - COMMAND rfbssession Connect - COMMAND fbsscrdev NewL GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0008-NewL_command03 - COMMAND fbsscrdev ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0008 - -START_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0009 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0009 -//! @SYMAPI CFbsScreenDevice::HardwareBitmap() -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 03/12/2008 -//! @SYMTestCaseDesc Create a CFbsScreenDevice object and get the handle from HardwareBitmap() function. -//! @SYMTestActions 1.Create a CFbsScreenDevice attached to RFbsSession. -//! 2.Get the handle from CFbsScreenDevice::HardwareBitmap() function. -//! 3.Destroy all objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults HardwareBitmap() is called without panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini - CREATE_OBJECT CFbsScreenDevice fbsscrdev - CREATE_OBJECT RFbsSession rfbssession - COMMAND rfbssession Constructor - COMMAND rfbssession Connect - COMMAND fbsscrdev NewL GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0009-NewL_command03 - COMMAND fbsscrdev HardwareBitmap - COMMAND fbsscrdev ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0009 - -START_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0010 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0010 -//! @SYMAPI CFbsScreenDevice::Update() -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 03/12/2008 -//! @SYMTestCaseDesc Draw a line on the CFbsScreenDevice object and update the screen. -//! @SYMTestActions 1. Create CFbsScreenDevice attached to RFbsSession. -//! 2. Create CFbsBitGc and attached to CFbsScreenDevice. -//! 3. Clear the screen. -//! 4. Draw a line from (20,20) to (60,60) on to the screen device. -//! 5. Update the screen device. -//! 6. Verify the color of the Pixels (20,20) (40,40) and (59,59), the color is Black. -//! 7. Destroy all objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Update() is called without panic and the color of the pixels is as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini - CREATE_OBJECT CFbsScreenDevice fbsscrdev - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsBitGc fbsbitgc - COMMAND rfbssession Constructor - COMMAND rfbssession Connect - COMMAND fbsscrdev NewL GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0010-NewL_command03 - COMMAND fbsbitgc NewL - COMMAND fbsbitgc Activate GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0010-Activate_command05 - COMMAND fbsbitgc Clear - COMMAND fbsbitgc DrawLine GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0010-DrawLine_command07 - COMMAND fbsscrdev Update - COMMAND fbsscrdev checkPixels GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0010-checkPixels_command09 - COMMAND fbsscrdev ~ - COMMAND fbsbitgc ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0010 - -START_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0011 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0011 -//! @SYMAPI CFbsScreenDevice::Update(const TRegion{ref}) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 03/12/2008 -//! @SYMTestCaseDesc Draw a line on the CFbsScreenDevice object and update a region on the screen. -//! @SYMTestActions 1. Create CFbsScreenDevice attached to RFbsSession. -//! 2. Create CFbsBitGc and attached to CFbsScreenDevice. -//! 3. Clear the screen. -//! 4. Draw a line from (20,20) to (60,60) on to the screen device. -//! 5. Update a region (20,20),(70,70) on the screen device. -//! 6. Verify the color of the Pixels (20,20) (40,40) and (59,59), the color is Black. -//! 7. Destroy all objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Update() is called without panic and the color of the pixels is as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini - CREATE_OBJECT CFbsScreenDevice fbsscrdev - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsBitGc fbsbitgc - COMMAND rfbssession Constructor - COMMAND rfbssession Connect - COMMAND fbsscrdev NewL GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0011-NewL_command03 - COMMAND fbsbitgc NewL - COMMAND fbsbitgc Activate GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0011-Activate_command05 - COMMAND fbsbitgc Clear - COMMAND fbsbitgc DrawLine GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0011-DrawLine_command07 - COMMAND fbsscrdev Update GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0011-Update_command08 - COMMAND fbsscrdev checkPixels GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0011-checkPixels_command09 - COMMAND fbsscrdev ~ - COMMAND fbsbitgc ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0011 - -START_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0012 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0012 -//! @SYMAPI CFbsScreenDevice::SetAutoUpdate(TBool) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 03/12/2008 -//! @SYMTestCaseDesc Set EFalse to SetAutoUpdate and draw a line onto the device. -//! @SYMTestActions 1. Create CFbsScreenDevice attached to RFbsSession. -//! 2. Create CFbsBitGc and attached to CFbsScreenDevice. -//! 3. Clear the screen. -//! 4. Set EFalse to SetAutoUpdate(). -//! 5. Draw a line from (50,20) to (56,20) on the screen device. -//! 6. Verify the color of the Pixels (50,20)(53,20) and (54,20). -//! 7. Update the screen device. -//! 8. Verify the color of the Pixels (50,20)(53,20) and (54,20). -//! 9. Destroy all object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults SetAutoUpdate(EFalse) is called without panic and the color of the pixels is as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini - CREATE_OBJECT CFbsScreenDevice fbsscrdev - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsBitGc fbsbitgc - COMMAND rfbssession Constructor - COMMAND rfbssession Connect - COMMAND fbsscrdev NewL GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0012-NewL_command03 - COMMAND fbsbitgc NewL - COMMAND fbsbitgc Activate GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0012-Activate_command05 - COMMAND fbsscrdev SetAutoUpdate GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0012-SetAutoUpdate_command06 - COMMAND fbsbitgc Clear - COMMAND fbsbitgc SetPenColor GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0012-SetPenColor_command08 - COMMAND fbsbitgc DrawLine GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0012-DrawLine_command09 - COMMAND fbsscrdev checkPixels GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0012-checkPixels_command10 - COMMAND fbsscrdev Update - COMMAND fbsscrdev checkPixels GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0012-checkPixels_command12 - COMMAND fbsscrdev ~ - COMMAND fbsbitgc ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0012 - -START_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0013 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0013 -//! @SYMAPI CFbsScreenDevice::SetAutoUpdate(TBool) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 03/12/2008 -//! @SYMTestCaseDesc Set ETrue to SetAutoUpdate and draw a line onto the device. -//! @SYMTestActions 1. Create CFbsScreenDevice attached to RFbsSession. -//! 2. Create CFbsBitGc and attached to CFbsScreenDevice. -//! 3. Clear the screen. -//! 4. Set ETrue to SetAutoUpdate(). -//! 5. Draw a line from (20,20) to (50,60) on the screen device. -//! 6. Verify the color of the Pixels (20,20)(35,40) and (50,60). -//! 7. Update the screen device. -//! 8. Verify the color of the Pixels (20,20)(35,40) and (50,60). -//! 9. Destroy all object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults SetAutoUpdate(ETrue) is called without panic and the color of the pixels is as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini - CREATE_OBJECT CFbsScreenDevice fbsscrdev - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsBitGc fbsbitgc - COMMAND rfbssession Constructor - COMMAND rfbssession Connect - COMMAND fbsscrdev NewL GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0013-NewL_command03 - COMMAND fbsbitgc NewL - COMMAND fbsbitgc Activate GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0013-Activate_command05 - COMMAND fbsscrdev SetAutoUpdate GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0013-SetAutoUpdate_command06 - COMMAND fbsbitgc DrawLine GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0013-DrawLine_command07 - COMMAND fbsscrdev checkPixels GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0013-checkPixels_command08 - COMMAND fbsscrdev ~ - COMMAND fbsbitgc ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0013 - -START_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0014 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0014 -//! @SYMAPI CFbsScreenDevice::DrawSpriteBegin() -//! CFbsScreenDevice::DrawSpriteEnd() -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 03/12/2008 -//! @SYMTestCaseDesc Create CFbsScreenDevice object and test DrawSpriteBegin and DrawSpriteEnd. -//! @SYMTestActions 1. Create CFbsScreenDevice attached to RFbsSession. -//! 2. Begin draw sprite on the device. -//! 3. End draw sprite on the device. -//! 4. Destroy all objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults DrawSpriteBegin() & DrawSpriteEnd() are called without panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini - CREATE_OBJECT CFbsScreenDevice fbsscrdev - CREATE_OBJECT RFbsSession rfbssession - COMMAND rfbssession Constructor - COMMAND rfbssession Connect - COMMAND fbsscrdev NewL GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0014-NewL_command03 - COMMAND fbsscrdev DrawSpriteBegin - COMMAND fbsscrdev DrawSpriteEnd - COMMAND fbsscrdev ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0014 - -START_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0015 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0015 -//! @SYMAPI CFbsScreenDevice::ChangeScreenDevice(CFbsScreenDevice{ptr}) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 03/12/2008 -//! @SYMTestCaseDesc Create two CFbsScreenDevice Objects and changescreendevice with each other. -//! @SYMTestActions 1. Create CFbsScreenDevice1 and attach to CFbssession. -//! 2. Create CFbsScreenDevice2 and attach to CFbssession. -//! 3. Replace CFbsScreenDevice1 with CFbsScreenDevice2. -//! 4. Destroy all object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults ChangeScreenDevice() is called without panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini - CREATE_OBJECT CFbsScreenDevice fbsscrdev1 - CREATE_OBJECT CFbsScreenDevice fbsscrdev2 - CREATE_OBJECT RFbsSession rfbssession - COMMAND rfbssession Constructor - COMMAND rfbssession Connect - COMMAND fbsscrdev1 NewL GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0015-NewL_command03 - COMMAND fbsscrdev2 NewL GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0015-NewL_command04 - COMMAND fbsscrdev2 ChangeScreenDevice GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0015-ChangeScreenDevice_command05 - COMMAND fbsscrdev1 ~ - COMMAND fbsscrdev2 ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0015 - -START_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0016 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0016 -//! @SYMAPI CFbsScreenDevice::ChangeScreenDevice(CFbsScreenDevice{ptr}) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 03/12/2008 -//! @SYMTestCaseDesc Negtive case, create CFbsScreenDevice object connected to RFbsSession. -//! ChangeScreenDevice with bad CFbsScreenDevice pointer. -//! Destroy all objects. -//! @SYMTestActions 1. create CFbsScreenDevice object. -//! 2. connect CFbsScreenDevice to RFbsSession object -//! 3. change device with a bad pointer. -//! 4. destroy all objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults ChangeScreenDevice() is called without error. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini - CREATE_OBJECT CFbsScreenDevice fbsscrdev1 - CREATE_OBJECT CFbsScreenDevice fbsscrdev2 - CREATE_OBJECT RFbsSession rfbssession - COMMAND rfbssession Constructor - COMMAND rfbssession Connect - COMMAND fbsscrdev2 NewL GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0016-NewL_command03 - COMMAND fbsscrdev2 ChangeScreenDevice GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0016-ChangeScreenDevice_command04 - COMMAND fbsscrdev2 ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0016 - -START_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0017 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0017 -//! @SYMAPI CFbsScreenDevice::ChangeScreenDevice(CFbsScreenDevice{ptr}) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Negtive case, create CFbsScreenDevice object and attach to RFbsSession object. -//! ChangeScreenDevice with itself. -//! Destroy all objects. -//! @SYMTestActions 1. create CFbsScreenDevice and attach to RFbsSession. -//! 2. changeScreenDevice with itself. -//! 3. destroy all objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults ChangeScreenDevice() is called without error. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini - CREATE_OBJECT CFbsScreenDevice fbsscrdev - CREATE_OBJECT RFbsSession rfbssession - COMMAND rfbssession Constructor - COMMAND rfbssession Connect - COMMAND fbsscrdev NewL GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0017-NewL_command03 - COMMAND fbsscrdev ChangeScreenDevice GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0017-ChangeScreenDevice_command04 - COMMAND fbsscrdev ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0017 - -START_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0018 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0018 -//! @SYMAPI CFbsScreenDevice::CancelSprite() -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Create CFbsScreenDevice object and attach to RFbsSession. -//! Begin to draw a sprite and cancel it. -//! @SYMTestActions 1. create CFbsScreenDevice attached to RFbsSession. -//! 2. Begin to draw a sprite. -//! 3. Cancel draw sprite. -//! 4. destroy all object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults DrawSpriteBegin() & CancelSprite() are called without panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini - CREATE_OBJECT CFbsScreenDevice fbsscrdev - CREATE_OBJECT RFbsSession rfbssession - COMMAND rfbssession Constructor - COMMAND rfbssession Connect - COMMAND fbsscrdev NewL GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0018-NewL_command03 - COMMAND fbsscrdev DrawSpriteBegin - COMMAND fbsscrdev CancelSprite - COMMAND fbsscrdev ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0018 - -START_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0019 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0019 -//! @SYMAPI CFbsScreenDevice::GetPixel(TRgb{ref}, const TPoint{ref}) const -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Gets color of specified point of screen -//! @SYMTestActions 1. Creates and connects a RFbsSession -//! 2. Creates a CFbsScreenDevice attached to a RFbsSession -//! 3. Gets pixel at point(1, 1) to verify the color of pixel is white -//! 4. Destructs the CFbsScreenDevice object -//! 5. Closes the CFbsScreenDevice object -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The color of specified point matchs with expected value. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsScreenDevice fbsscrdev - COMMAND rfbssession Constructor - COMMAND rfbssession Connect - COMMAND fbsscrdev NewL GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0019-NewL_command03 - COMMAND fbsscrdev GetPixel GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0019-GetPixel_command04 - COMMAND fbsscrdev ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0019 - -START_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0020 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0020 -//! @SYMAPI CFbsScreenDevice::GetPixel(TRgb{ref}, const TPoint{ref}) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Negtive case, Test for negative x- and y-coordinate/too big x- and y-coordinate. -//! @SYMTestActions 1. Creates and connects a RFbsSession -//! 2. Creates a CFbsScreenDevice attached to a RFbsSession -//! 3. Gets pixel at point(-1, 0) and check the RGB color is white. -//! 4. Gets pixel at point(0, -1) and check the RGB color is white. -//! 5. Gets pixel at point(-1, -1) and check the RGB color is white. -//! 6. Gets pixel at point(10000, 0) and check the RGB color is white. -//! 7. Gets pixel at point(0, 10000) and check the RGB color is white. -//! 8. Gets pixel at point(10000, 10000) and check the RGB color is white. -//! 9. Destruct and close all objects used. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults GetPixel doesn't cause panic and matchs with the expected color. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsScreenDevice fbsscrdev - COMMAND rfbssession Constructor - COMMAND rfbssession Connect - COMMAND fbsscrdev NewL GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0020-NewL_command03 - COMMAND fbsscrdev GetPixel GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0020-GetPixel_command04 - COMMAND fbsscrdev GetPixel GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0020-GetPixel_command05 - COMMAND fbsscrdev GetPixel GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0020-GetPixel_command06 - COMMAND fbsscrdev GetPixel GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0020-GetPixel_command07 - COMMAND fbsscrdev GetPixel GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0020-GetPixel_command08 - COMMAND fbsscrdev GetPixel GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0020-GetPixel_command09 - COMMAND fbsscrdev ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0020 - -START_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0021 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0021 -//! @SYMAPI CFbsScreenDevice::HorizontalPixelsToTwips(TInt) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Translates a horizontal dimension of a screen device in pixels into twips -//! @SYMTestActions 1. Create and connect a RFbsSession -//! 2. Create a CFbsScreenDevice attached to RFbsSession -//! 3. Translates a horizontal dimension pixels into twips -//! 4. Destruct the CFbsScreenDevice object -//! 5. Disconnect the RFbsSession object -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults HorizontalPixelsToTwips doesn't cause panic and the returned twips are as expected -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsScreenDevice fbsscrdev - COMMAND rfbssession Constructor - COMMAND rfbssession Connect - COMMAND fbsscrdev NewL GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0021-NewL_command03 - COMMAND fbsscrdev HorizontalPixelsToTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0021-HorizontalPixelsToTwips_command04 - COMMAND fbsscrdev ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0021 - -START_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0022 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0022 -//! @SYMAPI CFbsScreenDevice::HorizontalPixelsToTwips(TInt) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Negitve case, Uses big pixels/0/small negative pixels -//! @SYMTestActions 1. Create and connect a RFbsSession -//! 2. Create a CFbsScreenDevice attached to RFbsSession -//! 3. Translates three horizontal dimension in pixels into twips -//! 4. Input pixel = 64000000, return 1774789 for emulator and 892600000 for H4. -//! 5. Input pixel = 0, return 0. -//! 6. Input pixel = -64000000, return -1774788 for emulator and -892599999 for H4. -//! 7. Destruct the CFbsScreenDevice object -//! 8. Disconnect the RFbsSession object -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults HorizontalPixelsToTwips doesn't cause panic and the returned twips are as expected -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsScreenDevice fbsscrdev - COMMAND rfbssession Constructor - COMMAND rfbssession Connect - COMMAND fbsscrdev NewL GRAPHICS-BitGDI-CFbsScreenDevice-PublicApi-0022-new_command03 - COMMAND fbsscrdev HorizontalPixelsToTwips GRAPHICS-BitGDI-CFbsScreenDevice-PublicApi-0022-HorizontalPixelsToTwips_command04 - COMMAND fbsscrdev HorizontalPixelsToTwips GRAPHICS-BitGDI-CFbsScreenDevice-PublicApi-0022-HorizontalPixelsToTwips_command05 - COMMAND fbsscrdev HorizontalPixelsToTwips GRAPHICS-BitGDI-CFbsScreenDevice-PublicApi-0022-HorizontalPixelsToTwips_command06 - COMMAND fbsscrdev ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0022 - -START_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0023 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0023 -//! @SYMAPI CFbsScreenDevice::VerticalPixelsToTwips(TInt) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Translates a vertical dimension of a screen device in pixels into twips -//! @SYMTestActions 1. Create and connect a RFbsSession -//! 2. Create a CFbsScreenDevice attached to RFbsSession -//! 3. Translates a vertical dimension pixels into twips -//! 4. Destruct the CFbsScreenDevice object -//! 5. Disconnect the RFbsSession object -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults VerticalPixelsToTwips doesn't cause panic and the returned twips are as expected -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsScreenDevice fbsscrdev - COMMAND rfbssession Constructor - COMMAND rfbssession Connect - COMMAND fbsscrdev NewL GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0023-NewL_command03 - COMMAND fbsscrdev VerticalPixelsToTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0023-VerticalPixelsToTwips_command04 - COMMAND fbsscrdev ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0023 - -START_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0024 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0024 -//! @SYMAPI CFbsScreenDevice::VerticalPixelsToTwips(TInt) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Negtive case, Uses big pixels/0/small negative pixels -//! @SYMTestActions 1. Create and connect a RFbsSession -//! 2. Create a CFbsScreenDevice attached to RFbsSession -//! 3. Translates three vertical dimension in pixels into twips -//! 4. Input pixel = 1200000, return 1404698 for emulator and 304100000 for H4. -//! 5. Input pixel = 0, return 0. -//! 6. Input pixel = -1200000, return -1404697 for emulator and -304099999 for H4. -//! 7. Destruct the FbsScreenDevice object -//! 8. Disconnect the RFbsSession object -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults VerticalPixelsToTwips doesn't cause panic and the returned twips are as expected -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsScreenDevice fbsscrdev - COMMAND rfbssession Constructor - COMMAND rfbssession Connect - COMMAND fbsscrdev NewL GRAPHICS-BitGDI-CFbsScreenDevice-PublicApi-0024-new_command03 - COMMAND fbsscrdev VerticalPixelsToTwips GRAPHICS-BitGDI-CFbsScreenDevice-PublicApi-0024-VerticalPixelsToTwips_command04 - COMMAND fbsscrdev VerticalPixelsToTwips GRAPHICS-BitGDI-CFbsScreenDevice-PublicApi-0024-VerticalPixelsToTwips_command05 - COMMAND fbsscrdev VerticalPixelsToTwips GRAPHICS-BitGDI-CFbsScreenDevice-PublicApi-0024-VerticalPixelsToTwips_command06 - COMMAND fbsscrdev ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0024 - -START_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0025 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0025 -//! @SYMAPI CFbsScreenDevice::HorizontalTwipsToPixels(TInt) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Translates a horizontal dimension of a screen device in twips into pixels -//! @SYMTestActions 1. Create and connect a RFbsSession -//! 2. Create a CFbsScreenDevice attached to RFbsSession -//! 3. Translates a horizontal dimension twips into pixels -//! 4. Destruct the CFbsScreenDevice object -//! 5. Disconnect the RFbsSession object -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults HorizontalTwipsToPixels doesn't cause panic and the returned pixels are as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsScreenDevice fbsscrdev - COMMAND rfbssession Constructor - COMMAND rfbssession Connect - COMMAND fbsscrdev NewL GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0025-NewL_command03 - COMMAND fbsscrdev HorizontalTwipsToPixels GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0025-HorizontalTwipsToPixels_command04 - COMMAND fbsscrdev ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0025 - -START_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0026 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0026 -//! @SYMAPI CFbsScreenDevice::HorizontalTwipsToPixels(TInt) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Negtive case, Uses big twips/0/small negative twips -//! @SYMTestActions 1. Create and connect a RFbsSession -//! 2. Create a CFbsScreenDevice attached to RFbsSession -//! 3. Translates three horizontal dimension in twips into pixels -//! 4. Input twips = 1774789, return 64000000 for emulator and 54635895 for H4. -//! 5. Input twips = 0, return 0. -//! 6. Input twips = -1774789, return -63999999 for emulator and -54635894 for H4. -//! 7. Destruct the CFbsScreenDevice object -//! 8. Disconnect the RFbsSession object -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults HorizontalTwipsToPixels doesn't cause panic and the returned pixels are as expected -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsScreenDevice fbsscrdev - COMMAND rfbssession Constructor - COMMAND rfbssession Connect - COMMAND fbsscrdev NewL GRAPHICS-BitGDI-CFbsScreenDevice-PublicApi-0026-new_command03 - COMMAND fbsscrdev HorizontalTwipsToPixels GRAPHICS-BitGDI-CFbsScreenDevice-PublicApi-0026-HorizontalTwipsToPixels_command04 - COMMAND fbsscrdev HorizontalTwipsToPixels GRAPHICS-BitGDI-CFbsScreenDevice-PublicApi-0026-HorizontalTwipsToPixels_command05 - COMMAND fbsscrdev HorizontalTwipsToPixels GRAPHICS-BitGDI-CFbsScreenDevice-PublicApi-0026-HorizontalTwipsToPixels_command06 - COMMAND fbsscrdev ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0026 - -START_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0027 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0027 -//! @SYMAPI CFbsScreenDevice::VerticalTwipsToPixels(TInt) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Translates a vertical dimension of a screen device in twips into pixels -//! @SYMTestActions 1. Create and connect a RFbsSession -//! 2. Create a CFbsScreenDevice attached to RFbsSession -//! 3. Translates a vertical dimension twips into pixels -//! 4. Destruct the CFbsScreenDevice object -//! 5. Disconnect the RFbsSession object -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults VerticalTwipsToPixels doesn't cause panic and the returned pixels are as expected -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsScreenDevice fbsscrdev - COMMAND rfbssession Constructor - COMMAND rfbssession Connect - COMMAND fbsscrdev NewL GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0027-NewL_command03 - COMMAND fbsscrdev VerticalTwipsToPixels GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0027-VerticalTwipsToPixels_command04 - COMMAND fbsscrdev ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0027 - -START_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0028 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0028 -//! @SYMAPI CFbsScreenDevice::VerticalTwipsToPixels(TInt) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Negtive case, Uses big twips/0/small negative twips -//! @SYMTestActions 1. Create and connect a RFbsSession -//! 2. Create a CFbsScreenDevice attached to RFbsSession -//! 3. Translates three vertical dimension in twips into pixels -//! 4. Input twips = 1404698, return 12000000 for emulator and 22555738 for H4. -//! 5. Input twips = 0, return 0. -//! 6. Input twips = -1404698, return -11999999 for emulator and -22555737 for H4. -//! 7. Destruct the CFbsScreenDevice object -//! 8. Disconnect the RFbsSession object -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults VerticalTwipsToPixels doesn't cause panic and the returned pixels are as expected -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsScreenDevice fbsscrdev - COMMAND rfbssession Constructor - COMMAND rfbssession Connect - COMMAND fbsscrdev NewL GRAPHICS-BitGDI-CFbsScreenDevice-PublicApi-0028-new_command03 - COMMAND fbsscrdev VerticalTwipsToPixels GRAPHICS-BitGDI-CFbsScreenDevice-PublicApi-0028-VerticalTwipsToPixels_command04 - COMMAND fbsscrdev VerticalTwipsToPixels GRAPHICS-BitGDI-CFbsScreenDevice-PublicApi-0028-VerticalTwipsToPixels_command05 - COMMAND fbsscrdev VerticalTwipsToPixels GRAPHICS-BitGDI-CFbsScreenDevice-PublicApi-0028-VerticalTwipsToPixels_command06 - COMMAND fbsscrdev ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0028 - -START_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0029 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0029 -//! @SYMAPI CFbsScreenDevice::GetScanLine(TDes8{ref}, const TPoint{ref}, TInt, TDisplayMode) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Gets a scanline into a buffer -//! @SYMTestActions 1. Create and connect a RFbsSession. -//! 2. Create a CFbsScreenDevice attached to RFbsSession. -//! 3. Create a CFbsBitGc object. -//! 4. Draw a line from (25,25) to (45,25) on CFbsBitGc. -//! 5. Get scanline from screen and verify the pixels just drawed. -//! 6. Disconnect and destruct all objects used. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. The scanline get copied, and no panic get raised -//! 2. Check the scanline(Get pixel (1,1) of the scanline, the color is Black). -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsScreenDevice fbsscrdev - CREATE_OBJECT CFbsBitGc fbsbitgc - COMMAND rfbssession Constructor - COMMAND rfbssession Connect - COMMAND fbsscrdev NewL GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0029-NewL_command03 - COMMAND fbsbitgc NewL - COMMAND fbsbitgc Activate GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0029-Activate_command05 - COMMAND fbsbitgc DrawLine GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0029-DrawLine_command06 - COMMAND fbsscrdev Update - COMMAND fbsscrdev GetScanLine GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0029-GetScanLine_command08 - COMMAND fbsscrdev ~ - COMMAND fbsbitgc ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0029 - -START_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0030 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0030 -//! @SYMAPI CFbsScreenDevice::GetScanLine(TDes8{ref}, const TPoint{ref}, TInt, TDisplayMode) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Negative test, uses a zero-length buffer. -//! @SYMTestActions 1. Create and connect a RFbsSession. -//! 2. Create a CFbsScreenDevice attached to RFbsSession. -//! 3. Get scanline from screen. -//! 4. Disconnect and destruct all objects used. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults GetScanLine is called without panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsScreenDevice fbsscrdev - COMMAND rfbssession Constructor - COMMAND rfbssession Connect - COMMAND fbsscrdev NewL GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0030-NewL_command03 - COMMAND fbsscrdev GetScanLine GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0030-GetScanLine_command04 - COMMAND fbsscrdev ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0030 - -START_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0031 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0031 -//! @SYMAPI CFbsScreenDevice::GetScanLine(TDes8{ref}, const TPoint{ref}, TInt, TDisplayMode) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Negtive case, Test for a zero-length scanline. -//! @SYMTestActions 1. Create and connect a RFbsSession. -//! 2. Create a CFbsScreenDevice attached to RFbsSession. -//! 3. Get scanline from screen. -//! 4. Disconnect and destruct all objects used. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults GetScanLine is called without panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsScreenDevice fbsscrdev - COMMAND rfbssession Constructor - COMMAND rfbssession Connect - COMMAND fbsscrdev NewL GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0031-NewL_command03 - COMMAND fbsscrdev GetScanLine GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0031-GetScanLine_command04 - COMMAND fbsscrdev ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0031 - -START_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0032 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0032 -//! @SYMAPI CFbsScreenDevice::GetScanLine(TDes8{ref}, const TPoint{ref}, TInt, TDisplayMode) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Negtive case, Test for a negative-length scanline. -//! @SYMTestActions 1. Create and connect a RFbsSession. -//! 2. Create a CFbsScreenDevice attached to RFbsSession. -//! 3. Get scanline from screen. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults GetScanLine is called with USER 23 panic received. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsScreenDevice fbsscrdev - COMMAND rfbssession Constructor - COMMAND rfbssession Connect - COMMAND fbsscrdev NewL GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0032-NewL_command03 - COMMAND fbsscrdev GetScanLine GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0032-GetScanLine_command04 - END_TEST_BLOCK !PanicString=USER !PanicCode=23 - RUN_TEST_STEP 100 T_GraphicsBitGDIAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0032 - -START_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0033 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0033 -//! @SYMAPI CFbsScreenDevice::GetScanLine(TDes8{ref}, const TPoint{ref}, TInt, TDisplayMode) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Negtive case, Test for a 99999-length scanline with starting point (0, 0). -//! @SYMTestActions 1. Create and connect a RFbsSession. -//! 2. Create a CFbsScreenDevice attached to RFbsSession. -//! 3. Get scanline from screen. -//! 4. Disconnect and destruct all objects used. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults GetScanLine is called without panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsScreenDevice fbsscrdev - COMMAND rfbssession Constructor - COMMAND rfbssession Connect - COMMAND fbsscrdev NewL GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0033-NewL_command03 - COMMAND fbsscrdev GetScanLine GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0033-GetScanLine_command04 - COMMAND fbsscrdev ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0033 - -START_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0034 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0034 -//! @SYMAPI CFbsScreenDevice::GetScanLine(TDes8{ref}, const TPoint{ref}, TInt, TDisplayMode) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Negtive case, Test for a 10-length scanline with negative starting point (-1, -1). -//! @SYMTestActions 1. Create and connect a RFbsSession. -//! 2. Create a CFbsScreenDevice attached to RFbsSession. -//! 3. Create CFbsBitGc object. -//! 4. Clear screen -//! 5. Get scanline from screen. -//! 6. Disconnect and destruct all objects used. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults GetScanLine is called without any panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsScreenDevice fbsscrdev - CREATE_OBJECT CFbsBitGc fbsbitgc - COMMAND rfbssession Constructor - COMMAND rfbssession Connect - COMMAND fbsscrdev NewL GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0034-NewL_command03 - COMMAND fbsbitgc NewL - COMMAND fbsbitgc Activate GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0034-Activate_command05 - COMMAND fbsbitgc Clear - COMMAND fbsscrdev GetScanLine GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0034-GetScanLine_command07 - COMMAND fbsscrdev ~ - COMMAND fbsbitgc ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0034 - -START_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0035 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0035 -//! @SYMAPI CFbsScreenDevice::GetScanLine(TDes8{ref}, const TPoint{ref}, TInt, TDisplayMode) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Negtive case, Test for a 10-length scanline with starting point (10000, 10000). -//! @SYMTestActions 1. Create and connect a RFbsSession. -//! 2. Create a CFbsScreenDevice attached to RFbsSession. -//! 3. Create CFbsBitGc object. -//! 4. Clear screen -//! 5. Get scanline from screen. -//! 6. Disconnect and destruct all objects used. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults GetScanLine doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsScreenDevice fbsscrdev - CREATE_OBJECT CFbsBitGc fbsbitgc - COMMAND rfbssession Constructor - COMMAND rfbssession Connect - COMMAND fbsscrdev NewL GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0035-NewL_command03 - COMMAND fbsbitgc NewL - COMMAND fbsbitgc Activate GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0035-Activate_command05 - COMMAND fbsbitgc Clear - COMMAND fbsscrdev GetScanLine GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0035-GetScanLine_command07 - COMMAND fbsscrdev ~ - COMMAND fbsbitgc ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0035 - -START_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0036 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0036 -//! @SYMAPI CFbsScreenDevice::GetScanLine(TDes8{ref}, const TPoint{ref}, TInt, TDisplayMode) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Negtive case, Test for a 10-length scanline with starting point (0, 0). -//! @SYMTestActions 1. Create and connect a RFbsSession. -//! 2. Create a CFbsScreenDevice attached to RFbsSession. -//! 3. Get scanline from screen. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. GetScanLine is called with BITGDI panic received. -//! 2. The length of the scanline buffer is as expected. The scanline data in the buffer is as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsScreenDevice fbsscrdev - COMMAND rfbssession Constructor - COMMAND rfbssession Connect - COMMAND fbsscrdev NewL GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0036-NewL_command03 - COMMAND fbsscrdev GetScanLine GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0036-GetScanLine_command04 - END_TEST_BLOCK !PanicString=BITGDI !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsBitGDIAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0036 - -START_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0037 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0037 -//! @SYMAPI CFbsScreenDevice::PaletteAttributes(TBool{ref}, TInt{ref}) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Gets the attributes of the device's palette. -//! @SYMTestActions 1. Create and connect a RFbsSession -//! 2. Create a CFbsScreenDevice attached to RFbsSession. -//! 3. Call PaletteAttributes() method and verify the palette received. -//! 4. Destruct and Close. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults PaletteAttributes retrieves expected values. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsScreenDevice fbsscrdev - COMMAND rfbssession Constructor - COMMAND rfbssession Connect - COMMAND fbsscrdev NewL GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0037-NewL_command03 - COMMAND fbsscrdev PaletteAttributes GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0037-PaletteAttributes_command04 - COMMAND fbsscrdev ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0037 - -START_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0038 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0038 -//! @SYMAPI CFbsScreenDevice::GetPalette(const CPalette{ptr}) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Sets the palette. -//! Gets the screen device's palette. -//! Support for palette will depend on the screen driver implementation, it's not supported in techview. -//! @SYMTestActions 1. Create and connect a RFbsSession -//! 2. Create a Palette. -//! 3. Create a CFbsScreenDevice attached to RFbsSession. -//! 4. Set the palette with the existing palette. -//! 5. Get the palette and verify whether it is the same as we set before. -//! 6. Destruct and Close. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults GetPalette retrieves a palette as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsScreenDevice fbsscrdev - CREATE_OBJECT CPalette palette - COMMAND rfbssession Constructor - COMMAND rfbssession Connect - COMMAND fbsscrdev NewL GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0038-NewL_command03 - COMMAND palette NewL GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0038-NewL_command04 - COMMAND fbsscrdev SetPalette GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0038-SetPalette_command05 - COMMAND fbsscrdev GetPalette GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0038-GetPalette_command06 - COMMAND palette ~ - COMMAND fbsscrdev ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0038 - -START_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0039 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0039 -//! @SYMAPI CFbsScreenDevice::SetPalette(CPalette{ptr}) -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Sets the palette. -//! Gets the screen device's palette. -//! Support for palette will depend on the screen driver implementation, it's not supported in techview. -//! @SYMTestActions 1. Create RFbsSession object -//! 2. Create CFbsScreenDevice Object. -//! 3. Create a Palette. -//! 4. Set the Palette with the existing palette. -//! 5. Get the Palette and verify it with expected. -//! 6. Destruct and Close. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults SetPalette returns KErrNone. GetPalette retrieves a palette as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini - CREATE_OBJECT CFbsScreenDevice fbsscrdev - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CPalette palette - COMMAND palette NewL GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0039-NewL_command01 - COMMAND rfbssession Constructor - COMMAND rfbssession Connect - COMMAND fbsscrdev NewL GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0039-NewL_command04 - COMMAND fbsscrdev SetPalette GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0039-SetPalette_command05 - COMMAND fbsscrdev GetPalette GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0039-GetPalette_command06 - COMMAND palette ~ - COMMAND fbsscrdev ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0039 - -START_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0040 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0040 -//! @SYMAPI CFbsScreenDevice::SizeInTwips() -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Gets the size of the screen device area in twips -//! @SYMTestActions 1. Create and connect a RFbsSession -//! 2. Create a CFbsScreenDevice attached to RFbsSession -//! 3. Get the screen's size in twips and check it with expected. -//! 4. Destruct the CWsScreenDevice object -//! 5. Close the RFbsSession object -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults No panic and the returned screen sizes in twips and twips are as expected -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini - CREATE_OBJECT RFbsSession rfbssession - CREATE_OBJECT CFbsScreenDevice fbsscrdev - COMMAND rfbssession Constructor - COMMAND rfbssession Connect - COMMAND fbsscrdev NewL GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0040-NewL_command03 - COMMAND fbsscrdev SizeInTwips - COMMAND fbsscrdev ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0040 - -START_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0041 -//! @SYMTestCaseID GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0041 -//! @SYMAPI CFbsScreenDevice::ScreenNo() -//! @SYMAuthor Wei Liu -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Create CFbsScreenDevice Object attached to RFbsSession . -//! Check the number received from the ScreenNo function with expected. -//! Destroy object. -//! @SYMTestActions 1.Create CFbsScreenDevice Object attached to RFbsSession. -//! 2.Check the Screen number from ScreenNo() with expected. -//! 3.Destroy object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The number returned from ScreenNo() is as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitGDIAPI \graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini - CREATE_OBJECT CFbsScreenDevice fbsscrdev - CREATE_OBJECT RFbsSession rfbssession - COMMAND rfbssession Constructor - COMMAND rfbssession Connect - COMMAND fbsscrdev NewL GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0041-NewL_command03 - COMMAND fbsscrdev ScreenNo GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0041-ScreenNo_command04 - COMMAND fbsscrdev ~ - COMMAND rfbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0041 - - - - - - - - - - - - - - - - - - - - - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/bitgdi/scripts/GRAPHICS-BITGDI-PolygonFiller-PublicApi.script --- a/graphicsapitest/graphicssvs/bitgdi/scripts/GRAPHICS-BITGDI-PolygonFiller-PublicApi.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,686 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// -//! @file -//! @SYMTestSuiteName GRAPHICS-BITGDI-PolygonFiller-PublicApi -//! @SYMScriptTestEnvironment - -///////////////////////////////////////////////////////////////////// -// GRAPHICS-BITGDI-PolygonFiller-PublicApi.script -// -// Tests all public elements of the CPolygonFiller -// classes as a means of confidence that the APIs work as expected. -// -// The purpose is to provide a regression test suite of PublishedAll APIs for CPolygonFiller -// The tests are fully automated. -///////////////////////////////////////////////////////////////////// - -LOAD_SUITE T_GraphicsBitgdiApi -DELAY 1000 - -START_TESTCASE GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0001 -//! @SYMTestCaseID GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0001 -//! @SYMAPI CPolygonFiller::Construct(const CArrayFix{ptr},CGraphicsContext::TFillRule,TUsage) -//! @SYMAuthor Dorothy Zhang -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Create a CPolygonFiller object with the type: CArrayFix, EAlternate and EGetAllPixelRunsSequentially -//! @SYMTestActions 1. Create a CPolygonFiller object with the type: CArrayFix, EAlternate and EGetAllPixelRunsSequentially -//! 2. Destroy the object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The CpolygonFiller object should be created without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitgdiApi c:\graphics\GRAPHICS-BITGDI-PolygonFiller-PublicAPI.ini - CREATE_OBJECT CPolygonFiller polygonfiller - COMMAND polygonfiller new - COMMAND polygonfiller Construct GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0001-0001-Construct_Command02 - COMMAND polygonfiller ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0001 - -START_TESTCASE GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0002 -//! @SYMTestCaseID GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0002 -//! @SYMAPI CPolygonFiller::Construct(const CArrayFix{ptr},CGraphicsContext::TFillRule,TUsage) -//! @SYMAuthor Dorothy Zhang -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Create a CPolygonFiller object with the type: CArrayFix, EAlternate,EGetPixelRunsSequentiallyForSpecifiedScanLines -//! @SYMTestActions 1. Create a CPolygonFiller object with the type: CArrayFix, EAlternate,EGetPixelRunsSequentiallyForSpecifiedScanLines -//! 2. Destroy the object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The CpolygonFiller object should be created without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitgdiApi c:\graphics\GRAPHICS-BITGDI-PolygonFiller-PublicAPI.ini - CREATE_OBJECT CPolygonFiller polygonfiller - COMMAND polygonfiller new - COMMAND polygonfiller Construct GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0002-0001-Construct_Command02 - COMMAND polygonfiller ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0002 - -START_TESTCASE GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0003 -//! @SYMTestCaseID GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0003 -//! @SYMAPI CPolygonFiller::Construct(const CArrayFix{ptr},CGraphicsContext::TFillRule,TUsage) -//! @SYMAuthor Dorothy Zhang -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Create a CPolygonFiller object with the type: CArrayFix, EWinding,EGetAllPixelRunsSequentially -//! @SYMTestActions 1. Create a CPolygonFiller object with the type: CArrayFix, EWinding,EGetAllPixelRunsSequentially -//! 2. Destroy the object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The CpolygonFiller object should be created without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitgdiApi c:\graphics\GRAPHICS-BITGDI-PolygonFiller-PublicAPI.ini - CREATE_OBJECT CPolygonFiller polygonfiller - COMMAND polygonfiller new - COMMAND polygonfiller Construct GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0003-0001-Construct_Command02 - COMMAND polygonfiller ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0003 - -START_TESTCASE GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0004 -//! @SYMTestCaseID GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0004 -//! @SYMAPI CPolygonFiller::Construct(const CArrayFix{ptr},CGraphicsContext::TFillRule,TUsage) -//! @SYMAuthor Dorothy Zhang -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Create a CPolygonFiller object with the type: CArrayFix, EWinding,EGetPixelRunsSequentiallyForSpecifiedScanLines -//! @SYMTestActions 1. Create a CPolygonFiller object with the type: CArrayFix, EWinding,EGetPixelRunsSequentiallyForSpecifiedScanLines -//! 2. Destroy the object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The CpolygonFiller object should be created without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitgdiApi c:\graphics\GRAPHICS-BITGDI-PolygonFiller-PublicAPI.ini - CREATE_OBJECT CPolygonFiller polygonfiller - COMMAND polygonfiller new - COMMAND polygonfiller Construct GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0004-0001-Construct_Command02 - COMMAND polygonfiller ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0004 - -START_TESTCASE GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0005 -//! @SYMTestCaseID GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0005 -//! @SYMAPI CPolygonFiller::Construct({ptr},TInt,CGraphicsContext::TFillRule,TUsage) -//! @SYMAuthor Dorothy Zhang -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Create a CPolygonFiller object with the type: TPoint, EWinding, EGetAllPixelRunsSequentially -//! @SYMTestActions 1. Create a CPolygonFiller object with the type: TPoint, EWinding, EGetAllPixelRunsSequentially -//! 2. Destroy the object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The CpolygonFiller object should be created without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitgdiApi c:\graphics\GRAPHICS-BITGDI-PolygonFiller-PublicAPI.ini - CREATE_OBJECT CPolygonFiller polygonfiller - COMMAND polygonfiller new - COMMAND polygonfiller Construct GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0005-0001-Construct_Command02 - COMMAND polygonfiller ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0005 - -START_TESTCASE GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0006 -//! @SYMTestCaseID GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0006 -//! @SYMAPI CPolygonFiller::Construct({ptr},TInt,CGraphicsContext::TFillRule,TUsage) -//! @SYMAuthor Dorothy Zhang -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Create a CPolygonFiller object with the type: TPoint, EWinding,EGetPixelRunsSequentiallyForSpecifiedScanLines -//! @SYMTestActions 1. Create a CPolygonFiller object with the type: TPoint, EWinding,EGetPixelRunsSequentiallyForSpecifiedScanLines -//! 2. Destroy the object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The CpolygonFiller object should be created without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitgdiApi c:\graphics\GRAPHICS-BITGDI-PolygonFiller-PublicAPI.ini - CREATE_OBJECT CPolygonFiller polygonfiller - COMMAND polygonfiller new - COMMAND polygonfiller Construct GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0006-0001-Construct_Command02 - COMMAND polygonfiller ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0006 - -START_TESTCASE GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0007 -//! @SYMTestCaseID GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0007 -//! @SYMAPI CPolygonFiller::Construct({ptr},TInt,CGraphicsContext::TFillRule,TUsage) -//! @SYMAuthor Dorothy Zhang -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Create a CPolygonFiller object with the type: TPoint, EAlternate,EGetPixelRunsSequentiallyForSpecifiedScanLines -//! @SYMTestActions 1. Create a CPolygonFiller object with the type: TPoint, EAlternate,EGetPixelRunsSequentiallyForSpecifiedScanLines -//! 2. Destroy the object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The CpolygonFiller object should be created without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitgdiApi c:\graphics\GRAPHICS-BITGDI-PolygonFiller-PublicAPI.ini - CREATE_OBJECT CPolygonFiller polygonfiller - COMMAND polygonfiller new - COMMAND polygonfiller Construct GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0007-0001-Construct_Command02 - COMMAND polygonfiller ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0007 - -START_TESTCASE GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0008 -//! @SYMTestCaseID GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0008 -//! @SYMAPI CPolygonFiller::Construct({ptr},TInt,CGraphicsContext::TFillRule,TUsage) -//! @SYMAuthor Dorothy Zhang -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Create a CPolygonFiller object with the type: TPoint, EAlternate,EGetAllPixelRunsSequentially -//! @SYMTestActions 1. Create a CPolygonFiller object with the type: TPoint, EAlternate,EGetAllPixelRunsSequentially -//! 2. Destroy the object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The CpolygonFiller object should be created without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitgdiApi c:\graphics\GRAPHICS-BITGDI-PolygonFiller-PublicAPI.ini - CREATE_OBJECT CPolygonFiller polygonfiller - COMMAND polygonfiller new - COMMAND polygonfiller Construct GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0008-0001-Construct_Command02 - COMMAND polygonfiller ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0008 - -START_TESTCASE GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0009 -//! @SYMTestCaseID GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0009 -//! @SYMAPI CPolygonFiller::GetNextPixelRun(TBool{ref},TInt{ref},TInt{ref},TInt{ref}) -//! @SYMAuthor Dorothy Zhang -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc GetNextPixelRun of the object constructed successfully with the type: CArrayFix, EAlternate,EGetAllPixelRunsSequentially -//! @SYMTestActions 1. Create a CPolygonFiller object with the type: CArrayFix, EAlternate,EGetAllPixelRunsSequentially -//! 2. GetNextPixelRun of the object. -//! 3. Destroy the object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The return values of GetNextPixelRun are as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitgdiApi c:\graphics\GRAPHICS-BITGDI-PolygonFiller-PublicAPI.ini - CREATE_OBJECT CPolygonFiller polygonfiller - COMMAND polygonfiller new - COMMAND polygonfiller Construct GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0009-0001-Construct_Command02 - COMMAND polygonfiller GetNextPixelRun GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0009-0001-GetNextPixelRun_Command03 - COMMAND polygonfiller ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0009 - -START_TESTCASE GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0010 -//! @SYMTestCaseID GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0010 -//! @SYMAPI CPolygonFiller::GetNextPixelRun(TBool{ref},TInt{ref},TInt{ref},TInt{ref}) -//! @SYMAuthor Dorothy Zhang -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc GetNextPixelRun of the object constructed successfully with the type: CArrayFix, EWinding,EGetAllPixelRunsSequentially -//! @SYMTestActions 1. Create a CPolygonFiller object with the type: CArrayFix, EWinding,EGetAllPixelRunsSequentially -//! 2. GetNextPixelRun of the object. -//! 3. Destroy the object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The return values of GetNextPixelRun are as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitgdiApi c:\graphics\GRAPHICS-BITGDI-PolygonFiller-PublicAPI.ini - CREATE_OBJECT CPolygonFiller polygonfiller - COMMAND polygonfiller new - COMMAND polygonfiller Construct GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0010-0001-Construct_Command02 - COMMAND polygonfiller GetNextPixelRun GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0010-0001-GetNextPixelRun_Command03 - COMMAND polygonfiller ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0010 - -START_TESTCASE GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0011 -//! @SYMTestCaseID GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0011 -//! @SYMAPI CPolygonFiller::GetNextPixelRun(TBool{ref},TInt{ref},TInt{ref},TInt{ref}) -//! @SYMAuthor Dorothy Zhang -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc GetNextPixelRun of the object constructed successfully with the type: CArrayFix, EAlternate, EGetPixelRunsSequentiallyForSpecifiedScanLines -//! @SYMTestActions 1. Createa CPolygonFiller with the type: CArrayFix, EAlternate, EGetPixelRunsSequentiallyForSpecifiedScanLines -//! 2. GetNextPixelRun of the object. -//! 3. Destroy the object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The return values of GetNextPixelRun are as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitgdiApi c:\graphics\GRAPHICS-BITGDI-PolygonFiller-PublicAPI.ini - CREATE_OBJECT CPolygonFiller polygonfiller - COMMAND polygonfiller new - COMMAND polygonfiller Construct GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0011-0001-Construct_Command02 - COMMAND polygonfiller GetNextPixelRun GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0011-0001-GetNextPixelRun_Command03 - COMMAND polygonfiller ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0011 - -START_TESTCASE GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0012 -//! @SYMTestCaseID GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0012 -//! @SYMAPI CPolygonFiller::GetNextPixelRun(TBool{ref},TInt{ref},TInt{ref},TInt{ref}) -//! @SYMAuthor DorothyZhang -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc GetNextPixelRun of the object constructed successfully with the type: CArrayFix, EWinding, EGetPixelRunsSequentiallyForSpecifiedScanLines -//! @SYMTestActions 1. Create a CPolygonFiller object with the type: CArrayFix, EWinding,EGetPixelRunsSequentiallyForSpecifiedScanLines -//! 2. GetNextPixelRun of the object. -//! 3. Destroy the object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The return values of GetNextPixelRun are as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitgdiApi c:\graphics\GRAPHICS-BITGDI-PolygonFiller-PublicAPI.ini - CREATE_OBJECT CPolygonFiller polygonfiller - COMMAND polygonfiller new - COMMAND polygonfiller Construct GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0012-0001-Construct_Command02 - COMMAND polygonfiller GetNextPixelRun GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0012-0001-GetNextPixelRun_Command03 - COMMAND polygonfiller ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0012 - -START_TESTCASE GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0013 -//! @SYMTestCaseID GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0013 -//! @SYMAPI CPolygonFiller::GetNextPixelRun(TBool{ref},TInt{ref},TInt{ref},TInt{ref}) -//! @SYMAuthor DorothyZhang -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc GetNextPixelRun of the CPolygonfiller object constructed with Horizontal line -//! @SYMTestActions 1. Create a CPolygonFiller object by Construct(*, TInt,EAlternate,EGetAllPixelRunsSequentially) -//! 1.1 Set the list of the points for a Horizontal line: (50,100),(60,100),(70,100),(80,100). -//! 1.2 Set the fill rule type : EAlternate -//! 1.3 Set the Usage type: EGetAllPixelRunsSequentially -//! 2. GetNextPixelRun of the object. -//! 3. Destroy the object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The GetNextPixelRun call should return the initial scan line correctly as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitgdiApi c:\graphics\GRAPHICS-BITGDI-PolygonFiller-PublicAPI.ini - CREATE_OBJECT CPolygonFiller polygonfiller - COMMAND polygonfiller new - COMMAND polygonfiller Construct GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0013-0001-Construct_Command02 - COMMAND polygonfiller GetNextPixelRun GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0013-0001-GetNextPixelRun_Command03 - COMMAND polygonfiller ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0013 - -START_TESTCASE GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0014 -//! @SYMTestCaseID GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0014 -//! @SYMAPI CPolygonFiller::GetNextPixelRun(TBool{ref},TInt{ref},TInt{ref},TInt{ref}) -//! @SYMAuthor DorothyZhang -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc GetNextPixelRun of the CPolygonfiller object constructed with vertical line -//! @SYMTestActions 1. Create a CPolygonFiller object by Construct(*, TInt, EAlternate,EGetAllPixelRunsSequentially) -//! 1.1 Set the list of points of the new polygon, a vertical line: (50,50),(50,60),(50,80),(50,120). -//! 1.2 Set the fill rule : EAlternate -//! 1.3 Set the polygon algorithm: EGetAllPixelRunsSequentially -//! 2. GetNextPixelRun of the object. -//! 3. Destoy the object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The GetNextPixelRun call should return the initial scan line, the start and end position on the scan line correctly as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitgdiApi c:\graphics\GRAPHICS-BITGDI-PolygonFiller-PublicAPI.ini - CREATE_OBJECT CPolygonFiller polygonfiller - COMMAND polygonfiller new - COMMAND polygonfiller Construct GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0014-0001-Construct_Command02 - COMMAND polygonfiller GetNextPixelRun GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0014-0001-GetNextPixelRun_Command03 - COMMAND polygonfiller ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0014 - -START_TESTCASE GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0015 -//! @SYMTestCaseID GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0015 -//! @SYMAPI CPolygonFiller::GetNextPixelRun(TBool{ref},TInt{ref},TInt{ref},TInt{ref}) -//! @SYMAuthor DorothyZhang -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc GetNextPixelRun of the CPolygonFiller object constructed with a point -//! @SYMTestActions 1. Create a CPolygonFiller object by Construct(*, TInt, EAlternate,EGetAllPixelRunsSequentially) -//! 1.1 Set the list of points of the new polygon:(0,0),(0,0),(0,0),(0,0). -//! 1.2 Set the fill rule: EAlternate -//! 1.3 Set the polygon algorithm: EGetAllPixelRunsSequentially -//! 2. GetNextPixelRun -//! 3. Destroy the object -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The GetNextPixelRun call should return the initial scan line correctly as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitgdiApi c:\graphics\GRAPHICS-BITGDI-PolygonFiller-PublicAPI.ini - CREATE_OBJECT CPolygonFiller polygonfiller - COMMAND polygonfiller new - COMMAND polygonfiller Construct GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0015-0001-Construct_Command02 - COMMAND polygonfiller GetNextPixelRun GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0015-0001-GetNextPixelRun_Command03 - COMMAND polygonfiller ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0015 - -START_TESTCASE GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0016 -//! @SYMTestCaseID GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0016 -//! @SYMAPI CPolygonFiller::GetNextPixelRun(TBool{ref},TInt{ref},TInt{ref},TInt{ref}) -//! @SYMAuthor DorothyZhang -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc GetNextPixelRun of the CPolygonFiller object constructed with polygon in negative area -//! @SYMTestActions 1. Create a CPolygonFiller object by Construct(*, TInt, EAlternate, EGetAllPixelRunsSequentially) -//! 1.1 Set the lisf of points of the new polygon in negative area: (-10,-10),(-20,-20),(-10,-20),(0,0). -//! 1.2 Set the fill rule: EAlternate -//! 1.3 Set the polygon algorithm: EGetAllPixelRunsSequentially -//! 2. GetNextPixelRun of the object -//! 3. Destroy the object -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The GetNextPixelRun call should return the initial scan line, the start and end position on the scan line correctly as expected -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitgdiApi c:\graphics\GRAPHICS-BITGDI-PolygonFiller-PublicAPI.ini - CREATE_OBJECT CPolygonFiller polygonfiller - COMMAND polygonfiller new - COMMAND polygonfiller Construct GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0016-0001-Construct_Command02 - COMMAND polygonfiller GetNextPixelRun GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0016-0001-GetNextPixelRun_Command03 - COMMAND polygonfiller ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0016 - -START_TESTCASE GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0017 -//! @SYMTestCaseID GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0017 -//! @SYMAPI CPolygonFiller::GetNextPixelRun(TBool{ref},TInt{ref},TInt{ref},TInt{ref}) -//! @SYMAuthor DorothyZhang -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc GetNextPixelRun of the object constructed with 13 sides polygon -//! @SYMTestActions 1. Create a CPolygonFiller object with the type: TPoint, EAlternate,EGetAllPixelRunsSequentially -//! 1.1 Set the lisf of points of the 13 sides polygon: (30,100),(30,60),(60,30),(90,60),(120,30),(150,60),(180,30),(210,60),(240,30),(270,60),(300,30),(330,60),(330,100) -//! 1.2 Set the fill rule: EAlternate -//! 1.3 Set the polygon algorithm: EGetAllPixelRunsSequentially -//! 2. GetNextPixelRun of the object. -//! 3. Destroy the object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The return values of GetNextPixelRun are as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitgdiApi c:\graphics\GRAPHICS-BITGDI-PolygonFiller-PublicAPI.ini - CREATE_OBJECT CPolygonFiller polygonfiller - COMMAND polygonfiller new - COMMAND polygonfiller Construct GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0017-0001-Construct_Command02 - COMMAND polygonfiller GetNextPixelRun GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0017-0001-GetNextPixelRun_Command03 - COMMAND polygonfiller ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0017 - -START_TESTCASE GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0020 -//! @SYMTestCaseID GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0020 -//! @SYMAPI CPolygonFiller::GetNextPixelRunOnSpecifiedScanLine(TBool{ref},TInt,TInt{ref},TInt{ref}) -//! @SYMAuthor DorothyZhang -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc GetNextPixelRunOnSpecifiedScanLine of the CPolygonFiller object constructed with polygon in square shape using EAlternate fill rule -//! @SYMTestActions 1. Create a CPolygonFiller object by Construct(*, TInt, EAlternate,EGetAllPixelRunsSequentially) -//! 1.1 Set the list of points of the new polygon:(50,50),(100,50),(100,100),(50,100) -//! 1.2 Set the fill rule of the polygon: EAlternate -//! 1.3 Set the polygon algorithm: EGetPixelRunsSequentiallyForSpecifiedScanLines -//! 2. GetNextPixelRunOnSpecifiedScanLine of the object. -//! 2.1 Specifiy the scan line: 60. -//! 2.2 GetNextPixelRunOnSpecifiedScanLine of the object. -//! 3. Destroy the object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The GetNextPixelRunOnSpecifiedScanLine call should return the start and end position on the scan line correctly as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitgdiApi c:\graphics\GRAPHICS-BITGDI-PolygonFiller-PublicAPI.ini - CREATE_OBJECT CPolygonFiller polygonfiller - COMMAND polygonfiller new - COMMAND polygonfiller Construct GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0020-0001-Construct_Command02 - COMMAND polygonfiller GetNextPixelRunOnSpecifiedScanLine GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0020-0001-GetNextPixelRunOnSpecifiedScanLine_Command03 - COMMAND polygonfiller ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0020 - -START_TESTCASE GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0021 -//! @SYMTestCaseID GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0021 -//! @SYMAPI CPolygonFiller::GetNextPixelRunOnSpecifiedScanLine(TBool{ref},TInt,TInt{ref},TInt{ref}) -//! @SYMAuthor DorothyZhang -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc GetNextPixelRunOnSpecifiedScanLine of the CPolygonFiller object constructed with polygon in square shape using EWinding fill rule -//! @SYMTestActions 1. Create a CPolygonFiller object by Construct(*,TInt,EAlternate,EGetAllPixelRunsSequentially) -//! 1.1 Set the list of points of the new polygon:(50,50),(100,50),(100,100),(50,100) -//! 1.2 Set the fill rule of the polygon: EWinding -//! 1.3 Set the polygon algorithm: EGetPixelRunsSequentiallyForSpecifiedScanLines -//! 2. GetNextPixelRunOnSpecifiedScanLine of the object. -//! 2.1 Specifiy the scan line: 60. -//! 2.2 GetNextPixelRunOnSpecifiedScanLine of the object. -//! 3. Destroy the object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The GetNextPixelRunOnSpecifiedScanLine call should return the start and end position on the scan line correctly as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitgdiApi c:\graphics\GRAPHICS-BITGDI-PolygonFiller-PublicAPI.ini - CREATE_OBJECT CPolygonFiller polygonfiller - COMMAND polygonfiller new - COMMAND polygonfiller Construct GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0021-0001-Construct_Command02 - COMMAND polygonfiller GetNextPixelRunOnSpecifiedScanLine GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0021-0001-GetNextPixelRunOnSpecifiedScanLine_Command03 - COMMAND polygonfiller ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0021 - -START_TESTCASE GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0022 -//! @SYMTestCaseID GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0022 -//! @SYMAPI CPolygonFiller::GetNextPixelRunOnSpecifiedScanLine(TBool{ref},TInt,TInt{ref},TInt{ref}) -//! @SYMAuthor Dorothy Zhang -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc GetNextPixelRunOnSpecifiedScanLine of the CPolygonFiller object constructed with polygon in Horizontal shape -//! @SYMTestActions 1. Create a CPolygonFiller object by Construct(*, TInt, EAlternate,EGetAllPixelRunsSequentially) -//! 1.1 Set the list of points of the new polygon, a horizontal line:{(50,100),(60,100),(70,100),(80,100)} -//! 1.2 Set the fill rule of the polygon: EAlternate -//! 1.3 Set the polygon algorithm: EGetPixelRunsSequentiallyForSpecifiedScanLines -//! 2. GetNextPixelRunOnSpecifiedScanLine -//! 2.1 Specifiy the scan line: 100. -//! 2.2 GetNextPixelRunOnSpecifiedScanLine of the object. -//! 3. Destroy the object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The GetNextPixelRunOnSpecifiedScanLine call should return the start and end position on the specified scan line correctly as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitgdiApi c:\graphics\GRAPHICS-BITGDI-PolygonFiller-PublicAPI.ini - CREATE_OBJECT CPolygonFiller polygonfiller - COMMAND polygonfiller new - COMMAND polygonfiller Construct GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0022-0001-Construct_Command02 - COMMAND polygonfiller GetNextPixelRunOnSpecifiedScanLine GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0022-0001-GetNextPixelRunOnSpecifiedScanLine_Command03 - COMMAND polygonfiller ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0022 - -START_TESTCASE GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0023 -//! @SYMTestCaseID GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0023 -//! @SYMAPI CPolygonFiller::GetNextPixelRunOnSpecifiedScanLine(TBool{ref},TInt,TInt{ref},TInt{ref}) -//! @SYMAuthor Dorothy Zhang -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc GetNextPixelRunOnSpecifiedScanLine of the CPolygonFiller constructed with polygon in Vertical shape -//! @SYMTestActions 1. Create a CPolygonFiller with polygon a vertical line by Construct(*, TInt, EAlternate,EGetAllPixelRunsSequentially) -//! 1.1 Set the list of points of the new polygon, a vertical line: (50,50),(50,60),(50,80),(50,120). -//! 1.2 Set the fill rule of the polygon: EWinding -//! 1.3 Set the polygon algorithm: EGetPixelRunsSequentiallyForSpecifiedScanLines -//! 2. GetNextPixelRunOnSpecifiedScanLine of the object. -//! 2.1 Specifiy the scan line: 60. -//! 2.2 GetNextPixelRunOnSpecifiedScanLine of the object. -//! 3. Destroy the object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The GetNextPixelRunOnSpecifiedScanLine call should return the start and end position on the specified scan line correctly as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitgdiApi c:\graphics\GRAPHICS-BITGDI-PolygonFiller-PublicAPI.ini - CREATE_OBJECT CPolygonFiller polygonfiller - COMMAND polygonfiller new - COMMAND polygonfiller Construct GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0023-0001-Construct_Command02 - COMMAND polygonfiller GetNextPixelRunOnSpecifiedScanLine GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0023-0001-GetNextPixelRunOnSpecifiedScanLine_Command03 - COMMAND polygonfiller ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0023 - -START_TESTCASE GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0024 -//! @SYMTestCaseID GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0024 -//! @SYMAPI CPolygonFiller::GetNextPixelRunOnSpecifiedScanLine(TBool{ref},TInt,TInt{ref},TInt{ref}) -//! @SYMAuthor Dorothy Zhang -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc GetNextPixelRunOnSpecifiedScanLine of the CPolygonFiller object constructed with a single point -//! @SYMTestActions 1. Create a CPolygonFiller with polygon by Construct(*, TInt, EWinding,EGetAllPixelRunsSequentially) -//! 1.1 Set the list of points of the new polygon: (0,0),(0,0),(0,0),(0,0). -//! 1.2 Set the fill rule of the polygon: EWinding -//! 1.3 Set the polygon algorithm: EGetPixelRunsSequentiallyForSpecifiedScanLines -//! 2. GetNextPixelRunOnSpecifiedScanLine of the object. -//! 2.1 Specifiy the scan line: 0. -//! 2.2 GetNextPixelRunOnSpecifiedScanLine of the object. -//! 3. Destroy the object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The GetNextPixelRunOnSpecifiedScanLine call should return the start and end position on the specified scan line correctly as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitgdiApi c:\graphics\GRAPHICS-BITGDI-PolygonFiller-PublicAPI.ini - CREATE_OBJECT CPolygonFiller polygonfiller - COMMAND polygonfiller new - COMMAND polygonfiller Construct GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0024-0001-Construct_Command02 - COMMAND polygonfiller GetNextPixelRunOnSpecifiedScanLine GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0024-0001-GetNextPixelRunOnSpecifiedScanLine_Command03 - COMMAND polygonfiller ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0024 - -START_TESTCASE GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0025 -//! @SYMTestCaseID GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0025 -//! @SYMAPI CPolygonFiller::GetNextPixelRunOnSpecifiedScanLine(TBool{ref},TInt,TInt{ref},TInt{ref}) -//! @SYMAuthor Dorothy Zhang -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc GetNextPixelRunOnSpecifiedScanLine of the CPolygonFiller object constructed with polygon in negative area -//! @SYMTestActions 1. Create a CPolygonFiller with polygon by Construct(*, TInt, EWinding,EGetAllPixelRunsSequentially) -//! 1.1 Set the list of points of the new polygon: (-10,-10),(-20,-20),(-10,-20),(0,0). -//! 1.2 Set the fill rule of the polygon: EWinding -//! 1.3 Set the polygon algorithm: EGetPixelRunsSequentiallyForSpecifiedScanLines -//! 2. GetNextPixelRunOnSpecifiedScanLine of the object. -//! 2.1 Specifiy the scan line: -15. -//! 2.2 GetNextPixelRunOnSpecifiedScanLine of the object. -//! 3. Destroy the object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The GetNextPixelRunOnSpecifiedScanLine call should return the start and end position on the specified scan line correctly as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitgdiApi c:\graphics\GRAPHICS-BITGDI-PolygonFiller-PublicAPI.ini - CREATE_OBJECT CPolygonFiller polygonfiller - COMMAND polygonfiller new - COMMAND polygonfiller Construct GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0025-0001-Construct_Command02 - COMMAND polygonfiller GetNextPixelRunOnSpecifiedScanLine GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0025-0001-GetNextPixelRunOnSpecifiedScanLine_Command03 - COMMAND polygonfiller ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0025 - -START_TESTCASE GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0026 -//! @SYMTestCaseID GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0026 -//! @SYMAPI CPolygonFiller::GetNextPixelRunOnSpecifiedScanLine(TBool{ref},TInt,TInt{ref},TInt{ref}) -//! @SYMAuthor Dorothy Zhang -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc GetNextPixelRunOnSpecifiedScanLine of the CPolygonFiller object with the specified scan line out of the polygon range -//! @SYMTestActions 1. Create a CPolygonFiller with polygon by Construct(*, TInt, EWinding,EGetAllPixelRunsSequentially) -//! 1.1 Set the list of points of the new polygon in square shape: (50,50),(100,50),(100,100),(50,100) -//! 1.2 Set the fill rule of the polygon: EWinding -//! 1.3 Set the polygon algorithm: EGetPixelRunsSequentiallyForSpecifiedScanLines -//! 2. GetNextPixelRunOnSpecifiedScanLine: scanline out of the range -//! 2.1 Specify the scan line out of the polygon range: 110 -//! 2.2 GetNextPixelRunOnSpecifiedScanLine of the object. -//! 3. Destroy the object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The GetNextPixelRunOnSpecifiedScanLine call should return EFalse as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitgdiApi c:\graphics\GRAPHICS-BITGDI-PolygonFiller-PublicAPI.ini - CREATE_OBJECT CPolygonFiller polygonfiller - COMMAND polygonfiller new - COMMAND polygonfiller Construct GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0026-0001-Construct_Command02 - COMMAND polygonfiller GetNextPixelRunOnSpecifiedScanLine GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0026-0001-GetNextPixelRunOnSpecifiedScanLine_Command03 - COMMAND polygonfiller ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0026 - -START_TESTCASE GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0027 -//! @SYMTestCaseID GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0027 -//! @SYMAPI CPolygonFiller::GetNextPixelRunOnSpecifiedScanLine(TBool{ref},TInt,TInt{ref},TInt{ref}) -//! @SYMAuthor Dorothy Zhang -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc GetNextPixelRunOnSpecifiedScanLine of the CPolygonFiller object constructed with 11 sides polygon -//! @SYMTestActions 1. Create a CPolygonFiller with polygon by Construct(*, TInt, EWinding,EGetAllPixelRunsSequentially) -//! 1.1 Set the list of points for the new 11 sides polygon: (0,0),(60,60),(90,30),(120,60),(150,30),(180,60),(210,30),(240,60),(270,30),(300,60),(330,30) -//! 1.2 Set the fill rule of the polygon: EWinding -//! 1.3 Set the polygon algorithm: EGetPixelRunsSequentiallyForSpecifiedScanLines -//! 2. GetNextPixelRunOnSpecifiedScanLine of the object. -//! 2.1 Specifiy the scan line: 40. -//! 2.2 GetNextPixelRunOnSpecifiedScanLine of the object. -//! 3. Destroy the object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The GetNextPixelRunOnSpecifiedScanLine call should return the start and end position on the specified scan line correctly. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitgdiApi c:\graphics\GRAPHICS-BITGDI-PolygonFiller-PublicAPI.ini - CREATE_OBJECT CPolygonFiller polygonfiller - COMMAND polygonfiller new - COMMAND polygonfiller Construct GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0027-0001-Construct_Command02 - COMMAND polygonfiller GetNextPixelRunOnSpecifiedScanLine GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0027-0001-GetNextPixelRunOnSpecifiedScanLine_Command03 - COMMAND polygonfiller ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0027 - -START_TESTCASE GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0028 -//! @SYMTestCaseID GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0028 -//! @SYMAPI CPolygonFiller::Reset() -//! @SYMAuthor Dorothy Zhang -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Rest the CPolygonFiller object constructed using EGetAllPixelRunsSequentially -//! @SYMTestActions 1. Create a CPolygonFiller with polygon by Construct(*, TInt, EWinding,EGetAllPixelRunsSequentially) -//! 1.1 Set the list of points of the new polygon in square shape: (50,50),(100,50),(100,100),(50,100) -//! 1.2 Set the fill rule of the polygon: EWinding -//! 1.3 Set the polygon algorithm: EGetAllPixelRunsSequentially -//! 2. GetNextPixelRun of the object -//! 3. Reset -//! 4. GetNextPixelRun of the object -//! 5. Destroy the object -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. The Reset() call should not cause any panic. -//! 2. The second GetNextPixelRun call should return the initial scan line and the start and end position on the scan line as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitgdiApi c:\graphics\GRAPHICS-BITGDI-PolygonFiller-PublicAPI.ini - CREATE_OBJECT CPolygonFiller polygonfiller - COMMAND polygonfiller new - COMMAND polygonfiller Construct GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0028-0001-Construct_Command02 - COMMAND polygonfiller GetNextPixelRun GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0028-0001-GetNextPixelRun_Command03 - COMMAND polygonfiller Reset - COMMAND polygonfiller GetNextPixelRun GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0028-0001-GetNextPixelRun_Command05 - COMMAND polygonfiller ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0028 - -START_TESTCASE GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0029 -//! @SYMTestCaseID GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0029 -//! @SYMAPI CPolygonFiller::Reset() -//! @SYMAuthor Dorothy Zhang -//! @SYMCreationDate 04/12/2008 -//! @SYMTestCaseDesc Reset the CPolygonFiller object constructed using EGetPixelRunsSequentiallyForSpecifiedScanLines -//! @SYMTestActions 1. Create a CPolygonFiller object by Construct(*, TInt, EAlternate, EGetAllPixelRunsSequentially) -//! 1.1 Set the list of points of the new polygon in square shape: (50,50),(100,50),(100,100),(50,100) -//! 1.2 Set the fill rule of the polygon: EWinding -//! 1.3 Set the polygon algorithm: EGetPixelRunsSequentiallyForSpecifiedScanLines -//! 2. GetNextPixelRunOnSpecifiedScanLine of the object. -//! 2.1 Specify the scan line: 50 -//! 2.2 GetNextPixelRunOnSpecifiedScanLine. -//! 3. Reset -//! 4. GetNextPixelRunOnSpecifiedScanLine of the object. -//! 4.1 Specify the scan line: 50 -//! 4.2 GetNextPixelRunOnSpecifiedScanLine -//! 5. Destory the object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. The Reset() Call should not cause any panic. -//! 2. The second GetNextPixelRunOnSpecifiedScanLine() call should return EFalse as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsBitgdiApi c:\graphics\GRAPHICS-BITGDI-PolygonFiller-PublicAPI.ini - CREATE_OBJECT CPolygonFiller polygonfiller - COMMAND polygonfiller new - COMMAND polygonfiller Construct GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0029-0001-Construct_Command02 - COMMAND polygonfiller GetNextPixelRunOnSpecifiedScanLine GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0029-0001-GetNextPixelRunOnSpecifiedScanLine_Command03 - COMMAND polygonfiller Reset - COMMAND polygonfiller GetNextPixelRunOnSpecifiedScanLine GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0029-0001-GetNextPixelRunOnSpecifiedScanLine_Command05 - COMMAND polygonfiller ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0029 - - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/bitgdi/scripts/GRAPHICS-BITGDI-PublicApi.script --- a/graphicsapitest/graphicssvs/bitgdi/scripts/GRAPHICS-BITGDI-PublicApi.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,18 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// - -RUN_SCRIPT ${SYSDRIVE}\graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.script -RUN_SCRIPT ${SYSDRIVE}\graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.script \ No newline at end of file diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/bitgdi/scripts/setup-T-GRAPHICS-BITGDI-PublicApi.script --- a/graphicsapitest/graphicssvs/bitgdi/scripts/setup-T-GRAPHICS-BITGDI-PublicApi.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,79 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// - -RUN_UTILS MkDir ${SYSDRIVE}\graphics\ -RUN_UTILS MkDir ${SYSDRIVE}\graphics\bitgdi\ - -RUN_UTILS CopyFile z:\graphics\GRAPHICS-BITGDI-PublicApi.script ${SYSDRIVE}\graphics\GRAPHICS-BITGDI-PublicApi.script -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-BITGDI-PublicApi.script -RUN_UTILS CopyFile z:\graphics\t_graphics.tcs ${SYSDRIVE}\graphics\t_graphics.tcs -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\t_graphics.tcs -RUN_UTILS CopyFile z:\graphics\t_graphics_panic.tcs ${SYSDRIVE}\graphics\t_graphics_panic.tcs -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\t_graphics_panic.tcs - -//T_DataFbsDevice -RUN_UTILS CopyFile z:\graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.script ${SYSDRIVE}\graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.script -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.script -RUN_UTILS CopyFile z:\graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini ${SYSDRIVE}\graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-BITGDI-FbsDevice-PublicApi.ini - -//T_DataFbsScreenDevice -RUN_UTILS CopyFile z:\graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.script ${SYSDRIVE}\graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.script -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.script -RUN_UTILS CopyFile z:\graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini ${SYSDRIVE}\graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-BITGDI-FbsScreenDevice-PublicApi.ini - -//T_DataFbsBitmapDevice -RUN_UTILS CopyFile z:\graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.script ${SYSDRIVE}\graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.script -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.script -RUN_UTILS CopyFile z:\graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini ${SYSDRIVE}\graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini - - -//T_DataFbsBitGc -RUN_UTILS CopyFile z:\graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.script ${SYSDRIVE}\graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.script -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.script -RUN_UTILS CopyFile z:\graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini ${SYSDRIVE}\graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini -RUN_UTILS CopyFile z:\graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini ${SYSDRIVE}\graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini -RUN_UTILS CopyFile z:\graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini ${SYSDRIVE}\graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini - -//T_DataFbsBitGc -RUN_UTILS CopyFile z:\graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual.script ${SYSDRIVE}\graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual.script -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual.script -RUN_UTILS CopyFile z:\graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual.ini ${SYSDRIVE}\graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual.ini -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual.ini - - -//T_DataPolygonFiller -RUN_UTILS CopyFile z:\graphics\GRAPHICS-BITGDI-PolygonFiller-PublicApi.script ${SYSDRIVE}\graphics\GRAPHICS-BITGDI-PolygonFiller-PublicApi.script -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-BITGDI-PolygonFiller-PublicApi.script -RUN_UTILS CopyFile z:\graphics\GRAPHICS-BITGDI-PolygonFiller-PublicApi.ini ${SYSDRIVE}\graphics\GRAPHICS-BITGDI-PolygonFiller-PublicApi.ini -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-BITGDI-PolygonFiller-PublicApi.ini - -//T_DataFbsBitGcFont -RUN_UTILS CopyFile z:\graphics\GRAPHICS-BITGDI-FbsBitGcFont-PublicApi.script ${SYSDRIVE}\graphics\GRAPHICS-BITGDI-FbsBitGcFont-PublicApi.script -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-BITGDI-FbsBitGcFont-PublicApi.script -RUN_UTILS CopyFile z:\graphics\GRAPHICS-BITGDI-FbsBitGcFont-PublicApi.ini ${SYSDRIVE}\graphics\GRAPHICS-BITGDI-FbsBitGcFont-PublicApi.ini -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-BITGDI-FbsBitGcFont-PublicApi.ini - -RUN_UTILS MkDir \graphics\bitgdi - -//datafile test_rwssprite_bitmap.mbm -RUN_UTILS CopyFile z:\graphics\bitgdi\test_rwssprite_bitmap.mbm ${SYSDRIVE}\graphics\bitgdi\test_rwssprite_bitmap.mbm -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\bitgdi\test_rwssprite_bitmap.mbm diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/bitgdi/src/T_DataFbsBitGc.cpp --- a/graphicsapitest/graphicssvs/bitgdi/src/T_DataFbsBitGc.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1211 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ -#include -#include -#include "T_DataFbsBitGc.h" -#include "T_GraphicsUtil.h" - -/*@{*/ -/// Commands -_LIT(KCmdNewL, "NewL"); -_LIT(KCmdDestructor, "~"); -_LIT(KCmdActivate, "Activate"); -_LIT(KCmdActivateNoJustAutoUpdate, "ActivateNoJustAutoUpdate"); -_LIT(KCmdAlphaBlendBitmaps, "AlphaBlendBitmaps"); -_LIT(KCmdDisown, "disown"); -_LIT(KCmdDrawPolyLineNoEndPoint, "DrawPolyLineNoEndPoint"); - -_LIT(KCmdCancelClipping, "CancelClipping"); -_LIT(KCmdCopySettings, "CopySettings"); -_LIT(KCmdBitBlt, "BitBlt"); - -_LIT(KCmdDrawText, "DrawText"); -_LIT(KCmdDrawTextVertical, "DrawTextVertical"); -_LIT(KCmdUpdateJustification, "UpdateJustification"); -_LIT(KCmdUpdateJustificationVertical,"UpdateJustificationVertical"); - -_LIT(KCmdFadeArea, "FadeArea"); -_LIT(KCmdIsBrushPatternUsed, "IsBrushPatternUsed"); -_LIT(KCmdIsFontUsed, "IsFontUsed"); -_LIT(KCmdOrientationsAvailable, "OrientationsAvailable"); -_LIT(KCmdRectDrawnTo, "RectDrawnTo"); -_LIT(KCmdResized, "Resized"); -_LIT(KCmdSetDitherOrigin, "SetDitherOrigin"); -_LIT(KCmdSetFadeMode, "SetFadeMode"); -_LIT(KCmdSetFadingParameters, "SetFadingParameters"); -_LIT(KCmdSetOrientation, "SetOrientation"); -_LIT(KCmdSetShadowMode, "SetShadowMode"); -_LIT(KCmdSetUserDisplayMode, "SetUserDisplayMode"); -_LIT(KCmdShadowArea, "ShadowArea"); -_LIT(KCmdUseBrushPattern, "UseBrushPattern"); -_LIT(KCmdUseFont, "UseFont"); -_LIT(KCmdUseFontNoDuplicate, "UseFontNoDuplicate"); -_LIT(KCmdGetAvailableOrientation, "GetAvailableOrientation"); -_LIT(KCmdPromptMessage, "PromptMessage"); -/// Fields -_LIT(KFldAlphaBmp, "alphabmp"); -_LIT(KFldAlphaPt, "alphapt"); -_LIT(KFldDestPt, "destpt"); -_LIT(KFldDevice, "device"); -_LIT(KFldSrcBmp1, "srcbmp1"); -_LIT(KFldSrcBmp2, "srcbmp2"); -_LIT(KFldSrcPt, "srcpt"); -_LIT(KFldSrcRect, "srcrect"); -_LIT(KFldNumPoints, "numpoints"); -_LIT(KFldPointList, "pointlist"); - -_LIT(KFldFbsBitGc, "fbsBitGc"); -_LIT(KFldPoint, "point"); - -_LIT(KFldRect, "rect"); -_LIT(KFldTextAlign, "textalign"); -_LIT(KFldText, "text"); -_LIT(KFldLeftMargin, "leftmargin"); -_LIT(KFldBaselineOffset, "baselineoffset"); -_LIT(KFldTextWidth, "textwidth"); -_LIT(KFldUp, "up"); -_LIT(KFldParam, "param"); - -_LIT(KFldRegion, "region"); -_LIT(KFldFadeMode, "fademode"); -_LIT(KFldBlackMap, "blackmap"); -_LIT(KFldWhiteMap, "whitemap"); -_LIT(KFldGraphicsOrientation, "orientation"); -_LIT(KFldShadowMode, "shadowmode"); -_LIT(KFldDisplayMode, "displaymode"); -_LIT(KFldHandle, "handle"); -_LIT(KFldFont, "font"); -_LIT(KFldBitmap, "bitmap"); -_LIT(KFldUseHandle, "usehandle"); -_LIT(KFldPromptText, "message"); -_LIT(KFldExpectedKey, "keyCode"); - -_LIT(KFldExpect, "expect"); -_LIT(KFormatFieldNumber, "Orientation_%d=%d"); -/// Logging -_LIT(KLogError, "Error=%d"); -_LIT(KLogMissingParameter, "Missing parameter '%S'"); -_LIT(KLogNotExpectedValue, "Not expected value,get %d, expectd %d"); -/*@}*/ -_LIT(KPromptProcess, "t_prompt.exe"); - - -/** -* Two phase constructor -*/ -CT_DataFbsBitGc* CT_DataFbsBitGc::NewL() - { - CT_DataFbsBitGc* ret=new (ELeave) CT_DataFbsBitGc(); - CleanupStack::PushL(ret); - ret->ConstructL(); - CleanupStack::Pop(ret); - return ret; - } - -/** -* Protected constructor. First phase construction -*/ -CT_DataFbsBitGc::CT_DataFbsBitGc() -: CT_DataBitmapContext() -, iFbsBitGc(NULL) - { - } - -/** -* Protected second phase construction -*/ -void CT_DataFbsBitGc::ConstructL() - { - - } - -/** -* Destructor. -*/ -CT_DataFbsBitGc::~CT_DataFbsBitGc() - { - - DestroyData(); - } - -void CT_DataFbsBitGc::SetObjectL(TAny* aAny) - { - DestroyData(); - iFbsBitGc = static_cast (aAny); - } - -void CT_DataFbsBitGc::DisownObjectL() - { - iFbsBitGc = NULL; - } - -void CT_DataFbsBitGc::DestroyData() - { - delete iFbsBitGc; - iFbsBitGc=NULL; - } - -/** -* Return a pointer to the object that the data wraps -* -* @return pointer to the object that the data wraps -*/ -TAny* CT_DataFbsBitGc::GetObject() - { - return iFbsBitGc; - } - -// CT_DataBitmapContext implementation -CBitmapContext* CT_DataFbsBitGc::GetBitmapContext() const - { - return iFbsBitGc; - } - -// CT_DataGraphicsContext implementation -CGraphicsContext* CT_DataFbsBitGc::GetGraphicsContext() const - { - return iFbsBitGc; - } - -/** -* Process a command read from the ini file -* -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* @param aAsyncErrorIndex index of command. used for async calls -* -* @return ETrue if the command is processed -*/ -TBool CT_DataFbsBitGc::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex) - { - /* Another work package will complete the implement of this */ - TBool ret = ETrue; - - if ( aCommand==KCmdNewL ) - { - DoCmdNewL(); - } - else if ( aCommand==KCmdDestructor ) - { - DoCmdDestructor(); - } - else if ( aCommand==KCmdActivate ) - { - DoCmdActivateL(aSection); - } - else if ( aCommand == KCmdDisown ) - { - DisownObjectL(); - } - else if ( aCommand==KCmdActivateNoJustAutoUpdate ) - { - DoCmdActivateNoJustAutoUpdateL(aSection); - } - else if ( aCommand==KCmdAlphaBlendBitmaps ) - { - if ( !DoCmdAlphaBlendBitmapsL(aSection) ) - { - ret=CT_DataBitmapContext::DoCommandL(aCommand, aSection, aAsyncErrorIndex); - } - } - else if ( aCommand==KCmdDrawPolyLineNoEndPoint ) - { - DoCmdDrawPolyLineNoEndPointL(aSection); - } - else if ( aCommand==KCmdCancelClipping) - { - DoCmdCancelClipping(aSection); - } - else if ( aCommand==KCmdCopySettings) - { - DoCmdCopySettingsL(aSection); - } - else if ( aCommand==KCmdBitBlt) - { - if(!DoCmdBitBltL(aSection)) - { - ret=CT_DataBitmapContext::DoCommandL(aCommand, aSection, aAsyncErrorIndex); - } - } - else if(aCommand==KCmdDrawText) - { - DoCmdDrawTextL(aSection); - } - else if(aCommand==KCmdDrawTextVertical) - { - DoCmdDrawTextVerticalL(aSection); - } - else if(aCommand==KCmdUpdateJustification) - { - DoCmdUpdateJustificationL(aSection); - } - else if(aCommand==KCmdUpdateJustificationVertical) - { - DoCmdUpdateJustificationVerticalL(aSection); - } - else if(aCommand==KCmdFadeArea) - { - DoCmdFadeArea(aSection); - } - else if(aCommand==KCmdIsBrushPatternUsed) - { - DoCmdIsBrushPatternUsed(aSection); - } - else if(aCommand==KCmdIsFontUsed) - { - DoCmdIsFontUsed(aSection); - } - else if(aCommand==KCmdOrientationsAvailable) - { - DoCmdOrientationsAvailable(aSection); - } - else if(aCommand==KCmdRectDrawnTo) - { - DoCmdRectDrawnTo(aSection); - } - else if(aCommand==KCmdResized) - { - DoCmdResized(aSection); - } - else if(aCommand==KCmdSetDitherOrigin) - { - DoCmdSetDitherOrigin(aSection); - } - else if(aCommand==KCmdSetFadeMode) - { - DoCmdSetFadeMode(aSection); - } - else if(aCommand==KCmdSetFadingParameters) - { - if(!DoCmdSetFadingParameters(aSection)) - { - ret=CT_DataBitmapContext::DoCommandL(aCommand, aSection, aAsyncErrorIndex); - } - } - else if(aCommand==KCmdSetOrientation) - { - DoCmdSetOrientation(aSection); - } - else if(aCommand==KCmdSetShadowMode) - { - DoCmdSetShadowMode(aSection); - } - else if(aCommand==KCmdSetUserDisplayMode) - { - DoCmdSetUserDisplayMode(aSection); - } - else if(aCommand==KCmdShadowArea) - { - DoCmdShadowArea(aSection); - } - else if(aCommand==KCmdUseBrushPattern) - { - DoCmdUseBrushPatternL(aSection); - } - else if(aCommand==KCmdUseFont) - { - DoCmdUseFontL(aSection); - } - else if(aCommand==KCmdUseFontNoDuplicate) - { - DoCmdUseFontNoDuplicateL(aSection); - } - else if(aCommand==KCmdPromptMessage) - { - DoCmdPromptMessageL(aSection); - } - else - { - ret=CT_DataBitmapContext::DoCommandL(aCommand, aSection, aAsyncErrorIndex); - } - - return ret; - } - -void CT_DataFbsBitGc::DoCmdNewL() - { - DestroyData(); - - INFO_PRINTF1(_L("execute CFbsBitGc::NewL")); - TRAPD( err, iFbsBitGc = CFbsBitGc::NewL() ); - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - } - -void CT_DataFbsBitGc::DoCmdDestructor() - { - DestroyData(); - } - -void CT_DataFbsBitGc::DoCmdActivateL(const TDesC& aSection) - { - CFbsDevice* device=NULL; - if ( !CT_GraphicsUtil::GetFbsDeviceL(*this, aSection, KFldDevice, device) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldDevice()); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute Activate(CFbsDevice*)")); - iFbsBitGc->Activate(device); - } - } - -void CT_DataFbsBitGc::DoCmdActivateNoJustAutoUpdateL(const TDesC& aSection) - { - CFbsDevice* device=NULL; - if ( !CT_GraphicsUtil::GetFbsDeviceL(*this, aSection, KFldDevice, device) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldDevice()); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute ActivateNoJustAutoUpdate(CFbsDevice*)")); - iFbsBitGc->ActivateNoJustAutoUpdate(device); - } - } - -TBool CT_DataFbsBitGc::DoCmdAlphaBlendBitmapsL(const TDesC& aSection) - { - CFbsBitmap* fbsBitmap1=NULL; - TBool ret=CT_GraphicsUtil::GetFbsBitmapL(*this, aSection, KFldSrcBmp1, fbsBitmap1); - if ( ret ) - { - TBool dataOk=ETrue; - - CFbsBitmap* fbsBitmap2=NULL; - if ( !CT_GraphicsUtil::GetFbsBitmapL(*this, aSection, KFldSrcBmp2, fbsBitmap2) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldSrcBmp2()); - SetBlockResult(EFail); - } - - CFbsBitmap* alphaBitmap=NULL; - if ( !CT_GraphicsUtil::GetFbsBitmapL(*this, aSection, KFldAlphaBmp, alphaBitmap) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldAlphaBmp()); - SetBlockResult(EFail); - } - - TPoint destinationPoint; - if ( !GetPointFromConfig(aSection, KFldDestPt, destinationPoint) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldDestPt()); - SetBlockResult(EFail); - } - - TRect sourceRect; - if ( !GetRectFromConfig(aSection, KFldSrcRect, sourceRect) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldSrcRect()); - SetBlockResult(EFail); - } - - TPoint sourcePoint; - if ( !GetPointFromConfig(aSection, KFldSrcPt, sourcePoint) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldSrcPt()); - SetBlockResult(EFail); - } - - TPoint alphaPoint; - if ( !GetPointFromConfig(aSection, KFldAlphaPt, alphaPoint) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldAlphaPt()); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - INFO_PRINTF1(_L("execute AlphaBlendBitmaps(const TPoint&,const CFbsBitmap*,const CFbsBitmap*,const TRect&,const TPoint&,const CFbsBitmap*,const TPoint&")); - TInt err=iFbsBitGc->AlphaBlendBitmaps(destinationPoint, fbsBitmap1, fbsBitmap2, sourceRect, sourcePoint, alphaBitmap, alphaPoint); - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - } - } - - return ret; - } - -void CT_DataFbsBitGc::DoCmdDrawPolyLineNoEndPointL(const TDesC& aSection) - { - TInt datNumPoints; - if ( GetIntFromConfig(aSection, KFldNumPoints, datNumPoints) ) - { - TPoint* points=new (ELeave) TPoint[datNumPoints]; - - if ( !GetPointListFromConfig(aSection, KFldPointList, datNumPoints, points) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldPointList()); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute DrawPolyLineNoEndPoint(TPoint*, TInt)")); - iFbsBitGc->DrawPolyLineNoEndPoint(points, datNumPoints); - } - delete [] points; - } - else - { - CArrayFix* points=new (ELeave) CArrayFixFlat(1); - CleanupStack::PushL(points); - TBool hasPointList=GetPointListFromConfigL(aSection, KFldPointList, *points); - - if ( !hasPointList ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldPointList()); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute DrawPolyLineNoEndPoint(CArrayFix*)")); - iFbsBitGc->DrawPolyLineNoEndPoint(points); - } - CleanupStack::PopAndDestroy(points); - } - } - -void CT_DataFbsBitGc::DoCmdCancelClipping(const TDesC& /*aSection*/) - { - INFO_PRINTF1(_L("execute CancelClipping()")); - iFbsBitGc->CancelClipping(); - } - -void CT_DataFbsBitGc::DoCmdCopySettingsL(const TDesC& aSection) - { - CFbsBitGc* fbsBitGc=NULL; - - if ( !CT_GraphicsUtil::GetFbsBitGcL(*this, aSection, KFldFbsBitGc, fbsBitGc) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldFbsBitGc()); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute CopySettings(CFbsBitGc&)")); - iFbsBitGc->CopySettings(*fbsBitGc); - } - } - -TBool CT_DataFbsBitGc::DoCmdBitBltL(const TDesC& aSection) - { - TBool ret=ETrue; - CFbsBitGc* fbsBitGc=NULL; - - if ( !CT_GraphicsUtil::GetFbsBitGcL(*this, aSection, KFldFbsBitGc, fbsBitGc) ) - { - ret=EFalse; - } - else - { - // Execute command and log parameters - TPoint point; - if ( !GetPointFromConfig(aSection, KFldPoint, point) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldPoint()); - SetBlockResult(EFail); - //Case failed, needn't execute other step. - return ret; - } - - TRect sourceRect; - if(!GetRectFromConfig(aSection, KFldSrcRect, sourceRect)) - { - INFO_PRINTF1(_L("execute BitBlt(const TPoint&, const CFbsBitGc&)")); - iFbsBitGc->BitBlt(point,*fbsBitGc); - } - else - { - INFO_PRINTF1(_L("execute BitBlt(const TPoint&, const CFbsBitGc&,const TRect &)")); - iFbsBitGc->BitBlt(point,*fbsBitGc,sourceRect); - } - } - - return ret; - } - -void CT_DataFbsBitGc::DoCmdDrawTextL(const TDesC& aSection) - { - TRect rect; - TInt baselineOffset=0; - TPtrC text; - TInt datTextWidth; - CGraphicsContext::TTextParameters* param=NULL; - - if( !GetStringFromConfig(aSection, KFldText(), text) ) - { - ERR_PRINTF2(_L("Missing parameter %S"), &KFldText()); - SetBlockResult(EFail); - return; - } - - if (GetRectFromConfig(aSection, KFldRect, rect) ) - { - if (GetIntFromConfig(aSection, KFldBaselineOffset, baselineOffset)) - { - TInt datMargin=0; - CGraphicsContext::TTextAlign textAlign=CGraphicsContext::ELeft; - CT_GraphicsUtil::ReadTextAlign(*this, aSection, KFldTextAlign,textAlign); - if(!GetIntFromConfig(aSection, KFldLeftMargin, datMargin)) - { - INFO_PRINTF1(_L("Using the default value aMargin=0")); - } - - if (GetIntFromConfig(aSection, KFldTextWidth, datTextWidth)) - { - if(CT_GraphicsUtil::GetTextParametersL(*this,aSection,KFldParam,param)) - { - INFO_PRINTF1(_L("execute DrawText(const TDesC &,const TTextParameters *,const TRect &,TInt,TInt,TTextAlign,TInt)")); - iFbsBitGc->DrawText(text, param, rect, baselineOffset, datTextWidth, textAlign, datMargin); - } - else - { - INFO_PRINTF1(_L("execute DrawText(const TDesC &,const TRect &,TInt,TInt,TTextAlign,TInt)")); - iFbsBitGc->DrawText(text, rect, baselineOffset, datTextWidth, textAlign, datMargin); - } - - } - else - { - if(CT_GraphicsUtil::GetTextParametersL(*this,aSection,KFldParam,param)) - { - INFO_PRINTF1(_L("execute DrawText(const TDesC &,const TTextParameters *,const TRect &,TInt,TTextAlign,TInt)")); - iFbsBitGc->DrawText(text, param, rect, baselineOffset, textAlign, datMargin); - } - else - { - INFO_PRINTF1(_L("execute DrawText(const TDesC &,const TRect &,TInt,TTextAlign,TInt)")); - iFbsBitGc->DrawText(text, rect, baselineOffset, textAlign, datMargin); - } - } - } - else - { - if(CT_GraphicsUtil::GetTextParametersL(*this,aSection,KFldParam,param)) - { - INFO_PRINTF1(_L("execute DrawText(const TDesC&,const TTextParameters *,const TRect&)")); - iFbsBitGc->DrawText(text, param, rect); - } - else - { - INFO_PRINTF1(_L("execute DrawText(const TDesC&,const TRect&)")); - iFbsBitGc->DrawText(text, rect); - } - } - } - else - { - TPoint point; - if(!GetPointFromConfig(aSection, KFldPoint, point)) - { - if(CT_GraphicsUtil::GetTextParametersL(*this,aSection,KFldParam,param)) - { - INFO_PRINTF1(_L("execute DrawText(const TDesC&, const TTextParameters *)")); - iFbsBitGc->DrawText(text,param); - } - else - { - INFO_PRINTF1(_L("execute DrawText(const TDesC&)")); - iFbsBitGc->DrawText(text); - } - } - else - { - if(CT_GraphicsUtil::GetTextParametersL(*this,aSection,KFldParam,param)) - { - INFO_PRINTF1(_L("execute DrawText(const TDesC&,const TTextParameters *,const TPoint&)")); - iFbsBitGc->DrawText(text,param,point); - } - else - { - INFO_PRINTF1(_L("execute DrawText(const TDesC&,const TPoint&)")); - iFbsBitGc->DrawText(text,point); - } - } - } - delete param; - } - -void CT_DataFbsBitGc::DoCmdDrawTextVerticalL(const TDesC& aSection) - { - TPtrC text; - TInt datTextWidth; - TBool up=EFalse; - CGraphicsContext::TTextParameters* param=NULL; - - if( !GetStringFromConfig(aSection, KFldText(), text) ) - { - ERR_PRINTF2(_L("Missing parameter %S"), &KFldText()); - SetBlockResult(EFail); - return; - } - - if( !GetBoolFromConfig(aSection, KFldUp, up)) - { - ERR_PRINTF2(_L("Missing parameter %S"), &KFldUp()); - SetBlockResult(EFail); - return; - } - - TRect rect; - TInt baselineOffset=0; - if (GetRectFromConfig(aSection, KFldRect, rect) ) - { - if (GetIntFromConfig(aSection, KFldBaselineOffset, baselineOffset)) - { - TInt datMargin=0; - CGraphicsContext::TTextAlign textAlign=CGraphicsContext::ELeft; - CT_GraphicsUtil::ReadTextAlign(*this, aSection, KFldTextAlign,textAlign); - if(!GetIntFromConfig(aSection, KFldLeftMargin, datMargin)) - { - INFO_PRINTF1(_L("Using the default value aMargin=0")); - } - - if (GetIntFromConfig(aSection, KFldTextWidth, datTextWidth)) - { - if(CT_GraphicsUtil::GetTextParametersL(*this,aSection,KFldParam,param)) - { - INFO_PRINTF1(_L("execute DrawTextVertical(const TDesC &,const TTextParameters *,const TRect &,TInt,TInt,TBool,TTextAlign,TInt)")); - iFbsBitGc->DrawTextVertical(text,param,rect,baselineOffset,datTextWidth,up,textAlign,datMargin); - } - else - { - INFO_PRINTF1(_L("execute DrawTextVertical(const TDesC &,const TRect &,TInt,TInt,TBool,TTextAlign,TInt)")); - iFbsBitGc->DrawTextVertical(text,rect,baselineOffset,datTextWidth,up,textAlign,datMargin); - } - } - else - { - if(CT_GraphicsUtil::GetTextParametersL(*this,aSection,KFldParam,param)) - { - INFO_PRINTF1(_L("execute DrawTextVertical(const TDesC &,const TTextParameters *,const TRect &,TInt,TBool,TTextAlign,TInt)")); - iFbsBitGc->DrawTextVertical(text,param,rect,baselineOffset,up,textAlign,datMargin); - } - else - { - INFO_PRINTF1(_L("execute DrawTextVertical(const TDesC &,const TRect &,TInt,TBool,TTextAlign,TInt)")); - iFbsBitGc->DrawTextVertical(text,rect,baselineOffset,up,textAlign,datMargin); - } - } - } - else - { - if(CT_GraphicsUtil::GetTextParametersL(*this,aSection,KFldParam,param)) - { - INFO_PRINTF1(_L("execute DrawTextVertical(const TDesC &,const TTextParameters *,const TRect &,TBool)")); - iFbsBitGc->DrawTextVertical(text,param,rect,up); - } - else - { - INFO_PRINTF1(_L("execute DrawTextVertical(const TDesC &,const TRect &,TBool)")); - iFbsBitGc->DrawTextVertical(text,rect,up); - } - } - } - else - { - TPoint point; - if(!GetPointFromConfig(aSection, KFldPoint, point)) - { - if(CT_GraphicsUtil::GetTextParametersL(*this,aSection,KFldParam,param)) - { - INFO_PRINTF1(_L("execute DrawTextVertical(const TDesC &,const TTextParameters *,TBool)")); - iFbsBitGc->DrawTextVertical(text,param,up); - } - else - { - INFO_PRINTF1(_L("execute DrawTextVertical(const TDesC &,TBool)")); - iFbsBitGc->DrawTextVertical(text,up); - } - } - else - { - if(CT_GraphicsUtil::GetTextParametersL(*this,aSection,KFldParam,param)) - { - INFO_PRINTF1(_L("execute DrawTextVertical(const TDesC &,const TTextParameters *,const TPoint &,TBool)")); - iFbsBitGc->DrawTextVertical(text,param,point,up); - } - else - { - INFO_PRINTF1(_L("execute DrawTextVertical(const TDesC &,const TPoint &,TBool)")); - iFbsBitGc->DrawTextVertical(text,point,up); - } - } - } - delete param; - } - -void CT_DataFbsBitGc::DoCmdUpdateJustificationL(const TDesC& aSection) - { - TPtrC text; - CGraphicsContext::TTextParameters* param=NULL; - if ( !GetStringFromConfig(aSection, KFldText(), text) ) - { - ERR_PRINTF2(_L("Missing parameter %S"), &KFldText()); - SetBlockResult(EFail); - return; - } - if(CT_GraphicsUtil::GetTextParametersL(*this,aSection,KFldParam,param)) - { - INFO_PRINTF1(_L("execute UpdateJustification(const TDesC &,const TTextParameters *)")); - iFbsBitGc->UpdateJustification(text,param); - } - else - { - INFO_PRINTF1(_L("execute UpdateJustification(const TDesC &)")); - iFbsBitGc->UpdateJustification(text); - } - delete param; - } - -void CT_DataFbsBitGc::DoCmdUpdateJustificationVerticalL(const TDesC& aSection) - { - TPtrC text; - TBool up=EFalse; - CGraphicsContext::TTextParameters *param=NULL; - if( !GetStringFromConfig(aSection, KFldText(), text) ) - { - ERR_PRINTF2(_L("Missing parameter %S"), &KFldText()); - SetBlockResult(EFail); - return; - } - - if( !GetBoolFromConfig(aSection, KFldUp, up)) - { - ERR_PRINTF2(_L("Missing parameter %S"), &KFldUp()); - SetBlockResult(EFail); - return; - } - - if(CT_GraphicsUtil::GetTextParametersL(*this,aSection,KFldParam,param)) - { - INFO_PRINTF1(_L("execute UpdateJustificationVertical(const TDesC &,const TTextParameters *,TBool)")); - iFbsBitGc->UpdateJustificationVertical(text,param,up); - } - else - { - INFO_PRINTF1(_L("execute UpdateJustificationVertical(const TDesC &,TBool)")); - iFbsBitGc->UpdateJustificationVertical(text,up); - } - delete param; - } - -void CT_DataFbsBitGc::DoCmdFadeArea(const TDesC& aSection) - { - RRegion reg; - if(GetRegionFromConfig(aSection,KFldRegion,reg)) - { - INFO_PRINTF1(_L("execute FadeArea(const TRegion *)")); - iFbsBitGc->FadeArea(®); - } - else - { - INFO_PRINTF2(_L("Missing parameter %S"), &KFldRegion()); - INFO_PRINTF1(_L("execute FadeArea(NULL)")); - iFbsBitGc->FadeArea(NULL); - } - } - -void CT_DataFbsBitGc::DoCmdIsBrushPatternUsed(const TDesC& aSection) - { - INFO_PRINTF1(_L("execute IsBrushPatternUsed()")); - TBool bUsed=iFbsBitGc->IsBrushPatternUsed(); - - TBool expect; - if(GetBoolFromConfig(aSection,KFldExpect,expect)) - { - if(expect!=bUsed) - { - ERR_PRINTF3(KLogNotExpectedValue, bUsed,expect); - SetBlockResult(EFail); - } - } - } - -void CT_DataFbsBitGc::DoCmdIsFontUsed(const TDesC& aSection) - { - INFO_PRINTF1(_L("execute IsFontUsed()")); - TBool bUsed=iFbsBitGc->IsFontUsed(); - - TBool expect; - if(GetBoolFromConfig(aSection,KFldExpect,expect)) - { - if(expect!=bUsed) - { - ERR_PRINTF3(KLogNotExpectedValue, bUsed,expect); - SetBlockResult(EFail); - } - } - } - -void CT_DataFbsBitGc::DoCmdOrientationsAvailable(const TDesC& /*aSection*/) - { - INFO_PRINTF1(_L("execute OrientationsAvailable(TBool aOrientation[4])")); - - //iGraphicsOrientation defined in CDataWrapperBase - iFbsBitGc->OrientationsAvailable(iGraphicsOrientation); - - TBuf tempStore; - - for(TInt i=0;i<4;i++) - { - tempStore.Format(KFormatFieldNumber, i+1,iGraphicsOrientation[i]); - INFO_PRINTF1(KFormatFieldNumber); - } - } - -void CT_DataFbsBitGc::DoCmdRectDrawnTo(const TDesC& aSection) - { - TRect rect; - if(GetRectFromConfig(aSection, KFldRect, rect)) - { - INFO_PRINTF1(_L("execute RectDrawnTo(TRect&)")); - iFbsBitGc->RectDrawnTo(rect); - } - else - { - ERR_PRINTF2(_L("Missing parameter %S"), &KFldRect()); - SetBlockResult(EFail); - } - - } - -void CT_DataFbsBitGc::DoCmdResized(const TDesC& /*aSection*/) - { - INFO_PRINTF1(_L("execute Resized()")); - iFbsBitGc->Resized(); - - } - -void CT_DataFbsBitGc::DoCmdSetDitherOrigin(const TDesC& aSection) - { - TPoint point; - if (GetPointFromConfig(aSection, KFldPoint, point)) - { - INFO_PRINTF1(_L("execute SetDitherOrigin(const TPoint &)")); - iFbsBitGc->SetDitherOrigin(point); - } - else - { - ERR_PRINTF2(KLogMissingParameter, &KFldPoint()); - SetBlockResult(EFail); - } - } - -void CT_DataFbsBitGc::DoCmdSetFadeMode(const TDesC& aSection) - { - TBool fade; - if(GetBoolFromConfig(aSection,KFldFadeMode,fade)) - { - INFO_PRINTF1(_L("execute SetFadeMode(TBool)")); - iFbsBitGc->SetFadeMode(fade); - } - else - { - INFO_PRINTF1(_L("execute SetFadeMode(TBool aFadeMode=EFalse)")); - iFbsBitGc->SetFadeMode(); - } - } - -TBool CT_DataFbsBitGc::DoCmdSetFadingParameters(const TDesC& aSection) - { - TInt blackmap=0; - TInt whitemap=255; - if(GetIntFromConfig(aSection,KFldWhiteMap,whitemap)) - { - //let base class handle this - return EFalse; - } - else - { - if(GetBoolFromConfig(aSection,KFldBlackMap,blackmap)) - { - INFO_PRINTF1(_L("execute SetFadingParameters(TUint8)")); - iFbsBitGc->SetFadingParameters(blackmap); - } - else - { - INFO_PRINTF1(_L("execute SetFadingParameters(TUint8 aBlackMap=0)")); - iFbsBitGc->SetFadingParameters(); - } - } - return ETrue; - } - -void CT_DataFbsBitGc::DoCmdSetOrientation(const TDesC& aSection) - { - CFbsBitGc::TGraphicsOrientation orientation; - TBool ret=EFalse; - if(CT_GraphicsUtil::GetGraphicsOrientation(*this,aSection,KFldGraphicsOrientation,orientation)) - { - INFO_PRINTF1(_L("execute SetOrientation(TGraphicsOrientation)")); - ret=iFbsBitGc->SetOrientation(orientation); - if(ret!=iGraphicsOrientation[orientation]) - { - INFO_PRINTF1(_L("SetOrientation and OrientationsAvailable return values are not match!")); - SetBlockResult(EFail); - } - } - else - { - ERR_PRINTF2(KLogMissingParameter, &KFldGraphicsOrientation()); - SetBlockResult(EFail); - } - } - -void CT_DataFbsBitGc::DoCmdSetShadowMode(const TDesC& aSection) - { - TBool mode; - if(GetBoolFromConfig(aSection,KFldShadowMode,mode)) - { - INFO_PRINTF1(_L("execute SetShadowMode(TBool)")); - iFbsBitGc->SetShadowMode(mode); - } - else - { - INFO_PRINTF1(_L("execute SetShadowMode(TBool aShadowMode=EFalse)")); - iFbsBitGc->SetShadowMode(); - } - } - -void CT_DataFbsBitGc::DoCmdSetUserDisplayMode(const TDesC& aSection) - { - TDisplayMode mode; - if(CT_GraphicsUtil::ReadDisplayMode(*this,aSection,KFldDisplayMode,mode)) - { - INFO_PRINTF1(_L("execute SetUserDisplayMode(TDisplayMode)")); - iFbsBitGc->SetUserDisplayMode(mode); - } - else - { - ERR_PRINTF2(KLogMissingParameter, &KFldDisplayMode()); - SetBlockResult(EFail); - } - } - -void CT_DataFbsBitGc::DoCmdShadowArea(const TDesC& aSection) - { - RRegion reg; - if(GetRegionFromConfig(aSection,KFldRegion,reg)) - { - INFO_PRINTF1(_L("execute ShadowArea(const TRegion *)")); - iFbsBitGc->ShadowArea(®); - } - else - { - INFO_PRINTF2(_L("Missing parameter %S"), &KFldRegion()); - INFO_PRINTF1(_L("execute ShadowArea(NULL)")); - iFbsBitGc->ShadowArea(NULL); - } - } - -void CT_DataFbsBitGc::DoCmdUseBrushPatternL(const TDesC& aSection) - { - TInt handle; - if(GetIntFromConfig(aSection,KFldHandle,handle)) - { - INFO_PRINTF1(_L("execute UseBrushPattern(TInt) using the specified handle.")); - TInt err=iFbsBitGc->UseBrushPattern(handle); - if(KErrNone!=err) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - } - else - { - CFbsBitmap* bitmap=NULL; - if (CT_GraphicsUtil::GetFbsBitmapL(*this, aSection, KFldBitmap, bitmap)) - { - TBool usehandle; - if(GetBoolFromConfig(aSection,KFldUseHandle,usehandle)) - { - INFO_PRINTF1(_L("execute UseBrushPattern(TInt) using the bitmap object's handle.")); - TInt err=iFbsBitGc->UseBrushPattern(bitmap->Handle()); - if(KErrNone!=err) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - } - else - { - INFO_PRINTF1(_L("execute UseBrushPattern(CFbsBitmap*)")); - iFbsBitGc->UseBrushPattern(bitmap); - } - } - else - { - ERR_PRINTF2(_L("Missing parameter %S"), &KFldBitmap()); - SetBlockResult(EFail); - } - } - } - -void CT_DataFbsBitGc::DoCmdUseFontL(const TDesC& aSection) - { - TInt handle; - if(GetIntFromConfig(aSection,KFldHandle,handle)) - { - INFO_PRINTF1(_L("execute UseFont(TInt) using the specified handle")); - TInt err=iFbsBitGc->UseFont(handle); - if(KErrNone!=err) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - } - else - { - CFont* font=NULL; - if(CT_GraphicsUtil::GetFontL(*this,aSection,KFldFont,font)) - { - TBool usehandle; - if(GetBoolFromConfig(aSection,KFldUseHandle,usehandle)) - { - INFO_PRINTF1(_L("execute UseFont(TInt) using the font object's handle")); - TInt err=iFbsBitGc->UseFont(((CFbsFont*)font)->Handle()); - if(KErrNone!=err) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - } - else - { - INFO_PRINTF1(_L("execute UseFont(CFont*)")); - iFbsBitGc->UseFont(font); - } - } - else - { - ERR_PRINTF2(_L("Missing parameter %S"), &KFldFont()); - SetBlockResult(EFail); - } - } - } - -void CT_DataFbsBitGc::DoCmdUseFontNoDuplicateL(const TDesC& aSection) - { - CFont* font=NULL; - if(CT_GraphicsUtil::GetFontL(*this,aSection,KFldFont,font)) - { - INFO_PRINTF1(_L("execute UseFontNoDuplicate(const CFbsBitGcFont*)")); - iFbsBitGc->UseFontNoDuplicate((CFbsBitGcFont*)font); - } - else - { - ERR_PRINTF2(_L("Missing parameter %S"), &KFldFont()); - SetBlockResult(EFail); - } - } - -void CT_DataFbsBitGc::DoCmdPromptMessageL(const TDesC& aSection) - { - TPtrC text; - //get prompt text to display in console in order to help user verify. - if(!GetStringFromConfig(aSection, KFldPromptText(), text)) - { - ERR_PRINTF2(_L("Missing parameter %S"), &KFldPromptText()); - SetBlockResult(EFail); - } - TInt expectedKey; - if(!GetIntFromConfig(aSection, KFldExpectedKey(), expectedKey)) - { - ERR_PRINTF2(_L("Missing parameter %S"), &KFldExpectedKey()); - SetBlockResult(EFail); - } - TInt actualKey; - RProperty property; - const TUid KMyPropertyCat={0x10012345}; - TUint key=1; - TSecurityPolicy read(TSecurityPolicy::EAlwaysPass); - TSecurityPolicy write(TSecurityPolicy::EAlwaysPass); - TInt err=property.Define(KMyPropertyCat,key,RProperty::EInt,read,write); - if (err==KErrAlreadyExists) - { - ERR_PRINTF1(_L("RProperty has existed!")); - SetBlockResult(EFail); - User::LeaveIfError(err); - } - err=property.Attach(KMyPropertyCat,key); - TRequestStatus substatus; - //issue a request to get property change information. - property.Subscribe(substatus); - RProcess promptProcess; - err = promptProcess.Create(KPromptProcess, text); - if (err == KErrNone) - { - CleanupClosePushL(promptProcess); - TRequestStatus promptStatus; - promptProcess.Rendezvous(promptStatus); - if (promptStatus == KRequestPending) - { - promptProcess.Resume(); - User::WaitForRequest(promptStatus); - } - else - { - promptProcess.RendezvousCancel(promptStatus); - promptProcess.Kill(0); - ERR_PRINTF2(_L("Executing of prompt process failed with error %d"), promptStatus.Int()); - SetBlockResult(EFail); - } - CleanupStack::PopAndDestroy(); - } - else - { - ERR_PRINTF2(_L("Failed to create prompt process with error %d"), err); - SetBlockResult(EFail); - } - //get property change information. - User::WaitForRequest(substatus); - if (substatus!=KRequestPending) - { - property.Get(KMyPropertyCat,key,actualKey); - INFO_PRINTF2(_L("property.Get %d"), actualKey); - } - err=RProperty::Delete(KMyPropertyCat,key); - if (err!=KErrNotFound) - User::LeaveIfError(err); - property.Close(); - if(actualKey != expectedKey) - { - ERR_PRINTF3(_L("expectedKey=%d pressed key=%d"), expectedKey, actualKey); - SetBlockResult(EFail); - } - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/bitgdi/src/T_DataFbsBitGcBitmap.cpp --- a/graphicsapitest/graphicssvs/bitgdi/src/T_DataFbsBitGcBitmap.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,201 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -#include "T_DataFbsBitGcBitmap.h" - - -/// Commands -_LIT(KCmdNewL, "new"); -_LIT(KCmdAddress, "Address"); -_LIT(KCmdLockHeap, "LockHeap"); -_LIT(KCmdUnlockHeap, "UnlockHeap"); -_LIT(KCmdDestructorGeneral, "~"); -_LIT(KCmdDestructor, "~CFbsBitGcBitmap"); - -//Log -_LIT(KLogErrNum, "Error=%d"); -_LIT(KLogInfoCmdnewL, "execute new CFbsBitGcBitmap()"); -_LIT(KLogInfoCmdDestructor1, "execute ~CFbsBitGcBitmap()"); - -//Fields -_LIT(KFldExpectedWidth, "expectedWidth"); -_LIT(KFldExpectedHeight, "expectedHeight"); - - -CT_DataFbsBitGcBitmap* CT_DataFbsBitGcBitmap::NewL() - { - CT_DataFbsBitGcBitmap* ret = new (ELeave) CT_DataFbsBitGcBitmap(); - CleanupStack::PushL(ret); - ret->ConstructL(); - CleanupStack::Pop(ret); - return ret; - } - -CT_DataFbsBitGcBitmap::CT_DataFbsBitGcBitmap() -: iFbsBitGcBitmap(NULL) - { - - } - -void CT_DataFbsBitGcBitmap::ConstructL() - { - - } - -CT_DataFbsBitGcBitmap::~CT_DataFbsBitGcBitmap() - { - DestroyData(); - } - -TAny* CT_DataFbsBitGcBitmap::GetObject() - { - return iFbsBitGcBitmap; - } - -void CT_DataFbsBitGcBitmap::SetObjectL(TAny* aAny) - { - DestroyData(); - iFbsBitGcBitmap = static_cast (aAny); - } - -void CT_DataFbsBitGcBitmap::DisownObjectL() - { - iFbsBitGcBitmap = NULL; - } - -CFbsBitmap* CT_DataFbsBitGcBitmap::GetFbsBitmap() const - { - return iFbsBitGcBitmap; - } - -/** -* Process a command read from the ini file -* -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* @return ETrue if the command is processed -*/ -TBool CT_DataFbsBitGcBitmap::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex) - { - TBool ret = ETrue; - if (aCommand==KCmdNewL) - { - DoCmdNewL(); - } - else if ( aCommand==KCmdDestructorGeneral || aCommand==KCmdDestructor ) - { - DoCmdDestructor(); - } - else if ( aCommand==KCmdAddress) - { - DoCmdAddress(aSection); - } - else if(aCommand==KCmdLockHeap) - { - DoCmdLockHeap(); - } - else if(aCommand==KCmdUnlockHeap) - { - DoCmdUnlockHeap(); - } - else - { - ret=CT_DataFbsBitmap::DoCommandL(aCommand, aSection, aAsyncErrorIndex); - } - - return ret; - } - -void CT_DataFbsBitGcBitmap::DestroyData() - { - delete iFbsBitGcBitmap; - iFbsBitGcBitmap = NULL; - } - -void CT_DataFbsBitGcBitmap::DoCmdDestructor() - { - INFO_PRINTF1(KLogInfoCmdDestructor1); - DestroyData(); - } - -void CT_DataFbsBitGcBitmap::DoCmdNewL() - { - DestroyData(); - TInt err = KErrNone; - INFO_PRINTF1(KLogInfoCmdnewL); - TRAP(err, iFbsBitGcBitmap = new (ELeave) CFbsBitGcBitmap()); - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogErrNum, err); - SetError(err); - } - } - -void CT_DataFbsBitGcBitmap::DoCmdAddress(const TDesC& aSection) - { - INFO_PRINTF1(_L("execute CFbsBitGcBitmap::Address()")); - CBitwiseBitmap* bmp=iFbsBitGcBitmap->Address(); - if(bmp==NULL) - { - INFO_PRINTF1(_L("The bitmap address is NULL")); - return; - } - - TInt displaymode=bmp->DisplayMode(); - TSize size=bmp->SizeInPixels(); - TInt sizeH=size.iHeight; - TInt sizeW=size.iWidth; - TInt expectedWidth, expectedHeight; - if(GetIntFromConfig(aSection,KFldExpectedWidth, expectedWidth)) - { - if(expectedWidth!=sizeW) - { - ERR_PRINTF3(_L("The bitmap width in pixel is: %d not as expected: %d"), sizeW, expectedWidth); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF2(_L("The bitmap width in pixel is: %d as expected"),sizeW); - } - } - - if(GetIntFromConfig(aSection, KFldExpectedHeight, expectedHeight)) - { - if(expectedHeight!=sizeH) - { - ERR_PRINTF3(_L("The bitmap height in pixel is: %d not as expected: %d"), sizeH, expectedHeight); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF2(_L("The bitmap height in pixel is: %d as expected"),sizeH); - } - } - } - -void CT_DataFbsBitGcBitmap::DoCmdLockHeap() - { - INFO_PRINTF1(_L("execute CFbsBitGcBitmap::LockHeap()")); - iFbsBitGcBitmap->LockHeap(); - } - -void CT_DataFbsBitGcBitmap::DoCmdUnlockHeap() - { - INFO_PRINTF1(_L("execute CFbsBitGcBitmap::UnlockHeap")); - iFbsBitGcBitmap->UnlockHeap(); - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/bitgdi/src/T_DataFbsBitGcFont.cpp --- a/graphicsapitest/graphicssvs/bitgdi/src/T_DataFbsBitGcFont.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,233 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataFbsBitGcFont -*/ - -#include "T_DataFbsBitGcFont.h" - -/*@{*/ -/// Parameters -_LIT(KFldHandle, "handle"); -_LIT(KFontDataObjectName, "font_data_object_name"); - -/// Commands -_LIT(KCmdNewL, "NewL"); -_LIT(KCmdDestructor, "~"); -_LIT(KCmdAddress, "Address"); -_LIT(KCmdDuplicate, "Duplicate"); -_LIT(KCmdReset, "Reset"); - - -/// Logs -_LIT(KLogMissingParameter, "Missing parameter '%S'"); -_LIT(KLogErrNum, "Execute failed with error = %d!"); -/*@}*/ - - -/** -* Constructor -*/ -CT_DataFbsBitGcFont* CT_DataFbsBitGcFont::NewL() - { - CT_DataFbsBitGcFont* ret = new (ELeave) CT_DataFbsBitGcFont(); - CleanupStack::PushL(ret); - ret->ConstructL(); - CleanupStack::Pop(ret); - return ret; - } - -/** -* Protected constructor. First phase construction -*/ -CT_DataFbsBitGcFont::CT_DataFbsBitGcFont() -: CT_DataFbsFont() -, iFbsBitGcFont(NULL) - { - } - -/** -* Protected second phase construction -*/ -void CT_DataFbsBitGcFont::ConstructL() - { - } - -/** -* Destructor. -*/ -CT_DataFbsBitGcFont::~CT_DataFbsBitGcFont() - { - DisownObjectL(); - } - - -CFont* CT_DataFbsBitGcFont::GetFont() const - { - return iFbsBitGcFont; - } - -CFbsFont* CT_DataFbsBitGcFont::GetFbsFont() const - { - return iFbsBitGcFont; - } - -/** -* Return a pointer to the object that the data wraps -* -* @return pointer to the object that the data wraps -*/ -TAny* CT_DataFbsBitGcFont::GetObject() - { - return iFbsBitGcFont; - } - -void CT_DataFbsBitGcFont::SetObjectL(TAny* aObject) - { - iFbsBitGcFont = static_cast (aObject); - } - -void CT_DataFbsBitGcFont::DisownObjectL() - { - iFbsBitGcFont = NULL; - } - - -/** -* Process a command read from the ini file -* -* @param aDataWrapper test step requiring command to be processed -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* -* @return ETrue if the command is processed -*/ -TBool CT_DataFbsBitGcFont::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex) - { - /* Another work package will complete the implement of this */ - TBool retVal = ETrue; - - if ( aCommand == KCmdNewL ) - { - DoCmdNewL(); - } - else if (aCommand == KCmdDestructor) - { - DoCmdDestructor(); - } - else if (aCommand == KCmdAddress) - { - DoCmdAddress(); - } - else if (aCommand == KCmdDuplicate) - { - DoCmdDuplicate(aSection); - } - else if (aCommand == KCmdReset) - { - DoCmdReset(); - } - else - { - retVal = CT_DataFbsFont::DoCommandL(aCommand, aSection, aAsyncErrorIndex); - } - return retVal; - } - - -void CT_DataFbsBitGcFont::DoCmdNewL() - { - TInt err = KErrNone; - INFO_PRINTF1(_L("Create CFbsBitGcFont Object by CFbsBitGcFont() constructor function.")); - TRAP(err, iFbsBitGcFont = new (ELeave) CFbsBitGcFont()); - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogErrNum, err); - SetError(err); - } - } - -void CT_DataFbsBitGcFont::DoCmdDestructor() - { - DisownObjectL(); - } - -void CT_DataFbsBitGcFont::DoCmdAddress() - { - CBitmapFont* BitmapFontPtr = NULL; - INFO_PRINTF1(_L("Execute CFbsBitGcFont::Address() function.")); - - BitmapFontPtr = iFbsBitGcFont->Address(); - if (NULL == BitmapFontPtr) - { - INFO_PRINTF1(_L("The CBitmapFont* returned is NULL.")); - } - } - -void CT_DataFbsBitGcFont::DoCmdDuplicate(const TDesC& aSection) - { - TInt handle = 0; - INFO_PRINTF1(_L("Execute CFbsBitGcFont::Duplicate(TInt aHandle) function.")); - - if(GetIntFromConfig(aSection,KFldHandle,handle)) - { - INFO_PRINTF2(_L("Execute Duplicate(TInt aHandle) using the specified handle = %d"), handle); - } - else - { - TPtrC fontDataObjectName; - if (!GetStringFromConfig(aSection, KFontDataObjectName(), fontDataObjectName)) - { - ERR_PRINTF2(KLogMissingParameter, &KFontDataObjectName); - SetBlockResult(EFail); - return; - } - else - { - CT_DataFbsBitGcFont* fontDataObject = NULL; - fontDataObject = static_cast(GetDataWrapperL(fontDataObjectName)); - if (NULL == fontDataObject) - { - ERR_PRINTF1(_L("Bad Object!")); - SetBlockResult(EFail); - return; - } - else - { - handle = ((CFbsBitGcFont*)fontDataObject->GetObject())->Handle(); - INFO_PRINTF2(_L("Execute Duplicate(TInt aHandle) using CFbsBitGcFont Object's handle = %d"), handle); - } - } - } - - TInt err = iFbsBitGcFont->Duplicate(handle); - if (KErrNone != err) - { - ERR_PRINTF2(KLogErrNum, err); - SetError(err); - } - } - -void CT_DataFbsBitGcFont::DoCmdReset() - { - INFO_PRINTF1(_L("Execute CFbsBitGcFont::Reset() function.")); - iFbsBitGcFont->Reset(); - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/bitgdi/src/T_DataFbsBitmapDevice.cpp --- a/graphicsapitest/graphicssvs/bitgdi/src/T_DataFbsBitmapDevice.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,261 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataFbsBitmapDevice -*/ - -// User includes -#include "T_DataFbsBitmapDevice.h" -#include "T_GraphicsUtil.h" - -/*@{*/ -/// Commands -_LIT(KCmdNewL, "NewL"); -_LIT(KCmdDestructor, "~"); -_LIT(KCmdDrawingBegin, "DrawingBegin"); -_LIT(KCmdDrawingEnd, "DrawingEnd"); -_LIT(KCmdResize, "Resize"); -_LIT(KCmdSwapWidthAndHeight, "SwapWidthAndHeight"); - -/// Parameters -_LIT(KFldBitmap, "bitmap"); -_LIT(KFldLibName, "libname"); -_LIT(KFldSize, "size"); -_LIT(KFldResize, "resize"); -_LIT(KFldAlways, "Always"); - -// Logs -_LIT(KLogMissingParameter, "Missing parameter '%S'"); -_LIT(KLogErrNum, "Execute failed with error = %d!"); -/*@}*/ - - -/** -* Two phase constructor -*/ -CT_DataFbsBitmapDevice* CT_DataFbsBitmapDevice::NewL() - { - CT_DataFbsBitmapDevice* ret = new (ELeave) CT_DataFbsBitmapDevice(); - CleanupStack::PushL(ret); - ret->ConstructL(); - CleanupStack::Pop(ret); - return ret; - } - -/** -* Protected constructor. First phase construction -*/ -CT_DataFbsBitmapDevice::CT_DataFbsBitmapDevice() -: CT_DataFbsDevice() -, iFbsBitmapDevice(NULL) - { - } - -/** -* Protected second phase construction -*/ -void CT_DataFbsBitmapDevice::ConstructL() - { - } - -/** -* Destructor. -*/ -CT_DataFbsBitmapDevice::~CT_DataFbsBitmapDevice() - { - DestroyData(); - } - -void CT_DataFbsBitmapDevice::DestroyData() - { - delete iFbsBitmapDevice; - iFbsBitmapDevice=NULL; - } - -MGraphicsDeviceMap* CT_DataFbsBitmapDevice::GetGraphicsDeviceMap() const - { - return iFbsBitmapDevice; - } - -CGraphicsDevice* CT_DataFbsBitmapDevice::GetGraphicsDevice() const - { - return iFbsBitmapDevice; - } - -CBitmapDevice* CT_DataFbsBitmapDevice::GetBitmapDevice() const - { - return iFbsBitmapDevice; - } - -CFbsDevice* CT_DataFbsBitmapDevice::GetFbsDevice() const - { - return iFbsBitmapDevice; - } -/** -* Return a pointer to the object that the data wraps -* -* @return pointer to the object that the data wraps -*/ -TAny* CT_DataFbsBitmapDevice::GetObject() - { - return iFbsBitmapDevice; - } - -void CT_DataFbsBitmapDevice::SetObjectL(TAny* aObject) - { - DestroyData(); - iFbsBitmapDevice = static_cast (aObject); - } - -void CT_DataFbsBitmapDevice::DisownObjectL() - { - iFbsBitmapDevice = NULL; - } - -/** -* Process a command read from the ini file -* -* @param aDataWrapper test step requiring command to be processed -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* -* @return ETrue if the command is processed -*/ -TBool CT_DataFbsBitmapDevice::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex) - { - /* Another work package will complete the implement of this */ - TBool retVal = ETrue; - - if ( aCommand == KCmdNewL ) - { - DoCmdNewL(aSection); - } - else if (aCommand == KCmdDestructor) - { - DoCmdDestructor(); - } - else if (aCommand == KCmdDrawingBegin) - { - DoCmdDrawingBegin(aSection); - } - else if (aCommand == KCmdDrawingEnd) - { - DoCmdDrawingEnd(aSection); - } - else if (aCommand == KCmdResize) - { - DoCmdResize(aSection); - } - else if (aCommand == KCmdSwapWidthAndHeight) - { - DoCmdSwapWidthAndHeight(); - } - else - { - retVal=CT_DataFbsDevice::DoCommandL(aCommand, aSection, aAsyncErrorIndex); - } - return retVal; - } - -void CT_DataFbsBitmapDevice::DoCmdNewL(const TDesC& aSection) - { - DestroyData(); - CFbsBitmap* bitmap = NULL; - - if (!CT_GraphicsUtil::GetFbsBitmapL(*this, aSection, KFldBitmap, bitmap)) - { - ERR_PRINTF2(KLogMissingParameter, &KFldBitmap); - SetBlockResult(EFail); - return; - } - TInt err = KErrNone; - TPtrC libName; - if ( GetStringFromConfig(aSection, KFldLibName(), libName) ) - { - INFO_PRINTF1(_L("execute NewL(CFbsBitmap*, const TDesC&).")); - TRAP(err, iFbsBitmapDevice=CFbsBitmapDevice::NewL(bitmap, libName)); - } - else - { - INFO_PRINTF1(_L("execute NewL(CFbsBitmap*).")); - TRAP(err, iFbsBitmapDevice=CFbsBitmapDevice::NewL(bitmap)); - } - - if ( err != KErrNone ) - { - ERR_PRINTF2(KLogErrNum, err); - SetError(err); - } - } - -void CT_DataFbsBitmapDevice::DoCmdDestructor() - { - DestroyData(); - } - -void CT_DataFbsBitmapDevice::DoCmdDrawingBegin(const TDesC& aSection) - { - TBool Always = EFalse; - GetBoolFromConfig(aSection, KFldAlways, Always); - INFO_PRINTF2(_L("execute DrawingBegin function with the Always parameter=%d."), Always); - iFbsBitmapDevice->DrawingBegin(Always); - } - -void CT_DataFbsBitmapDevice::DoCmdDrawingEnd(const TDesC& aSection) - { - TBool Always = EFalse; - GetBoolFromConfig(aSection, KFldAlways, Always); - INFO_PRINTF2(_L("execute DrawingEnd function with the Always parameter=%d."), Always); - iFbsBitmapDevice->DrawingEnd(Always); - } - -void CT_DataFbsBitmapDevice::DoCmdResize(const TDesC& aSection) - { - TSize datSize; - TInt err = KErrNone; - INFO_PRINTF1(_L("execute Resize(const TSize&)")); - if (!GetSizeFromConfig(aSection, KFldResize, datSize)) - { - ERR_PRINTF2(KLogMissingParameter, &KFldResize); - SetBlockResult(EFail); - } - else - { - err = iFbsBitmapDevice->Resize(datSize); - if (KErrNone != err) - { - ERR_PRINTF2(KLogErrNum, err); - SetError(err); - } - } - } - -void CT_DataFbsBitmapDevice::DoCmdSwapWidthAndHeight() - { - INFO_PRINTF1(_L("execute SwapWidthAndHeight()")); - TInt err = iFbsBitmapDevice->SwapWidthAndHeight(); - if (KErrNone != err) - { - ERR_PRINTF2(KLogErrNum, err); - SetError(err); - } - } - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/bitgdi/src/T_DataFbsDevice.cpp --- a/graphicsapitest/graphicssvs/bitgdi/src/T_DataFbsDevice.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1090 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataFbsDevice -*/ - -#include "T_DataFbsDevice.h" -#include "T_GraphicsUtil.h" - -/*@{*/ -//Commands -_LIT(KCmdcheckPixels, "checkPixels"); -_LIT(KCmdcheckLineColor, "checkLineColor"); -_LIT(KCmdcheckRectColor, "checkRectColor"); -_LIT(KCmdSizeInPixels, "SizeInPixels"); -_LIT(KCmdGetFontById, "GetFontById"); -_LIT(KCmdGetNearestFontInPixels, "GetNearestFontInPixels"); -_LIT(KCmdGetNearestFontInTwips, "GetNearestFontInTwips"); -_LIT(KCmdGetNearestFontToDesignHeightInPixels, "GetNearestFontToDesignHeightInPixels"); -_LIT(KCmdGetNearestFontToDesignHeightInTwips, "GetNearestFontToDesignHeightInTwips"); -_LIT(KCmdGetNearestFontToMaxHeightInPixels, "GetNearestFontToMaxHeightInPixels"); -_LIT(KCmdGetNearestFontToMaxHeightInTwips, "GetNearestFontToMaxHeightInTwips"); -_LIT(KCmdCreateContext, "CreateContext"); -_LIT(KCmdRectCompare, "RectCompare"); -_LIT(KCmdSetCustomPalette, "SetCustomPalette"); -_LIT(KCmdGraphicsAccelerator, "GraphicsAccelerator"); -_LIT(KCmdOrientation, "Orientation"); -_LIT(KCmdDisplayMode16M, "DisplayMode16M"); -_LIT(KCmdSetScalingFactor, "SetScalingFactor"); -_LIT(KCmdGetDrawRect, "GetDrawRect"); -_LIT(KCmdSetDrawDeviceOffset, "SetDrawDeviceOffset"); -_LIT(KCmdRegisterLinkedTypeface, "RegisterLinkedTypeface"); - -//Fields -_LIT(KFldAlgStyle, "alg_style"); -_LIT(KFldExpected, "expected"); -_LIT(KFldFinish, "finish"); -_LIT(KFldFormatFieldNumber, "%S%d"); -_LIT(KFldFont, "font"); -_LIT(KFldFbsFont, "fbsfont"); -_LIT(KFldFontUid, "font_uid"); -_LIT(KFldMaxHeight, "maxheight"); -_LIT(KFldPixel, "pixel"); -_LIT(KFldRect, "rect"); -_LIT(KFldStart, "start"); -_LIT(KFldBitGc, "bitgc"); -_LIT(KFldRect1, "rect1"); -_LIT(KFldRect2, "rect2"); -_LIT(KFldFbsDevice, "fbsdevice"); -_LIT(KFldExpectedOrientation, "expectedorientation"); -_LIT(KFldPalette, "palette"); -_LIT(KFldGraphicsAccelerator, "graphicsaccelerator"); -_LIT(KFldExpectedDisplayMode, "expecteddisplaymode"); -_LIT(KFldOrigin, "origin"); -_LIT(KFldFactorX, "factorx"); -_LIT(KFldFactorY, "factory"); -_LIT(KFldDivisorX, "divisorx"); -_LIT(KFldDivisorY, "divisory"); -_LIT(KFldExpectedDrawRect, "expecteddrawrect"); -_LIT(KFldOffset, "offset"); -_LIT(KFldLinkedTypefaceSpec, "linkedtypefacespec"); -_LIT(KFldExpectedUid, "expecteduid"); - -//Logs -_LIT(KLogColor, "Color Red=%d Green=%d Blue=%d Alpha=%d"); -_LIT(KLogPoint, "Point X=%d Y=%d"); -_LIT(KLogError, "Error=%d"); -_LIT(KLogMissingParameter, "Missing parameter '%S'"); -_LIT(KLogMissingWrapper, "Missing wrapper for '%S'"); -_LIT(KLogNotExpectedValue, "Not expected value"); -/*@}*/ - -/** -* Constructor. First phase construction -*/ -CT_DataFbsDevice::CT_DataFbsDevice() -: CT_DataBitmapDevice() - { - } - -/** -* Process a command read from the ini file -* -* @param aDataWrapper test step requiring command to be processed -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* -* @return ETrue if the command is processed -*/ -TBool CT_DataFbsDevice::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex) - { - /* Another work package will implement this */ - TBool retVal = ETrue; - - if (aCommand == KCmdcheckPixels) - { - DoCmdCheckPixels(aSection); - } - else if (aCommand == KCmdcheckLineColor) - { - DoCmdCheckLineColor(aSection); - } - else if (aCommand == KCmdcheckRectColor) - { - DoCmdCheckRectColor(aSection); - } - else if (aCommand == KCmdSizeInPixels) - { - DoCmdSizeInPixels(aSection); - } - else if (aCommand == KCmdGetFontById) - { - DoCmdGetFontByIdL(aSection); - } - else if (aCommand == KCmdGetNearestFontInPixels) - { - if( !DoCmdGetNearestFontInPixelsL(aSection) ) - { - retVal = CT_DataBitmapDevice::DoCommandL(aCommand, aSection, aAsyncErrorIndex); - } - } - else if (aCommand == KCmdGetNearestFontInTwips) - { - if( !DoCmdGetNearestFontInTwipsL(aSection) ) - { - retVal = CT_DataBitmapDevice::DoCommandL(aCommand, aSection, aAsyncErrorIndex); - } - } - else if (aCommand == KCmdGetNearestFontToDesignHeightInPixels) - { - if( !DoCmdGetNearestFontToDesignHeightInPixelsL(aSection) ) - { - retVal = CT_DataBitmapDevice::DoCommandL(aCommand, aSection, aAsyncErrorIndex); - } - } - else if (aCommand == KCmdGetNearestFontToDesignHeightInTwips) - { - if( !DoCmdGetNearestFontToDesignHeightInTwipsL(aSection) ) - { - retVal = CT_DataBitmapDevice::DoCommandL(aCommand, aSection, aAsyncErrorIndex); - } - } - else if (aCommand == KCmdGetNearestFontToMaxHeightInPixels) - { - if( !DoCmdGetNearestFontToMaxHeightInPixelsL(aSection) ) - { - retVal = CT_DataBitmapDevice::DoCommandL(aCommand, aSection, aAsyncErrorIndex); - } - } - else if (aCommand == KCmdGetNearestFontToMaxHeightInTwips) - { - if( !DoCmdGetNearestFontToMaxHeightInTwipsL(aSection) ) - { - retVal = CT_DataBitmapDevice::DoCommandL(aCommand, aSection, aAsyncErrorIndex); - } - } - else if (aCommand == KCmdCreateContext) - { - if (!DoCmdCreateContextL(aSection)) - { - retVal = CT_DataBitmapDevice::DoCommandL(aCommand, aSection, aAsyncErrorIndex); - } - } - else if (aCommand == KCmdRectCompare) - { - DoCmdRectCompareL(aSection); - } - else if (aCommand == KCmdOrientation) - { - DoCmdOrientation(aSection); - } - else if (aCommand == KCmdSetCustomPalette) - { - DoCmdSetCustomPaletteL(aSection); - } - else if (aCommand == KCmdGraphicsAccelerator) - { - DoCmdGraphicsAccelerator(); - } - else if (aCommand == KCmdDisplayMode16M) - { - DoCmdDisplayMode16M(aSection); - } - else if (aCommand == KCmdSetScalingFactor) - { - DoCmdSetScalingFactor(aSection); - } - else if (aCommand == KCmdGetDrawRect) - { - DoCmdGetDrawRect(aSection); - } - else if (aCommand == KCmdRegisterLinkedTypeface) - { - DoCmdRegisterLinkedTypefaceL(aSection); - } - else if (aCommand == KCmdSetDrawDeviceOffset) - { - DoCmdSetDrawDeviceOffset(aSection); - } - else - { - retVal = CT_DataBitmapDevice::DoCommandL(aCommand, aSection, aAsyncErrorIndex); - } - return retVal; - } - - -void CT_DataFbsDevice::DoCmdSizeInPixels(const TDesC& aSection) - { - INFO_PRINTF1(_L("execute SizeInPixels()")); - TSize actualsize; - TInt expectheight = 0; - TInt expectwidth = 0; - TSize expectsize; - - if (!GetSizeFromConfig(aSection, KFldExpected, expectsize)) - { - ERR_PRINTF2(KLogMissingParameter, &KFldExpected); - SetBlockResult(EFail); - } - else - { - actualsize = GetFbsDevice()->SizeInPixels(); - if (actualsize != expectsize) - { - ERR_PRINTF3(_L("The actual size is width=%d, height=%d"), actualsize.iWidth, actualsize.iHeight); - ERR_PRINTF3(_L("The expect size is width=%d, height=%d"), expectsize.iWidth, expectsize.iHeight); - SetBlockResult(EFail); - } - } - } - -/** -* DoCmdcheckPixels: to check the color of specified pixels on the screen device, and compare -* with the expected color specidied in the TEF testdata. -* pixel: specify the position of the screen device to check -* expected: specify the expected color to be compared with -* -*/ -void CT_DataFbsDevice::DoCmdCheckPixels(const TDesC& aSection) - { - TBuf tempStore; - - TBool moreData = ETrue; - for (TInt index=1; moreData; ++index) - { - // get the pixel position on the screen to check/verify - tempStore.Format(KFldFormatFieldNumber, &KFldPixel, index); - TPoint point; - if ( !GetPointFromConfig(aSection, tempStore, point) ) - { - moreData = EFalse; - } - else - { - TRgb actual; - GetFbsDevice()->GetPixel(actual, point); - - tempStore.Format(KFldFormatFieldNumber, &KFldExpected, index); - TRgb expected; - if (GetRgbFromConfig(aSection, tempStore, expected)) - { - if (actual != expected) - { - ERR_PRINTF5(KLogColor, actual.Red(), actual.Green(), actual.Blue(), actual.Alpha()); - ERR_PRINTF5(KLogColor, expected.Red(), expected.Green(), expected.Blue(), expected.Alpha()); - SetBlockResult(EFail); - } - } - } - } - } - -/** -* DoCmdcheckLineColor: to check the color of specified lines on the screen device, and compare -* with the expected color specidied in the TEF testdata. -* start: specify the starting position of the line on the screen device to check -* finish: specify the finish position of the line on the screen device to check -* expected: specify the expected color to be compared with -* Note: the straight line (from start to the finish points) is constructed by TLinearDDA -* -*/ -void CT_DataFbsDevice::DoCmdCheckLineColor(const TDesC& aSection) - { - TBuf tempStore; - CPalette* palette = NULL; - GetFbsDevice()->GetPalette(palette); - - TBool moreData = ETrue; - for (TInt index=1; moreData; ++index) - { - // get the the start and finish points of the line to check/verify - tempStore.Format(KFldFormatFieldNumber, &KFldStart, index); - TPoint startPoint; - if (!GetPointFromConfig(aSection, tempStore, startPoint)) - { - moreData = EFalse; - } - - tempStore.Format(KFldFormatFieldNumber, &KFldFinish, index); - TPoint endPoint; - if (!GetPointFromConfig(aSection, tempStore, endPoint)) - { - moreData = EFalse; - } - - if (moreData) - { - // get the expected color from testdata - tempStore.Format(KFldFormatFieldNumber, &KFldExpected, index); - TRgb expected; - if (!GetRgbFromConfig(aSection, tempStore, expected)) - { - ERR_PRINTF2(KLogMissingParameter, &tempStore); - SetBlockResult(EFail); - } - else - { - if (palette!=NULL) - { - expected = palette->NearestEntry(expected); - } - - TLinearDDA lineDDA; - lineDDA.Construct(startPoint, endPoint, TLinearDDA::ECenter); - - // for each pixels on the line (from start to finish points), check if its color matches expected - TPoint point; - while (!lineDDA.SingleStep(point)) - { - TRgb actual; - GetFbsDevice()->GetPixel(actual, point); - - if (actual != expected) - { - ERR_PRINTF5(KLogColor, actual.Red(), actual.Green(), actual.Blue(), actual.Alpha()); - ERR_PRINTF5(KLogColor, expected.Red(), expected.Green(), expected.Blue(), expected.Alpha()); - ERR_PRINTF3(KLogPoint, point.iX, point.iY); - SetBlockResult(EFail); - } - } - } - } - } - delete palette; - } - -/** -* DoCmdcheckRectColor: to check the color of specified rectangle on the screen device, and -* compare with the expected color specidied in the TEF testdata. -* rect: specify the rectangle area on the screen device to check -* expected: specify the expected color to be compared with -* -*/ -void CT_DataFbsDevice::DoCmdCheckRectColor(const TDesC& aSection) - { - TBuf tempStore; - - CPalette* palette=NULL; - GetFbsDevice()->GetPalette(palette); - - TBool moreData = ETrue; - for (TInt index=1; moreData; ++index) - { - // get the the rectangle to check/verify - tempStore.Format(KFldFormatFieldNumber, &KFldRect, index); - TRect rect; - if (!GetRectFromConfig(aSection, tempStore, rect)) - { - moreData = EFalse; - } - else - { - // get the expected color from testdata - tempStore.Format(KFldFormatFieldNumber, &KFldExpected, index); - TRgb expected; - if (!GetRgbFromConfig(aSection, tempStore, expected)) - { - ERR_PRINTF2(KLogMissingParameter, &tempStore); - SetBlockResult(EFail); - } - else - { - if (palette!=NULL) - { - expected = palette->NearestEntry(expected); - } - - TPoint point; - for (point.iX=rect.iTl.iX; point.iXGetPixel(actual, point); - - if (actual!=expected) - { - ERR_PRINTF5(KLogColor, actual.Red(), actual.Green(), actual.Blue(), actual.Alpha()); - ERR_PRINTF5(KLogColor, expected.Red(), expected.Green(), expected.Blue(), expected.Alpha()); - ERR_PRINTF3(KLogPoint, point.iX, point.iY); - SetBlockResult(EFail); - } - } - } - } - } - } - delete palette; - } - -void CT_DataFbsDevice::DoCmdGetFontByIdL(const TDesC& aSection) - { - TBool dataOk=ETrue; - - // get font uid - TInt fontUid; - if( !GetIntFromConfig(aSection, KFldFontUid(), fontUid) ) - { - dataOk = EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldFontUid()); - SetBlockResult(EFail); - } - - // get algorithmic style - TAlgStyle* algStyle = NULL; - CT_GraphicsUtil::GetAlgStyleL(*this, aSection, KFldAlgStyle(), algStyle); - if (NULL == algStyle) - { - dataOk = EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldAlgStyle()); - SetBlockResult(EFail); - } - - TPtrC wrapperName; - if( GetStringFromConfig(aSection, KFldFbsFont, wrapperName) ) - { - // "CFbsFont*&" type - if ( dataOk ) - { - CFbsFont* fbsFont = NULL; - INFO_PRINTF1(_L("execute GetFontById(CFbsFont *&aFont, TUid aFileId, const TAlgStyle &aAlgStyle)")); - TInt err = GetFbsDevice()->GetFontById(fbsFont, TUid::Uid(fontUid), *algStyle); - - if (KErrNone != err) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - else - { - SetDataObjectL(wrapperName, fbsFont); - } - } - } - else if( GetStringFromConfig(aSection, KFldFont, wrapperName) ) - { - // "CFont*&" type - if( dataOk ) - { - CFont* font = NULL; - INFO_PRINTF1(_L("execute GetFontById(CFont *&aFont, TUid aFileId, const TAlgStyle &aAlgStyle)")); - TInt err = GetFbsDevice()->GetFontById(font, TUid::Uid(fontUid), *algStyle); - - if (KErrNone != err) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - else - { - SetDataObjectL(wrapperName, font); - } - } - } - else - { - ERR_PRINTF2(KLogMissingParameter, &KFldFont()); - SetBlockResult(EFail); - } - } - -TBool CT_DataFbsDevice::DoCmdGetNearestFontInPixelsL(const TDesC& aSection) - { - TBool dataOk = ETrue; - - // get font specification - TFontSpec fontSpec; - if ( !GetFontSpecFromConfig(aSection, KFldFont, fontSpec) ) - { - dataOk = EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldFont()); - SetBlockResult(EFail); - } - - TPtrC wrapperName; - if ( GetStringFromConfig(aSection, KFldFbsFont, wrapperName) ) - { - // "CFbsFont*&" type - if(dataOk) - { - CFbsFont* fbsFont = NULL; - INFO_PRINTF1(_L("execute GetNearestFontInPixels(CFbsFont*&, TFontSpec)")); - TInt err = GetFbsDevice()->GetNearestFontInPixels(fbsFont, fontSpec); - if (KErrNone != err) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - else - { - SetDataObjectL(wrapperName, fbsFont); - } - } - } - else if( GetStringFromConfig(aSection, KFldFont, wrapperName) ) - { - // "CFont*&" type - // hand over the ownership to parent class - return EFalse; - } - else - { - ERR_PRINTF2(KLogMissingParameter, &KFldFont()); - SetBlockResult(EFail); - } - - return ETrue; - } - -TBool CT_DataFbsDevice::DoCmdGetNearestFontInTwipsL(const TDesC& aSection) - { - TBool dataOk = ETrue; - - // get font specification - TFontSpec fontSpec; - if ( !GetFontSpecFromConfig(aSection, KFldFont, fontSpec) ) - { - dataOk = EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldFont()); - SetBlockResult(EFail); - } - - TPtrC wrapperName; - if ( GetStringFromConfig(aSection, KFldFbsFont, wrapperName) ) - { - // "CFbsFont*&" type - if(dataOk) - { - CFbsFont* fbsFont = NULL; - INFO_PRINTF1(_L("execute GetNearestFontInTwips(CFbsFont*&, TFontSpec)")); - TInt err = GetFbsDevice()->GetNearestFontInTwips(fbsFont, fontSpec); - if (KErrNone != err) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - else - { - SetDataObjectL(wrapperName, fbsFont); - } - } - } - else if( GetStringFromConfig(aSection, KFldFont, wrapperName) ) - { - // "CFont*&" type - // hand over the ownership to parent class - return EFalse; - } - else - { - ERR_PRINTF2(KLogMissingParameter, &KFldFont()); - SetBlockResult(EFail); - } - - return ETrue; - } - -TBool CT_DataFbsDevice::DoCmdGetNearestFontToDesignHeightInPixelsL(const TDesC& aSection) - { - TBool dataOk = ETrue; - - // get font specification - TFontSpec fontSpec; - if ( !GetFontSpecFromConfig(aSection, KFldFont, fontSpec) ) - { - dataOk = EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldFont()); - SetBlockResult(EFail); - } - - TPtrC wrapperName; - if ( GetStringFromConfig(aSection, KFldFbsFont, wrapperName) ) - { - // "CFbsFont*&" type - if(dataOk) - { - CFbsFont* fbsFont = NULL; - INFO_PRINTF1(_L("execute DoCmdGetNearestFontToDesignHeightInPixels(CFbsFont*&, TFontSpec)")); - TInt err = GetFbsDevice()->GetNearestFontToDesignHeightInPixels(fbsFont, fontSpec); - if (KErrNone != err) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - else - { - SetDataObjectL(wrapperName, fbsFont); - } - } - } - else if( GetStringFromConfig(aSection, KFldFont, wrapperName) ) - { - // "CFont*&" type - // hand over the ownership to parent class - return EFalse; - } - else - { - ERR_PRINTF2(KLogMissingParameter, &KFldFont()); - SetBlockResult(EFail); - } - - return ETrue; - } - -TBool CT_DataFbsDevice::DoCmdGetNearestFontToDesignHeightInTwipsL(const TDesC& aSection) - { - TBool dataOk = ETrue; - - // get font specification - TFontSpec fontSpec; - if ( !GetFontSpecFromConfig(aSection, KFldFont, fontSpec) ) - { - dataOk = EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldFont()); - SetBlockResult(EFail); - } - - TPtrC wrapperName; - if ( GetStringFromConfig(aSection, KFldFbsFont, wrapperName) ) - { - // "CFbsFont*&" type - if(dataOk) - { - CFbsFont* fbsFont = NULL; - INFO_PRINTF1(_L("execute DoCmdGetNearestFontToDesignHeightInTwips(CFbsFont*&, TFontSpec)")); - TInt err = GetFbsDevice()->GetNearestFontToDesignHeightInTwips(fbsFont, fontSpec); - if (KErrNone != err) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - else - { - SetDataObjectL(wrapperName, fbsFont); - } - } - } - else if( GetStringFromConfig(aSection, KFldFont, wrapperName) ) - { - // "CFont*&" type - // hand over the ownership to parent class - return EFalse; - } - else - { - ERR_PRINTF2(KLogMissingParameter, &KFldFont()); - SetBlockResult(EFail); - } - - return ETrue; - } - -TBool CT_DataFbsDevice::DoCmdGetNearestFontToMaxHeightInPixelsL(const TDesC& aSection) - { - TBool dataOk = ETrue; - - // get font specification - TFontSpec fontSpec; - if ( !GetFontSpecFromConfig(aSection, KFldFont, fontSpec) ) - { - dataOk = EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldFont()); - SetBlockResult(EFail); - } - - // get maximum height in pixels - TInt maxHeight; - if ( !GetIntFromConfig(aSection, KFldMaxHeight, maxHeight) ) - { - dataOk = EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldMaxHeight()); - SetBlockResult(EFail); - } - - TPtrC wrapperName; - if ( GetStringFromConfig(aSection, KFldFbsFont, wrapperName) ) - { - // "CFbsFont*&" type - if(dataOk) - { - CFbsFont* fbsFont = NULL; - INFO_PRINTF1(_L("execute DoCmdGetNearestFontToMaxHeightInPixels(CFbsFont*&, TFontSpec)")); - TInt err = GetFbsDevice()->GetNearestFontToMaxHeightInPixels(fbsFont, fontSpec, maxHeight); - if (KErrNone != err) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - else - { - SetDataObjectL(wrapperName, fbsFont); - } - } - } - else if( GetStringFromConfig(aSection, KFldFont, wrapperName) ) - { - // "CFont*&" type - // hand over the ownership to parent class - return EFalse; - } - else - { - ERR_PRINTF2(KLogMissingParameter, &KFldFont()); - SetBlockResult(EFail); - } - - return ETrue; - } - -TBool CT_DataFbsDevice::DoCmdGetNearestFontToMaxHeightInTwipsL(const TDesC& aSection) - { - TBool dataOk = ETrue; - - // get font specification - TFontSpec fontSpec; - if ( !GetFontSpecFromConfig(aSection, KFldFont, fontSpec) ) - { - dataOk = EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldFont()); - SetBlockResult(EFail); - } - - // get maximum height in twips - TInt maxHeight; - if ( !GetIntFromConfig(aSection, KFldMaxHeight, maxHeight) ) - { - dataOk = EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldMaxHeight()); - SetBlockResult(EFail); - } - - TPtrC wrapperName; - if ( GetStringFromConfig(aSection, KFldFbsFont, wrapperName) ) - { - // "CFbsFont*&" type - if(dataOk) - { - CFbsFont* fbsFont = NULL; - INFO_PRINTF1(_L("execute DoCmdGetNearestFontToMaxHeightInTwips(CFbsFont*&, TFontSpec)")); - TInt err = GetFbsDevice()->GetNearestFontToMaxHeightInTwips(fbsFont, fontSpec, maxHeight); - if (KErrNone != err) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - else - { - SetDataObjectL(wrapperName, fbsFont); - } - } - } - else if( GetStringFromConfig(aSection, KFldFont, wrapperName) ) - { - // "CFont*&" type - // hand over the ownership to parent class - return EFalse; - } - else - { - ERR_PRINTF2(KLogMissingParameter, &KFldFont()); - SetBlockResult(EFail); - } - - return ETrue; - } - -TBool CT_DataFbsDevice::DoCmdCreateContextL(const TDesC& aSection) - { - TPtrC wrapperName; - - if (!GetStringFromConfig(aSection, KFldBitGc, wrapperName)) - { - return EFalse; - } - else - { - CDataWrapper* wrapper = GetDataWrapperL(wrapperName); - if (wrapper == NULL) - { - ERR_PRINTF2(KLogMissingWrapper, &wrapperName); - SetBlockResult(EFail); - } - else - { - CFbsBitGc* context = NULL; - INFO_PRINTF1(_L("execute CreateContext(CFbsBitGc*&)")); - TInt err = GetFbsDevice()->CreateContext(context); - if (err != KErrNone) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - else - { - wrapper->SetObjectL(context); - } - } - return ETrue; - } - } - -void CT_DataFbsDevice::DoCmdRectCompareL(const TDesC& aSection) - { - TBool dataOk = ETrue; - - // Get test data for command input parameter(s) - TRect datRect1; - if ( !GetRectFromConfig(aSection, KFldRect1, datRect1) ) - { - dataOk = EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldRect1); - SetBlockResult(EFail); - } - - TRect datRect2; - if ( !GetRectFromConfig(aSection, KFldRect2, datRect2) ) - { - dataOk = EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldRect2); - SetBlockResult(EFail); - } - - TBool expected; - if ( !GetBoolFromConfig(aSection, KFldExpected, expected) ) - { - dataOk = EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldExpected); - SetBlockResult(EFail); - } - - if (dataOk) - { - TBool actual; - CFbsDevice* device = NULL; - CFbsDevice* self = GetFbsDevice(); - if (!CT_GraphicsUtil::GetFbsDeviceL(*this, aSection, KFldFbsDevice, device) ) - { - device = self; - } - actual = self->RectCompare(datRect1, *device, datRect2); - INFO_PRINTF2(_L("execute RectCompare(const TRect&, const CFbsDevice&, const TRect&)=%d"), actual); - - if (actual != expected) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - -void CT_DataFbsDevice::DoCmdSetCustomPaletteL(const TDesC& aSection) - { - CPalette* palette= NULL; - - if ( !CT_GraphicsUtil::GetPaletteL(*this, aSection, KFldPalette(), palette) ) - { - INFO_PRINTF1(_L("execute SetCustomPalette(NULL)")); - } - else - { - INFO_PRINTF1(_L("execute SetCustomPalette(const CPalette*)")); - } - - TInt err = GetFbsDevice()->SetCustomPalette(palette); - if (err != KErrNone) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - } - -void CT_DataFbsDevice::DoCmdGraphicsAccelerator() - { - CGraphicsAccelerator* ga= NULL; - INFO_PRINTF1(_L("execute GraphicsAccelerator()")); - ga = GetFbsDevice()->GraphicsAccelerator(); - if (ga != NULL) - { - INFO_PRINTF1(_L("GraphicsAccelerator Supported")); - } - else - { - INFO_PRINTF1(_L("GraphicsAccelerator Not Supported")); - } - } - -void CT_DataFbsDevice::DoCmdOrientation(const TDesC& aSection) - { - CFbsBitGc::TGraphicsOrientation actual = GetFbsDevice()->Orientation(); - INFO_PRINTF2(_L("execute Orientation()=%d"), actual); - - CFbsBitGc::TGraphicsOrientation expected; - if (!CT_GraphicsUtil::GetGraphicsOrientation(*this, aSection, KFldExpectedOrientation, expected)) - { - ERR_PRINTF2(KLogMissingParameter, &KFldExpectedOrientation); - SetBlockResult(EFail); - } - else - { - if (actual != expected) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - -void CT_DataFbsDevice::DoCmdDisplayMode16M(const TDesC& aSection) - { - TDisplayMode actual = GetFbsDevice()->DisplayMode16M(); - INFO_PRINTF2(_L("execute DisplayMode16M()=%d"), actual); - - // get display mode from parameters - TDisplayMode expected; - if (CT_GraphicsUtil::ReadDisplayMode(*this, aSection, KFldExpectedDisplayMode(), expected) ) - { - if (actual != expected) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - -void CT_DataFbsDevice::DoCmdSetScalingFactor(const TDesC& aSection) - { - TBool dataOk = ETrue; - TPoint point; - - if ( !GetPointFromConfig(aSection, KFldOrigin, point) ) - { - dataOk = EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldOrigin); - SetBlockResult(EFail); - } - - TInt factorX; - if ( !GetIntFromConfig(aSection, KFldFactorX, factorX) ) - { - dataOk = EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldFactorX); - SetBlockResult(EFail); - } - - TInt factorY; - if ( !GetIntFromConfig(aSection, KFldFactorY, factorY) ) - { - dataOk = EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldFactorY); - SetBlockResult(EFail); - } - - TInt divisorX; - if ( !GetIntFromConfig(aSection, KFldDivisorX, divisorX) ) - { - dataOk = EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldDivisorX); - SetBlockResult(EFail); - } - - TInt divisorY; - if ( !GetIntFromConfig(aSection, KFldDivisorY, divisorY) ) - { - dataOk = EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldDivisorY); - SetBlockResult(EFail); - } - - if (dataOk) - { - INFO_PRINTF1(_L("execute SetScalingFactor(const TPoint&, TInt, TInt, TInt, TInt)")); - TInt err = GetFbsDevice()->SetScalingFactor(point, factorX, factorY, divisorX, divisorY); - if (err != KErrNone) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - } - } - -void CT_DataFbsDevice::DoCmdGetDrawRect(const TDesC& aSection) - { - TRect actual; - - INFO_PRINTF1(_L("execute GetDrawRect(TRect&)")); - GetFbsDevice()->GetDrawRect(actual); - INFO_PRINTF5(_L("DrawRect = (top.x=%d, top.y=%d, bottom.x=%d, bottom.y=%d)"), actual.iTl.iX, actual.iTl.iY, actual.iBr.iX, actual.iBr.iY); - - TRect expected; - if ( GetRectFromConfig(aSection, KFldExpectedDrawRect, expected) ) - { - if (actual != expected) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - -void CT_DataFbsDevice::DoCmdRegisterLinkedTypefaceL(const TDesC& aSection) - { - CLinkedTypefaceSpecification* spec = NULL; - if (!CT_GraphicsUtil::GetLinkedTypefaceSpecificationL(*this, aSection, KFldLinkedTypefaceSpec, spec)) - { - ERR_PRINTF2(KLogMissingParameter, &KFldLinkedTypefaceSpec); - SetBlockResult(EFail); - } - else - { - TInt actual; - INFO_PRINTF1(_L("execute RegisterLinkedTypeface(const CLinkedTypefaceSpecification&, TInt&)")); - TInt err = GetFbsDevice()->RegisterLinkedTypeface(*spec, actual); - if (err != KErrNone) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - return; - } - - TInt expected; - if (GetIntFromConfig(aSection, KFldExpectedUid, expected)) - { - if (actual != expected) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - } - -void CT_DataFbsDevice::DoCmdSetDrawDeviceOffset(const TDesC& aSection) - { - TPoint point; - - if ( !GetPointFromConfig(aSection, KFldOffset, point) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldOrigin); - SetBlockResult(EFail); - } - else - { - TInt err = GetFbsDevice()->SetDrawDeviceOffset(point); - if (err != KErrNone) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - } - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/bitgdi/src/T_DataFbsScreenDevice.cpp --- a/graphicsapitest/graphicssvs/bitgdi/src/T_DataFbsScreenDevice.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,502 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataFbsScreenDevice -*/ - -// User includes -#include "T_DataFbsScreenDevice.h" -#include "T_GraphicsUtil.h" - -/*@{*/ -//Commands -_LIT(KCmdNewL, "NewL"); -_LIT(KCmdDestructor, "~"); - -_LIT(KCmdChangeScreenDevice, "ChangeScreenDevice"); -_LIT(KCmdDrawSpriteBegin, "DrawSpriteBegin"); -_LIT(KCmdDrawSpriteEnd, "DrawSpriteEnd"); -_LIT(KCmdHardwareBitmap, "HardwareBitmap"); -_LIT(KCmdScreenNo, "ScreenNo"); -_LIT(KCmdSetAutoUpdate, "SetAutoUpdate"); -_LIT(KCmdUpdate, "Update"); -_LIT(KCmdCancelSprite, "CancelSprite"); -_LIT(KCmdHideSprite, "HideSprite"); -_LIT(KCmdShowSprite, "ShowSprite"); - -_LIT(KCmdDisown, "disown"); - -//Fields -_LIT(KFldExpected, "expected"); -_LIT(KLibName, "libname"); -_LIT(KScreenNumber, "screen_number"); -_LIT(KRgbColorRed, "rgb_red"); -_LIT(KRgbColorGreen, "rgb_green"); -_LIT(KRgbColorBlue, "rgb_blue"); -_LIT(KDisplayMode, "displaymode"); -_LIT(KAutoUpdate, "autoupdate"); -_LIT(KRegion, "region"); -_LIT(KFbsScreenDevice, "FbsScrDevName"); -_LIT(KFldRect, "rect"); -_LIT(KFldRegion, "region"); -_LIT(KSpriteBase, "spritebase"); - -//Logging -_LIT(KLogMissingParameter, "Missing parameter '%S'"); - -/*@}*/ -/** -* Two phase constructor -*/ -CT_DataFbsScreenDevice* CT_DataFbsScreenDevice::NewL() - { - CT_DataFbsScreenDevice* ret = new (ELeave) CT_DataFbsScreenDevice(); - CleanupStack::PushL(ret); - ret->ConstructL(); - CleanupStack::Pop(ret); - return ret; - } - -/** -* Protected constructor. First phase construction -*/ -CT_DataFbsScreenDevice::CT_DataFbsScreenDevice() -: CT_DataFbsDevice() -, iFbsScreenDevice(NULL) - { - } - -/** -* Protected second phase construction -*/ -void CT_DataFbsScreenDevice::ConstructL() - { - } - -/** - * Set the object that the data wraps - * - * @param aObject object that the wrapper is testing - * - */ -void CT_DataFbsScreenDevice::SetObjectL(TAny* aAny) - { - DestroyData(); - iFbsScreenDevice = static_cast (aAny); - } - -void CT_DataFbsScreenDevice::DisownObjectL() - { - iFbsScreenDevice = NULL; - } - -/** -* Destructor. -*/ -CT_DataFbsScreenDevice::~CT_DataFbsScreenDevice() - { - DestroyData(); - } - -void CT_DataFbsScreenDevice::DestroyData() - { - delete iFbsScreenDevice; - iFbsScreenDevice=NULL; - } - -MGraphicsDeviceMap* CT_DataFbsScreenDevice::GetGraphicsDeviceMap() const - { - return iFbsScreenDevice; - } - -CGraphicsDevice* CT_DataFbsScreenDevice::GetGraphicsDevice() const - { - return iFbsScreenDevice; - } - -CBitmapDevice* CT_DataFbsScreenDevice::GetBitmapDevice() const - { - return iFbsScreenDevice; - } - -CFbsDevice* CT_DataFbsScreenDevice::GetFbsDevice() const - { - return iFbsScreenDevice; - } - -/** -* Return a pointer to the object that the data wraps -* -* @return pointer to the object that the data wraps -*/ -TAny* CT_DataFbsScreenDevice::GetObject() - { - return iFbsScreenDevice; - } - -/** -* Process a command read from the ini file -* -* @param aDataWrapper test step requiring command to be processed -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* -* @return ETrue if the command is processed -*/ -TBool CT_DataFbsScreenDevice::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex) - { - /* Another work package will complete the implement of this */ - TBool retVal = ETrue; - - if ( aCommand == KCmdNewL ) - { - DoCmdNew(aSection); - } - else if (aCommand == KCmdDestructor) - { - DoCmdDestructor(); - } - else if (aCommand == KCmdChangeScreenDevice) - { - DoCmdChangeScreenDeviceL(aSection); - } - else if (aCommand == KCmdDrawSpriteBegin) - { - DoCmdDrawSpriteBegin(); - } - else if (aCommand == KCmdDrawSpriteEnd) - { - DoCmdDrawSpriteEnd(); - } - else if (aCommand == KCmdHardwareBitmap) - { - DoCmdHardwareBitmap(); - } - else if (aCommand == KCmdScreenNo) - { - DoCmdScreenNo(aSection); - } - else if (aCommand == KCmdSetAutoUpdate) - { - DoCmdSetAutoUpdate(aSection); - } - else if (aCommand == KCmdUpdate) - { - DoCmdUpdateL(aSection); - } - else if (aCommand == KCmdCancelSprite) - { - DoCmdCancelSprite(); - } - else if (aCommand == KCmdHideSprite) - { - DoCmdHideSpriteL(aSection); - } - else if (aCommand == KCmdShowSprite) - { - DoCmdShowSpriteL(aSection); - } - else if (aCommand == KCmdDisown) - { - DisownObjectL(); - } - else - { - retVal = CT_DataFbsDevice::DoCommandL(aCommand, aSection, aAsyncErrorIndex); - } - - return retVal; - } - -void CT_DataFbsScreenDevice::DoCmdNew(const TDesC& aSection) - { - DestroyData(); - - // get display mode from parameters - TDisplayMode displayMode=ENone; - TBool hasDisplayMode=CT_GraphicsUtil::ReadDisplayMode(*this, aSection, KDisplayMode(), displayMode); - - // get lib name from parameters - - TPtrC libName; - TBool hasLibName=GetStringFromConfig(aSection, KLibName(), libName); - - TBool useRgb = EFalse; - - TInt red = 0; - if(GetIntFromConfig(aSection, KRgbColorRed(), red)) - { - useRgb=ETrue; - } - - TInt green = 0; - if(GetIntFromConfig(aSection, KRgbColorGreen(), green)) - { - useRgb=ETrue; - } - - TInt blue = 0; - if(GetIntFromConfig(aSection, KRgbColorBlue(), blue)) - { - useRgb = ETrue; - } - - // get screen number from parameters - TInt screenNumber = 0; - GetIntFromConfig(aSection, KScreenNumber(), screenNumber); - - TInt err=KErrNone; - if ( !hasDisplayMode ) - { - // Find the best display mode - for ( TDisplayMode testMode=TDisplayMode(ENone+1); testMode(GetDataObjectL(FbsScreenDevNameOld)); - INFO_PRINTF1(_L("FbsScreenDevice::ChangeScreenDevice(CFbsScreenDevice *aOldDevice) is called!")); - iFbsScreenDevice->ChangeScreenDevice(FbsScreenDevOld); - } - else - { - INFO_PRINTF2(KLogMissingParameter, &KFbsScreenDevice); - SetBlockResult(EFail); - } - } - -void CT_DataFbsScreenDevice::DoCmdDrawSpriteBegin() - { - INFO_PRINTF1(_L("FbsScreenDevice::DrawSpriteBegin() is called!")); - iFbsScreenDevice->DrawSpriteBegin(); - } - -void CT_DataFbsScreenDevice::DoCmdDrawSpriteEnd() - { - INFO_PRINTF1(_L("FbsScreenDevice::DrawSpriteEnd() is called!")); - iFbsScreenDevice->DrawSpriteEnd(); - } - -void CT_DataFbsScreenDevice::DoCmdHardwareBitmap() - { - INFO_PRINTF1(_L("FbsScreenDevice::HardwareBitmap() is called!")); - RHardwareBitmap handle = iFbsScreenDevice->HardwareBitmap(); - INFO_PRINTF2(_L("The actual handle from HardwareBitmap() is %d"), handle.iHandle); - } - -void CT_DataFbsScreenDevice::DoCmdScreenNo(const TDesC& aSection) - { - // Execute command and log parameters - INFO_PRINTF1(_L("FbsScreenDevice::ScreenNo() is called!")); - TInt actual = iFbsScreenDevice->ScreenNo(); - INFO_PRINTF2(_L("The actual result of ScreenNo() is %d"), actual); - - // Diaplay command return value, check if it matches the expected value - TInt expected; - if (!GetIntFromConfig(aSection, KFldExpected, expected)) - { - ERR_PRINTF2(KLogMissingParameter, &KFldExpected); - SetBlockResult(EFail); - } - else - { - if (actual!=expected) - { - ERR_PRINTF3(_L("The expected result %d is not equal to the actual result %d!"), expected, actual); - SetBlockResult(EFail); - } - } - } - -void CT_DataFbsScreenDevice::DoCmdSetAutoUpdate(const TDesC& aSection) - { - TBool autoupdate; - if (!GetBoolFromConfig(aSection, KAutoUpdate, autoupdate)) - { - ERR_PRINTF2(KLogMissingParameter, &KAutoUpdate); - SetBlockResult(EFail); - } - else - { - iFbsScreenDevice->SetAutoUpdate(autoupdate); - INFO_PRINTF2(_L("FbsScreenDevice::SetAutoUpdate(%d) has been called."), autoupdate); - } - } - -void CT_DataFbsScreenDevice::DoCmdUpdateL(const TDesC& aSection) - { - RRegion region(1); - CleanupClosePushL(region); - - if (GetRegionFromConfig(aSection, KRegion(), region)) - { - INFO_PRINTF1(_L("FbsScreenDevice::Update(const TRegion &aRegion) has been called.")); - iFbsScreenDevice->Update(region); - } - else - { - INFO_PRINTF1(_L("FbsScreenDevice::Update() has been called.")); - iFbsScreenDevice->Update(); - } - CleanupStack::PopAndDestroy(®ion); - } - -void CT_DataFbsScreenDevice::DoCmdCancelSprite() - { - INFO_PRINTF1(_L("execute CancelSprite()!")); - iFbsScreenDevice->CancelSprite(); - } - -void CT_DataFbsScreenDevice::DoCmdHideSpriteL(const TDesC& aSection) - { - TRect datRect; - RRegion datRegion(1); - CleanupClosePushL(datRegion); - - if (GetRectFromConfig(aSection, KFldRect, datRect)) - { - if (GetRegionFromConfig(aSection, KFldRegion, datRegion)) - { - INFO_PRINTF1(_L("execute HideSprite(const TRect &aRect, const TRegion *aClippingRegion)!")); - TSpriteBase* spritebase = iFbsScreenDevice->HideSprite(datRect, &datRegion); - } - else - { - ERR_PRINTF2(KLogMissingParameter, &KFldRegion); - SetBlockResult(EFail); - } - } - else - { - INFO_PRINTF1(_L("execute HideSprite(void)!")); - TSpriteBase* spritebase = iFbsScreenDevice->HideSprite(); - } - - CleanupStack::PopAndDestroy(&datRegion); - } - - -void CT_DataFbsScreenDevice::DoCmdShowSpriteL(const TDesC& aSection) - { - TSpriteBase* spritebase = NULL; - TPtrC SpriteBase; - TRect datRect; - RRegion datRegion(1); - CleanupClosePushL(datRegion); - - if (GetStringFromConfig(aSection, KSpriteBase, SpriteBase)) - { - spritebase = static_cast(GetDataObjectL(SpriteBase)); - } - else - { - ERR_PRINTF2(KLogMissingParameter, &KSpriteBase); - SetBlockResult(EFail); - } - - if (GetRectFromConfig(aSection, KFldRect, datRect)) - { - if (GetRegionFromConfig(aSection, KFldRegion, datRegion)) - { - INFO_PRINTF1(_L("execute ShowSprite(TSpriteBase*, const TRect&, const TRegion*)!")); - iFbsScreenDevice->ShowSprite(spritebase, datRect, &datRegion); - } - else - { - ERR_PRINTF2(KLogMissingParameter, &KFldRegion); - SetBlockResult(EFail); - } - } - else - { - INFO_PRINTF1(_L("execute ShowSprite(TSpriteBase*)!")); - iFbsScreenDevice->ShowSprite(spritebase); - } - CleanupStack::PopAndDestroy(&datRegion); - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/bitgdi/src/T_DataPolygonFiller.cpp --- a/graphicsapitest/graphicssvs/bitgdi/src/T_DataPolygonFiller.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,318 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -#include "T_DataPolygonFiller.h" -#include "T_GraphicsUtil.h" - -_LIT(KDataClassname, "CPolygonFiller"); - -/// Fields -_LIT(KFldScanLine, "scanline"); -_LIT(KFldPointList, "pointlist"); -_LIT(KFldFillRule, "fillrule"); -_LIT(KFldUsage, "usage"); -_LIT(KFldnumPoints, "numpoints"); -_LIT(KFldExpectedScanLine, "expectedscanline"); -_LIT(KFldExpectedStart, "expectedstart"); -_LIT(KFldExpectedEnd, "expectedend"); -_LIT(KFldExpectedExists, "expectedexists"); -/// Commands -_LIT(KCmdnewL, "new"); -_LIT(KCmdConstructL, "Construct"); -_LIT(KCmdDestructorGeneral, "~"); -_LIT(KCmdDestructor, "~CPolygonFiller"); -_LIT(KCmdReset, "Reset"); -_LIT(KCmdGetNextPixelRun, "GetNextPixelRun"); -_LIT(KCmdGetNextPixelRunOnSpecifiedScanLine, "GetNextPixelRunOnSpecifiedScanLine"); - -//Log -_LIT(KLogErrNum, "Error=%d"); -_LIT(KLogInfoCmdnewL, "execute new CPolygonFiller()"); -_LIT(KLogMissingParameter, "Missing parameter '%S'"); -_LIT(KLogInfoCmdDestructor1, "execute ~CPolygonFiller()"); -_LIT(KLogInfoCmdConstruct1, "execute Construct(TPoint*, TInt, TFillRule,TUsage)"); -_LIT(KLogInfoCmdConstruct2, "execute Construct(CArrayFix*, TFillRule,TUsage)"); -_LIT(KLogInfoCmdReset, "execute Reset()"); -_LIT(KLogInfoCmdGetNextPixelRun, "execute GetNextPixelRun()"); -_LIT(KLogInfoCmdGetNextPixelRunOnSpecifiedScanLine, "execute GetNextPixelRunOnSpecifiedScanLine()"); -_LIT(KLogInfoNotCheckThePosition, "Won't check the position on the scan line in the test case"); -CT_DataPolygonFiller* CT_DataPolygonFiller::NewL() - { - CT_DataPolygonFiller* ret = new (ELeave) CT_DataPolygonFiller(); - CleanupStack::PushL(ret); - ret->ConstructL(); - CleanupStack::Pop(ret); - return ret; - } - -CT_DataPolygonFiller::CT_DataPolygonFiller() -: iPolygonFiller(NULL) - { - } - -void CT_DataPolygonFiller::ConstructL() - { - iPointsArray=NULL; - iPoints=NULL; - } - -CT_DataPolygonFiller::~CT_DataPolygonFiller() - { - DestroyData(); - - delete iPointsArray; - iPointsArray=NULL; - - delete[] iPoints; - iPoints=NULL; - } - -TAny* CT_DataPolygonFiller::GetObject() - { - return iPolygonFiller; - } - -void CT_DataPolygonFiller::SetObjectL(TAny* aAny) - { - DestroyData(); - iPolygonFiller = static_cast (aAny); - } - -void CT_DataPolygonFiller::DisownObjectL() - { - iPolygonFiller = NULL; - } - -void CT_DataPolygonFiller::DestroyData() - { - DoCmdDestructor(); - } - - -/** -* Process a command read from the ini file -* -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* @return ETrue if the command is processed -*/ -TBool CT_DataPolygonFiller::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt) - { - TBool ret = ETrue; - - if ( aCommand==KCmdDestructorGeneral || aCommand==KCmdDestructor ) - { - DoCmdDestructor(); - } - else if ( aCommand==KCmdnewL || aCommand==KDataClassname ) - { - DoCmdnewL(); - } - else if(aCommand==KCmdConstructL) - { - DoCmdConstructL(aSection); - } - else if ( aCommand==KCmdReset ) - { - DoCmdReset(); - } - else if ( aCommand==KCmdGetNextPixelRun ) - { - DoCmdGetNextPixelRun(aSection); - } - else if ( aCommand==KCmdGetNextPixelRunOnSpecifiedScanLine ) - { - DoCmdGetNextPixelRunOnSpecifiedScanLine(aSection); - } - else - { - ret=EFalse; - } - return ret; - } - -void CT_DataPolygonFiller::DoCmdnewL() - { - DestroyData(); - TInt err = KErrNone; - INFO_PRINTF1(KLogInfoCmdnewL); - TRAP(err, iPolygonFiller = new (ELeave) CPolygonFiller()); - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogErrNum, err); - SetError(err); - } - } - -void CT_DataPolygonFiller::DoCmdConstructL(const TDesC& aSection) - { - TBool dataOk=ETrue; - TInt datNumPoints=0; - TInt err=0; - CGraphicsContext::TFillRule datFillRule=CGraphicsContext::EAlternate; - CPolygonFiller::TUsage datUsage=CPolygonFiller::EGetAllPixelRunsSequentially; - - CT_GraphicsUtil::ReadFillRule(*this, aSection, KFldFillRule, datFillRule); - CT_GraphicsUtil::ReadTUsage(*this,aSection,KFldUsage,datUsage); - -//Use TPoint parameter to construct if the number of points in the list is assigned. - if (GetIntFromConfig(aSection, KFldnumPoints, datNumPoints)) - { - iPoints=new (ELeave) TPoint[datNumPoints]; - if ( !GetPointListFromConfig(aSection, KFldPointList, datNumPoints, iPoints)) - { - ERR_PRINTF2(KLogMissingParameter, &KFldPointList()); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(KLogInfoCmdConstruct1); - iPolygonFiller->Construct(iPoints, datNumPoints, datFillRule, datUsage); - } - } - else - { - iPointsArray=new (ELeave) CArrayFixFlat(1); - TBool hasPointList=GetPointListFromConfigL(aSection, KFldPointList, *iPointsArray); - - if ( !hasPointList ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldPointList()); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(KLogInfoCmdConstruct2); - iPolygonFiller->Construct(iPointsArray,datFillRule,datUsage); - } - } - } - -void CT_DataPolygonFiller::DoCmdDestructor() - { - INFO_PRINTF1(KLogInfoCmdDestructor1); - delete iPolygonFiller; - iPolygonFiller = NULL; - } - -void CT_DataPolygonFiller::DoCmdReset() - { - INFO_PRINTF1(KLogInfoCmdReset); - iPolygonFiller->Reset(); - } - -void CT_DataPolygonFiller::DoCmdGetNextPixelRun(const TDesC& aSection) - { - TBool relExists,expectedExists; - TInt relScanLine,relStart,relEnd,expectedScanLine,expectedStart,expectedEnd; - INFO_PRINTF1(KLogInfoCmdGetNextPixelRun); - iPolygonFiller->GetNextPixelRun(relExists,relScanLine,relStart,relEnd); - //Verify the scanline is expected - if(!GetBoolFromConfig(aSection,KFldExpectedExists,expectedExists)) - { - ERR_PRINTF2(KLogMissingParameter, &KFldExpectedExists); - SetBlockResult(EFail); - } - else if(relExists!=expectedExists) - { - ERR_PRINTF3(_L("The returned Exists value is not as expected, expected: %d, result: %d"), expectedExists , relExists); - SetBlockResult(EFail); - } - if(!GetIntFromConfig(aSection,KFldExpectedScanLine,expectedScanLine)) - { - ERR_PRINTF2(KLogMissingParameter, &KFldExpectedScanLine); - SetBlockResult(EFail); - } - else if(relScanLine!=expectedScanLine) - { - ERR_PRINTF3(_L("The returned Scanline value is not as expected, expected: %d, result: %d"), expectedScanLine , relScanLine); - SetBlockResult(EFail); - } - //Verify the start position on the scan line - if(!GetIntFromConfig(aSection,KFldExpectedStart,expectedStart)) - { - INFO_PRINTF1(KLogInfoNotCheckThePosition); - - } - else if(relStart!=expectedStart) - { - ERR_PRINTF3(_L("The returned Start Position value is not as expected, expected: %d, result: %d"), expectedStart , relStart); - SetBlockResult(EFail); - } - //Verify the end position on the scan line - if(!GetIntFromConfig(aSection,KFldExpectedEnd,expectedEnd)) - { - INFO_PRINTF1(KLogInfoNotCheckThePosition); - - } - else if(relEnd!=expectedEnd) - { - ERR_PRINTF3(_L("The returned End Position value is not as expected, expected: %d, result: %d"), expectedEnd , relEnd); - SetBlockResult(EFail); - } - } - -void CT_DataPolygonFiller::DoCmdGetNextPixelRunOnSpecifiedScanLine(const TDesC& aSection) - { - TInt datScanLine=0; - TBool relExists,expectedExists; - TInt relStart,relEnd,expectedStart,expectedEnd; - - if (!GetIntFromConfig(aSection, KFldScanLine, datScanLine)) - { - ERR_PRINTF2(KLogMissingParameter, &KFldScanLine); - SetBlockResult(EFail); - } - INFO_PRINTF1(KLogInfoCmdGetNextPixelRunOnSpecifiedScanLine); - iPolygonFiller->GetNextPixelRunOnSpecifiedScanLine(relExists,datScanLine,relStart,relEnd); - if(!GetBoolFromConfig(aSection,KFldExpectedExists,expectedExists)) - { - ERR_PRINTF2(KLogMissingParameter, &KFldExpectedExists); - SetBlockResult(EFail); - } - else if(relExists!=expectedExists) - { - ERR_PRINTF3(_L("The returned Exists value is not as expected, expected: %d, result: %d"), expectedExists , relExists); - SetBlockResult(EFail); - } - //Verify the start position on the scan line - if(!GetIntFromConfig(aSection,KFldExpectedStart,expectedStart)) - { - INFO_PRINTF1(KLogInfoNotCheckThePosition); - - } - else if(relStart!=expectedStart) - { - ERR_PRINTF3(_L("The returned Start Position value is not as expected, expected: %d, result: %d"), expectedStart , relStart); - SetBlockResult(EFail); - } - //Verify the end position on the scan line - if(!GetIntFromConfig(aSection,KFldExpectedEnd,expectedEnd)) - { - INFO_PRINTF1(KLogInfoNotCheckThePosition); - - } - else if(relEnd!=expectedEnd) - { - ERR_PRINTF3(_L("The returned End Position value is not as expected, expected: %d, result: %d"), expectedEnd , relEnd); - SetBlockResult(EFail); - } - } - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/bitgdi/src/T_GraphicsBitgdiAPIServer.cpp --- a/graphicsapitest/graphicssvs/bitgdi/src/T_GraphicsBitgdiAPIServer.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,245 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -#include "T_GraphicsBitgdiAPIServer.h" -#include "T_DataBitmapUtil.h" -#include "T_DataFbsBitmap.h" -#include "T_DataWsBitmap.h" -#include "T_DataFbsBitmapDevice.h" -#include "T_DataFbsScreenDevice.h" -#include "T_DataAlgStyle.h" -#include "T_DataFbsBitGc.h" -#include "T_DataFbsSession.h" -#include "T_DataWsSession.h" -#include "T_DataPalette.h" -#include "T_DataPolygonFiller.h" -#include "T_DataFbsFont.h" -#include "T_DataFbsTypefaceStore.h" -#include "T_DataWsScreenDevice.h" -#include "T_DataFbsBitGcBitmap.h" -#include "T_DataFbsBitGcFont.h" -#include "T_DataLinkedTypefaceSpecification.h" - -// EPOC Includes -#include - -/** - * @enum Constant Literals used. - */ -/*@{*/ -// Graphics BITGDI API -_LIT(KDataFbsBitGc, "CFbsBitGc"); -_LIT(KDataPolygonFiller, "CPolygonFiller"); - -//from T_FBServAPI -_LIT(KRFbsSessionData, "RFbsSession"); -_LIT(KCFbsFontData, "CFbsFont"); -_LIT(KCFbsBitmapData, "CFbsBitmap"); -_LIT(KCWsBitmapData, "CWsBitmap"); -_LIT(KTBitmapUtilData, "TBitmapUtil"); -_LIT(KCFbsTypefaceStoreData, "CFbsTypefaceStore"); -_LIT(KCFbsColor256BitmapUtil, "CFbsColor256BitmapUtil"); -_LIT(KCPalette, "CPalette"); -_LIT(KCFbsBitmapDevice, "CFbsBitmapDevice"); -_LIT(KCFbsScreenDevice, "CFbsScreenDevice"); -_LIT(KTAlgStyle, "TAlgStyle"); -_LIT(KTMeasureTextInput, "TMeasureTextInput"); -_LIT(KTMeasureTextOutput, "TMeasureTextOutput"); -_LIT(KRWsSession, "RWsSession"); -_LIT(KCWsScreenDevice, "CWsScreenDevice"); -_LIT(KCFbsBitGcBitmap, "CFbsBitGcBitmap"); -_LIT(KCFbsBitGcFont, "CFbsBitGcFont"); - -//from T_GraphicsFntstoreAPI -_LIT(KCLinkedTypefaceSpecification, "CLinkedTypefaceSpecification"); - -/*@}*/ - - -inline CDataWrapper* CT_GraphicsBitgdiAPIServer::CT_GraphicsBitgdiAPIBlock::CreateDataL( const TDesC& aData ) - { - CDataWrapper* wrapper = NULL; - - if ( aData==KRFbsSessionData ) - { - wrapper=CT_DataFbsSession::NewL(); - } - else if ( aData==KCFbsScreenDevice ) - { - wrapper=CT_DataFbsScreenDevice::NewL(); - } - else if ( aData==KDataFbsBitGc ) - { - wrapper=CT_DataFbsBitGc::NewL(); - } - else if ( aData==KCPalette ) - { - wrapper=CT_DataPalette::NewL(); - } - else if (aData==KDataPolygonFiller) - { - wrapper=CT_DataPolygonFiller::NewL(); - } - else if (aData == KCFbsFontData) - { - wrapper=CT_DataFbsFont::NewL(); - } - else if (aData==KCFbsBitmapData) - { - wrapper=CT_DataFbsBitmap::NewL(); - } - else if (aData==KCWsBitmapData) - { - wrapper=CT_DataWsBitmap::NewL(); - } - else if (aData==KRWsSession) - { - wrapper=CT_DataWsSession::NewL(); - } - else if (aData==KCFbsTypefaceStoreData) - { - wrapper=CT_DataFbsTypefaceStore::NewL(); - } - else if (aData==KCWsScreenDevice) - { - wrapper=CT_DataWsScreenDevice::NewL(); - } - else if (aData==KCFbsBitmapDevice) - { - wrapper=CT_DataFbsBitmapDevice::NewL(); - } - else if (aData==KCFbsBitGcBitmap) - { - wrapper=CT_DataFbsBitGcBitmap::NewL(); - } - else if (aData==KCFbsBitGcFont) - { - wrapper=CT_DataFbsBitGcFont::NewL(); - } - // from fontstore - else if (aData==KTAlgStyle) - { - wrapper=CT_DataAlgStyle::NewL(); - } - else if (aData==KCLinkedTypefaceSpecification) - { - wrapper=CT_DataLinkedTypefaceSpecification::NewL(); - } - return wrapper; - } - -CT_GraphicsBitgdiAPIServer* CT_GraphicsBitgdiAPIServer::NewL() -/** - * @return - Instance of the test server - * Same code for Secure and non-secure variants - * Called inside the MainL() function to create and start the - * CTestServer derived server. - */ - { - CT_GraphicsBitgdiAPIServer* server = new (ELeave) CT_GraphicsBitgdiAPIServer(); - CleanupStack::PushL(server); - // CServer base class call - server->ConstructL(); /*Parsing the server name from the file name*/ - CleanupStack::Pop(server); - return server; - } - - -TInt LoadDrivers() - { -#ifdef __WINS__ - #define KPDDName _L("ECDRV") - #define KLDDName _L("ECOMM") -#else - #define KPDDName _L("EUART1") - #define KLDDName _L("ECOMM") -#endif - TInt rerr = KErrNone; - - rerr = StartC32(); - if( rerr!=KErrNone && rerr!=KErrAlreadyExists ) - { - return rerr; - } - - rerr = User::LoadPhysicalDevice(KPDDName); - if(rerr != KErrNone && rerr != KErrAlreadyExists) - { - return rerr; - } - rerr = User::LoadLogicalDevice(KLDDName); - if(rerr != KErrNone && rerr != KErrAlreadyExists) - { - return rerr; - } - return KErrNone; - } - -LOCAL_C void MainL() -/** - * Secure variant - * Much simpler, uses the new Rendezvous() call to sync with the client - */ - { -#if (defined __DATA_CAGING__) - RProcess().DataCaging(RProcess::EDataCagingOn); - RProcess().SecureApi(RProcess::ESecureApiOn); -#endif - CActiveScheduler* sched=NULL; - sched=new(ELeave) CActiveScheduler; - CActiveScheduler::Install(sched); - CT_GraphicsBitgdiAPIServer* server = NULL; - // Create the CTestServer derived server - TRAPD(err,server = CT_GraphicsBitgdiAPIServer::NewL()); - if(!err) - { - // Sync with the client and enter the active scheduler - RProcess::Rendezvous(KErrNone); - sched->Start(); - } - delete server; - delete sched; - } - -GLDEF_C TInt E32Main() -/** - * @return - Standard Epoc error code on process exit - * Secure variant only - * Process entry point. Called by client using RProcess API - */ - { - TInt rerr = LoadDrivers(); - if( rerr != KErrNone ) - { - return rerr; - } - - __UHEAP_MARK; - CTrapCleanup* cleanup = CTrapCleanup::New(); - if(cleanup == NULL) - { - return KErrNoMemory; - } -#if (defined TRAP_IGNORE) - TRAP_IGNORE(MainL()); -#else - TRAPD(err,MainL()); -#endif - delete cleanup; - __UHEAP_MARKEND; - return KErrNone; - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/bitgdi/src/t_prompt.cpp --- a/graphicsapitest/graphicssvs/bitgdi/src/t_prompt.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,96 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -#include -#include -#include -#include - -/*@{*/ -const TInt KDefaultInterval = 20000000; -const TUid KMyPropertyCat = {0x10012345}; - -_LIT(KPromptConsole, "Manual Check"); -/*@}*/ - -LOCAL_C void MainL() - { - TInt argLen = User::CommandLineLength(); - HBufC* hBuf = HBufC::NewLC(argLen); - TPtr tPtr = hBuf->Des(); - User::CommandLine(tPtr); - CConsoleBase* console = Console::NewL(KPromptConsole, TSize(KConsFullScreen, KConsFullScreen)); - CleanupStack::PushL(console); - console->Printf(KPromptConsole); - console->Printf(_L("\n\n\n\n\n")); - console->Printf(tPtr); - - RTimer timer; - CleanupClosePushL(timer); - timer.CreateLocal(); - TRequestStatus timerStatus; - timer.After(timerStatus, TTimeIntervalMicroSeconds32(KDefaultInterval)); - TRequestStatus readStatus; - console->Read(readStatus); - User::WaitForRequest(timerStatus, readStatus); - - TKeyCode keycode(EKeyNull); - if(timerStatus != KErrNone) - { - if(readStatus == KErrNone) - { - keycode = console->KeyCode(); - } - timer.Cancel(); - } - - if(readStatus == KRequestPending) - { - console->ReadCancel(); - } - - RProperty property; - CleanupClosePushL(property); - User::LeaveIfError( property.Attach(KMyPropertyCat, 1) ); - User::LeaveIfError( property.Set((TInt)keycode) ); - //property.Close(); - CleanupStack::PopAndDestroy(4, hBuf); // &property, &timer, console, hBuf - } - -GLDEF_C TInt E32Main() -/** - * @return - Standard Epoc error code on process exit - * Secure variant only - * Process entry point. Called by client using RProcess API - */ - { - CTrapCleanup* cleanup = CTrapCleanup::New(); - if(cleanup == NULL) - { - RProcess::Rendezvous(KErrNoMemory); - return KErrNoMemory; - } -#if (defined TRAP_IGNORE) - TRAP_IGNORE(MainL()); - RProcess::Rendezvous(KErrNone); -#else - TRAPD(err,MainL()); - RProcess::Rendezvous(err); -#endif - delete cleanup; - return KErrNone; - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/bitgdi/testdata/GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini --- a/graphicsapitest/graphicssvs/bitgdi/testdata/GRAPHICS-BITGDI-FbsBitGc-PublicApi-2.ini Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,6286 +0,0 @@ -[include] -file1 =\graphics\t_graphics.ini - - -[fbsSession] -name =fbs - -[wsSession] -name =ws - -[fbsBitGc] -name =bitgc - -[fbsBitGc2] -name =bitgc2 - -[fbsFont] -name =bitfnt - -[fbsBitmap] -name =fbsbmp - -[fbsMaskBitmap] -name =fbsmaskbmp - -[wsBitmap] -name =wsbmp - -[wsMaskBitmap] -name =wsmaskbmp - -[fbsSrcBitmap1] -name =fbssrcbmp1 - -[fbsSrcBitmap2] -name =fbssrcbmp2 - -[alphaBitmap] -name =alphabmp - -[fbsScrDev] -name =scrdev - -[fbsTypefaceStore] -name =fbstfs - -[font] -name =font - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0301-DrawPolyLine_command02] -numpoints =4 -pointlist1_x =10 -pointlist1_y =10 -pointlist2_x =200 -pointlist2_y =70 -pointlist3_x =100 -pointlist3_y =200 -pointlist4_x =150 -pointlist4_y =220 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0302-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0302-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0302-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0302-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0302-DrawPolyLineNoEndPoint_command08] -numpoints =4 -pointlist1_x =10 -pointlist1_y =10 -pointlist2_x =200 -pointlist2_y =70 -pointlist3_x =100 -pointlist3_y =200 -pointlist4_x =150 -pointlist4_y =220 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0302-checkLineColor_command09] -start1_x =10 -start1_y =10 -finish1_x =200 -finish1_y =70 -expected1_red =0 -expected1_green =0 -expected1_blue =0 -start2_x =200 -start2_y =70 -finish2_x =100 -finish2_y =200 -expected2_red =0 -expected2_green =0 -expected2_blue =0 -start3_x =100 -start3_y =200 -finish3_x =150 -finish3_y =220 -expected3_red =0 -expected3_green =0 -expected3_blue =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0303-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0303-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0303-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0303-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0303-DrawPolyLineNoEndPoint_command08] -numpoints =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0304-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0304-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0304-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0304-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0304-SetPenSize_command08] -size_height =1 -size_width =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0304-DrawPolyLineNoEndPoint_command09] -numpoints =4 -pointlist1_x =10 -pointlist1_y =10 -pointlist2_x =200 -pointlist2_y =70 -pointlist3_x =100 -pointlist3_y =200 -pointlist4_x =150 -pointlist4_y =220 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0305-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0305-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0305-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0305-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0305-SetPenSize_command08] -size_height =0 -size_width =1 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0305-DrawPolyLineNoEndPoint_command09] -numpoints =4 -pointlist1_x =10 -pointlist1_y =10 -pointlist2_x =200 -pointlist2_y =70 -pointlist3_x =100 -pointlist3_y =200 -pointlist4_x =150 -pointlist4_y =220 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0307-Activate_command02] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0307-DrawPolyLineNoEndPoint_command03] -numpoints =5 -pointlist1_x =75 -pointlist1_y =10 -pointlist2_x =0 -pointlist2_y =70 -pointlist3_x =300 -pointlist3_y =100 -pointlist4_x =350 -pointlist4_y =200 -pointlist5_x =5 -pointlist5_y =5 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0308-DrawPolyLineNoEndPoint_command02] -numpoints =5 -pointlist1_x =75 -pointlist1_y =10 -pointlist2_x =0 -pointlist2_y =70 -pointlist3_x =300 -pointlist3_y =100 -pointlist4_x =350 -pointlist4_y =200 -pointlist5_x =5 -pointlist5_y =5 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0309-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0309-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0309-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0309-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0309-SetBrushColor_command08] -color_red =0 -color_green =255 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0309-SetPenColor_command09] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0309-DrawPolygon_command10] -pointlist1_x =75 -pointlist1_y =10 -pointlist2_x =0 -pointlist2_y =70 -pointlist3_x =100 -pointlist3_y =50 -pointlist4_x =150 -pointlist4_y =100 -pointlist5_x =5 -pointlist5_y =5 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0309-checkLineColor_command11] -start1_x =75 -start1_y =10 -finish1_x =0 -finish1_y =70 -expected1_red =255 -expected1_green =0 -expected1_blue =0 -start2_x =0 -start2_y =70 -finish2_x =100 -finish2_y =50 -expected2_red =255 -expected2_green =0 -expected2_blue =0 -start3_x =100 -start3_y =50 -finish3_x =150 -finish3_y =100 -expected3_red =255 -expected3_green =0 -expected3_blue =0 -start4_x =150 -start4_y =100 -finish4_x =5 -finish4_y =5 -expected4_red =255 -expected4_green =0 -expected4_blue =0 -start5_x =5 -start5_y =5 -finish5_x =75 -finish5_y =10 -expected5_red =255 -expected5_green =0 -expected5_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0309-checkPixels_command12] -pixel1_x =10 -pixel1_y =7 -expected1_red =0 -expected1_green =255 -expected1_blue =0 -pixel2_x =2 -pixel2_y =69 -expected2_red =0 -expected2_green =255 -expected2_blue =0 -pixel3_x =100 -pixel3_y =52 -expected3_red =0 -expected3_green =255 -expected3_blue =0 -pixel4_x =80 -pixel4_y =10 -expected4_red =255 -expected4_green =255 -expected4_blue =255 -pixel5_x =6 -pixel5_y =50 -expected5_red =255 -expected5_green =255 -expected5_blue =255 -pixel6_x =90 -pixel6_y =44 -expected6_red =255 -expected6_green =255 -expected6_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0310-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0310-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0310-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0310-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0310-SetBrushColor_command08] -color_red =0 -color_green =255 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0310-SetPenColor_command09] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0310-DrawPolygon_command10] -pointlist1_x =75 -pointlist1_y =10 -pointlist2_x =0 -pointlist2_y =70 -pointlist3_x =8000 -pointlist3_y =8000 -pointlist4_x =150 -pointlist4_y =100 -pointlist5_x =5 -pointlist5_y =5 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0310-checkLineColor_command11] -start1_x =75 -start1_y =10 -finish1_x =0 -finish1_y =70 -expected1_red =255 -expected1_green =0 -expected1_blue =0 -start2_x =150 -start2_y =100 -finish2_x =5 -finish2_y =5 -expected2_red =255 -expected2_green =0 -expected2_blue =0 -start3_x =5 -start3_y =5 -finish3_x =75 -finish3_y =10 -expected3_red =255 -expected3_green =0 -expected3_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0310-checkPixels_command12] -pixel1_x =10 -pixel1_y =7 -expected1_red =0 -expected1_green =255 -expected1_blue =0 -pixel2_x =10 -pixel2_y =70 -expected2_red =0 -expected2_green =255 -expected2_blue =0 -pixel3_x =80 -pixel3_y =10 -expected3_red =255 -expected3_green =255 -expected3_blue =255 -pixel4_x =6 -pixel4_y =50 -expected4_red =255 -expected4_green =255 -expected4_blue =255 -pixel5_x =90 -pixel5_y =44 -expected5_red =255 -expected5_green =255 -expected5_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0311-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0311-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0311-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0311-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0311-SetBrushStyle_command08] -brushstyle =ENullBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0311-SetPenColor_command09] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0311-DrawPolygon_command10] -pointlist1_x =75 -pointlist1_y =10 -pointlist2_x =0 -pointlist2_y =70 -pointlist3_x =100 -pointlist3_y =50 -pointlist4_x =150 -pointlist4_y =100 -pointlist5_x =5 -pointlist5_y =5 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0311-checkLineColor_command11] -start1_x =75 -start1_y =10 -finish1_x =0 -finish1_y =70 -expected1_red =255 -expected1_green =0 -expected1_blue =0 -start2_x =0 -start2_y =70 -finish2_x =100 -finish2_y =50 -expected2_red =255 -expected2_green =0 -expected2_blue =0 -start3_x =100 -start3_y =50 -finish3_x =150 -finish3_y =100 -expected3_red =255 -expected3_green =0 -expected3_blue =0 -start4_x =150 -start4_y =100 -finish4_x =5 -finish4_y =5 -expected4_red =255 -expected4_green =0 -expected4_blue =0 -start5_x =5 -start5_y =5 -finish5_x =75 -finish5_y =10 -expected5_red =255 -expected5_green =0 -expected5_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0311-checkPixels_command12] -pixel1_x =10 -pixel1_y =7 -expected1_red =255 -expected1_green =255 -expected1_blue =255 -pixel2_x =10 -pixel2_y =70 -expected2_red =255 -expected2_green =255 -expected2_blue =255 -pixel3_x =280 -pixel3_y =110 -expected3_red =255 -expected3_green =255 -expected3_blue =255 -pixel4_x =80 -pixel4_y =10 -expected4_red =255 -expected4_green =255 -expected4_blue =255 -pixel5_x =6 -pixel5_y =50 -expected5_red =255 -expected5_green =255 -expected5_blue =255 -pixel6_x =90 -pixel6_y =44 -expected6_red =255 -expected6_green =255 -expected6_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0312-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0312-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0312-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0312-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0312-SetBrushColor_command08] -color_red =0 -color_green =255 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0312-SetPenSize_command09] -size_height =1 -size_width =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0312-DrawPolygon_command10] -pointlist1_x =75 -pointlist1_y =10 -pointlist2_x =0 -pointlist2_y =70 -pointlist3_x =150 -pointlist3_y =100 -pointlist4_x =200 -pointlist4_y =200 -pointlist5_x =5 -pointlist5_y =5 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0312-checkLineColor_command11] -start1_x =75 -start1_y =10 -finish1_x =0 -finish1_y =70 -expected1_red =255 -expected1_green =255 -expected1_blue =255 -start2_x =0 -start2_y =70 -finish2_x =150 -finish2_y =100 -expected2_red =255 -expected2_green =255 -expected2_blue =255 -start3_x =150 -start3_y =100 -finish3_x =200 -finish3_y =200 -expected3_red =255 -expected3_green =255 -expected3_blue =255 -start4_x =200 -start4_y =200 -finish4_x =5 -finish4_y =5 -expected4_red =255 -expected4_green =255 -expected4_blue =255 -start5_x =5 -start5_y =5 -finish5_x =75 -finish5_y =10 -expected5_red =255 -expected5_green =255 -expected5_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0312-checkPixels_command12] -pixel1_x =10 -pixel1_y =8 -expected1_red =0 -expected1_green =255 -expected1_blue =0 -pixel2_x =10 -pixel2_y =70 -expected2_red =0 -expected2_green =255 -expected2_blue =0 -pixel3_x =185 -pixel3_y =180 -expected3_red =0 -expected3_green =255 -expected3_blue =0 -pixel4_x =80 -pixel4_y =10 -expected4_red =255 -expected4_green =255 -expected4_blue =255 -pixel5_x =6 -pixel5_y =50 -expected5_red =255 -expected5_green =255 -expected5_blue =255 -pixel6_x =90 -pixel6_y =44 -expected6_red =255 -expected6_green =255 -expected6_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0313-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0313-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0313-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0313-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0313-SetBrushColor_command08] -color_red =0 -color_green =255 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0313-SetPenSize_command09] -size_height =0 -size_width =1 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0313-DrawPolygon_command10] -pointlist1_x =75 -pointlist1_y =10 -pointlist2_x =0 -pointlist2_y =70 -pointlist3_x =100 -pointlist3_y =100 -pointlist4_x =150 -pointlist4_y =190 -pointlist5_x =5 -pointlist5_y =5 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0313-checkLineColor_command11] -start1_x =75 -start1_y =10 -finish1_x =0 -finish1_y =70 -expected1_red =255 -expected1_green =255 -expected1_blue =255 -start2_x =0 -start2_y =70 -finish2_x =100 -finish2_y =100 -expected2_red =255 -expected2_green =255 -expected2_blue =255 -start3_x =100 -start3_y =100 -finish3_x =150 -finish3_y =190 -expected3_red =255 -expected3_green =255 -expected3_blue =255 -start4_x =150 -start4_y =190 -finish4_x =5 -finish4_y =5 -expected4_red =255 -expected4_green =255 -expected4_blue =255 -start5_x =5 -start5_y =5 -finish5_x =75 -finish5_y =10 -expected5_red =255 -expected5_green =255 -expected5_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0313-checkPixels_command12] -pixel1_x =19 -pixel1_y =9 -expected1_red =0 -expected1_green =255 -expected1_blue =0 -pixel2_x =10 -pixel2_y =70 -expected2_red =0 -expected2_green =255 -expected2_blue =0 -pixel3_x =112 -pixel3_y =131 -expected3_red =0 -expected3_green =255 -expected3_blue =0 -pixel4_x =10 -pixel4_y =88 -expected4_red =255 -expected4_green =255 -expected4_blue =255 -pixel5_x =6 -pixel5_y =50 -expected5_red =255 -expected5_green =255 -expected5_blue =255 -pixel6_x =90 -pixel6_y =44 -expected6_red =255 -expected6_green =255 -expected6_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0314-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0314-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0314-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0314-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0314-SetBrushColor_command08] -color_red =0 -color_green =255 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0314-SetPenStyle_command09] -penstyle =ENullPen - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0314-DrawPolygon_command10] -pointlist1_x =75 -pointlist1_y =10 -pointlist2_x =0 -pointlist2_y =70 -pointlist3_x =200 -pointlist3_y =100 -pointlist4_x =230 -pointlist4_y =200 -pointlist5_x =5 -pointlist5_y =5 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0314-checkLineColor_command11] -start1_x =75 -start1_y =10 -finish1_x =0 -finish1_y =70 -expected1_red =255 -expected1_green =255 -expected1_blue =255 -start2_x =0 -start2_y =70 -finish2_x =200 -finish2_y =100 -expected2_red =255 -expected2_green =255 -expected2_blue =255 -start3_x =200 -start3_y =100 -finish3_x =230 -finish3_y =200 -expected3_red =255 -expected3_green =255 -expected3_blue =255 -start4_x =230 -start4_y =200 -finish4_x =5 -finish4_y =5 -expected4_red =255 -expected4_green =255 -expected4_blue =255 -start5_x =5 -start5_y =5 -finish5_x =75 -finish5_y =10 -expected5_red =255 -expected5_green =255 -expected5_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0314-checkPixels_command12] -pixel1_x =12 -pixel1_y =6 -expected1_red =0 -expected1_green =255 -expected1_blue =0 -pixel2_x =11 -pixel2_y =66 -expected2_red =0 -expected2_green =255 -expected2_blue =0 -pixel3_x =181 -pixel3_y =128 -expected3_red =0 -expected3_green =255 -expected3_blue =0 -pixel4_x =80 -pixel4_y =10 -expected4_red =255 -expected4_green =255 -expected4_blue =255 -pixel5_x =6 -pixel5_y =50 -expected5_red =255 -expected5_green =255 -expected5_blue =255 -pixel6_x =90 -pixel6_y =44 -expected6_red =255 -expected6_green =255 -expected6_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0318-Activate_command02] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0318-DrawPolygon_command03] -pointlist1_x =75 -pointlist1_y =10 -pointlist2_x =0 -pointlist2_y =70 -pointlist3_x =300 -pointlist3_y =100 -pointlist4_x =350 -pointlist4_y =200 -pointlist5_x =5 -pointlist5_y =5 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0319-DrawPolygon_command02] -pointlist1_x =75 -pointlist1_y =10 -pointlist2_x =0 -pointlist2_y =70 -pointlist3_x =300 -pointlist3_y =100 -pointlist4_x =350 -pointlist4_y =200 -pointlist5_x =5 -pointlist5_y =5 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0320-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0320-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0320-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0320-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0320-SetBrushColor_command08] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0320-SetPenColor_command09] -color_red =0 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0320-DrawPolygon_command10] -numpoints =4 -pointlist1_x =10 -pointlist1_y =10 -pointlist2_x =200 -pointlist2_y =70 -pointlist3_x =100 -pointlist3_y =200 -pointlist4_x =150 -pointlist4_y =220 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0320-checkLineColor_command11] -start1_x =10 -start1_y =10 -finish1_x =200 -finish1_y =70 -expected1_red =0 -expected1_green =0 -expected1_blue =0 -start2_x =200 -start2_y =70 -finish2_x =100 -finish2_y =200 -expected2_red =0 -expected2_green =0 -expected2_blue =0 -start3_x =100 -start3_y =200 -finish3_x =150 -finish3_y =220 -expected3_red =0 -expected3_green =0 -expected3_blue =0 -start4_x =150 -start4_y =220 -finish4_x =10 -finish4_y =10 -expected4_red =0 -expected4_green =0 -expected4_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0320-checkPixels_command12] -pixel1_x =180 -pixel1_y =71 -expected1_red =0 -expected1_green =0 -expected1_blue =255 -pixel2_x =110 -pixel2_y =200 -expected2_red =0 -expected2_green =0 -expected2_blue =255 -pixel3_x =10 -pixel3_y =110 -expected3_red =255 -expected3_green =255 -expected3_blue =255 -pixel4_x =80 -pixel4_y =10 -expected4_red =255 -expected4_green =255 -expected4_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0321-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0321-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0321-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0321-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0321-SetBrushColor_command08] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0321-SetPenColor_command09] -color_red =0 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0321-DrawPolygon_command10] -numpoints =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0322-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0322-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0322-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0322-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0322-SetBrushColor_command08] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0322-SetPenColor_command09] -color_red =0 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0322-DrawPolygon_command10] -numpoints =4 -pointlist1_x =10 -pointlist1_y =10 -pointlist2_x =200 -pointlist2_y =70 -pointlist3_x =100 -pointlist3_y =200 -pointlist4_x =8000 -pointlist4_y =8000 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0322-checkLineColor_command11] -start1_x =10 -start1_y =10 -finish1_x =200 -finish1_y =70 -expected1_red =0 -expected1_green =0 -expected1_blue =0 -start2_x =200 -start2_y =70 -finish2_x =100 -finish2_y =200 -expected2_red =0 -expected2_green =0 -expected2_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0322-checkPixels_command12] -pixel1_x =180 -pixel1_y =71 -expected1_red =0 -expected1_green =0 -expected1_blue =255 -pixel2_x =110 -pixel2_y =200 -expected2_red =0 -expected2_green =0 -expected2_blue =255 -pixel3_x =10 -pixel3_y =110 -expected3_red =255 -expected3_green =255 -expected3_blue =255 -pixel4_x =80 -pixel4_y =10 -expected4_red =255 -expected4_green =255 -expected4_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0323-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0323-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0323-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0323-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0323-SetBrushStyle_command08] -brushstyle =ENullBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0323-SetPenColor_command09] -color_red =0 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0323-DrawPolygon_command10] -numpoints =4 -pointlist1_x =10 -pointlist1_y =10 -pointlist2_x =200 -pointlist2_y =70 -pointlist3_x =100 -pointlist3_y =200 -pointlist4_x =150 -pointlist4_y =220 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0323-checkLineColor_command11] -start1_x =10 -start1_y =10 -finish1_x =200 -finish1_y =70 -expected1_red =0 -expected1_green =0 -expected1_blue =0 -start2_x =200 -start2_y =70 -finish2_x =100 -finish2_y =200 -expected2_red =0 -expected2_green =0 -expected2_blue =0 -start3_x =100 -start3_y =200 -finish3_x =150 -finish3_y =220 -expected3_red =0 -expected3_green =0 -expected3_blue =0 -start4_x =150 -start4_y =220 -finish4_x =10 -finish4_y =10 -expected4_red =0 -expected4_green =0 -expected4_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0323-checkPixels_command12] -pixel1_x =180 -pixel1_y =71 -expected1_red =255 -expected1_green =255 -expected1_blue =255 -pixel2_x =110 -pixel2_y =200 -expected2_red =255 -expected2_green =255 -expected2_blue =255 -pixel3_x =10 -pixel3_y =110 -expected3_red =255 -expected3_green =255 -expected3_blue =255 -pixel4_x =80 -pixel4_y =10 -expected4_red =255 -expected4_green =255 -expected4_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0324-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0324-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0324-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0324-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0324-SetBrushColor_command08] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0324-SetPenStyle_command09] -penstyle =ENullPen - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0324-DrawPolygon_command10] -numpoints =4 -pointlist1_x =10 -pointlist1_y =10 -pointlist2_x =200 -pointlist2_y =70 -pointlist3_x =100 -pointlist3_y =200 -pointlist4_x =150 -pointlist4_y =220 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0324-checkLineColor_command11] -start1_x =10 -start1_y =10 -finish1_x =200 -finish1_y =70 -expected1_red =255 -expected1_green =255 -expected1_blue =255 -start2_x =200 -start2_y =70 -finish2_x =100 -finish2_y =200 -expected2_red =255 -expected2_green =255 -expected2_blue =255 -start3_x =100 -start3_y =200 -finish3_x =150 -finish3_y =220 -expected3_red =255 -expected3_green =255 -expected3_blue =255 -start4_x =150 -start4_y =220 -finish4_x =10 -finish4_y =10 -expected4_red =255 -expected4_green =255 -expected4_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0324-checkPixels_command12] -pixel1_x =180 -pixel1_y =71 -expected1_red =0 -expected1_green =0 -expected1_blue =255 -pixel2_x =110 -pixel2_y =200 -expected2_red =0 -expected2_green =0 -expected2_blue =255 -pixel3_x =10 -pixel3_y =110 -expected3_red =255 -expected3_green =255 -expected3_blue =255 -pixel4_x =80 -pixel4_y =10 -expected4_red =255 -expected4_green =255 -expected4_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0325-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0325-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0325-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0325-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0325-SetBrushColor_command08] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0325-SetPenSize_command09] -size_height =1 -size_width =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0325-DrawPolygon_command10] -numpoints =4 -pointlist1_x =10 -pointlist1_y =10 -pointlist2_x =200 -pointlist2_y =70 -pointlist3_x =100 -pointlist3_y =200 -pointlist4_x =150 -pointlist4_y =220 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0325-checkLineColor_command11] -start1_x =10 -start1_y =10 -finish1_x =200 -finish1_y =70 -expected1_red =255 -expected1_green =255 -expected1_blue =255 -start2_x =200 -start2_y =70 -finish2_x =100 -finish2_y =200 -expected2_red =255 -expected2_green =255 -expected2_blue =255 -start3_x =100 -start3_y =200 -finish3_x =150 -finish3_y =220 -expected3_red =255 -expected3_green =255 -expected3_blue =255 -start4_x =150 -start4_y =220 -finish4_x =10 -finish4_y =10 -expected4_red =255 -expected4_green =255 -expected4_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0325-checkPixels_command12] -pixel1_x =180 -pixel1_y =71 -expected1_red =0 -expected1_green =0 -expected1_blue =255 -pixel2_x =110 -pixel2_y =200 -expected2_red =0 -expected2_green =0 -expected2_blue =255 -pixel3_x =10 -pixel3_y =110 -expected3_red =255 -expected3_green =255 -expected3_blue =255 -pixel4_x =80 -pixel4_y =10 -expected4_red =255 -expected4_green =255 -expected4_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0326-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0326-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0326-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0326-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0326-SetBrushColor_command08] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0326-SetPenSize_command09] -size_height =0 -size_width =1 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0326-DrawPolygon_command10] -numpoints =4 -pointlist1_x =10 -pointlist1_y =10 -pointlist2_x =200 -pointlist2_y =70 -pointlist3_x =100 -pointlist3_y =200 -pointlist4_x =150 -pointlist4_y =220 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0326-checkLineColor_command11] -start1_x =10 -start1_y =10 -finish1_x =200 -finish1_y =70 -expected1_red =255 -expected1_green =255 -expected1_blue =255 -start2_x =200 -start2_y =70 -finish2_x =100 -finish2_y =200 -expected2_red =255 -expected2_green =255 -expected2_blue =255 -start3_x =100 -start3_y =200 -finish3_x =150 -finish3_y =220 -expected3_red =255 -expected3_green =255 -expected3_blue =255 -start4_x =150 -start4_y =220 -finish4_x =10 -finish4_y =10 -expected4_red =255 -expected4_green =255 -expected4_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0326-checkPixels_command12] -pixel1_x =180 -pixel1_y =71 -expected1_red =0 -expected1_green =0 -expected1_blue =255 -pixel2_x =110 -pixel2_y =200 -expected2_red =0 -expected2_green =0 -expected2_blue =255 -pixel3_x =10 -pixel3_y =110 -expected3_red =255 -expected3_green =255 -expected3_blue =255 -pixel4_x =80 -pixel4_y =10 -expected4_red =255 -expected4_green =255 -expected4_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0327-Activate_command02] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0327-DrawPolygon_command03] -numpoints =4 -pointlist1_x =10 -pointlist1_y =10 -pointlist2_x =200 -pointlist2_y =70 -pointlist3_x =100 -pointlist3_y =200 -pointlist4_x =150 -pointlist4_y =220 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0328-DrawPolygon_command02] -numpoints =4 -pointlist1_x =10 -pointlist1_y =10 -pointlist2_x =200 -pointlist2_y =70 -pointlist3_x =100 -pointlist3_y =200 -pointlist4_x =150 -pointlist4_y =220 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0329-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0329-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0329-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0329-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0329-SetBrushColor_command08] -color_red =0 -color_green =255 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0329-SetPenColor_command09] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0329-DrawEllipse_command10] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0329-checkPixels_command11] -pixel1_x =0 -pixel1_y =50 -expected1_red =255 -expected1_green =0 -expected1_blue =0 -pixel2_x =100 -pixel2_y =0 -expected2_red =255 -expected2_green =0 -expected2_blue =0 -pixel3_x =195 -pixel3_y =34 -expected3_red =255 -expected3_green =0 -expected3_blue =0 -pixel4_x =108 -pixel4_y =99 -expected4_red =255 -expected4_green =0 -expected4_blue =0 -pixel5_x =168 -pixel5_y =13 -expected5_red =255 -expected5_green =0 -expected5_blue =0 -pixel6_x =184 -pixel6_y =76 -expected6_red =255 -expected6_green =0 -expected6_blue =0 -pixel7_x =37 -pixel7_y =11 -expected7_red =255 -expected7_green =0 -expected7_blue =0 -pixel8_x =17 -pixel8_y =22 -expected8_red =255 -expected8_green =0 -expected8_blue =0 -pixel9_x =100 -pixel9_y =50 -expected9_red =0 -expected9_green =255 -expected9_blue =0 -pixel10_x =90 -pixel10_y =44 -expected10_red =0 -expected10_green =255 -expected10_blue =0 -pixel11_x =230 -pixel11_y =99 -expected11_red =255 -expected11_green =255 -expected11_blue =255 -pixel12_x =10 -pixel12_y =10 -expected12_red =255 -expected12_green =255 -expected12_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0330-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0330-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0330-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0330-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0330-SetBrushColor_command08] -color_red =0 -color_green =255 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0330-SetPenColor_command09] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0330-DrawEllipse_command10] -rect_top =0 -rect_left =0 -rect_bottom =0 -rect_right =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0331-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0331-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0331-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0331-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0331-SetBrushColor_command08] -color_red =0 -color_green =255 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0331-SetPenColor_command09] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0331-DrawEllipse_command10] -rect_top =8000 -rect_left =8000 -rect_bottom =9000 -rect_right =9000 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0332-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0332-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0332-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0332-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0332-SetBrushStyle_command08] -brushstyle =ENullBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0332-SetPenColor_command09] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0332-DrawEllipse_command10] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0332-checkPixels_command11] -pixel1_x =0 -pixel1_y =50 -expected1_red =255 -expected1_green =0 -expected1_blue =0 -pixel2_x =100 -pixel2_y =0 -expected2_red =255 -expected2_green =0 -expected2_blue =0 -pixel3_x =195 -pixel3_y =34 -expected3_red =255 -expected3_green =0 -expected3_blue =0 -pixel4_x =108 -pixel4_y =99 -expected4_red =255 -expected4_green =0 -expected4_blue =0 -pixel5_x =168 -pixel5_y =13 -expected5_red =255 -expected5_green =0 -expected5_blue =0 -pixel6_x =184 -pixel6_y =76 -expected6_red =255 -expected6_green =0 -expected6_blue =0 -pixel7_x =37 -pixel7_y =11 -expected7_red =255 -expected7_green =0 -expected7_blue =0 -pixel8_x =30 -pixel8_y =14 -expected8_red =255 -expected8_green =0 -expected8_blue =0 -pixel9_x =150 -pixel9_y =50 -expected9_red =255 -expected9_green =255 -expected9_blue =255 -pixel10_x =140 -pixel10_y =44 -expected10_red =255 -expected10_green =255 -expected10_blue =255 -pixel11_x =239 -pixel11_y =99 -expected11_red =255 -expected11_green =255 -expected11_blue =255 -pixel12_x =10 -pixel12_y =10 -expected12_red =255 -expected12_green =255 -expected12_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0333-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0333-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0333-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0333-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0333-SetBrushColor_command08] -color_red =0 -color_green =255 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0333-SetPenStyle_command09] -penstyle =ENullPen - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0333-DrawEllipse_command10] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0333-checkPixels_command11] -pixel1_x =0 -pixel1_y =50 -expected1_red =255 -expected1_green =255 -expected1_blue =255 -pixel2_x =100 -pixel2_y =0 -expected2_red =255 -expected2_green =255 -expected2_blue =255 -pixel3_x =195 -pixel3_y =34 -expected3_red =255 -expected3_green =255 -expected3_blue =255 -pixel4_x =108 -pixel4_y =99 -expected4_red =255 -expected4_green =255 -expected4_blue =255 -pixel5_x =168 -pixel5_y =13 -expected5_red =255 -expected5_green =255 -expected5_blue =255 -pixel6_x =184 -pixel6_y =76 -expected6_red =255 -expected6_green =255 -expected6_blue =255 -pixel7_x =37 -pixel7_y =11 -expected7_red =255 -expected7_green =255 -expected7_blue =255 -pixel8_x =30 -pixel8_y =14 -expected8_red =255 -expected8_green =255 -expected8_blue =255 -pixel9_x =150 -pixel9_y =50 -expected9_red =0 -expected9_green =255 -expected9_blue =0 -pixel10_x =140 -pixel10_y =44 -expected10_red =0 -expected10_green =255 -expected10_blue =0 -pixel11_x =239 -pixel11_y =99 -expected11_red =255 -expected11_green =255 -expected11_blue =255 -pixel12_x =10 -pixel12_y =10 -expected12_red =255 -expected12_green =255 -expected12_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0334-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0334-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0334-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0334-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0334-SetBrushColor_command08] -color_red =0 -color_green =255 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0334-SetPenSize_command09] -size_height =0 -size_width =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0334-DrawEllipse_command10] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0334-checkPixels_command11] -pixel1_x =0 -pixel1_y =50 -expected1_red =0 -expected1_green =255 -expected1_blue =0 -pixel2_x =100 -pixel2_y =0 -expected2_red =0 -expected2_green =255 -expected2_blue =0 -pixel3_x =195 -pixel3_y =34 -expected3_red =0 -expected3_green =255 -expected3_blue =0 -pixel4_x =108 -pixel4_y =99 -expected4_red =0 -expected4_green =255 -expected4_blue =0 -pixel5_x =168 -pixel5_y =13 -expected5_red =0 -expected5_green =255 -expected5_blue =0 -pixel6_x =184 -pixel6_y =76 -expected6_red =0 -expected6_green =255 -expected6_blue =0 -pixel7_x =37 -pixel7_y =11 -expected7_red =0 -expected7_green =255 -expected7_blue =0 -pixel8_x =30 -pixel8_y =14 -expected8_red =0 -expected8_green =255 -expected8_blue =0 -pixel9_x =150 -pixel9_y =50 -expected9_red =0 -expected9_green =255 -expected9_blue =0 -pixel10_x =140 -pixel10_y =44 -expected10_red =0 -expected10_green =255 -expected10_blue =0 -pixel11_x =239 -pixel11_y =99 -expected11_red =255 -expected11_green =255 -expected11_blue =255 -pixel12_x =10 -pixel12_y =10 -expected12_red =255 -expected12_green =255 -expected12_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0335-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0335-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0335-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0335-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0335-SetBrushColor_command08] -color_red =0 -color_green =255 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0335-SetPenSize_command09] -size_height =1 -size_width =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0335-DrawEllipse_command10] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0335-checkPixels_command11] -pixel1_x =0 -pixel1_y =50 -expected1_red =0 -expected1_green =0 -expected1_blue =0 -pixel2_x =100 -pixel2_y =0 -expected2_red =0 -expected2_green =0 -expected2_blue =0 -pixel3_x =195 -pixel3_y =34 -expected3_red =0 -expected3_green =0 -expected3_blue =0 -pixel4_x =108 -pixel4_y =99 -expected4_red =0 -expected4_green =0 -expected4_blue =0 -pixel5_x =168 -pixel5_y =13 -expected5_red =0 -expected5_green =0 -expected5_blue =0 -pixel6_x =184 -pixel6_y =76 -expected6_red =0 -expected6_green =0 -expected6_blue =0 -pixel7_x =37 -pixel7_y =11 -expected7_red =0 -expected7_green =0 -expected7_blue =0 -pixel8_x =30 -pixel8_y =14 -expected8_red =0 -expected8_green =0 -expected8_blue =0 -pixel9_x =150 -pixel9_y =50 -expected9_red =0 -expected9_green =255 -expected9_blue =0 -pixel10_x =140 -pixel10_y =44 -expected10_red =0 -expected10_green =255 -expected10_blue =0 -pixel11_x =239 -pixel11_y =99 -expected11_red =255 -expected11_green =255 -expected11_blue =255 -pixel12_x =10 -pixel12_y =10 -expected12_red =255 -expected12_green =255 -expected12_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0336-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0336-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0336-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0336-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0336-SetBrushColor_command08] -color_red =0 -color_green =255 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0336-SetPenSize_command09] -size_height =1 -size_width =2 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0336-DrawEllipse_command10] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0336-checkPixels_command11] -pixel1_x =0 -pixel1_y =50 -expected1_red =0 -expected1_green =0 -expected1_blue =0 -pixel2_x =100 -pixel2_y =0 -expected2_red =0 -expected2_green =0 -expected2_blue =0 -pixel3_x =195 -pixel3_y =34 -expected3_red =0 -expected3_green =0 -expected3_blue =0 -pixel4_x =108 -pixel4_y =99 -expected4_red =0 -expected4_green =0 -expected4_blue =0 -pixel5_x =168 -pixel5_y =13 -expected5_red =0 -expected5_green =0 -expected5_blue =0 -pixel6_x =184 -pixel6_y =76 -expected6_red =0 -expected6_green =0 -expected6_blue =0 -pixel7_x =37 -pixel7_y =11 -expected7_red =0 -expected7_green =0 -expected7_blue =0 -pixel8_x =30 -pixel8_y =14 -expected8_red =0 -expected8_green =0 -expected8_blue =0 -pixel9_x =150 -pixel9_y =50 -expected9_red =0 -expected9_green =255 -expected9_blue =0 -pixel10_x =140 -pixel10_y =44 -expected10_red =0 -expected10_green =255 -expected10_blue =0 -pixel11_x =239 -pixel11_y =99 -expected11_red =255 -expected11_green =255 -expected11_blue =255 -pixel12_x =10 -pixel12_y =10 -expected12_red =255 -expected12_green =255 -expected12_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0337-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0337-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0337-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0337-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0337-SetBrushColor_command08] -color_red =0 -color_green =255 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0337-SetPenSize_command09] -size_height =2 -size_width =2 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0337-DrawEllipse_command10] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0337-checkPixels_command11] -pixel1_x =0 -pixel1_y =50 -expected1_red =0 -expected1_green =0 -expected1_blue =0 -pixel2_x =100 -pixel2_y =0 -expected2_red =0 -expected2_green =0 -expected2_blue =0 -pixel3_x =195 -pixel3_y =34 -expected3_red =0 -expected3_green =0 -expected3_blue =0 -pixel4_x =108 -pixel4_y =99 -expected4_red =0 -expected4_green =0 -expected4_blue =0 -pixel5_x =168 -pixel5_y =13 -expected5_red =0 -expected5_green =0 -expected5_blue =0 -pixel6_x =184 -pixel6_y =76 -expected6_red =0 -expected6_green =0 -expected6_blue =0 -pixel7_x =37 -pixel7_y =11 -expected7_red =0 -expected7_green =0 -expected7_blue =0 -pixel8_x =30 -pixel8_y =14 -expected8_red =0 -expected8_green =0 -expected8_blue =0 -pixel9_x =150 -pixel9_y =50 -expected9_red =0 -expected9_green =255 -expected9_blue =0 -pixel10_x =140 -pixel10_y =44 -expected10_red =0 -expected10_green =255 -expected10_blue =0 -pixel11_x =239 -pixel11_y =99 -expected11_red =255 -expected11_green =255 -expected11_blue =255 -pixel12_x =10 -pixel12_y =10 -expected12_red =255 -expected12_green =255 -expected12_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0340-Activate_command02] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0340-DrawEllipse_command03] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =300 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0341-DrawEllipse_command02] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =300 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0342-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0342-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0342-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0342-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0342-DrawLine_command08] -point1_x =100 -point1_y =100 -point2_x =150 -point2_y =100 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0342-checkLineColor_command09] -start1_x =100 -start1_y =100 -finish1_x =150 -finish1_y =100 -expected1_red =0 -expected1_green =0 -expected1_blue =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0343-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0343-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0343-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0343-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0343-DrawLine_command08] -point1_x =8000 -point1_y =8000 -point2_x =9000 -point2_y =9000 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0344-Activate_command02] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0344-DrawLine_command03] -point1_x =100 -point1_y =100 -point2_x =400 -point2_y =200 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0345-DrawLine_command02] -point1_x =100 -point1_y =100 -point2_x =400 -point2_y =200 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0346-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0346-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0346-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0346-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0346-DrawLineTo_command08] -point_x =200 -point_y =50 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0346-checkLineColor_command09] -start1_x =0 -start1_y =0 -finish1_x =200 -finish1_y =50 -expected1_red =0 -expected1_green =0 -expected1_blue =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0347-Activate_command02] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0347-DrawLineTo_command03] -point_x =200 -point_y =50 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0348-DrawLineTo_command02] -point_x =200 -point_y =50 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0349-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0349-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0349-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0349-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0349-DrawLineBy_command08] -point_x =170 -point_y =200 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0349-checkLineColor_command09] -start1_x =0 -start1_y =0 -finish1_x =170 -finish1_y =200 -expected1_red =0 -expected1_green =0 -expected1_blue =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0350-Activate_command02] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0350-DrawLineBy_command03] -point_x =170 -point_y =200 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0351-DrawLineTo_command02] -point_x =170 -point_y =200 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0352-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0352-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0352-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0352-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0352-SetBrushColor_command08] -color_red =0 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0352-SetPenColor_command09] -color_red =0 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0352-DrawRect_command10] -rect_top =50 -rect_left =50 -rect_bottom =200 -rect_right =100 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0352-checkRectColor_command11] -rect1_top =50 -rect1_left =50 -rect1_bottom =200 -rect1_right =100 -expected1_red =0 -expected1_green =0 -expected1_blue =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0353-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0353-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0353-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0353-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0353-SetBrushColor_command08] -color_red =0 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0353-SetPenColor_command09] -color_red =0 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0353-DrawRect_command10] -rect_top =50 -rect_left =50 -rect_bottom =50 -rect_right =50 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0354-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0354-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0354-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0354-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0354-SetBrushColor_command08] -color_red =0 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0354-SetPenColor_command09] -color_red =0 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0354-DrawRect_command10] -rect_top =8000 -rect_left =8000 -rect_bottom =9000 -rect_right =9000 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0355-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0355-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0355-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0355-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0355-SetBrushColor_command08] -color_red =0 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0355-SetPenSize_command09] -size_height =1 -size_width =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0355-DrawRect_command10] -rect_top =100 -rect_left =50 -rect_bottom =200 -rect_right =100 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0355-checkRectColor_command11] -rect1_top =101 -rect1_left =51 -rect1_bottom =199 -rect1_right =99 -expected1_red =0 -expected1_green =0 -expected1_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0356-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0356-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0356-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0356-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0356-SetBrushColor_command08] -color_red =0 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0356-SetPenSize_command09] -size_height =0 -size_width =1 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0356-DrawRect_command10] -rect_top =100 -rect_left =50 -rect_bottom =200 -rect_right =100 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0356-checkRectColor_command11] -rect1_top =101 -rect1_left =51 -rect1_bottom =199 -rect1_right =99 -expected1_red =0 -expected1_green =0 -expected1_blue =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0357-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0357-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0357-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0357-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0357-SetBrushColor_command08] -color_red =0 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0357-SetPenStyle_command09] -penstyle =ENullPen - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0357-DrawRect_command10] -rect_top =100 -rect_left =50 -rect_bottom =200 -rect_right =100 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0357-checkRectColor_command11] -rect1_top =101 -rect1_left =51 -rect1_bottom =199 -rect1_right =99 -expected1_red =0 -expected1_green =0 -expected1_blue =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0358-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0358-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0358-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0358-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0358-SetBrushColor_command08] -color_red =0 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0358-SetPenStyle_command09] -penstyle =EDottedPen - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0358-DrawRect_command10] -rect_top =100 -rect_left =50 -rect_bottom =200 -rect_right =100 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0358-checkRectColor_command11] -rect1_top =101 -rect1_left =51 -rect1_bottom =199 -rect1_right =99 -expected1_red =0 -expected1_green =0 -expected1_blue =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0359-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0359-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0359-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0359-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0359-SetBrushColor_command08] -color_red =0 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0359-SetPenColor_command09] -color_red =0 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0359-DrawRect_command10] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =1 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0359-checkLineColor_command11] -start1_x =0 -start1_y =0 -finish1_x =0 -finish1_y =100 -expected1_red =0 -expected1_green =0 -expected1_blue =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0360-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0360-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0360-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0360-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0360-SetBrushColor_command08] -color_red =0 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0360-SetPenColor_command09] -color_red =0 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0360-DrawRect_command10] -rect_top =0 -rect_left =0 -rect_bottom =1 -rect_right =1 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0360-checkLineColor_command11] -start1_x =0 -start1_y =0 -finish1_x =0 -finish1_y =1 -expected1_red =0 -expected1_green =0 -expected1_blue =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0361-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0361-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0361-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0361-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0361-SetBrushColor_command08] -color_red =0 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0361-SetPenSize_command09] -size_height =2 -size_width =1 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0361-DrawRect_command10] -rect_top =100 -rect_left =50 -rect_bottom =200 -rect_right =100 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0361-checkRectColor_command11] -rect1_top =101 -rect1_left =51 -rect1_bottom =199 -rect1_right =99 -expected1_red =0 -expected1_green =0 -expected1_blue =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0362-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0362-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0362-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0362-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0362-SetBrushColor_command08] -color_red =0 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0362-SetDrawMode_command09] -drawmode =EDrawModeWriteAlpha - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0362-SetPenSize_command10] -size_height =2 -size_width =2 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0362-DrawRect_command11] -rect_top =100 -rect_left =50 -rect_bottom =200 -rect_right =100 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0362-checkRectColor_command12] -rect1_top =101 -rect1_left =51 -rect1_bottom =199 -rect1_right =99 -expected1_red =0 -expected1_green =0 -expected1_blue =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0401-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0401-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0401-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0401-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0401-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0401-MoveTo_command09] -point_x =20 -point_y =20 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0401-DrawText_command10] -text =This is a test! - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0401-ReleaseFont_command12] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0402-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0402-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0402-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0402-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0402-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0402-MoveTo_command09] -point_x =20 -point_y =20 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0402-DrawText_command10] -text = - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0402-ReleaseFont_command12] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0403-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0403-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0403-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0403-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0403-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0403-DrawText_command09] -point_x =20 -point_y =30 -text =This is a test! - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0403-ReleaseFont_command11] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0404-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0404-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0404-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0404-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0404-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0404-DrawText_command09] -point_x =-10 -point_y =-10 -text =This is a test! - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0404-DrawText_command10] -point_x =64000 -point_y =64000 -text =This is a test! - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0404-ReleaseFont_command12] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0405-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0405-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0405-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0405-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0405-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0405-DrawText_command09] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -text =This is a test! - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0405-ReleaseFont_command11] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0406-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0406-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0406-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0406-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0406-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0406-DrawText_command09] -rect_top =0 -rect_left =0 -rect_bottom =0 -rect_right =0 -text =This is a test! - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0406-ReleaseFont_command11] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0407-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0407-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0407-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0407-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0407-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0407-DrawText_command09] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =10 -textalign =ELeft -Margin =10 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0407-DrawText_command10] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =30 -textalign =ECenter -Margin =10 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0407-DrawText_command11] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =50 -textalign =ERight -Margin =10 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0407-ReleaseFont_command13] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0408-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0408-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0408-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0408-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0408-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0408-DrawText_command09] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =-10 -Margin =-10 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0408-DrawText_command10] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =400 -Margin =400 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0408-ReleaseFont_command12] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0409-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0409-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0409-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0409-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0409-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0409-DrawText_command09] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =30 -textwidth =100 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0409-DrawText_command10] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =30 -textwidth =100 -textalign =ECenter - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0409-DrawText_command11] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =30 -textwidth =100 -textalign =ERight - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0409-ReleaseFont_command13] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0410-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0410-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0410-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0410-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0410-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0410-DrawText_command09] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =30 -textwidth =-10 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0410-DrawText_command10] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =50 -textwidth =1000 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0410-ReleaseFont_command12] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0411-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0411-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0411-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0411-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0411-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0411-MoveTo_command09] -point_x =20 -point_y =20 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0411-DrawTextVertical_command10] -text =This is a test! -up =ETrue - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0411-DrawTextVertical_command11] -text =This is a test! -up =EFalse - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0411-ReleaseFont_command13] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0412-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0412-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0412-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0412-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0412-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0412-MoveTo_command09] -point_x =20 -point_y =20 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0412-DrawTextVertical_command10] -text = -up =EFalse - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0412-ReleaseFont_command12] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0413-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0413-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0413-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0413-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0413-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0413-DrawTextVertical_command09] -point_x =20 -point_y =30 -text =This is a test! -up =EFalse - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0413-ReleaseFont_command11] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0414-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0414-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0414-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0414-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0414-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0414-DrawTextVertical_command09] -point_x =-100 -point_y =-100 -text =This is a test! -up =ETrue - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0414-DrawTextVertical_command10] -point_x =640000 -point_y =640000 -text =This is a test! -up =EFalse - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0414-ReleaseFont_command12] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0415-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0415-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0415-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0415-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0415-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0415-DrawTextVertical_command09] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -text =This is a test! -up =EFalse - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0415-ReleaseFont_command11] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0416-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0416-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0416-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0416-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0416-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0416-DrawTextVertical_command09] -rect_top =0 -rect_left =0 -rect_bottom =0 -rect_right =0 -text =This is a test! -up =EFalse - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0416-ReleaseFont_command11] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0417-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0417-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0417-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0417-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0417-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0417-DrawTextVertical_command09] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =10 -textalign =ELeft -Margin =10 -up =EFalse - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0417-DrawTextVertical_command10] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =30 -textalign =ECenter -Margin =10 -up =EFalse - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0417-DrawTextVertical_command11] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =50 -textalign =ERight -Margin =10 -up =EFalse - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0417-ReleaseFont_command13] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0418-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0418-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0418-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0418-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0418-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0418-DrawTextVertical_command09] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =-10 -Margin =-10 -up =EFalse - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0418-DrawTextVertical_command10] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =400 -Margin =400 -up =EFalse - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0418-ReleaseFont_command12] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0419-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0419-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0419-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0419-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0419-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0419-DrawTextVertical_command09] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =30 -textwidth =100 -up =EFalse - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0419-ReleaseFont_command11] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0420-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0420-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0420-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0420-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0420-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0420-DrawTextVertical_command09] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =0 -rect_right =0 -baselineoffset =30 -textwidth =0 -textalign =ERight -up =EFalse - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0420-DrawTextVertical_command10] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =50 -textwidth =1000 -up =ETrue - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0420-ReleaseFont_command12] -font =font -disown =false - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0441-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0441-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0441-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0441-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0441-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0441-MoveTo_command09] -point_x =20 -point_y =20 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0441-DrawText_command10] -text =This is a test! -param_start =0 -param_end =15 -param_flags =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0441-DrawText_command13] -text =This is a test! -param_start =1 -param_end =15 -param_flags =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0441-ReleaseFont_command16] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0442-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0442-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0442-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0442-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0442-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0442-MoveTo_command09] -point_x =20 -point_y =20 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0442-DrawText_command10] -text = -param_start =0 -param_end =15 -param_flags =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0442-ReleaseFont_command13] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0443-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0443-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0443-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0443-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0443-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0443-MoveTo_command09] -point_x =20 -point_y =20 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0443-DrawText_command10] -text =This is a test! -param_start =-5 -param_end =-2 -param_flags =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0443-ReleaseFont_command13] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0444-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0444-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0444-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0444-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0444-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0444-MoveTo_command09] -point_x =20 -point_y =20 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0444-DrawText_command10] -text =This is a test! -param_start =200 -param_end =300 -param_flags =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0444-ReleaseFont_command13] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0445-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0445-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0445-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0445-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0445-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0445-MoveTo_command09] -point_x =20 -point_y =20 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0445-DrawText_command10] -text =This is a test! -param_start =8 -param_end =2 -param_flags =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0445-ReleaseFont_command13] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0446-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0446-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0446-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0446-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0446-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0446-MoveTo_command09] -point_x =20 -point_y =20 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0446-DrawText_command10] -text =This is a test! -param_start =8 -param_end =8 -param_flags =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0446-ReleaseFont_command13] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0447-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0447-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0447-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0447-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0447-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0447-DrawText_command09] -point_x =20 -point_y =30 -text =This is a test! -param_start =0 -param_end =15 -param_flags =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0447-DrawText_command12] -point_x =20 -point_y =30 -text =This is a test! -param_start =1 -param_end =15 -param_flags =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0447-ReleaseFont_command15] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0448-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0448-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0448-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0448-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0448-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0448-DrawText_command09] -point_x =20 -point_y =30 -text = -param_start =0 -param_end =15 -param_flags =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0448-DrawText_command11] -point_x =-20 -point_y =-30 -text =This is a test! -param_start =0 -param_end =15 -param_flags =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0448-DrawText_command13] -point_x =200000 -point_y =300000 -text =This is a test! -param_start =0 -param_end =15 -param_flags =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0448-ReleaseFont_command16] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0449-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0449-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0449-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0449-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0449-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0449-DrawText_command09] -point_x =20 -point_y =30 -text =This is a test! -param_start =-15 -param_end =-1 -param_flags =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0449-ReleaseFont_command12] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0450-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0450-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0450-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0450-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0450-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0450-DrawText_command09] -point_x =20 -point_y =30 -text =This is a test! -param_start =200 -param_end =300 -param_flags =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0450-ReleaseFont_command12] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0451-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0451-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0451-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0451-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0451-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0451-DrawText_command09] -point_x =20 -point_y =30 -text =This is a test! -param_start =8 -param_end =2 -param_flags =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0451-ReleaseFont_command12] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0452-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0452-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0452-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0452-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0452-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0452-DrawText_command09] -point_x =20 -point_y =30 -text =This is a test! -param_start =8 -param_end =8 -param_flags =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0452-ReleaseFont_command12] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0453-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0453-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0453-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0453-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0453-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0453-DrawText_command09] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -text =This is a test! -param_start =0 -param_end =15 -param_flags =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0453-DrawText_command12] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -text =This is a test! -param_start =1 -param_end =15 -param_flags =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0453-ReleaseFont_command15] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0454-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0454-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0454-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0454-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0454-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0454-DrawText_command09] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -text = -param_start =0 -param_end =15 -param_flags =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0454-DrawText_command11] -rect_top =0 -rect_left =0 -rect_bottom =-100 -rect_right =-200 -text =This is a test! -param_start =-15 -param_end =-1 -param_flags =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0454-ReleaseFont_command14] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0455-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0455-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0455-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0455-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0455-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0455-DrawText_command09] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -text =This is a test! -param_start =-15 -param_end =-1 -param_flags =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0455-ReleaseFont_command12] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0456-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0456-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0456-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0456-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0456-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0456-DrawText_command09] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -text =This is a test! -param_start =200 -param_end =300 -param_flags =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0456-ReleaseFont_command12] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0457-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0457-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0457-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0457-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0457-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0457-DrawText_command09] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -text =This is a test! -param_start =15 -param_end =0 -param_flags =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0457-ReleaseFont_command12] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0458-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0458-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0458-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0458-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0458-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0458-DrawText_command09] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -text =This is a test! -param_start =4 -param_end =4 -param_flags =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0458-ReleaseFont_command12] -font =font -disown =false - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0459-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0459-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0459-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0459-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0459-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0459-DrawText_command09] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =10 -textalign =ELeft -Margin =10 -param_start =0 -param_end =15 -param_flags =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0459-DrawText_command12] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =30 -textalign =ECenter -Margin =10 -param_start =0 -param_end =15 -param_flags =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0459-DrawText_command15] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =50 -textalign =ERight -Margin =10 -param_start =0 -param_end =15 -param_flags =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0459-DrawText_command18] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =50 -textalign =ERight -Margin =10 -param_start =1 -param_end =15 -param_flags =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0459-ReleaseFont_command21] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0460-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0460-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0460-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0460-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0460-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0460-DrawText_command09] -text = -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =10 -textalign =ELeft -Margin =10 -param_start =1 -param_end =15 -param_flags =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0460-DrawText_command10] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =-10 -textalign =ECenter -Margin =-10 -param_start =0 -param_end =15 -param_flags =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0460-DrawText_command11] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =100 -textalign =ERight -Margin =100 -param_start =0 -param_end =15 -param_flags =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0460-ReleaseFont_command14] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0461-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0461-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0461-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0461-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0461-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0461-DrawText_command09] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =10 -textalign =ELeft -Margin =10 -param_start =-15 -param_end =-1 -param_flags =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0461-ReleaseFont_command12] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0462-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0462-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0462-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0462-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0462-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0462-DrawText_command09] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =10 -textalign =ELeft -Margin =10 -param_start =200 -param_end =300 -param_flags =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0462-ReleaseFont_command12] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0463-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0463-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0463-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0463-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0463-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0463-DrawText_command09] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =10 -textalign =ELeft -Margin =10 -param_start =15 -param_end =0 -param_flags =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0463-ReleaseFont_command12] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0464-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0464-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0464-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0464-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0464-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0464-DrawText_command09] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =10 -textalign =ELeft -Margin =10 -param_start =4 -param_end =4 -param_flags =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0464-ReleaseFont_command12] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0465-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0465-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0465-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0465-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0465-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0465-DrawText_command09] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =30 -textwidth =100 -param_start =0 -param_end =15 -param_flags =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0465-DrawText_command12] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =30 -textwidth =100 -param_start =1 -param_end =15 -param_flags =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0465-ReleaseFont_command15] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0466-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0466-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0466-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0466-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0466-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0466-DrawText_command09] -text = -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =30 -textwidth =0 -param_start =0 -param_end =15 -param_flags =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0466-DrawText_command10] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =30 -textwidth =-10 -param_start =0 -param_end =15 -param_flags =0 -textalign =ECenter - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0466-DrawText_command11] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =30 -textwidth =1000 -param_start =0 -param_end =15 -param_flags =0 -textalign =ERight - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0466-ReleaseFont_command14] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0467-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0467-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0467-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0467-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0467-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0467-DrawText_command09] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =30 -textwidth =100 -param_start =-15 -param_end =-1 -param_flags =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0467-ReleaseFont_command12] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0468-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0468-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0468-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0468-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0468-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0468-DrawText_command09] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =30 -textwidth =100 -param_start =200 -param_end =300 -param_flags =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0468-ReleaseFont_command12] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0469-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0469-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0469-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0469-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0469-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0469-DrawText_command09] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =30 -textwidth =100 -param_start =15 -param_end =0 -param_flags =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0469-ReleaseFont_command12] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0470-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0470-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0470-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0470-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0470-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0470-DrawText_command09] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =30 -textwidth =100 -param_start =4 -param_end =4 -param_flags =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0470-ReleaseFont_command12] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0471-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0471-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0471-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0471-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0471-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0471-MoveTo_command09] -point_x =20 -point_y =20 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0471-DrawTextVertical_command10] -text =This is a test! -param_start =0 -param_end =15 -param_flags =0 -up =ETrue - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0471-DrawTextVertical_command13] -text =This is a test! -param_start =0 -param_end =15 -param_flags =0 -up =EFalse - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0471-DrawTextVertical_command16] -text =This is a test! -param_start =1 -param_end =15 -param_flags =0 -up =EFalse - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0471-ReleaseFont_command19] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0472-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0472-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0472-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0472-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0472-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0472-MoveTo_command09] -point_x =20 -point_y =20 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0472-DrawTextVertical_command10] -text = -param_start =1 -param_end =15 -param_flags =0 -up =ETrue - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0472-ReleaseFont_command13] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0473-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0473-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0473-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0473-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0473-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0473-MoveTo_command09] -point_x =20 -point_y =20 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0473-DrawTextVertical_command10] -text =This is a test! -param_start =-15 -param_end =-1 -param_flags =0 -up =ETrue - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0473-ReleaseFont_command13] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0474-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0474-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0474-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0474-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0474-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0474-MoveTo_command09] -point_x =20 -point_y =20 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0474-DrawTextVertical_command10] -text =This is a test! -param_start =200 -param_end =300 -param_flags =0 -up =ETrue - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0474-ReleaseFont_command13] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0475-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0475-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0475-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0475-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0475-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0475-MoveTo_command09] -point_x =20 -point_y =20 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0475-DrawTextVertical_command10] -text =This is a test! -param_start =4 -param_end =4 -param_flags =0 -up =ETrue - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0475-ReleaseFont_command13] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0476-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0476-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0476-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0476-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0476-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0476-MoveTo_command09] -point_x =20 -point_y =20 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0476-DrawTextVertical_command10] -text =This is a test! -param_start =15 -param_end =0 -param_flags =0 -up =ETrue - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0476-ReleaseFont_command13] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0477-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0477-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0477-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0477-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0477-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0477-DrawTextVertical_command09] -point_x =20 -point_y =30 -text =This is a test! -param_start =0 -param_end =15 -param_flags =0 -up =ETrue - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0477-DrawTextVertical_command12] -point_x =20 -point_y =30 -text =This is a test! -param_start =1 -param_end =15 -param_flags =0 -up =ETrue - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0477-ReleaseFont_command15] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0478-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0478-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0478-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0478-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0478-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0478-DrawTextVertical_command09] -point_x =20 -point_y =30 -text = -param_start =0 -param_end =15 -param_flags =0 -up =ETrue - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0478-DrawTextVertical_command10] -point_x =-20 -point_y =-30 -text =This is a test! -param_start =0 -param_end =15 -param_flags =0 -up =ETrue - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0478-DrawTextVertical_command11] -point_x =200000 -point_y =300000 -text =This is a test! -param_start =0 -param_end =15 -param_flags =0 -up =ETrue - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0478-ReleaseFont_command14] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0479-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0479-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0479-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0479-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0479-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0479-DrawTextVertical_command09] -point_x =20 -point_y =30 -text =This is a test! -param_start =-15 -param_end =-1 -param_flags =0 -up =ETrue - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0479-ReleaseFont_command12] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0480-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0480-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0480-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0480-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0480-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0480-DrawTextVertical_command09] -point_x =20 -point_y =30 -text =This is a test! -param_start =200 -param_end =300 -param_flags =0 -up =ETrue - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0480-ReleaseFont_command12] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0481-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0481-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0481-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0481-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0481-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0481-DrawTextVertical_command09] -point_x =20 -point_y =30 -text =This is a test! -param_start =4 -param_end =4 -param_flags =0 -up =ETrue - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0481-ReleaseFont_command12] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0482-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0482-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0482-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0482-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0482-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0482-DrawTextVertical_command09] -point_x =20 -point_y =30 -text =This is a test! -param_start =15 -param_end =0 -param_flags =0 -up =ETrue - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0482-ReleaseFont_command12] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0483-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0483-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0483-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0483-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0483-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0483-DrawTextVertical_command09] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -text =This is a test! -param_start =0 -param_end =15 -param_flags =0 -up =EFalse - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0483-DrawTextVertical_command12] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -text =This is a test! -param_start =1 -param_end =15 -param_flags =0 -up =EFalse - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0483-ReleaseFont_command15] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0484-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0484-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0484-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0484-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0484-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0484-DrawTextVertical_command09] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -text = -param_start =0 -param_end =15 -param_flags =0 -up =EFalse - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0484-DrawTextVertical_command10] -rect_top =0 -rect_left =0 -rect_bottom =0 -rect_right =0 -text =This is a test! -param_start =0 -param_end =15 -param_flags =0 -up =ETrue - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0484-DrawTextVertical_command11] -rect_top =0 -rect_left =0 -rect_bottom =-100 -rect_right =-200 -text =This is a test! -param_start =0 -param_end =15 -param_flags =0 -up =EFalse - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0484-DrawTextVertical_command12] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -text = -param_start =1 -param_end =15 -param_flags =0 -up =EFalse - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0484-ReleaseFont_command15] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0485-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0485-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0485-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0485-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0485-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0485-DrawTextVertical_command09] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -text =This is a test! -param_start =-15 -param_end =-1 -param_flags =0 -up =EFalse - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0485-ReleaseFont_command12] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0486-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0486-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0486-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0486-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0486-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0486-DrawTextVertical_command09] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -text =This is a test! -param_start =200 -param_end =300 -param_flags =0 -up =EFalse - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0486-ReleaseFont_command12] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0487-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0487-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0487-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0487-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0487-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0487-DrawTextVertical_command09] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -text =This is a test! -param_start =4 -param_end =4 -param_flags =0 -up =EFalse - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0487-ReleaseFont_command12] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0488-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0488-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0488-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0488-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0488-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0488-DrawTextVertical_command09] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -text =This is a test! -param_start =15 -param_end =1 -param_flags =0 -up =EFalse - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0488-ReleaseFont_command12] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0489-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0489-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0489-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0489-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0489-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0489-DrawTextVertical_command09] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =10 -textalign =ELeft -Margin =10 -param_start =0 -param_end =15 -param_flags =0 -up =ETrue - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0489-DrawTextVertical_command12] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =30 -textalign =ECenter -Margin =10 -param_start =0 -param_end =15 -param_flags =0 -up =EFalse - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0489-DrawTextVertical_command15] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =50 -textalign =ERight -Margin =10 -param_start =0 -param_end =15 -param_flags =0 -up =ETrue - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0489-DrawTextVertical_command18] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =50 -textalign =ERight -Margin =10 -param_start =1 -param_end =15 -param_flags =0 -up =ETrue - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0489-ReleaseFont_command21] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0490-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0490-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0490-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0490-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0490-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0490-DrawTextVertical_command09] -text = -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =10 -textalign =ELeft -Margin =10 -param_start =1 -param_end =15 -param_flags =0 -up =ETrue - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0490-DrawTextVertical_command10] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =-10 -textalign =ECenter -Margin =-10 -param_start =0 -param_end =15 -param_flags =0 -up =EFalse - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0490-DrawTextVertical_command11] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =1000 -textalign =ERight -Margin =1000 -param_start =0 -param_end =15 -param_flags =0 -up =EFalse - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0490-ReleaseFont_command14] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0491-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0491-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0491-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0491-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0491-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0491-DrawTextVertical_command09] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =10 -textalign =ELeft -Margin =10 -param_start =-15 -param_end =-1 -param_flags =0 -up =ETrue - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0491-ReleaseFont_command12] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0492-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0492-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0492-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0492-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0492-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0492-DrawTextVertical_command09] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =10 -textalign =ELeft -Margin =10 -param_start =200 -param_end =300 -param_flags =0 -up =ETrue - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0492-ReleaseFont_command15] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0492-ReleaseFont_command12] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0493-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0493-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0493-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0493-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0493-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0493-DrawTextVertical_command09] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =10 -textalign =ELeft -Margin =10 -param_start =4 -param_end =4 -param_flags =0 -up =ETrue - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0493-ReleaseFont_command12] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0494-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0494-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0494-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0494-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0494-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0494-DrawTextVertical_command09] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =10 -textalign =ELeft -Margin =10 -param_start =15 -param_end =0 -param_flags =0 -up =ETrue - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0494-ReleaseFont_command12] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0495-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0495-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0495-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0495-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0495-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0495-DrawTextVertical_command09] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =30 -textwidth =100 -param_start =0 -param_end =15 -param_flags =0 -up =ETrue - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0495-DrawTextVertical_command12] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =30 -textwidth =100 -param_start =1 -param_end =15 -param_flags =0 -up =ETrue - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0495-ReleaseFont_command15] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0496-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0496-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0496-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0496-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0496-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0496-DrawTextVertical_command09] -text = -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =30 -textwidth =-10 -param_start =1 -param_end =15 -param_flags =0 -up =EFalse - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0496-DrawTextVertical_command10] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =30 -textwidth =-10 -param_start =0 -param_end =15 -param_flags =0 -textalign =ECenter -up =ETrue - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0496-DrawTextVertical_command11] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =30 -textwidth =100 -param_start =0 -param_end =15 -param_flags =0 -textalign =ERight -up =EFalse - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0496-DrawTextVertical_command12] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =30 -textwidth =100 -textalign =ERight -up =EFalse -param_enabled =Enable - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0496-ReleaseFont_command15] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0497-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0497-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0497-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0497-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0497-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0497-DrawTextVertical_command09] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =30 -textwidth =10 -param_start =-15 -param_end =-1 -param_flags =0 -up =ETrue - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0497-ReleaseFont_command12] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0498-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0498-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0498-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0498-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0498-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0498-DrawTextVertical_command09] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =30 -textwidth =10 -param_start =200 -param_end =300 -param_flags =0 -up =ETrue - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0498-ReleaseFont_command12] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0499-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0499-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0499-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0499-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0499-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0499-DrawTextVertical_command09] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =30 -textwidth =10 -param_start =4 -param_end =4 -param_flags =0 -up =ETrue - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0499-ReleaseFont_command12] -font =font -disown =false - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0500-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0500-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0500-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0500-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0500-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0500-DrawTextVertical_command09] -text =This is a test! -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -baselineoffset =30 -textwidth =10 -param_start =15 -param_end =1 -param_flags =0 -up =ETrue - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0500-ReleaseFont_command12] -font =font -disown =false - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0501-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0501-ActivateNoJustAutoUpdate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0501-UpdateJustification_command05] -text =This is a test! - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0502-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0502-ActivateNoJustAutoUpdate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0502-UpdateJustification_command05] -text = - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0503-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0503-ActivateNoJustAutoUpdate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0503-UpdateJustificationVertical_command05] -text =This is a test! -up =ETrue - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0503-UpdateJustificationVertical_command06] -text =This is a test! -up =EFalse - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0504-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0504-ActivateNoJustAutoUpdate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0504-UpdateJustificationVertical_command05] -text = -up =EFalse - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0505-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0505-ActivateNoJustAutoUpdate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0505-UpdateJustification_command05] -text =This is a test! -param_start =0 -param_end =15 -param_flags =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0505-UpdateJustification_command06] -text =This is a test! -param_start =1 -param_end =15 -param_flags =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0506-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0506-ActivateNoJustAutoUpdate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0506-UpdateJustification_command05] -text = -param_start =0 -param_end =15 -param_flags =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0507-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0507-ActivateNoJustAutoUpdate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0507-UpdateJustification_command05] -text =This is a test! -param_start =-15 -param_end =-1 -param_flags =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0508-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0508-ActivateNoJustAutoUpdate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0508-UpdateJustification_command05] -text =This is a test! -param_start =200 -param_end =300 -param_flags =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0509-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0509-ActivateNoJustAutoUpdate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0509-UpdateJustification_command05] -text =This is a test! -param_start =4 -param_end =4 -param_flags =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0510-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0510-ActivateNoJustAutoUpdate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0510-UpdateJustification_command05] -text =This is a test! -param_start =15 -param_end =0 -param_flags =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0511-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0511-ActivateNoJustAutoUpdate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0511-UpdateJustificationVertical_command05] -text =This is a test! -param_start =0 -param_end =15 -param_flags =0 -up =ETrue - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0511-UpdateJustificationVertical_command06] -text =This is a test! -param_start =0 -param_end =15 -param_flags =0 -up =EFalse - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0512-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0512-ActivateNoJustAutoUpdate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0512-UpdateJustificationVertical_command05] -text = -param_start =1 -param_end =5 -param_flags =0 -up =ETrue - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0513-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0513-ActivateNoJustAutoUpdate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0513-UpdateJustificationVertical_command05] -text =This is a test! -param_start =-5 -param_end =-2 -param_flags =0 -up =EFalse - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0514-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0514-ActivateNoJustAutoUpdate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0514-UpdateJustificationVertical_command05] -text =This is a test! -param_start =200 -param_end =300 -param_flags =0 -up =EFalse - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0515-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0515-ActivateNoJustAutoUpdate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0515-UpdateJustificationVertical_command05] -text =This is a test! -param_start =4 -param_end =4 -param_flags =0 -up =EFalse - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0516-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0516-ActivateNoJustAutoUpdate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0516-UpdateJustificationVertical_command05] -text =This is a test! -param_start =15 -param_end =1 -param_flags =0 -up =EFalse - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0517-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0517-ActivateNoJustAutoUpdate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0517-SetCharJustification_command05] -excesswidth =30 -numchars =6 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0517-UpdateJustificationVertical_command06] -text =text! -up =EFalse - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0517-SetWordJustification_command07] -excesswidth =20 -numgaps =3 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0517-UpdateJustificationVertical_command08] -text =text! -up =EFalse - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0517-SetCharJustification_command09] -excesswidth =-30 -numchars =6 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0517-UpdateJustificationVertical_command10] -text =text! -up =EFalse - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0517-SetWordJustification_command11] -excesswidth =-20 -numgaps =3 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0517-UpdateJustificationVertical_command12] -text =text! -up =EFalse - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0517-SetCharJustification_command13] -excesswidth =30 -numchars =-1 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0517-UpdateJustificationVertical_command14] -text =text! -up =EFalse - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0517-SetWordJustification_command15] -excesswidth =20 -numgaps =-1 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0517-UpdateJustificationVertical_command16] -text =text! -up =EFalse - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0517-SetCharJustification_command17] -excesswidth =0 -numchars =-2 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0517-UpdateJustificationVertical_command18] -text =text! -up =EFalse - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0517-SetWordJustification_command19] -excesswidth =0 -numgaps =-1 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0517-UpdateJustificationVertical_command20] -text =text! -up =EFalse - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0601-Activate_command02] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0601-DrawRect_command03] -rect_top =50 -rect_left =50 -rect_bottom =200 -rect_right =100 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0602-DrawRect_command02] -rect_top =50 -rect_left =50 -rect_bottom =200 -rect_right =100 - - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/bitgdi/testdata/GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini --- a/graphicsapitest/graphicssvs/bitgdi/testdata/GRAPHICS-BITGDI-FbsBitGc-PublicApi-3.ini Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,4545 +0,0 @@ -[include] -file1 =\graphics\t_graphics.ini - - -[fbsSession] -name =fbs - -[wsSession] -name =ws - -[fbsBitGc] -name =bitgc - -[fbsBitGc2] -name =bitgc2 - -[fbsFont] -name =bitfnt - -[fbsBitmap] -name =fbsbmp - -[fbsMaskBitmap] -name =fbsmaskbmp - -[wsBitmap] -name =wsbmp - -[wsMaskBitmap] -name =wsmaskbmp - -[fbsSrcBitmap1] -name =fbssrcbmp1 - -[fbsSrcBitmap2] -name =fbssrcbmp2 - -[alphaBitmap] -name =alphabmp - -[fbsScrDev] -name =scrdev - -[fbsBmpDev] -name =bmpdev - -[fbsTypefaceStore] -name =fbstfs - -[font] -name =font - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0801-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0801-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0801-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0801-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0801-MapColors_command08] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =100 -numcolors =2 -mapforwards =TRUE -rgblist1_red =255 -rgblist1_green =255 -rgblist1_blue =255 -rgblist2_red =0 -rgblist2_green =255 -rgblist2_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0801-MapColors_command09] -rect_top =101 -rect_left =101 -rect_bottom =150 -rect_right =150 -numcolors =2 -mapforwards =TRUE -rgblist1_red =0 -rgblist1_green =255 -rgblist1_blue =255 -rgblist2_red =0 -rgblist2_green =255 -rgblist2_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0801-checkRectColor_command10] -rect1_top =0 -rect1_left =0 -rect1_bottom =100 -rect1_right =100 -expected1_red =0 -expected1_green =255 -expected1_blue =0 -rect1_top =101 -rect1_left =101 -rect1_bottom =150 -rect1_right =150 -expected1_red =255 -expected1_green =255 -expected1_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0802-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0802-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0802-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0802-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0802-MapColors_command08] -rect_top =0 -rect_left =0 -rect_bottom =0 -rect_right =0 -numcolors =2 -mapforwards =TRUE -rgblist1_red =255 -rgblist1_green =255 -rgblist1_blue =255 -rgblist2_red =0 -rgblist2_green =255 -rgblist2_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0802-SetBrushColor_command10] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0802-SetPenColor_command11] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0802-DrawRect_command12] -rect_top =0 -rect_left =0 -rect_bottom =50 -rect_right =50 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0802-MapColors_command15] -rect_top =10 -rect_left =10 -rect_bottom =100 -rect_right =100 -numcolors =2 -mapforwards =TRUE -rgblist1_red =255 -rgblist1_green =0 -rgblist1_blue =0 -rgblist2_red =0 -rgblist2_green =255 -rgblist2_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0802-checkRectColor_command16] -rect1_top =0 -rect1_left =0 -rect1_bottom =10 -rect1_right =50 -expected1_red =255 -expected1_green =0 -expected1_blue =0 -rect2_top =10 -rect2_left =0 -rect2_bottom =50 -rect2_right =10 -expected2_red =255 -expected2_green =0 -expected2_blue =0 -rect3_top =10 -rect3_left =10 -rect3_bottom =50 -rect3_right =50 -expected3_red =0 -expected3_green =255 -expected3_blue =0 -rect4_top =10 -rect4_left =50 -rect4_bottom =50 -rect4_right =100 -expected4_red =255 -expected4_green =255 -expected4_blue =255 -rect5_top =50 -rect5_left =10 -rect5_bottom =100 -rect5_right =100 -expected5_red =255 -expected5_green =255 -expected5_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0803-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0803-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0803-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0803-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0803-SetClippingRect_command08] -rect_top =110 -rect_left =110 -rect_bottom =120 -rect_right =120 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0803-MapColors_command09] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =100 -numcolors =2 -mapforwards =TRUE -rgblist1_red =255 -rgblist1_green =255 -rgblist1_blue =255 -rgblist2_red =0 -rgblist2_green =255 -rgblist2_blue =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0804-MapColors_command03] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =100 -numcolors =2 -mapforwards =TRUE -rgblist1_red =255 -rgblist1_green =255 -rgblist1_blue =255 -rgblist2_red =0 -rgblist2_green =255 -rgblist2_blue =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0901-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0901-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0901-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0901-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0901-MoveTo_command08] -point_x =40 -point_y =10 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0901-DrawLineTo_command09] -point_x =10 -point_y =100 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0901-checkPixels_command10] -pixel1_x =40 -pixel1_y =10 -expected1_red =0 -expected1_green =0 -expected1_blue =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0902-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0902-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0902-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0902-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0902-DrawLine_command08] -point1_x =0 -point1_y =0 -point2_x =400 -point2_y =200 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0902-MoveBy_command09] -point_x =-400 -point_y =-100 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0902-DrawLineBy_command10] -point_x =300 -point_y =-100 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0911-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0911-Activate_command04] -device =fbsScrDev - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0921-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0921-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0921-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0921-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0921-Plot_command08] -point_x =10 -point_y =7 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0921-checkPixels_command09] -pixel1_x =10 -pixel1_y =7 -expected1_red =0 -expected1_green =0 -expected1_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0921-SetPenSize_command10] -size_height =1 -size_width =30 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0921-Plot_command11] -point_x =30 -point_y =30 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0921-SetPenSize_command12] -size_height =30 -size_width =1 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0921-Plot_command13] -point_x =60 -point_y =60 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0921-checkLineColor_command14] -start1_x =16 -start1_y =30 -finish1_x =45 -finish1_y =30 -expected1_red =0 -expected1_green =0 -expected1_blue =0 -start2_x =60 -start2_y =46 -finish2_x =60 -finish2_y =75 -expected2_red =0 -expected2_green =0 -expected2_blue =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0921-SetPenSize_command15] -size_height =40 -size_width =40 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0921-Plot_command16] -point_x =110 -point_y =110 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0921-checkPixels_command17] -pixel1_x =110 -pixel1_y =110 -expected1_red =0 -expected1_green =0 -expected1_blue =0 -pixel2_x =110 -pixel2_y =130 -expected2_red =0 -expected2_green =0 -expected2_blue =0 -pixel3_x =110 -pixel3_y =91 -expected3_red =0 -expected3_green =0 -expected3_blue =0 -pixel4_x =91 -pixel4_y =110 -expected4_red =0 -expected4_green =0 -expected4_blue =0 -pixel5_x =130 -pixel5_y =110 -expected5_red =0 -expected5_green =0 -expected5_blue =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0922-Plot_command03] -point_x =10 -point_y =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0923-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0923-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0923-SetPenStyle_command06] -penstyle =ENullPen - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0923-Plot_command07] -point_x =10 -point_y =10 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0923-checkPixels_command08] -pixel1_x =10 -pixel1_y =10 -expected1_red =255 -expected1_green =255 -expected1_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0924-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0924-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0924-SetPenSize_command06] -size_height =1 -size_width =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0924-Plot_command07] -point_x =10 -point_y =10 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0924-checkPixels_command08] -pixel1_x =10 -pixel1_y =10 -expected1_red =255 -expected1_green =255 -expected1_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0925-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0925-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0925-SetPenSize_command06] -size_height =0 -size_width =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0925-Plot_command07] -point_x =10 -point_y =10 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0925-checkPixels_command08] -pixel1_x =10 -pixel1_y =10 -expected1_red =255 -expected1_green =255 -expected1_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0926-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0926-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0926-SetClippingRect_command05] -rect_top =8000 -rect_left =8000 -rect_bottom =8005 -rect_right =8005 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0926-Plot_command06] -point_x =10 -point_y =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0927-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0927-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0927-DrawLine_command05] -point1_x =5 -point1_y =0 -point2_x =5 -point2_y =100 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0927-DrawLine_command06] -point1_x =0 -point1_y =0 -point2_x =100 -point2_y =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0927-RectDrawnTo_command07] -rect_top =0 -rect_left =0 -rect_bottom =0 -rect_right =100 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0928-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0928-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0928-DrawLine_command05] -point1_x =5 -point1_y =0 -point2_x =5 -point2_y =8000 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0928-RectDrawnTo_command06] -rect_top =0 -rect_left =0 -rect_bottom =0 -rect_right =100 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0929-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0929-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0929-RectDrawnTo_command05] -rect_top =0 -rect_left =0 -rect_bottom =0 -rect_right =100 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0930-RectDrawnTo_command02] -rect_top =0 -rect_left =0 -rect_bottom =0 -rect_right =100 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0931-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0931-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0931-SetBrushColor_command05] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0931-SetBrushStyle_command06] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0931-SetPenSize_command08] -size_height =10 -size_width =1 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0931-DrawLine_command09] -point1_x =0 -point1_y =5 -point2_x =10 -point2_y =5 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0931-SetClippingRect_command10] -rect_top =10 -rect_left =20 -rect_bottom =20 -rect_right =30 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0931-DrawLine_command11] -point1_x =25 -point1_y =20 -point2_x =35 -point2_y =20 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0931-SetBrushColor_command12] -color_red =0 -color_green =255 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0931-SetPenColor_command13] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0931-SetClippingRect_command14] -rect_top =30 -rect_left =0 -rect_bottom =100 -rect_right =100 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0931-SetDrawMode_command15] -drawmode =EDrawModeOR - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0931-SetPenStyle_command16] -penstyle =EDottedPen - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0931-DrawRect_command17] -rect_top =30 -rect_left =0 -rect_bottom =120 -rect_right =120 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0931-checkRectColor_command18] -rect1_top =1 -rect1_left =0 -rect1_bottom =10 -rect1_right =10 -expected1_red =0 -expected1_green =0 -expected1_blue =0 -rect2_top =16 -rect2_left =25 -rect2_bottom =20 -rect2_right =30 -expected2_red =0 -expected2_green =0 -expected2_blue =0 -rect3_top =16 -rect3_left =30 -rect3_bottom =20 -rect3_right =35 -expected3_red =255 -expected3_green =0 -expected3_blue =0 -rect4_top =20 -rect4_left =25 -rect4_bottom =20 -rect4_right =35 -expected4_red =255 -expected4_green =255 -expected4_blue =0 -rect5_top =30 -rect5_left =100 -rect5_bottom =100 -rect5_right =120 -expected5_red =255 -expected5_green =0 -expected5_blue =0 -rect6_top =100 -rect6_left =0 -rect6_bottom =120 -rect6_right =120 -expected6_red =255 -expected6_green =0 -expected6_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0931-GetNearestFontToDesignHeightInPixels_command19] -font_height ={default_fbserv,font_height} -font_name ={default_fbserv,alternate_font_name1} -font_data_object_name =fbsFont - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0931-UseFont_command20] -font =fbsFont - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0931-IsFontUsed_command21] -expected =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0931-IsFontUsed_command26] -expected =FALSE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0931-DrawRect_command27] -rect_top =0 -rect_left =0 -rect_bottom =60 -rect_right =120 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0931-checkRectColor_command28] -rect1_top =1 -rect1_left =1 -rect1_bottom =59 -rect1_right =119 -expected1_red =255 -expected1_green =255 -expected1_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0931-checkLineColor_command29] -start1_x =0 -start1_y =0 -finish1_x =120 -finish1_y =0 -expected1_red =0 -expected1_green =0 -expected1_blue =0 -start2_x =0 -start2_y =0 -finish2_x =0 -finish2_y =60 -expected2_red =0 -expected2_green =0 -expected2_blue =0 -start3_x =119 -start3_y =0 -finish3_x =119 -finish3_y =60 -expected3_red =0 -expected3_green =0 -expected3_blue =0 -start4_x =0 -start4_y =59 -finish4_x =120 -finish4_y =59 -expected4_red =0 -expected4_green =0 -expected4_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0931-ReleaseFont_command32] -font_data_object_name =fbsFont - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0941-Load_command04] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0941-NewL_command05] -bitmap =fbsBitmap - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0941-Activate_command06] -device =fbsBmpDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0941-Resize_command07] -resize_width =100 -resize_height =100 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0942-Load_command04] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0942-NewL_command05] -bitmap =fbsBitmap - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0942-Activate_command06] -device =fbsBmpDev - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0944-Load_command04] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0944-NewL_command05] -bitmap =fbsBitmap - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0944-Activate_command06] -device =fbsBmpDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0944-DrawLine_command07] -point1_x =0 -point1_y =0 -point2_x =8000 -point2_y =8000 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0944-SetOrigin_command08] -point_x =-8000 -point_y =-8000 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0944-SetBrushOrigin_command09] -point_x =-8000 -point_y =-8000 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0944-Resize_command10] -resize_width =100 -resize_height =100 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1101-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1101-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1101-SetBrushStyle_command06] -brushstyle =ENullBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1101-SetBrushColor_command07] -color_red =0 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1101-DrawPie_command08] -rect_top =40 -rect_left =40 -rect_bottom =120 -rect_right =160 -start_x =100 -start_y =40 -end_x =160 -end_y =80 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1101-checkPixels_command10] -pixel1_x =90 -pixel1_y =90 -expected1_red =255 -expected1_green =255 -expected1_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1102-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1102-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1102-SetBrushStyle_command06] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1102-SetBrushColor_command07] -color_red =0 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1102-DrawPie_command08] -rect_top =40 -rect_left =40 -rect_bottom =120 -rect_right =160 -start_x =100 -start_y =40 -end_x =160 -end_y =80 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1103-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1103-Load_command05] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1103-Activate_command06] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1103-UseBrushPattern_command08] -bitmap =fbsBitmap - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1103-SetBrushStyle_command09] -brushstyle =EPatternedBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1103-DrawPie_command10] -rect_top =40 -rect_left =40 -rect_bottom =120 -rect_right =160 -start_x =100 -start_y =40 -end_x =160 -end_y =80 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1104-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1104-Load_command05] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1104-Activate_command06] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1104-SetBrushStyle_command08] -brushstyle =EPatternedBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1104-DrawPie_command09] -rect_top =40 -rect_left =40 -rect_bottom =120 -rect_right =160 -start_x =100 -start_y =40 -end_x =160 -end_y =80 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1105-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1105-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1105-SetBrushStyle_command06] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1105-SetBrushColor_command07] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1105-DrawPie_command08] -rect_top =40 -rect_left =40 -rect_bottom =120 -rect_right =160 -start_x =100 -start_y =40 -end_x =160 -end_y =80 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1106-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1106-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1106-SetBrushColor_command06] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1106-SetBrushStyle_command07] -brushstyle =EVerticalHatchBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1106-DrawRect_command08] -rect_top =10 -rect_left =10 -rect_bottom =60 -rect_right =90 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1106-SetBrushStyle_command09] -brushstyle =EForwardDiagonalHatchBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1106-DrawRect_command10] -rect_top =10 -rect_left =110 -rect_bottom =60 -rect_right =190 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1106-SetBrushColor_command11] -color_red =0 -color_green =255 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1106-SetBrushStyle_command12] -brushstyle =EHorizontalHatchBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1106-DrawRect_command13] -rect_top =70 -rect_left =10 -rect_bottom =120 -rect_right =90 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1106-SetBrushStyle_command14] -brushstyle =ERearwardDiagonalHatchBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1106-DrawRect_command15] -rect_top =70 -rect_left =110 -rect_bottom =120 -rect_right =190 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1106-SetBrushColor_command16] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1106-SetBrushStyle_command17] -brushstyle =ESquareCrossHatchBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1106-DrawRect_command18] -rect_top =130 -rect_left =10 -rect_bottom =200 -rect_right =90 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1106-SetBrushStyle_command19] -brushstyle =EDiamondCrossHatchBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1106-DrawRect_command20] -rect_top =130 -rect_left =110 -rect_bottom =200 -rect_right =190 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1107-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1107-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1107-SetBrushOrigin_command06] -point_x =10 -point_y =10 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1107-DrawRect_command07] -rect_top =50 -rect_left =50 -rect_bottom =150 -rect_right =150 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1108-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1108-Load_command05] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1108-Activate_command06] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1108-UseBrushPattern_command08] -bitmap =fbsBitmap - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1108-SetBrushOrigin_command09] -point_x =20 -point_y =10 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1108-DrawRect_command10] -rect_top =60 -rect_left =10 -rect_bottom =140 -rect_right =90 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1108-SetBrushOrigin_command11] -point_x =20 -point_y =10 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1108-DrawRect_command12] -rect_top =60 -rect_left =110 -rect_bottom =140 -rect_right =190 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1109-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1109-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1109-SetBrushStyle_command06] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1109-SetBrushColor_command07] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1109-DrawRect_command08] -rect_top =10 -rect_left =10 -rect_bottom =60 -rect_right =40 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1109-SetBrushColor_command09] -color_red =0 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1109-DrawRect_command10] -rect_top =10 -rect_left =60 -rect_bottom =60 -rect_right =90 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1109-SetBrushColor_command11] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1109-DrawRect_command12] -rect_top =10 -rect_left =110 -rect_bottom =60 -rect_right =140 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1109-checkRectColor_command14] -rect1_top =11 -rect1_left =11 -rect1_bottom =59 -rect1_right =39 -expected1_red =255 -expected1_green =0 -expected1_blue =0 -rect2_top =11 -rect2_left =61 -rect2_bottom =59 -rect2_right =89 -expected2_red =0 -expected2_green =0 -expected2_blue =0 -rect3_top =121 -rect3_left =111 -rect3_bottom =59 -rect3_right =139 -expected3_red =255 -expected3_green =255 -expected3_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1111-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1111-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1111-SetPenColor_command06] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1111-DrawPie_command07] -rect_top =40 -rect_left =40 -rect_bottom =200 -rect_right =160 -start_x =160 -start_y =160 -end_x =40 -end_y =120 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1112-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1112-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1112-SetPenStyle_command06] -penstyle =ENullPen - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1112-DrawPie_command07] -rect_top =40 -rect_left =40 -rect_bottom =200 -rect_right =160 -start_x =160 -start_y =160 -end_x =40 -end_y =120 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1113-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1113-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1113-SetPenStyle_command06] -penstyle =ESolidPen - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1113-DrawPie_command07] -rect_top =40 -rect_left =40 -rect_bottom =200 -rect_right =160 -start_x =160 -start_y =160 -end_x =40 -end_y =120 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1114-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1114-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1111-SetPenColor_command06] -color_red =255 -color_green =128 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1114-SetPenStyle_command07] -penstyle =EDottedPen - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1114-DrawRect_command08] -rect_top =10 -rect_left =10 -rect_bottom =70 -rect_right =100 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1114-SetPenStyle_command09] -penstyle =EDashedPen - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1114-DrawRect_command10] -rect_top =10 -rect_left =120 -rect_bottom =100 -rect_right =180 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1111-SetPenColor_command11] -color_red =0 -color_green =128 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1114-SetPenStyle_command12] -penstyle =EDotDashPen - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1114-DrawRect_command13] -rect_top =90 -rect_left =10 -rect_bottom =180 -rect_right =70 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1114-SetPenStyle_command14] -penstyle =EDotDotDashPen - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1114-DrawRect_command15] -rect_top =120 -rect_left =90 -rect_bottom =180 -rect_right =180 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1115-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1115-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1115-SetPenSize_command06] -size_height =2 -size_width =4 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1115-DrawRect_command07] -rect_top =40 -rect_left =40 -rect_bottom =160 -rect_right =120 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1116-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1116-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1116-SetPenSize_command06] -size_height =2 -size_width =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1116-DrawRect_command07] -rect_top =10 -rect_left =10 -rect_bottom =110 -rect_right =90 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1116-SetPenSize_command08] -size_height =0 -size_width =-2 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1116-DrawRect_command09] -rect_top =10 -rect_left =110 -rect_bottom =110 -rect_right =190 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1116-SetPenSize_command10] -size_height =0 -size_width =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1116-DrawRect_command11] -rect_top =120 -rect_left =50 -rect_bottom =200 -rect_right =150 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1117-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1117-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1117-SetPenStyle_command06] -penstyle =ESolidPen - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1117-SetPenColor_command07] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1117-SetPenSize_command08] -size_height =2 -size_width =5 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1117-DrawRect_command09] -rect_top =10 -rect_left =10 -rect_bottom =110 -rect_right =90 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1117-SetPenColor_command10] -color_red =0 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1117-SetPenSize_command11] -size_height =0 -size_width =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1117-DrawRect_command12] -rect_top =10 -rect_left =110 -rect_bottom =110 -rect_right =190 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1117-SetPenColor_command13] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1117-SetPenSize_command14] -size_height =1 -size_width =1 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1117-DrawRect_command15] -rect_top =120 -rect_left =50 -rect_bottom =200 -rect_right =150 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1117-checkRectColor_command17] -rect1_top =10 -rect1_left =8 -rect1_bottom =110 -rect1_right =12 -expected1_red =255 -expected1_green =0 -expected1_blue =0 -rect2_top =10 -rect2_left =88 -rect2_bottom =110 -rect2_right =92 -expected2_red =255 -expected2_green =0 -expected2_blue =0 -rect3_top =10 -rect3_left =13 -rect3_bottom =11 -rect3_right =87 -expected3_red =255 -expected3_green =0 -expected3_blue =0 -rect4_top =109 -rect4_left =13 -rect4_bottom =110 -rect4_right =87 -expected4_red =255 -expected4_green =0 -expected4_blue =0 -rect5_top =10 -rect5_left =110 -rect5_bottom =110 -rect5_right =190 -expected5_red =255 -expected5_green =255 -expected5_blue =255 -rect6_top =120 -rect6_left =50 -rect6_bottom =200 -rect6_right =150 -expected6_red =255 -expected6_green =255 -expected6_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1121-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1121-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1121-SetBrushStyle_command06] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1121-SetBrushColor_command07] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1121-SetClippingRect_command08] -rect_top =0 -rect_left =0 -rect_bottom =120 -rect_right =120 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1121-DrawRect_command09] -rect_top =20 -rect_left =20 -rect_bottom =100 -rect_right =100 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1121-checkRectColor_command11] -rect1_top =21 -rect1_left =21 -rect1_bottom =99 -rect1_right =99 -expected1_red =255 -expected1_green =0 -expected1_blue =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1122-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1122-Activate_command05] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1122-Activate_command07] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1122-SetBrushStyle_command08] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1122-SetBrushColor_command09] -color_red =0 -color_green =255 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1122-SetClippingRect_command10] -rect_top =0 -rect_left =0 -rect_bottom =120 -rect_right =120 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1122-DrawRect_command11] -rect_top =130 -rect_left =130 -rect_bottom =180 -rect_right =180 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1122-checkRectColor_command13] -rect1_top =131 -rect1_left =131 -rect1_bottom =179 -rect1_right =179 -expected1_red =255 -expected1_green =255 -expected1_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1123-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1123-Activate_command05] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1123-Activate_command07] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1123-SetBrushStyle_command08] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1123-SetBrushColor_command09] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1123-SetClippingRect_command10] -rect_top =0 -rect_left =0 -rect_bottom =120 -rect_right =120 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1123-DrawRect_command11] -rect_top =100 -rect_left =100 -rect_bottom =150 -rect_right =150 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1123-checkRectColor_command13] -rect1_top =101 -rect1_left =101 -rect1_bottom =120 -rect1_right =120 -expected1_red =0 -expected1_green =0 -expected1_blue =255 -rect2_top =101 -rect2_left =122 -rect2_bottom =149 -rect2_right =149 -expected2_red =255 -expected2_green =255 -expected2_blue =255 -rect3_top =122 -rect3_left =101 -rect3_bottom =149 -rect3_right =119 -expected3_red =255 -expected3_green =255 -expected3_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1124-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1124-Activate_command05] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1124-Activate_command07] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1124-SetBrushStyle_command08] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1124-SetBrushColor_command09] -color_red =0 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1124-SetClippingRect_command10] -rect_top =120 -rect_left =120 -rect_bottom =0 -rect_right =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1124-DrawRect_command11] -rect_top =50 -rect_left =50 -rect_bottom =100 -rect_right =100 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1124-checkRectColor_command13] -rect1_top =50 -rect1_left =50 -rect1_bottom =100 -rect1_right =100 -expected1_red =255 -expected1_green =255 -expected1_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1125-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1125-Activate_command05] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1125-Activate_command07] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1125-SetBrushStyle_command08] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1125-SetBrushColor_command09] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1125-SetClippingRegion_command10] -region1_top =50 -region1_left =50 -region1_bottom =80 -region1_right =80 -region2_top =50 -region2_left =100 -region2_bottom =80 -region2_right =130 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1125-DrawRect_command11] -rect_top =30 -rect_left =30 -rect_bottom =100 -rect_right =120 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1125-checkRectColor_command13] -rect1_top =50 -rect1_left =50 -rect1_bottom =80 -rect1_right =80 -expected1_red =255 -expected1_green =0 -expected1_blue =0 -rect2_top =50 -rect2_left =100 -rect2_bottom =80 -rect2_right =119 -expected2_red =255 -expected2_green =0 -expected2_blue =0 -rect3_top =31 -rect3_left =31 -rect3_bottom =49 -rect3_right =119 -expected3_red =255 -expected3_green =255 -expected3_blue =255 -rect4_top =81 -rect4_left =31 -rect4_bottom =99 -rect4_right =119 -expected4_red =255 -expected4_green =255 -expected4_blue =255 -rect5_top =50 -rect5_left =31 -rect5_bottom =80 -rect5_right =49 -expected5_red =255 -expected5_green =255 -expected5_blue =255 -rect6_top =50 -rect6_left =121 -rect6_bottom =80 -rect6_right =129 -expected6_red =255 -expected6_green =255 -expected6_blue =255 - - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1126-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1126-Activate_command05] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1126-Activate_command07] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1126-SetBrushStyle_command08] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1126-SetBrushColor_command09] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1126-SetClippingRegion_command10] -region1_top =20 -region1_left =20 -region1_bottom =100 -region1_right =100 -region2_top =80 -region2_left =80 -region2_bottom =160 -region2_right =160 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1126-DrawRect_command11] -rect_top =60 -rect_left =60 -rect_bottom =120 -rect_right =120 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1126-checkRectColor_command13] -rect1_top =61 -rect1_left =61 -rect1_bottom =100 -rect1_right =100 -expected1_red =0 -expected1_green =0 -expected1_blue =255 -rect2_top =80 -rect2_left =80 -rect2_bottom =119 -rect2_right =119 -expected2_red =0 -expected2_green =0 -expected2_blue =255 -rect3_top =101 -rect3_left =61 -rect3_bottom =119 -rect3_right =79 -expected3_red =255 -expected3_green =255 -expected3_blue =255 -rect4_top =61 -rect4_left =101 -rect4_bottom =79 -rect4_right =119 -expected4_red =255 -expected4_green =255 -expected4_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1127-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1127-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1127-SetClippingRegion_command06] -region1_top =-1 -region1_left =-1 -region1_bottom =100 -region1_right =100 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1128-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1128-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1128-SetClippingRegion_command06] -region1_top =10 -region1_left =10 -region1_bottom =9999 -region1_right =9999 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1131-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1131-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1131-SetBrushStyle_command06] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1131-SetBrushColor_command07] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1131-SetFaded_command08] -faded =ETrue - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1131-SetFadingParameters_command09] -blackmap =255 -whitemap =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1131-DrawRect_command10] -rect_top =30 -rect_left =30 -rect_bottom =60 -rect_right =60 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1131-checkRectColor_command12] -rect1_top =31 -rect1_left =31 -rect1_bottom =59 -rect1_right =59 -expected1_red =255 -expected1_green =255 -expected1_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1132-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1132-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1132-SetBrushStyle_command06] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1132-SetBrushColor_command07] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1132-SetFaded_command08] -faded =EFalse - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1132-SetFadingParameters_command09] -blackmap =255 -whitemap =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1132-DrawRect_command10] -rect_top =30 -rect_left =30 -rect_bottom =60 -rect_right =60 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1132-checkRectColor_command12] -rect1_top =31 -rect1_left =31 -rect1_bottom =59 -rect1_right =59 -expected1_red =255 -expected1_green =0 -expected1_blue =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1133-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1133-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1133-SetBrushStyle_command06] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1133-SetBrushColor_command07] -color_red =0 -color_green =255 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1133-SetFaded_command08] -faded =ETrue - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1133-SetFadingParameters_command09] -blackmap =66 -whitemap =130 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1133-DrawRect_command10] -rect_top =30 -rect_left =30 -rect_bottom =60 -rect_right =60 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1133-checkRectColor_command12] -rect1_top =31 -rect1_left =31 -rect1_bottom =59 -rect1_right =59 -expected1_red =66 -expected1_green =130 -expected1_blue =66 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1134-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1134-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1134-SetBrushStyle_command06] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1134-SetBrushColor_command07] -color_red =0 -color_green =255 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1134-SetFaded_command08] -faded =ETrue - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1134-SetFadingParameters_command09] -blackmap =0 -whitemap =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1134-DrawRect_command10] -rect_top =30 -rect_left =30 -rect_bottom =60 -rect_right =60 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1134-checkRectColor_command12] -rect1_top =31 -rect1_left =31 -rect1_bottom =59 -rect1_right =59 -expected1_red =0 -expected1_green =255 -expected1_blue =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1135-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1135-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1135-SetBrushStyle_command06] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1135-SetBrushColor_command07] -color_red =255 -color_green =127 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1135-SetFaded_command08] -faded =ETrue - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1135-SetFadingParameters_command09] -blackmap =0 -whitemap =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1135-DrawRect_command10] -rect_top =30 -rect_left =30 -rect_bottom =60 -rect_right =60 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1135-checkRectColor_command12] -rect1_top =31 -rect1_left =31 -rect1_bottom =59 -rect1_right =59 -expected1_red =0 -expected1_green =0 -expected1_blue =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1136-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1136-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1136-SetBrushStyle_command06] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1136-SetBrushColor_command07] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1136-SetFaded_command08] -faded =ETrue - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1136-SetFadingParameters_command09] -blackmap =255 -whitemap =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1136-DrawRect_command10] -rect_top =30 -rect_left =30 -rect_bottom =60 -rect_right =60 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1136-checkRectColor_command12] -rect1_top =31 -rect1_left =31 -rect1_bottom =59 -rect1_right =59 -expected1_red =0 -expected1_green =255 -expected1_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1141-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1141-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1141-SetBrushStyle_command06] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1141-SetBrushColor_command07] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1141-SetDitherOrigin_command08] -point_x =3 -point_y =3 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1141-DrawPie_command09] -rect_top =40 -rect_left =40 -rect_bottom =160 -rect_right =120 -start_x =100 -start_y =60 -end_x =110 -end_y =120 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1142-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1142-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1142-SetBrushStyle_command06] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1142-SetBrushColor_command07] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1142-SetOrigin_command08] -point_x =100 -point_y =100 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1142-DrawRect_command09] -rect_top =0 -rect_left =0 -rect_bottom =60 -rect_right =80 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1142-checkRectColor_command10] -rect1_top =101 -rect1_left =101 -rect1_bottom =159 -rect1_right =179 -expected1_red =0 -expected1_green =0 -expected1_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1143-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1143-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1143-SetBrushStyle_command06] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1143-SetBrushColor_command07] -color_red =0 -color_green =255 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1143-SetOrigin_command08] -point_x =-50 -point_y =-50 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1143-DrawRect_command09] -rect_top =100 -rect_left =100 -rect_bottom =160 -rect_right =180 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1143-checkRectColor_command10] -rect1_top =51 -rect1_left =51 -rect1_bottom =109 -rect1_right =129 -expected1_red =0 -expected1_green =255 -expected1_blue =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1144-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1144-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1144-SetBrushStyle_command06] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1144-SetBrushColor_command07] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1144-SetOrigin_command08] -point_x =-50 -point_y =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1144-DrawRect_command09] -rect_top =0 -rect_left =0 -rect_bottom =60 -rect_right =100 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1144-SetOrigin_command10] -point_x =0 -point_y =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1144-DrawRect_command11] -rect_top =0 -rect_left =120 -rect_bottom =60 -rect_right =160 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1144-checkRectColor_command12] -rect1_top =1 -rect1_left =0 -rect1_bottom =59 -rect1_right =49 -expected1_red =255 -expected1_green =0 -expected1_blue =0 -rect2_top =0 -rect2_left =51 -rect2_bottom =60 -rect2_right =100 -expected2_red =255 -expected2_green =255 -expected2_blue =255 -rect3_top =1 -rect3_left =121 -rect3_bottom =59 -rect3_right =159 -expected3_red =255 -expected3_green =0 -expected3_blue =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1146-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1146-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1146-OrientationsAvailable_command06] - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1146-SetOrientation_command07] -orientation =EGraphicsOrientationRotated90 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1146-SetOrientation_command08] -orientation =EGraphicsOrientationRotated180 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1146-SetOrientation_command09] -orientation =EGraphicsOrientationRotated270 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1146-SetOrientation_command10] -orientation =EGraphicsOrientationNormal - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1147-SetOrientation_command07] -orientation =EGraphicsOrientationNormal - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1151-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1151-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1151-GetNearestFontToDesignHeightInPixels_command06] -font_height =20 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1151-UseFont_command07] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1151-SetStrikethroughStyle_command08] -fontstrikethrough=EStrikethroughOn - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1151-DrawText_command09] -point_x =20 -point_y =60 -text =This is a test! - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1151-SetStrikethroughStyle_command10] -fontstrikethrough=EStrikethroughOff - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1151-DrawText_command11] -point_x =20 -point_y =100 -text =This is a test! - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1151-ReleaseFont_command15] -font =font -disown =false - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1153-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1153-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1153-GetNearestFontToDesignHeightInPixels_command06] -font_height =20 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1153-UseFont_command07] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1153-SetStrikethroughStyle_command08] -fontunderline =EUnderlineOn - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1153-DrawText_command09] -point_x =20 -point_y =60 -text =This is a test! - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1153-SetStrikethroughStyle_command10] -fontunderline =EUnderlineOff - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1153-DrawText_command11] -point_x =20 -point_y =100 -text =This is a test! - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1153-ReleaseFont_command15] -font =font -disown =false - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1155-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1155-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1155-SetPenSize_command06] -size_height =2 -size_width =2 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1155-SetPenColor_command07] -color_red =255 -color_green =191 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1155-GetNearestFontToDesignHeightInPixels_command08] -font_height =20 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1155-UseFont_command09] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1155-DrawText_command10] -point_x =20 -point_y =60 -text =This is a test! - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1155-SetShadowMode_command11] -shadowmode =ETrue - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1155-DrawText_command12] -point_x =20 -point_y =100 -text =This is a test! - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1155-SetShadowMode_command13] -shadowmode =EFalse - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1155-DrawText_command14] -point_x =20 -point_y =140 -text =This is a test! - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1155-ReleaseFont_command18] -font =font -disown =false - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1156-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1156-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1156-GetNearestFontToDesignHeightInPixels_command06] -font_height =20 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1156-UseFont_command07] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1156-DrawText_command08] -point_x =20 -point_y =60 -text =This is a test! - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1156-SetCharJustification_command09] -excesswidth =30 -numchars =6 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1156-DrawText_command10] -point_x =20 -point_y =100 -text =This is a test! - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1156-SetCharJustification_command11] -excesswidth =-20 -numchars =6 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1156-DrawText_command12] -point_x =20 -point_y =140 -text =This is a test! - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1156-ReleaseFont_command16] -font =font -disown =false - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1157-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1157-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1157-GetNearestFontToDesignHeightInPixels_command06] -font_height =20 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1157-UseFont_command07] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1157-DrawText_command08] -point_x =20 -point_y =60 -text =This is a test! - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1157-SetCharJustification_command09] -excesswidth =0 -numchars =6 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1157-DrawText_command10] -point_x =20 -point_y =100 -text =This is a test! - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1157-SetCharJustification_command11] -excesswidth =20 -numchars =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1157-DrawText_command12] -point_x =20 -point_y =140 -text =This is a test! - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1157-SetCharJustification_command13] -excesswidth =0 -numchars =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1157-DrawText_command14] -point_x =20 -point_y =180 -text =This is a test! - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1157-ReleaseFont_command18] -font =font -disown =false - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1158-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1158-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1158-GetNearestFontToDesignHeightInPixels_command06] -font_height =20 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1158-UseFont_command07] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1158-SetWordJustification_command08] -excesswidth =20 -numgaps =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1158-DrawText_command09] -point_x =20 -point_y =60 -text =This is a test! - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1158-SetWordJustification_command10] -excesswidth =-10 -numgaps =2 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1158-DrawText_command11] -point_x =20 -point_y =100 -text =This is a test! - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1158-SetWordJustification_command12] -excesswidth =-20 -numgaps =-2 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1158-DrawText_command13] -point_x =20 -point_y =140 -text =This is a test! - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1158-SetWordJustification_command14] -excesswidth =20 -numgaps =2 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1158-DrawText_command15] -point_x =20 -point_y =180 -text =This is a test! - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1158-ReleaseFont_command19] -font =font -disown =false - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1161-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1161-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1161-SetBrushStyle_command06] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1161-SetBrushColor_command07] -color_red =100 -color_green =100 -color_blue =100 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1161-SetUserDisplayMode_command08] -displaymode =EGray2 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1161-DrawRect_command09] -rect_top =30 -rect_left =30 -rect_bottom =120 -rect_right =90 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1161-SetBrushColor_command10] -color_red =200 -color_green =200 -color_blue =200 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1161-DrawRect_command11] -rect_top =30 -rect_left =100 -rect_bottom =120 -rect_right =160 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1161-checkRectColor_command13] -rect1_top =31 -rect1_left =31 -rect1_bottom =119 -rect1_right =89 -expected1_red =0 -expected1_green =0 -expected1_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1161-checkRectColor_command14] -rect2_top =31 -rect2_left =101 -rect2_bottom =119 -rect2_right =159 -expected2_red =255 -expected2_green =255 -expected2_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1163-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1163-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1163-SetPenColor_command06] -color_red =0 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1163-SetBrushStyle_command07] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1163-SetBrushColor_command08] -color_red =0 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1163-DrawRect_command09] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =100 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1163-SetDrawMode_command10] -drawmode =EDrawModeAND - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1163-SetPenColor_command11] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1163-SetBrushColor_command12] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1163-DrawRect_command13] -rect_top =30 -rect_left =30 -rect_bottom =60 -rect_right =60 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1163-checkRectColor_command15] -rect1_top =30 -rect1_left =30 -rect1_bottom =60 -rect1_right =60 -expected1_red =0 -expected1_green =0 -expected1_blue =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1164-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1164-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1164-SetPenColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1164-SetBrushStyle_command07] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1164-SetBrushColor_command08] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1164-DrawRect_command09] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =100 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1164-SetDrawMode_command10] -drawmode =EDrawModeNOTAND - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1164-SetPenColor_command11] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1164-SetBrushColor_command12] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1164-DrawRect_command13] -rect_top =30 -rect_left =30 -rect_bottom =60 -rect_right =60 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1164-checkRectColor_command15] -rect1_top =30 -rect1_left =30 -rect1_bottom =60 -rect1_right =60 -expected1_red =0 -expected1_green =0 -expected1_blue =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1165-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1165-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1165-SetPenColor_command06] -color_red =0 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1165-SetBrushStyle_command07] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1165-SetBrushColor_command08] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1165-DrawRect_command09] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =100 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1165-SetDrawMode_command10] -drawmode =EDrawModePEN - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1165-SetPenColor_command11] -color_red =0 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1165-SetBrushColor_command12] -color_red =0 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1165-DrawRect_command13] -rect_top =30 -rect_left =30 -rect_bottom =60 -rect_right =60 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1165-checkRectColor_command15] -rect1_top =30 -rect1_left =30 -rect1_bottom =60 -rect1_right =60 -expected1_red =0 -expected1_green =0 -expected1_blue =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1166-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1166-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1166-SetPenColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1166-SetBrushStyle_command07] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1166-SetBrushColor_command08] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1166-DrawRect_command09] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =100 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1166-SetDrawMode_command10] -drawmode =EDrawModeANDNOT - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1166-SetPenColor_command11] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1166-SetBrushColor_command12] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1166-DrawRect_command13] -rect_top =30 -rect_left =30 -rect_bottom =60 -rect_right =60 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1166-checkRectColor_command15] -rect1_top =30 -rect1_left =30 -rect1_bottom =60 -rect1_right =60 -expected1_red =0 -expected1_green =0 -expected1_blue =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1167-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1167-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1167-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1167-SetBrushStyle_command07] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1167-SetBrushColor_command08] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1167-DrawRect_command09] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =100 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1167-SetDrawMode_command10] -drawmode =EDrawModeXOR - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1167-SetPenColor_command11] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1167-SetBrushColor_command12] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1167-DrawRect_command13] -rect_top =30 -rect_left =30 -rect_bottom =60 -rect_right =60 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1167-checkRectColor_command15] -rect1_top =30 -rect1_left =30 -rect1_bottom =60 -rect1_right =60 -expected1_red =0 -expected1_green =255 -expected1_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1168-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1168-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1168-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1168-SetBrushStyle_command07] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1168-SetBrushColor_command08] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1168-DrawRect_command09] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =100 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1168-SetDrawMode_command10] -drawmode =EDrawModeOR - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1168-SetPenColor_command11] -color_red =0 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1168-SetBrushColor_command12] -color_red =0 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1168-DrawRect_command13] -rect_top =30 -rect_left =30 -rect_bottom =60 -rect_right =60 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1168-checkRectColor_command15] -rect1_top =30 -rect1_left =30 -rect1_bottom =60 -rect1_right =60 -expected1_red =255 -expected1_green =0 -expected1_blue =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1169-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1169-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1169-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1169-SetBrushStyle_command07] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1169-SetBrushColor_command08] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1169-DrawRect_command09] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =100 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1169-SetDrawMode_command10] -drawmode =EDrawModeNOTANDNOT - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1169-SetPenColor_command11] -color_red =0 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1169-SetBrushColor_command12] -color_red =0 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1169-DrawRect_command13] -rect_top =30 -rect_left =30 -rect_bottom =60 -rect_right =60 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1169-checkRectColor_command15] -rect1_top =30 -rect1_left =30 -rect1_bottom =60 -rect1_right =60 -expected1_red =0 -expected1_green =255 -expected1_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1170-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1170-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1170-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1170-SetBrushStyle_command07] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1170-SetBrushColor_command08] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1170-DrawRect_command09] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =100 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1170-SetDrawMode_command10] -drawmode =EDrawModeNOTXOR - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1170-SetPenColor_command11] -color_red =0 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1170-SetBrushColor_command12] -color_red =0 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1170-DrawRect_command13] -rect_top =30 -rect_left =30 -rect_bottom =60 -rect_right =60 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1170-checkRectColor_command15] -rect1_top =30 -rect1_left =30 -rect1_bottom =60 -rect1_right =60 -expected1_red =0 -expected1_green =255 -expected1_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1171-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1171-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1171-SetPenColor_command06] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1171-SetBrushStyle_command07] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1171-SetBrushColor_command08] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1171-DrawRect_command09] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =100 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1171-SetDrawMode_command10] -drawmode =EDrawModeNOTSCREEN - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1171-SetPenColor_command11] -color_red =1 -color_green =2 -color_blue =3 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1171-SetBrushColor_command12] -color_red =3 -color_green =2 -color_blue =1 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1171-DrawRect_command13] -rect_top =30 -rect_left =30 -rect_bottom =60 -rect_right =60 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1171-checkRectColor_command15] -rect1_top =30 -rect1_left =30 -rect1_bottom =60 -rect1_right =60 -expected1_red =255 -expected1_green =255 -expected1_blue =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1172-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1172-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1172-SetPenColor_command06] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1172-SetBrushStyle_command07] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1172-SetBrushColor_command08] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1172-DrawRect_command09] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =100 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1172-SetDrawMode_command10] -drawmode =EDrawModeNOTOR - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1172-SetPenColor_command11] -color_red =0 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1172-SetBrushColor_command12] -color_red =0 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1172-DrawRect_command13] -rect_top =30 -rect_left =30 -rect_bottom =60 -rect_right =60 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1172-checkRectColor_command15] -rect1_top =30 -rect1_left =30 -rect1_bottom =60 -rect1_right =60 -expected1_red =255 -expected1_green =255 -expected1_blue =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1173-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1173-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1173-SetPenColor_command06] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1173-SetBrushStyle_command07] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1173-SetBrushColor_command08] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1173-DrawRect_command09] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =100 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1173-SetDrawMode_command10] -drawmode =EDrawModeNOTPEN - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1173-SetPenColor_command11] -color_red =0 -color_green =255 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1173-SetBrushColor_command12] -color_red =0 -color_green =255 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1173-DrawRect_command13] -rect_top =30 -rect_left =30 -rect_bottom =60 -rect_right =60 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1173-checkRectColor_command15] -rect1_top =30 -rect1_left =30 -rect1_bottom =60 -rect1_right =60 -expected1_red =255 -expected1_green =0 -expected1_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1174-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1174-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1174-SetPenColor_command06] -color_red =0 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1174-SetBrushStyle_command07] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1174-SetBrushColor_command08] -color_red =0 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1174-DrawRect_command09] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =100 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1174-SetDrawMode_command10] -drawmode =EDrawModeORNOT - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1174-SetPenColor_command11] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1174-SetBrushColor_command12] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1174-DrawRect_command13] -rect_top =30 -rect_left =30 -rect_bottom =60 -rect_right =60 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1174-checkRectColor_command15] -rect1_top =30 -rect1_left =30 -rect1_bottom =60 -rect1_right =60 -expected1_red =0 -expected1_green =0 -expected1_blue =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1175-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1175-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1175-SetPenColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1175-SetBrushStyle_command07] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1175-SetBrushColor_command08] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1175-DrawRect_command09] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =100 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1175-SetDrawMode_command10] -drawmode =EDrawModeNOTORNOT - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1175-SetPenColor_command11] -color_red =0 -color_green =255 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1175-SetBrushColor_command12] -color_red =0 -color_green =255 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1175-DrawRect_command13] -rect_top =30 -rect_left =30 -rect_bottom =60 -rect_right =60 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-1175-checkRectColor_command15] -rect1_top =30 -rect1_left =30 -rect1_bottom =60 -rect1_right =60 -expected1_red =255 -expected1_green =0 -expected1_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2321-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2321-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2321-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2321-SetBrushColor_command06] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2321-ShadowArea_command08] -region1_top =0 -region1_left =0 -region1_bottom =50 -region1_right =50 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2322-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2322-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2322-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2322-SetBrushColor_command06] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2322-ShadowArea_command08] -region1_top =0 -region1_left =0 -region1_bottom =50 -region1_right =50 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2323-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2323-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2323-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2323-SetBrushColor_command06] -color_red =0 -color_green =0 -color_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2331-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2331-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2331-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2331-SetBrushColor_command06] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2331-SetFadingParameters_command08] -blackmap =63 -whitemap =130 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2331-DrawRect_command09] -rect_top =0 -rect_left =0 -rect_bottom =50 -rect_right =50 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2331-FadeArea_command10] -region1_top =0 -region1_left =0 -region1_bottom =50 -region1_right =50 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2331-checkRectColor_command12] -rect1_top =1 -rect1_left =1 -rect1_bottom =49 -rect1_right =49 -expected1_red =57 -expected1_green =60 -expected1_blue =132 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2332-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2332-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2332-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2332-SetBrushColor_command06] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2332-FadeArea_command08] -region1_top =0 -region1_left =0 -region1_bottom =50 -region1_right =50 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2333-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2333-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2333-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2333-SetBrushColor_command06] -color_red =0 -color_green =0 -color_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2701-Load_command04] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2701-UseBrushPattern_command05] -bitmap =fbsBitmap - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2701-IsBrushPatternUsed_command06] -expected =TRUE - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2702-UseBrushPattern_command04] -bitmap =fbsBitmap - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2702-IsBrushPatternUsed_command05] -expected =TRUE - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2703-UseBrushPattern_command03] -bitmap =fbsBitmap - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2703-IsBrushPatternUsed_command04] -expected =TRUE - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2711-Load_command04] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2711-UseBrushPattern_command05] -usehandle =TRUE -bitmap =fbsBitmap - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2711-IsBrushPatternUsed_command06] -expected =TRUE - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2712-Load_command04] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2712-UseBrushPattern_command05] -usehandle =TRUE -bitmap =fbsBitmap - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2712-IsBrushPatternUsed_command06] -expected =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2712-UseBrushPattern_command07] -usehandle =TRUE -bitmap =fbsBitmap - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2713-UseBrushPattern_command05] -handle =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2721-GetNearestFontToDesignHeightInPixels_command04] -font_height ={default_fbserv,font_height} -font_name ={default_fbserv,alternate_font_name1} -font_data_object_name =fbsFont - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2721-UseFont_command05] -font =fbsFont - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2721-IsFontUsed_command06] -expected =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2721-ReleaseFont_command07] -font_data_object_name =fbsFont - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2722-GetNearestFontToDesignHeightInPixels_command04] -font_height ={default_fbserv,font_height} -font_name ={default_fbserv,alternate_font_name1} -font_data_object_name =fbsFont - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2722-UseFont_command05] -font =fbsFont -usehandle =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2722-IsFontUsed_command06] -expected =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2722-UseFont_command07] -font =fbsFont -usehandle =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2722-ReleaseFont_command08] -font_data_object_name =fbsFont - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2723-UseFont_command02] -handle =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2731-GetNearestFontToDesignHeightInPixels_command04] -font_height ={default_fbserv,font_height} -font_name ={default_fbserv,alternate_font_name1} -font_data_object_name =fbsFont - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2731-UseFontNoDuplicate_command05] -font =fbsFont - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2731-IsFontUsed_command06] -expected =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2731-ReleaseFont_command07] -font_data_object_name =fbsFont - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2732-GetNearestFontToDesignHeightInPixels_command04] -font_height ={default_fbserv,font_height} -font_name ={default_fbserv,alternate_font_name1} -font_data_object_name =fbsFont - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2732-UseFontNoDuplicate_command05] -font =fbsFont - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2732-IsFontUsed_command06] -expected =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2732-UseFontNoDuplicate_command07] -font =fbsFont - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2732-ReleaseFont_command08] -font_data_object_name =fbsFont - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2801-GetNearestFontToDesignHeightInPixels_command04] -font_height ={default_fbserv,font_height} -font_name ={default_fbserv,alternate_font_name1} -font_data_object_name =fbsFont - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2801-UseFont_command05] -font =fbsFont - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2801-IsFontUsed_command06] -expected =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2801-ReleaseFont_command07] -font_data_object_name =fbsFont - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2802-UseFont_command02] -font =fbsFont - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2901-Load_command04] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2901-IsBrushPatternUsed_command05] -expected =FALSE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2901-UseBrushPattern_command06] -bitmap =fbsBitmap - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2901-IsBrushPatternUsed_command07] -expected =TRUE - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2951-GetNearestFontToDesignHeightInPixels_command04] -font_height ={default_fbserv,font_height} -font_name ={default_fbserv,alternate_font_name1} -font_data_object_name =fbsFont - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2951-IsFontUsed_command05] -expected =FALSE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2951-UseFont_command06] -font =fbsFont - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2951-IsFontUsed_command07] -expected =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-2951-ReleaseFont_command08] -font_data_object_name =fbsFont - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3001-NewL_command06] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3001-Activate_command07] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3001-Load_command08] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3001-Load_command09] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3001-Load_command10] -bitmap_id =2 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3001-AlphaBlendBitmaps_command11] -srcbmp1 =fbsSrcBitmap1 -srcbmp2 =fbsSrcBitmap2 -alphabmp =alphaBitmap -destpt_x =0 -destpt_y =0 -srcrect_top =0 -srcrect_left =0 -srcrect_bottom =50 -srcrect_right =50 -srcpt_x =0 -srcpt_y =0 -alphapt_x =10 -alphapt_y =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3002-Load_command06] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3002-Load_command07] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3002-Load_command08] -bitmap_id =2 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3002-AlphaBlendBitmaps_command09] -srcbmp1 =fbsSrcBitmap1 -srcbmp2 =fbsSrcBitmap2 -alphabmp =alphaBitmap -destpt_x =60 -destpt_y =60 -srcrect_top =0 -srcrect_left =0 -srcrect_bottom =50 -srcrect_right =50 -srcpt_x =50 -srcpt_y =50 -alphapt_x =10 -alphapt_y =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3003-NewL_command06] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3003-Activate_command07] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3003-Load_command08] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3003-Load_command09] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3003-Load_command10] -bitmap_id =2 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3003-AlphaBlendBitmaps_command11] -srcbmp1 =fbsSrcBitmap1 -srcbmp2 =fbsSrcBitmap2 -alphabmp =alphaBitmap -destpt_x =10 -destpt_y =10 -srcrect_top =0 -srcrect_left =0 -srcrect_bottom =50 -srcrect_right =50 -srcpt_x =10 -srcpt_y =10 -alphapt_x =10 -alphapt_y =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3004-NewL_command05] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3004-Activate_command06] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3004-Load_command07] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3004-Load_command08] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3004-AlphaBlendBitmaps_command09] -srcbmp1 =fbsSrcBitmap1 -srcbmp2 =fbsSrcBitmap2 -alphabmp =alphaBitmap -destpt_x =10 -destpt_y =10 -srcrect_top =0 -srcrect_left =0 -srcrect_bottom =50 -srcrect_right =50 -srcpt_x =10 -srcpt_y =10 -alphapt_x =10 -alphapt_y =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3005-NewL_command05] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3005-Activate_command06] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3005-Load_command07] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3005-Load_command08] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3005-AlphaBlendBitmaps_command09] -srcbmp1 =fbsSrcBitmap1 -srcbmp2 =fbsSrcBitmap2 -alphabmp =alphaBitmap -destpt_x =10 -destpt_y =10 -srcrect_top =0 -srcrect_left =0 -srcrect_bottom =50 -srcrect_right =50 -srcpt_x =10 -srcpt_y =10 -alphapt_x =10 -alphapt_y =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3006-NewL_command05] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3006-Activate_command06] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3006-Load_command07] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3006-Load_command08] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3006-AlphaBlendBitmaps_command09] -srcbmp1 =fbsSrcBitmap1 -srcbmp2 =fbsSrcBitmap2 -alphabmp =alphaBitmap -destpt_x =10 -destpt_y =10 -srcrect_top =0 -srcrect_left =0 -srcrect_bottom =50 -srcrect_right =50 -srcpt_x =10 -srcpt_y =10 -alphapt_x =10 -alphapt_y =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3007-NewL_command06] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3007-Activate_command07] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3007-Load_command08] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3007-Load_command09] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3007-Load_command10] -bitmap_id =2 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3007-AlphaBlendBitmaps_command11] -srcbmp1 =fbsSrcBitmap1 -srcbmp2 =fbsSrcBitmap2 -alphabmp =alphaBitmap -destpt_x =10 -destpt_y =10 -srcrect_top =0 -srcrect_left =0 -srcrect_bottom =0 -srcrect_right =0 -srcpt_x =10 -srcpt_y =10 -alphapt_x =10 -alphapt_y =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3008-NewL_command06] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3008-Activate_command07] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3008-Load_command08] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3008-Load_command09] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3008-AlphaBlendBitmaps_command10] -srcbmp1 =fbsSrcBitmap1 -srcbmp2 =fbsSrcBitmap2 -alphabmp =alphaBitmap -destpt_x =10 -destpt_y =10 -srcrect_top =0 -srcrect_left =0 -srcrect_bottom =50 -srcrect_right =50 -srcpt_x =10 -srcpt_y =10 -alphapt_x =10 -alphapt_y =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3009-NewL_command06] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3009-Activate_command07] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3009-Load_command08] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3009-Load_command09] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3009-AlphaBlendBitmaps_command10] -srcbmp1 =fbsSrcBitmap1 -srcbmp2 =fbsSrcBitmap2 -alphabmp =alphaBitmap -destpt_x =10 -destpt_y =10 -srcrect_top =0 -srcrect_left =0 -srcrect_bottom =50 -srcrect_right =50 -srcpt_x =10 -srcpt_y =10 -alphapt_x =10 -alphapt_y =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3010-NewL_command06] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3010-Activate_command07] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3010-Load_command08] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3010-Load_command09] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3010-AlphaBlendBitmaps_command10] -srcbmp1 =fbsSrcBitmap1 -srcbmp2 =fbsSrcBitmap2 -alphabmp =alphaBitmap -destpt_x =10 -destpt_y =10 -srcrect_top =0 -srcrect_left =0 -srcrect_bottom =50 -srcrect_right =50 -srcpt_x =10 -srcpt_y =10 -alphapt_x =10 -alphapt_y =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3011-NewL_command06] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3011-Activate_command07] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3011-Load_command08] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3011-Load_command09] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3011-Load_command10] -bitmap_id =2 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3011-AlphaBlendBitmaps_command11] -srcbmp1 =fbsSrcBitmap1 -srcbmp2 =fbsSrcBitmap2 -alphabmp =alphaBitmap -destpt_x =0 -destpt_y =0 -srcrect_top =0 -srcrect_left =0 -srcrect_bottom =500 -srcrect_right =500 -srcpt_x =0 -srcpt_y =0 -alphapt_x =10 -alphapt_y =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3012-NewL_command06] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3012-Activate_command07] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3012-Load_command08] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3012-Load_command09] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3012-Load_command10] -bitmap_id =2 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3012-AlphaBlendBitmaps_command11] -srcbmp1 =fbsSrcBitmap1 -srcbmp2 =fbsSrcBitmap2 -alphabmp =alphaBitmap -destpt_x =-9000 -destpt_y =-9000 -srcrect_top =0 -srcrect_left =0 -srcrect_bottom =500 -srcrect_right =500 -srcpt_x =0 -srcpt_y =0 -alphapt_x =10 -alphapt_y =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3013-NewL_command06] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3013-Activate_command07] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3013-Load_command08] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3013-Load_command09] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3013-Load_command10] -bitmap_id =2 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3013-AlphaBlendBitmaps_command11] -srcbmp1 =fbsSrcBitmap1 -srcbmp2 =fbsSrcBitmap2 -alphabmp =alphaBitmap -destpt_x =0 -destpt_y =0 -srcrect_top =0 -srcrect_left =0 -srcrect_bottom =500 -srcrect_right =500 -srcpt_x =0 -srcpt_y =0 -alphapt_x =-10 -alphapt_y =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3014-NewL_command06] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3014-Activate_command07] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3014-Load_command08] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3014-Load_command09] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3014-Load_command10] -bitmap_id =2 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3014-AlphaBlendBitmaps_command11] -srcbmp1 =fbsSrcBitmap1 -srcbmp2 =fbsSrcBitmap2 -alphabmp =alphaBitmap -destpt_x =0 -destpt_y =0 -srcrect_top =0 -srcrect_left =0 -srcrect_bottom =500 -srcrect_right =500 -srcpt_x =0 -srcpt_y =0 -alphapt_x =10 -alphapt_y =-10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3037-NewL_command05] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3037-Activate_command06] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3037-Load_command07] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3037-Load_command08] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3037-AlphaBlendBitmaps_command09] -srcbmp =fbsSrcBitmap1 -alphabmp =alphaBitmap -destpt_x =60 -destpt_y =60 -srcrect_top =0 -srcrect_left =0 -srcrect_bottom =50 -srcrect_right =50 -alphapt_x =10 -alphapt_y =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3038-Load_command05] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3038-Load_command06] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3038-AlphaBlendBitmaps_command07] -srcbmp =fbsSrcBitmap1 -alphabmp =alphaBitmap -destpt_x =60 -destpt_y =60 -srcrect_top =0 -srcrect_left =0 -srcrect_bottom =50 -srcrect_right =50 -alphapt_x =10 -alphapt_y =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3039-NewL_command04] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3039-Activate_command05] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3039-Load_command06] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3039-AlphaBlendBitmaps_command07] -srcbmp =fbsSrcBitmap1 -alphabmp =alphaBitmap -destpt_x =0 -destpt_y =0 -srcrect_top =0 -srcrect_left =0 -srcrect_bottom =50 -srcrect_right =50 -alphapt_x =10 -alphapt_y =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3040-NewL_command05] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3040-Activate_command06] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3040-Load_command07] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3040-AlphaBlendBitmaps_command08] -srcbmp =fbsSrcBitmap1 -alphabmp =alphaBitmap -destpt_x =60 -destpt_y =60 -srcrect_top =0 -srcrect_left =0 -srcrect_bottom =50 -srcrect_right =50 -alphapt_x =10 -alphapt_y =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3041-NewL_command04] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3041-Activate_command05] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3041-Load_command06] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3041-AlphaBlendBitmaps_command07] -srcbmp =fbsSrcBitmap1 -alphabmp =alphaBitmap -destpt_x =60 -destpt_y =60 -srcrect_top =0 -srcrect_left =0 -srcrect_bottom =50 -srcrect_right =50 -alphapt_x =10 -alphapt_y =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3042-NewL_command05] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3042-Activate_command06] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3042-Load_command07] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3042-AlphaBlendBitmaps_command08] -srcbmp =fbsSrcBitmap1 -alphabmp =alphaBitmap -destpt_x =60 -destpt_y =60 -srcrect_top =0 -srcrect_left =0 -srcrect_bottom =50 -srcrect_right =50 -alphapt_x =10 -alphapt_y =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3043-NewL_command05] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3043-Activate_command06] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3043-Load_command07] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3043-Load_command08] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3043-AlphaBlendBitmaps_command09] -srcbmp =fbsSrcBitmap1 -alphabmp =alphaBitmap -destpt_x =60 -destpt_y =60 -srcrect_top =0 -srcrect_left =0 -srcrect_bottom =0 -srcrect_right =0 -alphapt_x =10 -alphapt_y =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3044-NewL_command05] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3044-Activate_command06] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3044-Load_command07] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3044-Load_command08] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3044-AlphaBlendBitmaps_command09] -srcbmp =fbsSrcBitmap1 -alphabmp =alphaBitmap -destpt_x =60 -destpt_y =60 -srcrect_top =0 -srcrect_left =0 -srcrect_bottom =8000 -srcrect_right =8000 -alphapt_x =10 -alphapt_y =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3045-NewL_command05] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3045-Activate_command06] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3045-Load_command07] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3045-Load_command08] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3045-SetClippingRect_command09] -rect_top =8000 -rect_left =8000 -rect_bottom =8005 -rect_right =8005 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3045-AlphaBlendBitmaps_command10] -srcbmp =fbsSrcBitmap1 -alphabmp =alphaBitmap -destpt_x =60 -destpt_y =60 -srcrect_top =-100 -srcrect_left =-100 -srcrect_bottom =-90 -srcrect_right =-90 -alphapt_x =10 -alphapt_y =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3046-NewL_command05] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3046-Activate_command06] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3046-Load_command07] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3046-Load_command08] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3046-AlphaBlendBitmaps_command09] -srcbmp =fbsSrcBitmap1 -alphabmp =alphaBitmap -destpt_x =60 -destpt_y =60 -srcrect_top =0 -srcrect_left =0 -srcrect_bottom =50 -srcrect_right =50 -alphapt_x =-10 -alphapt_y =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3047-NewL_command05] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3047-Activate_command06] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3047-Load_command07] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3047-Load_command08] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3047-AlphaBlendBitmaps_command09] -srcbmp =fbsSrcBitmap1 -alphabmp =alphaBitmap -destpt_x =60 -destpt_y =60 -srcrect_top =0 -srcrect_left =0 -srcrect_bottom =50 -srcrect_right =50 -alphapt_x =10 -alphapt_y =-10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3048-NewL_command05] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3048-Activate_command06] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3048-Load_command07] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3048-Load_command08] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3048-AlphaBlendBitmaps_command09] -srcbmp =fbsSrcBitmap1 -alphabmp =alphaBitmap -destpt_x =60 -destpt_y =60 -srcrect_top =0 -srcrect_left =0 -srcrect_bottom =50 -srcrect_right =50 -alphapt_x =0 -alphapt_y =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3049-NewL_command05] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3049-Activate_command06] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3049-Load_command07] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3049-Load_command08] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3049-AlphaBlendBitmaps_command09] -srcbmp =fbsSrcBitmap1 -alphabmp =alphaBitmap -destpt_x =60 -destpt_y =60 -srcrect_top =0 -srcrect_left =0 -srcrect_bottom =50 -srcrect_right =50 -alphapt_x =0 -alphapt_y =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3071-new_command05] -ws =wsSession - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3071-new_command06] -ws =wsSession - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3071-NewL_command07] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3071-Activate_command08] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3071-Load_command09] -id =0 -filename =\graphics\bitgdi\test_rwssprite_bitmap.mbm -shareifloaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3071-Load_command10] -id =1 -filename =\graphics\bitgdi\test_rwssprite_bitmap.mbm -shareifloaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3071-AlphaBlendBitmaps_command11] -srcwsbmp =wsBitmap -alphabmp =alphaBitmap -destpt_x =60 -destpt_y =60 -srcrect_top =0 -srcrect_left =0 -srcrect_bottom =50 -srcrect_right =50 -alphapt_x =10 -alphapt_y =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3072-new_command04] -ws =wsSession - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3072-new_command05] -ws =wsSession - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3072-Load_command06] -id =0 -filename =\graphics\bitgdi\test_rwssprite_bitmap.mbm -shareifloaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3072-Load_command07] -id =1 -filename =\graphics\bitgdi\test_rwssprite_bitmap.mbm -shareifloaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-3072-AlphaBlendBitmaps_command08] -srcwsbmp =wsBitmap -alphabmp =alphaBitmap -destpt_x =60 -destpt_y =60 -srcrect_top =0 -srcrect_left =0 -srcrect_bottom =50 -srcrect_right =50 -alphapt_x =10 -alphapt_y =10 - - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/bitgdi/testdata/GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual.ini --- a/graphicsapitest/graphicssvs/bitgdi/testdata/GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual.ini Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,447 +0,0 @@ -[include] -file1=\graphics\t_graphics.ini - - -[fbsSession] -name=fbs - -[wsSession] -name=ws - -[fbsBitGc] -name=bitgc - -[fbsBitGc2] -name=bitgc2 - -[fbsFont] -name=fbsfnt - -[font] -name=font - -[fbsBitmap] -name=fbsBitmap - -[fbsMaskBitmap] -name=fbsmaskbmp - -[wsBitmap] -name=wsbmp - -[wsMaskBitmap] -name=wsmaskbmp - -[fbsSrcBitmap1] -name=fbssrcbmp1 - -[fbsSrcBitmap2] -name=fbssrcbmp2 - -[alphaBitmap] -name=alphabmp - -[fbsScrDev] -name=scrdev - -[wsScrDev] -name=wsscrdev - -[fbsTypefaceStore] -name=fbstfs - - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0001-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0001-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0001-SetPenSize_command06] -size_height =2 -size_width =2 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0001-SetPenColor_command07] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0001-Plot_command08] -point_x =100 -point_y =100 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0001-checkPixels_command11] -pixel1_x =100 -pixel1_y =100 -expected1_red =255 -expected1_green =0 -expected1_blue =0 -pixel2_x =100 -pixel2_y =101 -expected2_red =255 -expected2_green =0 -expected2_blue =0 -pixel3_x =101 -pixel3_y =100 -expected3_red =255 -expected3_green =0 -expected3_blue =0 -pixel4_x =101 -pixel4_y =101 -expected4_red =255 -expected4_green =0 -expected4_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0001-PromptMessage_command12] -message =A red point is drawn; Press key '1' to confirm, if not press any key else! -keyCode =49 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0002-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0002-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0002-SetPenSize_command06] -size_height =2 -size_width =2 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0002-SetPenColor_command07] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0002-Plot_command08] -point_x =100 -point_y =30 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0002-SetPenColor_command09] -color_red =0 -color_green =255 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0002-Plot_command10] -point_x =50 -point_y =70 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0002-Plot_command11] -point_x =150 -point_y =70 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0002-SetPenColor_command12] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0002-Plot_command13] -point_x =75 -point_y =120 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0002-Plot_command14] -point_x =125 -point_y =120 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0002-checkPixels_command17] -pixel1_x =100 -pixel1_y =30 -expected1_red =255 -expected1_green =0 -expected1_blue =0 -pixel2_x =50 -pixel2_y =70 -expected2_red =0 -expected2_green =255 -expected2_blue =0 -pixel3_x =150 -pixel3_y =70 -expected3_red =0 -expected3_green =255 -expected3_blue =0 -pixel4_x =75 -pixel4_y =120 -expected4_red =0 -expected4_green =0 -expected4_blue =255 -pixel5_x =125 -pixel5_y =120 -expected5_red =0 -expected5_green =0 -expected5_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0002-PromptMessage_command18] -message =Five (red, green, blue) points are drawn; Press key '1' to confirm, if not press any key else! -keyCode =49 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0003-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0003-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0003-SetPenSize_command06] -size_height =1 -size_width =1 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0003-SetPenColor_command07] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0003-DrawLine_command08] -point1_x =20 -point1_y =100 -point2_x =120 -point2_y =100 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0003-checkLineColor_command11] -start1_x =20 -start1_y =100 -finish1_x =120 -finish1_y =100 -expected1_red =255 -expected1_green =0 -expected1_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0003-PromptMessage_command12] -message =A red straight line is drawn; Press key '1' to confirm, if not press any key else! -keyCode =49 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0004-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0004-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0004-SetPenSize_command06] -size_height =1 -size_width =1 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0004-SetPenColor_command07] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0004-DrawLine_command08] -point1_x =80 -point1_y =20 -point2_x =80 -point2_y =100 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0004-SetPenColor_command09] -color_red =0 -color_green =255 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0004-DrawLine_command10] -point1_x =20 -point1_y =20 -point2_x =60 -point2_y =100 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0004-SetPenColor_command11] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0004-DrawLine_command12] -point1_x =120 -point1_y =20 -point2_x =100 -point2_y =100 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0004-checkLineColor_command15] -start1_x =80 -start1_y =20 -finish1_x =80 -finish1_y =100 -expected1_red =255 -expected1_green =0 -expected1_blue =0 -start2_x =20 -start2_y =20 -finish2_x =60 -finish2_y =100 -expected2_red =0 -expected2_green =255 -expected2_blue =0 -start3_x =120 -start3_y =20 -finish3_x =100 -finish3_y =100 -expected3_red =0 -expected3_green =0 -expected3_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0004-PromptMessage_command16] -message =Three (red, green, blue) lines are drawn; Press key '1' to confirm, if not press any key else! -keyCode =49 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0005-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0005-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0005-Load_command06] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0005-SetSizeInTwips_command07] -height =1000 -width =1000 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0005-DrawBitmap_command09] -bitmap =fbsBitmap -topleft_x =20 -topleft_y =20 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0005-PromptMessage_command12] -message =A bitmap is drawn; Press key '1' to confirm, if not press any key else! -keyCode =49 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0006-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0006-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0006-Load_command06] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0006-DrawBitmap_command08] -bitmap =fbsBitmap -destrect_top =0 -destrect_left =0 -destrect_bottom =100 -destrect_right =120 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0006-DrawBitmap_command09] -bitmap =fbsBitmap -destrect_top =110 -destrect_left =50 -destrect_bottom =130 -destrect_right =70 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0006-PromptMessage_command12] -message =Two bitmaps are drawn; Press key '1' to confirm, if not press any key else! -keyCode =49 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0007-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0007-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0007-SetPenColor_command06] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0007-GetNearestFontToDesignHeightInPixels_command07] -font_height =30 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0007-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0007-DrawText_command09] -point_x =20 -point_y =50 -text =This is a test! - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0007-PromptMessage_command12] -message =A line of red text is drawn; Press key '1' to confirm, if not press any key else! -keyCode =49 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0007-ReleaseFont_command14] -font =font -disown =false - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0008-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0008-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0008-SetPenColor_command06] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0008-GetNearestFontToDesignHeightInPixels_command07] -font_height =20 -font_name =Arial -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0008-UseFont_command08] -font =font - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0008-DrawTextVertical_command09] -point_x =20 -point_y =20 -text =This is a test! -up =EFalse - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0008-DrawTextVertical_command10] -point_x =100 -point_y =200 -text =This is a test! -up =ETrue - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0008-PromptMessage_command12] -message =Two lines of blue text are drawn vertically; Press key '1' to confirm, if not press any key else! -keyCode =49 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0008-ReleaseFont_command14] -font =font -disown =false - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0009-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0009-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0009-SetBrushStyle_command06] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0009-SetBrushColor_command07] -color_red =0 -color_green =255 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0009-DrawEllipse_command08] -rect_top =20 -rect_left =20 -rect_bottom =100 -rect_right =160 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-manual-0009-PromptMessage_command12] -message =An green ellipse is drawn; Press key '1' to confirm, if not press any key else! -keyCode =49 - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/bitgdi/testdata/GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini --- a/graphicsapitest/graphicssvs/bitgdi/testdata/GRAPHICS-BITGDI-FbsBitGc-PublicApi.ini Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,4613 +0,0 @@ -[include] -file1 =\graphics\t_graphics.ini - - -[fbsSession] -name =fbs - -[wsSession] -name =ws - -[fbsBitGc] -name =bitgc - -[fbsBitGc2] -name =bitgc2 - -[fbsFont] -name =bitfnt - -[fbsBitmap] -name =fbsbmp - -[fbsMaskBitmap] -name =fbsmaskbmp - -[wsBitmap] -name =wsbmp - -[wsMaskBitmap] -name =wsmaskbmp - -[fbsSrcBitmap1] -name =fbssrcbmp1 - -[fbsSrcBitmap2] -name =fbssrcbmp2 - -[alphaBitmap] -name =alphabmp - -[fbsScrDev] -name =scrdev - -[wsScrDev] -name =wsscrdev - -[fbsTypefaceStore] -name =fbstfs - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0003-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0003-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0004-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0004-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0004-Activate_command05] -device =fbsScrDev - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0005-Activate_command02] -device =fbsScrDev - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0006-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0006-ActivateNoJustAutoUpdate_command04] -device =fbsScrDev - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0007-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0007-ActivateNoJustAutoUpdate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0007-ActivateNoJustAutoUpdate_command05] -device =fbsScrDev - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0008-ActivateNoJustAutoUpdate_command02] -device =fbsScrDev - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0011-NewL_command04] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0011-Activate_command05] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0011-Activate_command07] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0011-SetBrushColor_command09] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0011-SetBrushStyle_command10] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0011-SetPenColor_command11] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0011-DrawRect_command12] -rect_top =0 -rect_left =0 -rect_bottom =40 -rect_right =40 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0011-SetClippingRegion_command13] -region1_top =50 -region1_left =50 -region1_bottom =90 -region1_right =90 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0011-BitBlt_command14] -point_x =50 -point_y =50 -fbsBitGc =fbsBitGc - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0011-checkRectColor_command15] -rect1_top =50 -rect1_left =50 -rect1_bottom =90 -rect1_right =90 -expected1_red =255 -expected1_green =0 -expected1_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0011-checkPixels_command16] -pixel1_x =45 -pixel1_y =45 -expected1_red =255 -expected1_green =255 -expected1_blue =255 -pixel2_x =110 -pixel2_y =110 -expected2_red =255 -expected2_green =255 -expected2_blue =255 -pixel3_x =40 -pixel3_y =100 -expected3_red =255 -expected3_green =255 -expected3_blue =255 -pixel4_x =80 -pixel4_y =40 -expected4_red =255 -expected4_green =255 -expected4_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0012-NewL_command04] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0012-Activate_command05] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0012-SetBrushColor_command06] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0012-SetBrushStyle_command07] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0012-SetPenColor_command08] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0012-DrawRect_command09] -rect_top =0 -rect_left =0 -rect_bottom =40 -rect_right =40 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0012-BitBlt_command10] -point_x =50 -point_y =50 -fbsBitGc =fbsBitGc - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0013-NewL_command04] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0013-Activate_command05] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0013-Activate_command07] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0013-SetBrushColor_command09] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0013-SetBrushStyle_command10] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0013-SetPenColor_command11] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0013-DrawRect_command12] -rect_top =0 -rect_left =0 -rect_bottom =40 -rect_right =40 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0013-BitBlt_command13] -point_x =50 -point_y =50 -fbsBitGc =fbsBitGc -srcrect_top =0 -srcrect_left =0 -srcrect_bottom =80 -srcrect_right =80 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0013-checkRectColor_command14] -rect1_top =50 -rect1_left =50 -rect1_bottom =90 -rect1_right =90 -expected1_red =255 -expected1_green =0 -expected1_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0013-checkPixels_command15] -pixel1_x =45 -pixel1_y =45 -expected1_red =255 -expected1_green =255 -expected1_blue =255 -pixel2_x =150 -pixel2_y =150 -expected2_red =255 -expected2_green =255 -expected2_blue =255 -pixel3_x =40 -pixel3_y =100 -expected3_red =255 -expected3_green =255 -expected3_blue =255 -pixel4_x =80 -pixel4_y =40 -expected4_red =255 -expected4_green =255 -expected4_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0014-NewL_command04] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0014-Activate_command05] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0014-Activate_command06] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0014-SetBrushColor_command07] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0014-SetBrushStyle_command08] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0014-SetPenColor_command09] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0014-DrawRect_command10] -rect_top =0 -rect_left =0 -rect_bottom =40 -rect_right =40 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0014-BitBlt_command11] -point_x =50 -point_y =50 -fbsBitGc =fbsBitGc -srcrect_top =0 -srcrect_left =0 -srcrect_bottom =0 -srcrect_right =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0015-NewL_command04] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0015-Activate_command05] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0015-BitBlt_command06] -point_x =50 -point_y =50 -fbsBitGc =fbsBitGc -srcrect_top =0 -srcrect_left =0 -srcrect_bottom =100 -srcrect_right =100 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0016-NewL_command04] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0016-Activate_command05] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0016-Activate_command06] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0016-SetBrushColor_command07] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0016-SetBrushStyle_command08] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0016-SetPenColor_command09] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0016-DrawRect_command10] -rect_top =0 -rect_left =0 -rect_bottom =40 -rect_right =40 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0016-BitBlt_command11] -point_x =50 -point_y =50 -fbsBitGc =fbsBitGc -srcrect_top =8000 -srcrect_left =8000 -srcrect_bottom =8010 -srcrect_right =8010 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0017-NewL_command04] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0017-Activate_command05] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0017-Activate_command06] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0017-SetBrushColor_command07] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0017-SetBrushStyle_command08] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0017-SetPenColor_command09] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0017-DrawRect_command10] -rect_top =0 -rect_left =0 -rect_bottom =40 -rect_right =40 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0017-BitBlt_command11] -point_x =8000 -point_y =8000 -fbsBitGc =fbsBitGc -srcrect_top =0 -srcrect_left =0 -srcrect_bottom =40 -srcrect_right =40 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0018-NewL_command04] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0018-Activate_command05] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0018-Activate_command07] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0018-SetBrushColor_command09] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0018-SetBrushStyle_command10] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0018-SetPenColor_command11] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0018-DrawRect_command12] -rect_top =0 -rect_left =0 -rect_bottom =40 -rect_right =40 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0018-SetClippingRegion_command13] -region1_top =50 -region1_left =50 -region1_bottom =90 -region1_right =90 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0018-SetDrawMode_command14] -drawmode =EDrawModeWriteAlpha - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0018-BitBlt_command15] -point_x =50 -point_y =50 -fbsBitGc =fbsBitGc - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0018-checkRectColor_command16] -rect1_top =50 -rect1_left =50 -rect1_bottom =90 -rect1_right =90 -expected1_red =255 -expected1_green =0 -expected1_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0018-checkPixels_command17] -pixel1_x =45 -pixel1_y =45 -expected1_red =255 -expected1_green =255 -expected1_blue =255 -pixel2_x =110 -pixel2_y =110 -expected2_red =255 -expected2_green =255 -expected2_blue =255 -pixel3_x =40 -pixel3_y =100 -expected3_red =255 -expected3_green =255 -expected3_blue =255 -pixel4_x =80 -pixel4_y =40 -expected4_red =255 -expected4_green =255 -expected4_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0022-NewL_command04] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0022-Activate_command05] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0022-Load_command06] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0022-BitBlt_command07] -bitmap =fbsBitmap -point_x =10 -point_y =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0023-NewL_command04] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0023-Load_command05] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0023-BitBlt_command06] -bitmap =fbsBitmap -point_x =10 -point_y =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0024-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0024-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0024-BitBlt_command05] -bitmap =fbsBitmap -point_x =10 -point_y =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0026-NewL_command04] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0026-Activate_command05] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0026-Load_command06] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0026-BitBlt_command07] -bitmap =fbsBitmap -destination_x =10 -destination_y =10 -source_top =10 -source_left =10 -source_bottom =30 -source_right =30 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0027-NewL_command04] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0027-Activate_command05] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0027-BitBlt_command06] -bitmap =fbsBitmap -destination_x =10 -destination_y =10 -source_top =10 -source_left =10 -source_bottom =30 -source_right =30 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0028-NewL_command04] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0028-Activate_command05] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0028-Load_command06] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0028-BitBlt_command07] -bitmap =fbsBitmap -destination_x =10 -destination_y =10 -source_top =10 -source_left =10 -source_bottom =10 -source_right =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0029-NewL_command04] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0029-Activate_command05] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0029-Load_command06] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0029-BitBlt_command07] -bitmap =fbsBitmap -destination_x =10 -destination_y =10 -source_top =-100 -source_left =-100 -source_bottom =-110 -source_right =-110 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0030-NewL_command04] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0030-Activate_command05] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0030-Load_command06] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0030-BitBlt_command07] -bitmap =fbsBitmap -destination_x =8000 -destination_y =8000 -source_top =100 -source_left =100 -source_bottom =110 -source_right =110 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0031-NewL_command04] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0031-Activate_command05] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0031-SetClippingRect_command06] -rect_top =8000 -rect_left =8000 -rect_bottom =8005 -rect_right =8005 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0031-Load_command07] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0031-BitBlt_command08] -bitmap =fbsBitmap -destination_x =10 -destination_y =10 -source_top =100 -source_left =100 -source_bottom =110 -source_right =110 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0032-Load_command04] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0032-BitBlt_command05] -bitmap =fbsBitmap -destination_x =10 -destination_y =10 -source_top =100 -source_left =100 -source_bottom =110 -source_right =110 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0033-NewL_command04] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0033-Activate_command05] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0033-new_command09] -ws =wsSession - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0033-Construct_command10] -defaultscreennumber ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0033-RectCompare_command11] -rect1_top =0 -rect1_left =0 -rect1_bottom =80 -rect1_right =80 -rect2_top =0 -rect2_left =80 -rect2_bottom =80 -rect2_right =160 -expected =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0033-Load_command12] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0033-BitBlt_command13] -bitmap =fbsBitmap -destination_x =10 -destination_y =10 -source_top =10 -source_left =10 -source_bottom =30 -source_right =30 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0033-RectCompare_command14] -rect1_top =0 -rect1_left =0 -rect1_bottom =80 -rect1_right =80 -rect2_top =0 -rect2_left =80 -rect2_bottom =80 -rect2_right =160 -expected =FALSE - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0042-NewL_command05] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0042-Activate_command06] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0042-Load_command07] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0042-Load_command08] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0042-BitBltMasked_command09] -point_x =0 -point_y =0 -sourcerect_top =0 -sourcerect_left =0 -sourcerect_bottom =50 -sourcerect_right =50 -invertmask =TRUE -bitmap =fbsBitmap -maskbitmap =fbsMaskBitmap - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0043-NewL_command04] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0043-Activate_command05] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0043-Load_command06] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0043-BitBltMasked_command07] -point_x =0 -point_y =0 -sourcerect_top =0 -sourcerect_left =0 -sourcerect_bottom =50 -sourcerect_right =50 -invertmask =TRUE -bitmap =fbsBitmap -maskbitmap =fbsMaskBitmap - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0044-NewL_command05] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0044-Activate_command06] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0044-Load_command07] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0044-BitBltMasked_command08] -point_x =0 -point_y =0 -sourcerect_top =0 -sourcerect_left =0 -sourcerect_bottom =50 -sourcerect_right =50 -invertmask =TRUE -bitmap =fbsBitmap -maskbitmap =fbsMaskBitmap - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0045-NewL_command04] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0045-Activate_command05] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0045-Load_command06] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0045-BitBltMasked_command07] -point_x =0 -point_y =0 -sourcerect_top =0 -sourcerect_left =0 -sourcerect_bottom =50 -sourcerect_right =50 -invertmask =TRUE -bitmap =fbsBitmap -maskbitmap =fbsMaskBitmap - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0046-NewL_command05] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0046-Activate_command06] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0046-Load_command07] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0046-BitBltMasked_command08] -point_x =0 -point_y =0 -sourcerect_top =0 -sourcerect_left =0 -sourcerect_bottom =50 -sourcerect_right =50 -invertmask =TRUE -bitmap =fbsBitmap -maskbitmap =fbsMaskBitmap - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0047-NewL_command05] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0047-Activate_command06] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0047-Load_command07] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0047-Load_command08] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0047-BitBltMasked_command09] -point_x =0 -point_y =0 -sourcerect_top =0 -sourcerect_left =0 -sourcerect_bottom =0 -sourcerect_right =0 -invertmask =TRUE -bitmap =fbsBitmap -maskbitmap =fbsMaskBitmap - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0048-NewL_command05] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0048-Activate_command06] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0048-Load_command07] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0048-Load_command08] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0048-BitBltMasked_command09] -point_x =0 -point_y =0 -sourcerect_top =-1000 -sourcerect_left =-1000 -sourcerect_bottom =-990 -sourcerect_right =-990 -invertmask =TRUE -bitmap =fbsBitmap -maskbitmap =fbsMaskBitmap - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0049-NewL_command05] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0049-Activate_command06] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0049-Load_command07] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0049-Load_command08] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0049-BitBltMasked_command09] -point_x =-9000 -point_y =-9000 -sourcerect_top =0 -sourcerect_left =0 -sourcerect_bottom =90 -sourcerect_right =90 -invertmask =TRUE -bitmap =fbsBitmap -maskbitmap =fbsMaskBitmap - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0050-NewL_command04] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0050-Activate_command05] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0050-Load_command06] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0050-BitBltMasked_command07] -point_x =0 -point_y =0 -sourcerect_top =0 -sourcerect_left =0 -sourcerect_bottom =90 -sourcerect_right =90 -invertmask =TRUE -bitmap =fbsBitmap -maskbitmap =fbsBitmap - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0051-NewL_command05] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0051-Activate_command06] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0051-Load_command07] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0051-Load_command08] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0051-Resize_command09] -height =8000 -width =10 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0051-BitBltMasked_command10] -point_x =0 -point_y =0 -sourcerect_top =0 -sourcerect_left =0 -sourcerect_bottom =50 -sourcerect_right =50 -invertmask =TRUE -bitmap =fbsBitmap -maskbitmap =fbsMaskBitmap - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0052-NewL_command05] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0052-Activate_command06] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0052-Load_command07] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0052-Load_command08] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0052-Resize_command09] -height =10 -width =8000 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0052-BitBltMasked_command10] -point_x =0 -point_y =0 -sourcerect_top =0 -sourcerect_left =0 -sourcerect_bottom =50 -sourcerect_right =50 -invertmask =TRUE -bitmap =fbsBitmap -maskbitmap =fbsMaskBitmap - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0091-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0091-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0091-SetClippingRect_command05] -rect_top =10 -rect_left =10 -rect_bottom =30 -rect_right =30 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0091-SetClippingRegion_command06] -region1_top =30 -region1_left =30 -region1_bottom =50 -region1_right =50 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0092-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0092-Activate_command04] -device =fbsScrDev - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0094-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0094-Activate_command04] -device =fbsScrDev - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0096-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0096-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0096-SetBrushColor_command05] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0096-checkPixels_command07] -pixel1_x =45 -pixel1_y =45 -expected1_red =255 -expected1_green =0 -expected1_blue =0 -pixel2_x =110 -pixel2_y =110 -expected2_red =255 -expected2_green =0 -expected2_blue =0 -pixel3_x =40 -pixel3_y =100 -expected3_red =255 -expected3_green =0 -expected3_blue =0 -pixel4_x =80 -pixel4_y =40 -expected4_red =255 -expected4_green =0 -expected4_blue =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0097-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0097-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0097-SetBrushColor_command05] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0097-SetOrigin_command06] -point_x =0 -point_y =10 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0097-checkPixels_command08] -pixel1_x =0 -pixel1_y =5 -expected1_red =255 -expected1_green =0 -expected1_blue =0 -pixel2_x =110 -pixel2_y =110 -expected2_red =255 -expected2_green =0 -expected2_blue =0 -pixel3_x =40 -pixel3_y =100 -expected3_red =255 -expected3_green =0 -expected3_blue =0 -pixel4_x =80 -pixel4_y =40 -expected4_red =255 -expected4_green =0 -expected4_blue =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0098-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0098-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0098-SetBrushColor_command05] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0098-SetOrigin_command06] -point_x =10 -point_y =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0098-checkPixels_command08] -pixel1_x =5 -pixel1_y =0 -expected1_red =255 -expected1_green =0 -expected1_blue =0 -pixel2_x =110 -pixel2_y =110 -expected2_red =255 -expected2_green =0 -expected2_blue =0 -pixel3_x =40 -pixel3_y =100 -expected3_red =255 -expected3_green =0 -expected3_blue =0 -pixel4_x =80 -pixel4_y =40 -expected4_red =255 -expected4_green =0 -expected4_blue =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0099-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0099-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0099-SetBrushColor_command05] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0099-Clear_command06] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =100 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0099-checkPixels_command08] -pixel1_x =5 -pixel1_y =0 -expected1_red =255 -expected1_green =0 -expected1_blue =0 -pixel2_x =90 -pixel2_y =90 -expected2_red =255 -expected2_green =0 -expected2_blue =0 -pixel3_x =40 -pixel3_y =90 -expected3_red =255 -expected3_green =0 -expected3_blue =0 -pixel4_x =80 -pixel4_y =40 -expected4_red =255 -expected4_green =0 -expected4_blue =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0100-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0100-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0100-SetBrushColor_command05] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0100-Clear_command06] -rect_top =100 -rect_left =100 -rect_bottom =100 -rect_right =100 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0101-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0101-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0101-SetBrushColor_command05] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0101-Clear_command06] -rect_top =8000 -rect_left =8000 -rect_bottom =8008 -rect_right =8008 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0102-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0102-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0102-SetBrushColor_command05] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0102-SetClippingRect_command06] -rect_top =120 -rect_left =120 -rect_bottom =50 -rect_right =50 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0102-Clear_command07] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =100 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0103-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0103-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0103-CopyRect_command05] -offset_x =10 -offset_y =10 -rect_top =0 -rect_left =0 -rect_bottom =50 -rect_right =50 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0104-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0104-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0104-CopyRect_command05] -offset_x =10 -offset_y =10 -rect_top =0 -rect_left =0 -rect_bottom =0 -rect_right =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0105-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0105-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0105-CopyRect_command05] -offset_x =0 -offset_y =0 -rect_top =10 -rect_left =10 -rect_bottom =50 -rect_right =50 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0106-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0106-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0106-CopyRect_command05] -offset_x =5 -offset_y =5 -rect_top =8000 -rect_left =8000 -rect_bottom =8050 -rect_right =8050 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0107-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0107-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0107-SetClippingRect_command05] -rect_top =10 -rect_left =10 -rect_bottom =30 -rect_right =30 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0107-CopyRect_command06] -offset_x =5 -offset_y =5 -rect_top =40 -rect_left =40 -rect_bottom =50 -rect_right =50 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0111-NewL_command04] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0111-Activate_command05] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0111-Activate_command06] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0111-CopySettings_command07] -fbsBitGc =fbsBitGc2 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0112-NewL_command05] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0112-Activate_command06] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0112-GetNearestFontToDesignHeightInPixels_command07] -font_height ={default_fbserv,font_height} -font_name ={default_fbserv,alternate_font_name1} -font_data_object_name =fbsFont - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0112-UseFont_command08] -font =fbsFont - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0112-Activate_command09] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0112-CopySettings_command10] -fbsBitGc =fbsBitGc2 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0113-NewL_command05] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0113-Activate_command06] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0113-Load_command07] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0113-UseBrushPattern_command08] -bitmap =fbsBitmap - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0113-Activate_command09] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0113-CopySettings_command10] -fbsBitGc =fbsBitGc2 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0114-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0114-Activate_command04] -device =fbsScrDev - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0116-Load_command04] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0116-UseBrushPattern_command05] -bitmap =fbsBitmap - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0116-IsBrushPatternUsed_command06] -expected =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0116-IsBrushPatternUsed_command08] -expected =FALSE - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0118-SetBrushStyle_command03] -brushstyle =ESolidBrush - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0119-GetNearestFontToDesignHeightInPixels_command04] -font_height ={default_fbserv,font_height} -font_name ={default_fbserv,alternate_font_name1} -font_data_object_name =fbsFont - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0119-UseFont_command05] -font =fbsFont - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0119-IsFontUsed_command06] -expected =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0119-IsFontUsed_command08] -expected =FALSE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0119-ReleaseFont_command09] -font_data_object_name =fbsFont - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0121-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0121-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0121-SetBrushColor_command05] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0121-DrawArc_command07] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -start_x =200 -start_y =45 -end_x =150 -end_y =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0121-checkPixels_command08] -pixel1_x =199 -pixel1_y =44 -expected1_red =0 -expected1_green =0 -expected1_blue =0 -pixel2_x =198 -pixel2_y =41 -expected2_red =0 -expected2_green =0 -expected2_blue =0 -pixel3_x =195 -pixel3_y =35 -expected3_red =0 -expected3_green =0 -expected3_blue =0 -pixel4_x =160 -pixel4_y =10 -expected4_red =0 -expected4_green =0 -expected4_blue =0 -pixel5_x =145 -pixel5_y =5 -expected5_red =0 -expected5_green =0 -expected5_blue =0 -pixel6_x =198 -pixel6_y =44 -expected6_red =255 -expected6_green =255 -expected6_blue =255 -pixel7_x =198 -pixel7_y =45 -expected7_red =255 -expected7_green =255 -expected7_blue =255 -pixel8_x =191 -pixel8_y =32 -expected8_red =255 -expected8_green =255 -expected8_blue =255 -pixel9_x =191 -pixel9_y =33 -expected9_red =255 -expected9_green =255 -expected9_blue =255 -pixel10_x =15 -pixel10_y =50 -expected10_red =255 -expected10_green =255 -expected10_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0122-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0122-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0122-SetBrushColor_command05] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0122-DrawArc_command07] -rect_top =0 -rect_left =0 -rect_bottom =0 -rect_right =0 -start_x =200 -start_y =45 -end_x =150 -end_y =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0123-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0123-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0123-SetBrushColor_command05] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0123-SetPenStyle_command07] -penstyle =ENullPen - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0123-DrawArc_command08] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -start_x =200 -start_y =45 -end_x =150 -end_y =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0124-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0124-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0124-SetBrushColor_command05] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0124-SetPenSize_command07] -size_height =1 -size_width =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0124-DrawArc_command08] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -start_x =200 -start_y =45 -end_x =150 -end_y =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0125-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0125-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0125-SetBrushColor_command05] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0125-SetPenSize_command07] -size_height =0 -size_width =1 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0125-DrawArc_command08] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -start_x =200 -start_y =45 -end_x =150 -end_y =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0126-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0126-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0126-SetBrushColor_command05] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0126-DrawArc_command07] -rect_top =1000 -rect_left =1000 -rect_bottom =8000 -rect_right =8000 -start_x =200 -start_y =45 -end_x =150 -end_y =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0128-DrawArc_command02] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -start_x =200 -start_y =45 -end_x =150 -end_y =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0129-Activate_command02] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0129-DrawArc_command03] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -start_x =200 -start_y =45 -end_x =150 -end_y =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0130-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0130-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0130-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0130-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0130-SetBrushColor_command08] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0130-SetPenColor_command09] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0130-DrawPie_command10] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -start_x =200 -start_y =45 -end_x =150 -end_y =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0130-checkPixels_command11] -pixel1_x =199 -pixel1_y =44 -expected1_red =255 -expected1_green =0 -expected1_blue =0 -pixel2_x =198 -pixel2_y =41 -expected2_red =255 -expected2_green =0 -expected2_blue =0 -pixel3_x =192 -pixel3_y =32 -expected3_red =255 -expected3_green =0 -expected3_blue =0 -pixel4_x =160 -pixel4_y =10 -expected4_red =255 -expected4_green =0 -expected4_blue =0 -pixel5_x =145 -pixel5_y =5 -expected5_red =255 -expected5_green =0 -expected5_blue =0 -pixel6_x =160 -pixel6_y =47 -expected6_red =255 -expected6_green =0 -expected6_blue =0 -pixel7_x =100 -pixel7_y =50 -expected7_red =255 -expected7_green =0 -expected7_blue =0 -pixel8_x =140 -pixel8_y =48 -expected8_red =255 -expected8_green =0 -expected8_blue =0 -pixel9_x =140 -pixel9_y =10 -expected9_red =255 -expected9_green =0 -expected9_blue =0 -pixel10_x =130 -pixel10_y =20 -expected10_red =255 -expected10_green =0 -expected10_blue =0 -pixel11_x =135 -pixel11_y =25 -expected11_red =255 -expected11_green =0 -expected11_blue =0 -pixel12_x =159 -pixel12_y =39 -expected12_red =255 -expected12_green =0 -expected12_blue =0 -pixel13_x =170 -pixel13_y =30 -expected13_red =255 -expected13_green =0 -expected13_blue =0 -pixel14_x =144 -pixel14_y =25 -expected14_red =255 -expected14_green =0 -expected14_blue =0 -pixel15_x =100 -pixel15_y =25 -expected15_red =255 -expected15_green =255 -expected15_blue =255 -pixel16_x =50 -pixel16_y =80 -expected16_red =255 -expected16_green =255 -expected16_blue =255 -pixel17_x =150 -pixel17_y =70 -expected17_red =255 -expected17_green =255 -expected17_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0131-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0131-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0131-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0131-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0131-SetBrushColor_command08] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0131-SetPenColor_command09] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0131-DrawPie_command10] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -start_x =200 -start_y =45 -end_x =200 -end_y =45 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0131-checkPixels_command11] -pixel1_x =199 -pixel1_y =44 -expected1_red =255 -expected1_green =0 -expected1_blue =0 -pixel2_x =198 -pixel2_y =41 -expected2_red =255 -expected2_green =0 -expected2_blue =0 -pixel3_x =192 -pixel3_y =32 -expected3_red =255 -expected3_green =0 -expected3_blue =0 -pixel4_x =160 -pixel4_y =10 -expected4_red =255 -expected4_green =0 -expected4_blue =0 -pixel5_x =145 -pixel5_y =5 -expected5_red =255 -expected5_green =0 -expected5_blue =0 -pixel6_x =160 -pixel6_y =47 -expected6_red =255 -expected6_green =0 -expected6_blue =0 -pixel7_x =100 -pixel7_y =50 -expected7_red =255 -expected7_green =0 -expected7_blue =0 -pixel8_x =140 -pixel8_y =48 -expected8_red =255 -expected8_green =0 -expected8_blue =0 -pixel9_x =140 -pixel9_y =10 -expected9_red =255 -expected9_green =0 -expected9_blue =0 -pixel10_x =130 -pixel10_y =20 -expected10_red =255 -expected10_green =0 -expected10_blue =0 -pixel11_x =135 -pixel11_y =25 -expected11_red =255 -expected11_green =0 -expected11_blue =0 -pixel12_x =159 -pixel12_y =39 -expected12_red =255 -expected12_green =0 -expected12_blue =0 -pixel13_x =170 -pixel13_y =30 -expected13_red =255 -expected13_green =0 -expected13_blue =0 -pixel14_x =144 -pixel14_y =25 -expected14_red =255 -expected14_green =0 -expected14_blue =0 -pixel15_x =100 -pixel15_y =25 -expected15_red =255 -expected15_green =0 -expected15_blue =0 -pixel16_x =50 -pixel16_y =80 -expected16_red =255 -expected16_green =0 -expected16_blue =0 -pixel17_x =150 -pixel17_y =70 -expected17_red =255 -expected17_green =0 -expected17_blue =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0132-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0132-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0132-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0132-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0132-SetPenStyle_command08] -penstyle =ENullPen - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0132-DrawPie_command09] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -start_x =200 -start_y =45 -end_x =200 -end_y =45 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0133-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0133-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0133-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0133-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0133-SetPenSize_command08] -size_height =1 -size_width =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0133-DrawPie_command09] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -start_x =200 -start_y =45 -end_x =200 -end_y =45 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0134-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0134-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0134-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0134-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0134-SetPenSize_command08] -size_height =0 -size_width =1 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0134-DrawPie_command09] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -start_x =200 -start_y =45 -end_x =200 -end_y =45 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0135-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0135-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0135-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0135-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0135-DrawPie_command08] -rect_top =0 -rect_left =0 -rect_bottom =0 -rect_right =0 -start_x =200 -start_y =45 -end_x =200 -end_y =45 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0136-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0136-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0136-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0136-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0136-DrawPie_command08] -rect_top =1000 -rect_left =1000 -rect_bottom =8000 -rect_right =8000 -start_x =200 -start_y =45 -end_x =200 -end_y =45 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0137-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0137-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0137-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0137-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0137-SetBrushStyle_command08] -brushstyle =ENullBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0137-SetPenColor_command09] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0137-DrawPie_command10] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -start_x =200 -start_y =45 -end_x =150 -end_y =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0137-checkPixels_command11] -pixel1_x =199 -pixel1_y =44 -expected1_red =255 -expected1_green =0 -expected1_blue =0 -pixel2_x =198 -pixel2_y =41 -expected2_red =255 -expected2_green =0 -expected2_blue =0 -pixel3_x =190 -pixel3_y =29 -expected3_red =255 -expected3_green =0 -expected3_blue =0 -pixel4_x =160 -pixel4_y =10 -expected4_red =255 -expected4_green =0 -expected4_blue =0 -pixel5_x =145 -pixel5_y =5 -expected5_red =255 -expected5_green =0 -expected5_blue =0 -pixel6_x =160 -pixel6_y =47 -expected6_red =255 -expected6_green =0 -expected6_blue =0 -pixel7_x =100 -pixel7_y =50 -expected7_red =255 -expected7_green =0 -expected7_blue =0 -pixel8_x =140 -pixel8_y =48 -expected8_red =255 -expected8_green =0 -expected8_blue =0 -pixel9_x =140 -pixel9_y =10 -expected9_red =255 -expected9_green =0 -expected9_blue =0 -pixel10_x =130 -pixel10_y =20 -expected10_red =255 -expected10_green =0 -expected10_blue =0 -pixel11_x =135 -pixel11_y =25 -expected11_red =255 -expected11_green =255 -expected11_blue =255 -pixel12_x =159 -pixel12_y =39 -expected12_red =255 -expected12_green =255 -expected12_blue =255 -pixel13_x =170 -pixel13_y =30 -expected13_red =255 -expected13_green =255 -expected13_blue =255 -pixel14_x =144 -pixel14_y =25 -expected14_red =255 -expected14_green =255 -expected14_blue =255 -pixel15_x =100 -pixel15_y =25 -expected15_red =255 -expected15_green =255 -expected15_blue =255 -pixel16_x =50 -pixel16_y =80 -expected16_red =255 -expected16_green =255 -expected16_blue =255 -pixel17_x =150 -pixel17_y =70 -expected17_red =255 -expected17_green =255 -expected17_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0138-Activate_command02] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0138-DrawPie_command03] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -start_x =200 -start_y =45 -end_x =150 -end_y =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0139-DrawPie_command02] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =200 -start_x =200 -start_y =45 -end_x =150 -end_y =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0151-NewL_command04] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0151-Activate_command05] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0151-Load_command06] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0151-SetSizeInTwips_command07] -height =1000 -width =1000 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0151-DrawBitmap_command08] -bitmap =fbsBitmap -topleft_x =10 -topleft_y =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0152-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0152-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0152-DrawBitmap_command05] -bitmap =fbsBitmap -topleft_x =10 -topleft_y =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0153-Load_command03] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0153-DrawBitmap_command04] -bitmap =fbsBitmap -topleft_x =10 -topleft_y =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0154-NewL_command04] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0154-Activate_command05] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0154-Load_command06] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0154-SetSizeInTwips_command07] -height =10 -width =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0154-DrawBitmap_command08] -bitmap =fbsBitmap -topleft_x =10 -topleft_y =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0155-NewL_command04] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0155-Activate_command05] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0155-Load_command06] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0155-SetSizeInTwips_command07] -height =0 -width =10 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0155-DrawBitmap_command08] -bitmap =fbsBitmap -topleft_x =10 -topleft_y =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0156-NewL_command04] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0156-Activate_command05] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0156-DrawBitmap_command06] -bitmap =fbsBitmap -topleft_x =10 -topleft_y =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0157-NewL_command04] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0157-Activate_command05] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0157-Load_command06] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0157-DrawBitmap_command07] -bitmap =fbsBitmap -destrect_top =0 -destrect_left =0 -destrect_bottom =200 -destrect_right =100 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0158-NewL_command04] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0158-Activate_command05] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0158-Load_command06] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0158-DrawBitmap_command07] -bitmap =fbsBitmap -destrect_top =0 -destrect_left =0 -destrect_bottom =0 -destrect_right =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0159-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0159-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0159-DrawBitmap_command05] -bitmap =fbsBitmap -destrect_top =0 -destrect_left =0 -destrect_bottom =100 -destrect_right =200 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0160-Load_command04] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0160-DrawBitmap_command05] -bitmap =fbsBitmap -destrect_top =0 -destrect_left =0 -destrect_bottom =200 -destrect_right =100 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0161-NewL_command04] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0161-Activate_command05] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0161-DrawBitmap_command06] -bitmap =fbsBitmap -destrect_top =0 -destrect_left =0 -destrect_bottom =200 -destrect_right =100 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0162-NewL_command04] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0162-Activate_command05] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0162-Load_command06] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0162-DrawBitmap_command07] -bitmap =fbsBitmap -destrect_top =0 -destrect_left =0 -destrect_bottom =200 -destrect_right =100 -sourcerect_top =0 -sourcerect_left =0 -sourcerect_bottom =10 -sourcerect_right =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0163-NewL_command04] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0163-Activate_command05] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0163-Load_command06] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0163-DrawBitmap_command07] -bitmap =fbsBitmap -destrect_top =0 -destrect_left =0 -destrect_bottom =200 -destrect_right =100 -sourcerect_top =0 -sourcerect_left =0 -sourcerect_bottom =0 -sourcerect_right =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0164-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0164-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0164-DrawBitmap_command05] -bitmap =fbsBitmap -destrect_top =0 -destrect_left =0 -destrect_bottom =200 -destrect_right =100 -sourcerect_top =0 -sourcerect_left =0 -sourcerect_bottom =10 -sourcerect_right =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0165-NewL_command04] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0165-Activate_command05] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0165-Load_command06] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0165-DrawBitmap_command09] -bitmap =fbsBitmap -destrect_top =0 -destrect_left =0 -destrect_bottom =200 -destrect_right =100 -sourcerect_top =0 -sourcerect_left =0 -sourcerect_bottom =10 -sourcerect_right =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0166-NewL_command04] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0166-Activate_command05] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0166-Load_command06] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0166-DrawBitmap_command07] -bitmap =fbsBitmap -destrect_top =0 -destrect_left =0 -destrect_bottom =200 -destrect_right =100 -sourcerect_top =-10 -sourcerect_left =0 -sourcerect_bottom =10 -sourcerect_right =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0167-NewL_command04] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0167-Activate_command05] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0167-Load_command06] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0167-DrawBitmap_command07] -bitmap =fbsBitmap -destrect_top =0 -destrect_left =0 -destrect_bottom =200 -destrect_right =100 -sourcerect_top =0 -sourcerect_left =-10 -sourcerect_bottom =10 -sourcerect_right =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0168-NewL_command04] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0168-Activate_command05] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0168-Load_command06] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0168-DrawBitmap_command07] -bitmap =fbsBitmap -destrect_top =0 -destrect_left =0 -destrect_bottom =200 -destrect_right =100 -sourcerect_top =0 -sourcerect_left =0 -sourcerect_bottom =8000 -sourcerect_right =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0169-NewL_command04] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0169-Activate_command05] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0169-Load_command06] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0169-DrawBitmap_command07] -bitmap =fbsBitmap -destrect_top =0 -destrect_left =0 -destrect_bottom =200 -destrect_right =100 -sourcerect_top =0 -sourcerect_left =0 -sourcerect_bottom =10 -sourcerect_right =8000 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0170-NewL_command04] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0170-Activate_command05] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0170-Load_command06] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0170-SetClippingRect_command07] -rect_top =10 -rect_left =10 -rect_bottom =100 -rect_right =100 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0170-DrawBitmap_command08] -bitmap =fbsBitmap -destrect_top =8000 -destrect_left =8000 -destrect_bottom =200 -destrect_right =100 -sourcerect_top =0 -sourcerect_left =0 -sourcerect_bottom =10 -sourcerect_right =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0171-NewL_command04] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0171-Activate_command05] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0171-new_command09] -ws =wsSession - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0171-Construct_command10] -defaultscreennumber ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0171-SetClippingRect_command11] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =100 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0171-RectCompare_command12] -rect1_top =0 -rect1_left =0 -rect1_bottom =100 -rect1_right =100 -rect2_top =0 -rect2_left =100 -rect2_bottom =100 -rect2_right =200 -expected =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0171-Load_command13] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0171-SetSizeInTwips_command14] -height =1000 -width =1000 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0171-DrawBitmap_command15] -bitmap =fbsBitmap -topleft_x =0 -topleft_y =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0171-RectCompare_command16] -rect1_top =0 -rect1_left =0 -rect1_bottom =100 -rect1_right =100 -rect2_top =0 -rect2_left =100 -rect2_bottom =100 -rect2_right =200 -expected =FALSE - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0172-NewL_command04] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0172-Activate_command05] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0172-new_command09] -ws =wsSession - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0172-Construct_command10] -defaultscreennumber ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0172-RectCompare_command11] -rect1_top =0 -rect1_left =0 -rect1_bottom =90 -rect1_right =90 -rect2_top =0 -rect2_left =90 -rect2_bottom =90 -rect2_right =180 -expected =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0172-Load_command12] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0172-DrawBitmap_command13] -bitmap =fbsBitmap -destrect_top =0 -destrect_left =0 -destrect_bottom =90 -destrect_right =90 -sourcerect_top =0 -sourcerect_left =0 -sourcerect_bottom =30 -sourcerect_right =30 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0172-RectCompare_command14] -rect1_top =0 -rect1_left =0 -rect1_bottom =90 -rect1_right =90 -rect2_top =0 -rect2_left =90 -rect2_bottom =90 -rect2_right =180 -expected =FALSE - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0201-NewL_command05] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0201-Activate_command06] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0201-Load_command07] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0201-Load_command08] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0201-DrawBitmapMasked_command09] -bitmap =fbsBitmap -maskbitmap =fbsMaskBitmap -invertmask =TRUE -destrect_top =0 -destrect_left =0 -destrect_bottom =200 -destrect_right =100 -sourcerect_top =0 -sourcerect_left =0 -sourcerect_bottom =10 -sourcerect_right =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0202-NewL_command04] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0202-Activate_command05] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0202-Load_command06] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0202-DrawBitmapMasked_command07] -bitmap =fbsBitmap -maskbitmap =fbsMaskBitmap -invertmask =TRUE -destrect_top =0 -destrect_left =0 -destrect_bottom =200 -destrect_right =100 -sourcerect_top =0 -sourcerect_left =0 -sourcerect_bottom =10 -sourcerect_right =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0203-NewL_command04] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0203-Activate_command05] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0203-Load_command06] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0203-DrawBitmapMasked_command07] -bitmap =fbsBitmap -maskbitmap =fbsMaskBitmap -invertmask =TRUE -destrect_top =0 -destrect_left =0 -destrect_bottom =200 -destrect_right =100 -sourcerect_top =0 -sourcerect_left =0 -sourcerect_bottom =10 -sourcerect_right =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0204-NewL_command05] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0204-Activate_command06] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0204-Load_command07] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0204-Load_command08] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0204-DrawBitmapMasked_command09] -bitmap =fbsBitmap -maskbitmap =fbsMaskBitmap -invertmask =TRUE -destrect_top =0 -destrect_left =0 -destrect_bottom =200 -destrect_right =100 -sourcerect_top =0 -sourcerect_left =0 -sourcerect_bottom =0 -sourcerect_right =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0205-NewL_command05] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0205-Activate_command06] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0205-Load_command07] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0205-Load_command08] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0205-DrawBitmapMasked_command09] -bitmap =fbsBitmap -maskbitmap =fbsMaskBitmap -invertmask =TRUE -destrect_top =0 -destrect_left =0 -destrect_bottom =0 -destrect_right =0 -sourcerect_top =0 -sourcerect_left =0 -sourcerect_bottom =10 -sourcerect_right =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0206-NewL_command05] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0206-Activate_command06] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0206-Load_command07] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0206-DrawBitmapMasked_command08] -bitmap =fbsBitmap -maskbitmap =fbsMaskBitmap -invertmask =TRUE -destrect_top =0 -destrect_left =0 -destrect_bottom =200 -destrect_right =100 -sourcerect_top =0 -sourcerect_left =0 -sourcerect_bottom =0 -sourcerect_right =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0207-NewL_command05] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0207-Activate_command06] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0207-Load_command07] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0207-DrawBitmapMasked_command08] -bitmap =fbsBitmap -maskbitmap =fbsMaskBitmap -invertmask =TRUE -destrect_top =0 -destrect_left =0 -destrect_bottom =200 -destrect_right =100 -sourcerect_top =0 -sourcerect_left =0 -sourcerect_bottom =0 -sourcerect_right =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0208-NewL_command05] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0208-Activate_command06] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0208-Load_command07] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0208-Load_command08] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0208-DrawBitmapMasked_command09] -bitmap =fbsBitmap -maskbitmap =fbsMaskBitmap -invertmask =TRUE -destrect_top =0 -destrect_left =0 -destrect_bottom =200 -destrect_right =100 -sourcerect_top =-10 -sourcerect_left =0 -sourcerect_bottom =10 -sourcerect_right =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0209-NewL_command05] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0209-Activate_command06] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0209-Load_command07] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0209-Load_command08] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0209-DrawBitmapMasked_command09] -bitmap =fbsBitmap -maskbitmap =fbsMaskBitmap -invertmask =TRUE -destrect_top =0 -destrect_left =0 -destrect_bottom =200 -destrect_right =100 -sourcerect_top =0 -sourcerect_left =-10 -sourcerect_bottom =10 -sourcerect_right =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0210-NewL_command05] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0210-Activate_command06] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0210-Load_command07] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0210-Load_command08] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0210-DrawBitmapMasked_command09] -bitmap =fbsBitmap -maskbitmap =fbsMaskBitmap -invertmask =TRUE -destrect_top =0 -destrect_left =0 -destrect_bottom =200 -destrect_right =100 -sourcerect_top =0 -sourcerect_left =0 -sourcerect_bottom =8000 -sourcerect_right =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0211-NewL_command05] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0211-Activate_command06] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0211-Load_command07] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0211-Load_command08] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0211-DrawBitmapMasked_command09] -bitmap =fbsBitmap -maskbitmap =fbsMaskBitmap -invertmask =TRUE -destrect_top =0 -destrect_left =0 -destrect_bottom =200 -destrect_right =100 -sourcerect_top =0 -sourcerect_left =0 -sourcerect_bottom =10 -sourcerect_right =8000 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0212-NewL_command05] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0212-Activate_command06] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0212-Load_command07] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0212-Load_command08] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0212-SetClippingRect_command09] -rect_top =210 -rect_left =110 -rect_bottom =10 -rect_right =10 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0212-DrawBitmapMasked_command10] -bitmap =fbsBitmap -maskbitmap =fbsMaskBitmap -invertmask =TRUE -destrect_top =0 -destrect_left =0 -destrect_bottom =200 -destrect_right =100 -sourcerect_top =0 -sourcerect_left =0 -sourcerect_bottom =10 -sourcerect_right =8000 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0213-NewL_command05] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0213-Activate_command06] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0213-Load_command07] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0213-Load_command08] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0213-Resize_command09] -height =8000 -width =10 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0213-DrawBitmapMasked_command10] -bitmap =fbsBitmap -maskbitmap =fbsMaskBitmap -invertmask =TRUE -destrect_top =0 -destrect_left =0 -destrect_bottom =200 -destrect_right =100 -sourcerect_top =0 -sourcerect_left =0 -sourcerect_bottom =10 -sourcerect_right =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0214-NewL_command05] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0214-Activate_command06] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0214-Load_command07] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0214-Load_command08] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0214-Resize_command09] -height =10 -width =8000 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0214-DrawBitmapMasked_command10] -bitmap =fbsBitmap -maskbitmap =fbsMaskBitmap -invertmask =TRUE -destrect_top =0 -destrect_left =0 -destrect_bottom =200 -destrect_right =100 -sourcerect_top =0 -sourcerect_left =0 -sourcerect_bottom =10 -sourcerect_right =10 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0252-new_command05] -ws =wsSession - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0252-new_command06] -ws =wsSession - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0252-NewL_command07] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0252-Activate_command08] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0252-Load_command09] -id =0 -filename =\graphics\bitgdi\test_rwssprite_bitmap.mbm -shareifloaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0252-Load_command10] -id =1 -filename =\graphics\bitgdi\test_rwssprite_bitmap.mbm -shareifloaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0252-DrawBitmapMasked_command11] -bitmap =fbsBitmap -wsbitmap =wsMaskBitmap -invertmask =TRUE -destrect_top =20 -destrect_left =20 -destrect_bottom =200 -destrect_right =100 -sourcerect_top =0 -sourcerect_left =0 -sourcerect_bottom =10 -sourcerect_right =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0253-new_command05] -ws =wsSession - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0253-new_command06] -ws =wsSession - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0253-Load_command07] -id =0 -filename =\graphics\bitgdi\test_rwssprite_bitmap.mbm -shareifloaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0253-Load_command08] -id =1 -filename =\graphics\bitgdi\test_rwssprite_bitmap.mbm -shareifloaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0253-DrawBitmapMasked_command09] -bitmap =fbsBitmap -wsbitmap =wsMaskBitmap -invertmask =TRUE -destrect_top =20 -destrect_left =20 -destrect_bottom =200 -destrect_right =100 -sourcerect_top =0 -sourcerect_left =0 -sourcerect_bottom =10 -sourcerect_right =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0254-NewL_command05] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0254-Activate_command06] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0254-Load_command07] -bitmap_id =1 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0254-Load_command08] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0254-SetDrawMode_command09] -drawmode =EDrawModeNOTPEN - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0254-DrawBitmapMasked_command10] -bitmap =fbsBitmap -maskbitmap =fbsMaskBitmap -invertmask =TRUE -destrect_top =0 -destrect_left =0 -destrect_bottom =200 -destrect_right =100 -sourcerect_top =0 -sourcerect_left =0 -sourcerect_bottom =10 -sourcerect_right =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0271-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0271-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0271-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0271-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0271-SetBrushColor_command08] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0271-SetPenColor_command09] -color_red =0 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0271-DrawRoundRect_command10] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =150 -size_width =10 -size_height =10 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0271-checkRectColor_command11] -rect1_top =1 -rect1_left =11 -rect1_bottom =99 -rect1_right =139 -expected1_red =0 -expected1_green =0 -expected1_blue =255 -rect2_top =11 -rect2_left =1 -rect2_bottom =89 -rect2_right =149 -expected2_red =0 -expected2_green =0 -expected2_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0271-checkLineColor_command12] -start1_x =10 -start1_y =0 -finish1_x =140 -finish1_y =0 -expected1_red =0 -expected1_green =0 -expected1_blue =0 -start2_x =0 -start2_y =10 -finish2_x =0 -finish2_y =90 -expected2_red =0 -expected2_green =0 -expected2_blue =0 -start3_x =139 -start3_y =99 -finish3_x =11 -finish3_y =99 -expected3_red =0 -expected3_green =0 -expected3_blue =0 -start4_x =149 -start4_y =89 -finish4_x =149 -finish4_y =11 -expected4_red =0 -expected4_green =0 -expected4_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0271-checkPixels_command13] -pixel1_x =109 -pixel1_y =44 -expected1_red =0 -expected1_green =0 -expected1_blue =255 -pixel2_x =100 -pixel2_y =76 -expected2_red =0 -expected2_green =0 -expected2_blue =255 -pixel3_x =141 -pixel3_y =5 -expected3_red =0 -expected3_green =0 -expected3_blue =255 -pixel4_x =0 -pixel4_y =0 -expected4_red =255 -expected4_green =255 -expected4_blue =255 -pixel5_x =100 -pixel5_y =200 -expected5_red =255 -expected5_green =255 -expected5_blue =255 -pixel6_x =50 -pixel6_y =198 -expected6_red =255 -expected6_green =255 -expected6_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0272-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0272-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0272-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0272-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0272-SetBrushColor_command08] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0272-SetPenColor_command09] -color_red =0 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0272-DrawRoundRect_command10] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =150 -size_width =0 -size_height =5 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0272-checkRectColor_command11] -rect1_top =1 -rect1_left =1 -rect1_bottom =99 -rect1_right =149 -expected1_red =0 -expected1_green =0 -expected1_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0272-checkLineColor_command12] -start1_x =0 -start1_y =0 -finish1_x =150 -finish1_y =0 -expected1_red =0 -expected1_green =0 -expected1_blue =0 -start2_x =0 -start2_y =0 -finish2_x =0 -finish2_y =100 -expected2_red =0 -expected2_green =0 -expected2_blue =0 -start3_x =149 -start3_y =99 -finish3_x =149 -finish3_y =0 -expected3_red =0 -expected3_green =0 -expected3_blue =0 -start4_x =0 -start4_y =99 -finish4_x =149 -finish4_y =99 -expected4_red =0 -expected4_green =0 -expected4_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0272-checkPixels_command13] -pixel1_x =109 -pixel1_y =44 -expected1_red =0 -expected1_green =0 -expected1_blue =255 -pixel2_x =100 -pixel2_y =76 -expected2_red =0 -expected2_green =0 -expected2_blue =255 -pixel3_x =141 -pixel3_y =3 -expected3_red =0 -expected3_green =0 -expected3_blue =255 -pixel4_x =100 -pixel4_y =200 -expected4_red =255 -expected4_green =255 -expected4_blue =255 -pixel5_x =50 -pixel5_y =198 -expected5_red =255 -expected5_green =255 -expected5_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0273-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0273-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0273-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0273-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0273-SetBrushColor_command08] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0273-SetPenColor_command09] -color_red =0 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0273-DrawRoundRect_command10] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =150 -size_width =5 -size_height =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0273-checkRectColor_command11] -rect1_top =1 -rect1_left =1 -rect1_bottom =99 -rect1_right =149 -expected1_red =0 -expected1_green =0 -expected1_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0273-checkLineColor_command12] -start1_x =0 -start1_y =0 -finish1_x =150 -finish1_y =0 -expected1_red =0 -expected1_green =0 -expected1_blue =0 -start2_x =0 -start2_y =0 -finish2_x =0 -finish2_y =100 -expected2_red =0 -expected2_green =0 -expected2_blue =0 -start3_x =149 -start3_y =99 -finish3_x =149 -finish3_y =0 -expected3_red =0 -expected3_green =0 -expected3_blue =0 -start4_x =0 -start4_y =99 -finish4_x =149 -finish4_y =99 -expected4_red =0 -expected4_green =0 -expected4_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0273-checkPixels_command13] -pixel1_x =109 -pixel1_y =44 -expected1_red =0 -expected1_green =0 -expected1_blue =255 -pixel2_x =100 -pixel2_y =76 -expected2_red =0 -expected2_green =0 -expected2_blue =255 -pixel3_x =141 -pixel3_y =3 -expected3_red =0 -expected3_green =0 -expected3_blue =255 -pixel4_x =100 -pixel4_y =200 -expected4_red =255 -expected4_green =255 -expected4_blue =255 -pixel5_x =50 -pixel5_y =198 -expected5_red =255 -expected5_green =255 -expected5_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0274-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0274-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0274-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0274-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0274-SetBrushColor_command08] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0274-SetPenColor_command09] -color_red =0 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0274-DrawRoundRect_command10] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =150 -size_width =160 -size_height =110 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0274-checkPixels_command11] -pixel1_x =130 -pixel1_y =83 -expected1_red =0 -expected1_green =0 -expected1_blue =0 -pixel2_x =148 -pixel2_y =40 -expected2_red =0 -expected2_green =0 -expected2_blue =0 -pixel3_x =34 -pixel3_y =8 -expected3_red =0 -expected3_green =0 -expected3_blue =0 -pixel4_x =48 -pixel4_y =96 -expected4_red =0 -expected4_green =0 -expected4_blue =0 -pixel5_x =96 -pixel5_y =2 -expected5_red =0 -expected5_green =0 -expected5_blue =0 -pixel6_x =100 -pixel6_y =50 -expected6_red =0 -expected6_green =0 -expected6_blue =255 -pixel7_x =50 -pixel7_y =50 -expected7_red =0 -expected7_green =0 -expected7_blue =255 -pixel8_x =60 -pixel8_y =70 -expected8_red =0 -expected8_green =0 -expected8_blue =255 -pixel9_x =0 -pixel9_y =0 -expected9_red =255 -expected9_green =255 -expected9_blue =255 -pixel10_x =240 -pixel10_y =100 -expected10_red =255 -expected10_green =255 -expected10_blue =255 -pixel11_x =240 -pixel11_y =0 -expected11_red =255 -expected11_green =255 -expected11_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0275-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0275-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0275-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0275-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0275-SetBrushColor_command08] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0275-SetPenColor_command09] -color_red =0 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0275-DrawRoundRect_command10] -rect_top =0 -rect_left =0 -rect_bottom =0 -rect_right =0 -size_width =0 -size_height =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0276-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0276-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0276-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0276-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0276-SetBrushStyle_command08] -brushstyle =ENullBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0276-SetPenColor_command09] -color_red =0 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0276-DrawRoundRect_command10] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =150 -size_width =10 -size_height =10 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0276-checkRectColor_command11] -rect1_top =1 -rect1_left =11 -rect1_bottom =99 -rect1_right =139 -expected1_red =255 -expected1_green =255 -expected1_blue =255 -rect2_top =11 -rect2_left =1 -rect2_bottom =89 -rect2_right =149 -expected2_red =255 -expected2_green =255 -expected2_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0276-checkLineColor_command12] -start1_x =10 -start1_y =0 -finish1_x =140 -finish1_y =0 -expected1_red =0 -expected1_green =0 -expected1_blue =0 -start2_x =0 -start2_y =10 -finish2_x =0 -finish2_y =90 -expected2_red =0 -expected2_green =0 -expected2_blue =0 -start3_x =139 -start3_y =99 -finish3_x =11 -finish3_y =99 -expected3_red =0 -expected3_green =0 -expected3_blue =0 -start4_x =149 -start4_y =89 -finish4_x =149 -finish4_y =11 -expected4_red =0 -expected4_green =0 -expected4_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0276-checkPixels_command13] -pixel1_x =109 -pixel1_y =44 -expected1_red =255 -expected1_green =255 -expected1_blue =255 -pixel2_x =100 -pixel2_y =76 -expected2_red =255 -expected2_green =255 -expected2_blue =255 -pixel3_x =141 -pixel3_y =3 -expected3_red =255 -expected3_green =255 -expected3_blue =255 -pixel4_x =0 -pixel4_y =0 -expected4_red =255 -expected4_green =255 -expected4_blue =255 -pixel5_x =100 -pixel5_y =200 -expected5_red =255 -expected5_green =255 -expected5_blue =255 -pixel6_x =50 -pixel6_y =198 -expected6_red =255 -expected6_green =255 -expected6_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0277-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0277-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0277-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0277-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0277-SetBrushColor_command08] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0277-SetPenStyle_command09] -penstyle =ENullPen - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0277-DrawRoundRect_command10] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =150 -size_width =10 -size_height =10 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0277-checkRectColor_command11] -rect1_top =1 -rect1_left =11 -rect1_bottom =99 -rect1_right =139 -expected1_red =0 -expected1_green =0 -expected1_blue =255 -rect2_top =11 -rect2_left =1 -rect2_bottom =89 -rect2_right =149 -expected2_red =0 -expected2_green =0 -expected2_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0277-checkLineColor_command12] -start1_x =10 -start1_y =0 -finish1_x =140 -finish1_y =0 -expected1_red =255 -expected1_green =255 -expected1_blue =255 -start2_x =0 -start2_y =10 -finish2_x =0 -finish2_y =90 -expected2_red =255 -expected2_green =255 -expected2_blue =255 -start3_x =139 -start3_y =99 -finish3_x =11 -finish3_y =99 -expected3_red =255 -expected3_green =255 -expected3_blue =255 -start4_x =149 -start4_y =89 -finish4_x =149 -finish4_y =11 -expected4_red =255 -expected4_green =255 -expected4_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0277-checkPixels_command13] -pixel1_x =109 -pixel1_y =44 -expected1_red =0 -expected1_green =0 -expected1_blue =255 -pixel2_x =100 -pixel2_y =76 -expected2_red =0 -expected2_green =0 -expected2_blue =255 -pixel3_x =141 -pixel3_y =3 -expected3_red =0 -expected3_green =0 -expected3_blue =255 -pixel4_x =0 -pixel4_y =0 -expected4_red =255 -expected4_green =255 -expected4_blue =255 -pixel5_x =100 -pixel5_y =200 -expected5_red =255 -expected5_green =255 -expected5_blue =255 -pixel6_x =50 -pixel6_y =198 -expected6_red =255 -expected6_green =255 -expected6_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0278-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0278-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0278-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0278-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0278-SetBrushColor_command08] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0278-SetPenSize_command09] -size_height =1 -size_width =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0278-DrawRoundRect_command10] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =150 -size_width =10 -size_height =10 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0278-checkRectColor_command11] -rect1_top =0 -rect1_left =10 -rect1_bottom =100 -rect1_right =140 -expected1_red =0 -expected1_green =0 -expected1_blue =255 -rect2_top =10 -rect2_left =0 -rect2_bottom =90 -rect2_right =150 -expected2_red =0 -expected2_green =0 -expected2_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0278-checkPixels_command12] -pixel1_x =109 -pixel1_y =44 -expected1_red =0 -expected1_green =0 -expected1_blue =255 -pixel2_x =100 -pixel2_y =76 -expected2_red =0 -expected2_green =0 -expected2_blue =255 -pixel3_x =141 -pixel3_y =3 -expected3_red =0 -expected3_green =0 -expected3_blue =255 -pixel4_x =0 -pixel4_y =0 -expected4_red =255 -expected4_green =255 -expected4_blue =255 -pixel5_x =100 -pixel5_y =200 -expected5_red =255 -expected5_green =255 -expected5_blue =255 -pixel6_x =50 -pixel6_y =198 -expected6_red =255 -expected6_green =255 -expected6_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0279-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0279-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0279-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0279-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0279-SetBrushColor_command08] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0279-SetPenSize_command09] -size_height =0 -size_width =1 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0279-DrawRoundRect_command10] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =150 -size_width =10 -size_height =10 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0279-checkRectColor_command11] -rect1_top =0 -rect1_left =10 -rect1_bottom =100 -rect1_right =140 -expected1_red =0 -expected1_green =0 -expected1_blue =255 -rect2_top =10 -rect2_left =0 -rect2_bottom =90 -rect2_right =150 -expected2_red =0 -expected2_green =0 -expected2_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0279-checkPixels_command12] -pixel1_x =109 -pixel1_y =44 -expected1_red =0 -expected1_green =0 -expected1_blue =255 -pixel2_x =100 -pixel2_y =76 -expected2_red =0 -expected2_green =0 -expected2_blue =255 -pixel3_x =141 -pixel3_y =3 -expected3_red =0 -expected3_green =0 -expected3_blue =255 -pixel4_x =0 -pixel4_y =0 -expected4_red =255 -expected4_green =255 -expected4_blue =255 -pixel5_x =100 -pixel5_y =200 -expected5_red =255 -expected5_green =255 -expected5_blue =255 -pixel6_x =50 -pixel6_y =198 -expected6_red =255 -expected6_green =255 -expected6_blue =255 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0280-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0280-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0280-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0280-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0280-SetBrushColor_command08] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0280-SetPenColor_command09] -color_red =0 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0280-DrawRoundRect_command10] -rect_top =8000 -rect_left =8000 -rect_bottom =9000 -rect_right =9000 -size_width =10 -size_height =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0282-Activate_command02] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0282-DrawRoundRect_command03] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =300 -size_width =10 -size_height =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0283-DrawRoundRect_command02] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =300 -size_width =10 -size_height =10 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0284-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0284-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0284-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0284-SetBrushColor_cmand0006] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0284-DrawPolyLine_command08] -pointlist1_x =10 -pointlist1_y =10 -pointlist2_x =200 -pointlist2_y =70 -pointlist3_x =100 -pointlist3_y =200 -pointlist4_x =150 -pointlist4_y =220 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0284-checkLineColor_command09] -start1_x =10 -start1_y =10 -finish1_x =200 -finish1_y =70 -expected1_red =0 -expected1_green =0 -expected1_blue =0 -start2_x =200 -start2_y =70 -finish2_x =100 -finish2_y =200 -expected2_red =0 -expected2_green =0 -expected2_blue =0 -start3_x =100 -start3_y =200 -finish3_x =150 -finish3_y =220 -expected3_red =0 -expected3_green =0 -expected3_blue =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0285-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0285-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0285-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0285-SetBrushColor_cmand0006] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0285-SetPenSize_command08] -size_height =1 -size_width =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0285-DrawPolyLine_command09] -pointlist1_x =10 -pointlist1_y =10 -pointlist2_x =200 -pointlist2_y =70 -pointlist3_x =100 -pointlist3_y =200 -pointlist4_x =150 -pointlist4_y =220 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0286-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0286-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0286-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0286-SetBrushColor_cmand0006] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0286-SetPenSize_command08] -size_height =0 -size_width =1 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0286-DrawPolyLine_command09] -pointlist1_x =10 -pointlist1_y =10 -pointlist2_x =200 -pointlist2_y =70 -pointlist3_x =100 -pointlist3_y =200 -pointlist4_x =150 -pointlist4_y =220 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0287-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0287-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0287-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0287-SetBrushColor_cmand0006] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0287-SetPenStyle_command08] -penstyle =ENullPen - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0287-DrawPolyLine_command09] -pointlist1_x =10 -pointlist1_y =10 -pointlist2_x =200 -pointlist2_y =70 -pointlist3_x =100 -pointlist3_y =200 -pointlist4_x =150 -pointlist4_y =220 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0290-Activate_command02] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0290-DrawPolyLine_command03] -pointlist1_x =10 -pointlist1_y =10 -pointlist2_x =200 -pointlist2_y =70 -pointlist3_x =100 -pointlist3_y =200 -pointlist4_x =150 -pointlist4_y =220 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0291-DrawPolyLine_command02] -pointlist1_x =10 -pointlist1_y =10 -pointlist2_x =200 -pointlist2_y =70 -pointlist3_x =100 -pointlist3_y =200 -pointlist4_x =150 -pointlist4_y =220 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0292-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0292-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0292-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0292-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0292-DrawPolyLineNoEndPoint_command08] -pointlist1_x =75 -pointlist1_y =10 -pointlist2_x =0 -pointlist2_y =70 -pointlist3_x =100 -pointlist3_y =50 -pointlist4_x =150 -pointlist4_y =100 -pointlist5_x =5 -pointlist5_y =5 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0292-checkLineColor_command09] -start1_x =75 -start1_y =10 -finish1_x =0 -finish1_y =70 -expected1_red =0 -expected1_green =0 -expected1_blue =0 -start2_x =0 -start2_y =70 -finish2_x =100 -finish2_y =50 -expected2_red =0 -expected2_green =0 -expected2_blue =0 -start3_x =100 -start3_y =50 -finish3_x =150 -finish3_y =100 -expected3_red =0 -expected3_green =0 -expected3_blue =0 -start4_x =150 -start4_y =100 -finish4_x =5 -finish4_y =5 -expected4_red =0 -expected4_green =0 -expected4_blue =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0293-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0293-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0293-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0293-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0293-SetPenSize_command08] -size_height =1 -size_width =0 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0293-DrawPolyLineNoEndPoint_command09] -pointlist1_x =10 -pointlist1_y =10 -pointlist2_x =200 -pointlist2_y =70 -pointlist3_x =100 -pointlist3_y =200 -pointlist4_x =150 -pointlist4_y =220 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0294-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0294-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0294-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0294-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0294-SetPenSize_command08] -size_height =0 -size_width =1 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0294-DrawPolyLineNoEndPoint_command09] -pointlist1_x =10 -pointlist1_y =10 -pointlist2_x =200 -pointlist2_y =70 -pointlist3_x =100 -pointlist3_y =200 -pointlist4_x =150 -pointlist4_y =220 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0296-Activate_command02] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0296-DrawPolyLineNoEndPoint_command03] -pointlist1_x =75 -pointlist1_y =10 -pointlist2_x =0 -pointlist2_y =70 -pointlist3_x =300 -pointlist3_y =100 -pointlist4_x =350 -pointlist4_y =200 -pointlist5_x =5 -pointlist5_y =5 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0297-DrawPolyLineNoEndPoint_command02] -pointlist1_x =75 -pointlist1_y =10 -pointlist2_x =0 -pointlist2_y =70 -pointlist3_x =300 -pointlist3_y =100 -pointlist4_x =350 -pointlist4_y =200 -pointlist5_x =5 -pointlist5_y =5 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0298-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0298-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0298-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0298-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0298-DrawPolyLine_command08] -numpoints =4 -pointlist1_x =10 -pointlist1_y =10 -pointlist2_x =200 -pointlist2_y =70 -pointlist3_x =100 -pointlist3_y =200 -pointlist4_x =150 -pointlist4_y =220 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0298-checkLineColor_command09] -start1_x =10 -start1_y =10 -finish1_x =200 -finish1_y =70 -expected1_red =0 -expected1_green =0 -expected1_blue =0 -start2_x =200 -start2_y =70 -finish2_x =100 -finish2_y =200 -expected2_red =0 -expected2_green =0 -expected2_blue =0 -start3_x =100 -start3_y =200 -finish3_x =150 -finish3_y =220 -expected3_red =0 -expected3_green =0 -expected3_blue =0 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0299-NewL_command03] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0299-Activate_command04] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0299-SetBrushStyle_command05] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0299-SetBrushColor_command06] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0299-SetPenStyle_command08] -penstyle =ENullPen - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0299-DrawPolyLine_command09] -numpoints =4 -pointlist1_x =10 -pointlist1_y =10 -pointlist2_x =200 -pointlist2_y =70 -pointlist3_x =100 -pointlist3_y =200 -pointlist4_x =150 -pointlist4_y =220 - - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0300-Activate_command02] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitGc-PublicApi-0300-DrawPolyLine_command03] -numpoints =4 -pointlist1_x =10 -pointlist1_y =10 -pointlist2_x =200 -pointlist2_y =70 -pointlist3_x =100 -pointlist3_y =200 -pointlist4_x =150 -pointlist4_y =220 - - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/bitgdi/testdata/GRAPHICS-BITGDI-FbsBitGcBitmap-PublicAPI.ini --- a/graphicsapitest/graphicssvs/bitgdi/testdata/GRAPHICS-BITGDI-FbsBitGcBitmap-PublicAPI.ini Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,29 +0,0 @@ -[include] -file1 =\graphics\t_graphics.ini - -[CFbsBitGcBitmap1] -name =CFbsBitGcBitmap1 - -[RFbsSession1] -name =RFbsSession1 - -[GRAPHICS-BITGDI-FbsBitGcBitmap-PublicAPI-0002-0001-Create_Command03] -width =100 -height =200 -displaymode =EGray2 - -[GRAPHICS-BITGDI-FbsBitGcBitmap-PublicAPI-0002-0001-Address_Command04] -expectedwidth =100 -expectedheight =200 - - -[GRAPHICS-BITGDI-FbsBitGcBitmap-PublicAPI-0004-0001-Create_Command03] -width =100 -height =200 -displaymode =EGray2 - -[GRAPHICS-BITGDI-FbsBitGcBitmap-PublicAPI-0005-0001-Create_Command03] -width =100 -height =200 -displaymode =EGray2 - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/bitgdi/testdata/GRAPHICS-BITGDI-FbsBitGcFont-PublicApi.ini --- a/graphicsapitest/graphicssvs/bitgdi/testdata/GRAPHICS-BITGDI-FbsBitGcFont-PublicApi.ini Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,47 +0,0 @@ -[include] -file1 =\graphics\t_graphics.ini - -[FbsBitGcFont] -name =FbsBitGcFont - -[FbsSession] -name =RFbsSession - -[FbsTypefaceStore] -name =fbstfs - -[FbsBitGcFont2] -name =FbsBitGcFont2 - - - -[GRAPHICS-BITGDI-FbsBitGcFont-PublicApi-0003-GetNearestFontToDesignHeightInPixels_command03] -font_height ={default_fbserv, font_height} -font_name ={default_fbserv, alternate_font_name1} -font_data_object_name =FbsBitGcFont - -[GRAPHICS-BITGDI-FbsBitGcFont-PublicApi-0004-GetNearestFontToDesignHeightInPixels_command03] -font_height ={default_fbserv, font_height} -font_name ={default_fbserv, alternate_font_name1} -font_data_object_name =FbsBitGcFont - -[GRAPHICS-BITGDI-FbsBitGcFont-PublicApi-0004-GetNearestFontToDesignHeightInPixels_command04] -font_height =15 -font_name ={default_fbserv, alternate_font_name1} -font_data_object_name =FbsBitGcFont2 - -[GRAPHICS-BITGDI-FbsBitGcFont-PublicApi-0004-Duplicate_command05] -font_data_object_name =FbsBitGcFont2 - -[GRAPHICS-BITGDI-FbsBitGcFont-PublicApi-0005-GetNearestFontToDesignHeightInPixels_command03] -font_height ={default_fbserv, font_height} -font_name ={default_fbserv, alternate_font_name1} -font_data_object_name =FbsBitGcFont - -[GRAPHICS-BITGDI-FbsBitGcFont-PublicApi-0005-Duplicate_command04] -handle =0 - -[GRAPHICS-BITGDI-FbsBitGcFont-PublicApi-0006-GetNearestFontToDesignHeightInPixels_command03] -font_height ={default_fbserv, font_height} -font_name ={default_fbserv, alternate_font_name1} -font_data_object_name =FbsBitGcFont diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/bitgdi/testdata/GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini --- a/graphicsapitest/graphicssvs/bitgdi/testdata/GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi.ini Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,795 +0,0 @@ -[include] -file1 =\graphics\t_graphics.ini - -[fbsSession] -name =fbs - -[fbsBitGc] -name =bitgc - -[fbsBitGc2] -name =bitgc2 - -[fbsScrDev] -name =fbssrcdev - -[fbsBitmap] -name =fbsbmp - -[fbsbitdev] -name =FbsBitDev - -[rfbssession] -name =RFbsSession - -[palette] -name =Palette - - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0001-Load_command03] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0001-SetSizeInTwips_command04] -height =1000 -width =1000 - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0001-NewL_command05] -bitmap =fbsBitmap - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0002-NewL_command02] -bitmap =fbsBitmap - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0003-NewL_command03] -bitmap =fbsBitmap - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0004-Load_command03] -bitmap_id =0 -file_name ={Drives, ROMDriveChar}:\graphics\t_fbservapi\test_bitmap_rom.rbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0004-SetSizeInTwips_command04] -height =1000 -width =1000 - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0004-NewL_command05] -bitmap =fbsBitmap - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0005-Load_command03] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0005-SetSizeInTwips_command04] -height =1000 -width =1000 - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0005-NewL_command05] -bitmap =fbsBitmap -libname =testlib - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0006-NewL_command03] -bitmap =fbsBitmap -libname =testlib - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0007-NewL_command02] -bitmap =fbsBitmap -libname =testlib - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0008-Load_command03] -bitmap_id =0 -file_name ={Drives, ROMDriveChar}:\graphics\t_fbservapi\test_bitmap_rom.rbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0008-SetSizeInTwips_command04] -height =1000 -width =1000 - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0008-NewL_command05] -bitmap =fbsBitmap -libname =testlib - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0009-Load_command03] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0009-NewL_command04] -bitmap =fbsBitmap - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0010-Load_command03] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0010-NewL_command04] -bitmap =fbsBitmap - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0010-Activate_command05] -device =fbsbitdev - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0010-DrawingBegin_command06] -Always =False - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0010-DrawLine_command07] -point1_x =100 -point1_y =100 -point2_x =150 -point2_y =100 - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0010-DrawingEnd_command08] -Always =True - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0011-Load_command03] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0011-NewL_command04] -bitmap =fbsBitmap - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0011-Activate_command05] -device =fbsbitdev - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0011-DrawLine_command06] -point1_x =100 -point1_y =100 -point2_x =150 -point2_y =100 - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0012-Load_command03] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0012-NewL_command04] -bitmap =fbsBitmap - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0012-DrawingBegin_command05] -Always =False - - - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0013-Load_command03] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0013-NewL_command04] -bitmap =fbsBitmap - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0013-DrawingEnd_command05] -Always =False - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0014-Load_command03] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0014-NewL_command04] -bitmap =fbsBitmap - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0014-NewL_command05] -number_of_colors =256 - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0014-SetPalette_command06] -palette =palette - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0015-Load_command03] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0015-NewL_command04] -bitmap =fbsBitmap - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0015-SetPalette_command05] -palette =palette - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0016-Load_command03] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0016-NewL_command04] -bitmap =fbsBitmap - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0016-NewL_command05] -number_of_colors =256 - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0016-SetPalette_command06] -palette =palette - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0016-GetPalette_command07] -palette =palette - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0017-Load_command05] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0017-NewL_command06] -bitmap =fbsBitmap - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0017-NewL_command07] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0017-Activate_command08] -device =fbsbitdev - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0017-Activate_command09] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0017-BitBlt_command10] -point_x =0 -point_y =0 -fbsBitGc =fbsBitGc - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0017-GetPixel_command12] -expected_red =255 -expected_green =255 -expected_blue =255 -point_x =20 -point_y =20 - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0017-GetPixel_command13] -expected_red =0 -expected_green =0 -expected_blue =0 -point_x =10 -point_y =30 - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0018-Load_command03] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0018-NewL_command04] -bitmap =fbsBitmap - -#GetPixel() test for negative x-coordinate -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0018-GetPixel_command05] -point_x =-1 -point_y =0 -red =255 -green =255 -blue =255 -#GetPixel() test for negative y-coordinate -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0018-GetPixel_command06] -point_x =0 -point_y =-1 -red =255 -green =255 -blue =255 -#GetPixel() test for negative x- and y-coordinate -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0018-GetPixel_command07] -point_x =-1 -point_y =-1 -red =255 -green =255 -blue =255 -#GetPixel() test for too big x-coordinate -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0018-GetPixel_command08] -point_x =10000 -point_y =0 -red =255 -green =255 -blue =255 -#GetPixel() test for too big y-coordinate -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0018-GetPixel_command09] -point_x =0 -point_y =10000 -red =255 -green =255 -blue =255 -#GetPixel() test for too big x- and y-coordinate -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0018-GetPixel_command10] -point_x =10000 -point_y =10000 -red =255 -green =255 -blue =255 -#End of datum definition - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0019-Load_command03] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0019-NewL_command04] -bitmap =fbsBitmap - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0019-GetScanLine_command05] -point_x =0 -point_y =20 -length =50 -buff_length =500 -displaymode ={default_wserv, display_mode} -#for checking scanline which is got. Below is optional. -checkScanLine =true -size_width =1 -size_height =1 -displaymode ={default_wserv, display_mode} -scanline_y =20 -checkPointNum =4 -point1_x =1 -expected_point1_red =0 -expected_point1_blue =0 -expected_point1_green =0 -point2_x =20 -expected_point2_red =0 -expected_point2_blue =0 -expected_point2_green =0 -point3_x =35 -expected_point3_red =0 -expected_point3_blue =0 -expected_point3_green =0 -point4_x =49 -expected_point4_red =0 -expected_point4_blue =0 -expected_point4_green =0 - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0020-Load_command03] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0020-NewL_command04] -bitmap =fbsBitmap - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0020-GetScanLine_command05] -point_x =1 -point_y =1 -length =50 -buff_length =0 -displaymode ={default_wserv, display_mode} - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0021-Load_command03] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0021-NewL_command04] -bitmap =fbsBitmap - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0021-GetScanLine_command05] -point_x =1 -point_y =1 -length =0 -buff_length =500 -displaymode ={default_wserv, display_mode} - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0022-Load_command03] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0022-NewL_command04] -bitmap =fbsBitmap - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0022-GetScanLine_command05] -point_x =1 -point_y =1 -length =-1 -buff_length =500 -displaymode ={default_wserv, display_mode} - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0023-Load_command03] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0023-NewL_command04] -bitmap =fbsBitmap - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0023-GetScanLine_command05] -point_x =1 -point_y =1 -length =99999 -buff_length =10000 -displaymode ={default_wserv, display_mode} - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0024-Load_command03] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0024-NewL_command04] -bitmap =fbsBitmap - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0024-GetScanLine_command05] -point_x =-1 -point_y =-1 -length =10 -buff_length =500 -displaymode ={default_wserv, display_mode} - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0025-Load_command03] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0025-NewL_command04] -bitmap =fbsBitmap - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0025-GetScanLine_command05] -point_x =10000 -point_y =10000 -length =10 -buff_length =500 -displaymode ={default_wserv, display_mode} - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0026-Load_command03] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0026-NewL_command04] -bitmap =fbsBitmap - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0026-GetScanLine_command05] -point_x =0 -point_y =0 -length =10 -buff_length =500 -displaymode =-1 - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0027-Load_command03] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0027-NewL_command04] -bitmap =fbsBitmap - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0027-HorizontalPixelsToTwips_command05] -pixels ={default_wserv, scr_width} -expected =0 - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0028-Load_command03] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0028-SetSizeInTwips_command04] -width =100 -height =100 - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0028-NewL_command05] -bitmap =fbsBitmap - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0028-HorizontalPixelsToTwips_command06] -pixels =640 -expected =1280 - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0028-HorizontalPixelsToTwips_command07] -pixels =0 -expected =0 - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0028-HorizontalPixelsToTwips_command08] -pixels =-100 -expected =-199 - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0029-Load_command03] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0029-NewL_command04] -bitmap =fbsBitmap - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0029-HorizontalTwipsToPixels_command05] -twips =7620 -expected =0 - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0030-Load_command03] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0030-SetSizeInTwips_command04] -width =100 -height =100 - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0030-NewL_command05] -bitmap =fbsBitmap - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0030-HorizontalTwipsToPixels_command06] -twips =1280 -expected =640 - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0030-HorizontalTwipsToPixels_command07] -twips =0 -expected =0 - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0030-HorizontalTwipsToPixels_command08] -twips =-100 -expected =-49 - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0031-Load_command03] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0031-NewL_command04] -bitmap =fbsBitmap - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0031-PaletteAttributes_command05] -expected_modifiable =EFalse -expected_entries =4 - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0032-Load_command03] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0032-NewL_command04] -bitmap =fbsBitmap - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0032-NewL_command05] -number_of_colors =256 - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0032-SetPalette_command06] -palette =palette - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0032-PaletteAttributes_command07] -expected_modifiable =EFalse - - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0033-Load_command03] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0033-SetSizeInTwips_command04] -height =1000 -width =1000 - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0033-NewL_command05] -bitmap =fbsBitmap - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0033-SizeInTwips_command06] -expected_width =1000 -expected_height =1000 - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0034-Load_command03] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0034-SetSizeInTwips_command04] -height =1000 -width =1000 - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0034-NewL_command05] -bitmap =fbsBitmap - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0034-SizeInTwips_command06] -expected_width =1000 -expected_height =1000 - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0034-Resize_command07] -resize_width =0 -resize_height =0 - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0034-SizeInTwips_command08] -expected_width =0 -expected_height =0 - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0035-Load_command03] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0035-SetSizeInTwips_command04] -height =1000 -width =1000 - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0035-NewL_command05] -bitmap =fbsBitmap - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0035-SizeInTwips_command06] -expected_width =1000 -expected_height =1000 - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0035-Resize_command07] -resize_width =400000 -resize_height =400000 - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0036-Load_command03] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0036-SetSizeInTwips_command04] -height =1000 -width =1000 - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0036-NewL_command05] -bitmap =fbsBitmap - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0036-SizeInTwips_command06] -expected_width =1000 -expected_height =1000 - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0036-Resize_command07] -resize_width =-1 -resize_height =100 - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0037-Load_command03] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0037-SetSizeInTwips_command04] -height =1000 -width =1000 - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0037-NewL_command05] -bitmap =fbsBitmap - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0037-SizeInTwips_command06] -expected_width =1000 -expected_height =1000 - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0037-Resize_command07] -resize_width =100 -resize_height =-1 - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0038-Load_command03] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0038-SetSizeInTwips_command04] -height =50 -width =50 - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0038-NewL_command05] -bitmap =fbsBitmap - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0038-Resize_command06] -resize_width =20 -resize_height =80 - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0038-SizeInPixels_command08] -expected_width =80 -expected_height =20 - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0039-Load_command03] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0039-SetSizeInTwips_command04] -height =50 -width =50 - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0039-NewL_command05] -bitmap =fbsBitmap - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0039-Activate_command07] -device =fbsbitdev - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0039-Resize_command08] -resize_width =20 -resize_height =80 - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0039-DrawLine_command10] -point1_x =10 -point1_y =30 -point2_x =50 -point2_y =50 - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0040-Load_command03] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0040-NewL_command04] -bitmap =fbsBitmap - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0040-VerticalPixelsToTwips_command05] -pixels =240 -expected =0 - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0041-Load_command03] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0041-SetSizeInTwips_command04] -width =100 -height =100 - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0041-NewL_command05] -bitmap =fbsBitmap - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0041-VerticalPixelsToTwips_command06] -pixels =240 -expected =480 - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0041-VerticalPixelsToTwips_command07] -pixels =0 -expected =0 - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0041-VerticalPixelsToTwips_command08] -pixels =-100 -expected =-199 - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0042-Load_command03] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0042-NewL_command04] -bitmap =fbsBitmap - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0042-VerticalTwipsToPixels_command05] -twips =240 -expected =0 - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0043-Load_command03] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0043-SetSizeInTwips_command04] -width =100 -height =100 - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0043-NewL_command05] -bitmap =fbsBitmap - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0043-VerticalTwipsToPixels_command06] -twips =480 -expected =240 - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0043-VerticalTwipsToPixels_command07] -twips =0 -expected =0 - -[GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0043-VerticalTwipsToPixels_command08] -twips =-200 -expected =-99 diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/bitgdi/testdata/GRAPHICS-BITGDI-FbsDevice-PublicAPI.ini --- a/graphicsapitest/graphicssvs/bitgdi/testdata/GRAPHICS-BITGDI-FbsDevice-PublicAPI.ini Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1766 +0,0 @@ -[include] -file1=\graphics\t_graphics.ini - -[fbsSession] -name =fbs - -[fbsBitGc] -name =bitgc - -[fbsBitGc2] -name =bitgc2 - -[fbsScrDev] -name =scrdev - -[fbsScrDev2] -name =scrdev2 - -[fbsBmpDev] -name =bmpdev - -[fbsBitmap] -name =bmp - -[linkedTypefaceSpec] -name =typefacespec - -[fbsFont] -name =fbsfont - -[palette] -name =palette - -[font] -name =font - -[algstyle] -name =algstyle - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0001-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0001-CreateContext_command03] -bitgc =fbsBitGc - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0001-DrawLine_command05] -point1_x =100 -point1_y =50 -point2_x =150 -point2_y =50 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0001-checkLineColor_command06] -start1_x =100 -start1_y =50 -finish1_x =150 -finish1_y =50 -expected1_red =0 -expected1_green =0 -expected1_blue =0 - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0002-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0002-CreateContext_command03] -context =fbsBitGc - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0002-DrawLine_command05] -point1_x =50 -point1_y =10 -point2_x =50 -point2_y =50 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0002-checkLineColor_command06] -start1_x =50 -start1_y =10 -finish1_x =50 -finish1_y =50 -expected1_red =0 -expected1_green =0 -expected1_blue =0 - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0003-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0003-DisplayMode_command03] -displaymode ={default_bitgdi, displaymode} - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0004-Load_command03] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0004-NewL_command04] -bitmap =fbsBitmap - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0004-SizeInPixels_command05] -expected_width =50 -expected_height =50 - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0005-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0005-CreateContext_command03] -bitgc =fbsBitGc - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0005-SetBrushColor_command05] -color_red =255 -color_green =255 -color_blue =0 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0005-SetBrushStyle_command06] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0005-SetPenColor_command07] -color_red =255 -color_green =255 -color_blue =0 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0005-DrawRect_command08] -rect_top =10 -rect_left =10 -rect_bottom =110 -rect_right =60 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0005-DrawRect_command09] -rect_top =10 -rect_left =80 -rect_bottom =110 -rect_right =130 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0005-RectCompare_command10] -rect1_top =10 -rect1_left =10 -rect1_bottom =110 -rect1_right =60 -rect2_top =10 -rect2_left =80 -rect2_bottom =110 -rect2_right =130 -expected =TRUE - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0006-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0006-CreateContext_command03] -bitgc =fbsBitGc - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0006-SetBrushColor_command05] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0006-SetBrushStyle_command06] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0006-SetPenColor_command07] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0006-DrawRect_command08] -rect_top =10 -rect_left =10 -rect_bottom =110 -rect_right =60 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0006-RectCompare_command09] -rect1_top =10 -rect1_left =10 -rect1_bottom =110 -rect1_right =60 -rect2_top =10 -rect2_left =10 -rect2_bottom =110 -rect2_right =60 -expected =TRUE - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0007-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0007-CreateContext_command03] -bitgc =fbsBitGc - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0007-SetBrushColor_command05] -color_red =0 -color_green =255 -color_blue =0 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0007-SetBrushStyle_command06] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0007-SetPenColor_command07] -color_red =0 -color_green =255 -color_blue =0 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0007-DrawRect_command08] -rect_top =10 -rect_left =10 -rect_bottom =110 -rect_right =60 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0007-RectCompare_command09] -rect1_top =20 -rect1_left =20 -rect1_bottom =20 -rect1_right =20 -rect2_top =10 -rect2_left =80 -rect2_bottom =10 -rect2_right =80 -expected =TRUE - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0008-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0008-CreateContext_command03] -bitgc =fbsBitGc - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0008-SetBrushColor_command05] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0008-SetBrushStyle_command06] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0008-SetPenColor_command07] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0008-DrawRect_command08] -rect_top =10 -rect_left =10 -rect_bottom =110 -rect_right =60 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0008-DrawRect_command09] -rect_top =10 -rect_left =80 -rect_bottom =70 -rect_right =100 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0008-RectCompare_command10] -rect1_top =10 -rect1_left =10 -rect1_bottom =110 -rect1_right =60 -rect2_top =10 -rect2_left =80 -rect2_bottom =70 -rect2_right =100 -expected =FALSE - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0009-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0009-CreateContext_command03] -bitgc =fbsBitGc - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0009-SetBrushColor_command05] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0009-SetBrushStyle_command06] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0009-SetPenColor_command07] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0009-DrawRect_command08] -rect_top =10 -rect_left =10 -rect_bottom =110 -rect_right =60 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0009-SetBrushColor_command09] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0009-SetPenColor_command10] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0009-DrawRect_command11] -rect_top =10 -rect_left =80 -rect_bottom =110 -rect_right =100 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0009-RectCompare_command12] -rect1_top =10 -rect1_left =10 -rect1_bottom =110 -rect1_right =60 -rect2_top =10 -rect2_left =80 -rect2_bottom =110 -rect2_right =100 -expected =FALSE - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0010-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0010-CreateContext_command03] -bitgc =fbsBitGc - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0010-SetBrushColor_command05] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0010-SetBrushStyle_command06] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0010-SetPenColor_command07] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0010-DrawRect_command08] -rect_top =10 -rect_left =10 -rect_bottom =110 -rect_right =60 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0010-SetBrushColor_command09] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0010-SetPenColor_command10] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0010-DrawRect_command11] -rect_top =10 -rect_left =80 -rect_bottom =110 -rect_right =130 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0010-RectCompare_command12] -rect1_top =0 -rect1_left =0 -rect1_bottom =110 -rect1_right =60 -rect2_top =0 -rect2_left =70 -rect2_bottom =110 -rect2_right =130 -expected =FALSE - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0011-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0011-CreateContext_command03] -bitgc =fbsBitGc - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0011-SetBrushColor_command05] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0011-SetBrushStyle_command06] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0011-SetPenColor_command07] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0011-DrawRect_command08] -rect_top =0 -rect_left =0 -rect_bottom =8000 -rect_right =8000 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0011-DrawRect_command09] -rect_top =10 -rect_left =10 -rect_bottom =8010 -rect_right =8010 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0011-RectCompare_command10] -rect1_top =0 -rect1_left =0 -rect1_bottom =8000 -rect1_right =8000 -rect2_top =10 -rect2_left =10 -rect2_bottom =8010 -rect2_right =8010 -expected =FALSE - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0015-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0015-CreateContext_command03] -bitgc =fbsBitGc - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0015-Load_command05] -bitmap_id =0 -file_name =\graphics\bitgdi\test_rwssprite_bitmap.mbm -use_rfile =FALSE -share_if_loaded =TRUE - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0015-NewL_command06] -bitmap =fbsBitmap - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0015-CreateContext_command07] -bitgc =fbsBitGc2 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0015-SetBrushColor_command10] -color_red =0 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0015-SetBrushStyle_command11] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0015-SetPenColor_command12] -color_red =0 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0015-SetBrushColor_command13] -color_red =0 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0015-SetBrushStyle_command14] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0015-SetPenColor_command15] -color_red =0 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0015-DrawRect_command16] -rect_top =10 -rect_left =10 -rect_bottom =40 -rect_right =40 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0015-DrawRect_command17] -rect_top =10 -rect_left =10 -rect_bottom =40 -rect_right =40 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0015-RectCompare_command18] -rect1_top =10 -rect1_left =10 -rect1_bottom =40 -rect1_right =40 -rect2_top =10 -rect2_left =10 -rect2_bottom =40 -rect2_right =40 -fbsdevice =fbsBmpDev -expected =TRUE - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0015-RectCompare_command19] -rect1_top =10 -rect1_left =10 -rect1_bottom =40 -rect1_right =40 -rect2_top =10 -rect2_left =10 -rect2_bottom =40 -rect2_right =40 -fbsdevice =fbsScrDev -expected =TRUE - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0017-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0017-CreateContext_command03] -bitgc =fbsBitGc - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0017-SetBrushColor_command05] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0017-SetBrushStyle_command06] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0017-SetPenColor_command07] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0017-DrawRect_command08] -rect_top =0 -rect_left =0 -rect_bottom =50 -rect_right =50 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0017-DrawRect_command09] -rect_top =10 -rect_left =60 -rect_bottom =50 -rect_right =110 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0017-RectCompare_command10] -rect1_top =10 -rect1_left =10 -rect1_bottom =110 -rect1_right =60 -rect2_top =10 -rect2_left =80 -rect2_bottom =70 -rect2_right =100 -expected =FALSE - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0018-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0018-CreateContext_command03] -bitgc =fbsBitGc - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0018-SetBrushColor_command05] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0018-SetBrushStyle_command06] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0018-SetPenColor_command07] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0018-DrawRect_command08] -rect_top =10 -rect_left =10 -rect_bottom =110 -rect_right =60 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0018-SetBrushColor_command09] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0018-SetPenColor_command10] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0018-DrawRect_command11] -rect_top =10 -rect_left =80 -rect_bottom =150 -rect_right =130 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0018-RectCompare_command12] -rect1_top =10 -rect1_left =10 -rect1_bottom =110 -rect1_right =60 -rect2_top =10 -rect2_left =80 -rect2_bottom =150 -rect2_right =130 -expected =FALSE - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0019-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0019-CreateContext_command03] -bitgc =fbsBitGc - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0019-SetBrushColor_command05] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0019-SetBrushStyle_command06] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0019-SetPenColor_command07] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0019-DrawRect_command08] -rect_top =10 -rect_left =10 -rect_bottom =110 -rect_right =60 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0019-SetBrushColor_command09] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0019-SetPenColor_command10] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0019-DrawRect_command11] -rect_top =10 -rect_left =80 -rect_bottom =110 -rect_right =130 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0019-RectCompare_command12] -rect1_top =10 -rect1_left =10 -rect1_bottom =110 -rect1_right =60 -rect2_top =10 -rect2_left =80 -rect2_bottom =110 -rect2_right =130 -expected =FALSE - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0020-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0020-GetNearestFontToDesignHeightInPixels_command03] -font_name =Acb30 -font_height =357 -font =fbsFont - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0020-FontSpecInTwips_command04] -expected_font_name =Acb30 -expected_font_height =357 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0020-ReleaseFont_command05] -font =fbsFont - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0020-AddFile_command06] -file =\graphics\bitgdi\testfontws.gdr - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0020-GetNearestFontToDesignHeightInPixels_command07] -font_name =Acb30 -font_height =357 -font =fbsFont - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0020-FontSpecInTwips_command08] -expected_font_name =Acb30 -expected_font_height =357 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0020-ReleaseFont_command09] -font =fbsFont - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0020-RemoveFile_command10] -file =\graphics\bitgdi\testfontws.gdr - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0021-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0021-AddFile_command03] -file =\graphics\bitgdi - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0022-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0022-AddFile_command03] -file =\graphics\bitgdi\NOSUCHFILE - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0023-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0023-AddFile_command03] -file =\graphics\bitgdi\testfontws.gdr - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0023-GetNearestFontToDesignHeightInPixels_command04] -font_name =Acb30 -font_height =357 -font =fbsFont - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0023-FontSpecInTwips_command05] -expected_font_name =Acb30 -expected_font_height =357 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0023-ReleaseFont_command06] -font =fbsFont - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0023-RemoveFile_command07] -file =\graphics\bitgdi\testfontws.gdr - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0023-GetNearestFontToDesignHeightInPixels_command08] -font_name =Acb30 -font_height =357 -font =fbsFont - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0023-FontSpecInTwips_command09] -expected_font_name =Acb30 -expected_font_height =357 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0023-ReleaseFont_command10] -font =fbsFont - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0024-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0024-AddFile_command03] -file =\graphics\bitgdi\testfontws.gdr - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0024-GetNearestFontToDesignHeightInPixels_command04] -font_name =Acb30 -font_height =357 -font =fbsFont - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0024-FontSpecInTwips_command05] -expected_font_name =Acb30 -expected_font_height =357 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0024-ReleaseFont_command06] -font =fbsFont - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0024-RemoveFile_command07] -id =0 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0024-GetNearestFontToDesignHeightInPixels_command08] -font_name =Acb30 -font_height =357 -font =fbsFont - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0024-FontSpecInTwips_command09] -expected_font_name =Acb30 -expected_font_height =357 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0024-ReleaseFont_command10] -font =fbsFont - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0025-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0025-RemoveFile_command03] -id =-9 - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0026-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0026-NumTypefaces_command03] -expected ={default_bitgdi, num_typefaces} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0026-AddFile_command04] -file =\graphics\bitgdi\testfontws.gdr - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0026-NumTypefaces_command05] -expected ={default_bitgdi, num_typefaces_after_add_file} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0026-RemoveFile_command06] -file =\graphics\bitgdi\testfontws.gdr - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0026-NumTypefaces_command07] -expected ={default_bitgdi, num_typefaces} - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0027-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0027-TypefaceSupport_command03] -index =6 -expected_typeface_name ={default_bitgdi, typeface_name_6} -expected_num_heights ={default_bitgdi, typeface_num_heights_6} -expected_is_scalable ={default_bitgdi, typeface_is_scalable_6} -expected_max_height_in_twips={default_bitgdi, typeface_max_height_in_twips_6} -expected_min_height_in_twips={default_bitgdi, typeface_min_height_in_twips_6} - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0028-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0028-TypefaceSupport_command03] -index =-6 - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0029-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0029-NewL_command03] -number_of_colors=256 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0029-SetCustomPalette_command04] -palette =palette - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0029-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0030-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0031-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0031-CreateContext_command03] -bitgc =fbsBitGc - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0031-SetOrientation_command05] -orientation =EGraphicsOrientationRotated90 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0031-Orientation_command06] -expectedorientation =EGraphicsOrientationRotated90 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0031-SetOrientation_command08] -orientation =EGraphicsOrientationRotated180 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0031-Orientation_command09] -expectedorientation =EGraphicsOrientationRotated180 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0031-SetOrientation_command11] -orientation =EGraphicsOrientationRotated270 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0031-Orientation_command12] -expectedorientation =EGraphicsOrientationRotated270 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0031-SetOrientation_command14] -orientation =EGraphicsOrientationNormal - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0031-Orientation_command15] -expectedorientation =EGraphicsOrientationNormal - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0032-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0032-DisplayMode16M_command3] -expecteddisplaymode =EColor16MU - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-SetScalingFactor_command03] -origin_x =10 -origin_y =10 -factorx =5 -factory =5 -divisorx =1 -divisory =1 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-CreateContext_command04] -bitgc =fbsBitGc - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-SetBrushColor_command06] -color_red =0 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-SetBrushStyle_command07] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-SetPenColor_command08] -color_red =0 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-DrawRect_command09] -rect_top =10 -rect_left =10 -rect_bottom =30 -rect_right =30 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-checkRectColor_command10] -rect1_top =10 -rect1_left =10 -rect1_bottom =30 -rect1_right =30 -expected1_red =0 -expected1_green =255 -expected1_blue =255 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-SetScalingFactor_command13] -origin_x =0 -origin_y =0 -factorx =1 -factory =1 -divisorx =1 -divisory =1 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-Activate_command14] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-SetBrushColor_command15] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-SetBrushColor_command17] -color_red =0 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-SetBrushStyle_command18] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-SetPenColor_command19] -color_red =0 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-DrawRect_command20] -rect_top =0 -rect_left =0 -rect_bottom =50 -rect_right =50 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-checkRectColor_command21] -rect1_top =0 -rect1_left =0 -rect1_bottom =50 -rect1_right =50 -expected1_red =0 -expected1_green =255 -expected1_blue =255 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-SetScalingFactor_command24] -origin_x =10 -origin_y =10 -factorx =1 -factory =1 -divisorx =1 -divisory =1 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-Activate_command25] -device =fbsScrDev - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-SetBrushColor_command26] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-SetBrushColor_command28] -color_red =0 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-SetBrushStyle_command29] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-SetPenColor_command30] -color_red =0 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-DrawRect_command31] -rect_top =0 -rect_left =0 -rect_bottom =50 -rect_right =50 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0033-checkRectColor_command32] -rect1_top =0 -rect1_left =0 -rect1_bottom =50 -rect1_right =50 -expected1_red =0 -expected1_green =255 -expected1_blue =255 - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0034-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0034-SetScalingFactor_command03] -origin_x =10 -origin_y =10 -factorx =-10 -factory =10 -divisorx =1 -divisory =1 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0034-CreateContext_command04] -bitgc =fbsBitGc - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0034-SetBrushColor_command06] -color_red =0 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0034-SetBrushStyle_command07] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0034-SetPenColor_command08] -color_red =0 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0034-DrawRect_command09] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =100 - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0035-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0035-SetScalingFactor_command03] -origin_x =10 -origin_y =10 -factorx =10 -factory =-10 -divisorx =1 -divisory =1 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0035-CreateContext_command04] -bitgc =fbsBitGc - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0035-SetBrushColor_command06] -color_red =0 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0035-SetBrushStyle_command07] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0035-SetPenColor_command08] -color_red =0 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0035-DrawRect_command09] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =100 - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0036-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0036-SetScalingFactor_command03] -origin_x =-100 -origin_y =-100 -factorx =10 -factory =10 -divisorx =1 -divisory =1 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0036-CreateContext_command04] -bitgc =fbsBitGc - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0036-SetBrushColor_command06] -color_red =0 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0036-SetBrushStyle_command07] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0036-SetPenColor_command08] -color_red =0 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0036-DrawRect_command09] -rect_top =10 -rect_left =10 -rect_bottom =30 -rect_right =30 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0036-checkRectColor_command10] -rect1_top =10 -rect1_left =10 -rect1_bottom =30 -rect1_right =30 -expected1_red =0 -expected1_green =255 -expected1_blue =255 - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0037-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0037-SetScalingFactor_command03] -origin_x =9100 -origin_y =9100 -factorx =10 -factory =10 -divisorx =1 -divisory =1 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0037-CreateContext_command04] -bitgc =fbsBitGc - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0037-SetBrushColor_command06] -color_red =0 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0037-SetBrushStyle_command07] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0037-SetPenColor_command08] -color_red =0 -color_green =255 -color_blue =255 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0037-DrawRect_command09] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =100 - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0038-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0039-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0039-SetScalingFactor_command03] -origin_x =5 -origin_y =5 -factorx =10 -factory =10 -divisorx =1 -divisory =1 - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0040-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0040-NewLC_command03] -typefacename =aTypeFace - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0040-RegisterLinkedTypeface_command04] -linkedtypefacespec =linkedTypefaceSpec - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0041-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0041-CreateContext_command03] -bitgc =fbsBitGc - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0041-SetBrushColor_command05] -color_red =0 -color_green =255 -color_blue =0 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0041-SetBrushStyle_command06] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0041-SetPenColor_command07] -color_red =0 -color_green =255 -color_blue =0 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0041-SetDrawDeviceOffset_command08] -offset_x =50 -offset_y =50 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0041-DrawRect_command09] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =100 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0041-checkRectColor_command10] -rect1_top =0 -rect1_left =0 -rect1_bottom =100 -rect1_right =100 -expected1_red =0 -expected1_green =255 -expected1_blue =0 - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0042-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0042-CreateContext_command03] -bitgc =fbsBitGc - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0042-SetBrushColor_command05] -color_red =0 -color_green =255 -color_blue =0 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0042-SetBrushStyle_command06] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0042-SetPenColor_command07] -color_red =0 -color_green =255 -color_blue =0 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0042-SetDrawDeviceOffset_command08] -offset_x =-50 -offset_y =-50 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0042-DrawRect_command09] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =100 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0042-checkRectColor_command10] -rect1_top =50 -rect1_left =50 -rect1_bottom =100 -rect1_right =100 -expected1_red =0 -expected1_green =255 -expected1_blue =0 - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0043-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0043-CreateContext_command03] -bitgc =fbsBitGc - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0043-SetBrushColor_command05] -color_red =0 -color_green =255 -color_blue =0 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0043-SetBrushStyle_command06] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0043-SetPenColor_command07] -color_red =0 -color_green =255 -color_blue =0 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0043-SetDrawDeviceOffset_command08] -offset_x =-100 -offset_y =-100 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0043-DrawRect_command09] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =100 - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0044-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0044-CreateContext_command03] -bitgc =fbsBitGc - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0044-SetBrushColor_command05] -color_red =0 -color_green =255 -color_blue =0 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0044-SetBrushStyle_command06] -brushstyle =ESolidBrush - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0044-SetPenColor_command07] -color_red =0 -color_green =255 -color_blue =0 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0044-SetDrawDeviceOffset_command08] -offset_x =9000 -offset_y =9000 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0044-DrawRect_command09] -rect_top =0 -rect_left =0 -rect_bottom =100 -rect_right =100 - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0201-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0201-GetFontById_command04] -font_uid =268435493 -alg_style =algstyle -font =font - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0201-FontMaxHeight_command05] -expected_result =13 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0201-ReleaseFont_command06] -font =font - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0202-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0202-GetFontById_command04] -font_uid =268435493 -alg_style =algstyle -fbsfont =fbsFont - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0202-FontMaxHeight_command05] -expected_result =13 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0202-ReleaseFont_command06] -font =fbsFont - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0203-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0203-GetFontById_command04] -font_uid =12345 -alg_style =algstyle -font =font - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0203-ReleaseFont_command05] -font =font - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0204-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0204-GetFontById_command04] -font_uid =12345 -alg_style =algstyle -fbsfont =fbsFont - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0204-ReleaseFont_command05] -font =fbsFont - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0211-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0211-GetNearestFontToDesignHeightInPixels_command04] -font_name =DejaVu Sans Mono -font_height =30 -fbsfont =fbsFont - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0211-FontMaxHeight_command05] -expected_result ={default_bitgdi, nearest_to_30pixels} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0211-ReleaseFont_command06] -font =fbsFont - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0212-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0212-GetNearestFontToDesignHeightInPixels_command04] -font_name = -font_height =30 -fbsfont =fbsFont - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0212-FontMaxHeight_command05] -expected_result ={default_bitgdi, nearest_to_30pixels} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0212-ReleaseFont_command06] -font =fbsFont - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0213-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0213-GetNearestFontToDesignHeightInPixels_command04] -font_name =DejaVu Sans Mono -font_height =999999 -fbsfont =fbsFont - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0213-FontMaxHeight_command05] -expected_result ={default_bitgdi, large_fontheight_pixels} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0213-GetNearestFontToDesignHeightInPixels_command06] -font_name =DejaVu Sans Mono -font_height =0 -fbsfont =fbsFont - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0213-FontMaxHeight_command07] -expected_result ={default_bitgdi, nearest_to_0pixels} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0213-GetNearestFontToDesignHeightInPixels_command08] -font_name =DejaVu Sans Mono -font_height =-1 -fbsfont =fbsFont - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0213-FontMaxHeight_command09] -expected_result ={default_bitgdi, large_fontheight_pixels} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0213-ReleaseFont_command10] -font =fbsFont - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0214-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0214-GetNearestFontToDesignHeightInTwips_command04] -font_name =DejaVu Sans Mono -font_height =500 -fbsfont =fbsFont - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0214-FontSpecInTwips_command05] -expected_font_name =DejaVu Sans Mono -expected_font_height ={default_bitgdi, nearest_to_500twips} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0214-ReleaseFont_command06] -font =fbsFont - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0215-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0215-GetNearestFontToDesignHeightInTwips_command04] -font_name = -font_height =500 -fbsfont =fbsFont - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0215-FontSpecInTwips_command05] -expected_font_name =DejaVu Sans Mono -expected_font_height ={default_bitgdi, nearest_to_500twips} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0215-ReleaseFont_command06] -font =fbsFont - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0216-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0216-GetNearestFontToDesignHeightInTwips_command04] -font_name =DejaVu Sans Mono -font_height =999999 -fbsfont =fbsFont - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0216-FontSpecInTwips_command05] -expected_font_name =DejaVu Sans Mono -expected_font_height ={default_bitgdi, large_fontheight_twips} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0216-GetNearestFontToDesignHeightInTwips_command06] -font_name =DejaVu Sans Mono -font_height =0 -fbsfont =fbsFont - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0216-FontSpecInTwips_command07] -expected_font_name =DejaVu Sans Mono -expected_font_height ={default_bitgdi, nearest_to_0twips} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0216-GetNearestFontToDesignHeightInTwips_command08] -font_name =DejaVu Sans Mono -font_height =-1 -fbsfont =fbsFont - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0216-FontSpecInTwips_command09] -expected_font_name =DejaVu Sans Mono -expected_font_height ={default_bitgdi, nearest_to_-1twips} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0216-ReleaseFont_command10] -font =fbsFont - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0221-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0221-GetNearestFontToMaxHeightInPixels_command04] -fbsfont =fbsFont -font_name =DejaVu Sans Mono -font_height =0 -maxheight =30 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0221-FontMaxHeight_command05] -expected_result ={default_bitgdi, maxheight_30pixels} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0221-ReleaseFont_command06] -font =fbsFont - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0222-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0222-GetNearestFontToMaxHeightInPixels_command04] -font_name = -font_height =0 -fbsfont =fbsFont -maxheight =30 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0222-FontMaxHeight_command05] -expected_result ={default_bitgdi, maxheight_30pixels} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0222-ReleaseFont_command06] -font =fbsFont - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0223-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0223-GetNearestFontToMaxHeightInPixels_command04] -font_name =DejaVu Sans Mono -font_height =0 -fbsfont =fbsFont -maxheight =999999 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0223-GetNearestFontToMaxHeightInPixels_command06] -font_name =DejaVu Sans Mono -font_height =10 -fbsfont =fbsFont -maxheight =0 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0223-FontMaxHeight_command07] -expected_result =expected_result ={default_bitgdi, maxheight_0pixels} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0223-ReleaseFont_command08] -font =fbsFont - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0224-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0224-GetNearestFontToMaxHeightInTwips_command04] -font_name =DejaVu Sans Mono -font_height =0 -fbsfont =fbsFont -maxheight =500 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0224-FontSpecInTwips_command05] -expected_font_name =DejaVu Sans Mono -expected_font_height ={default_bitgdi, maxheight_500twips} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0224-ReleaseFont_command06] -font =fbsFont - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0225-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0225-GetNearestFontToMaxHeightInTwips_command04] -font_name = -font_height =0 -fbsfont =fbsFont -maxheight =500 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0225-FontSpecInTwips_command05] -expected_font_name =DejaVu Sans Mono -expected_font_height ={default_bitgdi, maxheight_500twips} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0225-ReleaseFont_command06] -font =fbsFont - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0226-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0226-GetNearestFontToMaxHeightInTwips_command04] -font_name =DejaVu Sans Mono -font_height =0 -fbsfont =fbsFont -maxheight =999999 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0226-GetNearestFontToMaxHeightInTwips_command06] -font_name =DejaVu Sans Mono -font_height =10 -fbsfont =fbsFont -maxheight =0 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0226-FontSpecInTwips_command07] -expected_font_name =DejaVu Sans Mono -expected_font_height ={default_bitgdi, nearest_to_0twips} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0226-GetNearestFontToMaxHeightInTwips_command08] -font_name =DejaVu Sans Mono -font_height =0 -fbsfont =fbsFont -maxheight =-1 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0226-FontSpecInTwips_command09] -expected_font_name =DejaVu Sans Mono -expected_font_height ={default_bitgdi, nearest_to_-1twips} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0226-ReleaseFont_command10] -font =fbsFont - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0231-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0231-FontHeightInPixels_command04] -typeface_index =0 -height_index =0 -expected ={default_bitgdi, height_pixels_0_0} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0231-ReleaseFont_command05] -font =fbsFont - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0232-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0232-FontHeightInPixels_command04] -typeface_index =999 -height_index =0 -expected =0 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0232-ReleaseFont_command05] -font =fbsFont - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0233-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0233-FontHeightInPixels_command04] -typeface_index =0 -height_index =999 -expected ={default_bitgdi, height_pixels_0_large} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0233-FontHeightInPixels_command05] -typeface_index =0 -height_index =-1 -expected =0 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0233-ReleaseFont_command06] -font =fbsFont - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0234-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0234-FontHeightInTwips_command03] -typeface_index =0 -height_index =0 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0234-ReleaseFont_command04] -font =fbsFont - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0235-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0235-FontHeightInTwips_command04] -typeface_index =999 -height_index =0 -expected =0 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0235-ReleaseFont_command05] -font =fbsFont - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0236-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0236-FontHeightInTwips_command03] -typeface_index =0 -height_index =999 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0236-FontHeightInTwips_command04] -typeface_index =0 -height_index =-1 -expected =0 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0236-ReleaseFont_command05] -font =fbsFont - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0241-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0241-GetNearestFontToDesignHeightInPixels_command03] -font =font -font_name =DejaVu Sans Mono -font_height =0 -maxheight =30 - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0241-ReleaseFont_command04] -font =font - - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0242-NewL_command02] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-BITGDI-FbsDevice-PublicApi-0242-ReleaseFont_command03] -font =font - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/bitgdi/testdata/GRAPHICS-BITGDI-FbsScreenDevice-PublicAPI.ini --- a/graphicsapitest/graphicssvs/bitgdi/testdata/GRAPHICS-BITGDI-FbsScreenDevice-PublicAPI.ini Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,603 +0,0 @@ -[include] -file1=\graphics\t_graphics.ini - -[fbsscrdev] -name =FbsScrDev - -[fbsscrdev1] -name =FbsScrDev1 - -[fbsscrdev2] -name =FbsScrDev2 - -[rfbssession] -name =RFbsSession - -[fbsbitgc] -name =CFbsBitGc - -[palette] -name =Palette - - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0001-NewL_command03] -libname =testlib -displaymode ={default_bitgdi, displaymode} - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0002-NewL_command03] -libname =testlib -displaymode =100 - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0003-NewL_command03] -libname =testlib -displaymode ={default_bitgdi, displaymode} -rgb_red =0 -rgb_green =0 -rgb_blue =0 - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0004-NewL_command03] -libname =testlib -displaymode =100 -rgb_red =0 -rgb_green =0 -rgb_blue =0 - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0005-NewL_command03] -screen_number ={default_bitgdi, screennumber} -displaymode ={default_bitgdi, displaymode} - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0006-NewL_command03] -screen_number =100 -displaymode ={default_bitgdi, displaymode} - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0007-NewL_command03] -screen_number ={default_bitgdi, screennumber} -displaymode =100 - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0008-NewL_command03] -screen_number ={default_bitgdi, screennumber} -displaymode ={default_bitgdi, displaymode} - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0009-NewL_command03] -screen_number ={default_bitgdi, screennumber} -displaymode ={default_bitgdi, displaymode} - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0010-NewL_command03] -screen_number ={default_bitgdi, screennumber} -displaymode ={default_bitgdi, displaymode} - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0010-Activate_command05] -device =fbsscrdev - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0010-DrawLine_command07] -point1_x =20 -point1_y =20 -point2_x =60 -point2_y =60 - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0010-checkPixels_command09] -pixel1_x=20 -pixel1_y=20 -expected1_red=0 -expected1_green=0 -expected1_blue=0 -pixel2_x=40 -pixel2_y=40 -expected2_red=0 -expected2_green=0 -expected2_blue=0 -pixel3_x=59 -pixel3_y=59 -expected3_red=0 -expected3_green=0 -expected3_blue=0 - - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0011-NewL_command03] -screen_number ={default_bitgdi, screennumber} -displaymode ={default_bitgdi, displaymode} - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0011-Activate_command05] -device =fbsscrdev - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0011-DrawLine_command07] -point1_x =20 -point1_y =20 -point2_x =60 -point2_y =60 - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0011-Update_command08] -region1_top =20 -region1_left =20 -region1_bottom =70 -region1_right =70 -region2_top =30 -region2_left =30 -region2_bottom =80 -region2_right =80 - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0011-checkPixels_command09] -pixel1_x=20 -pixel1_y=20 -expected1_red=0 -expected1_green=0 -expected1_blue=0 -pixel2_x=40 -pixel2_y=40 -expected2_red=0 -expected2_green=0 -expected2_blue=0 -pixel3_x=59 -pixel3_y=59 -expected3_red=0 -expected3_green=0 -expected3_blue=0 - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0012-NewL_command03] -screen_number ={default_bitgdi, screennumber} -displaymode ={default_bitgdi, displaymode} - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0012-Activate_command05] -device =fbsscrdev - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0012-SetAutoUpdate_command06] -autoupdate =EFalse - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0012-SetPenColor_command08] -color_red=0 -color_green=0 -color_blue=0 - - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0012-DrawLine_command09] -point1_x =50 -point1_y =20 -point2_x =56 -point2_y =20 - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0012-checkPixels_command10] -pixel1_x=50 -pixel1_y=20 -expected1_red=0 -expected1_green=0 -expected1_blue=0 -pixel2_x=53 -pixel2_y=20 -expected2_red=0 -expected2_green=0 -expected2_blue=0 -pixel3_x=54 -pixel3_y=20 -expected3_red=0 -expected3_green=0 -expected3_blue=0 - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0012-checkPixels_command12] -pixel1_x=52 -pixel1_y=20 -expected1_red=0 -expected1_green=0 -expected1_blue=0 -pixel2_x=53 -pixel2_y=20 -expected2_red=0 -expected2_green=0 -expected2_blue=0 -pixel3_x=54 -pixel3_y=20 -expected3_red=0 -expected3_green=0 -expected3_blue=0 - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0013-NewL_command03] -screen_number ={default_bitgdi, screennumber} -displaymode ={default_bitgdi, displaymode} - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0013-Activate_command05] -device =fbsscrdev - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0013-SetAutoUpdate_command06] -autoupdate =ETrue - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0013-DrawLine_command07] -point1_x =20 -point1_y =20 -point2_x =50 -point2_y =60 - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0013-checkPixels_command08] -pixel1_x=20 -pixel1_y=20 -expected1_red=0 -expected1_green=0 -expected1_blue=0 -pixel2_x=35 -pixel2_y=40 -expected2_red=0 -expected2_green=0 -expected2_blue=0 -pixel3_x=50 -pixel3_y=60 -expected1_red=0 -expected1_green=0 -expected1_blue=0 - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0014-NewL_command03] -screen_number ={default_bitgdi, screennumber} -displaymode ={default_bitgdi, displaymode} - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0015-NewL_command03] -screen_number ={default_bitgdi, screennumber} -displaymode ={default_bitgdi, displaymode} - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0015-NewL_command04] -screen_number ={default_bitgdi, screennumber} -displaymode ={default_bitgdi, displaymode} - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0015-ChangeScreenDevice_command05] -FbsScrDevName =fbsscrdev1 - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0016-NewL_command03] -screen_number ={default_bitgdi, screennumber} -displaymode ={default_bitgdi, displaymode} - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0016-ChangeScreenDevice_command04] -FbsScrDevName =fbsscrdev1 - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0017-NewL_command03] -screen_number ={default_bitgdi, screennumber} -displaymode ={default_bitgdi, displaymode} - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0017-ChangeScreenDevice_command04] -FbsScrDevName =fbsscrdev - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0018-NewL_command03] -screen_number ={default_bitgdi, screennumber} -displaymode ={default_bitgdi, displaymode} - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0019-NewL_command03] -screen_number ={default_bitgdi, screennumber} -displaymode ={default_bitgdi, displaymode} - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0019-GetPixel_command04] -expected_red=255 -expected_green=255 -expected_blue=255 -point_x=1 -point_y=1 - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0020-NewL_command03] -screen_number ={default_bitgdi, screennumber} -displaymode ={default_bitgdi, displaymode} - -#GetPixel() test for negative x-coordinate -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0020-GetPixel_command04] -point_x=-1 -point_y=0 -red=255 -green=255 -blue=255 -#GetPixel() test for negative y-coordinate -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0020-GetPixel_command05] -point_x=0 -point_y=-1 -red=255 -green=255 -blue=255 -#GetPixel() test for negative x- and y-coordinate -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0020-GetPixel_command06] -point_x=-1 -point_y=-1 -red=255 -green=255 -blue=255 -#GetPixel() test for too big x-coordinate -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0020-GetPixel_command07] -point_x=10000 -point_y=0 -red=255 -green=255 -blue=255 -#GetPixel() test for too big y-coordinate -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0020-GetPixel_command08] -point_x=0 -point_y=10000 -red=255 -green=255 -blue=255 -#GetPixel() test for too big x- and y-coordinate -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0020-GetPixel_command09] -point_x=10000 -point_y=10000 -red=255 -green=255 -blue=255 -#End of datum definition - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0021-NewL_command03] -screen_number ={default_bitgdi, screennumber} -displaymode ={default_bitgdi, displaymode} - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0021-HorizontalPixelsToTwips_command04] -pixels={default_wserv, scr_width} - -[GRAPHICS-BitGDI-CFbsScreenDevice-PublicApi-0022-new_command03] -screen_number ={default_bitgdi, screennumber} -displaymode ={default_bitgdi, displaymode} - -[GRAPHICS-BitGDI-CFbsScreenDevice-PublicApi-0022-HorizontalPixelsToTwips_command04] -pixels ={device_map, horizontal_pixels_5} -//expected ={device_map, horizontal_twips_5} - -[GRAPHICS-BitGDI-CFbsScreenDevice-PublicApi-0022-HorizontalPixelsToTwips_command05] -pixels =0 -expected =0 - -[GRAPHICS-BitGDI-CFbsScreenDevice-PublicApi-0022-HorizontalPixelsToTwips_command06] -pixels ={device_map, horizontal_pixels_6} -//expected ={device_map, horizontal_twips_6} - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0023-NewL_command03] -screen_number ={default_bitgdi, screennumber} -displaymode ={default_bitgdi, displaymode} - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0023-VerticalPixelsToTwips_command04] -pixels={default_wserv, scr_height} - -[GRAPHICS-BitGDI-CFbsScreenDevice-PublicApi-0024-new_command03] -screen_number ={default_bitgdi, screennumber} -displaymode ={default_bitgdi, displaymode} - -[GRAPHICS-BitGDI-CFbsScreenDevice-PublicApi-0024-VerticalPixelsToTwips_command04] -pixels={device_map, vertical_pixels_5} -//expected={device_map, vertical_twips_5} - -[GRAPHICS-BitGDI-CFbsScreenDevice-PublicApi-0024-VerticalPixelsToTwips_command05] -pixels=0 -expected=0 - -[GRAPHICS-BitGDI-CFbsScreenDevice-PublicApi-0024-VerticalPixelsToTwips_command06] -pixels={device_map, vertical_pixels_6} -//expected={device_map, vertical_twips_6} - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0025-NewL_command03] -screen_number ={default_bitgdi, screennumber} -displaymode ={default_bitgdi, displaymode} - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0025-HorizontalTwipsToPixels_command04] -twips={default_wserv, scr_twips_width} - - -[GRAPHICS-BitGDI-CFbsScreenDevice-PublicApi-0026-new_command03] -screen_number ={default_bitgdi, screennumber} -displaymode ={default_bitgdi, displaymode} - -[GRAPHICS-BitGDI-CFbsScreenDevice-PublicApi-0026-HorizontalTwipsToPixels_command04] -twips ={device_map, horizontal_twips_7} -//expected ={device_map, horizontal_pixels_7} - -[GRAPHICS-BitGDI-CFbsScreenDevice-PublicApi-0026-HorizontalTwipsToPixels_command05] -twips =0 -expected =0 - -[GRAPHICS-BitGDI-CFbsScreenDevice-PublicApi-0026-HorizontalTwipsToPixels_command06] -twips={device_map, horizontal_twips_8} -//expected={device_map, horizontal_pixels_8} - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0027-NewL_command03] -screen_number ={default_bitgdi, screennumber} -displaymode ={default_bitgdi, displaymode} - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0027-VerticalTwipsToPixels_command04] -twips={default_wserv, scr_twips_height} - - -[GRAPHICS-BitGDI-CFbsScreenDevice-PublicApi-0028-new_command03] -screen_number ={default_bitgdi, screennumber} -displaymode ={default_bitgdi, displaymode} - -[GRAPHICS-BitGDI-CFbsScreenDevice-PublicApi-0028-VerticalTwipsToPixels_command04] -twips ={device_map, vertical_twips_7} -//expected ={device_map, vertical_pixels_7} - -[GRAPHICS-BitGDI-CFbsScreenDevice-PublicApi-0028-VerticalTwipsToPixels_command05] -twips =0 -expected =0 - -[GRAPHICS-BitGDI-CFbsScreenDevice-PublicApi-0028-VerticalTwipsToPixels_command06] -twips ={device_map, vertical_twips_8} -//expected ={device_map, vertical_pixels_8} - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0029-NewL_command03] -screen_number ={default_bitgdi, screennumber} -displaymode ={default_bitgdi, displaymode} - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0029-Activate_command05] -device =fbsscrdev - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0029-DrawLine_command06] -point1_x =25 -point1_y =25 -point2_x =45 -point2_y =25 - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0029-GetScanLine_command08] -point_x =25 -point_y =25 -length =50 -buff_length =500 -displaymode ={default_wserv, display_mode} -#for checking scanline which is got. Below is optional. -checkScanLine =true -size_width =1 -size_height =1 -displaymode ={default_wserv, display_mode} -scanline_y =1 -checkPointNum =3 -point1_x =1 -expected_point1_red =0 -expected_point1_blue =0 -expected_point1_green =0 -point2_x =25 -expected_point2_red =0 -expected_point2_blue =0 -expected_point2_green =0 -point3_x =49 -expected_point3_red =0 -expected_point3_blue =0 -expected_point3_green =0 - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0030-NewL_command03] -screen_number ={default_bitgdi, screennumber} -displaymode ={default_bitgdi, displaymode} - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0030-GetScanLine_command04] -point_x=1 -point_y=1 -length=50 -buff_length=0 -displaymode={default_wserv, display_mode} - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0031-NewL_command03] -screen_number ={default_bitgdi, screennumber} -displaymode ={default_bitgdi, displaymode} - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0031-GetScanLine_command04] -point_x=1 -point_y=1 -length=0 -buff_length=500 -displaymode={default_wserv, display_mode} -displaymode={default_wserv, display_mode} -#for checking scanline which is got. Below is optional. -checkScanLine=true -#check the scan line's length is 0. -scanLineBufferLength=0 -#End of datum definition - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0032-NewL_command03] -screen_number ={default_bitgdi, screennumber} -displaymode ={default_bitgdi, displaymode} - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0032-GetScanLine_command04] -point_x=1 -point_y=1 -length=-1 -buff_length=500 -displaymode={default_wserv, display_mode} -#End of datum definition - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0033-NewL_command03] -screen_number ={default_bitgdi, screennumber} -displaymode ={default_bitgdi, displaymode} - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0033-GetScanLine_command04] -point_x=0 -point_y=0 -length=99999 -buff_length=10000 -displaymode={default_wserv, display_mode} -#End of datum definition - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0034-NewL_command03] -screen_number ={default_bitgdi, screennumber} -displaymode ={default_bitgdi, displaymode} - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0034-Activate_command05] -device =fbsscrdev - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0034-GetScanLine_command07] -point_x=-1 -point_y=-1 -length=10 -buff_length=500 -displaymode={default_wserv, display_mode} -#for checking scanline which is got. Below is optional. -checkScanLine=false - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0035-NewL_command03] -screen_number ={default_bitgdi, screennumber} -displaymode ={default_bitgdi, displaymode} - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0035-Activate_command05] -device =fbsscrdev - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0035-GetScanLine_command07] -point_x=10000 -point_y=10000 -length=10 -buff_length=500 -displaymode={default_wserv, display_mode} -#for checking scanline which is got. Below is optional. -checkScanLine=false - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0036-NewL_command03] -screen_number ={default_bitgdi, screennumber} -displaymode ={default_bitgdi, displaymode} - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0036-GetScanLine_command04] -point_x=0 -point_y=0 -length=10 -buff_length=500 -displaymode=-1 -##for checking scanline which is got. Below is optional. -checkScanLine=true -size_width=100 -size_height=100 -displaymode={default_wserv, display_mode} -point_x=1 -point_y=1 -expected_red=255 -expected_blue=255 -expected_green=255 -#End of datum definition - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0037-NewL_command03] -screen_number ={default_bitgdi, screennumber} -displaymode ={default_bitgdi, displaymode} - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0037-PaletteAttributes_command04] -expected_modifiable ={device_map, modifiable} -expected_entries ={device_map, entries} - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0038-NewL_command03] -screen_number ={default_bitgdi, screennumber} -displaymode ={default_bitgdi, displaymode} - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0038-NewL_command04] -number_of_colors =256 - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0038-SetPalette_command05] -palette =palette - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0038-GetPalette_command06] -palette =palette - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0039-NewL_command01] -number_of_colors =256 - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0039-NewL_command04] -screen_number ={default_bitgdi, screennumber} -displaymode ={default_bitgdi, displaymode} - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0039-SetPalette_command05] -palette=palette - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0039-GetPalette_command06] -palette=palette - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0040-NewL_command03] -screen_number ={default_bitgdi, screennumber} -displaymode ={default_bitgdi, displaymode} - - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0041-NewL_command03] -libname =testlib -displaymode ={default_bitgdi, displaymode} - -[GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0041-ScreenNo_command04] -expected =0 - - - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/bitgdi/testdata/GRAPHICS-BITGDI-PolygonFiller-PublicApi.ini --- a/graphicsapitest/graphicssvs/bitgdi/testdata/GRAPHICS-BITGDI-PolygonFiller-PublicApi.ini Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,542 +0,0 @@ -[include] -file1=\graphics\t_graphics.ini - -[polygonfiller] -name=polygonfiller - -[GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0001-0001-Construct_Command02] -pointlist1_x =80 -pointlist1_y =40 -pointlist2_x =50 -pointlist2_y =50 -pointlist3_x =120 -pointlist3_y =60 -pointlist4_x =100 -pointlist4_y =90 -pointlist5_x =90 -pointlist5_y =110 -fillrule=EAlternate -usage=EGetAllPixelRunsSequentially - -[GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0002-0001-Construct_Command02] -pointlist1_x =80 -pointlist1_y =40 -pointlist2_x =50 -pointlist2_y =50 -pointlist3_x =120 -pointlist3_y =60 -pointlist4_x =100 -pointlist4_y =90 -pointlist5_x =90 -pointlist5_y =110 -fillrule=EAlternate -usage=EGetPixelRunsSequentiallyForSpecifiedScanLines - -[GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0003-0001-Construct_Command02] -pointlist1_x =80 -pointlist1_y =40 -pointlist2_x =50 -pointlist2_y =50 -pointlist3_x =120 -pointlist3_y =60 -pointlist4_x =100 -pointlist4_y =90 -pointlist5_x =90 -pointlist5_y =110 -fillrule=EWinding -usage=EGetAllPixelRunsSequentially - -[GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0004-0001-Construct_Command02] -pointlist1_x =80 -pointlist1_y =40 -pointlist2_x =50 -pointlist2_y =50 -pointlist3_x =120 -pointlist3_y =60 -pointlist4_x =100 -pointlist4_y =90 -pointlist5_x =90 -pointlist5_y =110 -fillrule=EWinding -usage=EGetPixelRunsSequentiallyForSpecifiedScanLines - -[GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0005-0001-Construct_Command02] -pointlist1_x =80 -pointlist1_y =40 -pointlist2_x =50 -pointlist2_y =50 -pointlist3_x =120 -pointlist3_y =60 -pointlist4_x =100 -pointlist4_y =90 -pointlist5_x =90 -pointlist5_y =110 -numpoints=5 -fillrule=EWinding -usage=EGetAllPixelRunsSequentially - -[GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0006-0001-Construct_Command02] -pointlist1_x =80 -pointlist1_y =40 -pointlist2_x =50 -pointlist2_y =50 -pointlist3_x =120 -pointlist3_y =60 -pointlist4_x =100 -pointlist4_y =90 -pointlist5_x =90 -pointlist5_y =110 -numpoints=5 -fillrule=EWinding -usage=EGetPixelRunsSequentiallyForSpecifiedScanLines - -[GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0007-0001-Construct_Command02] -pointlist1_x =80 -pointlist1_y =40 -pointlist2_x =50 -pointlist2_y =50 -pointlist3_x =120 -pointlist3_y =60 -pointlist4_x =100 -pointlist4_y =90 -pointlist5_x =90 -pointlist5_y =110 -numpoints=1 -fillrule=EAlternate -usage=EGetPixelRunsSequentiallyForSpecifiedScanLines - -[GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0008-0001-Construct_Command02] -pointlist1_x =80 -pointlist1_y =40 -pointlist2_x =50 -pointlist2_y =50 -pointlist3_x =120 -pointlist3_y =60 -pointlist4_x =100 -pointlist4_y =90 -pointlist5_x =90 -pointlist5_y =110 -numpoints=1 -fillrule=EAlternate -usage=EGetAllPixelRunsSequentially - -[GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0009-0001-Construct_Command02] -pointlist1_x =80 -pointlist1_y =40 -pointlist2_x =50 -pointlist2_y =50 -pointlist3_x =120 -pointlist3_y =60 -pointlist4_x =100 -pointlist4_y =90 -pointlist5_x =90 -pointlist5_y =110 -fillrule=EAlternate -usage=EGetAllPixelRunsSequentially - -[GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0009-0001-GetNextPixelRun_Command03] -expectedexists=true -expectedscanline=40 -expectedstart=81 -expectedend=79 - -[GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0010-0001-Construct_Command02] -pointlist1_x =80 -pointlist1_y =40 -pointlist2_x =50 -pointlist2_y =50 -pointlist3_x =120 -pointlist3_y =60 -pointlist4_x =100 -pointlist4_y =90 -pointlist5_x =90 -pointlist5_y =110 -fillrule=EWinding -usage=EGetAllPixelRunsSequentially - -[GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0010-0001-GetNextPixelRun_Command03] -expectedexists=true -expectedscanline=40 -expectedstart=81 -expectedend=79 - - -[GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0011-0001-Construct_Command02] -pointlist1_x =50 -pointlist1_y =50 -pointlist2_x =100 -pointlist2_y =50 -pointlist3_x =100 -pointlist3_y =100 -pointlist4_x =50 -pointlist4_y =100 -fillrule=EAlternate -usage=EGetPixelRunsSequentiallyForSpecifiedScanLines - - -[GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0011-0001-GetNextPixelRun_Command03] -expectedexists=true -expectedscanline=50 -expectedstart=101 -expectedend=99 - -[GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0012-0001-Construct_Command02] -pointlist1_x =50 -pointlist1_y =50 -pointlist2_x =100 -pointlist2_y =50 -pointlist3_x =100 -pointlist3_y =100 -pointlist4_x =50 -pointlist4_y =100 -fillrule=EWinding -usage=EGetAllPixelRunsSequentially - - -[GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0012-0001-GetNextPixelRun_Command03] -expectedexists=true -expectedscanline=50 -expectedstart=101 -expectedend=99 - - -[GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0013-0001-Construct_Command02] -pointlist1_x =50 -pointlist1_y =100 -pointlist2_x =60 -pointlist2_y =100 -pointlist3_x =70 -pointlist3_y =100 -pointlist4_x =80 -pointlist4_y =100 -numpoints=4 -fillrule=EWinding -usage=EGetAllPixelRunsSequentially - - -[GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0013-0001-GetNextPixelRun_Command03] -expectedexists=true -expectedscanline=100 - - - -[GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0014-0001-Construct_Command02] -pointlist1_x =50 -pointlist1_y =50 -pointlist2_x =50 -pointlist2_y =60 -pointlist3_x =50 -pointlist3_y =80 -pointlist4_x =50 -pointlist4_y =120 -numpoints=4 -fillrule=EWinding -usage=EGetAllPixelRunsSequentially - - -[GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0014-0001-GetNextPixelRun_Command03] -expectedexists=true -expectedscanline=50 -expectedstart=51 -expectedend=49 - -[GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0015-0001-Construct_Command02] -pointlist1_x =0 -pointlist1_y =0 -pointlist2_x =0 -pointlist2_y =0 -pointlist3_x =0 -pointlist3_y =0 -pointlist4_x =0 -pointlist4_y =0 -numpoints=4 -fillrule=EWinding -usage=EGetAllPixelRunsSequentially - - -[GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0015-0001-GetNextPixelRun_Command03] -expectedexists=true -expectedscanline=0 - - -[GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0016-0001-Construct_Command02] -pointlist1_x =-10 -pointlist1_y =-10 -pointlist2_x =-20 -pointlist2_y =-20 -pointlist3_x =-10 -pointlist3_y =-20 -pointlist4_x =0 -pointlist4_y =0 -numpoints=4 -fillrule=EWinding -usage=EGetAllPixelRunsSequentially - - -[GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0016-0001-GetNextPixelRun_Command03] -expectedexists=true -expectedscanline=-20 -expectedstart=-9 -expectedend=-11 - -[GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0017-0001-Construct_Command02] -pointlist1_x =30 -pointlist1_y =100 -pointlist2_x =30 -pointlist2_y =60 -pointlist3_x =60 -pointlist3_y =30 -pointlist4_x =90 -pointlist4_y =60 -pointlist5_x =120 -pointlist5_y =30 -pointlist6_x =150 -pointlist6_y =60 -pointlist7_x =180 -pointlist7_y =30 -pointlist8_x =210 -pointlist8_y =60 -pointlist9_x =240 -pointlist9_y =30 -pointlist10_x =270 -pointlist10_y =60 -pointlist11_x =300 -pointlist11_y =30 -pointlist12_x =330 -pointlist12_y =60 -pointlist13_x =330 -pointlist13_y =100 -numpoints=13 -fillrule=EAlternate -usage=EGetAllPixelRunsSequentially - - -[GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0017-0001-GetNextPixelRun_Command03] -expectedexists=true -expectedscanline=30 -expectedstart=61 -expectedend=59 - -[GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0020-0001-Construct_Command02] -pointlist1_x =50 -pointlist1_y =50 -pointlist2_x =100 -pointlist2_y =50 -pointlist3_x =100 -pointlist3_y =100 -pointlist4_x =50 -pointlist4_y =100 -numpoints=4 -fillrule=EAlternate -usage=EGetPixelRunsSequentiallyForSpecifiedScanLines - - -[GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0020-0001-GetNextPixelRunOnSpecifiedScanLine_Command03] -expectedexists=true -scanline=60 -expectedstart=51 -expectedend=99 - -[GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0021-0001-Construct_Command02] -pointlist1_x =50 -pointlist1_y =50 -pointlist2_x =100 -pointlist2_y =50 -pointlist3_x =100 -pointlist3_y =100 -pointlist4_x =50 -pointlist4_y =100 -numpoints=4 -fillrule=EWinding -usage=EGetPixelRunsSequentiallyForSpecifiedScanLines - - -[GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0021-0001-GetNextPixelRunOnSpecifiedScanLine_Command03] -expectedexists=true -scanline=60 -expectedstart=51 -expectedend=99 - - -[GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0022-0001-Construct_Command02] -pointlist1_x =50 -pointlist1_y =100 -pointlist2_x =60 -pointlist2_y =100 -pointlist3_x =70 -pointlist3_y =100 -pointlist4_x =80 -pointlist4_y =100 -numpoints=4 -fillrule=EAlternate -usage=EGetPixelRunsSequentiallyForSpecifiedScanLines - - -[GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0022-0001-GetNextPixelRunOnSpecifiedScanLine_Command03] -expectedexists=true -scanline=100 - - -[GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0023-0001-Construct_Command02] -pointlist1_x =50 -pointlist1_y =50 -pointlist2_x =50 -pointlist2_y =60 -pointlist3_x =50 -pointlist3_y =80 -pointlist4_x =50 -pointlist4_y =120 -numpoints=4 -fillrule=EAlternate -usage=EGetPixelRunsSequentiallyForSpecifiedScanLines - - -[GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0023-0001-GetNextPixelRunOnSpecifiedScanLine_Command03] -expectedexists=true -scanline=60 -expectedstart=51 -expectedend=49 - -[GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0024-0001-Construct_Command02] -pointlist1_x =0 -pointlist1_y =0 -pointlist2_x =0 -pointlist2_y =0 -pointlist3_x =0 -pointlist3_y =0 -pointlist4_x =0 -pointlist4_y =0 -numpoints=4 -fillrule=EAlternate -usage=EGetPixelRunsSequentiallyForSpecifiedScanLines - - -[GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0024-0001-GetNextPixelRunOnSpecifiedScanLine_Command03] -expectedexists=true -scanline=0 - - -[GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0025-0001-Construct_Command02] -pointlist1_x =-10 -pointlist1_y =-10 -pointlist2_x =-20 -pointlist2_y =-20 -pointlist3_x =-10 -pointlist3_y =-20 -pointlist4_x =0 -pointlist4_y =0 -numpoints=4 -fillrule=EWinding -usage=EGetPixelRunsSequentiallyForSpecifiedScanLines - - -[GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0025-0001-GetNextPixelRunOnSpecifiedScanLine_Command03] -expectedexists=true -scanline=-15 -expectedstart=-14 -expectedend=-9 - -[GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0026-0001-Construct_Command02] -pointlist1_x =50 -pointlist1_y =50 -pointlist2_x =100 -pointlist2_y =50 -pointlist3_x =100 -pointlist3_y =100 -pointlist4_x =50 -pointlist4_y =100 -numpoints=4 -fillrule=EWinding -usage=EGetPixelRunsSequentiallyForSpecifiedScanLines - - -[GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0026-0001-GetNextPixelRunOnSpecifiedScanLine_Command03] -expectedexists=false -scanline=110 - -[GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0027-0001-Construct_Command02] -pointlist1_x =0 -pointlist1_y =0 -pointlist2_x =60 -pointlist2_y =60 -pointlist3_x =90 -pointlist3_y =30 -pointlist4_x =120 -pointlist4_y =60 -pointlist5_x =150 -pointlist5_y =30 -pointlist6_x =180 -pointlist6_y =60 -pointlist7_x =210 -pointlist7_y =30 -pointlist8_x =240 -pointlist8_y =60 -pointlist9_x =270 -pointlist9_y =30 -pointlist10_x =300 -pointlist10_y =60 -pointlist11_x =330 -pointlist11_y =30 -numpoints=11 -fillrule=EWinding -usage=EGetPixelRunsSequentiallyForSpecifiedScanLines - - -[GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0027-0001-GetNextPixelRunOnSpecifiedScanLine_Command03] -expectedexists=true -scanline=40 -expectedstart=41 -expectedend=79 - -[GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0028-0001-Construct_Command02] -pointlist1_x =50 -pointlist1_y =50 -pointlist2_x =100 -pointlist2_y =50 -pointlist3_x =100 -pointlist3_y =100 -pointlist4_x =50 -pointlist4_y =100 -numpoints=4 -fillrule=EWinding -usage=EGetAllPixelRunsSequentially - - -[GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0028-0001-GetNextPixelRun_Command03] -expectedexists=true -expectedscanline=50 -expectedstart=101 -expectedend=99 - -[GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0028-0001-GetNextPixelRun_Command05] -expectedexists=true -expectedscanline=51 -expectedstart=51 -expectedend=99 - -[GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0029-0001-Construct_Command02] -pointlist1_x =50 -pointlist1_y =50 -pointlist2_x =100 -pointlist2_y =50 -pointlist3_x =100 -pointlist3_y =100 -pointlist4_x =50 -pointlist4_y =100 -numpoints=4 -fillrule=EWinding -usage=EGetPixelRunsSequentiallyForSpecifiedScanLines - - -[GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0029-0001-GetNextPixelRunOnSpecifiedScanLine_Command03] -expectedexists=true -scanline=50 -expectedstart=101 -expectedend=99 - -[GRAPHICS-BITGDI-PolygonFiller-PublicAPI-0029-0001-GetNextPixelRunOnSpecifiedScanLine_Command05] -expectedexists=false -scanline=50 - - - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/bitgdi/testdata/test_rwssprite_bitmap.mbm Binary file graphicsapitest/graphicssvs/bitgdi/testdata/test_rwssprite_bitmap.mbm has changed diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/bitgdi/testdata/testfontws.gdr Binary file graphicsapitest/graphicssvs/bitgdi/testdata/testfontws.gdr has changed diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/common/inc/DataWrapperActive.h --- a/graphicsapitest/graphicssvs/common/inc/DataWrapperActive.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,40 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -#if (!defined __DATA_WRAPPER_ACTIVE__) -#define __DATA_WRAPPER_ACTIVE__ - -// User includes -#include "DataWrapperBase.h" - -class CDataWrapperActive : public CDataWrapperBase - { -protected: - CDataWrapperActive(); - virtual ~CDataWrapperActive(); - - virtual CActive* GetActive() = NULL; - - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - -private: - void DoCmdCancel(); - void DoCmdiStatus(const TDesC& aSection); - }; - -#endif /* __DATA_WRAPPER_ACTIVE__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/common/inc/DataWrapperBase.h --- a/graphicsapitest/graphicssvs/common/inc/DataWrapperBase.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,80 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -#if (!defined __DATA_WRAPPER_BASE__) -#define __DATA_WRAPPER_BASE__ - -// EPOC includes -#include -#include -#include - -class CDataWrapperBase : public CDataWrapper - { -public: - TBool GetBoolFromConfig(const TDesC& aSectName,const TDesC& aKeyName,TBool& aResult); - TBool GetFontSpecFromConfig(const TDesC& aSectName,const TDesC& aKeyName,TFontSpec& aResult); - TBool GetIntFromConfig(const TDesC& aSectName, const TDesC& aKeyName, TInt& aResult); - TBool GetStringFromConfig(const TDesC& aSectName, const TDesC& aKeyName, TPtrC& aResult); - TBool GetHexFromConfig(const TDesC& aSectName, const TDesC& aKeyName, TInt& aResult); - TBool GetPointFromConfig(const TDesC& aSectName, const TDesC& aKeyName, TPoint& aResult); - TBool GetRectFromConfig(const TDesC& aSectName, const TDesC& aKeyName, TRect& aResult); - TBool GetRegionFromConfig(const TDesC& aSectName, const TDesC& aKeyName, TRegion& aResult); - TBool GetRgbFromConfig(const TDesC& aSectName, const TDesC& aKeyName, TRgb& aResult); - TBool GetSizeFromConfig(const TDesC& aSectName, const TDesC& aKeyName, TSize& aResult); - TBool GetRgbListFromConfig(const TDesC& aSectName, const TDesC& aKeyName, TInt aSize, TRgb*& aResult); - TBool GetPointListFromConfig(const TDesC& aSectName, const TDesC& aKeyName, TInt aSize, TPoint*& aResult); - TBool GetPointListFromConfigL(const TDesC& aSectName, const TDesC& aKeyName, CArrayFix& aResult); - TBool GetWsGraphicIdFromConfigL(const TDesC& aSectName, const TDesC& aKeyName, TWsGraphicId& aResult); - - TBool GetDateTimeFromConfig(const TDesC& aSectName, TDateTime& aResult); - void LogRegion(const TDesC& aMessage, const TRegion& aRegion); - void LogRect(const TDesC& aMessage, const TRect& aRect); - - virtual void InitialiseL(); - - inline TInt GetHandle() const; - inline TInt GetIdentifier() const; - inline const TWsGraphicId& GetId(); - -protected: - CDataWrapperBase(); - virtual ~CDataWrapperBase(); - - inline RFs& FileServer(); - inline void SetHandle(TInt aHandle); - inline void SetIdentifier(TInt aIdentifier); - inline void SetId(const TWsGraphicId&); -protected: - TBool iGraphicsOrientation[4]; -private: - TBool GetCommandStringParameterL(const TDesC& aSectName, const TDesC& aKeyName, TPtrC& aResult); - -private: - // Included ini files - RPointerArray iInclude; - RPointerArray iBuffer; - RFs iFs; - TInt iHandle; - TInt iIdentifier; - TWsGraphicId iId; - }; - -#include "DataWrapperBase.inl" - -#endif /* __DATA_WRAPPER_BASE__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/common/inc/DataWrapperBase.inl --- a/graphicsapitest/graphicssvs/common/inc/DataWrapperBase.inl Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,52 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -inline RFs& CDataWrapperBase::FileServer() - { - return iFs; - } - -inline TInt CDataWrapperBase::GetHandle() const - { - return iHandle; - } - -inline void CDataWrapperBase::SetHandle(TInt aHandle) - { - iHandle=aHandle; - } - -inline TInt CDataWrapperBase::GetIdentifier() const - { - return iIdentifier; - } - -inline void CDataWrapperBase::SetIdentifier(TInt aIdentifier) - { - iIdentifier=aIdentifier; - } - -const TWsGraphicId& CDataWrapperBase::GetId() - { - return iId; - } - -inline void CDataWrapperBase::SetId(const TWsGraphicId& aId) - { - iId.Set(aId.Uid()); - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/common/inc/T_GraphicsUtil.h --- a/graphicsapitest/graphicssvs/common/inc/T_GraphicsUtil.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,147 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -#if (!defined __T_GRAPHICS_UTIL_H__) -#define __T_GRAPHICS_UTIL_H__ - -// User includes -#include "DataWrapperBase.h" - -// EPOC includes -#include -#include -#include -#include -#include -#include // for TWsGraphicAnimation - -class CT_GraphicsUtil - { -public: - static TBool ReadBitmapfileCompressionScheme(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TBitmapfileCompressionScheme& aCompressionScheme); - static TBool ReadBrushStyle(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, CGraphicsContext::TBrushStyle& aBrushStyle); - static TBool ReadCaptureFlags(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TUint& aCaptureFlags); - static TBool ReadComputeMode(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, RWsSession::TComputeMode& aComputeMode); - static TBool ReadCornerType(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TCornerType& aCornerType); - static TBool ReadDisplayMode(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TDisplayMode& aDisplayMode); - static TBool ReadDrawMode(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, CGraphicsContext::TDrawMode& aDrawMode); - static TBool ReadErrorCategory(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TWsErrorMessage::TErrorCategory& aErrorCategory); - static TBool ReadEventCode(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TEventCode& aEventCode); - static TBool ReadEventControl(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TEventControl& aEventControl); - static TBool ReadEventModifier(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TEventModifier& aEventModifier); - static TBool ReadEventModifier(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TUint& aEventModifier); - static TBool ReadFadeControl(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, RWindowTreeNode::TFadeControl& aFadeControl); - static TBool ReadFillRule(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, CGraphicsContext::TFillRule& aFillRule); - static TBool ReadFontStrikethrough(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TFontStrikethrough& aFontStrikethrough); - static TBool ReadFontUnderline(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TFontUnderline& aFontUnderline); - static TBool ReadGlyphBitmapType(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TGlyphBitmapType& aGlyphBitmapType); - static TBool ReadGraphicsOrientation(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, CFbsBitGc::TGraphicsOrientation& aGraphicsOrientation); - static TBool ReadHotKey(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, THotKey& aHotKey); - static TBool ReadKeyCode(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TKeyCode& aKeyCode); - static TBool ReadLoggingCommand(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, RWsSession::TLoggingCommand& aLoggingCommand); - static TBool ReadModifierState(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TModifierState& aModifierState); - static TBool ReadPasswordMode(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TPasswordMode& aPasswordMode); - static TBool ReadPenStyle(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, CGraphicsContext::TPenStyle& aPenStyle); - static TBool ReadPointerCursorMode(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TPointerCursorMode& aPointerCursorMode); - static TBool ReadPointerFilter(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TPointerFilter& aPointerFilter); - static TBool ReadPointerFilter(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TUint& aPointerFilter); - //For MAnim - static TBool ReadAnimCommand(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TInt& aCommand); - static TBool ReadAnimType(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TInt& aType); - static TBool ReadTUsage(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, CPolygonFiller::TUsage& aUsage); -#if defined(SYMBIAN_WSERV_AND_CONE_MULTIPLE_SCREENS) - static TBool ReadPriorities(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TInt& aPriorities); -#endif - static TBool ReadPriority(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, CActive::TPriority& aPriority); - static TBool ReadScreenModeEnforcement(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TScreenModeEnforcement& aScreenModeEnforcement); - static TBool ReadSpriteInCompare(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TUint& aSpriteInCompare); - static TBool ReadStdScanCode(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TStdScanCode& aStdScanCode); - static TBool ReadTextAlign(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, CGraphicsContext::TTextAlign& aTextAlign); - static TBool ReadTextDirection(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, CFont::TTextDirection& aTextDirection); - static TBool ReadType(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TPointerEvent::TType& aType); - static TBool ReadType(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TRawEvent::TType& aType); - static TBool ReadWindowBackupType(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TUint& aWindowBackupType); - static TBool ReadWsTransparencyPolicy(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TWsTransparencyPolicy& aWsTransparencyPolicy); - static TBool ReadWsVisibilityChangedEvent(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TWsVisibilityChangedEvent& aWsVisibilityChangedEvent); - static TBool ReadLongCaptureFlags(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TLongCaptureFlags& aLongCaptureFlags); - static TBool ReadSpriteFlags(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TSpriteFlags& aSpriteFlags); - static TBool ReadSpriteFlags(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TUint& aSpriteFlags); - static TBool ReadCustomTextCursorAlignment(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, RWsSession::TCustomTextCursorAlignment& aAlignment); - static TBool ReadTypefaceSupport(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TTypefaceSupport& aTypefaceSupport); - static TBool GetAlgStyleL(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TAlgStyle*& aData); - static TBool GetDrawableWindowL(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, RDrawableWindow*& aData); - static TBool GetDrawTextExtendedParamL(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, CGraphicsContext::TDrawTextExtendedParam*& aData); - static TBool GetFbsBitmapL(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, CFbsBitmap*& aData); - static TBool GetFbsDeviceL(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, CFbsDevice*& aData); - static TBool GetFontL(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, CFont*& aData); - static TBool GetPaletteL(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, CPalette*& aData); - static TBool GetWsBitmapL(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, CWsBitmap*& aData); - static TBool GetWsEventL(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TWsEvent*& aData); - static TBool GetWsGraphicMsgBufL(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, RWsGraphicMsgBuf*& aData); - static TBool GetWsScreenDeviceL(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, CWsScreenDevice*& aData); - static TBool GetWsGraphicMsgFixedBaseL(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TWsGraphicMsgFixedBase*& aData); - static TBool GetWsPriorityKeyEventL(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TWsPriorityKeyEvent*& aData); - static TBool GetWsRedrawEventL(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TWsRedrawEvent*& aData); - static TBool GetTextCursor(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TTextCursor& aTextCursor); - static TBool GetSpriteMemberL(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TSpriteMember& aSpriteMember); - static TBool GetSpriteMemberListL(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, CArrayFix& aResult); - static TBool BringAppForegroundL(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aSessionKeyName , const TDesC& aAppKeyName); - static TBool ReadTerminateReason(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, RDirectScreenAccess::TTerminationReasons& aReason); - static void EatupMemory(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName); - static void FreeEatenMemory(CDataWrapperBase& aDataWrapper); - static TBool GetFrameInfo(CDataWrapperBase& aDataWrapper,const TDesC& aSectName, TFrameInfo& frameinfo); - static TBool ReadFrameInfoFlags(CDataWrapperBase& aDataWrapper,const TDesC& aSectName, const TDesC& aKeyName,TUint32& aFlags); - static TBool GetFrameInfoState(CDataWrapperBase& aDataWrapper,const TDesC& aSectName, const TDesC& aKeyName,TFrameInfo::TFrameInfoState& aState); - static TBool GetWsGraphicAnimationL(CDataWrapperBase& aDataWrapper,const TDesC& aSectName, const TDesC& aKeyName, TWsGraphicAnimation*& aData); - static TBool StartAnimTesterClientL(CDataWrapperBase& aDataWrapper, const TDesC& aSectName); - static TBool CloseAnimTesterClientL(CDataWrapperBase& aDataWrapper, const TDesC& aSectName); - static TBool GetFbsBitGcL(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, CFbsBitGc*& aData); - static TBool GetTextParametersL(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, CGraphicsContext::TTextParameters* aParam); - static TBool GetGraphicsOrientation(CDataWrapperBase& aDataWrapper,const TDesC& aSectName, const TDesC& aKeyName,CFbsBitGc::TGraphicsOrientation& aParam); - static TBool GetLinkedTypefaceSpecificationL(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, CLinkedTypefaceSpecification*& aData); - static TBool GetRasterizerL(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, COpenFontRasterizer*& aData); - static TBool GetShaperFactoryL(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, CShaperFactory*& aData); - static TBool GetOpenFontGlyphDataL(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TOpenFontGlyphData*& aData); -private: - static TBool ConvertToCaptureFlags(const TDesC& aStr, RWindowBase::TCaptureFlags& aCaptureFlags); - static TBool ConvertToCaptureFlags(const TDesC& aStr, TUint& aCaptureFlags); - - static TBool ConvertToEventModifier(const TDesC& aStr, TEventModifier& aEventModifier); - static TBool ConvertToEventModifier(const TDesC& aStr, TUint& aEventModifier); - - static TBool ConvertToPointerFilter(const TDesC& aStr, TPointerFilter& aPointerFilter); - static TBool ConvertToPointerFilter(const TDesC& aStr, TUint& aPointerFilter); - - static TBool ConvertToSpriteInCompare(const TDesC& aStr, TUint& aSpriteInCompare); - - static TBool ConvertToWindowBackupType(const TDesC& aStr, TWindowBackupType& aWindowBackupType); - static TBool ConvertToWindowBackupType(const TDesC& aStr, TUint& aWindowBackupType); - - static TBool ConvertToWsVisibilityChangedEvent(const TDesC& aStr, TUint& aWsVisibilityChangedEvent); - - static TBool ConvertToSpriteFlags(const TDesC& aStr, TSpriteFlags& aSpriteFlags); - static TBool ConvertToSpriteFlags(const TDesC& aStr, TUint& aSpriteFlags); - static TBool ConvertToFrameInfoFlags(const TDesC& aStr,TUint32& aFrameInfoFlags); -private: - - static TInt iAvaiableSpace; - static TInt iBiggestBlock; - static RPointerArray < TAny > iMemArray; - }; - -#endif /* __T_GRAPHICS_UTIL_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/common/inc/TestServerBase.h --- a/graphicsapitest/graphicssvs/common/inc/TestServerBase.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -#if (!defined __TEST_SERVER_BASE__) -#define __TEST_SERVER_BASE__ - -// EPOC includes -#include - -class CTestServerBase : public CTestServer2 - { -public: - // CTestServer implementation - virtual CTestStep* CreateTestStep(const TDesC& aStepName); - }; - -#endif /* __TEST_SERVER_BASE__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/common/inc/UtilityClearPanicDlg.h --- a/graphicsapitest/graphicssvs/common/inc/UtilityClearPanicDlg.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,34 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -#if (!defined __UTILITY_CLEAR_PANIC_DLG_H__) -#define __UTILITY_CLEAR_PANIC_DLG_H__ - -// EPOC includes -#include - -class CUtilityClearPanicDlg : public CTestStep - { -public: - CUtilityClearPanicDlg(); - - // CTestStep implementation - virtual enum TVerdict doTestStepL(); - }; - -#endif /* __UTILITY_CLEAR_PANIC_DLG_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/common/src/DataWrapperActive.cpp --- a/graphicsapitest/graphicssvs/common/src/DataWrapperActive.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,96 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -#include "DataWrapperActive.h" - -/*@{*/ -/// Constant Literals used. -_LIT(KCmdCancel, "Cancel"); -_LIT(KCmdiStatus, "iStatus"); - -_LIT(KFldExpected, "expected"); -/*@}*/ - -CDataWrapperActive::CDataWrapperActive() -: CDataWrapperBase() -/** - * Protected constructor - */ - { - } - -CDataWrapperActive::~CDataWrapperActive() -/** - * Protected destructor - */ - { - } - -/** -* Process a command read from the ini file -* -* @param aDataWrapper test step requiring command to be processed -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* -* @return ETrue if the command is processed -*/ -TBool CDataWrapperActive::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt /*aAsyncErrorIndex*/) - { - TBool ret=ETrue; - - if ( aCommand==KCmdCancel ) - { - DoCmdCancel(); - } - else if ( aCommand==KCmdiStatus ) - { - DoCmdiStatus(aSection); - } - else - { - ret=EFalse; - } - - return ret; - } - -void CDataWrapperActive::DoCmdCancel() - { - INFO_PRINTF1(_L("++CActive::Cancel()")); - GetActive()->Cancel(); - DecOutstanding(); - INFO_PRINTF1(_L("--CActive::Cancel()")); - } - -void CDataWrapperActive::DoCmdiStatus(const TDesC& aSection) - { - INFO_PRINTF1(_L("++CActive::iStatus")); - TRequestStatus actual=GetActive()->iStatus; - INFO_PRINTF2(_L("iStatus=%d"), actual.Int()); - - TInt expected; - if ( GetIntFromConfig(aSection, KFldExpected(), expected) ) - { - if ( expected!=actual.Int() ) - { - ERR_PRINTF1(_L("Expected value does not match actual")); - SetBlockResult(EFail); - } - } - INFO_PRINTF1(_L("--CActive::iStatus")); - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/common/src/DataWrapperBase.cpp --- a/graphicsapitest/graphicssvs/common/src/DataWrapperBase.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,635 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -#include "DataWrapperBase.h" - -/*@{*/ -/// Constant Literals used. -_LIT(KIncludeSection, "include"); -_LIT(KFile, "file%d"); -_LIT(KMatch, "*{*,*}*"); -_LIT(KStart, "{"); -_LIT(KSeparator, ","); -_LIT(KEnd, "}"); -_LIT(KDataRead, "INI READ : %S %S %S"); - -_LIT(KFormatEntryField, "%S_%S"); - -_LIT(KTagFontSpecName, "name"); -_LIT(KTagFontSpecHeight, "height"); - -_LIT(KTagPointX, "x"); -_LIT(KTagPointY, "y"); - -_LIT(KTagRectTop, "top"); -_LIT(KTagRectLeft, "left"); -_LIT(KTagRectBottom, "bottom"); -_LIT(KTagRectRight, "right"); - -_LIT(KTagRgbRed, "red"); -_LIT(KTagRgbGreen, "green"); -_LIT(KTagRgbBlue, "blue"); -_LIT(KTagRgbAlpha, "alpha"); - -_LIT(KTagSizeWidth, "width"); -_LIT(KTagSizeHeight, "height"); - -_LIT(KTagWsGraphicIdUid, "uid"); -_LIT(KTagWsGraphicIdId, "id"); -_LIT(KTagWsGraphicIdName, "name"); - -_LIT(KFormatFieldNumber, "%S%d"); - -/// Logging -_LIT(KLogMissingParameter, "Missing parameter '%S'"); -_LIT(KLogRegion, "Region '%S'"); -_LIT(KLogEmpty, "Empty"); -_LIT(KLogRegionsRect, "Rect[%d] tl=(%d,%d) br=(%d,%d)"); -_LIT(KLogRect, "%S tl=(%d,%d) br=(%d,%d)"); -/*@}*/ - -CDataWrapperBase::CDataWrapperBase() -: CDataWrapper() -, iHandle(0) -, iId(TWsGraphicId::EUninitialized) - { - } - -CDataWrapperBase::~CDataWrapperBase() -/** - * Public destructor - */ - { - iInclude.ResetAndDestroy(); - iBuffer.ResetAndDestroy(); - iFs.Close(); - } - -void CDataWrapperBase::InitialiseL() - { - CDataWrapper::InitialiseL(); - - TBuf tempStore; - TPtrC fileName; - TBool moreData=ETrue; - TBool index=0; - while ( moreData ) - { - tempStore.Format(KFile(), ++index); - moreData=GetStringFromConfig(KIncludeSection, tempStore, fileName); - - if (moreData) - { - CIniData* iniData=CIniData::NewL(fileName); - CleanupStack::PushL(iniData); - iInclude.Append(iniData); - CleanupStack::Pop(iniData); - } - } - User::LeaveIfError(iFs.Connect()); - } - -TBool CDataWrapperBase::GetBoolFromConfig(const TDesC& aSectName,const TDesC& aKeyName,TBool& aResult) - { - TBool ret=EFalse; - TPtrC result; - TRAPD(err, ret=GetCommandStringParameterL(aSectName, aKeyName, result)); - if ( err != KErrNone ) - { - ret=EFalse; - } - if ( ret ) - { - _LIT(KTrue,"true"); - aResult=(result.FindF(KTrue) != KErrNotFound); - } - - return ret; - } - -TBool CDataWrapperBase::GetFontSpecFromConfig(const TDesC& aSectName,const TDesC& aKeyName,TFontSpec& aResult) - { - TBuf tempStore; - - - TPtrC name; - tempStore.Format(KFormatEntryField, &aKeyName, &KTagFontSpecName); - TBool ret=GetStringFromConfig(aSectName, tempStore, name); - - TInt height; - tempStore.Format(KFormatEntryField, &aKeyName, &KTagFontSpecHeight); - if ( !GetIntFromConfig(aSectName, tempStore, height) ) - { - ret=EFalse; - } - - if ( ret ) - { - aResult=TFontSpec(name, height); - } - - return ret; - } - -TBool CDataWrapperBase::GetIntFromConfig(const TDesC& aSectName, const TDesC& aKeyName, TInt& aResult) - { - TPtrC result; - TBool ret=EFalse; - TRAPD(err, ret=GetCommandStringParameterL(aSectName, aKeyName, result)); - if ( err != KErrNone ) - { - ret=EFalse; - } - if ( ret ) - { - TLex lex(result); - ret=(lex.Val(aResult)==KErrNone); - } - - return ret; - } - -TBool CDataWrapperBase::GetStringFromConfig(const TDesC& aSectName, const TDesC& aKeyName, TPtrC& aResult) - { - TBool ret=EFalse; - TRAPD(err, ret=GetCommandStringParameterL(aSectName, aKeyName, aResult)); - if ( err != KErrNone ) - { - ret=EFalse; - } - return ret; - } - -TBool CDataWrapperBase::GetHexFromConfig(const TDesC& aSectName, const TDesC& aKeyName, TInt& aResult) - { - TPtrC result; - TBool ret=EFalse; - TRAPD(err, ret=GetCommandStringParameterL(aSectName, aKeyName, result)); - if ( err != KErrNone ) - { - ret=EFalse; - } - if ( ret ) - { - TLex lex(result); - ret=(lex.Val((TUint &)aResult, EHex)==KErrNone); - } - - return ret; - } - -TBool CDataWrapperBase::GetPointFromConfig(const TDesC& aSectName, const TDesC& aKeyName, TPoint& aResult) - { - TBuf tempStore; - - TInt x; - tempStore.Format(KFormatEntryField, &aKeyName, &KTagPointX); - TBool ret=GetIntFromConfig(aSectName, tempStore, x); - - TInt y; - tempStore.Format(KFormatEntryField, &aKeyName, &KTagPointY); - if ( !GetIntFromConfig(aSectName, tempStore, y) ) - { - ret=EFalse; - } - - if ( ret ) - { - aResult.SetXY(x, y); - } - - return ret; - } - -TBool CDataWrapperBase::GetRectFromConfig(const TDesC& aSectName, const TDesC& aKeyName, TRect& aResult) - { - TBuf tempStore; - - TInt top; - tempStore.Format(KFormatEntryField, &aKeyName, &KTagRectTop); - TBool ret=GetIntFromConfig(aSectName, tempStore, top); - - TInt left; - tempStore.Format(KFormatEntryField, &aKeyName, &KTagRectLeft); - if ( !GetIntFromConfig(aSectName, tempStore, left) ) - { - ret=EFalse; - } - - TInt bottom; - tempStore.Format(KFormatEntryField, &aKeyName, &KTagRectBottom); - if ( !GetIntFromConfig(aSectName, tempStore, bottom) ) - { - ret=EFalse; - } - - TInt right; - tempStore.Format(KFormatEntryField, &aKeyName, &KTagRectRight); - if ( !GetIntFromConfig(aSectName, tempStore, right) ) - { - ret=EFalse; - } - - if ( ret ) - { - aResult.SetRect(left, top, right, bottom); - } - - return ret; - } - -TBool CDataWrapperBase::GetRegionFromConfig(const TDesC& aSectName, const TDesC& aKeyName, TRegion& aResult) - { - TBuf tempStore; - TRect rect; - - aResult.Clear(); - TBool moreData=ETrue; - for ( TInt index=0; moreData; ) - { - tempStore.Format(KFormatFieldNumber, &aKeyName, ++index); - moreData=GetRectFromConfig(aSectName, tempStore, rect); - if ( moreData ) - { - aResult.AddRect(rect); - } - } - - return aResult.Count()>0; - } - -TBool CDataWrapperBase::GetRgbFromConfig(const TDesC& aSectName, const TDesC& aKeyName, TRgb& aResult) - { - TBuf tempStore; - - TInt red; - tempStore.Format(KFormatEntryField, &aKeyName, &KTagRgbRed); - TBool ret=GetIntFromConfig(aSectName, tempStore, red); - - TInt green; - tempStore.Format(KFormatEntryField, &aKeyName, &KTagRgbGreen); - if ( !GetIntFromConfig(aSectName, tempStore, green) ) - { - ret=EFalse; - } - - TInt blue; - tempStore.Format(KFormatEntryField, &aKeyName, &KTagRgbBlue); - if ( !GetIntFromConfig(aSectName, tempStore, blue) ) - { - ret=EFalse; - } - - if ( ret ) - { - aResult.SetRed(red); - aResult.SetGreen(green); - aResult.SetBlue(blue); - - TInt alpha; - tempStore.Format(KFormatEntryField, &aKeyName, &KTagRgbAlpha); - if ( GetIntFromConfig(aSectName, tempStore, alpha) ) - { - aResult.SetAlpha(alpha); - } - } - - return ret; - } - -TBool CDataWrapperBase::GetSizeFromConfig(const TDesC& aSectName, const TDesC& aKeyName, TSize& aResult) - { - TBuf tempStore; - - TInt width; - tempStore.Format(KFormatEntryField, &aKeyName, &KTagSizeWidth); - TBool ret=GetIntFromConfig(aSectName, tempStore, width); - - TInt height; - tempStore.Format(KFormatEntryField, &aKeyName, &KTagSizeHeight); - if ( !GetIntFromConfig(aSectName, tempStore, height) ) - { - ret=EFalse; - } - - if ( ret ) - { - aResult.SetSize(width, height); - } - - return ret; - } - -TBool CDataWrapperBase::GetRgbListFromConfig(const TDesC& aSectName, const TDesC& aKeyName, TInt aSize, TRgb*& aResult) - { - TBuf tempStore; - - TBool ok=ETrue; - for ( TInt index=0; (index tempStore; - - TBool ok=ETrue; - for ( TInt index=0; (index& aResult) - { - TBuf tempStore; - TPoint point; - - aResult.Reset(); - TBool ok=ETrue; - for ( TInt index=0; ok; ) - { - tempStore.Format(KFormatFieldNumber, &aKeyName, ++index); - ok=GetPointFromConfig(aSectName, tempStore, point); - if ( ok ) - { - aResult.AppendL(point); - } - } - - return aResult.Count()>0; - } - -TBool CDataWrapperBase::GetCommandStringParameterL(const TDesC& aSectName, const TDesC& aKeyName, TPtrC& aResult) - { - TBool ret=EFalse; - - if ( aSectName.Length()!=0 ) - { - ret=CDataWrapper::GetStringFromConfig(aSectName, aKeyName, aResult); - - for ( TInt index=iInclude.Count(); (index>0) && (!ret); ) - { - ret=iInclude[--index]->FindVar(aSectName, aKeyName, aResult); - } - } - - if ( ret ) - { - if ( aResult.Match(KMatch)!=KErrNotFound ) - { - // We have an entry of the format - // entry =*{section,entry}* - // where * is one or more characters - // We need to construct this from other data in the ini file replacing {*,*} - // with the data from - // [section] - // entry =some_value - HBufC* buffer=HBufC::NewLC(aResult.Length()); - buffer->Des().Copy(aResult); - - TInt startLength=KStart().Length(); - TInt sparatorLength=KSeparator().Length(); - TInt endLength=KEnd().Length(); - TInt bufferLength; - TInt start; - TInt sparator; - TInt end; - TPtrC remaining; - TLex lex; - do - { - bufferLength=buffer->Length(); - start=buffer->Find(KStart); - - remaining.Set(buffer->Des().Right(bufferLength-start-startLength)); - sparator=remaining.Find(KSeparator); - remaining.Set(remaining.Right(remaining.Length()-sparator-sparatorLength)); - sparator += (start + startLength); - - end=remaining.Find(KEnd) + sparator + sparatorLength; - - TPtrC sectionName(buffer->Ptr()+start+startLength, sparator-start-startLength); - TPtrC keyName(buffer->Ptr()+sparator+sparatorLength, end-sparator-sparatorLength); - sectionName.Set(TLex(sectionName).NextToken()); - keyName.Set(TLex(keyName).NextToken()); - - TInt entrySize=0; - TPtrC entryData; - TBool found=CDataWrapper::GetStringFromConfig(sectionName, keyName, entryData); - for ( TInt index=iInclude.Count(); (index>0) && (!found); ) - { - found=iInclude[--index]->FindVar(sectionName, keyName, entryData); - } - if ( found ) - { - entrySize=entryData.Length(); - } - - TInt newLength=start + bufferLength - end - endLength + entrySize; - HBufC* bufferNew=HBufC::NewLC(newLength); - bufferNew->Des().Copy(buffer->Ptr(), start); - if ( entrySize>0 ) - { - bufferNew->Des().Append(entryData); - } - bufferNew->Des().Append(buffer->Ptr() + end + endLength, bufferLength - end - endLength); - CleanupStack::Pop(bufferNew); - CleanupStack::PopAndDestroy(buffer); - buffer=bufferNew; - CleanupStack::PushL(buffer); - } - while ( buffer->Match(KMatch)!=KErrNotFound ); - iBuffer.Append(buffer); - CleanupStack::Pop(buffer); - aResult.Set(*buffer); - INFO_PRINTF4(KDataRead, &aSectName, &aKeyName , &aResult); - } - } - - return ret; - } - -TBool CDataWrapperBase::GetWsGraphicIdFromConfigL(const TDesC& aSectName, const TDesC& aKeyName, TWsGraphicId& aResult) - { - TBuf tempStore; - - TInt id; - tempStore.Format(KFormatEntryField, &aKeyName, &KTagWsGraphicIdUid); - TBool ret=GetIntFromConfig(aSectName, tempStore, id); - - if ( ret ) - { - TUid uid=TUid::Uid(id); - aResult.Set(uid); - } - else - { - tempStore.Format(KFormatEntryField, &aKeyName, &KTagWsGraphicIdId); - ret=GetIntFromConfig(aSectName, tempStore, id); - if ( ret ) - { - aResult.Set(id); - } - else - { - tempStore.Format(KFormatEntryField, &aKeyName, &KTagWsGraphicIdName); - TPtrC name; - ret=GetStringFromConfig(aSectName, tempStore, name); - if ( ret ) - { - CDataWrapperBase* wrapper=static_cast(GetDataWrapperL(name)); - aResult=wrapper->GetId(); - } - } - } - - return ret; - } - - TBool CDataWrapperBase::GetDateTimeFromConfig(const TDesC& aSectName, TDateTime& aResult) - { - TInt year , month , day , hour , minute, second, microsecond ; - - // Fields - _LIT(KYear, "year"); - _LIT(KMonth, "month"); - _LIT(KDay, "day"); - _LIT(KHour, "hour"); - _LIT(KMinute, "minute"); - _LIT(KSecond, "second"); - _LIT(KMicrosecond, "microsecond"); - - TBool ret = ETrue ; - if ( !GetIntFromConfig( aSectName, KYear , year)) - { - ret=EFalse; - } - if ( !GetIntFromConfig( aSectName, KMonth , month)) - { - ret=EFalse; - } - if ( !GetIntFromConfig( aSectName, KDay, day)) - { - ret=EFalse; - } - if ( !GetIntFromConfig( aSectName, KHour, hour)) - { - ret=EFalse; - } - if ( !GetIntFromConfig( aSectName, KMinute , minute)) - { - ret=EFalse; - } - if ( !GetIntFromConfig( aSectName, KSecond , second)) - { - ret=EFalse; - } - if ( !GetIntFromConfig( aSectName, KMicrosecond , microsecond)) - { - ret=EFalse; - } - if ( ret ) - { - TMonth amonth ; - switch (month) - { - case 1: - amonth = EJanuary ; - break ; - case 2: - amonth = EFebruary ; - break ; - case 3 : - amonth = EMarch ; - break ; - case 4: - amonth = EApril ; - break ; - case 5: - amonth = EMay ; - break ; - case 6 : - amonth = EJune ; - break ; - case 7 : - amonth = EJuly ; - break ; - case 8 : - amonth = EAugust ; - break ; - case 9 : - amonth = ESeptember ; - break ; - case 10 : - amonth = EOctober ; - break ; - case 11 : - amonth = ENovember ; - break ; - case 12: - amonth = EDecember ; - break ; - default : - return ret ; - } - - aResult.Set(year,amonth ,day,hour,minute,second,microsecond); - } - - return ret ; - } -void CDataWrapperBase::LogRegion(const TDesC& aMessage, const TRegion& aRegion) - { - INFO_PRINTF2(KLogRegion, &aMessage); - TInt indCount = aRegion.Count(); - if ( indCount==0 ) - { - INFO_PRINTF1(KLogEmpty); - } - else - { - const TRect* rect=aRegion.RectangleList(); - for ( TInt index=0; index // used for apatask - -#define INFO_PRINTF1_UTIL(p1) aDataWrapper.Logger().LogExtra(((TText8*)__FILE__), __LINE__, ESevrInfo, (p1)) -#define INFO_PRINTF2_UTIL(p1, p2) aDataWrapper.Logger().LogExtra(((TText8*)__FILE__), __LINE__, ESevrInfo, (p1), (p2)) -/*@{*/ -_LIT(KFormatEntryField, "%S_%S"); -_LIT(KFormatFieldNumber, "%S%d"); - -_LIT(KTagTextCursorType, "type"); -_LIT(KTagTextCursorHeight, "height"); -_LIT(KTagTextCursorAscent, "ascent"); -_LIT(KTagTextCursorWidth, "width"); -_LIT(KTagTextCursorFlags, "flags"); -_LIT(KTagTextCursorColor, "color"); - -_LIT(KTagSpriteMemberBitmap, "bitmap"); -_LIT(KTagSpriteMemberMaskBitmap, "maskbitmap"); -_LIT(KTagSpriteMemberInvertMask, "invertmask"); -_LIT(KTagSpriteMemberDrawMode, "drawmode"); -_LIT(KTagSpriteMemberOffset, "offset"); -_LIT(KTagSpriteMemberInterval, "interval"); -_LIT(KTagParamStart, "start"); -_LIT(KTagParamEnd, "end"); -_LIT(KTagParamFlags, "flags"); -_LIT(KTagParamEnabled, "enabled"); - -/// Enumerations type parameter names and their possible values -_LIT(KRLECompression, "ERLECompression"); -_LIT(KPaletteCompression, "EPaletteCompression"); -_LIT(KPaletteCompressionWithRLEFallback, "EPaletteCompressionWithRLEFallback"); - -_LIT(KBrushStyleNull, "ENullBrush"); -_LIT(KBrushStyleSolid, "ESolidBrush"); -_LIT(KBrushStylePatterned, "EPatternedBrush"); -_LIT(KBrushStyleVerticalHatch, "EVerticalHatchBrush"); -_LIT(KBrushStyleForwardDiagonalHatch, "EForwardDiagonalHatchBrush"); -_LIT(KBrushStyleHorizontalHatch, "EHorizontalHatchBrush"); -_LIT(KBrushStyleRearwardDiagonalHatch, "ERearwardDiagonalHatchBrush"); -_LIT(KBrushStyleSquareCrossHatch, "ESquareCrossHatchBrush"); -_LIT(KBrushStyleDiamondCrossHatch, "EDiamondCrossHatchBrush"); - -_LIT(KCaptureFlagEnabled, "TCaptureFlagEnabled"); -_LIT(KCaptureFlagDragDrop, "TCaptureFlagDragDrop"); -_LIT(KCaptureFlagAllGroups, "TCaptureFlagAllGroups"); -_LIT(KCaptureDisabled, "TCaptureDisabled"); -_LIT(KCaptureEnabled, "TCaptureEnabled"); -_LIT(KCaptureDragDrop, "TCaptureDragDrop"); - -_LIT(KComputeModePriorityControlDisabled, "EPriorityControlDisabled"); -_LIT(KComputeModePriorityControlComputeOn, "EPriorityControlComputeOn"); -_LIT(KComputeModePriorityControlComputeOff, "EPriorityControlComputeOff"); - -_LIT(KCornerTypeWindowSquare, "EWindowCornerSquare"); -_LIT(KCornerTypeWindow1, "EWindowCorner1"); -_LIT(KCornerTypeWindow2, "EWindowCorner2"); -_LIT(KCornerTypeWindow3, "EWindowCorner3"); -_LIT(KCornerTypeWindow5, "EWindowCorner5"); -_LIT(KCornerTypeWindowRegion, "EWindowCornerRegion"); -_LIT(KCornerTypeMask, "ECornerTypeMask"); - -_LIT(KDisplayModeNone, "ENone"); -_LIT(KDisplayModeGray2, "EGray2"); -_LIT(KDisplayModeGray4, "EGray4"); -_LIT(KDisplayModeGray16, "EGray16"); -_LIT(KDisplayModeGray256, "EGray256"); -_LIT(KDisplayModeColor16, "EColor16"); -_LIT(KDisplayModeColor256, "EColor256"); -_LIT(KDisplayModeColor64K, "EColor64K"); -_LIT(KDisplayModeColor16M, "EColor16M"); -_LIT(KDisplayModeRgb, "ERgb"); -_LIT(KDisplayModeColor4K, "EColor4K"); -_LIT(KDisplayModeColor16MU, "EColor16MU"); -_LIT(KDisplayModeColor16MA, "EColor16MA"); -_LIT(KDisplayModeColor16MAP, "EColor16MAP"); -_LIT(KDisplayModeColorLast, "EColorLast"); - -_LIT(KDrawModeAND, "EDrawModeAND"); -_LIT(KDrawModeNOTAND, "EDrawModeNOTAND"); -_LIT(KDrawModePEN, "EDrawModePEN"); -_LIT(KDrawModeANDNOT, "EDrawModeANDNOT"); -_LIT(KDrawModeXOR, "EDrawModeXOR"); -_LIT(KDrawModeOR, "EDrawModeOR"); -_LIT(KDrawModeNOTANDNOT, "EDrawModeNOTANDNOT"); -_LIT(KDrawModeNOTXOR, "EDrawModeNOTXOR"); -_LIT(KDrawModeNOTSCREEN, "EDrawModeNOTSCREEN"); -_LIT(KDrawModeNOTOR, "EDrawModeNOTOR"); -_LIT(KDrawModeNOTPEN, "EDrawModeNOTPEN"); -_LIT(KDrawModeORNOT, "EDrawModeORNOT"); -_LIT(KDrawModeNOTORNOT, "EDrawModeNOTORNOT"); -_LIT(KDrawModeWriteAlpha, "EDrawModeWriteAlpha"); - -_LIT(KErrorCategoryDrawingRegion, "EDrawingRegion"); -_LIT(KErrorCategoryBackLight, "EBackLight"); -_LIT(KErrorCategoryLogging, "ELogging"); -_LIT(KErrorCategoryContrast, "EContrast"); - -_LIT(KEventCodeNull, "EEventNull"); -_LIT(KEventCodeKey, "EEventKey"); -_LIT(KEventCodeKeyUp, "EEventKeyUp"); -_LIT(KEventCodeKeyDown, "EEventKeyDown"); -_LIT(KEventCodeModifiersChanged, "EEventModifiersChanged"); -_LIT(KEventCodePointer, "EEventPointer"); -_LIT(KEventCodePointerEnter, "EEventPointerEnter"); -_LIT(KEventCodePointerExit, "EEventPointerExit"); -_LIT(KEventCodePointerBufferReady, "EEventPointerBufferReady"); -_LIT(KEventCodeDragDrop, "EEventDragDrop"); -_LIT(KEventCodeFocusLost, "EEventFocusLost"); -_LIT(KEventCodeFocusGained, "EEventFocusGained"); -_LIT(KEventCodeSwitchOn, "EEventSwitchOn"); -_LIT(KEventCodePassword, "EEventPassword"); -_LIT(KEventCodeWindowGroupsChanged, "EEventWindowGroupsChanged"); -_LIT(KEventCodeErrorMessage, "EEventErrorMessage"); -_LIT(KEventCodeMessageReady, "EEventMessageReady"); -_LIT(KEventCodeMarkInvalid, "EEventMarkInvalid"); -_LIT(KEventCodeSwitchOff, "EEventSwitchOff"); -_LIT(KEventCodeKeySwitchOff, "EEventKeySwitchOff"); -_LIT(KEventCodeScreenDeviceChanged, "EEventScreenDeviceChanged"); -_LIT(KEventCodeFocusGroupChanged, "EEventFocusGroupChanged"); -_LIT(KEventCodeCaseOpened, "EEventCaseOpened"); -_LIT(KEventCodeCaseClosed, "EEventCaseClosed"); -_LIT(KEventCodeWindowGroupListChanged, "EEventWindowGroupListChanged"); -_LIT(KEventCodeWindowVisibilityChanged, "EEventWindowVisibilityChanged"); -#if (defined SYMBIAN_PROCESS_MONITORING_AND_STARTUP) -_LIT(KEventCodeRestartSystem, "EEventRestartSystem"); -#endif -_LIT(KEventCodeKeyRepeat, "EEventKeyRepeat"); -_LIT(KEventCodeDirectScreenAccessBegin, "EEventDirectScreenAccessBegin"); -_LIT(KEventCodeDirectScreenAccessEnd, "EEventDirectScreenAccessEnd"); -_LIT(KEventCodeHeartbeatTimerStateChange, "EEventHeartbeatTimerStateChange"); -_LIT(KEventCodePowerMgmt, "EEventPowerMgmt"); -_LIT(KEventCodeReserved, "EEventReserved"); -_LIT(KEventCodeUser, "EEventUser"); - -_LIT(KEventControlAlways, "EEventControlAlways"); -_LIT(KEventControlOnlyWithKeyboardFocus, "EEventControlOnlyWithKeyboardFocus"); -_LIT(KEventControlOnlyWhenVisible, "EEventControlOnlyWhenVisible"); - -_LIT(KEventModifierAutorepeatable, "EModifierAutorepeatable"); -_LIT(KEventModifierKeypad, "EModifierKeypad"); -_LIT(KEventModifierLeftAlt, "EModifierLeftAlt"); -_LIT(KEventModifierRightAlt, "EModifierRightAlt"); -_LIT(KEventModifierAlt, "EModifierAlt"); -_LIT(KEventModifierLeftCtrl, "EModifierLeftCtrl"); -_LIT(KEventModifierRightCtrl, "EModifierRightCtrl"); -_LIT(KEventModifierCtrl, "EModifierCtrl"); -_LIT(KEventModifierLeftShift, "EModifierLeftShift"); -_LIT(KEventModifierRightShift, "EModifierRightShift"); -_LIT(KEventModifierShift, "EModifierShift"); -_LIT(KEventModifierLeftFunc, "EModifierLeftFunc"); -_LIT(KEventModifierRightFunc, "EModifierRightFunc"); -_LIT(KEventModifierFunc, "EModifierFunc"); -_LIT(KEventModifierCapsLock, "EModifierCapsLock"); -_LIT(KEventModifierNumLock, "EModifierNumLock"); -_LIT(KEventModifierScrollLock, "EModifierScrollLock"); -_LIT(KEventModifierKeyUp, "EModifierKeyUp"); -_LIT(KEventModifierSpecial, "EModifierSpecial"); -_LIT(KEventModifierDoubleClick, "EModifierDoubleClick"); -_LIT(KEventModifierPureKeycode, "EModifierPureKeycode"); -_LIT(KEventModifierKeyboardExtend, "EModifierKeyboardExtend"); -_LIT(KEventModifierCancelRotation, "EModifierCancelRotation"); -_LIT(KEventModifierRotateBy90, "EModifierRotateBy90"); -_LIT(KEventModifierRotateBy180, "EModifierRotateBy180"); -_LIT(KEventModifierRotateBy270, "EModifierRotateBy270"); -_LIT(KEventModifierPointer3DButton1, "EModifierPointer3DButton1"); -_LIT(KEventModifierPointer3DButton2, "EModifierPointer3DButton2"); -_LIT(KEventModifierPointer3DButton3, "EModifierPointer3DButton3"); -_LIT(KEventModifierAll, "EAllModifiers"); - -_LIT(KFadeControlIncludeChildren, "EFadeIncludeChildren"); -_LIT(KFadeControlWindowOnly, "EFadeWindowOnly"); - -_LIT(KFillRuleAlternate, "EAlternate"); -_LIT(KFillRuleEWinding, "EWinding"); - -_LIT(KFontStrikethroughOff, "EStrikethroughOff"); -_LIT(KFontStrikethroughOn, "EStrikethroughOn"); - -_LIT(KFontUnderlineOff, "EUnderlineOff"); -_LIT(KFontUnderlineOn, "EUnderlineOn"); - -_LIT(KGlyphBitmapTypeDefault, "EDefaultGlyphBitmap"); -_LIT(KGlyphBitmapTypeMonochrome, "EMonochromeGlyphBitmap"); -_LIT(KGlyphBitmapTypeAntiAliased, "EAntiAliasedGlyphBitmap"); -_LIT(KGlyphBitmapTypeSubPixel, "ESubPixelGlyphBitmap"); -_LIT(KGlyphBitmapTypeFourColourBlend, "EFourColourBlendGlyphBitmap"); - -_LIT(KGraphicsOrientationNormal, "EGraphicsOrientationNormal"); -_LIT(KGraphicsOrientationRotated90, "EGraphicsOrientationRotated90"); -_LIT(KGraphicsOrientationRotated180, "EGraphicsOrientationRotated180"); -_LIT(KGraphicsOrientationRotated270, "EGraphicsOrientationRotated270"); - -_LIT(KHotKeyEnableLogging, "EHotKeyEnableLogging"); -_LIT(KHotKeyDisableLogging, "EHotKeyDisableLogging"); -_LIT(KHotKeyStateDump, "EHotKeyStateDump"); -_LIT(KHotKeyOfDeath, "EHotKeyOfDeath"); -_LIT(KHotKeyShutDown, "EHotKeyShutDown"); -_LIT(KHotKeyHeapDump, "EHotKeyHeapDump"); -_LIT(KHotKeyIncContrast, "EHotKeyIncContrast"); -_LIT(KHotKeyDecContrast, "EHotKeyDecContrast"); -_LIT(KHotKeyOff, "EHotKeyOff"); -_LIT(KHotKeyBacklightOn, "EHotKeyBacklightOn"); -_LIT(KHotKeyBacklightOff, "EHotKeyBacklightOff"); -_LIT(KHotKeyBacklightToggle, "EHotKeyBacklightToggle"); -_LIT(KHotKeyScreenDimension0, "EHotKeyScreenDimension0"); -_LIT(KHotKeyScreenDimension1, "EHotKeyScreenDimension1"); -_LIT(KHotKeyScreenDimension2, "EHotKeyScreenDimension2"); -_LIT(KHotKeyScreenDimension3, "EHotKeyScreenDimension3"); -_LIT(KHotKeyCycleDisplaySize, "EHotKeyCycleDisplaySize"); -_LIT(KHotKeyCycleOrientation, "EHotKeyCycleOrientation"); -_LIT(KHotKeyIncBrightness, "EHotKeyIncBrightness"); -_LIT(KHotKeyDecBrightness, "EHotKeyDecBrightness"); -_LIT(KHotKeyCycleFocusScreen, "EHotKeyCycleFocusScreen"); -_LIT(KHotKeyFirstKeyType, "EHotKeyFirstKeyType"); -_LIT(KHotKeyLastKeyType, "EHotKeyLastKeyType"); - -_LIT(KKeyNull, "EKeyNull"); -_LIT(KKeyBell, "EKeyBell"); -_LIT(KKeyBackspace, "EKeyBackspace"); -_LIT(KKeyTab, "EKeyTab"); -_LIT(KKeyLineFeed, "EKeyLineFeed"); -_LIT(KKeyVerticalTab, "EKeyVerticalTab"); -_LIT(KKeyFormFeed, "EKeyFormFeed"); -_LIT(KKeyEnter, "EKeyEnter"); -_LIT(KKeyEscape, "EKeyEscape"); -_LIT(KKeySpace, "EKeySpace"); -_LIT(KKeyDelete, "EKeyDelete"); -_LIT(KKeyPrintScreen, "EKeyPrintScreen"); -_LIT(KKeyPause, "EKeyPause"); -_LIT(KKeyHome, "EKeyHome"); -_LIT(KKeyEnd, "EKeyEnd"); -_LIT(KKeyPageUp, "EKeyPageUp"); -_LIT(KKeyPageDown, "EKeyPageDown"); -_LIT(KKeyInsert, "EKeyInsert"); -_LIT(KKeyLeftArrow, "EKeyLeftArrow"); -_LIT(KKeyRightArrow, "EKeyRightArrow"); -_LIT(KKeyUpArrow, "EKeyUpArrow"); -_LIT(KKeyDownArrow, "EKeyDownArrow"); -_LIT(KKeyLeftShift, "EKeyLeftShift"); -_LIT(KKeyRightShift, "EKeyRightShift"); -_LIT(KKeyLeftAlt, "EKeyLeftAlt"); -_LIT(KKeyRightAlt, "EKeyRightAlt"); -_LIT(KKeyLeftCtrl, "EKeyLeftCtrl"); -_LIT(KKeyRightCtrl, "EKeyRightCtrl"); -_LIT(KKeyLeftFunc, "EKeyLeftFunc"); -_LIT(KKeyRightFunc, "EKeyRightFunc"); -_LIT(KKeyCapsLock, "EKeyCapsLock"); -_LIT(KKeyNumLock, "EKeyNumLock"); -_LIT(KKeyScrollLock, "EKeyScrollLock"); -_LIT(KKeyF1, "EKeyF1"); -_LIT(KKeyF2, "EKeyF2"); -_LIT(KKeyF3, "EKeyF3"); -_LIT(KKeyF4, "EKeyF4"); -_LIT(KKeyF5, "EKeyF5"); -_LIT(KKeyF6, "EKeyF6"); -_LIT(KKeyF7, "EKeyF7"); -_LIT(KKeyF8, "EKeyF8"); -_LIT(KKeyF9, "EKeyF9"); -_LIT(KKeyF10, "EKeyF10"); -_LIT(KKeyF11, "EKeyF11"); -_LIT(KKeyF12, "EKeyF12"); -_LIT(KKeyF13, "EKeyF13"); -_LIT(KKeyF14, "EKeyF14"); -_LIT(KKeyF15, "EKeyF15"); -_LIT(KKeyF16, "EKeyF16"); -_LIT(KKeyF17, "EKeyF17"); -_LIT(KKeyF18, "EKeyF18"); -_LIT(KKeyF19, "EKeyF19"); -_LIT(KKeyF20, "EKeyF20"); -_LIT(KKeyF21, "EKeyF21"); -_LIT(KKeyF22, "EKeyF22"); -_LIT(KKeyF23, "EKeyF23"); -_LIT(KKeyF24, "EKeyF24"); -_LIT(KKeyOff, "EKeyOff"); -_LIT(KKeyIncContrast, "EKeyIncContrast"); -_LIT(KKeyDecContrast, "EKeyDecContrast"); -_LIT(KKeyBacklightOn, "EKeyBacklightOn"); -_LIT(KKeyBacklightOff, "EKeyBacklightOff"); -_LIT(KKeyBacklightToggle, "EKeyBacklightToggle"); -_LIT(KKeySliderDown, "EKeySliderDown"); -_LIT(KKeySliderUp, "EKeySliderUp"); -_LIT(KKeyMenu, "EKeyMenu"); -_LIT(KKeyDictaphonePlay, "EKeyDictaphonePlay"); -_LIT(KKeyDictaphoneStop, "EKeyDictaphoneStop"); -_LIT(KKeyDictaphoneRecord, "EKeyDictaphoneRecord"); -_LIT(KKeyHelp, "EKeyHelp"); -_LIT(KKeyDial, "EKeyDial"); -_LIT(KKeyScreenDimension0, "EKeyScreenDimension0"); -_LIT(KKeyScreenDimension1, "EKeyScreenDimension1"); -_LIT(KKeyScreenDimension2, "EKeyScreenDimension2"); -_LIT(KKeyScreenDimension3, "EKeyScreenDimension3"); -_LIT(KKeyIncVolume, "EKeyIncVolume"); -_LIT(KKeyDecVolume, "EKeyDecVolume"); -_LIT(KKeyDevice0, "EKeyDevice0"); -_LIT(KKeyDevice1, "EKeyDevice1"); -_LIT(KKeyDevice2, "EKeyDevice2"); -_LIT(KKeyDevice3, "EKeyDevice3"); -_LIT(KKeyDevice4, "EKeyDevice4"); -_LIT(KKeyDevice5, "EKeyDevice5"); -_LIT(KKeyDevice6, "EKeyDevice6"); -_LIT(KKeyDevice7, "EKeyDevice7"); -_LIT(KKeyDevice8, "EKeyDevice8"); -_LIT(KKeyDevice9, "EKeyDevice9"); -_LIT(KKeyDeviceA, "EKeyDeviceA"); -_LIT(KKeyDeviceB, "EKeyDeviceB"); -_LIT(KKeyDeviceC, "EKeyDeviceC"); -_LIT(KKeyDeviceD, "EKeyDeviceD"); -_LIT(KKeyDeviceE, "EKeyDeviceE"); -_LIT(KKeyDeviceF, "EKeyDeviceF"); -_LIT(KKeyApplication0, "EKeyApplication0"); -_LIT(KKeyApplication1, "EKeyApplication1"); -_LIT(KKeyApplication2, "EKeyApplication2"); -_LIT(KKeyApplication3, "EKeyApplication3"); -_LIT(KKeyApplication4, "EKeyApplication4"); -_LIT(KKeyApplication5, "EKeyApplication5"); -_LIT(KKeyApplication6, "EKeyApplication6"); -_LIT(KKeyApplication7, "EKeyApplication7"); -_LIT(KKeyApplication8, "EKeyApplication8"); -_LIT(KKeyApplication9, "EKeyApplication9"); -_LIT(KKeyApplicationA, "EKeyApplicationA"); -_LIT(KKeyApplicationB, "EKeyApplicationB"); -_LIT(KKeyApplicationC, "EKeyApplicationC"); -_LIT(KKeyApplicationD, "EKeyApplicationD"); -_LIT(KKeyApplicationE, "EKeyApplicationE"); -_LIT(KKeyApplicationF, "EKeyApplicationF"); -_LIT(KKeyYes, "EKeyYes"); -_LIT(KKeyNo, "EKeyNo"); -_LIT(KKeyIncBrightness, "EKeyIncBrightness"); -_LIT(KKeyDecBrightness, "EKeyDecBrightness"); -_LIT(KKeyKeyboardExtend, "EKeyKeyboardExtend"); -_LIT(KKeyDevice10, "EKeyDevice10"); -_LIT(KKeyDevice11, "EKeyDevice11"); -_LIT(KKeyDevice12, "EKeyDevice12"); -_LIT(KKeyDevice13, "EKeyDevice13"); -_LIT(KKeyDevice14, "EKeyDevice14"); -_LIT(KKeyDevice15, "EKeyDevice15"); -_LIT(KKeyDevice16, "EKeyDevice16"); -_LIT(KKeyDevice17, "EKeyDevice17"); -_LIT(KKeyDevice18, "EKeyDevice18"); -_LIT(KKeyDevice19, "EKeyDevice19"); -_LIT(KKeyDevice1A, "EKeyDevice1A"); -_LIT(KKeyDevice1B, "EKeyDevice1B"); -_LIT(KKeyDevice1C, "EKeyDevice1C"); -_LIT(KKeyDevice1D, "EKeyDevice1D"); -_LIT(KKeyDevice1E, "EKeyDevice1E"); -_LIT(KKeyDevice1F, "EKeyDevice1F"); -_LIT(KKeyApplication10, "EKeyApplication10"); -_LIT(KKeyApplication11, "EKeyApplication11"); -_LIT(KKeyApplication12, "EKeyApplication12"); -_LIT(KKeyApplication13, "EKeyApplication13"); -_LIT(KKeyApplication14, "EKeyApplication14"); -_LIT(KKeyApplication15, "EKeyApplication15"); -_LIT(KKeyApplication16, "EKeyApplication16"); -_LIT(KKeyApplication17, "EKeyApplication17"); -_LIT(KKeyApplication18, "EKeyApplication18"); -_LIT(KKeyApplication19, "EKeyApplication19"); -_LIT(KKeyApplication1A, "EKeyApplication1A"); -_LIT(KKeyApplication1B, "EKeyApplication1B"); -_LIT(KKeyApplication1C, "EKeyApplication1C"); -_LIT(KKeyApplication1D, "EKeyApplication1D"); -_LIT(KKeyApplication1E, "EKeyApplication1E"); -_LIT(KKeyApplication1F, "EKeyApplication1F"); - -_LIT(KLoggingEnable, "ELoggingEnable"); -_LIT(KLoggingDisable, "ELoggingDisable"); -_LIT(KLoggingStatusDump, "ELoggingStatusDump"); -_LIT(KLoggingHeapDump, "ELoggingHeapDump"); - -_LIT(KModifierStateTurnOnModifier, "ETurnOnModifier"); -_LIT(KModifierStateTurnOffModifier, "ETurnOffModifier"); -_LIT(KModifierStateToggleModifier, "EToggleModifier"); - -_LIT(KPasswordModeCancel, "EPasswordCancel"); -_LIT(KPasswordModeNone, "EPasswordNone"); -_LIT(KPasswordModeOnceADay, "EPasswordOnceADay"); -_LIT(KPasswordModeAlways, "EPasswordAlways"); -_LIT(KPasswordModeAlwaysTriggerNow, "EPasswordAlwaysTriggerNow"); -_LIT(KPasswordModeOnceADayTriggerNow, "EPasswordOnceADayTriggerNow"); - -_LIT(KPenStyleNull, "ENullPen"); -_LIT(KPenStyleSolid, "ESolidPen"); -_LIT(KPenStyleDotted, "EDottedPen"); -_LIT(KPenStyleDashed, "EDashedPen"); -_LIT(KPenStyleDotDash, "EDotDashPen"); -_LIT(KPenStyleDotDotDash, "EDotDotDashPen"); - -_LIT(KPointerCursorNone, "EPointerCursorNone"); -_LIT(KPointerCursorFixed, "EPointerCursorFixed"); -_LIT(KPointerCursorNormal, "EPointerCursorNormal"); -_LIT(KPointerCursorWindow, "EPointerCursorWindow"); -_LIT(KPointerCursorFirstMode, "EPointerCursorFirstMode"); -_LIT(KPointerCursorLastMode, "EPointerCursorLastMode"); - -_LIT(KPointerFilterEnterExit, "EPointerFilterEnterExit"); -_LIT(KPointerFilterMove, "EPointerFilterMove"); -_LIT(KPointerFilterDrag, "EPointerFilterDrag"); -_LIT(KPointerFilterGenerateSimulatedMove, "EPointerGenerateSimulatedMove"); -_LIT(KPointerFilterMoveEvents, "EPointerMoveEvents"); - -#if defined(SYMBIAN_WSERV_AND_CONE_MULTIPLE_SCREENS) -_LIT(KPrioritiesAll, "EAllPriorities"); -#endif - -_LIT(KPriorityIdle, "EPriorityIdle"); -_LIT(KPriorityLow, "EPriorityLow"); -_LIT(KPriorityStandard, "EPriorityStandard"); -_LIT(KPriorityUserInput, "EPriorityUserInput"); -_LIT(KPriorityHigh, "EPriorityHigh"); - -_LIT(KSizeEnforcementNone, "ESizeEnforcementNone"); -_LIT(KSizeEnforcementPixelsAndRotation, "ESizeEnforcementPixelsAndRotation"); -_LIT(KSizeEnforcementPixelsTwipsAndRotation, "ESizeEnforcementPixelsTwipsAndRotation"); - -_LIT(KSpriteInCompareRemoveSprite, "ERemoveSprite"); -_LIT(KSpriteInCompareIncludeSprite, "EIncludeSprite"); -_LIT(KSpriteInCompareIncludeTextCursor, "EIncludeTextCursor"); - -_LIT(KStdKeyNull, "EStdKeyNull"); -_LIT(KStdKeyBackspace, "EStdKeyBackspace"); -_LIT(KStdKeyTab, "EStdKeyTab"); -_LIT(KStdKeyEnter, "EStdKeyEnter"); -_LIT(KStdKeyEscape, "EStdKeyEscape"); -_LIT(KStdKeySpace, "EStdKeySpace"); -_LIT(KStdKeyPrintScreen, "EStdKeyPrintScreen"); -_LIT(KStdKeyPause, "EStdKeyPause"); -_LIT(KStdKeyHome, "EStdKeyHome"); -_LIT(KStdKeyEnd, "EStdKeyEnd"); -_LIT(KStdKeyPageUp, "EStdKeyPageUp"); -_LIT(KStdKeyPageDown, "EStdKeyPageDown"); -_LIT(KStdKeyInsert, "EStdKeyInsert"); -_LIT(KStdKeyDelete, "EStdKeyDelete"); -_LIT(KStdKeyLeftArrow, "EStdKeyLeftArrow"); -_LIT(KStdKeyRightArrow, "EStdKeyRightArrow"); -_LIT(KStdKeyUpArrow, "EStdKeyUpArrow"); -_LIT(KStdKeyDownArrow, "EStdKeyDownArrow"); -_LIT(KStdKeyLeftShift, "EStdKeyLeftShift"); -_LIT(KStdKeyRightShift, "EStdKeyRightShift"); -_LIT(KStdKeyLeftAlt, "EStdKeyLeftAlt"); -_LIT(KStdKeyRightAlt, "EStdKeyRightAlt"); -_LIT(KStdKeyLeftCtrl, "EStdKeyLeftCtrl"); -_LIT(KStdKeyRightCtrl, "EStdKeyRightCtrl"); -_LIT(KStdKeyLeftFunc, "EStdKeyLeftFunc"); -_LIT(KStdKeyRightFunc, "EStdKeyRightFunc"); -_LIT(KStdKeyCapsLock, "EStdKeyCapsLock"); -_LIT(KStdKeyNumLock, "EStdKeyNumLock"); -_LIT(KStdKeyScrollLock, "EStdKeyScrollLock"); -_LIT(KStdKeyF1, "EStdKeyF1"); -_LIT(KStdKeyF2, "EStdKeyF2"); -_LIT(KStdKeyF3, "EStdKeyF3"); -_LIT(KStdKeyF4, "EStdKeyF4"); -_LIT(KStdKeyF5, "EStdKeyF5"); -_LIT(KStdKeyF6, "EStdKeyF6"); -_LIT(KStdKeyF7, "EStdKeyF7"); -_LIT(KStdKeyF8, "EStdKeyF8"); -_LIT(KStdKeyF9, "EStdKeyF9"); -_LIT(KStdKeyF10, "EStdKeyF10"); -_LIT(KStdKeyF11, "EStdKeyF11"); -_LIT(KStdKeyF12, "EStdKeyF12"); -_LIT(KStdKeyF13, "EStdKeyF13"); -_LIT(KStdKeyF14, "EStdKeyF14"); -_LIT(KStdKeyF15, "EStdKeyF15"); -_LIT(KStdKeyF16, "EStdKeyF16"); -_LIT(KStdKeyF17, "EStdKeyF17"); -_LIT(KStdKeyF18, "EStdKeyF18"); -_LIT(KStdKeyF19, "EStdKeyF19"); -_LIT(KStdKeyF20, "EStdKeyF20"); -_LIT(KStdKeyF21, "EStdKeyF21"); -_LIT(KStdKeyF22, "EStdKeyF22"); -_LIT(KStdKeyF23, "EStdKeyF23"); -_LIT(KStdKeyF24, "EStdKeyF24"); -_LIT(KStdKeyXXX, "EStdKeyXXX"); -_LIT(KStdKeyComma, "EStdKeyComma"); -_LIT(KStdKeyFullStop, "EStdKeyFullStop"); -_LIT(KStdKeyForwardSlash, "EStdKeyForwardSlash"); -_LIT(KStdKeyBackSlash, "EStdKeyBackSlash"); -_LIT(KStdKeySemiColon, "EStdKeySemiColon"); -_LIT(KStdKeySingleQuote, "EStdKeySingleQuote"); -_LIT(KStdKeyHash, "EStdKeyHash"); -_LIT(KStdKeySquareBracketLeft, "EStdKeySquareBracketLeft"); -_LIT(KStdKeySquareBracketRight, "EStdKeySquareBracketRight"); -_LIT(KStdKeyMinus, "EStdKeyMinus"); -_LIT(KStdKeyEquals, "EStdKeyEquals"); -_LIT(KStdKeyNkpForwardSlash, "EStdKeyNkpForwardSlash"); -_LIT(KStdKeyNkpAsterisk, "EStdKeyNkpAsterisk"); -_LIT(KStdKeyNkpMinus, "EStdKeyNkpMinus"); -_LIT(KStdKeyNkpPlus, "EStdKeyNkpPlus"); -_LIT(KStdKeyNkpEnter, "EStdKeyNkpEnter"); -_LIT(KStdKeyNkp1, "EStdKeyNkp1"); -_LIT(KStdKeyNkp2, "EStdKeyNkp2"); -_LIT(KStdKeyNkp3, "EStdKeyNkp3"); -_LIT(KStdKeyNkp4, "EStdKeyNkp4"); -_LIT(KStdKeyNkp5, "EStdKeyNkp5"); -_LIT(KStdKeyNkp6, "EStdKeyNkp6"); -_LIT(KStdKeyNkp7, "EStdKeyNkp7"); -_LIT(KStdKeyNkp8, "EStdKeyNkp8"); -_LIT(KStdKeyNkp9, "EStdKeyNkp9"); -_LIT(KStdKeyNkp0, "EStdKeyNkp0"); -_LIT(KStdKeyNkpFullStop, "EStdKeyNkpFullStop"); -_LIT(KStdKeyMenu, "EStdKeyMenu"); -_LIT(KStdKeyBacklightOn, "EStdKeyBacklightOn"); -_LIT(KStdKeyBacklightOff, "EStdKeyBacklightOff"); -_LIT(KStdKeyBacklightToggle, "EStdKeyBacklightToggle"); -_LIT(KStdKeyIncContrast, "EStdKeyIncContrast"); -_LIT(KStdKeyDecContrast, "EStdKeyDecContrast"); -_LIT(KStdKeySliderDown, "EStdKeySliderDown"); -_LIT(KStdKeySliderUp, "EStdKeySliderUp"); -_LIT(KStdKeyDictaphonePlay, "EStdKeyDictaphonePlay"); -_LIT(KStdKeyDictaphoneStop, "EStdKeyDictaphoneStop"); -_LIT(KStdKeyDictaphoneRecord, "EStdKeyDictaphoneRecord"); -_LIT(KStdKeyHelp, "EStdKeyHelp"); -_LIT(KStdKeyOff, "EStdKeyOff"); -_LIT(KStdKeyDial, "EStdKeyDial"); -_LIT(KStdKeyIncVolume, "EStdKeyIncVolume"); -_LIT(KStdKeyDecVolume, "EStdKeyDecVolume"); -_LIT(KStdKeyDevice0, "EStdKeyDevice0"); -_LIT(KStdKeyDevice1, "EStdKeyDevice1"); -_LIT(KStdKeyDevice2, "EStdKeyDevice2"); -_LIT(KStdKeyDevice3, "EStdKeyDevice3"); -_LIT(KStdKeyDevice4, "EStdKeyDevice4"); -_LIT(KStdKeyDevice5, "EStdKeyDevice5"); -_LIT(KStdKeyDevice6, "EStdKeyDevice6"); -_LIT(KStdKeyDevice7, "EStdKeyDevice7"); -_LIT(KStdKeyDevice8, "EStdKeyDevice8"); -_LIT(KStdKeyDevice9, "EStdKeyDevice9"); -_LIT(KStdKeyDeviceA, "EStdKeyDeviceA"); -_LIT(KStdKeyDeviceB, "EStdKeyDeviceB"); -_LIT(KStdKeyDeviceC, "EStdKeyDeviceC"); -_LIT(KStdKeyDeviceD, "EStdKeyDeviceD"); -_LIT(KStdKeyDeviceE, "EStdKeyDeviceE"); -_LIT(KStdKeyDeviceF, "EStdKeyDeviceF"); -_LIT(KStdKeyApplication0, "EStdKeyApplication0"); -_LIT(KStdKeyApplication1, "EStdKeyApplication1"); -_LIT(KStdKeyApplication2, "EStdKeyApplication2"); -_LIT(KStdKeyApplication3, "EStdKeyApplication3"); -_LIT(KStdKeyApplication4, "EStdKeyApplication4"); -_LIT(KStdKeyApplication5, "EStdKeyApplication5"); -_LIT(KStdKeyApplication6, "EStdKeyApplication6"); -_LIT(KStdKeyApplication7, "EStdKeyApplication7"); -_LIT(KStdKeyApplication8, "EStdKeyApplication8"); -_LIT(KStdKeyApplication9, "EStdKeyApplication9"); -_LIT(KStdKeyApplicationA, "EStdKeyApplicationA"); -_LIT(KStdKeyApplicationB, "EStdKeyApplicationB"); -_LIT(KStdKeyApplicationC, "EStdKeyApplicationC"); -_LIT(KStdKeyApplicationD, "EStdKeyApplicationD"); -_LIT(KStdKeyApplicationE, "EStdKeyApplicationE"); -_LIT(KStdKeyApplicationF, "EStdKeyApplicationF"); -_LIT(KStdKeyYes, "EStdKeyYes"); -_LIT(KStdKeyNo, "EStdKeyNo"); -_LIT(KStdKeyIncBrightness, "EStdKeyIncBrightness"); -_LIT(KStdKeyDecBrightness, "EStdKeyDecBrightness"); -_LIT(KStdKeyKeyboardExtend, "EStdKeyKeyboardExtend"); -_LIT(KStdKeyDevice10, "EStdKeyDevice10"); -_LIT(KStdKeyDevice11, "EStdKeyDevice11"); -_LIT(KStdKeyDevice12, "EStdKeyDevice12"); -_LIT(KStdKeyDevice13, "EStdKeyDevice13"); -_LIT(KStdKeyDevice14, "EStdKeyDevice14"); -_LIT(KStdKeyDevice15, "EStdKeyDevice15"); -_LIT(KStdKeyDevice16, "EStdKeyDevice16"); -_LIT(KStdKeyDevice17, "EStdKeyDevice17"); -_LIT(KStdKeyDevice18, "EStdKeyDevice18"); -_LIT(KStdKeyDevice19, "EStdKeyDevice19"); -_LIT(KStdKeyDevice1A, "EStdKeyDevice1A"); -_LIT(KStdKeyDevice1B, "EStdKeyDevice1B"); -_LIT(KStdKeyDevice1C, "EStdKeyDevice1C"); -_LIT(KStdKeyDevice1D, "EStdKeyDevice1D"); -_LIT(KStdKeyDevice1E, "EStdKeyDevice1E"); -_LIT(KStdKeyDevice1F, "EStdKeyDevice1F"); -_LIT(KStdKeyApplication10, "EStdKeyApplication10"); -_LIT(KStdKeyApplication11, "EStdKeyApplication11"); -_LIT(KStdKeyApplication12, "EStdKeyApplication12"); -_LIT(KStdKeyApplication13, "EStdKeyApplication13"); -_LIT(KStdKeyApplication14, "EStdKeyApplication14"); -_LIT(KStdKeyApplication15, "EStdKeyApplication15"); -_LIT(KStdKeyApplication16, "EStdKeyApplication16"); -_LIT(KStdKeyApplication17, "EStdKeyApplication17"); -_LIT(KStdKeyApplication18, "EStdKeyApplication18"); -_LIT(KStdKeyApplication19, "EStdKeyApplication19"); -_LIT(KStdKeyApplication1A, "EStdKeyApplication1A"); -_LIT(KStdKeyApplication1B, "EStdKeyApplication1B"); -_LIT(KStdKeyApplication1C, "EStdKeyApplication1C"); -_LIT(KStdKeyApplication1D, "EStdKeyApplication1D"); -_LIT(KStdKeyApplication1E, "EStdKeyApplication1E"); -_LIT(KStdKeyApplication1F, "EStdKeyApplication1F"); - -_LIT(KTextAlignLeft, "ELeft"); -_LIT(KTextAlignCenter, "ECenter"); -_LIT(KTextAlignRight, "ERight"); - -_LIT(KTextDirectionHorizontal, "EHorizontal"); -_LIT(KTextDirectionVertical, "EVertical"); - -_LIT(KTypeNone, "ENone"); -_LIT(KTypePointerMove, "EPointerMove"); -_LIT(KTypePointerSwitchOn, "EPointerSwitchOn"); -_LIT(KTypeKeyDown, "EKeyDown"); -_LIT(KTypeKeyUp, "EKeyUp"); -_LIT(KTypeRedraw, "ERedraw"); -_LIT(KTypeSwitchOn, "ESwitchOn"); -_LIT(KTypeActive, "EActive"); -_LIT(KTypeInactive, "EInactive"); -_LIT(KTypeUpdateModifiers, "EUpdateModifiers"); -_LIT(KTypeButton1Down, "EButton1Down"); -_LIT(KTypeButton1Up, "EButton1Up"); -_LIT(KTypeButton2Down, "EButton2Down"); -_LIT(KTypeButton2Up, "EButton2Up"); -_LIT(KTypeButton3Down, "EButton3Down"); -_LIT(KTypeButton3Up, "EButton3Up"); -_LIT(KTypeSwitchOff, "ESwitchOff"); -_LIT(KTypeKeyRepeat, "EKeyRepeat"); -_LIT(KTypeCaseOpen, "ECaseOpen"); -_LIT(KTypeCaseClose, "ECaseClose"); -_LIT(KTypePointer3DInRange, "EPointer3DInRange"); -_LIT(KTypePointer3DOutOfRange, "EPointer3DOutOfRange"); -_LIT(KTypePointer3DTilt, "EPointer3DTilt"); -_LIT(KTypePointer3DRotation, "EPointer3DRotation"); -_LIT(KTypePointer3DTiltAndMove, "EPointer3DTiltAndMove"); -_LIT(KTypeButton4Down, "EButton4Down"); -_LIT(KTypeButton4Up, "EButton4Up"); -_LIT(KTypeButton5Down, "EButton5Down"); -_LIT(KTypeButton5Up, "EButton5Up"); -_LIT(KTypeButton6Down, "EButton6Down"); -_LIT(KTypeButton6Up, "EButton6Up"); -_LIT(KTypeRestartSystem, "ERestartSystem"); - -_LIT(KTypeDrag, "EDrag"); -_LIT(KTypeMove, "EMove"); -_LIT(KTypeButtonRepeat, "EButtonRepeat"); - -_LIT(KWindowBackupTypeAreaBehind, "EWindowBackupAreaBehind"); -_LIT(KWindowBackupTypeFullScreen, "EWindowBackupFullScreen"); - -_LIT(KWsTransparencyPolicyDefault, "ETransparencyDefault"); -_LIT(KWsTransparencyPolicyFreezeUnder, "ETransparencyFreezeUnder"); - -_LIT(KWsVisibilityChangedCanBeSeen, "ECanBeSeen"); -_LIT(KWsVisibilityChangedCantBeSeen, "ECantBeSeen"); -_LIT(KWsVisibilityChangedPartiallyVisible, "EPartiallyVisible"); -_LIT(KWsVisibilityChangedNotVisible, "ENotVisible"); -_LIT(KWsVisibilityChangedFullyVisible, "EFullyVisible"); - -_LIT(KELongCaptureShortEventImmediately, "ELongCaptureShortEventImmediately"); -_LIT(KELongCaptureRepeatEvents, "ELongCaptureRepeatEvents"); -_LIT(KELongCaptureNormal, "ELongCaptureNormal"); -_LIT(KELongCaptureWaitShort, "ELongCaptureWaitShort"); - -_LIT(KESpriteFlash, "ESpriteFlash"); -_LIT(KESpriteNoChildClip, "ESpriteNoChildClip"); -_LIT(KESpriteNoShadows, "ESpriteNoShadows"); - -_LIT(KECustomTextCursorAlignTop, "ECustomTextCursorAlignTop"); -_LIT(KECustomTextCursorAlignBaseline, "ECustomTextCursorAlignBaseline"); -_LIT(KECustomTextCursorAlignBottom, "ECustomTextCursorAlignBottom"); - -_LIT(KETypeRectangle, "ETypeRectangle"); -_LIT(KETypeHollowRectangle, "ETypeHollowRectangle"); -_LIT(KETypeFirst, "ETypeFirst"); -_LIT(KETypeLast, "ETypeLast"); -_LIT(KETypeLastBasic, "ETypeHollowRectangle"); - -_LIT(KEFlagNoFlash, "EFlagNoFlash"); -_LIT(KEFlagClipHorizontal, "EFlagClipHorizontal"); -_LIT(KEFlagClipVertical, "EFlagClipVertical"); - -_LIT(KTypefaceFontName, "typeface_name"); -_LIT(KIsScalable, "is_scalable"); -_LIT(KNumHeights, "num_heights"); -_LIT(KMinHeightInTwips, "min_height_in_twips"); -_LIT(KMaxHeightInTwips, "max_height_in_twips"); - -_LIT(KProportional, "typeface_attribute_proportional"); -_LIT(KSerif, "typeface_attribute_serif"); -_LIT(KSymbol, "typeface_attribute_symbol"); - -_LIT(KETerminateCancel, "ETerminateCancel"); -_LIT(KETerminateRegion, "ETerminateRegion"); -_LIT(KETerminateRotation, "ETerminateRotation"); -_LIT(KETerminateScreenMode, "EETerminateScreenMode"); - -_LIT(KEColor, "EColor"); -_LIT(KETransparencyPossible, "ETransparencyPossible"); -_LIT(KEFullyScaleable, "EFullyScaleable"); -_LIT(KEConstantAspectRatio, "EConstantAspectRatio"); -_LIT(KECanDither, "ECanDither"); -_LIT(KEAlphaChannel, "EAlphaChannel"); -_LIT(KELeaveInPlace, "ELeaveInPlace"); -_LIT(KERestoreToBackground, "ERestoreToBackground"); -_LIT(KERestoreToPrevious, "ERestoreToPrevious"); -_LIT(KEPartialDecodeInvalid, "EPartialDecodeInvalid"); -_LIT(KEMngMoreFramesToDecode, "EMngMoreFramesToDecode"); -_LIT(KEUsesFrameSizeInPixels, "EUsesFrameSizeInPixels"); - -_LIT(KEFrameInfoUninitialised, "EFrameInfoUninitialised"); -_LIT(KEFrameInfoProcessingFrameHeader, "EFrameInfoProcessingFrameHeader"); -_LIT(KEFrameInfoProcessingFrame, "EFrameInfoProcessingFrame"); -_LIT(KEFrameInfoProcessingComplete, "EFrameInfoProcessingComplete"); - -_LIT(KFldFrameInfoState, "frameinfostate"); -_LIT(KFldCurrentDataOffset, "currentdataoffset"); -_LIT(KFldFrameDataOffset, "framedataoffset"); -_LIT(KFldFrameCoordsInPixels, "framecoordsinpixels"); -_LIT(KFldFrameSizeInTwips, "framesizeintwips"); -_LIT(KFldBitsPerPixel, "bitsPerPixel"); -_LIT(KFldDelay, "delay"); -_LIT(KFldFlags, "flags"); -_LIT(KFldOverallSizeInPixels, "overallsizeinpixels"); -_LIT(KFldFrameDisplayMode, "framedisplaymode"); -_LIT(KFldBackgroundColor, "backgroundcolor"); -_LIT(KFldFrameSizeInPixels, "framesizeinpixels"); - -_LIT(KFldProcessName, "processname"); -_LIT(KFldId, "id"); -_LIT(KFldRect, "rect"); -_LIT(KFldWsga, "wsga"); - -//For MAnim -//Opcodes for Util -_LIT(KEMAnimECmdRetrieveResult, "ECmdRetrieveResult"); -_LIT(KEMAnimECmdUtilEatupMemory, "ECmdUtilEatupMemory"); -_LIT(KEMAnimECmdUtilFreeEatenMemory, "ECmdUtilFreeEatenMemory"); -//Opcodes for MAnimGeneralFunctions -_LIT(KEMAnimECmdGeneralAnimate, "ECmdGeneralAnimate"); -_LIT(KEMAnimECmdGeneralClient, "ECmdGeneralClient"); -_LIT(KEMAnimECmdGeneralFlashStateOn, "ECmdGeneralFlashStateOn"); -_LIT(KEMAnimECmdGeneralPanic, "ECmdGeneralPanic"); -_LIT(KEMAnimECmdGeneralScreenDevice, "ECmdGeneralScreenDevice"); -_LIT(KEMAnimECmdGeneralExtendedInterface, "ECmdGeneralExtendedInterface"); -_LIT(KEMAnimECmdGeneralWindowExtension, "ECmdGeneralWindowExtension"); -_LIT(KEMAnimECmdGeneralNumOfExtInterfaces, "ECmdGeneralNumOfExtInterfaces"); -_LIT(KEMAnimECmdGeneralEventExtension , "ECmdGeneralEventExtension"); -_LIT(KEMAnimECmdGeneralGetRawEvents , "ECmdGeneralGetRawEvents"); -_LIT(KEMAnimECmdGeneralPostRawEvent , "ECmdGeneralPostRawEvent"); -_LIT(KEMAnimECmdGeneralPostKeyEvent , "ECmdGeneralPostKeyEvent"); -_LIT(KEMAnimECmdGeneralSetSync , "ECmdGeneralSetSync"); -_LIT(KEMAnimECmdGeneralSync , "ECmdGeneralSync"); -_LIT(KEMAnimECmdGeneralSetInterval , "ECmdGeneralSetInterval"); -_LIT(KEMAnimECmdGeneralSetNextInterval , "ECmdGeneralSetNextInterval"); -_LIT(KEMAnimECmdGeneralSystemTime, "ECmdGeneralSystemTime"); -_LIT(KEMAnimECmdGeneralRegisterForNotis, "ECmdGeneralRegisterForNotis"); -_LIT(KEMAnimECmdGeneralMessage, "ECmdGeneralMessage"); -_LIT(KEMAnimECmdGeneralDuplicateBitmapL, "ECmdGeneralDuplicateBitmapL"); -_LIT(KEMAnimECmdGeneralDuplicateFontL, "ECmdGeneralDuplicateFontL"); -_LIT(KEMAnimECmdGeneralCloseFont, "ECmdGeneralCloseFont"); -_LIT(KEMAnimECmdGeneralReplyBuf8, "ECmdGeneralReplyBuf8"); -_LIT(KEMAnimECmdGeneralReplyBuf16, "ECmdGeneralReplyBuf16"); - -//Opcodes for MAnimSpriteFunctions -_LIT(KEMAnimECmdSpriteGetSpriteMember, "ECmdSpriteGetSpriteMember"); -_LIT(KEMAnimECmdSpriteUpdateMember, "ECmdSpriteUpdateMember"); -_LIT(KEMAnimECmdSpriteActivate, "ECmdSpriteActivate"); -_LIT(KEMAnimECmdSpriteSpriteCanBeSeen, "ECmdSpriteSpriteCanBeSeen"); -_LIT(KEMAnimECmdSpriteSizeChangedL, "ECmdSpriteSizeChangedL"); -_LIT(KEMAnimECmdSpriteSetPosition, "ECmdSpriteSetPosition"); - - - -//Opcodes for MAnimWindowFunctions -_LIT(KEMAnimECmdWindowActivateGc, "ECmdWindowActivateGc");//Verify the return value is expected -_LIT(KEMAnimECmdWindowSetRect, "ECmdWindowSetRect"); -_LIT(KEMAnimECmdWindowWindowSize, "ECmdWindowWindowSize"); -_LIT(KEMAnimECmdWindowIsHidden, "ECmdWindowIsHidden"); -_LIT(KEMAnimECmdWindowSetVisible, "ECmdWindowSetVisible"); -_LIT(KEMAnimECmdWindowInvalidate, "ECmdWindowInvalidate"); -_LIT(KEMAnimECmdWindowParameters, "ECmdWindowParameters"); -_LIT(KEMAnimECmdWindowVisibleRegion, "ECmdWindowVisibleRegion"); -_LIT(KEMAnimECmdWindowIsStarted, "ECmdWindowIsStarted"); - -//Opcodes for MAnimFreeTimerWindowFunctions -_LIT(KEMAnimECmdFreeTimerWinDeactivateGc, "ECmdFreeTimerWinDeactivateGc"); -_LIT(KEMAnimECmdFreeTimerWinUpdate, "ECmdFreeTimerWinUpdate"); - -//Opcodes for MAnimGeneralFunctionsWindowExtension -_LIT(KEMAnimECmdGfweScreens, "ECmdGfweScreens"); -_LIT(KEMAnimECmdGfweFocusScreens, "ECmdGfweFocusScreens"); -_LIT(KEMAnimECmdGfweSetFocusScreen, "ECmdGfweSetFocusScreen"); -_LIT(KEMAnimECmdGfweWindowGroups, "ECmdGfweWindowGroups"); -_LIT(KEMAnimECmdGfweWindowGroupInfo, "ECmdGfweWindowGroupInfo"); -_LIT(KEMAnimECmdGfweWindowGroupName, "ECmdGfweWindowGroupName");//use handle to verify it in server side -_LIT(KEMAnimECmdGfweSetOrdinalPosition, "ECmdGfweSetOrdinalPosition"); -_LIT(KEMAnimECmdGfweIsFocusable, "ECmdGfweIsFocusable"); -_LIT(KEMAnimECmdGfweWindowConfig, "ECmdGfweWindowConfig"); - - -_LIT(KEAnimWindows, "EKWindowAnim"); -_LIT(KEAnimSprite, "EKSpriteAnim"); -_LIT(KEAnimFreeTimer, "EKFreeTimerWindowAnim"); - - -_LIT(KEAnimCmdSync, "ECmdSync"); -_LIT(KEAnimCmdTestWithoutPara, "ECmdTestWithoutPara"); -_LIT(KEAnimCmdTestWithPara, "ECmdTestWithPara"); -_LIT(KEAnimCmdGetLast, "ECmdGetLast"); -_LIT(KEAnimCmdGetAnimInterval, "ECmdGetAnimInterval"); - -_LIT(KEGraphicsOrientationNormal, "EGraphicsOrientationNormal"); -_LIT(KEGraphicsOrientationRotated90, "EGraphicsOrientationRotated90"); -_LIT(KEGraphicsOrientationRotated180, "EGraphicsOrientationRotated180"); -_LIT(KEGraphicsOrientationRotated270, "EGraphicsOrientationRotated270"); -//For CPolygonFiller -_LIT(KUsageEGetAllPixelRunsSequentially, "EGetAllPixelRunsSequentially"); -_LIT(KUsageEGetPixelRunsSequentiallyForSpecifiedScanLines,"EGetPixelRunsSequentiallyForSpecifiedScanLines"); - -/*@}*/ - -RPointerArray < TAny > CT_GraphicsUtil::iMemArray; -TInt CT_GraphicsUtil::iAvaiableSpace=0; -TInt CT_GraphicsUtil::iBiggestBlock=0; - -TBool CT_GraphicsUtil::ReadBitmapfileCompressionScheme(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TBitmapfileCompressionScheme& aCompressionScheme) - { - // Read dither from INI file - TPtrC str; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, str); - if ( ret ) - { - if ( str==KRLECompression ) - { - aCompressionScheme=ERLECompression; - } - else if ( str==KPaletteCompression ) - { - aCompressionScheme=EPaletteCompression; - } - else if ( str==KPaletteCompressionWithRLEFallback ) - { - aCompressionScheme=EPaletteCompressionWithRLEFallback; - } - else - { - TInt intVal=0; - ret=aDataWrapper.GetIntFromConfig(aSectName, aKeyName, intVal); - if ( ret ) - { - aCompressionScheme=(TBitmapfileCompressionScheme)intVal; - } - } - } - - return ret; - } - -TBool CT_GraphicsUtil::ReadBrushStyle(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, CGraphicsContext::TBrushStyle& aBrushStyle) - { - // Read displaymode from INI file - TPtrC str; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, str); - if ( ret ) - { - if ( str==KBrushStyleNull ) - { - aBrushStyle=CGraphicsContext::ENullBrush; - } - else if ( str==KBrushStyleSolid ) - { - aBrushStyle=CGraphicsContext::ESolidBrush; - } - else if ( str==KBrushStylePatterned ) - { - aBrushStyle=CGraphicsContext::EPatternedBrush; - } - else if ( str==KBrushStyleVerticalHatch ) - { - aBrushStyle=CGraphicsContext::EVerticalHatchBrush; - } - else if ( str==KBrushStyleForwardDiagonalHatch ) - { - aBrushStyle=CGraphicsContext::EForwardDiagonalHatchBrush; - } - else if ( str==KBrushStyleHorizontalHatch ) - { - aBrushStyle=CGraphicsContext::EHorizontalHatchBrush; - } - else if ( str==KBrushStyleRearwardDiagonalHatch ) - { - aBrushStyle=CGraphicsContext::ERearwardDiagonalHatchBrush; - } - else if ( str==KBrushStyleSquareCrossHatch ) - { - aBrushStyle=CGraphicsContext::ESquareCrossHatchBrush; - } - else if ( str==KBrushStyleDiamondCrossHatch ) - { - aBrushStyle=CGraphicsContext::EDiamondCrossHatchBrush; - } - else - { - TInt intVal=0; - ret=aDataWrapper.GetIntFromConfig(aSectName, aKeyName, intVal); - if ( ret ) - { - aBrushStyle=(CGraphicsContext::TBrushStyle)intVal; - } - } - } - - return ret; - } - -TBool CT_GraphicsUtil::ReadCaptureFlags(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TUint& aCaptureFlags) - { - TPtrC str; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, str); - if ( ret ) - { - TUint temp=0; - ret=ConvertToCaptureFlags(str, temp); - if ( ret ) - { - aCaptureFlags=temp; - } - } - - return ret; - } - -TBool CT_GraphicsUtil::ConvertToCaptureFlags(const TDesC& aStr, RWindowBase::TCaptureFlags& aCaptureFlags) - { - TBool ret=ETrue; - if ( aStr==KCaptureFlagEnabled ) - { - aCaptureFlags=RWindowBase::TCaptureFlagEnabled; - } - else if ( aStr==KCaptureFlagDragDrop ) - { - aCaptureFlags=RWindowBase::TCaptureFlagDragDrop; - } - else if ( aStr==KCaptureFlagAllGroups ) - { - aCaptureFlags=RWindowBase::TCaptureFlagAllGroups; - } - else if ( aStr==KCaptureDisabled ) - { - aCaptureFlags=RWindowBase::TCaptureDisabled; - } - else if ( aStr==KCaptureEnabled ) - { - aCaptureFlags=RWindowBase::TCaptureEnabled; - } - else if ( aStr==KCaptureDragDrop ) - { - aCaptureFlags=RWindowBase::TCaptureDragDrop; - } - else - { - TUint captureFlags; - TLex lex(aStr); - ret=(lex.Val(captureFlags, EHex)==KErrNone); - if ( ret ) - { - aCaptureFlags=(RWindowBase::TCaptureFlags)captureFlags; - } - } - - return ret; - } - -TBool CT_GraphicsUtil::ConvertToCaptureFlags(const TDesC& aStr, TUint& aCaptureFlags) - { - TBool ret=ETrue; - TInt location=aStr.Match(_L("*|*")); - if( location!=KErrNotFound ) - { - // Converting Left part of the data - TPtrC tempStr=aStr.Left(location); - ret=ConvertToCaptureFlags(tempStr, aCaptureFlags); - - // Converting right data can be with another "|" - tempStr.Set(aStr.Mid(location+1)); - - TUint temp; - if ( ConvertToCaptureFlags(tempStr, temp) ) - { - aCaptureFlags|=temp; - } - else - { - ret=EFalse; - } - } - else - { - RWindowBase::TCaptureFlags captureFlags; - ret=ConvertToCaptureFlags(aStr, captureFlags); - if ( ret ) - { - aCaptureFlags=(TUint)captureFlags; - } - } - - return ret; - } - -TBool CT_GraphicsUtil::ReadComputeMode(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, RWsSession::TComputeMode& aComputeMode) - { - // Read dither from INI file - TPtrC str; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, str); - if ( ret ) - { - if ( str==KComputeModePriorityControlDisabled ) - { - aComputeMode=RWsSession::EPriorityControlDisabled; - } - else if ( str==KComputeModePriorityControlComputeOn ) - { - aComputeMode=RWsSession::EPriorityControlComputeOn; - } - else if ( str==KComputeModePriorityControlComputeOff ) - { - aComputeMode=RWsSession::EPriorityControlComputeOff; - } - else - { - TInt intVal=0; - ret=aDataWrapper.GetIntFromConfig(aSectName, aKeyName, intVal); - if ( ret ) - { - aComputeMode=(RWsSession::TComputeMode)intVal; - } - } - } - - return ret; - } - -TBool CT_GraphicsUtil::ReadCornerType(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TCornerType& aCornerType) - { - // Read dither from INI file - TPtrC str; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, str); - if ( ret ) - { - if ( str==KCornerTypeWindowSquare ) - { - aCornerType=EWindowCornerSquare; - } - else if ( str==KCornerTypeWindow1 ) - { - aCornerType=EWindowCorner1; - } - else if ( str==KCornerTypeWindow2 ) - { - aCornerType=EWindowCorner2; - } - else if ( str==KCornerTypeWindow3 ) - { - aCornerType=EWindowCorner3; - } - else if ( str==KCornerTypeWindow5 ) - { - aCornerType=EWindowCorner5; - } - else if ( str==KCornerTypeWindowRegion ) - { - aCornerType=EWindowCornerRegion; - } - else if ( str==KCornerTypeMask ) - { - aCornerType=ECornerTypeMask; - } - else - { - TInt intVal=0; - ret=aDataWrapper.GetIntFromConfig(aSectName, aKeyName, intVal); - if ( ret ) - { - aCornerType=(TCornerType)intVal; - } - } - } - - return ret; - } - -TBool CT_GraphicsUtil::ReadDisplayMode(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TDisplayMode& aDisplayMode) - { - // Read displaymode from INI file - TPtrC str; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, str); - if ( ret ) - { - if ( str==KDisplayModeNone ) - { - aDisplayMode=ENone; - } - else if ( str==KDisplayModeGray2 ) - { - aDisplayMode=EGray2; - } - else if ( str==KDisplayModeGray4 ) - { - aDisplayMode=EGray4; - } - else if ( str==KDisplayModeGray16 ) - { - aDisplayMode=EGray16; - } - else if ( str==KDisplayModeGray256 ) - { - aDisplayMode=EGray256; - } - else if ( str==KDisplayModeColor16 ) - { - aDisplayMode=EColor16; - } - else if ( str==KDisplayModeColor256 ) - { - aDisplayMode=EColor256; - } - else if ( str==KDisplayModeColor64K ) - { - aDisplayMode=EColor64K; - } - else if ( str==KDisplayModeColor16M ) - { - aDisplayMode=EColor16M; - } - else if ( str==KDisplayModeRgb ) - { - aDisplayMode=ERgb; - } - else if ( str==KDisplayModeColor4K ) - { - aDisplayMode=EColor4K; - } - else if ( str==KDisplayModeColor16MU ) - { - aDisplayMode=EColor16MU; - } - else if ( str==KDisplayModeColor16MA ) - { - aDisplayMode=EColor16MA; - } - else if ( str==KDisplayModeColor16MAP ) - { - aDisplayMode=EColor16MAP; - } - else if ( str==KDisplayModeColorLast ) - { - aDisplayMode=EColorLast; - } - else - { - TInt intVal=0; - ret=aDataWrapper.GetIntFromConfig(aSectName, aKeyName, intVal); - if ( ret ) - { - aDisplayMode=(TDisplayMode)intVal; - } - } - } - - return ret; - } - -TBool CT_GraphicsUtil::ReadDrawMode(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, CGraphicsContext::TDrawMode& aDrawMode) - { - // Read displaymode from INI file - TPtrC str; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, str); - if ( ret ) - { - if ( str==KDrawModeAND ) - { - aDrawMode=CGraphicsContext::EDrawModeAND; - } - else if ( str==KDrawModeNOTAND ) - { - aDrawMode=CGraphicsContext::EDrawModeNOTAND; - } - else if ( str==KDrawModePEN ) - { - aDrawMode=CGraphicsContext::EDrawModePEN; - } - else if ( str==KDrawModeANDNOT ) - { - aDrawMode=CGraphicsContext::EDrawModeANDNOT; - } - else if ( str==KDrawModeXOR ) - { - aDrawMode=CGraphicsContext::EDrawModeXOR; - } - else if ( str==KDrawModeOR ) - { - aDrawMode=CGraphicsContext::EDrawModeOR; - } - else if ( str==KDrawModeNOTANDNOT ) - { - aDrawMode=CGraphicsContext::EDrawModeNOTANDNOT; - } - else if ( str==KDrawModeNOTXOR ) - { - aDrawMode=CGraphicsContext::EDrawModeNOTXOR; - } - else if ( str==KDrawModeNOTSCREEN ) - { - aDrawMode=CGraphicsContext::EDrawModeNOTSCREEN; - } - else if ( str==KDrawModeNOTOR ) - { - aDrawMode=CGraphicsContext::EDrawModeNOTOR; - } - else if ( str==KDrawModeNOTPEN ) - { - aDrawMode=CGraphicsContext::EDrawModeNOTPEN; - } - else if ( str==KDrawModeORNOT ) - { - aDrawMode=CGraphicsContext::EDrawModeORNOT; - } - else if ( str==KDrawModeNOTORNOT ) - { - aDrawMode=CGraphicsContext::EDrawModeNOTORNOT; - } - else if ( str==KDrawModeWriteAlpha ) - { - aDrawMode=CGraphicsContext::EDrawModeWriteAlpha; - } - else - { - TInt intVal=0; - ret=aDataWrapper.GetIntFromConfig(aSectName, aKeyName, intVal); - if ( ret ) - { - aDrawMode=(CGraphicsContext::TDrawMode)intVal; - } - } - } - - return ret; - } - -TBool CT_GraphicsUtil::ReadErrorCategory(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TWsErrorMessage::TErrorCategory& aErrorCategory) - { - // Read dither from INI file - TPtrC str; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, str); - if ( ret ) - { - if ( str==KErrorCategoryDrawingRegion ) - { - aErrorCategory=TWsErrorMessage::EDrawingRegion; - } - else if ( str==KErrorCategoryBackLight ) - { - aErrorCategory=TWsErrorMessage::EBackLight; - } - else if ( str==KErrorCategoryLogging ) - { - aErrorCategory=TWsErrorMessage::ELogging; - } - else if ( str==KErrorCategoryContrast ) - { - aErrorCategory=TWsErrorMessage::EContrast; - } - else - { - TInt intVal=0; - ret=aDataWrapper.GetIntFromConfig(aSectName, aKeyName, intVal); - if ( ret ) - { - aErrorCategory=(TWsErrorMessage::TErrorCategory)intVal; - } - } - } - - return ret; - } - -TBool CT_GraphicsUtil::ReadEventCode(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TEventCode& aEventCode) - { - // Read dither from INI file - TPtrC str; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, str); - if ( ret ) - { - if ( str==KEventCodeNull ) - { - aEventCode=EEventNull; - } - else if ( str==KEventCodeKey ) - { - aEventCode=EEventKey; - } - else if ( str==KEventCodeKeyUp ) - { - aEventCode=EEventKeyUp; - } - else if ( str==KEventCodeKeyDown ) - { - aEventCode=EEventKeyDown; - } - else if ( str==KEventCodeModifiersChanged ) - { - aEventCode=EEventModifiersChanged; - } - else if ( str==KEventCodePointer ) - { - aEventCode=EEventPointer; - } - else if ( str==KEventCodePointerEnter ) - { - aEventCode=EEventPointerEnter; - } - else if ( str==KEventCodePointerExit ) - { - aEventCode=EEventPointerExit; - } - else if ( str==KEventCodePointerBufferReady ) - { - aEventCode=EEventPointerBufferReady; - } - else if ( str==KEventCodeDragDrop ) - { - aEventCode=EEventDragDrop; - } - else if ( str==KEventCodeFocusLost ) - { - aEventCode=EEventFocusLost; - } - else if ( str==KEventCodeFocusGained ) - { - aEventCode=EEventFocusGained; - } - else if ( str==KEventCodeSwitchOn ) - { - aEventCode=EEventSwitchOn; - } - else if ( str==KEventCodePassword ) - { - aEventCode=EEventPassword; - } - else if ( str==KEventCodeWindowGroupsChanged ) - { - aEventCode=EEventWindowGroupsChanged; - } - else if ( str==KEventCodeErrorMessage ) - { - aEventCode=EEventErrorMessage; - } - else if ( str==KEventCodeMessageReady ) - { - aEventCode=EEventMessageReady; - } - else if ( str==KEventCodeMarkInvalid ) - { - aEventCode=EEventMarkInvalid; - } - else if ( str==KEventCodeSwitchOff ) - { - aEventCode=EEventSwitchOff; - } - else if ( str==KEventCodeKeySwitchOff ) - { - aEventCode=EEventKeySwitchOff; - } - else if ( str==KEventCodeScreenDeviceChanged ) - { - aEventCode=EEventScreenDeviceChanged; - } - else if ( str==KEventCodeFocusGroupChanged ) - { - aEventCode=EEventFocusGroupChanged; - } - else if ( str==KEventCodeCaseOpened ) - { - aEventCode=EEventCaseOpened; - } - else if ( str==KEventCodeCaseClosed ) - { - aEventCode=EEventCaseClosed; - } - else if ( str==KEventCodeWindowGroupListChanged ) - { - aEventCode=EEventWindowGroupListChanged; - } - else if ( str==KEventCodeWindowVisibilityChanged ) - { - aEventCode=EEventWindowVisibilityChanged; - } -#if (defined SYMBIAN_PROCESS_MONITORING_AND_STARTUP) - else if ( str==KEventCodeRestartSystem ) - { - aEventCode=EEventRestartSystem; - } -#endif - else if ( str==KEventCodeKeyRepeat ) - { - aEventCode=EEventKeyRepeat; - } - else if ( str==KEventCodeDirectScreenAccessBegin ) - { - aEventCode=EEventDirectScreenAccessBegin; - } - else if ( str==KEventCodeDirectScreenAccessEnd ) - { - aEventCode=EEventDirectScreenAccessEnd; - } - else if ( str==KEventCodeHeartbeatTimerStateChange ) - { - aEventCode=EEventHeartbeatTimerStateChange; - } - else if ( str==KEventCodePowerMgmt ) - { - aEventCode=EEventPowerMgmt; - } - else if ( str==KEventCodeReserved ) - { - aEventCode=EEventReserved; - } - else if ( str==KEventCodeUser ) - { - aEventCode=EEventUser; - } - else - { - TInt intVal=0; - ret=aDataWrapper.GetIntFromConfig(aSectName, aKeyName, intVal); - if ( ret ) - { - aEventCode=(TEventCode)intVal; - } - } - } - - return ret; - } - -TBool CT_GraphicsUtil::ReadEventControl(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TEventControl& aEventControl) - { - // Read displaymode from INI file - TPtrC str; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, str); - if ( ret ) - { - if ( str==KEventControlAlways ) - { - aEventControl=EEventControlAlways; - } - else if ( str==KEventControlOnlyWithKeyboardFocus ) - { - aEventControl=EEventControlOnlyWithKeyboardFocus; - } - else if ( str==KEventControlOnlyWhenVisible ) - { - aEventControl=EEventControlOnlyWhenVisible; - } - else - { - TInt intVal=0; - ret=aDataWrapper.GetIntFromConfig(aSectName, aKeyName, intVal); - if ( ret ) - { - aEventControl=(TEventControl)intVal; - } - } - } - - return ret; - } - -TBool CT_GraphicsUtil::ReadEventModifier(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TEventModifier& aEventModifier) - { - TPtrC str; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, str); - if ( ret ) - { - ret=ConvertToEventModifier(str, aEventModifier); - } - - return ret; - } - -TBool CT_GraphicsUtil::ReadEventModifier(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TUint& aEventModifier) - { - TPtrC str; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, str); - if ( ret ) - { - TUint temp=0; - ret=ConvertToEventModifier(str, temp); - if ( ret ) - { - aEventModifier=temp; - } - } - - return ret; - } - -TBool CT_GraphicsUtil::ConvertToEventModifier(const TDesC& aStr, TEventModifier& aEventModifier) - { - TBool ret=ETrue; - if ( aStr==KEventModifierAutorepeatable ) - { - aEventModifier=EModifierAutorepeatable; - } - else if ( aStr==KEventModifierKeypad ) - { - aEventModifier=EModifierKeypad; - } - else if ( aStr==KEventModifierLeftAlt ) - { - aEventModifier=EModifierLeftAlt; - } - else if ( aStr==KEventModifierRightAlt ) - { - aEventModifier=EModifierRightAlt; - } - else if ( aStr==KEventModifierAlt ) - { - aEventModifier=EModifierAlt; - } - else if ( aStr==KEventModifierLeftCtrl ) - { - aEventModifier=EModifierLeftCtrl; - } - else if ( aStr==KEventModifierRightCtrl ) - { - aEventModifier=EModifierRightCtrl; - } - else if ( aStr==KEventModifierCtrl ) - { - aEventModifier=EModifierCtrl; - } - else if ( aStr==KEventModifierLeftShift ) - { - aEventModifier=EModifierLeftShift; - } - else if ( aStr==KEventModifierRightShift ) - { - aEventModifier=EModifierRightShift; - } - else if ( aStr==KEventModifierShift ) - { - aEventModifier=EModifierShift; - } - else if ( aStr==KEventModifierLeftFunc ) - { - aEventModifier=EModifierLeftFunc; - } - else if ( aStr==KEventModifierRightFunc ) - { - aEventModifier=EModifierRightFunc; - } - else if ( aStr==KEventModifierFunc ) - { - aEventModifier=EModifierFunc; - } - else if ( aStr==KEventModifierCapsLock ) - { - aEventModifier=EModifierCapsLock; - } - else if ( aStr==KEventModifierNumLock ) - { - aEventModifier=EModifierNumLock; - } - else if ( aStr==KEventModifierScrollLock ) - { - aEventModifier=EModifierScrollLock; - } - else if ( aStr==KEventModifierKeyUp ) - { - aEventModifier=EModifierKeyUp; - } - else if ( aStr==KEventModifierSpecial ) - { - aEventModifier=EModifierSpecial; - } - else if ( aStr==KEventModifierDoubleClick ) - { - aEventModifier=EModifierDoubleClick; - } - else if ( aStr==KEventModifierPureKeycode ) - { - aEventModifier=EModifierPureKeycode; - } - else if ( aStr==KEventModifierKeyboardExtend ) - { - aEventModifier=EModifierKeyboardExtend; - } - else if ( aStr==KEventModifierCancelRotation ) - { - aEventModifier=EModifierCancelRotation; - } - else if ( aStr==KEventModifierRotateBy90 ) - { - aEventModifier=EModifierRotateBy90; - } - else if ( aStr==KEventModifierRotateBy180 ) - { - aEventModifier=EModifierRotateBy180; - } - else if ( aStr==KEventModifierRotateBy270 ) - { - aEventModifier=EModifierRotateBy270; - } - else if ( aStr==KEventModifierPointer3DButton1 ) - { - aEventModifier=EModifierPointer3DButton1; - } - else if ( aStr==KEventModifierPointer3DButton2 ) - { - aEventModifier=EModifierPointer3DButton2; - } - else if ( aStr==KEventModifierPointer3DButton3 ) - { - aEventModifier=EModifierPointer3DButton3; - } - else if ( aStr==KEventModifierAll ) - { - aEventModifier=EAllModifiers; - } - else - { - TUint eventModifier; - TLex lex(aStr); - ret=(lex.Val(eventModifier, EHex)==KErrNone); - if ( ret ) - { - aEventModifier=(TEventModifier)eventModifier; - } - } - - return ret; - } - -TBool CT_GraphicsUtil::ConvertToEventModifier(const TDesC& aStr, TUint& aEventModifier) - { - TBool ret=ETrue; - TInt location=aStr.Match(_L("*|*")); - if( location!=KErrNotFound ) - { - // Converting Left part of the data - TPtrC tempStr=aStr.Left(location); - ret=ConvertToEventModifier(tempStr, aEventModifier); - - // Converting right data can be with another "|" - tempStr.Set(aStr.Mid(location+1)); - - TUint temp; - if ( ConvertToEventModifier(tempStr, temp) ) - { - aEventModifier|=temp; - } - else - { - ret=EFalse; - } - } - else - { - TEventModifier eventModifier; - ret=ConvertToEventModifier(aStr, eventModifier); - if ( ret ) - { - aEventModifier=(TUint)eventModifier; - } - } - - return ret; - } - -TBool CT_GraphicsUtil::ReadFadeControl(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, RWindowTreeNode::TFadeControl& aFadeControl) - { - // Read displaymode from INI file - TPtrC str; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, str); - if ( ret ) - { - if ( str==KFadeControlIncludeChildren ) - { - aFadeControl=RWindowTreeNode::EFadeIncludeChildren; - } - else if ( str==KFadeControlWindowOnly ) - { - aFadeControl=RWindowTreeNode::EFadeWindowOnly; - } - else - { - TInt intVal=0; - ret=aDataWrapper.GetIntFromConfig(aSectName, aKeyName, intVal); - if ( ret ) - { - aFadeControl=(RWindowTreeNode::TFadeControl)intVal; - } - } - } - - return ret; - } - -TBool CT_GraphicsUtil::ReadFillRule(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, CGraphicsContext::TFillRule& aFillRule) - { - // Read displaymode from INI file - TPtrC str; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, str); - if ( ret ) - { - if ( str==KFillRuleAlternate ) - { - aFillRule=CGraphicsContext::EAlternate; - } - else if ( str==KFillRuleEWinding ) - { - aFillRule=CGraphicsContext::EWinding; - } - else - { - TInt intVal=0; - ret=aDataWrapper.GetIntFromConfig(aSectName, aKeyName, intVal); - if ( ret ) - { - aFillRule=(CGraphicsContext::TFillRule)intVal; - } - } - } - - return ret; - } - -TBool CT_GraphicsUtil::ReadTUsage(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, CPolygonFiller::TUsage& aUsage) - { - TPtrC str; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, str); - if (ret) - { - if (str==KUsageEGetAllPixelRunsSequentially) - { - aUsage=CPolygonFiller::EGetAllPixelRunsSequentially; - } - else if (str==KUsageEGetPixelRunsSequentiallyForSpecifiedScanLines) - { - aUsage=CPolygonFiller::EGetPixelRunsSequentiallyForSpecifiedScanLines; - } - } - return ret; - } - -TBool CT_GraphicsUtil::ReadFontStrikethrough(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TFontStrikethrough& aFontStrikethrough) - { - // Read displaymode from INI file - TPtrC str; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, str); - if ( ret ) - { - if ( str==KFontStrikethroughOff ) - { - aFontStrikethrough=EStrikethroughOff; - } - else if ( str==KFontStrikethroughOn ) - { - aFontStrikethrough=EStrikethroughOn; - } - else - { - TInt intVal=0; - ret=aDataWrapper.GetIntFromConfig(aSectName, aKeyName, intVal); - if ( ret ) - { - aFontStrikethrough=(TFontStrikethrough)intVal; - } - } - } - - return ret; - } - -TBool CT_GraphicsUtil::ReadFontUnderline(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TFontUnderline& aFontUnderline) - { - // Read displaymode from INI file - TPtrC str; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, str); - if ( ret ) - { - if ( str==KFontUnderlineOff ) - { - aFontUnderline=EUnderlineOff; - } - else if ( str==KFontUnderlineOn ) - { - aFontUnderline=EUnderlineOn; - } - else - { - TInt intVal=0; - ret=aDataWrapper.GetIntFromConfig(aSectName, aKeyName, intVal); - if ( ret ) - { - aFontUnderline=(TFontUnderline)intVal; - } - } - } - - return ret; - } - -TBool CT_GraphicsUtil::ReadHotKey(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, THotKey& aHotKey) - { - // Read dither from INI file - TPtrC str; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, str); - if ( ret ) - { - if ( str==KHotKeyEnableLogging ) - { - aHotKey=EHotKeyEnableLogging; - } - else if ( str==KHotKeyDisableLogging ) - { - aHotKey=EHotKeyDisableLogging; - } - else if ( str==KHotKeyStateDump ) - { - aHotKey=EHotKeyStateDump; - } - else if ( str==KHotKeyOfDeath ) - { - aHotKey=EHotKeyOfDeath; - } - else if ( str==KHotKeyShutDown ) - { - aHotKey=EHotKeyShutDown; - } - else if ( str==KHotKeyHeapDump ) - { - aHotKey=EHotKeyHeapDump; - } - else if ( str==KHotKeyIncContrast ) - { - aHotKey=EHotKeyIncContrast; - } - else if ( str==KHotKeyDecContrast ) - { - aHotKey=EHotKeyDecContrast; - } - else if ( str==KHotKeyOff ) - { - aHotKey=EHotKeyOff; - } - else if ( str==KHotKeyBacklightOn ) - { - aHotKey=EHotKeyBacklightOn; - } - else if ( str==KHotKeyBacklightOff ) - { - aHotKey=EHotKeyBacklightOff; - } - else if ( str==KHotKeyBacklightToggle ) - { - aHotKey=EHotKeyBacklightToggle; - } - else if ( str==KHotKeyScreenDimension0 ) - { - aHotKey=EHotKeyScreenDimension0; - } - else if ( str==KHotKeyScreenDimension1 ) - { - aHotKey=EHotKeyScreenDimension1; - } - else if ( str==KHotKeyScreenDimension2 ) - { - aHotKey=EHotKeyScreenDimension2; - } - else if ( str==KHotKeyScreenDimension3 ) - { - aHotKey=EHotKeyScreenDimension3; - } - else if ( str==KHotKeyCycleDisplaySize ) - { - aHotKey=EHotKeyCycleDisplaySize; - } - else if ( str==KHotKeyCycleOrientation ) - { - aHotKey=EHotKeyCycleOrientation; - } - else if ( str==KHotKeyIncBrightness ) - { - aHotKey=EHotKeyIncBrightness; - } - else if ( str==KHotKeyDecBrightness ) - { - aHotKey=EHotKeyDecBrightness; - } - else if ( str==KHotKeyCycleFocusScreen ) - { - aHotKey=EHotKeyCycleFocusScreen; - } - else if ( str==KHotKeyFirstKeyType ) - { - aHotKey=EHotKeyFirstKeyType; - } - else if ( str==KHotKeyLastKeyType ) - { - aHotKey=EHotKeyLastKeyType; - } - else - { - TInt intVal=0; - ret=aDataWrapper.GetIntFromConfig(aSectName, aKeyName, intVal); - if ( ret ) - { - aHotKey=(THotKey)intVal; - } - } - } - - return ret; - } - -TBool CT_GraphicsUtil::ReadKeyCode(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TKeyCode& aKeyCode) - { - // Read dither from INI file - TPtrC str; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, str); - if ( ret ) - { - if ( str==KKeyNull ) - { - aKeyCode=EKeyNull; - } - else if ( str==KKeyBell ) - { - aKeyCode=EKeyBell; - } - else if ( str==KKeyBackspace ) - { - aKeyCode=EKeyBackspace; - } - else if ( str==KKeyTab ) - { - aKeyCode=EKeyTab; - } - else if ( str==KKeyLineFeed ) - { - aKeyCode=EKeyLineFeed; - } - else if ( str==KKeyVerticalTab ) - { - aKeyCode=EKeyVerticalTab; - } - else if ( str==KKeyFormFeed ) - { - aKeyCode=EKeyFormFeed; - } - else if ( str==KKeyEnter ) - { - aKeyCode=EKeyEnter; - } - else if ( str==KKeyEscape ) - { - aKeyCode=EKeyEscape; - } - else if ( str==KKeySpace ) - { - aKeyCode=EKeySpace; - } - else if ( str==KKeyDelete ) - { - aKeyCode=EKeyDelete; - } - else if ( str==KKeyPrintScreen ) - { - aKeyCode=EKeyPrintScreen; - } - else if ( str==KKeyPause ) - { - aKeyCode=EKeyPause; - } - else if ( str==KKeyHome ) - { - aKeyCode=EKeyHome; - } - else if ( str==KKeyEnd ) - { - aKeyCode=EKeyEnd; - } - else if ( str==KKeyPageUp ) - { - aKeyCode=EKeyPageUp; - } - else if ( str==KKeyPageDown ) - { - aKeyCode=EKeyPageDown; - } - else if ( str==KKeyInsert ) - { - aKeyCode=EKeyInsert; - } - else if ( str==KKeyLeftArrow ) - { - aKeyCode=EKeyLeftArrow; - } - else if ( str==KKeyRightArrow ) - { - aKeyCode=EKeyRightArrow; - } - else if ( str==KKeyUpArrow ) - { - aKeyCode=EKeyUpArrow; - } - else if ( str==KKeyDownArrow ) - { - aKeyCode=EKeyDownArrow; - } - else if ( str==KKeyLeftShift ) - { - aKeyCode=EKeyLeftShift; - } - else if ( str==KKeyRightShift ) - { - aKeyCode=EKeyRightShift; - } - else if ( str==KKeyLeftAlt ) - { - aKeyCode=EKeyLeftAlt; - } - else if ( str==KKeyRightAlt ) - { - aKeyCode=EKeyRightAlt; - } - else if ( str==KKeyLeftCtrl ) - { - aKeyCode=EKeyLeftCtrl; - } - else if ( str==KKeyRightCtrl ) - { - aKeyCode=EKeyRightCtrl; - } - else if ( str==KKeyLeftFunc ) - { - aKeyCode=EKeyLeftFunc; - } - else if ( str==KKeyRightFunc ) - { - aKeyCode=EKeyRightFunc; - } - else if ( str==KKeyCapsLock ) - { - aKeyCode=EKeyCapsLock; - } - else if ( str==KKeyNumLock ) - { - aKeyCode=EKeyNumLock; - } - else if ( str==KKeyScrollLock ) - { - aKeyCode=EKeyScrollLock; - } - else if ( str==KKeyF1 ) - { - aKeyCode=EKeyF1; - } - else if ( str==KKeyF2 ) - { - aKeyCode=EKeyF2; - } - else if ( str==KKeyF3 ) - { - aKeyCode=EKeyF3; - } - else if ( str==KKeyF4 ) - { - aKeyCode=EKeyF4; - } - else if ( str==KKeyF5 ) - { - aKeyCode=EKeyF5; - } - else if ( str==KKeyF6 ) - { - aKeyCode=EKeyF6; - } - else if ( str==KKeyF7 ) - { - aKeyCode=EKeyF7; - } - else if ( str==KKeyF8 ) - { - aKeyCode=EKeyF8; - } - else if ( str==KKeyF9 ) - { - aKeyCode=EKeyF9; - } - else if ( str==KKeyF10 ) - { - aKeyCode=EKeyF10; - } - else if ( str==KKeyF11 ) - { - aKeyCode=EKeyF11; - } - else if ( str==KKeyF12 ) - { - aKeyCode=EKeyF12; - } - else if ( str==KKeyF13 ) - { - aKeyCode=EKeyF13; - } - else if ( str==KKeyF14 ) - { - aKeyCode=EKeyF14; - } - else if ( str==KKeyF15 ) - { - aKeyCode=EKeyF15; - } - else if ( str==KKeyF16 ) - { - aKeyCode=EKeyF16; - } - else if ( str==KKeyF17 ) - { - aKeyCode=EKeyF17; - } - else if ( str==KKeyF18 ) - { - aKeyCode=EKeyF18; - } - else if ( str==KKeyF19 ) - { - aKeyCode=EKeyF19; - } - else if ( str==KKeyF20 ) - { - aKeyCode=EKeyF20; - } - else if ( str==KKeyF21 ) - { - aKeyCode=EKeyF21; - } - else if ( str==KKeyF22 ) - { - aKeyCode=EKeyF22; - } - else if ( str==KKeyF23 ) - { - aKeyCode=EKeyF23; - } - else if ( str==KKeyF24 ) - { - aKeyCode=EKeyF24; - } - else if ( str==KKeyOff ) - { - aKeyCode=EKeyOff; - } - else if ( str==KKeyIncContrast ) - { - aKeyCode=EKeyIncContrast; - } - else if ( str==KKeyDecContrast ) - { - aKeyCode=EKeyDecContrast; - } - else if ( str==KKeyBacklightOn ) - { - aKeyCode=EKeyBacklightOn; - } - else if ( str==KKeyBacklightOff ) - { - aKeyCode=EKeyBacklightOff; - } - else if ( str==KKeyBacklightToggle ) - { - aKeyCode=EKeyBacklightToggle; - } - else if ( str==KKeySliderDown ) - { - aKeyCode=EKeySliderDown; - } - else if ( str==KKeySliderUp ) - { - aKeyCode=EKeySliderUp; - } - else if ( str==KKeyMenu ) - { - aKeyCode=EKeyMenu; - } - else if ( str==KKeyDictaphonePlay ) - { - aKeyCode=EKeyDictaphonePlay; - } - else if ( str==KKeyDictaphoneStop ) - { - aKeyCode=EKeyDictaphoneStop; - } - else if ( str==KKeyDictaphoneRecord ) - { - aKeyCode=EKeyDictaphoneRecord; - } - else if ( str==KKeyHelp ) - { - aKeyCode=EKeyHelp; - } - else if ( str==KKeyDial ) - { - aKeyCode=EKeyDial; - } - else if ( str==KKeyScreenDimension0 ) - { - aKeyCode=EKeyScreenDimension0; - } - else if ( str==KKeyScreenDimension1 ) - { - aKeyCode=EKeyScreenDimension1; - } - else if ( str==KKeyScreenDimension2 ) - { - aKeyCode=EKeyScreenDimension2; - } - else if ( str==KKeyScreenDimension3 ) - { - aKeyCode=EKeyScreenDimension3; - } - else if ( str==KKeyIncVolume ) - { - aKeyCode=EKeyIncVolume; - } - else if ( str==KKeyDecVolume ) - { - aKeyCode=EKeyDecVolume; - } - else if ( str==KKeyDevice0 ) - { - aKeyCode=EKeyDevice0; - } - else if ( str==KKeyDevice1 ) - { - aKeyCode=EKeyDevice1; - } - else if ( str==KKeyDevice2 ) - { - aKeyCode=EKeyDevice2; - } - else if ( str==KKeyDevice3 ) - { - aKeyCode=EKeyDevice3; - } - else if ( str==KKeyDevice4 ) - { - aKeyCode=EKeyDevice4; - } - else if ( str==KKeyDevice5 ) - { - aKeyCode=EKeyDevice5; - } - else if ( str==KKeyDevice6 ) - { - aKeyCode=EKeyDevice6; - } - else if ( str==KKeyDevice7 ) - { - aKeyCode=EKeyDevice7; - } - else if ( str==KKeyDevice8 ) - { - aKeyCode=EKeyDevice8; - } - else if ( str==KKeyDevice9 ) - { - aKeyCode=EKeyDevice9; - } - else if ( str==KKeyDeviceA ) - { - aKeyCode=EKeyDeviceA; - } - else if ( str==KKeyDeviceB ) - { - aKeyCode=EKeyDeviceB; - } - else if ( str==KKeyDeviceC ) - { - aKeyCode=EKeyDeviceC; - } - else if ( str==KKeyDeviceD ) - { - aKeyCode=EKeyDeviceD; - } - else if ( str==KKeyDeviceE ) - { - aKeyCode=EKeyDeviceE; - } - else if ( str==KKeyDeviceF ) - { - aKeyCode=EKeyDeviceF; - } - else if ( str==KKeyApplication0 ) - { - aKeyCode=EKeyApplication0; - } - else if ( str==KKeyApplication1 ) - { - aKeyCode=EKeyApplication1; - } - else if ( str==KKeyApplication2 ) - { - aKeyCode=EKeyApplication2; - } - else if ( str==KKeyApplication3 ) - { - aKeyCode=EKeyApplication3; - } - else if ( str==KKeyApplication4 ) - { - aKeyCode=EKeyApplication4; - } - else if ( str==KKeyApplication5 ) - { - aKeyCode=EKeyApplication5; - } - else if ( str==KKeyApplication6 ) - { - aKeyCode=EKeyApplication6; - } - else if ( str==KKeyApplication7 ) - { - aKeyCode=EKeyApplication7; - } - else if ( str==KKeyApplication8 ) - { - aKeyCode=EKeyApplication8; - } - else if ( str==KKeyApplication9 ) - { - aKeyCode=EKeyApplication9; - } - else if ( str==KKeyApplicationA ) - { - aKeyCode=EKeyApplicationA; - } - else if ( str==KKeyApplicationB ) - { - aKeyCode=EKeyApplicationB; - } - else if ( str==KKeyApplicationC ) - { - aKeyCode=EKeyApplicationC; - } - else if ( str==KKeyApplicationD ) - { - aKeyCode=EKeyApplicationD; - } - else if ( str==KKeyApplicationE ) - { - aKeyCode=EKeyApplicationE; - } - else if ( str==KKeyApplicationF ) - { - aKeyCode=EKeyApplicationF; - } - else if ( str==KKeyYes ) - { - aKeyCode=EKeyYes; - } - else if ( str==KKeyNo ) - { - aKeyCode=EKeyNo; - } - else if ( str==KKeyIncBrightness ) - { - aKeyCode=EKeyIncBrightness; - } - else if ( str==KKeyDecBrightness ) - { - aKeyCode=EKeyDecBrightness; - } - else if ( str==KKeyKeyboardExtend ) - { - aKeyCode=EKeyKeyboardExtend; - } - else if ( str==KKeyDevice10 ) - { - aKeyCode=EKeyDevice10; - } - else if ( str==KKeyDevice11 ) - { - aKeyCode=EKeyDevice11; - } - else if ( str==KKeyDevice12 ) - { - aKeyCode=EKeyDevice12; - } - else if ( str==KKeyDevice13 ) - { - aKeyCode=EKeyDevice13; - } - else if ( str==KKeyDevice14 ) - { - aKeyCode=EKeyDevice14; - } - else if ( str==KKeyDevice15 ) - { - aKeyCode=EKeyDevice15; - } - else if ( str==KKeyDevice16 ) - { - aKeyCode=EKeyDevice16; - } - else if ( str==KKeyDevice17 ) - { - aKeyCode=EKeyDevice17; - } - else if ( str==KKeyDevice18 ) - { - aKeyCode=EKeyDevice18; - } - else if ( str==KKeyDevice19 ) - { - aKeyCode=EKeyDevice19; - } - else if ( str==KKeyDevice1A ) - { - aKeyCode=EKeyDevice1A; - } - else if ( str==KKeyDevice1B ) - { - aKeyCode=EKeyDevice1B; - } - else if ( str==KKeyDevice1C ) - { - aKeyCode=EKeyDevice1C; - } - else if ( str==KKeyDevice1D ) - { - aKeyCode=EKeyDevice1D; - } - else if ( str==KKeyDevice1E ) - { - aKeyCode=EKeyDevice1E; - } - else if ( str==KKeyDevice1F ) - { - aKeyCode=EKeyDevice1F; - } - else if ( str==KKeyApplication10 ) - { - aKeyCode=EKeyApplication10; - } - else if ( str==KKeyApplication11 ) - { - aKeyCode=EKeyApplication11; - } - else if ( str==KKeyApplication12 ) - { - aKeyCode=EKeyApplication12; - } - else if ( str==KKeyApplication13 ) - { - aKeyCode=EKeyApplication13; - } - else if ( str==KKeyApplication14 ) - { - aKeyCode=EKeyApplication14; - } - else if ( str==KKeyApplication15 ) - { - aKeyCode=EKeyApplication15; - } - else if ( str==KKeyApplication16 ) - { - aKeyCode=EKeyApplication16; - } - else if ( str==KKeyApplication17 ) - { - aKeyCode=EKeyApplication17; - } - else if ( str==KKeyApplication18 ) - { - aKeyCode=EKeyApplication18; - } - else if ( str==KKeyApplication19 ) - { - aKeyCode=EKeyApplication19; - } - else if ( str==KKeyApplication1A ) - { - aKeyCode=EKeyApplication1A; - } - else if ( str==KKeyApplication1B ) - { - aKeyCode=EKeyApplication1B; - } - else if ( str==KKeyApplication1C ) - { - aKeyCode=EKeyApplication1C; - } - else if ( str==KKeyApplication1D ) - { - aKeyCode=EKeyApplication1D; - } - else if ( str==KKeyApplication1E ) - { - aKeyCode=EKeyApplication1E; - } - else if ( str==KKeyApplication1F ) - { - aKeyCode=EKeyApplication1F; - } - else - { - TInt intVal=0; - ret=aDataWrapper.GetIntFromConfig(aSectName, aKeyName, intVal); - if ( ret ) - { - aKeyCode=(TKeyCode)intVal; - } - } - } - - return ret; - } - -TBool CT_GraphicsUtil::ReadGlyphBitmapType(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TGlyphBitmapType& aGlyphBitmapType) - { - // Read dither from INI file - TPtrC str; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, str); - if ( ret ) - { - if ( str==KGlyphBitmapTypeDefault ) - { - aGlyphBitmapType=EDefaultGlyphBitmap; - } - else if ( str==KGlyphBitmapTypeMonochrome ) - { - aGlyphBitmapType=EMonochromeGlyphBitmap; - } - else if ( str==KGlyphBitmapTypeAntiAliased ) - { - aGlyphBitmapType=EAntiAliasedGlyphBitmap; - } - else if ( str==KGlyphBitmapTypeSubPixel ) - { - aGlyphBitmapType=ESubPixelGlyphBitmap; - } - else if ( str==KGlyphBitmapTypeFourColourBlend ) - { - aGlyphBitmapType=EFourColourBlendGlyphBitmap; - } - else - { - TInt intVal=0; - ret=aDataWrapper.GetIntFromConfig(aSectName, aKeyName, intVal); - if ( ret ) - { - aGlyphBitmapType=(TGlyphBitmapType)intVal; - } - } - } - - return ret; - } - -TBool CT_GraphicsUtil::ReadGraphicsOrientation(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, CFbsBitGc::TGraphicsOrientation& aGraphicsOrientation) - { - // Read dither from INI file - TPtrC str; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, str); - if ( ret ) - { - if ( str==KGraphicsOrientationNormal ) - { - aGraphicsOrientation=CFbsBitGc::EGraphicsOrientationNormal; - } - else if ( str==KGraphicsOrientationRotated90 ) - { - aGraphicsOrientation=CFbsBitGc::EGraphicsOrientationRotated90; - } - else if ( str==KGraphicsOrientationRotated180 ) - { - aGraphicsOrientation=CFbsBitGc::EGraphicsOrientationRotated180; - } - else if ( str==KGraphicsOrientationRotated270 ) - { - aGraphicsOrientation=CFbsBitGc::EGraphicsOrientationRotated270; - } - else - { - TInt intVal=0; - ret=aDataWrapper.GetIntFromConfig(aSectName, aKeyName, intVal); - if ( ret ) - { - aGraphicsOrientation=(CFbsBitGc::TGraphicsOrientation)intVal; - } - } - } - - return ret; - } - -TBool CT_GraphicsUtil::ReadLoggingCommand(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, RWsSession::TLoggingCommand& aLoggingCommand) - { - // Read dither from INI file - TPtrC str; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, str); - if ( ret ) - { - if ( str==KLoggingEnable ) - { - aLoggingCommand=RWsSession::ELoggingEnable; - } - else if ( str==KLoggingDisable ) - { - aLoggingCommand=RWsSession::ELoggingDisable; - } - else if ( str==KLoggingStatusDump ) - { - aLoggingCommand=RWsSession::ELoggingStatusDump; - } - else if ( str==KLoggingHeapDump ) - { - aLoggingCommand=RWsSession::ELoggingHeapDump; - } - else - { - TInt intVal=0; - ret=aDataWrapper.GetIntFromConfig(aSectName, aKeyName, intVal); - if ( ret ) - { - aLoggingCommand=(RWsSession::TLoggingCommand)intVal; - } - } - } - - return ret; - } - -TBool CT_GraphicsUtil::ReadModifierState(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TModifierState& aModifierState) - { - // Read dither from INI file - TPtrC str; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, str); - if ( ret ) - { - if ( str==KModifierStateTurnOnModifier ) - { - aModifierState=ETurnOnModifier; - } - else if ( str==KModifierStateTurnOffModifier ) - { - aModifierState=ETurnOffModifier; - } - else if ( str==KModifierStateToggleModifier ) - { - aModifierState=EToggleModifier; - } - else - { - TInt intVal=0; - ret=aDataWrapper.GetIntFromConfig(aSectName, aKeyName, intVal); - if ( ret ) - { - aModifierState=(TModifierState)intVal; - } - } - } - - return ret; - } - -TBool CT_GraphicsUtil::ReadPasswordMode(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TPasswordMode& aPasswordMode) - { - // Read dither from INI file - TPtrC str; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, str); - if ( ret ) - { - if ( str==KPasswordModeCancel ) - { - aPasswordMode=EPasswordCancel; - } - else if ( str==KPasswordModeNone ) - { - aPasswordMode=EPasswordNone; - } - else if ( str==KPasswordModeOnceADay ) - { - aPasswordMode=EPasswordOnceADay; - } - else if ( str==KPasswordModeAlways ) - { - aPasswordMode=EPasswordAlways; - } - else if ( str==KPasswordModeAlwaysTriggerNow ) - { - aPasswordMode=EPasswordAlwaysTriggerNow; - } - else if ( str==KPasswordModeOnceADayTriggerNow ) - { - aPasswordMode=EPasswordOnceADayTriggerNow; - } - else - { - TInt intVal=0; - ret=aDataWrapper.GetIntFromConfig(aSectName, aKeyName, intVal); - if ( ret ) - { - aPasswordMode=(TPasswordMode)intVal; - } - } - } - - return ret; - } - -TBool CT_GraphicsUtil::ReadPenStyle(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, CGraphicsContext::TPenStyle& aPenStyle) - { - // Read displaymode from INI file - TPtrC str; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, str); - if ( ret ) - { - if ( str==KPenStyleNull ) - { - aPenStyle=CGraphicsContext::ENullPen; - } - else if ( str==KPenStyleSolid ) - { - aPenStyle=CGraphicsContext::ESolidPen; - } - else if ( str==KPenStyleDotted ) - { - aPenStyle=CGraphicsContext::EDottedPen; - } - else if ( str==KPenStyleDashed ) - { - aPenStyle=CGraphicsContext::EDashedPen; - } - else if ( str==KPenStyleDotDash ) - { - aPenStyle=CGraphicsContext::EDotDashPen; - } - else if ( str==KPenStyleDotDotDash ) - { - aPenStyle=CGraphicsContext::EDotDotDashPen; - } - else - { - TInt intVal=0; - ret=aDataWrapper.GetIntFromConfig(aSectName, aKeyName, intVal); - if ( ret ) - { - aPenStyle=(CGraphicsContext::TPenStyle)intVal; - } - } - } - - return ret; - } - -TBool CT_GraphicsUtil::ReadPointerCursorMode(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TPointerCursorMode& aPointerCursorMode) - { - // Read displaymode from INI file - TPtrC str; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, str); - if ( ret ) - { - if ( str==KPointerCursorNone ) - { - aPointerCursorMode=EPointerCursorNone; - } - else if ( str==KPointerCursorFixed ) - { - aPointerCursorMode=EPointerCursorFixed; - } - else if ( str==KPointerCursorNormal ) - { - aPointerCursorMode=EPointerCursorNormal; - } - else if ( str==KPointerCursorWindow ) - { - aPointerCursorMode=EPointerCursorWindow; - } - else if ( str==KPointerCursorFirstMode ) - { - aPointerCursorMode=EPointerCursorFirstMode; - } - else if ( str==KPointerCursorLastMode ) - { - aPointerCursorMode=EPointerCursorLastMode; - } - else - { - TInt intVal=0; - ret=aDataWrapper.GetIntFromConfig(aSectName, aKeyName, intVal); - if ( ret ) - { - aPointerCursorMode=(TPointerCursorMode)intVal; - } - } - } - - return ret; - } - -TBool CT_GraphicsUtil::ReadPointerFilter(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TPointerFilter& aPointerFilter) - { - TPtrC str; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, str); - if ( ret ) - { - ret=ConvertToPointerFilter(str, aPointerFilter); - } - - return ret; - } - -TBool CT_GraphicsUtil::ReadPointerFilter(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TUint& aPointerFilter) - { - TPtrC str; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, str); - if ( ret ) - { - TUint temp=0; - ret=ConvertToPointerFilter(str, temp); - if ( ret ) - { - aPointerFilter=temp; - } - } - - return ret; - } - -TBool CT_GraphicsUtil::ConvertToPointerFilter(const TDesC& aStr, TPointerFilter& aPointerFilter) - { - TBool ret=ETrue; - - if ( aStr==KPointerFilterEnterExit ) - { - aPointerFilter=EPointerFilterEnterExit; - } - else if ( aStr==KPointerFilterMove ) - { - aPointerFilter=EPointerFilterMove; - } - else if ( aStr==KPointerFilterDrag ) - { - aPointerFilter=EPointerFilterDrag; - } - else if ( aStr==KPointerFilterGenerateSimulatedMove ) - { - aPointerFilter=EPointerGenerateSimulatedMove; - } - else if ( aStr==KPointerFilterMoveEvents ) - { - aPointerFilter=EPointerMoveEvents; - } - else - { - TUint pointerFilter; - TLex lex(aStr); - ret=(lex.Val(pointerFilter, EHex)==KErrNone); - if ( ret ) - { - aPointerFilter=(TPointerFilter)pointerFilter; - } - } - - return ret; - } - -TBool CT_GraphicsUtil::ConvertToPointerFilter(const TDesC& aStr, TUint& aPointerFilter) - { - TBool ret=ETrue; - TInt location=aStr.Match(_L("*|*")); - if( location!=KErrNotFound ) - { - // Converting Left part of the data - TPtrC tempStr=aStr.Left(location); - ret=ConvertToPointerFilter(tempStr, aPointerFilter); - - // Converting right data can be with another "|" - tempStr.Set(aStr.Mid(location+1)); - - TUint temp; - if ( ConvertToPointerFilter(tempStr, temp) ) - { - aPointerFilter|=temp; - } - else - { - ret=EFalse; - } - } - else - { - TPointerFilter pointerFilter; - ret=ConvertToPointerFilter(aStr, pointerFilter); - if ( ret ) - { - aPointerFilter=(TUint)pointerFilter; - } - } - - return ret; - } - -#if defined(SYMBIAN_WSERV_AND_CONE_MULTIPLE_SCREENS) -TBool CT_GraphicsUtil::ReadPriorities(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TInt& aPriorities) - { - TPtrC str; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, str); - if ( ret ) - { - if ( str==KPrioritiesAll ) - { - aPriorities=EAllPriorities; - } - else - { - ret=aDataWrapper.GetIntFromConfig(aSectName, aKeyName, aPriorities); - } - } - - return ret; - } -#endif - -TBool CT_GraphicsUtil::ReadPriority(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, CActive::TPriority& aPriority) - { - TPtrC str; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, str); - if ( ret ) - { - if ( str==KPriorityIdle ) - { - aPriority=CActive::EPriorityIdle; - } - else if ( str==KPriorityLow ) - { - aPriority=CActive::EPriorityLow; - } - else if ( str==KPriorityStandard ) - { - aPriority=CActive::EPriorityStandard; - } - else if ( str==KPriorityUserInput ) - { - aPriority=CActive::EPriorityUserInput; - } - else if ( str==KPriorityHigh ) - { - aPriority=CActive::EPriorityHigh; - } - else - { - TInt intVal=0; - ret=aDataWrapper.GetIntFromConfig(aSectName, aKeyName, intVal); - if ( ret ) - { - aPriority=(CActive::TPriority)intVal; - } - } - } - - return ret; - } - -TBool CT_GraphicsUtil::ReadScreenModeEnforcement(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TScreenModeEnforcement& aScreenModeEnforcement) - { - TPtrC str; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, str); - if ( ret ) - { - if ( str==KSizeEnforcementNone ) - { - aScreenModeEnforcement=ESizeEnforcementNone; - } - else if ( str==KSizeEnforcementPixelsAndRotation ) - { - aScreenModeEnforcement=ESizeEnforcementPixelsAndRotation; - } - else if ( str==KSizeEnforcementPixelsTwipsAndRotation ) - { - aScreenModeEnforcement=ESizeEnforcementPixelsTwipsAndRotation; - } - else - { - TInt intVal=0; - ret=aDataWrapper.GetIntFromConfig(aSectName, aKeyName, intVal); - if ( ret ) - { - aScreenModeEnforcement=(TScreenModeEnforcement)intVal; - } - } - } - - return ret; - } - -TBool CT_GraphicsUtil::ReadSpriteInCompare(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TUint& aSpriteInCompare) - { - TPtrC str; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, str); - if ( ret ) - { - TUint temp=0; - ret=ConvertToSpriteInCompare(str, temp); - if ( ret ) - { - aSpriteInCompare=temp; - } - } - - return ret; - } - -TBool CT_GraphicsUtil::ConvertToSpriteInCompare(const TDesC& aStr, TUint& aSpriteInCompare) - { - TBool ret=ETrue; - TInt location=aStr.Match(_L("*|*")); - if( location!=KErrNotFound ) - { - // Converting Left part of the data - TPtrC tempStr=aStr.Left(location); - ret=ConvertToSpriteInCompare(tempStr, aSpriteInCompare); - - // Converting right data can be with another "|" - tempStr.Set(aStr.Mid(location+1)); - - TUint temp; - if ( ConvertToPointerFilter(tempStr, temp) ) - { - aSpriteInCompare|=temp; - } - else - { - ret=EFalse; - } - } - else - { - if ( aStr==KSpriteInCompareRemoveSprite ) - { - aSpriteInCompare=CWsScreenDevice::ERemoveSprite; - } - else if ( aStr==KSpriteInCompareIncludeSprite ) - { - aSpriteInCompare=CWsScreenDevice::EIncludeSprite; - } - else if ( aStr==KSpriteInCompareIncludeTextCursor ) - { - aSpriteInCompare=CWsScreenDevice::EIncludeTextCursor; - } - else - { - TLex lex(aStr); - ret=(lex.Val(aSpriteInCompare, EHex)==KErrNone); - } - } - - return ret; - } - -TBool CT_GraphicsUtil::ReadStdScanCode(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TStdScanCode& aStdScanCode) - { - TPtrC str; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, str); - if ( ret ) - { - if ( str==KStdKeyNull ) - { - aStdScanCode=EStdKeyNull; - } - else if ( str==KStdKeyBackspace ) - { - aStdScanCode=EStdKeyBackspace; - } - else if ( str==KStdKeyTab ) - { - aStdScanCode=EStdKeyTab; - } - else if ( str==KStdKeyEnter ) - { - aStdScanCode=EStdKeyEnter; - } - else if ( str==KStdKeyEscape ) - { - aStdScanCode=EStdKeyEscape; - } - else if ( str==KStdKeySpace ) - { - aStdScanCode=EStdKeySpace; - } - else if ( str==KStdKeyPrintScreen ) - { - aStdScanCode=EStdKeyPrintScreen; - } - else if ( str==KStdKeyPause ) - { - aStdScanCode=EStdKeyPause; - } - else if ( str==KStdKeyHome ) - { - aStdScanCode=EStdKeyHome; - } - else if ( str==KStdKeyEnd ) - { - aStdScanCode=EStdKeyEnd; - } - else if ( str==KStdKeyPageUp ) - { - aStdScanCode=EStdKeyPageUp; - } - else if ( str==KStdKeyPageDown ) - { - aStdScanCode=EStdKeyPageDown; - } - else if ( str==KStdKeyInsert ) - { - aStdScanCode=EStdKeyInsert; - } - else if ( str==KStdKeyDelete ) - { - aStdScanCode=EStdKeyDelete; - } - else if ( str==KStdKeyLeftArrow ) - { - aStdScanCode=EStdKeyLeftArrow; - } - else if ( str==KStdKeyRightArrow ) - { - aStdScanCode=EStdKeyRightArrow; - } - else if ( str==KStdKeyUpArrow ) - { - aStdScanCode=EStdKeyUpArrow; - } - else if ( str==KStdKeyDownArrow ) - { - aStdScanCode=EStdKeyDownArrow; - } - else if ( str==KStdKeyLeftShift ) - { - aStdScanCode=EStdKeyLeftShift; - } - else if ( str==KStdKeyRightShift ) - { - aStdScanCode=EStdKeyRightShift; - } - else if ( str==KStdKeyLeftAlt ) - { - aStdScanCode=EStdKeyLeftAlt; - } - else if ( str==KStdKeyRightAlt ) - { - aStdScanCode=EStdKeyRightAlt; - } - else if ( str==KStdKeyLeftCtrl ) - { - aStdScanCode=EStdKeyLeftCtrl; - } - else if ( str==KStdKeyRightCtrl ) - { - aStdScanCode=EStdKeyRightCtrl; - } - else if ( str==KStdKeyLeftFunc ) - { - aStdScanCode=EStdKeyLeftFunc; - } - else if ( str==KStdKeyRightFunc ) - { - aStdScanCode=EStdKeyRightFunc; - } - else if ( str==KStdKeyCapsLock ) - { - aStdScanCode=EStdKeyCapsLock; - } - else if ( str==KStdKeyNumLock ) - { - aStdScanCode=EStdKeyNumLock; - } - else if ( str==KStdKeyScrollLock ) - { - aStdScanCode=EStdKeyScrollLock; - } - else if ( str==KStdKeyF1 ) - { - aStdScanCode=EStdKeyF1; - } - else if ( str==KStdKeyF2 ) - { - aStdScanCode=EStdKeyF2; - } - else if ( str==KStdKeyF3 ) - { - aStdScanCode=EStdKeyF3; - } - else if ( str==KStdKeyF4 ) - { - aStdScanCode=EStdKeyF4; - } - else if ( str==KStdKeyF5 ) - { - aStdScanCode=EStdKeyF5; - } - else if ( str==KStdKeyF6 ) - { - aStdScanCode=EStdKeyF6; - } - else if ( str==KStdKeyF7 ) - { - aStdScanCode=EStdKeyF7; - } - else if ( str==KStdKeyF8 ) - { - aStdScanCode=EStdKeyF8; - } - else if ( str==KStdKeyF9 ) - { - aStdScanCode=EStdKeyF9; - } - else if ( str==KStdKeyF10 ) - { - aStdScanCode=EStdKeyF10; - } - else if ( str==KStdKeyF11 ) - { - aStdScanCode=EStdKeyF11; - } - else if ( str==KStdKeyF12 ) - { - aStdScanCode=EStdKeyF12; - } - else if ( str==KStdKeyF13 ) - { - aStdScanCode=EStdKeyF13; - } - else if ( str==KStdKeyF14 ) - { - aStdScanCode=EStdKeyF14; - } - else if ( str==KStdKeyF15 ) - { - aStdScanCode=EStdKeyF15; - } - else if ( str==KStdKeyF16 ) - { - aStdScanCode=EStdKeyF16; - } - else if ( str==KStdKeyF17 ) - { - aStdScanCode=EStdKeyF17; - } - else if ( str==KStdKeyF18 ) - { - aStdScanCode=EStdKeyF18; - } - else if ( str==KStdKeyF19 ) - { - aStdScanCode=EStdKeyF19; - } - else if ( str==KStdKeyF20 ) - { - aStdScanCode=EStdKeyF20; - } - else if ( str==KStdKeyF21 ) - { - aStdScanCode=EStdKeyF21; - } - else if ( str==KStdKeyF22 ) - { - aStdScanCode=EStdKeyF22; - } - else if ( str==KStdKeyF23 ) - { - aStdScanCode=EStdKeyF23; - } - else if ( str==KStdKeyF24 ) - { - aStdScanCode=EStdKeyF24; - } - else if ( str==KStdKeyXXX ) - { - aStdScanCode=EStdKeyXXX; - } - else if ( str==KStdKeyComma ) - { - aStdScanCode=EStdKeyComma; - } - else if ( str==KStdKeyFullStop ) - { - aStdScanCode=EStdKeyFullStop; - } - else if ( str==KStdKeyForwardSlash ) - { - aStdScanCode=EStdKeyForwardSlash; - } - else if ( str==KStdKeyBackSlash ) - { - aStdScanCode=EStdKeyBackSlash; - } - else if ( str==KStdKeySemiColon ) - { - aStdScanCode=EStdKeySemiColon; - } - else if ( str==KStdKeySingleQuote ) - { - aStdScanCode=EStdKeySingleQuote; - } - else if ( str==KStdKeyHash ) - { - aStdScanCode=EStdKeyHash; - } - else if ( str==KStdKeySquareBracketLeft ) - { - aStdScanCode=EStdKeySquareBracketLeft; - } - else if ( str==KStdKeySquareBracketRight ) - { - aStdScanCode=EStdKeySquareBracketRight; - } - else if ( str==KStdKeyMinus ) - { - aStdScanCode=EStdKeyMinus; - } - else if ( str==KStdKeyEquals ) - { - aStdScanCode=EStdKeyEquals; - } - else if ( str==KStdKeyNkpForwardSlash ) - { - aStdScanCode=EStdKeyNkpForwardSlash; - } - else if ( str==KStdKeyNkpAsterisk ) - { - aStdScanCode=EStdKeyNkpAsterisk; - } - else if ( str==KStdKeyNkpMinus ) - { - aStdScanCode=EStdKeyNkpMinus; - } - else if ( str==KStdKeyNkpPlus ) - { - aStdScanCode=EStdKeyNkpPlus; - } - else if ( str==KStdKeyNkpEnter ) - { - aStdScanCode=EStdKeyNkpEnter; - } - else if ( str==KStdKeyNkp1 ) - { - aStdScanCode=EStdKeyNkp1; - } - else if ( str==KStdKeyNkp2 ) - { - aStdScanCode=EStdKeyNkp2; - } - else if ( str==KStdKeyNkp3 ) - { - aStdScanCode=EStdKeyNkp3; - } - else if ( str==KStdKeyNkp4 ) - { - aStdScanCode=EStdKeyNkp4; - } - else if ( str==KStdKeyNkp5 ) - { - aStdScanCode=EStdKeyNkp5; - } - else if ( str==KStdKeyNkp6 ) - { - aStdScanCode=EStdKeyNkp6; - } - else if ( str==KStdKeyNkp7 ) - { - aStdScanCode=EStdKeyNkp7; - } - else if ( str==KStdKeyNkp8 ) - { - aStdScanCode=EStdKeyNkp8; - } - else if ( str==KStdKeyNkp9 ) - { - aStdScanCode=EStdKeyNkp9; - } - else if ( str==KStdKeyNkp0 ) - { - aStdScanCode=EStdKeyNkp0; - } - else if ( str==KStdKeyNkpFullStop ) - { - aStdScanCode=EStdKeyNkpFullStop; - } - else if ( str==KStdKeyMenu ) - { - aStdScanCode=EStdKeyMenu; - } - else if ( str==KStdKeyBacklightOn ) - { - aStdScanCode=EStdKeyBacklightOn; - } - else if ( str==KStdKeyBacklightOff ) - { - aStdScanCode=EStdKeyBacklightOff; - } - else if ( str==KStdKeyBacklightToggle ) - { - aStdScanCode=EStdKeyBacklightToggle; - } - else if ( str==KStdKeyIncContrast ) - { - aStdScanCode=EStdKeyIncContrast; - } - else if ( str==KStdKeyDecContrast ) - { - aStdScanCode=EStdKeyDecContrast; - } - else if ( str==KStdKeySliderDown ) - { - aStdScanCode=EStdKeySliderDown; - } - else if ( str==KStdKeySliderUp ) - { - aStdScanCode=EStdKeySliderUp; - } - else if ( str==KStdKeyDictaphonePlay ) - { - aStdScanCode=EStdKeyDictaphonePlay; - } - else if ( str==KStdKeyDictaphoneStop ) - { - aStdScanCode=EStdKeyDictaphoneStop; - } - else if ( str==KStdKeyDictaphoneRecord ) - { - aStdScanCode=EStdKeyDictaphoneRecord; - } - else if ( str==KStdKeyHelp ) - { - aStdScanCode=EStdKeyHelp; - } - else if ( str==KStdKeyOff ) - { - aStdScanCode=EStdKeyOff; - } - else if ( str==KStdKeyDial ) - { - aStdScanCode=EStdKeyDial; - } - else if ( str==KStdKeyIncVolume ) - { - aStdScanCode=EStdKeyIncVolume; - } - else if ( str==KStdKeyDecVolume ) - { - aStdScanCode=EStdKeyDecVolume; - } - else if ( str==KStdKeyDevice0 ) - { - aStdScanCode=EStdKeyDevice0; - } - else if ( str==KStdKeyDevice1 ) - { - aStdScanCode=EStdKeyDevice1; - } - else if ( str==KStdKeyDevice2 ) - { - aStdScanCode=EStdKeyDevice2; - } - else if ( str==KStdKeyDevice3 ) - { - aStdScanCode=EStdKeyDevice3; - } - else if ( str==KStdKeyDevice4 ) - { - aStdScanCode=EStdKeyDevice4; - } - else if ( str==KStdKeyDevice5 ) - { - aStdScanCode=EStdKeyDevice5; - } - else if ( str==KStdKeyDevice6 ) - { - aStdScanCode=EStdKeyDevice6; - } - else if ( str==KStdKeyDevice7 ) - { - aStdScanCode=EStdKeyDevice7; - } - else if ( str==KStdKeyDevice8 ) - { - aStdScanCode=EStdKeyDevice8; - } - else if ( str==KStdKeyDevice9 ) - { - aStdScanCode=EStdKeyDevice9; - } - else if ( str==KStdKeyDeviceA ) - { - aStdScanCode=EStdKeyDeviceA; - } - else if ( str==KStdKeyDeviceB ) - { - aStdScanCode=EStdKeyDeviceB; - } - else if ( str==KStdKeyDeviceC ) - { - aStdScanCode=EStdKeyDeviceC; - } - else if ( str==KStdKeyDeviceD ) - { - aStdScanCode=EStdKeyDeviceD; - } - else if ( str==KStdKeyDeviceE ) - { - aStdScanCode=EStdKeyDeviceE; - } - else if ( str==KStdKeyDeviceF ) - { - aStdScanCode=EStdKeyDeviceF; - } - else if ( str==KStdKeyApplication0 ) - { - aStdScanCode=EStdKeyApplication0; - } - else if ( str==KStdKeyApplication1 ) - { - aStdScanCode=EStdKeyApplication1; - } - else if ( str==KStdKeyApplication2 ) - { - aStdScanCode=EStdKeyApplication2; - } - else if ( str==KStdKeyApplication3 ) - { - aStdScanCode=EStdKeyApplication3; - } - else if ( str==KStdKeyApplication4 ) - { - aStdScanCode=EStdKeyApplication4; - } - else if ( str==KStdKeyApplication5 ) - { - aStdScanCode=EStdKeyApplication5; - } - else if ( str==KStdKeyApplication6 ) - { - aStdScanCode=EStdKeyApplication6; - } - else if ( str==KStdKeyApplication7 ) - { - aStdScanCode=EStdKeyApplication7; - } - else if ( str==KStdKeyApplication8 ) - { - aStdScanCode=EStdKeyApplication8; - } - else if ( str==KStdKeyApplication9 ) - { - aStdScanCode=EStdKeyApplication9; - } - else if ( str==KStdKeyApplicationA ) - { - aStdScanCode=EStdKeyApplicationA; - } - else if ( str==KStdKeyApplicationB ) - { - aStdScanCode=EStdKeyApplicationB; - } - else if ( str==KStdKeyApplicationC ) - { - aStdScanCode=EStdKeyApplicationC; - } - else if ( str==KStdKeyApplicationD ) - { - aStdScanCode=EStdKeyApplicationD; - } - else if ( str==KStdKeyApplicationE ) - { - aStdScanCode=EStdKeyApplicationE; - } - else if ( str==KStdKeyApplicationF ) - { - aStdScanCode=EStdKeyApplicationF; - } - else if ( str==KStdKeyYes ) - { - aStdScanCode=EStdKeyYes; - } - else if ( str==KStdKeyNo ) - { - aStdScanCode=EStdKeyNo; - } - else if ( str==KStdKeyIncBrightness ) - { - aStdScanCode=EStdKeyIncBrightness; - } - else if ( str==KStdKeyDecBrightness ) - { - aStdScanCode=EStdKeyDecBrightness; - } - else if ( str==KStdKeyKeyboardExtend ) - { - aStdScanCode=EStdKeyKeyboardExtend; - } - else if ( str==KStdKeyDevice10 ) - { - aStdScanCode=EStdKeyDevice10; - } - else if ( str==KStdKeyDevice11 ) - { - aStdScanCode=EStdKeyDevice11; - } - else if ( str==KStdKeyDevice12 ) - { - aStdScanCode=EStdKeyDevice12; - } - else if ( str==KStdKeyDevice13 ) - { - aStdScanCode=EStdKeyDevice13; - } - else if ( str==KStdKeyDevice14 ) - { - aStdScanCode=EStdKeyDevice14; - } - else if ( str==KStdKeyDevice15 ) - { - aStdScanCode=EStdKeyDevice15; - } - else if ( str==KStdKeyDevice16 ) - { - aStdScanCode=EStdKeyDevice16; - } - else if ( str==KStdKeyDevice17 ) - { - aStdScanCode=EStdKeyDevice17; - } - else if ( str==KStdKeyDevice18 ) - { - aStdScanCode=EStdKeyDevice18; - } - else if ( str==KStdKeyDevice19 ) - { - aStdScanCode=EStdKeyDevice19; - } - else if ( str==KStdKeyDevice1A ) - { - aStdScanCode=EStdKeyDevice1A; - } - else if ( str==KStdKeyDevice1B ) - { - aStdScanCode=EStdKeyDevice1B; - } - else if ( str==KStdKeyDevice1C ) - { - aStdScanCode=EStdKeyDevice1C; - } - else if ( str==KStdKeyDevice1D ) - { - aStdScanCode=EStdKeyDevice1D; - } - else if ( str==KStdKeyDevice1E ) - { - aStdScanCode=EStdKeyDevice1E; - } - else if ( str==KStdKeyDevice1F ) - { - aStdScanCode=EStdKeyDevice1F; - } - else if ( str==KStdKeyApplication10 ) - { - aStdScanCode=EStdKeyApplication10; - } - else if ( str==KStdKeyApplication11 ) - { - aStdScanCode=EStdKeyApplication11; - } - else if ( str==KStdKeyApplication12 ) - { - aStdScanCode=EStdKeyApplication12; - } - else if ( str==KStdKeyApplication13 ) - { - aStdScanCode=EStdKeyApplication13; - } - else if ( str==KStdKeyApplication14 ) - { - aStdScanCode=EStdKeyApplication14; - } - else if ( str==KStdKeyApplication15 ) - { - aStdScanCode=EStdKeyApplication15; - } - else if ( str==KStdKeyApplication16 ) - { - aStdScanCode=EStdKeyApplication16; - } - else if ( str==KStdKeyApplication17 ) - { - aStdScanCode=EStdKeyApplication17; - } - else if ( str==KStdKeyApplication18 ) - { - aStdScanCode=EStdKeyApplication18; - } - else if ( str==KStdKeyApplication19 ) - { - aStdScanCode=EStdKeyApplication19; - } - else if ( str==KStdKeyApplication1A ) - { - aStdScanCode=EStdKeyApplication1A; - } - else if ( str==KStdKeyApplication1B ) - { - aStdScanCode=EStdKeyApplication1B; - } - else if ( str==KStdKeyApplication1C ) - { - aStdScanCode=EStdKeyApplication1C; - } - else if ( str==KStdKeyApplication1D ) - { - aStdScanCode=EStdKeyApplication1D; - } - else if ( str==KStdKeyApplication1E ) - { - aStdScanCode=EStdKeyApplication1E; - } - else if ( str==KStdKeyApplication1F ) - { - aStdScanCode=EStdKeyApplication1F; - } - else - { - TInt intVal=0; - ret=aDataWrapper.GetIntFromConfig(aSectName, aKeyName, intVal); - if ( ret ) - { - aStdScanCode=(TStdScanCode)intVal; - } - } - } - - return ret; - } - -TBool CT_GraphicsUtil::ReadTextAlign(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, CGraphicsContext::TTextAlign& aTextAlign) - { - // Read displaymode from INI file - TPtrC str; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, str); - if ( ret ) - { - if ( str==KTextAlignLeft ) - { - aTextAlign=CGraphicsContext::ELeft; - } - else if ( str==KTextAlignCenter ) - { - aTextAlign=CGraphicsContext::ECenter; - } - else if ( str==KTextAlignRight ) - { - aTextAlign=CGraphicsContext::ERight; - } - else - { - TInt intVal=0; - ret=aDataWrapper.GetIntFromConfig(aSectName, aKeyName, intVal); - if ( ret ) - { - aTextAlign=(CGraphicsContext::TTextAlign)intVal; - } - } - } - - return ret; - } - -TBool CT_GraphicsUtil::ReadTextDirection(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, CFont::TTextDirection& aTextDirection) - { - // Read displaymode from INI file - TPtrC str; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, str); - if ( ret ) - { - if ( str==KTextDirectionHorizontal ) - { - aTextDirection=CFont::EHorizontal; - } - else if ( str==KTextDirectionVertical ) - { - aTextDirection=CFont::EVertical; - } - else - { - TInt intVal=0; - ret=aDataWrapper.GetIntFromConfig(aSectName, aKeyName, intVal); - if ( ret ) - { - aTextDirection=(CFont::TTextDirection)intVal; - } - } - } - - return ret; - } - -TBool CT_GraphicsUtil::ReadType(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TPointerEvent::TType& aType) - { - // Read displaymode from INI file - TPtrC str; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, str); - if ( ret ) - { - if ( str==KTypeButton1Down ) - { - aType=TPointerEvent::EButton1Down; - } - else if ( str==KTypeButton1Up ) - { - aType=TPointerEvent::EButton1Up; - } - else if ( str==KTypeButton2Down ) - { - aType=TPointerEvent::EButton2Down; - } - else if ( str==KTypeButton2Up ) - { - aType=TPointerEvent::EButton2Up; - } - else if ( str==KTypeButton3Down ) - { - aType=TPointerEvent::EButton3Down; - } - else if ( str==KTypeButton3Up ) - { - aType=TPointerEvent::EButton3Up; - } - else if ( str==KTypeDrag ) - { - aType=TPointerEvent::EDrag; - } - else if ( str==KTypeMove ) - { - aType=TPointerEvent::EMove; - } - else if ( str==KTypeButtonRepeat ) - { - aType=TPointerEvent::EButtonRepeat; - } - else if ( str==KTypeSwitchOn ) - { - aType=TPointerEvent::ESwitchOn; - } - else - { - TInt intVal=0; - ret=aDataWrapper.GetIntFromConfig(aSectName, aKeyName, intVal); - if ( ret ) - { - aType=(TPointerEvent::TType)intVal; - } - } - } - - return ret; - } - -TBool CT_GraphicsUtil::ReadType(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TRawEvent::TType& aType) - { - // Read displaymode from INI file - TPtrC str; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, str); - if ( ret ) - { - if ( str==KTypeNone ) - { - aType=TRawEvent::ENone; - } - else if ( str==KTypePointerMove ) - { - aType=TRawEvent::EPointerMove; - } - else if ( str==KTypePointerSwitchOn ) - { - aType=TRawEvent::EPointerSwitchOn; - } - else if ( str==KTypeKeyDown ) - { - aType=TRawEvent::EKeyDown; - } - else if ( str==KTypeKeyUp ) - { - aType=TRawEvent::EKeyUp; - } - else if ( str==KTypeRedraw ) - { - aType=TRawEvent::ERedraw; - } - else if ( str==KTypeSwitchOn ) - { - aType=TRawEvent::ESwitchOn; - } - else if ( str==KTypeActive ) - { - aType=TRawEvent::EActive; - } - else if ( str==KTypeInactive ) - { - aType=TRawEvent::EInactive; - } - else if ( str==KTypeUpdateModifiers ) - { - aType=TRawEvent::EUpdateModifiers; - } - else if ( str==KTypeButton1Down ) - { - aType=TRawEvent::EButton1Down; - } - else if ( str==KTypeButton1Up ) - { - aType=TRawEvent::EButton1Up; - } - else if ( str==KTypeButton2Down ) - { - aType=TRawEvent::EButton2Down; - } - else if ( str==KTypeButton2Up ) - { - aType=TRawEvent::EButton2Up; - } - else if ( str==KTypeButton3Down ) - { - aType=TRawEvent::EButton3Down; - } - else if ( str==KTypeButton3Up ) - { - aType=TRawEvent::EButton3Up; - } - else if ( str==KTypeSwitchOff ) - { - aType=TRawEvent::ESwitchOff; - } - else if ( str==KTypeKeyRepeat ) - { - aType=TRawEvent::EKeyRepeat; - } - else if ( str==KTypeCaseOpen ) - { - aType=TRawEvent::ECaseOpen; - } - else if ( str==KTypeCaseClose ) - { - aType=TRawEvent::ECaseClose; - } - else if ( str==KTypePointer3DInRange ) - { - aType=TRawEvent::EPointer3DInRange; - } - else if ( str==KTypePointer3DOutOfRange ) - { - aType=TRawEvent::EPointer3DOutOfRange; - } - else if ( str==KTypePointer3DTilt ) - { - aType=TRawEvent::EPointer3DTilt; - } - else if ( str==KTypePointer3DRotation ) - { - aType=TRawEvent::EPointer3DRotation; - } - else if ( str==KTypePointer3DTiltAndMove ) - { - aType=TRawEvent::EPointer3DTiltAndMove; - } - else if ( str==KTypeButton4Down ) - { - aType=TRawEvent::EButton4Down; - } - else if ( str==KTypeButton4Up ) - { - aType=TRawEvent::EButton4Up; - } - else if ( str==KTypeButton5Down ) - { - aType=TRawEvent::EButton5Down; - } - else if ( str==KTypeButton5Up ) - { - aType=TRawEvent::EButton5Up; - } - else if ( str==KTypeButton6Down ) - { - aType=TRawEvent::EButton6Down; - } - else if ( str==KTypeButton6Up ) - { - aType=TRawEvent::EButton6Up; - } - else if ( str==KTypeRestartSystem ) - { - aType=TRawEvent::ERestartSystem; - } - else - { - TInt intVal=0; - ret=aDataWrapper.GetIntFromConfig(aSectName, aKeyName, intVal); - if ( ret ) - { - aType=(TRawEvent::TType)intVal; - } - } - } - - return ret; - } - -TBool CT_GraphicsUtil::ReadTerminateReason(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, RDirectScreenAccess::TTerminationReasons& aReason) - { - TPtrC str; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, str); - if ( ret ) - { - if(str == KETerminateCancel) - { - aReason = RDirectScreenAccess::ETerminateCancel; - } - else if(str == KETerminateRegion) - { - aReason = RDirectScreenAccess::ETerminateRegion; - } - else if(str == KETerminateRotation) - { - aReason = RDirectScreenAccess::ETerminateRotation; - } - else if(str == KETerminateScreenMode) - { - aReason = RDirectScreenAccess::ETerminateScreenMode; - } - else - { - ret = EFalse; - } - } - return ret; - } - -TBool CT_GraphicsUtil::ReadWindowBackupType(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TUint& aWindowBackupType) - { - TPtrC str; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, str); - if ( ret ) - { - TUint temp=0; - ret=ConvertToWindowBackupType(str, temp); - if ( ret ) - { - aWindowBackupType=temp; - } - } - - return ret; - } - -TBool CT_GraphicsUtil::ConvertToWindowBackupType(const TDesC& aStr, TWindowBackupType& aWindowBackupType) - { - TBool ret=ETrue; - if ( aStr==KWindowBackupTypeAreaBehind ) - { - aWindowBackupType=EWindowBackupAreaBehind; - } - else if ( aStr==KWindowBackupTypeFullScreen ) - { - aWindowBackupType=EWindowBackupFullScreen; - } - else - { - TUint windowBackupType; - TLex lex(aStr); - ret=(lex.Val(windowBackupType, EHex)==KErrNone); - if ( ret ) - { - aWindowBackupType=(TWindowBackupType)windowBackupType; - } - } - - return ret; - } - -TBool CT_GraphicsUtil::ConvertToWindowBackupType(const TDesC& aStr, TUint& aWindowBackupType) - { - TBool ret=ETrue; - TInt location=aStr.Match(_L("*|*")); - if( location!=KErrNotFound ) - { - // Converting Left part of the data - TPtrC tempStr=aStr.Left(location); - ret=ConvertToWindowBackupType(tempStr, aWindowBackupType); - - // Converting right data can be with another "|" - tempStr.Set(aStr.Mid(location+1)); - - TUint temp; - if ( ConvertToWindowBackupType(tempStr, temp) ) - { - aWindowBackupType|=temp; - } - else - { - ret=EFalse; - } - } - else - { - TWindowBackupType windowBackupType; - ret=ConvertToWindowBackupType(aStr, windowBackupType); - if ( ret ) - { - aWindowBackupType=(TUint)windowBackupType; - } - } - - return ret; - } - -TBool CT_GraphicsUtil::ReadWsTransparencyPolicy(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TWsTransparencyPolicy& aWsTransparencyPolicy) - { - // Read displaymode from INI file - TPtrC str; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, str); - if ( ret ) - { - if ( str==KWsTransparencyPolicyDefault ) - { - aWsTransparencyPolicy=ETransparencyDefault; - } - else if ( str==KWsTransparencyPolicyFreezeUnder ) - { - aWsTransparencyPolicy=ETransparencyFreezeUnder; - } - else - { - TInt intVal=0; - ret=aDataWrapper.GetIntFromConfig(aSectName, aKeyName, intVal); - if ( ret ) - { - aWsTransparencyPolicy=(TWsTransparencyPolicy)intVal; - } - } - } - - return ret; - } - -TBool CT_GraphicsUtil::ReadWsVisibilityChangedEvent(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TWsVisibilityChangedEvent& aWsVisibilityChangedEvent) - { - TPtrC str; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, str); - if ( ret ) - { - ret=ConvertToWsVisibilityChangedEvent(str, aWsVisibilityChangedEvent.iFlags); - } - - return ret; - } - -TBool CT_GraphicsUtil::ConvertToWsVisibilityChangedEvent(const TDesC& aStr, TUint& aWsVisibilityChangedEvent) - { - TBool ret=ETrue; - TInt location=aStr.Match(_L("*|*")); - if( location!=KErrNotFound ) - { - // Converting Left part of the data - TPtrC tempStr=aStr.Left(location); - ret=ConvertToWsVisibilityChangedEvent(tempStr, aWsVisibilityChangedEvent); - - // Converting right data can be with another "|" - tempStr.Set(aStr.Mid(location+1)); - - TUint temp; - if ( ConvertToWsVisibilityChangedEvent(tempStr, temp) ) - { - aWsVisibilityChangedEvent|=temp; - } - else - { - ret=EFalse; - } - } - else - { - if ( aStr==KWsVisibilityChangedCanBeSeen ) - { - aWsVisibilityChangedEvent=TWsVisibilityChangedEvent::ECanBeSeen; - } - else if ( aStr==KWsVisibilityChangedCantBeSeen ) - { - aWsVisibilityChangedEvent=TWsVisibilityChangedEvent::ECantBeSeen; - } - else if ( aStr==KWsVisibilityChangedPartiallyVisible ) - { - aWsVisibilityChangedEvent=TWsVisibilityChangedEvent::EPartiallyVisible; - } - else if ( aStr==KWsVisibilityChangedNotVisible ) - { - aWsVisibilityChangedEvent=TWsVisibilityChangedEvent::ENotVisible; - } - else if ( aStr==KWsVisibilityChangedFullyVisible ) - { - aWsVisibilityChangedEvent=TWsVisibilityChangedEvent::EFullyVisible; - } - else - { - TLex lex(aStr); - ret=(lex.Val(aWsVisibilityChangedEvent, EHex)==KErrNone); - } - } - - return ret; - } - -TBool CT_GraphicsUtil::ReadLongCaptureFlags(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TLongCaptureFlags& aLongCaptureFlags) - { - TPtrC str; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, str); - if ( ret ) - { - if ( str==KELongCaptureShortEventImmediately ) - { - aLongCaptureFlags = ELongCaptureShortEventImmediately; - } - else if ( str==KELongCaptureRepeatEvents ) - { - aLongCaptureFlags = ELongCaptureRepeatEvents; - } - else if ( str==KELongCaptureNormal ) - { - aLongCaptureFlags = ELongCaptureNormal; - } - else if ( str==KELongCaptureWaitShort ) - { - aLongCaptureFlags = ELongCaptureWaitShort; - } - else - { - TInt intVal=0; - ret=aDataWrapper.GetIntFromConfig(aSectName, aKeyName, intVal); - if ( ret ) - { - aLongCaptureFlags=(TLongCaptureFlags)intVal; - } - } - } - return ret; - } - -TBool CT_GraphicsUtil::ReadSpriteFlags(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TSpriteFlags& aSpriteFlags) - { - TPtrC str; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, str); - if ( ret ) - { - ret=ConvertToSpriteFlags(str, aSpriteFlags); - } - - return ret; - } - -TBool CT_GraphicsUtil::ReadSpriteFlags(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TUint& aSpriteFlags) - { - TPtrC str; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, str); - if ( ret ) - { - ret=ConvertToSpriteFlags(str, aSpriteFlags); - } - - return ret; - } - -TBool CT_GraphicsUtil::ConvertToSpriteFlags(const TDesC& aStr, TSpriteFlags& aSpriteFlags) - { - TBool ret=ETrue; - if ( aStr==KESpriteFlash ) - { - aSpriteFlags=ESpriteFlash; - } - else if ( aStr==KESpriteNoChildClip ) - { - aSpriteFlags=ESpriteNoChildClip; - } - else if ( aStr==KESpriteNoShadows ) - { - aSpriteFlags=ESpriteNoShadows; - } - else - { - TUint spriteFlag; - TLex lex(aStr); - ret=(lex.Val(spriteFlag, EHex)==KErrNone); - if ( ret ) - { - aSpriteFlags=(TSpriteFlags)spriteFlag; - } - } - - return ret; - } - -TBool CT_GraphicsUtil::ConvertToSpriteFlags(const TDesC& aStr, TUint& aSpriteFlags) - { - TBool ret=ETrue; - TInt location=aStr.Match(_L("*|*")); - if( location!=KErrNotFound ) - { - // Converting Left part of the data - TPtrC tempStr=aStr.Left(location); - ret=ConvertToSpriteFlags(tempStr, aSpriteFlags); - - // Converting right data can be with another "|" - tempStr.Set(aStr.Mid(location+1)); - - TUint temp; - if ( ConvertToSpriteFlags(tempStr, temp) ) - { - aSpriteFlags|=temp; - } - else - { - ret=EFalse; - } - } - else - { - TSpriteFlags spriteFlag; - ret=ConvertToSpriteFlags(aStr, spriteFlag); - if ( ret ) - { - aSpriteFlags=(TUint)spriteFlag; - } - } - - return ret; - } - -TBool CT_GraphicsUtil::ReadCustomTextCursorAlignment(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, RWsSession::TCustomTextCursorAlignment& aAlignment) - { - TPtrC str; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, str); - if ( ret ) - { - if ( str==KECustomTextCursorAlignTop ) - { - aAlignment=RWsSession::ECustomTextCursorAlignTop; - } - else if ( str==KECustomTextCursorAlignBaseline ) - { - aAlignment=RWsSession::ECustomTextCursorAlignBaseline; - } - else if ( str==KECustomTextCursorAlignBottom ) - { - aAlignment=RWsSession::ECustomTextCursorAlignBottom; - } - else - { - TInt intVal=0; - ret=aDataWrapper.GetIntFromConfig(aSectName, aKeyName, intVal); - if ( ret ) - { - aAlignment=(RWsSession::TCustomTextCursorAlignment)intVal; - } - } - } - - return ret; - } - -/** - * Utility method that fetches TAlgStyle pointer by command parameter name from INI-file. - */ -TBool CT_GraphicsUtil::GetAlgStyleL(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TAlgStyle*& aData) - { - // get AlgStyleData object from parameters - TPtrC name; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, name); - if ( ret ) - { - // Data object found - aData=static_cast(aDataWrapper.GetDataObjectL(name)); - } - - return ret; - } - -/** - * Utility method that fetches RDrawableWindow pointer by command parameter name from INI-file. - */ -TBool CT_GraphicsUtil::GetDrawableWindowL(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, RDrawableWindow*& aData) - { - // get CFbsBitmap data object from parameters - TPtrC name; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, name); - if ( ret ) - { - // Data object found - aData=static_cast(aDataWrapper.GetDataObjectL(name)); - } - - return ret; - } - -/** - * Utility method that fetches CGraphicsContext::TDrawTextExtendedParam pointer by command parameter name from INI-file. - */ -TBool CT_GraphicsUtil::GetDrawTextExtendedParamL(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, CGraphicsContext::TDrawTextExtendedParam*& aData) - { - // get CFbsBitmap data object from parameters - TPtrC name; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, name); - if ( ret ) - { - // Data object found - aData=static_cast(aDataWrapper.GetDataObjectL(name)); - } - - return ret; - } - -/** - * Utility method that fetches CFbsBitmap pointer by command parameter name from INI-file. - */ -TBool CT_GraphicsUtil::GetFbsBitmapL(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, CFbsBitmap*& aData) - { - // get CFbsBitmap data object from parameters - TPtrC name; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, name); - if ( ret ) - { - // Data object found - aData=static_cast(aDataWrapper.GetDataObjectL(name)); - } - - return ret; - } - -/** - * Utility method that fetches CFbsDevice pointer by command parameter name from INI-file. - */ -TBool CT_GraphicsUtil::GetFbsDeviceL(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, CFbsDevice*& aData) - { - // get CFbsBitmap data object from parameters - TPtrC name; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, name); - if ( ret ) - { - // Data object found - aData=static_cast(aDataWrapper.GetDataObjectL(name)); - } - - return ret; - } - -/** - * Utility method that fetches CFont pointer by command parameter name from INI-file. - */ -TBool CT_GraphicsUtil::GetFontL(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, CFont*& aData) - { - // get CFbsBitmap data object from parameters - TPtrC name; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, name); - if ( ret ) - { - // Data object found - aData=static_cast(aDataWrapper.GetDataObjectL(name)); - } - - return ret; - } - -/** - * Utility method that fetches CPalette pointer by command parameter name from INI-file. - */ -TBool CT_GraphicsUtil::GetPaletteL(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, CPalette*& aData) - { - // get PaletteData object from parameters - TPtrC name; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, name); - if ( ret ) - { - // Data object found - aData=static_cast(aDataWrapper.GetDataObjectL(name)); - } - - return ret; - } - -/** - * Utility method that fetches CWsBitmap pointer by command parameter name from INI-file. - */ -TBool CT_GraphicsUtil::GetWsBitmapL(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, CWsBitmap*& aData) - { - // get CWsBitmap data object from parameters - TPtrC name; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, name); - if ( ret ) - { - // Data object found - aData=static_cast(aDataWrapper.GetDataObjectL(name)); - } - - return ret; - } - -/** - * Utility method that fetches TWsEvent pointer by command parameter name from INI-file. - */ -TBool CT_GraphicsUtil::GetWsEventL(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TWsEvent*& aData) - { - // get CWsBitmap data object from parameters - TPtrC name; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, name); - if ( ret ) - { - // Data object found - aData=static_cast(aDataWrapper.GetDataObjectL(name)); - } - - return ret; - } - -/** - * Utility method that fetches RWsGraphicMsgBuf pointer by command parameter name from INI-file. - */ -TBool CT_GraphicsUtil::GetWsGraphicMsgBufL(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, RWsGraphicMsgBuf*& aData) - { - // get CWsBitmap data object from parameters - TPtrC name; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, name); - if ( ret ) - { - // Data object found - aData=static_cast(aDataWrapper.GetDataObjectL(name)); - } - - return ret; - } - -/** - * Utility method that fetches CWsScreenDevice pointer by command parameter name from INI-file. - */ -TBool CT_GraphicsUtil::GetWsScreenDeviceL(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, CWsScreenDevice*& aData) - { - // get CWsBitmap data object from parameters - TPtrC name; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, name); - if ( ret ) - { - // Data object found - aData=static_cast(aDataWrapper.GetDataObjectL(name)); - } - - return ret; - } - -/** - * Utility method that fetches TWsGraphicMsgFixedBase pointer by command parameter name from INI-file. - */ -TBool CT_GraphicsUtil::GetWsGraphicMsgFixedBaseL(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TWsGraphicMsgFixedBase*& aData) - { - // get CWsBitmap data object from parameters - TPtrC name; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, name); - if ( ret ) - { - // Data object found - aData=static_cast(aDataWrapper.GetDataObjectL(name)); - } - - return ret; - } - -/** - * Utility method that fetches TWsPriorityKeyEvent pointer by command parameter name from INI-file. - */ -TBool CT_GraphicsUtil::GetWsPriorityKeyEventL(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TWsPriorityKeyEvent*& aData) - { - // get CWsBitmap data object from parameters - TPtrC name; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, name); - if ( ret ) - { - // Data object found - aData=static_cast(aDataWrapper.GetDataObjectL(name)); - } - - return ret; - } - -/** - * Utility method that fetches TWsRedrawEvent pointer by command parameter name from INI-file. - */ -TBool CT_GraphicsUtil::GetWsRedrawEventL(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TWsRedrawEvent*& aData) - { - // get CWsBitmap data object from parameters - TPtrC name; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, name); - if ( ret ) - { - // Data object found - aData=static_cast(aDataWrapper.GetDataObjectL(name)); - } - - return ret; - } - -TBool CT_GraphicsUtil::GetTextCursor(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TTextCursor& aTextCursor) - { - TBuf tempStore; - TPtrC str; - - tempStore.Format(KFormatEntryField, &aKeyName, &KTagTextCursorType); - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, tempStore, str); - if ( ret ) - { - if ( str==KETypeRectangle ) - { - aTextCursor.iType = TTextCursor::ETypeRectangle; - } - else if ( str==KETypeHollowRectangle ) - { - aTextCursor.iType = TTextCursor::ETypeHollowRectangle; - } - else if ( str==KETypeLastBasic ) - { - aTextCursor.iType = TTextCursor::ETypeLastBasic; - } - else - { - ret=aDataWrapper.GetIntFromConfig(aSectName, tempStore, aTextCursor.iType); - } - } - - tempStore.Format(KFormatEntryField, &aKeyName, &KTagTextCursorFlags); - if ( aDataWrapper.GetStringFromConfig(aSectName, tempStore, str) ) - { - if ( str==KEFlagNoFlash ) - { - aTextCursor.iFlags = TTextCursor::EFlagNoFlash; - } - else if ( str==KEFlagClipHorizontal ) - { - aTextCursor.iFlags = TTextCursor::EFlagClipHorizontal; - } - else if ( str==KEFlagClipVertical ) - { - aTextCursor.iFlags = TTextCursor::EFlagClipVertical; - } - else - { - TInt intVal=0; - ret=aDataWrapper.GetIntFromConfig(aSectName, tempStore, intVal); - if ( ret ) - { - aTextCursor.iFlags = (TUint)intVal; - } - } - } - - tempStore.Format(KFormatEntryField, &aKeyName, &KTagTextCursorHeight); - aDataWrapper.GetIntFromConfig(aSectName, tempStore, aTextCursor.iHeight); - - tempStore.Format(KFormatEntryField, &aKeyName, &KTagTextCursorAscent); - aDataWrapper.GetIntFromConfig(aSectName, tempStore, aTextCursor.iAscent); - - tempStore.Format(KFormatEntryField, &aKeyName, &KTagTextCursorWidth); - aDataWrapper.GetIntFromConfig(aSectName, tempStore, aTextCursor.iWidth); - - tempStore.Format(KFormatEntryField, &aKeyName, &KTagTextCursorColor); - aDataWrapper.GetRgbFromConfig(aSectName, tempStore, aTextCursor.iColor); - - return ret; - } - -TBool CT_GraphicsUtil::GetSpriteMemberL(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TSpriteMember& aSpriteMember) - { - TBuf tempStore; - TBool ret=ETrue; - - tempStore.Format(KFormatEntryField, &aKeyName, &KTagSpriteMemberBitmap); - if ( !CT_GraphicsUtil::GetFbsBitmapL(aDataWrapper, aSectName, tempStore, aSpriteMember.iBitmap) ) - { - ret=EFalse; - } - - tempStore.Format(KFormatEntryField, &aKeyName, &KTagSpriteMemberMaskBitmap); - if ( !CT_GraphicsUtil::GetFbsBitmapL(aDataWrapper, aSectName, tempStore, aSpriteMember.iMaskBitmap) ) - { - aSpriteMember.iMaskBitmap=NULL; - } - - tempStore.Format(KFormatEntryField, &aKeyName, &KTagSpriteMemberInvertMask); - if ( !aDataWrapper.GetBoolFromConfig(aSectName, tempStore, aSpriteMember.iInvertMask) ) - { - aSpriteMember.iInvertMask=EFalse; - } - - tempStore.Format(KFormatEntryField, &aKeyName, &KTagSpriteMemberDrawMode); - if ( !CT_GraphicsUtil::ReadDrawMode(aDataWrapper, aSectName, tempStore, aSpriteMember.iDrawMode) ) - { - ret=EFalse; - } - - tempStore.Format(KFormatEntryField, &aKeyName, &KTagSpriteMemberOffset); - if ( !aDataWrapper.GetPointFromConfig(aSectName, tempStore, aSpriteMember.iOffset) ) - { - ret=EFalse; - } - - TInt interval; - tempStore.Format(KFormatEntryField, &aKeyName, &KTagSpriteMemberInterval); - if ( aDataWrapper.GetIntFromConfig(aSectName, tempStore, interval) ) - { - aSpriteMember.iInterval=interval; - } - return ret; - } - - -TBool CT_GraphicsUtil::GetSpriteMemberListL(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, CArrayFix& aResult) - { - TBuf tempStore; - TSpriteMember spriteMember; - - aResult.Reset(); - TBool ok=ETrue; - for ( TInt index=0; ok; ) - { - tempStore.Format(KFormatFieldNumber, &aKeyName, ++index); - ok=CT_GraphicsUtil::GetSpriteMemberL(aDataWrapper, aSectName, tempStore, spriteMember); - if ( ok ) - { - aResult.AppendL(spriteMember); - } - } - - return aResult.Count()>0; - } - -TBool CT_GraphicsUtil::ReadTypefaceSupport(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TTypefaceSupport& aTypefaceSupport) - { - TTypefaceSupport typefaceSupport; - TBuf tempStore; - TPtrC str; - tempStore.Format(KFormatEntryField, &aKeyName, &KTypefaceFontName); - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, tempStore, str); - if(ret) - { - typefaceSupport.iTypeface.iName = str; - - - TBool attri = EFalse; - tempStore.Format(KFormatEntryField, &aKeyName, &KProportional); - if(aDataWrapper.GetBoolFromConfig(aSectName, tempStore, attri)) - { - typefaceSupport.iTypeface.SetIsProportional(attri); - } - tempStore.Format(KFormatEntryField, &aKeyName, &KSerif); - if(aDataWrapper.GetBoolFromConfig(aSectName, tempStore, attri)) - { - typefaceSupport.iTypeface.SetIsSerif(attri); - } - tempStore.Format(KFormatEntryField, &aKeyName, &KSymbol); - if(aDataWrapper.GetBoolFromConfig(aSectName, tempStore, attri)) - { - typefaceSupport.iTypeface.SetIsSymbol(attri); - } - - tempStore.Format(KFormatEntryField, &aKeyName, &KNumHeights); - aDataWrapper.GetIntFromConfig(aSectName, tempStore, typefaceSupport.iNumHeights); - - tempStore.Format(KFormatEntryField, &aKeyName, &KIsScalable); - aDataWrapper.GetBoolFromConfig(aSectName, tempStore, typefaceSupport.iIsScalable); - - tempStore.Format(KFormatEntryField, &aKeyName, &KMaxHeightInTwips); - aDataWrapper.GetIntFromConfig(aSectName, tempStore, typefaceSupport.iMaxHeightInTwips); - - tempStore.Format(KFormatEntryField, &aKeyName, &KMinHeightInTwips); - aDataWrapper.GetIntFromConfig(aSectName, tempStore, typefaceSupport.iMinHeightInTwips); - - aTypefaceSupport = typefaceSupport; - } - return ret; - } - -TBool CT_GraphicsUtil::BringAppForegroundL(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aSessionKeyName , const TDesC& aAppKeyName) - { - TBool result = ETrue; - RWsSession* iClient( NULL ); //Window Session Client - TPtrC objectName; - - if ( aDataWrapper.GetStringFromConfig(aSectName, aSessionKeyName, objectName) ) - { - iClient = static_cast(aDataWrapper.GetDataObjectL(objectName)); - } - else - { - result = EFalse; - } - - if( !aDataWrapper.GetStringFromConfig(aSectName, aAppKeyName, objectName)) - { - result = EFalse; - } - - if( result ) - { - TApaTaskList tasklist(*iClient); - TApaTask task(tasklist.FindApp(objectName)); - task.BringToForeground(); - } - return result; - } - -void CT_GraphicsUtil::EatupMemory(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName) - { - // read left size in memory from INI - TInt leftsize=0; - TBool ret=aDataWrapper.GetIntFromConfig(aSectName, aKeyName, leftsize); - if ( !ret || leftsize==0) - return; - - // eat memory until fail to avaiable memory is less than is left size - TInt nTotalSize=User::Heap().Size(); - TAny* mem=User::AllocZ(nTotalSize); - - if (mem) - iMemArray.Append(mem); - - do { - mem=User::AllocZ(leftsize); - if(mem) - { - iMemArray.Append(mem); - } - } while(mem); - - // get avaiable memory, we can't log here, because no enough memory to write log - // so we have to write log after free memory - iAvaiableSpace=User::Available(iBiggestBlock); - } - -void CT_GraphicsUtil::FreeEatenMemory(CDataWrapperBase& aDataWrapper) - { - for (TInt i=0;i (aDataWrapper.GetDataObjectL(name)); - } - - return ret; - } - -TBool CT_GraphicsUtil::GetRasterizerL(CDataWrapperBase & aDataWrapper, const TDesC & aSectName, const TDesC & aKeyName, COpenFontRasterizer *& aData) - { - // get COpenFontRasterizer data object from parameters - TPtrC name; - TBool ret = aDataWrapper.GetStringFromConfig(aSectName, aKeyName, name); - if (ret) - { - // Data object found - aData = static_cast (aDataWrapper.GetDataObjectL(name)); - } - - return ret; - } - -TBool CT_GraphicsUtil::GetOpenFontGlyphDataL(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TOpenFontGlyphData*& aData) - { - // get TOpenFontGlyphData data object from parameters - TPtrC name; - TBool ret = aDataWrapper.GetStringFromConfig(aSectName, aKeyName, name); - if (ret) - { - // Data object found - aData = static_cast (aDataWrapper.GetDataObjectL(name)); - } - - return ret; - } - -TBool CT_GraphicsUtil::ConvertToFrameInfoFlags(const TDesC& aStr,TUint32& aFrameInfoFlags) - { - TBool ret=ETrue; - TInt location=aStr.Match(_L("*|*")); - if( location!=KErrNotFound ) - { - // Converting Left part of the data - TPtrC tempStr=aStr.Left(location); - ret=ConvertToFrameInfoFlags(tempStr, aFrameInfoFlags); - - // Converting right data can be with another "|" - tempStr.Set(aStr.Mid(location+1)); - - TUint32 temp; - if ( ConvertToFrameInfoFlags(tempStr, temp) ) - { - aFrameInfoFlags|=temp; - } - else - { - ret=EFalse; - } - } - else - { - if ( aStr==KEColor ) - { - aFrameInfoFlags=TFrameInfo::EColor; - } - else if ( aStr==KETransparencyPossible ) - { - aFrameInfoFlags=TFrameInfo::ETransparencyPossible; - } - else if ( aStr==KEFullyScaleable ) - { - aFrameInfoFlags=TFrameInfo::EFullyScaleable; - } - else if ( aStr==KEConstantAspectRatio ) - { - aFrameInfoFlags=TFrameInfo::EConstantAspectRatio; - } - else if ( aStr==KECanDither ) - { - aFrameInfoFlags=TFrameInfo::ECanDither; - } - else if ( aStr==KEAlphaChannel ) - { - aFrameInfoFlags=TFrameInfo::EAlphaChannel; - } - else if ( aStr==KELeaveInPlace ) - { - aFrameInfoFlags=TFrameInfo::ELeaveInPlace; - } - else if ( aStr==KERestoreToBackground ) - { - aFrameInfoFlags=TFrameInfo::ERestoreToBackground; - } - else if ( aStr==KERestoreToPrevious ) - { - aFrameInfoFlags=TFrameInfo::ERestoreToPrevious; - } - else if ( aStr==KEPartialDecodeInvalid ) - { - aFrameInfoFlags=TFrameInfo::EPartialDecodeInvalid; - } - else if ( aStr==KEMngMoreFramesToDecode ) - { - aFrameInfoFlags=TFrameInfo::EMngMoreFramesToDecode; - } - else if ( aStr==KEUsesFrameSizeInPixels ) - { - aFrameInfoFlags=TFrameInfo::EUsesFrameSizeInPixels; - } - else - { - TUint32 frameinfoFlag; - TLex lex(aStr); - ret=(lex.Val(frameinfoFlag, EHex)==KErrNone); - if ( ret ) - { - aFrameInfoFlags=frameinfoFlag; - } - } - } - return ret; - } - -TBool CT_GraphicsUtil::GetFrameInfoState(CDataWrapperBase& aDataWrapper,const TDesC& aSectName, const TDesC& aKeyName,TFrameInfo::TFrameInfoState& aState) - { - TPtrC str; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, str); - if ( ret ) - { - if ( str==KEFrameInfoUninitialised ) - { - aState=TFrameInfo::EFrameInfoUninitialised; - } - else if ( str==KEFrameInfoProcessingFrameHeader ) - { - aState=TFrameInfo::EFrameInfoProcessingFrameHeader; - } - else if ( str==KEFrameInfoProcessingFrame ) - { - aState=TFrameInfo::EFrameInfoProcessingFrame; - } - else if ( str==KEFrameInfoProcessingComplete) - { - aState=TFrameInfo::EFrameInfoProcessingComplete; - } - else - { - TUint state; - TLex lex(str); - ret=(lex.Val(state, EHex)==KErrNone); - if ( ret ) - { - aState=(TFrameInfo::TFrameInfoState)state; - } - } - } - - return ret; - } - - -TBool CT_GraphicsUtil::GetWsGraphicAnimationL(CDataWrapperBase& aDataWrapper,const TDesC& aSectName, const TDesC& aKeyName, TWsGraphicAnimation*& aData) - { - // get TWsGraphicAnimation data object from parameters - TPtrC name; - TBool ret = aDataWrapper.GetStringFromConfig(aSectName, aKeyName, name); - if ( ret ) - { - // Data object found - aData=static_cast(aDataWrapper.GetDataObjectL(name)); - } - - return ret; - } - -TBool CT_GraphicsUtil::StartAnimTesterClientL(CDataWrapperBase& aDataWrapper,const TDesC& aSectName) - { - TPtrC processName; - if( !aDataWrapper.GetStringFromConfig(aSectName, KFldProcessName, processName) ) - { - return EFalse; - } - TInt id; - if( !aDataWrapper.GetIntFromConfig(aSectName, KFldId, id) ) - { - return EFalse; - } - TRect rect; - if( !aDataWrapper.GetRectFromConfig(aSectName, KFldRect, rect) ) - { - return EFalse; - } - TPtrC objectName; - if ( !aDataWrapper.GetStringFromConfig(aSectName, KFldWsga, objectName) ) - { - return EFalse; - } - TWsGraphicAnimation* wsGraphAnim; - wsGraphAnim = static_cast(aDataWrapper.GetDataObjectL(objectName)); - - _LIT(KSpace, " "); - TBuf<128> args; - // Initialize arguments - args.Zero(); - args.Append(processName); - args.Append(KSpace); - args.AppendNum(0); // screen number - args.Append(KSpace); - args.AppendNum(id); - args.Append(KSpace); - args.AppendNum(rect.iTl.iX); - args.Append(KSpace); - args.AppendNum(rect.iTl.iY); - args.Append(KSpace); - args.AppendNum(rect.iBr.iX); - args.Append(KSpace); - args.AppendNum(rect.iBr.iY); - args.Append(KSpace); - TBuf<32> data; - data.Copy(wsGraphAnim->Pckg()); - args.Append(data); - - // Launch client process - RProcess process; - CleanupClosePushL(process); - User::LeaveIfError(process.Create(processName,args)); - process.Resume(); - - // Synchronize the process - RSemaphore semaphore; - CleanupClosePushL(semaphore); - TInt err = semaphore.OpenGlobal(processName); - if( KErrNotFound == err ) - { - User::LeaveIfError(semaphore.CreateGlobal(processName,0)); - // Wait until new process finish drawing - } - else if( KErrNone != err ) - { - User::LeaveIfError(err); - } - semaphore.Wait(); - CleanupStack::PopAndDestroy(2); - return ETrue; - } - -TBool CT_GraphicsUtil::CloseAnimTesterClientL(CDataWrapperBase& aDataWrapper,const TDesC& aSectName) - { - TPtrC processName; - if( !aDataWrapper.GetStringFromConfig(aSectName, KFldProcessName, processName) ) - { - return EFalse; - } - - RSemaphore semaphore; - CleanupClosePushL(semaphore); - User::LeaveIfError(semaphore.OpenGlobal(processName)); - // Waken waiting process - semaphore.Signal(); - CleanupStack::PopAndDestroy(); - return ETrue; - } - -TBool CT_GraphicsUtil::ReadAnimType(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TInt& aType) - { - TPtrC str; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, str); - if ( ret ) - { - if ( str==KEAnimWindows) - { - aType=EKWindowAnim; - } - else if ( str==KEAnimSprite ) - { - aType=EKSpriteAnim; - } - else if ( str==KEAnimFreeTimer ) - { - aType=EKFreeTimerWindowAnim; - } - else - ret=EFalse; - } - - return ret; - } - -TBool CT_GraphicsUtil::ReadAnimCommand(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TInt& aCommand) - { - TPtrC str; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, str); - if ( ret ) - { - if ( str==KEAnimCmdSync ) - { - aCommand=ECmdSync; - } - else if ( str==KEAnimCmdTestWithoutPara ) - { - aCommand=ECmdTestWithoutPara; - } - else if ( str==KEAnimCmdTestWithPara ) - { - aCommand=ECmdTestWithPara; - } - else if ( str==KEAnimCmdGetLast ) - { - aCommand=ECmdGetLast; - } - else if ( str==KEAnimCmdGetAnimInterval ) - { - aCommand=ECmdGetAnimInterval; - } - //MAnimGeneralFunctions - else if (str==KEMAnimECmdRetrieveResult) - { - aCommand=ECmdRetrieveResult; - } - else if(str==KEMAnimECmdUtilEatupMemory) - { - aCommand=ECmdUtilEatupMemory; - } - else if(str==KEMAnimECmdUtilFreeEatenMemory) - { - aCommand=ECmdUtilFreeEatenMemory; - } - else if (str==KEMAnimECmdGeneralAnimate) - { - aCommand=ECmdGeneralAnimate; - } - else if (str==KEMAnimECmdGeneralClient) - { - aCommand=ECmdGeneralClient; - } - else if (str==KEMAnimECmdGeneralFlashStateOn) - { - aCommand=ECmdGeneralFlashStateOn; - } - else if (str==KEMAnimECmdGeneralPanic) - { - aCommand=ECmdGeneralPanic; - } - else if (str==KEMAnimECmdGeneralScreenDevice) - { - aCommand=ECmdGeneralScreenDevice; - } - else if (str==KEMAnimECmdGeneralExtendedInterface) - { - aCommand=ECmdGeneralExtendedInterface; - } - else if (str==KEMAnimECmdGeneralWindowExtension) - { - aCommand=ECmdGeneralWindowExtension; - } - else if (str==KEMAnimECmdGeneralNumOfExtInterfaces) - { - aCommand=ECmdGeneralNumOfExtInterfaces; - } - else if (str==KEMAnimECmdGeneralEventExtension) - { - aCommand=ECmdGeneralEventExtension; - } - else if ( str==KEMAnimECmdGeneralGetRawEvents) - { - aCommand=ECmdGeneralGetRawEvents; - } - else if ( str==KEMAnimECmdGeneralPostRawEvent) - { - aCommand=ECmdGeneralPostRawEvent; - } - else if ( str==KEMAnimECmdGeneralPostKeyEvent) - { - aCommand=ECmdGeneralPostKeyEvent; - } - else if ( str==KEMAnimECmdGeneralSetSync) - { - aCommand=ECmdGeneralSetSync; - } - else if ( str==KEMAnimECmdGeneralSync) - { - aCommand=ECmdGeneralSync; - } - else if ( str==KEMAnimECmdGeneralSetInterval) - { - aCommand=ECmdGeneralSetInterval; - } - else if ( str==KEMAnimECmdGeneralSetNextInterval) - { - aCommand=ECmdGeneralSetNextInterval; - } - else if ( str==KEMAnimECmdGeneralSystemTime) - { - aCommand=ECmdGeneralSystemTime; - } - else if ( str==KEMAnimECmdGeneralRegisterForNotis) - { - aCommand=ECmdGeneralRegisterForNotis; - } - else if ( str==KEMAnimECmdGeneralMessage) - { - aCommand=ECmdGeneralMessage; - } - else if ( str==KEMAnimECmdGeneralDuplicateBitmapL) - { - aCommand=ECmdGeneralDuplicateBitmapL; - } - else if ( str==KEMAnimECmdGeneralDuplicateFontL) - { - aCommand=ECmdGeneralDuplicateFontL; - } - else if ( str==KEMAnimECmdGeneralCloseFont) - { - aCommand=ECmdGeneralCloseFont; - } - //Opcodes for MAnimSpriteFunctions - else if ( str==KEMAnimECmdSpriteGetSpriteMember) - { - aCommand=ECmdSpriteGetSpriteMember; - } - else if ( str==KEMAnimECmdSpriteUpdateMember) - { - aCommand=ECmdSpriteUpdateMember; - } - else if ( str==KEMAnimECmdSpriteActivate) - { - aCommand=ECmdSpriteActivate; - } - else if ( str==KEMAnimECmdSpriteSpriteCanBeSeen) - { - aCommand=ECmdSpriteSpriteCanBeSeen; - } - else if ( str==KEMAnimECmdSpriteSizeChangedL) - { - aCommand=ECmdSpriteSizeChangedL; - } - else if ( str==KEMAnimECmdSpriteSetPosition) - { - aCommand=ECmdSpriteSetPosition; - } - else if (str==KEMAnimECmdGeneralReplyBuf8) - { - aCommand=ECmdGeneralReplyBuf8; - } - else if (str==KEMAnimECmdGeneralReplyBuf16) - { - aCommand=ECmdGeneralReplyBuf16; - } - - //MAnimWindowFunctions - - else if (str==KEMAnimECmdWindowActivateGc) - { - aCommand=ECmdWindowActivateGc; - } - else if (str==KEMAnimECmdWindowSetRect) - { - aCommand=ECmdWindowSetRect; - } - else if (str==KEMAnimECmdWindowWindowSize) - { - aCommand=ECmdWindowWindowSize; - } - else if (str==KEMAnimECmdWindowIsHidden) - { - aCommand=ECmdWindowIsHidden; - } - else if (str==KEMAnimECmdWindowSetVisible) - { - aCommand=ECmdWindowSetVisible; - } - else if (str==KEMAnimECmdWindowInvalidate) - { - aCommand=ECmdWindowInvalidate; - } - else if (str==KEMAnimECmdWindowParameters) - { - aCommand=ECmdWindowParameters; - } - else if (str==KEMAnimECmdWindowVisibleRegion) - { - aCommand=ECmdWindowVisibleRegion; - } - else if (str==KEMAnimECmdWindowIsStarted) - { - aCommand=ECmdWindowIsStarted; - } - else if(str==KEMAnimECmdRetrieveResult) - { - aCommand=ECmdRetrieveResult; - } - //Add Opcodes covertion here for MAnimGeneralFunctionsWindowExtension - - else if (str==KEMAnimECmdGfweScreens) - { - aCommand=ECmdGfweScreens; - } - else if (str==KEMAnimECmdGfweFocusScreens) - { - aCommand=ECmdGfweFocusScreens; - } - else if (str==KEMAnimECmdGfweSetFocusScreen) - { - aCommand=ECmdGfweSetFocusScreen; - } - else if (str==KEMAnimECmdGfweWindowGroups) - { - aCommand=ECmdGfweWindowGroups; - } - else if (str==KEMAnimECmdGfweWindowGroupInfo) - { - aCommand=ECmdGfweWindowGroupInfo; - } - else if (str==KEMAnimECmdGfweWindowGroupName) - { - aCommand=ECmdGfweWindowGroupName; - } - else if (str==KEMAnimECmdGfweSetOrdinalPosition) - { - aCommand=ECmdGfweSetOrdinalPosition; - } - else if (str==KEMAnimECmdGfweIsFocusable) - { - aCommand=ECmdGfweIsFocusable; - } - else if (str==KEMAnimECmdGfweWindowConfig) - { - aCommand=ECmdGfweWindowConfig; - } - //Add Opcodes covertion here for MAnimFreeTimerWindowFunctions - //* - ///* - else if (str==KEMAnimECmdFreeTimerWinDeactivateGc) - { - aCommand=ECmdFreeTimerWinDeactivateGc; - } - else if (str==KEMAnimECmdFreeTimerWinUpdate) - { - aCommand=ECmdFreeTimerWinUpdate; - } - else - ret=EFalse; - } - - return ret; - } - -TBool CT_GraphicsUtil::GetFbsBitGcL(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, CFbsBitGc*& aData) - { - // get CFbsBitGc data object from parameters - TPtrC name; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, name); - if ( ret ) - { - // Data object found - aData=static_cast(aDataWrapper.GetDataObjectL(name)); - } - - return ret; - } - - -TBool CT_GraphicsUtil::GetTextParametersL(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, CGraphicsContext::TTextParameters* aParam) - { - aParam=new (ELeave) CGraphicsContext::TTextParameters; - - TBuf tempStore; - TInt start; - TInt end; - TInt flags; - TInt enabled; - TBool ret=ETrue; - TBool dataOK=ETrue; - - tempStore.Format(KFormatEntryField, &aKeyName, &KTagParamEnabled); - dataOK=aDataWrapper.GetIntFromConfig(aSectName, tempStore, enabled); - - //Get TTextParameters::iFlags from ini file or use the default value of it. - tempStore.Format(KFormatEntryField, &aKeyName, &KTagParamFlags); - ret=aDataWrapper.GetIntFromConfig(aSectName, tempStore, flags); - if(ret) - { - INFO_PRINTF2_UTIL(_L("Getting TTextParameters::iFlags from ini file: iFlags=%d"), flags); - aParam->iFlags=flags; - } - else - { - INFO_PRINTF1_UTIL(_L("Using default value of TTextParameters::iFlags")); - } - //Get TTextParameters::iStart from ini file. - tempStore.Format(KFormatEntryField, &aKeyName, &KTagParamStart); - ret=aDataWrapper.GetIntFromConfig(aSectName, tempStore, start); - if(!ret) - { - if(!dataOK) - { - INFO_PRINTF1_UTIL(_L("Didn't get TTextParameters::iStart from ini file that won't use TTextParameters")); - return ret; - } - ret=ETrue; - INFO_PRINTF1_UTIL(_L("Use TTextParameters without data")); - return ret; - } - else - { - aParam->iStart=start; - INFO_PRINTF2_UTIL(_L("Getting TTextParameters::iStart from ini file: iStart=%d"),start); - } - - //Get TTextParameters::iEnd from ini file. - tempStore.Format(KFormatEntryField, &aKeyName, &KTagParamEnd); - ret=aDataWrapper.GetIntFromConfig(aSectName, tempStore, end); - if(!ret) - { - if(!dataOK) - { - INFO_PRINTF1_UTIL(_L("Didn't get TTextParameters::iEnd from ini file that won't use TTextParameters")); - return ret; - } - else - { - ret=ETrue; - INFO_PRINTF1_UTIL(_L("Use TTextParameters without data")); - return ret; - } - } - else - { - aParam->iEnd=end; - INFO_PRINTF2_UTIL(_L("Getting TTextParameters::iEnd from ini file: iEnd=%d"),end); - return ret; - } - - } - -TBool CT_GraphicsUtil::GetGraphicsOrientation(CDataWrapperBase& aDataWrapper,const TDesC& aSectName, const TDesC& aKeyName,CFbsBitGc::TGraphicsOrientation& aParam) - { - TPtrC str; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, str); - if (ret) - { - if ( str==KEGraphicsOrientationNormal ) - { - aParam=CFbsBitGc::EGraphicsOrientationNormal; - } - else if(str==KEGraphicsOrientationRotated90) - { - aParam=CFbsBitGc::EGraphicsOrientationRotated90; - } - else if(str==KEGraphicsOrientationRotated180) - { - aParam=CFbsBitGc::EGraphicsOrientationRotated180; - } - else if(str==KEGraphicsOrientationRotated270) - { - aParam=CFbsBitGc::EGraphicsOrientationRotated270; - } - else - { - ret=EFalse; - } - } - return ret; - } - -/** - * Utility method that fetches CLinkedTypefaceSpecification pointer by command parameter name from INI-file. - */ -TBool CT_GraphicsUtil::GetLinkedTypefaceSpecificationL(CDataWrapperBase& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, CLinkedTypefaceSpecification*& aData) - { - // get CLinkedTypefaceSpecification data object from parameters - TPtrC name; - TBool ret=aDataWrapper.GetStringFromConfig(aSectName, aKeyName, name); - if ( ret ) - { - // Data object found - aData=static_cast(aDataWrapper.GetDataObjectL(name)); - } - - return ret; - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/common/src/TestServerBase.cpp --- a/graphicsapitest/graphicssvs/common/src/TestServerBase.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,40 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -#include "TestServerBase.h" -#include "UtilityClearPanicDlg.h" - -/*@{*/ -/// Constant Literals used. -_LIT(KCmdUtilityClearPanicDlg, "utilityClearPanicDlg"); -/*@}*/ - -CTestStep* CTestServerBase::CreateTestStep(const TDesC& aStepName) - { - CTestStep* ret=NULL; - - if ( aStepName == KCmdUtilityClearPanicDlg ) - { - ret=new CUtilityClearPanicDlg(); - } - else - { - ret=CTestServer2::CreateTestStep(aStepName); - } - - return ret; - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/common/src/UtilityClearPanicDlg.cpp --- a/graphicsapitest/graphicssvs/common/src/UtilityClearPanicDlg.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,50 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -#include "UtilityClearPanicDlg.h" - -// EPOC Includes -#include - -/*@{*/ -/// Constant Literals used. -_LIT(KCmdUtilityClearPanicDlg, "utilityClearPanicDlg"); -/*@}*/ - -CUtilityClearPanicDlg::CUtilityClearPanicDlg() - { - SetTestStepName(KCmdUtilityClearPanicDlg); - } - -enum TVerdict CUtilityClearPanicDlg::doTestStepL() - { - RWsSession ws; - User::LeaveIfError(ws.Connect()); - CleanupClosePushL(ws); - - TKeyEvent event; - event.iCode=EKeyEnter; - event.iScanCode=EKeyEnter; - event.iModifiers=0; - event.iRepeats=0; - ws.SimulateKeyEvent(event); - - ws.Flush(); - CleanupStack::PopAndDestroy(&ws); - - return TestStepResult(); - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/config/t_graphics.tcs --- a/graphicsapitest/graphicssvs/config/t_graphics.tcs Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,19 +0,0 @@ -GRAPHICS-WSERV-BackedUpWindow-PublicApi-1004:GRAPHICS-WSERV-BackedUpWindow-PublicApi-1005 -GRAPHICS-WSERV-Session-PublicApi-0092 -GRAPHICS-WSERV-Window-PublicApi-1208:GRAPHICS-WSERV-Window-PublicApi-1209 -GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0038:GRAPHICS-BitGDI-FbsScreenDevice-PublicApi-0039 -GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0016 -GRAPHICS-BITGDI-FbsDevice-PublicApi-0029 -GRAPHICS-WSERV-BackedUpWindow-PublicApi-0007 -GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0110 -GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0154 -GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0003 -GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0008 -GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0019 -GRAPHICS-WSERV-DsaSession-PublicApi-0008 -GRAPHICS-WSERV-Window-PublicApi-0019:GRAPHICS-WSERV-Window-PublicApi-0020 -GRAPHICS-WSERV-Window-PublicApi-0101:GRAPHICS-WSERV-Window-PublicApi-0104 -GRAPHICS-WSERV-Window-PublicApi-0238:GRAPHICS-WSERV-Window-PublicApi-0239 -GRAPHICS-WSERV-Window-PublicApi-0220 -GRAPHICS-WSERV-Window-PublicApi-1210b -GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0015:GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0016 diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/config/t_graphics_panic.tcs --- a/graphicsapitest/graphicssvs/config/t_graphics_panic.tcs Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,97 +0,0 @@ -GRAPHICS-WSERV-BackedUpWindow-PublicApi-1006 -GRAPHICS-WSERV-BlankWindow-PublicApi-1003 -GRAPHICS-WSERV-Session-PublicApi-0090:GRAPHICS-WSERV-Session-PublicApi-0091 -GRAPHICS-WSERV-Session-PublicApi-0104 -GRAPHICS-WSERV-WindowGc-PublicApi-1002:GRAPHICS-WSERV-WindowGc-PublicApi-1003 -GRAPHICS-WSERV-WindowGc-PublicApi-1005:GRAPHICS-WSERV-WindowGc-PublicApi-1041 -GRAPHICS-WSERV-WindowGc-PublicApi-1101:GRAPHICS-WSERV-WindowGc-PublicApi-1121 -GRAPHICS-WSERV-WindowGc-PublicApi-1123:GRAPHICS-WSERV-WindowGc-PublicApi-1130 -GRAPHICS-WSERV-Window-PublicApi-1003 -GRAPHICS-WSERV-Window-PublicApi-1005:GRAPHICS-WSERV-Window-PublicApi-1006 -GRAPHICS-WSERV-Window-PublicApi-1008 -GRAPHICS-WSERV-Window-PublicApi-1201 -GRAPHICS-WSERV-Window-PublicApi-1204:GRAPHICS-WSERV-Window-PublicApi-1207 -GRAPHICS-WSERV-Window-PublicApi-1214 -GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-1001:GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-1002 -GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0101:GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0104 -GRAPHICS-WSERV-DsaSession-PublicApi-0010:GRAPHICS-WSERV-DsaSession-PublicApi-0011 -GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0010 -GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0011 -GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0013 -GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0160 -GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0192 -GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0195 -GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0211 -GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0216 -GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0219 -GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0230 -GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0300:GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0307 -GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0310:GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0317 -GRAPHICS-WSERV-WsSprite-PublicApi-0022 -GRAPHICS-WSERV-WsSprite-PublicApi-0025:GRAPHICS-WSERV-WsSprite-PublicApi-0026 -GRAPHICS-FBSERV-FbsBitmap-PublicApi-0052:GRAPHICS-FBSERV-FbsBitmap-PublicApi-0053 -GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0006:GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0011 -GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0016 -GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0050 -GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0052 -GRAPHICS-FBSERV-BitmapUtil-PublicApi-0011a -GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0004 -GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0021 -GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0026 -GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0036 -GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0039 -GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0032 -GRAPHICS-BITGDI-FbsScreenDevice-PublicApi-0036 -GRAPHICS-BITGDI-FbsBitGc-PublicApi-0012 -GRAPHICS-BITGDI-FbsBitGc-PublicApi-0015 -GRAPHICS-BITGDI-FbsBitGc-PublicApi-0023 -GRAPHICS-BITGDI-FbsBitGc-PublicApi-0032 -GRAPHICS-BITGDI-FbsBitGc-PublicApi-0128 -GRAPHICS-BITGDI-FbsBitGc-PublicApi-0129 -GRAPHICS-BITGDI-FbsBitGc-PublicApi-0138 -GRAPHICS-BITGDI-FbsBitGc-PublicApi-0139 -GRAPHICS-BITGDI-FbsBitGc-PublicApi-0160 -GRAPHICS-BITGDI-FbsBitGc-PublicApi-0282 -GRAPHICS-BITGDI-FbsBitGc-PublicApi-0283 -GRAPHICS-BITGDI-FbsBitGc-PublicApi-0290 -GRAPHICS-BITGDI-FbsBitGc-PublicApi-0291 -GRAPHICS-BITGDI-FbsBitGc-PublicApi-0296 -GRAPHICS-BITGDI-FbsBitGc-PublicApi-0297 -GRAPHICS-BITGDI-FbsBitGc-PublicApi-0300 -GRAPHICS-BITGDI-FbsBitGc-PublicApi-0301 -GRAPHICS-BITGDI-FbsBitGc-PublicApi-0307 -GRAPHICS-BITGDI-FbsBitGc-PublicApi-0308 -GRAPHICS-BITGDI-FbsBitGc-PublicApi-0318 -GRAPHICS-BITGDI-FbsBitGc-PublicApi-0319 -GRAPHICS-BITGDI-FbsBitGc-PublicApi-0327 -GRAPHICS-BITGDI-FbsBitGc-PublicApi-0328 -GRAPHICS-BITGDI-FbsBitGc-PublicApi-0340 -GRAPHICS-BITGDI-FbsBitGc-PublicApi-0341 -GRAPHICS-BITGDI-FbsBitGc-PublicApi-0344 -GRAPHICS-BITGDI-FbsBitGc-PublicApi-0345 -GRAPHICS-BITGDI-FbsBitGc-PublicApi-0347 -GRAPHICS-BITGDI-FbsBitGc-PublicApi-0348 -GRAPHICS-BITGDI-FbsBitGc-PublicApi-0350 -GRAPHICS-BITGDI-FbsBitGc-PublicApi-0351 -GRAPHICS-BITGDI-FbsBitGc-PublicApi-0601 -GRAPHICS-BITGDI-FbsBitGc-PublicApi-0602 -GRAPHICS-BITGDI-FbsBitGc-PublicApi-0804 -GRAPHICS-BITGDI-FbsBitGc-PublicApi-0922 -GRAPHICS-BITGDI-FbsBitGc-PublicApi-0943 -GRAPHICS-BITGDI-FbsBitGc-PublicApi-1104 -GRAPHICS-BITGDI-FbsBitGc-PublicApi-2702 -GRAPHICS-BITGDI-FbsBitGc-PublicApi-2703 -GRAPHICS-BITGDI-FbsBitGc-PublicApi-2713 -GRAPHICS-BITGDI-FbsBitGc-PublicApi-2723 -GRAPHICS-BITGDI-FbsBitGc-PublicApi-2802 -GRAPHICS-BITGDI-FbsBitGc-PublicApi-3002 -GRAPHICS-BITGDI-FbsBitGc-PublicApi-3038 -GRAPHICS-BITGDI-FbsBitGc-PublicApi-3072 -GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0002 -GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0007 -GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0022 -GRAPHICS-BITGDI-FbsBitmapDevice-PublicApi-0026 -GRAPHICS-BitGDI-FbsDevice-PublicApi-0028 -GRAPHICS-FNTSTORE-FntStore-PublicApi-0112 -GRAPHICS-FNTSTORE-FntStore-PublicApi-0123 -GRAPHICS-FNTSTORE-FntStore-PublicApi-0133 diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/documentation/bitgdi/GraphicsBitgdiAPI.eap Binary file graphicsapitest/graphicssvs/documentation/bitgdi/GraphicsBitgdiAPI.eap has changed diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/documentation/fbserv/graphics-fbserv-api.eap Binary file graphicsapitest/graphicssvs/documentation/fbserv/graphics-fbserv-api.eap has changed diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/documentation/wserv/GraphicsWservApi.eap Binary file graphicsapitest/graphicssvs/documentation/wserv/GraphicsWservApi.eap has changed diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fbserv/group/T_FBServAPI.mmp --- a/graphicsapitest/graphicssvs/fbserv/group/T_FBServAPI.mmp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,79 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -TARGET t_fbservapi.exe -TARGETTYPE exe -UID 0x1000007A 0x20003720 -VENDORID 0x70000001 - -CAPABILITY SwEvent WriteUserData ReadUserData WriteDeviceData UserEnvironment - -SOURCEPATH ../src - -SOURCE ../../common/src/TestServerBase.cpp -SOURCE ../../common/src/UtilityClearPanicDlg.cpp -SOURCE ../../common/src/DataWrapperBase.cpp -SOURCE ../../common/src/T_GraphicsUtil.cpp - -SOURCE ../../gdi/src/T_DataBitmapDevice.cpp -SOURCE ../../gdi/src/T_DataFont.cpp -SOURCE ../../gdi/src/T_DataGraphicsDevice.cpp -SOURCE ../../gdi/src/T_DataGraphicsDeviceMap.cpp -SOURCE ../../gdi/src/T_DataMeasureTextInput.cpp -SOURCE ../../gdi/src/T_DataMeasureTextOutput.cpp -SOURCE ../../gdi/src/T_DataPalette.cpp -SOURCE ../../gdi/src/T_DataTypefaceStore.cpp -SOURCE ../../bitgdi/src/T_DataFbsBitmapDevice.cpp -SOURCE ../../bitgdi/src/T_DataFbsDevice.cpp -SOURCE ../../bitgdi/src/T_DataFbsScreenDevice.cpp -SOURCE ../../fntstore/src/T_DataAlgStyle.cpp - -SOURCE T_FBServAPIServer.cpp -SOURCE T_DataFbsSession.cpp -SOURCE T_DataFbsFont.cpp -SOURCE T_DataFbsBitmap.cpp -SOURCE T_DataFbsTypefaceStore.cpp -SOURCE T_DataBitmapUtil.cpp -SOURCE T_DataFbsColor256BitmapUtil.cpp - -USERINCLUDE ../inc -USERINCLUDE ../../group -USERINCLUDE ../../common/inc -USERINCLUDE ../../gdi/inc -USERINCLUDE ../../bitgdi/inc -USERINCLUDE ../../fntstore/inc - -MW_LAYER_SYSTEMINCLUDE_SYMBIAN -OS_LAYER_SYSTEMINCLUDE_SYMBIAN - -LIBRARY euser.lib -LIBRARY efsrv.lib -LIBRARY fbscli.lib -LIBRARY fntstr.lib -LIBRARY gdi.lib -LIBRARY ws32.lib -LIBRARY testexecuteutils.lib -LIBRARY testexecutelogclient.lib -LIBRARY bafl.lib -LIBRARY estor.lib -LIBRARY bitgdi.lib -LIBRARY iniparser.lib -LIBRARY apgrfx.lib -LIBRARY imageconversion.lib - -SMPSAFE diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fbserv/group/bld.inf --- a/graphicsapitest/graphicssvs/fbserv/group/bld.inf Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,85 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// - -PRJ_TESTEXPORTS -td_fbservapi.iby /epoc32/rom/include/td_fbservapi.iby -t_fbservapi.iby /epoc32/rom/include/t_fbservapi.iby -t_fbservapi_binaries.iby /epoc32/rom/include/t_fbservapi_binaries.iby -t_fbservapi_testdata.iby /epoc32/rom/include/t_fbservapi_testdata.iby - -// to pkg -../pkg/T_FBServAPI.pkg /epoc32/pkg/t_fbservapi.pkg -../pkg/tfbservapi.bat /epoc32/pkg/tfbservapi.bat - -../scripts/GRAPHICS-FBSERV-BitmapUtil-PublicApi.script /epoc32/pkg/graphics-fbserv-bitmaputil-publicapi.script -../scripts/GRAPHICS-FBSERV-FbsBitmap-PublicApi.script /epoc32/pkg/graphics-fbserv-fbsbitmap-publicapi.script -../scripts/GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.script /epoc32/pkg/graphics-fbserv-fbscolor256bitmaputil-publicapi.script -../scripts/GRAPHICS-FBSERV-FbsFont-PublicApi.script /epoc32/pkg/graphics-fbserv-fbsfont-publicapi.script -../scripts/GRAPHICS-FBSERV-FbsSession-PublicApi.script /epoc32/pkg/graphics-fbserv-fbssession-publicapi.script -../scripts/GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script /epoc32/pkg/graphics-fbserv-fbstypefacestore-publicapi.script -../scripts/GRAPHICS-FBSERV-PublicApi.script /epoc32/pkg/graphics-fbserv-publicapi.script - -../testdata/GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini /epoc32/pkg/graphics-fbserv-bitmaputil-publicapi.ini -../testdata/GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini /epoc32/pkg/graphics-fbserv-fbsbitmap-publicapi.ini -../testdata/GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.ini /epoc32/pkg/graphics-fbserv-fbscolor256bitmaputil-publicapi.ini -../testdata/GRAPHICS-FBSERV-FbsFont-PublicApi.ini /epoc32/pkg/graphics-fbserv-fbsfont-publicapi.ini -../testdata/GRAPHICS-FBSERV-FbsSession-PublicApi.ini /epoc32/pkg/graphics-fbserv-fbssession-publicapi.ini -../testdata/GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini /epoc32/pkg/graphics-fbserv-fbstypefacestore-publicapi.ini - -../testdata/testfontfb.gdr /epoc32/pkg/t_fbservapi/testfontfb.gdr -../testdata/empty_file.txt /epoc32/pkg/t_fbservapi/empty_file.txt -../testdata/test_bitmap.mbm /epoc32/pkg/t_fbservapi/test_bitmap.mbm -../testdata/test_bitmap_offset8.mbm /epoc32/pkg/t_fbservapi/test_bitmap_offset8.mbm -../testdata/scaniline_10bytes.txt /epoc32/pkg/t_fbservapi/scaniline_10bytes.txt -../testdata/test_bitmap_24bit_400x300.mbm /epoc32/pkg/t_fbservapi/test_bitmap_24bit_400x300.mbm -../testdata/test_bitmap_32x8.mbm /epoc32/pkg/t_fbservapi/test_bitmap_32x8.mbm -../testdata/test_bitmap_rom.rbm /epoc32/pkg/t_fbservapi/test_bitmap_rom.rbm - -// to z-drive -../scripts/setup-GRAPHICS-FBSERV-BitmapUtil-PublicApi.script z:/graphics/setup-graphics-fbserv-bitmaputil-publicapi.script -../scripts/setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script z:/graphics/setup-graphics-fbserv-fbsbitmap-publicapi.script -../scripts/setup-GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.script z:/graphics/setup-graphics-fbserv-fbscolor256bitmaputil-publicapi.script -../scripts/setup-GRAPHICS-FBSERV-FbsFont-PublicApi.script z:/graphics/setup-graphics-fbserv-fbsfont-publicapi.script -../scripts/setup-GRAPHICS-FBSERV-FbsSession-PublicApi.script z:/graphics/setup-graphics-fbserv-fbssession-publicapi.script -../scripts/setup-GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script z:/graphics/setup-graphics-fbserv-fbstypefacestore-publicapi.script -../scripts/setup-GRAPHICS-FBSERV-PublicApi.script z:/graphics/setup-graphics-fbserv-publicapi.script - -../scripts/GRAPHICS-FBSERV-BitmapUtil-PublicApi.script z:/graphics/graphics-fbserv-bitmaputil-publicapi.script -../scripts/GRAPHICS-FBSERV-FbsBitmap-PublicApi.script z:/graphics/graphics-fbserv-fbsbitmap-publicapi.script -../scripts/GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.script z:/graphics/graphics-fbserv-fbscolor256bitmaputil-publicapi.script -../scripts/GRAPHICS-FBSERV-FbsFont-PublicApi.script z:/graphics/graphics-fbserv-fbsfont-publicapi.script -../scripts/GRAPHICS-FBSERV-FbsSession-PublicApi.script z:/graphics/graphics-fbserv-fbssession-publicapi.script -../scripts/GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script z:/graphics/graphics-fbserv-fbstypefacestore-publicapi.script -../scripts/GRAPHICS-FBSERV-PublicApi.script z:/graphics/graphics-fbserv-publicapi.script - -../testdata/GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini z:/graphics/graphics-fbserv-bitmaputil-publicapi.ini -../testdata/GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini z:/graphics/graphics-fbserv-fbsbitmap-publicapi.ini -../testdata/GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.ini z:/graphics/graphics-fbserv-fbscolor256bitmaputil-publicapi.ini -../testdata/GRAPHICS-FBSERV-FbsFont-PublicApi.ini z:/graphics/graphics-fbserv-fbsfont-publicapi.ini -../testdata/GRAPHICS-FBSERV-FbsSession-PublicApi.ini z:/graphics/graphics-fbserv-fbssession-publicapi.ini -../testdata/GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini z:/graphics/graphics-fbserv-fbstypefacestore-publicapi.ini - -../testdata/testfontfb.gdr z:/graphics/t_fbservapi/testfontfb.gdr -../testdata/empty_file.txt z:/graphics/t_fbservapi/empty_file.txt -../testdata/test_bitmap.mbm z:/graphics/t_fbservapi/test_bitmap.mbm -../testdata/test_bitmap_offset8.mbm z:/graphics/t_fbservapi/test_bitmap_offset8.mbm -../testdata/scaniline_10bytes.txt z:/graphics/t_fbservapi/scaniline_10bytes.txt -../testdata/test_bitmap_24bit_400x300.mbm z:/graphics/t_fbservapi/test_bitmap_24bit_400x300.mbm -../testdata/test_bitmap_32x8.mbm z:/graphics/t_fbservapi/test_bitmap_32x8.mbm -../testdata/test_bitmap_rom.rbm z:/graphics/t_fbservapi/test_bitmap_rom.rbm - -PRJ_TESTMMPFILES -T_FBServAPI.mmp diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fbserv/group/t_fbservapi.iby --- a/graphicsapitest/graphicssvs/fbserv/group/t_fbservapi.iby Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// - -#if (!defined __T_FBSERVAPI_IBY__) -#define __T_FBSERVAPI_IBY__ - -#include -#include - -#endif diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fbserv/group/t_fbservapi_binaries.iby --- a/graphicsapitest/graphicssvs/fbserv/group/t_fbservapi_binaries.iby Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,28 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// - -#if (!defined __T_FBSERVAPI_BINARIES_IBY__) -#define __T_FBSERVAPI_BINARIES_IBY__ - -#include - -#if (!defined EKA2) -file=ABI_DIR\BUILD_DIR\t_fbservapi.exe system\libs\t_fbservapi.exe -#else -file=ABI_DIR\BUILD_DIR\t_fbservapi.exe system\bin\t_fbservapi.exe -#endif - -#endif diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fbserv/group/t_fbservapi_testdata.iby --- a/graphicsapitest/graphicssvs/fbserv/group/t_fbservapi_testdata.iby Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,52 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// - -#if (!defined __T_FBSERVAPI_TESTDATA_IBY__) -#define __T_FBSERVAPI_TESTDATA_IBY__ - -data=EPOCROOT##Epoc32\data\z\graphics\setup-GRAPHICS-FBSERV-BitmapUtil-PublicApi.script graphics\setup-GRAPHICS-FBSERV-BitmapUtil-PublicApi.script -data=EPOCROOT##Epoc32\data\z\graphics\setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script graphics\setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -data=EPOCROOT##Epoc32\data\z\graphics\setup-GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.script graphics\setup-GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.script -data=EPOCROOT##Epoc32\data\z\graphics\setup-GRAPHICS-FBSERV-FbsFont-PublicApi.script graphics\setup-GRAPHICS-FBSERV-FbsFont-PublicApi.script -data=EPOCROOT##Epoc32\data\z\graphics\setup-GRAPHICS-FBSERV-FbsSession-PublicApi.script graphics\setup-GRAPHICS-FBSERV-FbsSession-PublicApi.script -data=EPOCROOT##Epoc32\data\z\graphics\setup-GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script graphics\setup-GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script -data=EPOCROOT##Epoc32\data\z\graphics\setup-GRAPHICS-FBSERV-PublicApi.script graphics\setup-GRAPHICS-FBSERV-PublicApi.script - -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.script graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.script -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.script graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.script graphics\GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.script -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.script graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.script -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.script graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.script -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-FBSERV-PublicApi.script graphics\GRAPHICS-FBSERV-PublicApi.script - -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.ini graphics\GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.ini -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.ini graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.ini -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini - -data=EPOCROOT##Epoc32\data\z\graphics\t_fbservapi\empty_file.txt graphics\t_fbservapi\empty_file.txt -data=EPOCROOT##Epoc32\data\z\graphics\t_fbservapi\testfontfb.gdr graphics\t_fbservapi\testfontfb.gdr -data=EPOCROOT##Epoc32\data\z\graphics\t_fbservapi\test_bitmap.mbm graphics\t_fbservapi\test_bitmap.mbm -data=EPOCROOT##Epoc32\data\z\graphics\t_fbservapi\test_bitmap_offset8.mbm graphics\t_fbservapi\test_bitmap_offset8.mbm -data=EPOCROOT##Epoc32\data\z\graphics\t_fbservapi\scaniline_10bytes.txt graphics\t_fbservapi\scaniline_10bytes.txt -data=EPOCROOT##Epoc32\data\z\graphics\t_fbservapi\test_bitmap_24bit_400x300.mbm graphics\t_fbservapi\test_bitmap_24bit_400x300.mbm -data=EPOCROOT##Epoc32\data\z\graphics\t_fbservapi\test_bitmap_32x8.mbm graphics\t_fbservapi\test_bitmap_32x8.mbm -data=EPOCROOT##Epoc32\data\z\graphics\t_fbservapi\test_bitmap_rom.rbm graphics\t_fbservapi\test_bitmap_rom.rbm - -#endif diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fbserv/group/td_fbservapi.iby --- a/graphicsapitest/graphicssvs/fbserv/group/td_fbservapi.iby Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,22 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// - -#if (!defined __TD_FBSERVAPI_IBY__) -#define __TD_FBSERVAPI_IBY__ - -data=EPOCROOT##Epoc32\data\z\graphics\t_fbservapi\test_bitmap_rom.rbm graphics\t_fbservapi\test_bitmap_rom.rbm - -#endif diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fbserv/inc/T_DataBitmapUtil.h --- a/graphicsapitest/graphicssvs/fbserv/inc/T_DataBitmapUtil.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,70 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataBitmapUtil -*/ - -#if (!defined __T_DATA_BITMAP_UTIL_H__) -#define __T_DATA_BITMAP_UTIL_H__ - -// User Includes -#include "DataWrapperBase.h" - -// EPOC includes -#include -#include - -class CT_DataBitmapUtil : public CDataWrapperBase - { -public: - CT_DataBitmapUtil(); - ~CT_DataBitmapUtil(); - - static CT_DataBitmapUtil* NewL(); - - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - virtual TAny* GetObject(); - virtual void SetObjectL(TAny* aObject); - virtual void DisownObjectL(); - void DestroyData(); - -private: - void ConstructL(); - - static CT_DataBitmapUtil* GetBitmapUtilDataObjectFromParameterL(CDataWrapper& aDataWrapper, const TDesC& aParameterName, const TDesC& aSection); - - void DoCmdNewL(const TDesC& aSection); - void DoCmdBeginL(const TDesC& aSection); - void DoCmdEnd(); - void DoCmdSetPixelL(const TDesC& aSection); - void DoCmdGetPixel(const TDesC& aSection); - void DoCmdSetPos(const TDesC& aSection); - void DoCmdDecXPos(); - void DoCmdDecYPos(); - void DoCmdIncXPos(); - void DoCmdIncYPos(); - -private: - /** TBitmapUtil class instance that is tested */ - TBitmapUtil* iBitmapUtil; - }; - -#endif /* __T_DATA_BITMAP_UTIL_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fbserv/inc/T_DataFbsBitmap.h --- a/graphicsapitest/graphicssvs/fbserv/inc/T_DataFbsBitmap.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,135 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataFbsBitmap -*/ - -#if (!defined __T_DATA_FBS_BITMAP_H__) -#define __T_DATA_FBS_BITMAP_H__ - -// User Includes -#include "DataWrapperBase.h" - -// EPOC includes -#include -#include -#include -#include - -class CT_DataFbsBitmap : public CDataWrapperBase - { -public: - static CT_DataFbsBitmap* NewL(); - ~CT_DataFbsBitmap(); - - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - - virtual TAny* GetObject(); - virtual void SetObjectL(TAny* aAny); - virtual void DisownObjectL(); - -protected: - CT_DataFbsBitmap(); - void ConstructL(); - - virtual CFbsBitmap* GetFbsBitmap() const; - - void RunL(CActive* aActive, TInt aIndex); - void DoCancel(CActive* aActive, TInt aIndex); - -private: - void DestroyData(); - void DoCmdNewL(); - void DoCmdDestructor(); - void DoCmdCompress(const TDesC& aSection); - void DoCmdCompressInBackground(const TDesC& aSection, const TInt aAsyncErrorIndex); - void DoCmdCreate(const TDesC& aSection); - void DoCmdCreateHardwareBitmap(const TDesC& aSection); - void DoCmdDataAddress(const TDesC& aSection); - void DoCmdDataStride(const TDesC& aSection); - void DoCmdDisplayMode(const TDesC& aSection); - void DoCmdDuplicateL(const TDesC& aSection); - void DoCmdExternalizeL(const TDesC& aSection); - void DoCmdExternalizeRectangleL(const TDesC& aSection); - void DoCmdGetPaletteL(const TDesC& aSection); - void DoCmdGetPixel(const TDesC& aSection); - void DoCmdGetScanLineL(const TDesC& aSection); - void DoCmdGetVerticalScanLineL(const TDesC& aSection); - void DoCmdHandle(const TDesC& aSection); - void DoCmdHardwareBitmapHandle(const TDesC& aSection); - void DoCmdHeader(); - void DoCmdHorizontalPixelsToTwips(const TDesC& aSection); - void DoCmdHorizontalTwipsToPixels(const TDesC& aSection); - void DoCmdInitialDisplayMode(const TDesC& aSection); - void DoCmdInternalizeL(const TDesC& aSection); - void DoCmdIsCompressedInRAM(const TDesC& aSection); - void DoCmdIsFileInRom(const TDesC& aSection); - void DoCmdIsLargeBitmap(const TDesC& aSection); - void DoCmdIsMonochrome(const TDesC& aSection); - void DoCmdIsRomBitmap(const TDesC& aSection); - void DoCmdLoadL(const TDesC& aSection); - void DoCmdLoadAndCompressL(const TDesC& aSection); - void DoCmdLockHeap(const TDesC& aSection); - void DoCmdLockHeapLC(const TDesC& aSection); - void DoCmdPaletteAttributes(const TDesC& aSection); - void DoCmdReset(); - void DoCmdResize(const TDesC& aSection); - void DoCmdSave(const TDesC& aSection); - void DoCmdScanLineLength(const TDesC& aSection); - void DoCmdSetDisplayMode(const TDesC& aSection); - void DoCmdSetPaletteL(const TDesC& aSection); - void DoCmdSetRomBitmapL(const TDesC& aSection); - void DoCmdSetScanLineL(const TDesC& aSection); - void DoCmdSetSizeInTwipsL(const TDesC& aSection); - void DoCmdSizeInPixels(const TDesC& aSection); - void DoCmdSizeInTwips(const TDesC& aSection); - void DoCmdStoreL(const TDesC& aSection); - void DoCmdSwapWidthAndHeight(); - void DoCmdUnlockHeapL(const TDesC& aSection); - void DoCmdVerticalPixelsToTwips(const TDesC& aSection); - void DoCmdVerticalTwipsToPixels(const TDesC& aSection); - - // MTPActiveCallback implementation - void RunCompressInBackground(const TInt aIndex); - void DoCancelCompressInBackground(const TInt aIndex); - - // Helpers - void ExternalizeImplL(const TDesC& aSection, const TRect& aRect, TBool aUseRect); - void LoadOrLoadAndCompressL(const TDesC& aSection, TBool aCompress); - inline TDisplayMode GetDisplayMode() const; - -private: - /** CFbsBitmap class instance that is tested */ - CFbsBitmap* iFbsBitmap; - TDisplayMode iDisplayMode; - - /** Pop when unlocking */ - TBool iPopWhenUnlocking; - - TBool iCompressFailed; - - /** Active object for CompressInBackground async operation */ - CActiveCallback* iActiveCompressInBackground; - }; - -#include "T_DataFbsBitmap.inl" - -#endif /* __T_DATA_FBS_BITMAP_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fbserv/inc/T_DataFbsBitmap.inl --- a/graphicsapitest/graphicssvs/fbserv/inc/T_DataFbsBitmap.inl Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,28 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataFbsBitmap inline functions -*/ - -TDisplayMode CT_DataFbsBitmap::GetDisplayMode() const - { - return iDisplayMode; - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fbserv/inc/T_DataFbsColor256BitmapUtil.h --- a/graphicsapitest/graphicssvs/fbserv/inc/T_DataFbsColor256BitmapUtil.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,62 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataFbsColor256BitmapUtil -*/ - -#if (!defined __T_DATA_FBS_COLOR256_BITMAP_UTIL_H__) -#define __T_DATA_FBS_COLOR256_BITMAP_UTIL_H__ - -// User Includes -#include "DataWrapperBase.h" -// EPOC includes -#include -#include -#include "DataWrapperBase.h" - -class CT_DataFbsColor256BitmapUtil : public CDataWrapperBase - { -public: - - static CT_DataFbsColor256BitmapUtil* NewL(); - - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - - ~CT_DataFbsColor256BitmapUtil(); - virtual TAny* GetObject(); - -protected: - CT_DataFbsColor256BitmapUtil(); - void ConstructL(); - -private: - void DestroyData(); - void DoCmdNewL(const TDesC& aSection); - void DoCmdCopyBitmapL(const TDesC& aSection); - - TBool ReadDither(CDataWrapper& aDataWrapper, const TDesC& aSection, CFbsColor256BitmapUtil::TDither& aDither); - -private: - /** CFbsColor256BitmapUtil class instance to work with*/ - CFbsColor256BitmapUtil* iFbsColor256BitmapUtil; - }; - -#endif /* __T_DATA_FBS_COLOR256_BITMAP_UTIL_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fbserv/inc/T_DataFbsFont.h --- a/graphicsapitest/graphicssvs/fbserv/inc/T_DataFbsFont.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,67 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataFbsFont -*/ - -#if (!defined __T_DATA_FBS_FONT_H__) -#define __T_DATA_FBS_FONT_H__ - -// User Includes -#include "T_DataFont.h" - -// EPOC includes -#include -#include - - -class CT_DataFbsFont : public CT_DataFont - { -public: - static CT_DataFbsFont* NewL(); - - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - - virtual void SetObjectL(TAny* aObject); - virtual TAny* GetObject(); - virtual void DisownObjectL(); - -protected: - CT_DataFbsFont(); - - virtual CFont* GetFont() const; - -private: - void DoCmdGetFontMetrics(const TDesC& aSection); - void DoCmdTextWidthInPixelsWithCharWidth(const TDesC& aSection); - void DoCmdHandle(); - void DoCmdCharacterMetrics(const TDesC& aSection); - void DoCmdRawTextWidthInPixels(const TDesC& aSection); - void DoCmdGetFaceAttrib(const TDesC& aSection); - void DoCmdIsOpenFont(const TDesC& aSection); - void DoCmdHasCharacter(const TDesC& aSection); - -private: - /** CFbsFont class instance that is tested, not owned by the data-object */ - CFbsFont* iFbsFont; - }; - -#endif /* __T_DATA_FBS_FONT_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fbserv/inc/T_DataFbsSession.h --- a/graphicsapitest/graphicssvs/fbserv/inc/T_DataFbsSession.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,83 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataFbsSession -*/ - -#if (!defined __T_DATA_FBS_SESSION_H__) -#define __T_DATA_FBS_SESSION_H__ - -// User Includes -#include "DataWrapperBase.h" -// EPOC includes -#include -#include - -class CT_DataFbsSession : public CDataWrapperBase - { -public: - static CT_DataFbsSession* NewL(); - - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - - - ~CT_DataFbsSession(); - - virtual TAny* GetObject(); - -protected: - CT_DataFbsSession(); - void ConstructL(); - -private: - inline void DoCmdConstructor(); - inline void DoCmdConnect(const TDesC& aSection); - inline void DoCmdDisconnect(); - inline void DoCmdGetSession(const TDesC& aSection); - inline void DoCmdCallBack(const TDesC& aSection); - inline void DoCmdSetCallBack(); - inline void DoCmdResetCallBack(); - inline void DoCmdResourceCount(const TDesC& aSection); - inline void DoCmdSendCommandL(const TDesC& aSection); - inline void DoCmdVersion(const TDesC& aSection); - inline void DoCmdHeapBase(); - inline void DoCmdSessionHandle(); - - static TInt CallBackFunction(TAny* aPtr); - TInt CallBackFunction(); - - TBool GetFbsMessage(const TDesC& aSection, TInt& aMessage); - -private: - RFs iFsUnconnected; - - RFbsSession* iSession; - - /** vaiable that temporarily stores value of server resource count that is set - * by iSession->ResourceCount() - */ - TInt iResourceCount; - - /* used to check if the callback function was called*/ - TBool iCallBackCalled; - }; - -#endif /* __T_DATA_FBS_SESSION_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fbserv/inc/T_DataFbsTypefaceStore.h --- a/graphicsapitest/graphicssvs/fbserv/inc/T_DataFbsTypefaceStore.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,79 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataFbsTypefaceStore -*/ - -#if (!defined __T_DATA_FBS_TYPEFACE_STORE_H__) -#define __T_DATA_FBS_TYPEFACE_STORE_H__ - -// User Includes -#include "T_DataTypefaceStore.h" - -// EPOC includes -#include -#include - -class CT_DataFbsTypefaceStore : public CT_DataTypefaceStore - { -public: - static CT_DataFbsTypefaceStore* NewL(); - - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - - ~CT_DataFbsTypefaceStore(); - - virtual TAny* GetObject(); - -protected: - CT_DataFbsTypefaceStore(); - void ConstructL(); - - // CT_DataTypefaceStore implementation - virtual CTypefaceStore* GetTypefaceStore() const; - -private: - void DestroyData(); - void DoCmdNewL(const TDesC& aSection); - void DoCmdGetNearestFontInPixelsL(const TDesC& aSection); - void DoCmdGetNearestFontToDesignHeightInPixelsL(const TDesC& aSection); - void DoCmdGetNearestFontToMaxHeightInPixelsL(const TDesC& aSection); - void DoCmdAddFile(const TDesC& aSection); - void DoCmdInstallFile(const TDesC& aSection); - void DoCmdRemoveFile(const TDesC& aSection); - void DoCmdGetFontByIdL(const TDesC& aSection); - void DoCmdFontHeightInPixels(const TDesC& aSection); - void DoCmdDefaultBitmapType(const TDesC& aSection); - void DoCmdSetDefaultBitmapType(const TDesC& aSection); - void DoCmdSetFontNameAlias(const TDesC& aSection); - void DoCmdSetDefaultLanguageForMetrics(const TDesC& aSection); - void DoCmdRemoveFontFileLocks(const TDesC& aSection); - void DoCmdSetSystemDefaultTypefaceName(const TDesC& aSection); - -private: - /** CFbsTypefaceStore class instance to work with*/ - CFbsTypefaceStore* iFbsTypefaceStore; - - /** temporarily stored value of typeface file id. Set by AddFile() and InstallFile() for later use in RemoveFile() */ - TInt iLastTypefaceFileId; - }; - -#endif /* __T_DATA_FBS_TYPEFACE_STORE_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fbserv/inc/T_FBServAPIServer.h --- a/graphicsapitest/graphicssvs/fbserv/inc/T_FBServAPIServer.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,67 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_FBServAPIServer -*/ - -#if (!defined __T_FBSERV_API_SERVER_H__) -#define __T_FBSERV_API_SERVER_H__ - -// User Include -#include "T_DataFbsSession.h" -#include "T_DataFbsFont.h" -#include "T_DataFbsBitmap.h" -#include "T_DataBitmapUtil.h" -#include "T_DataFbsTypefaceStore.h" -#include "T_DataFbsColor256BitmapUtil.h" - -#include "T_DataPalette.h" -#include "T_DataFbsBitmapDevice.h" -#include "T_DataFbsScreenDevice.h" -#include "T_DataAlgStyle.h" -#include "T_DataMeasureTextInput.h" -#include "T_DataMeasureTextOutput.h" - -#include "TestServerBase.h" - -class CT_FBServAPIServer : public CTestServerBase - { -private: - class CT_FBServAPIBlock : public CTestBlockController - { - public: - inline CT_FBServAPIBlock(); - inline ~CT_FBServAPIBlock(); - - inline CDataWrapper* CreateDataL( const TDesC& aData ); - }; -public: - inline CT_FBServAPIServer(); - inline ~CT_FBServAPIServer(); - - static CT_FBServAPIServer* NewL(); - - inline CTestBlockController* CreateTestBlock(); - }; - -#include "T_FBServAPIServer.inl" - -#endif /* __T_FBSERV_API_SERVER_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fbserv/inc/T_FBServAPIServer.inl --- a/graphicsapitest/graphicssvs/fbserv/inc/T_FBServAPIServer.inl Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,112 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_FBServAPIServer inline functions -*/ - - -_LIT(KRFbsSessionData, "RFbsSession"); -_LIT(KCFbsFontData, "CFbsFont"); -_LIT(KCFbsBitmapData, "CFbsBitmap"); -_LIT(KTBitmapUtilData, "TBitmapUtil"); -_LIT(KCFbsTypefaceStoreData, "CFbsTypefaceStore"); -_LIT(KCFbsColor256BitmapUtil, "CFbsColor256BitmapUtil"); -_LIT(KCPalette, "CPalette"); -_LIT(KCFbsBitmapDevice, "CFbsBitmapDevice"); -_LIT(KCFbsScreenDevice, "CFbsScreenDevice"); -_LIT(KTAlgStyle, "TAlgStyle"); -_LIT(KTMeasureTextInput, "TMeasureTextInput"); -_LIT(KTMeasureTextOutput, "TMeasureTextOutput"); - -inline CT_FBServAPIServer::CT_FBServAPIBlock::CT_FBServAPIBlock() - { - } - -inline CT_FBServAPIServer::CT_FBServAPIBlock::~CT_FBServAPIBlock() - { - } - -inline CDataWrapper* CT_FBServAPIServer::CT_FBServAPIBlock::CreateDataL( const TDesC& aData ) - { - CDataWrapper* wrapper = NULL; - if (aData == KRFbsSessionData()) - { - wrapper = CT_DataFbsSession::NewL(); - } - else if (aData == KCFbsFontData()) - { - wrapper = CT_DataFbsFont::NewL(); - } - else if (aData == KCFbsBitmapData()) - { - wrapper = CT_DataFbsBitmap::NewL(); - } - else if (aData == KTBitmapUtilData()) - { - wrapper = CT_DataBitmapUtil::NewL(); - } - else if (aData == KCFbsTypefaceStoreData()) - { - wrapper = CT_DataFbsTypefaceStore::NewL(); - } - else if (aData == KCFbsColor256BitmapUtil()) - { - wrapper = CT_DataFbsColor256BitmapUtil::NewL(); - } - else if (aData == KCPalette()) - { - wrapper = CT_DataPalette::NewL(); - } - else if ( aData==KCFbsBitmapDevice() ) - { - wrapper = CT_DataFbsBitmapDevice::NewL(); - } - else if ( aData==KCFbsScreenDevice() ) - { - wrapper = CT_DataFbsScreenDevice::NewL(); - } - else if ( aData==KTAlgStyle() ) - { - wrapper = CT_DataAlgStyle::NewL(); - } - else if ( aData==KTMeasureTextInput() ) - { - wrapper = CT_DataMeasureTextInput::NewL(); - } - else if ( aData==KTMeasureTextOutput() ) - { - wrapper = CT_DataMeasureTextOutput::NewL(); - } - return wrapper; - } - -inline CT_FBServAPIServer::CT_FBServAPIServer() - { - } - -inline CT_FBServAPIServer::~CT_FBServAPIServer() - { - } - -inline CTestBlockController* CT_FBServAPIServer::CreateTestBlock() - { - return new CT_FBServAPIBlock(); - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fbserv/pkg/T_FBServAPI.pkg --- a/graphicsapitest/graphicssvs/fbserv/pkg/T_FBServAPI.pkg Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,72 +0,0 @@ -; -; Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of "Eclipse Public License v1.0" -; which accompanies this distribution, and is available -; at the URL "http://www.eclipse.org/legal/epl-v10.html". -; -; Initial Contributors: -; Nokia Corporation - initial contribution. -; -; Contributors: -; -; Description: -; -; -; Install file for T_FBServAPI.exe -; - -; Languages - -&EN - -; Installation header -; UID is the app's UID -#{"T_FBServAPI"},(0x20003720),1,0,0 - -;%{"Vendor-EN"} -;:"Symbian" - -; Localised Vendor name -%{"Nokia"} - -; Unique Vendor name -:"Nokia" - - -"T_FBServAPI.exe"-"!:\sys\bin\T_FBServAPI.exe" -"t_graphics.ini"-"!:\graphics\t_graphics.ini" -"tfbservapi.bat"-"!:\graphics\tfbservapi.bat" -"t_graphics.tcs"-"!:\graphics\t_graphics.tcs" -"t_graphics_panic.tcs"-"!:\graphics\t_graphics_panic.tcs" - -"GRAPHICS-FBSERV-BitmapUtil-PublicApi.script"-"!:\graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.script" -"GRAPHICS-FBSERV-FbsBitmap-PublicApi.script"-"!:\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.script" -"GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.script"-"!:\graphics\GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.script" -"GRAPHICS-FBSERV-FbsFont-PublicApi.script"-"!:\graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.script" -"GRAPHICS-FBSERV-FbsSession-PublicApi.script"-"!:\graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.script" -"GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script"-"!:\graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script" -"GRAPHICS-FBSERV-PublicApi.script"-"!:\graphics\GRAPHICS-FBSERV-PublicApi.script" - -"GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini"-"!:\graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini" -"GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini"-"!:\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini" -"GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.ini"-"!:\graphics\GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.ini" -"GRAPHICS-FBSERV-FbsFont-PublicApi.ini"-"!:\graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini" -"GRAPHICS-FBSERV-FbsSession-PublicApi.ini"-"!:\graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.ini" -"GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini"-"!:\graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini" - -"t_fbservapi\empty_file.txt"-"!:\graphics\t_fbservapi\empty_file.txt" -"t_fbservapi\testfontfb.gdr"-"!:\graphics\t_fbservapi\testfontfb.gdr" -"t_fbservapi\test_bitmap.mbm"-"!:\graphics\t_fbservapi\test_bitmap.mbm" -"t_fbservapi\test_bitmap_offset8.mbm"-"!:\graphics\t_fbservapi\test_bitmap_offset8.mbm" -"t_fbservapi\scaniline_10bytes.txt"-"!:\graphics\t_fbservapi\scaniline_10bytes.txt" -"t_fbservapi\test_bitmap_24bit_400x300.mbm"-"!:\graphics\t_fbservapi\test_bitmap_24bit_400x300.mbm" -"t_fbservapi\test_bitmap_32x8.mbm"-"!:\graphics\t_fbservapi\test_bitmap_32x8.mbm" -"t_fbservapi\test_bitmap_rom.rbm"-"!:\graphics\t_fbservapi\test_bitmap_rom.rbm" - - -; Required files -; None - -; Component .sis files -; None diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fbserv/pkg/tfbservapi.bat --- a/graphicsapitest/graphicssvs/fbserv/pkg/tfbservapi.bat Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,17 +0,0 @@ -@rem -@rem Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -@rem All rights reserved. -@rem This component and the accompanying materials are made available -@rem under the terms of "Eclipse Public License v1.0" -@rem which accompanies this distribution, and is available -@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". -@rem -@rem Initial Contributors: -@rem Nokia Corporation - initial contribution. -@rem -@rem Contributors: -@rem -@rem Description: -@rem - -testexecute \graphics\graphics-fbserv-publicapi diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fbserv/scripts/GRAPHICS-FBSERV-BitmapUtil-PublicApi.script --- a/graphicsapitest/graphicssvs/fbserv/scripts/GRAPHICS-FBSERV-BitmapUtil-PublicApi.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1002 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// -//! @file -//! @SYMTestSuiteName GRAPHICS-FBSERV-BitmapUtil-PublicApi -//! @SYMScriptTestEnvironment This test script requires a basic ROM. - -///////////////////////////////////////////////////////////////////// -// GRAPHICS-FBSERV-BitmapUtil-PublicAPI.script -// -// Tests all public elements of the TBitmapUtil class -// as a means of confidence that the APIs work as expected. -// -// The purpose is to provide a regression test suite of PublishedAll APIs for TBitmapUtil. -// Negative testing is performed to confirm that correct errors are returned when incorrect parameters are given. -// The tests are fully automated. -///////////////////////////////////////////////////////////////////// - -LOAD_SUITE T_FBServAPI - - -START_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0001 -//! @SYMTestCaseID GRAPHICS-FBSERV-BitmapUtil-PublicApi-0001 -//! @SYMAPI TBitmapUtil -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 24/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-BitmapUtil-PublicApi.script -//! @SYMTestCaseDesc TBitmapUtil::TBitmapUtil() simple test -//! Uses API elements: TBitmapUtil() -//! @SYMTestActions 1. Create a 100x100 bitmap -//! 2. Call TBitmapUtil::TBitmapUtil() method passing the bitmap as a parameter -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The TBitmapUtil() constructor doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - CREATE_OBJECT TBitmapUtil TBitmapUtil1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-BitmapUtil-PublicApi-0001-001-Create_command04 - COMMAND TBitmapUtil1 new GRAPHICS-FBSERV-BitmapUtil-PublicApi-0001-001-New_command06 - COMMAND TBitmapUtil1 ~ - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0001 - - -START_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0002 -//! @SYMTestCaseID GRAPHICS-FBSERV-BitmapUtil-PublicApi-0002 -//! @SYMAPI TBitmapUtil -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 24/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-BitmapUtil-PublicApi.script -//! @SYMTestCaseDesc TBitmapUtil Begin() (Begin(const TPoint \&aPosition) version) and End() test -//! Uses API elements: TBitmapUtil(), Begin(), End() -//! @SYMTestActions 1. Create a 100x100 bitmap -//! 2. Call TBitmapUtil::TBitmapUtil() method passing the bitmap as a parameter -//! 3. Call Begin() method passing a point (0, 0) as a parameter -//! 4. Call End() method -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The functions Begin() and End() don't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - CREATE_OBJECT TBitmapUtil TBitmapUtil1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-BitmapUtil-PublicApi-0002-001-Create_command04 - COMMAND TBitmapUtil1 new GRAPHICS-FBSERV-BitmapUtil-PublicApi-0002-001-New_command06 - COMMAND TBitmapUtil1 Begin GRAPHICS-FBSERV-BitmapUtil-PublicApi-0002-001-Begin_command07 - COMMAND TBitmapUtil1 End - COMMAND TBitmapUtil1 ~ - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0002 - - -START_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0003 -//! @SYMTestCaseID GRAPHICS-FBSERV-BitmapUtil-PublicApi-0003 -//! @SYMAPI TBitmapUtil -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 24/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-BitmapUtil-PublicApi.script -//! @SYMTestCaseDesc TBitmapUtil Begin() (Begin(const TPoint \&aPosition, const TBitmapUtil \&aUtil) version) and End() test with lock share -//! Uses API elements: TBitmapUtil(), Begin(), End() -//! @SYMTestActions 1. Create a 100x100 bitmap -//! 2. Call TBitmapUtil::TBitmapUtil() method passing the bitmap as a parameter -//! 3. Create another bitmap and a TBitmapUtil instance for it -//! 4. Call Begin() method of the first passing a point (0, 0) as a parameter -//! 5. Call Begin() method of the second TBitmapUtil passing a point (0, 0) and the first TBitmapUtil as parameters -//! 6. Call End() methods of each of TBitmapUtils -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The functions Begin() and End() don't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - CREATE_OBJECT TBitmapUtil TBitmapUtil1 - CREATE_OBJECT CFbsBitmap CFbsBitmap2 - CREATE_OBJECT TBitmapUtil TBitmapUtil2 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-BitmapUtil-PublicApi-0003-001-Create_command04 - COMMAND TBitmapUtil1 new GRAPHICS-FBSERV-BitmapUtil-PublicApi-0003-001-New_command06 - COMMAND CFbsBitmap2 new - COMMAND CFbsBitmap2 Create GRAPHICS-FBSERV-BitmapUtil-PublicApi-0003-001-Create_command09 - COMMAND TBitmapUtil1 Begin GRAPHICS-FBSERV-BitmapUtil-PublicApi-0003-001-Begin_command11 - COMMAND TBitmapUtil2 new GRAPHICS-FBSERV-BitmapUtil-PublicApi-0003-001-New_command13 - COMMAND TBitmapUtil2 Begin GRAPHICS-FBSERV-BitmapUtil-PublicApi-0003-001-Begin_command14 - COMMAND TBitmapUtil2 End - COMMAND TBitmapUtil1 End - COMMAND TBitmapUtil1 ~ - COMMAND TBitmapUtil2 ~ - COMMAND CFbsBitmap1 ~ - COMMAND CFbsBitmap2 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0003 - - -START_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0004 -//! @SYMTestCaseID GRAPHICS-FBSERV-BitmapUtil-PublicApi-0004 -//! @SYMAPI TBitmapUtil -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 24/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-BitmapUtil-PublicApi.script -//! @SYMTestCaseDesc TBitmapUtil::GetPixel() and TBitmapUtil::SetPixel() (SetPixel(TUint32 aValue) version) test -//! Uses API elements: TBitmapUtil(), Begin(), End(), GetPixel(), SetPixel() -//! @SYMTestActions 1. Create a 100x100 bitmap -//! 2. Call TBitmapUtil::TBitmapUtil() method passing the bitmap as a parameter -//! 3. Call Begin() method passing a point (0, 0) as a parameter -//! 4. Call SetPixel(128) -//! 5. Call GetPixel() -//! 6. Call End() method -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The SetPixel() and GetPixel() function calls don't cause panic and GetPixel() returns 128 (same color as used in SetPixel()) -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - CREATE_OBJECT TBitmapUtil TBitmapUtil1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-BitmapUtil-PublicApi-0004-001-Create_command04 - COMMAND TBitmapUtil1 new GRAPHICS-FBSERV-BitmapUtil-PublicApi-0004-001-New_command06 - COMMAND TBitmapUtil1 Begin GRAPHICS-FBSERV-BitmapUtil-PublicApi-0004-001-Begin_command07 - COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0004-001-SetPixel_command08 - COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0004-001-GetPixel_command09 - COMMAND TBitmapUtil1 End - COMMAND TBitmapUtil1 ~ - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0004 - - -START_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0005 -//! @SYMTestCaseID GRAPHICS-FBSERV-BitmapUtil-PublicApi-0005 -//! @SYMAPI TBitmapUtil -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 24/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-BitmapUtil-PublicApi.script -//! @SYMTestCaseDesc TBitmapUtil::SetPixel() (SetPixel(const TBitmapUtil \&aSource) version) from another bitmap test -//! Uses API elements: TBitmapUtil(), Begin(), End(), GetPixel(), SetPixel() -//! @SYMTestActions 1. Create a 100x100 bitmap -//! 2. Call TBitmapUtil::TBitmapUtil() method passing the bitmap as a parameter -//! 5. Call Begin() method of the TBitmapUtil passing a point (23, 45) -//! 6. Call the TBitmapUtil's SetPixel() passing 128 -//! 9. Call End() methods of the TBitmapUtils -//! 4. Create another bitmap and a TBitmapUtil instance for it -//! 3. Call Begin() method of the second TBitmapUtil passing a point (0, 0) as a parameter -//! 7. Call second TBitmapUtil's SetPixel() and the first TBitmapUtil as a parameter -//! 8. Call second TBitmapUtil's GetPixel() and check that the GetPixel() returns 128 (same color as used in SetPixel()) -//! 9. Call End() methods of second TBitmapUtils -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function SetPixel() call doesn't cause panic and GetPixel() returns 128 (same color as used in SetPixel()) -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - CREATE_OBJECT TBitmapUtil TBitmapUtil1 - CREATE_OBJECT CFbsBitmap CFbsBitmap2 - CREATE_OBJECT TBitmapUtil TBitmapUtil2 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-BitmapUtil-PublicApi-0005-001-Create_command04 - COMMAND TBitmapUtil1 new GRAPHICS-FBSERV-BitmapUtil-PublicApi-0005-001-New_command06 - COMMAND TBitmapUtil1 Begin GRAPHICS-FBSERV-BitmapUtil-PublicApi-0005-001-Begin_command07 - COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0005-001-SetPixel_command08 - COMMAND TBitmapUtil1 End - COMMAND CFbsBitmap2 new - COMMAND CFbsBitmap2 Create GRAPHICS-FBSERV-BitmapUtil-PublicApi-0005-001-Create_command12 - COMMAND TBitmapUtil2 new GRAPHICS-FBSERV-BitmapUtil-PublicApi-0005-001-New_command14 - COMMAND TBitmapUtil2 Begin GRAPHICS-FBSERV-BitmapUtil-PublicApi-0005-001-Begin_command15 - COMMAND TBitmapUtil2 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0005-001-SetPixel_command16 - COMMAND TBitmapUtil2 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0005-001-GetPixel_command17 - COMMAND TBitmapUtil2 End - COMMAND TBitmapUtil1 ~ - COMMAND TBitmapUtil2 ~ - COMMAND CFbsBitmap1 ~ - COMMAND CFbsBitmap2 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0005 - - -START_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006 -//! @SYMTestCaseID GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006 -//! @SYMAPI TBitmapUtil -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 24/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-BitmapUtil-PublicApi.script -//! @SYMTestCaseDesc TBitmapUtil::SetPos() test -//! Uses API elements: TBitmapUtil(), Begin(), End(), GetPixel(), SetPixel(), SetPos() -//! @SYMTestActions 1. Create a 2x2 bitmap -//! 2. Call TBitmapUtil::TBitmapUtil() method passing the bitmap as a parameter -//! 3. Call Begin() method passing a point (0, 0) as a parameter -//! 4. Pass all of bitmap's pixels using SetPos() and calling SetPixel() to assign them different colors from 0 to 3 -//! 5. Pass all of bitmap's pixels using SetPos() and calling GetPixel() to check that the have colors from 0 to 3 -//! 6. Call End() method -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults See actions -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - CREATE_OBJECT TBitmapUtil TBitmapUtil1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006-001-Create_command04 - COMMAND TBitmapUtil1 new GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006-001-New_command06 - COMMAND TBitmapUtil1 Begin GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006-001-Begin_command07 - COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006-001-SetPixel_command08 - COMMAND TBitmapUtil1 SetPos GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006-001-SetPos_command09 - COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006-001-SetPixel_command10 - COMMAND TBitmapUtil1 SetPos GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006-001-SetPos_command11 - COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006-001-SetPixel_command12 - COMMAND TBitmapUtil1 SetPos GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006-001-SetPos_command13 - COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006-001-SetPixel_command14 - COMMAND TBitmapUtil1 SetPos GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006-001-SetPos_command15 - COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006-001-GetPixel_command16 - COMMAND TBitmapUtil1 SetPos GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006-001-SetPos_command17 - COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006-001-GetPixel_command18 - COMMAND TBitmapUtil1 SetPos GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006-001-SetPos_command19 - COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006-001-GetPixel_command20 - COMMAND TBitmapUtil1 SetPos GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006-001-SetPos_command21 - COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006-001-GetPixel_command22 - COMMAND TBitmapUtil1 End - COMMAND TBitmapUtil1 ~ - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006 - - -START_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0007 -//! @SYMTestCaseID GRAPHICS-FBSERV-BitmapUtil-PublicApi-0007 -//! @SYMAPI TBitmapUtil -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 24/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-BitmapUtil-PublicApi.script -//! @SYMTestCaseDesc DecXPos(), DecYPos(), IncXPos(), IncYPos() test -//! Uses API elements: TBitmapUtil(), Begin(), End(), GetPixel(), SetPixel(), SetPos(), DecXPos(), DecYPos(), IncXPos(), IncYPos() -//! @SYMTestActions 1. Create a 100x100 bitmap -//! 2. Call TBitmapUtil::TBitmapUtil() method passing the bitmap as a parameter -//! 3. Call Begin() method passing a point (10, 10) as a parameter -//! 4. Call DecXPos() and set pixel's color to 1 -//! 5. Call DecYPos() and set pixel's color to 2 -//! 6. Call IncXPos() and set pixel's color to 3 -//! 7. Call IncYPos() and set pixel's color to 4 -//! 8. Use SetPos() and GetPixel() methods to verify that dots (9, 10), (9, 9), (10, 9), (10, 10) have -//! the following colors 1, 2, 3, 4 correspondingly -//! 9. Call End() method -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The operations don't cause panic and colors are assigned correctly -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - CREATE_OBJECT TBitmapUtil TBitmapUtil1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-BitmapUtil-PublicApi-0007-001-Create_command04 - COMMAND TBitmapUtil1 new GRAPHICS-FBSERV-BitmapUtil-PublicApi-0007-001-New_command06 - COMMAND TBitmapUtil1 Begin GRAPHICS-FBSERV-BitmapUtil-PublicApi-0007-001-Begin_command07 - COMMAND TBitmapUtil1 DecXPos - COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0007-001-SetPixel_command09 - COMMAND TBitmapUtil1 DecYPos - COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0007-001-SetPixel_command11 - COMMAND TBitmapUtil1 IncXPos - COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0007-001-SetPixel_command13 - COMMAND TBitmapUtil1 IncYPos - COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0007-001-SetPixel_command15 - COMMAND TBitmapUtil1 SetPos GRAPHICS-FBSERV-BitmapUtil-PublicApi-0007-001-SetPos_command16 - COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0007-001-GetPixel_command17 - COMMAND TBitmapUtil1 SetPos GRAPHICS-FBSERV-BitmapUtil-PublicApi-0007-001-SetPos_command18 - COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0007-001-GetPixel_command19 - COMMAND TBitmapUtil1 SetPos GRAPHICS-FBSERV-BitmapUtil-PublicApi-0007-001-SetPos_command20 - COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0007-001-GetPixel_command21 - COMMAND TBitmapUtil1 SetPos GRAPHICS-FBSERV-BitmapUtil-PublicApi-0007-001-SetPos_command22 - COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0007-001-GetPixel_command23 - COMMAND TBitmapUtil1 End - COMMAND TBitmapUtil1 ~ - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0007 - - -START_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0008 -//! @SYMTestCaseID GRAPHICS-FBSERV-BitmapUtil-PublicApi-0008 -//! @SYMAPI TBitmapUtil -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 29/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-BitmapUtil-PublicApi.script -//! @SYMTestCaseDesc TBitmapUtil::TBitmapUtil() negative test with null pointer argument -//! Uses API elements: TBitmapUtil() -//! @SYMTestActions 1. Call TBitmapUtil::TBitmapUtil() method passing NULL as a parameter -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The TBitmapUtil() constructor doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - CREATE_OBJECT TBitmapUtil TBitmapUtil1 - COMMAND RFbsSession1 Connect - COMMAND TBitmapUtil1 new GRAPHICS-FBSERV-BitmapUtil-PublicApi-0008-001-New_command03 - COMMAND TBitmapUtil1 ~ - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0008 - - -//!START_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0009 -//! @SYMTestCaseID GRAPHICS-FBSERV-BitmapUtil-PublicApi-0009 -//! @SYMAPI TBitmapUtil -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 29/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-BitmapUtil-PublicApi.script -//! @SYMTestCaseDesc TBitmapUtil::TBitmapUtil() and Begin() negative test with null pointer argument -//! Uses API elements: TBitmapUtil() -//! @SYMTestActions 1. Call TBitmapUtil::TBitmapUtil() method passing NULL as a parameter -//! 2. Call Begin() with point (0,0) as a parameter -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The Begin() method call must panic -//! @SYMTestType CIT -//! START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini -//! CREATE_OBJECT RFbsSession RFbsSession1 -//! CREATE_OBJECT CFbsBitmap CFbsBitmap1 -//! CREATE_OBJECT TBitmapUtil TBitmapUtil1 -//! COMMAND RFbsSession1 Connect -//! COMMAND TBitmapUtil1 new GRAPHICS-FBSERV-BitmapUtil-PublicApi-0009-001-New_command03 -//! COMMAND TBitmapUtil1 Begin GRAPHICS-FBSERV-BitmapUtil-PublicApi-0009-001-Begin_command04 -//! END_TEST_BLOCK !PanicCode=3 !PanicString=KERN-EXEC -//! RUN_TEST_STEP 100 T_FBServAPI utilityClearPanicDlg -//!END_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0009 - - -START_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0010 -//! @SYMTestCaseID GRAPHICS-FBSERV-BitmapUtil-PublicApi-0010 -//! @SYMAPI TBitmapUtil -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 29/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-BitmapUtil-PublicApi.script -//! @SYMTestCaseDesc TBitmapUtil::TBitmapUtil() negative test with not constructed bitmap as argument -//! Uses API elements: TBitmapUtil() -//! @SYMTestActions 1. Create an instance of CFbsBitmap class but don't call neither create nor load method -//! 2. Call TBitmapUtil::TBitmapUtil() method passing the instance as a parameter -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The TBitmapUtil() constructor doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - CREATE_OBJECT TBitmapUtil TBitmapUtil1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND TBitmapUtil1 new GRAPHICS-FBSERV-BitmapUtil-PublicApi-0010-001-New_command05 - COMMAND TBitmapUtil1 ~ - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0010 - - -START_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0011a -//! @SYMTestCaseID GRAPHICS-FBSERV-BitmapUtil-PublicApi-0011a -//! @SYMAPI TBitmapUtil -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 29/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-BitmapUtil-PublicApi.script -//! @SYMTestCaseDesc TBitmapUtil::TBitmapUtil(),Begin() and CFbsBitmap::Create() a negative testcase -//! an incorrect bitmap loaded with an invalid display mode -//! Uses API elements: TBitmapUtil() -//! @SYMTestActions 1. Create an instance of CFbsBitmap class with an invalid display mode ERgb -//! 2. Call TBitmapUtil::TBitmapUtil() method passing the instance as a parameter -//! 3. Call Begin() with point (0,0) as a parameter -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The Create() method should come back with KErrArgument as the requested display mode is invalid -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - CREATE_OBJECT TBitmapUtil TBitmapUtil1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND !Error=-6 CFbsBitmap1 Create GRAPHICS-FBSERV-BitmapUtil-PublicApi-0011-001-Create_command06 - COMMAND TBitmapUtil1 new GRAPHICS-FBSERV-BitmapUtil-PublicApi-0011-001-New_command05 - COMMAND TBitmapUtil1 Begin GRAPHICS-FBSERV-BitmapUtil-PublicApi-0011-001-Begin_command07 - END_TEST_BLOCK !PanicCode=10 !PanicString=FBSCLI - RUN_TEST_STEP 100 T_FBServAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0011a - - -START_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0012 -//! @SYMTestCaseID GRAPHICS-FBSERV-BitmapUtil-PublicApi-0012 -//! @SYMAPI TBitmapUtil -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 29/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-BitmapUtil-PublicApi.script -//! @SYMTestCaseDesc TBitmapUtil Begin() (Begin(const TPoint \&aPosition) version) negative test for out-of-bounds initial position -//! Uses API elements: TBitmapUtil(), Begin() -//! @SYMTestActions 1. Create a 100x100 bitmap -//! 2. Call TBitmapUtil::TBitmapUtil() method passing the bitmap as a parameter -//! 3. Call Begin() method passing a point (-1, -1) as a parameter -//! 4. Call SetPixel(0) -//! 4. Call End() -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The function Begin() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - CREATE_OBJECT TBitmapUtil TBitmapUtil1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-BitmapUtil-PublicApi-0012-001-Create_command04 - COMMAND TBitmapUtil1 new GRAPHICS-FBSERV-BitmapUtil-PublicApi-0012-001-New_command06 - COMMAND TBitmapUtil1 Begin GRAPHICS-FBSERV-BitmapUtil-PublicApi-0012-001-Begin_command07 - COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0012-001-SetPixel_command08 - COMMAND TBitmapUtil1 End - COMMAND TBitmapUtil1 ~ - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0012 - - -START_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0013 -//! @SYMTestCaseID GRAPHICS-FBSERV-BitmapUtil-PublicApi-0013 -//! @SYMAPI TBitmapUtil -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 29/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-BitmapUtil-PublicApi.script -//! @SYMTestCaseDesc TBitmapUtil::SetPixel() (SetPixel(TUint32 aValue) version) negative test for out-of-range color value -//! Uses API elements: TBitmapUtil(), Begin(), End(), GetPixel(), SetPixel() -//! @SYMTestActions 1. Create a 100x100 bitmap and 16-color (EGray16 = 3, GDI.H) display mode -//! 2. Call TBitmapUtil::TBitmapUtil() method passing the bitmap as a parameter -//! 3. Call Begin() method passing a point (0, 0) as a parameter -//! 4. Call SetPixel(16) -//! 5. Check that the color is 0 -//! 6. Call End() method -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The test expects SetPixel() for out-of-range color not to panic -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - CREATE_OBJECT TBitmapUtil TBitmapUtil1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-BitmapUtil-PublicApi-0013-001-Create_command04 - COMMAND TBitmapUtil1 new GRAPHICS-FBSERV-BitmapUtil-PublicApi-0013-001-New_command06 - COMMAND TBitmapUtil1 Begin GRAPHICS-FBSERV-BitmapUtil-PublicApi-0013-001-Begin_command07 - COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0013-001-SetPixel_command08 - COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0013-001-GetPixel_command09 - COMMAND TBitmapUtil1 End - COMMAND TBitmapUtil1 ~ - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0013 - - -START_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0014 -//! @SYMTestCaseID GRAPHICS-FBSERV-BitmapUtil-PublicApi-0014 -//! @SYMAPI TBitmapUtil -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 29/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-BitmapUtil-PublicApi.script -//! @SYMTestCaseDesc TBitmapUtil::SetPos() negative test for out-of-bounds coordinates -//! Uses API elements: TBitmapUtil(), Begin(), End(), SetPos() -//! @SYMTestActions 1. Create a 100x100 bitmap -//! 2. Call TBitmapUtil::TBitmapUtil() method passing the bitmap as a parameter -//! 3. Call Begin() method passing a point (0, 0) as a parameter -//! 4. Call SetPos(100, 100) -//! 5. Call End() method -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Call to SetPos() doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - CREATE_OBJECT TBitmapUtil TBitmapUtil1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-BitmapUtil-PublicApi-0014-001-Create_command04 - COMMAND TBitmapUtil1 new GRAPHICS-FBSERV-BitmapUtil-PublicApi-0014-001-New_command06 - COMMAND TBitmapUtil1 Begin GRAPHICS-FBSERV-BitmapUtil-PublicApi-0014-001-Begin_command07 - COMMAND TBitmapUtil1 SetPos GRAPHICS-FBSERV-BitmapUtil-PublicApi-0014-001-SetPos_command08 - COMMAND TBitmapUtil1 End - COMMAND TBitmapUtil1 ~ - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0014 - - -START_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0015 -//! @SYMTestCaseID GRAPHICS-FBSERV-BitmapUtil-PublicApi-0015 -//! @SYMAPI TBitmapUtil -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 29/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-BitmapUtil-PublicApi.script -//! @SYMTestCaseDesc DecXPos() negative test for out-of-bounds coordinates -//! Uses API elements: TBitmapUtil(), Begin(), End(), DecXPos() -//! @SYMTestActions 1. Create a 1x1 bitmap -//! 2. Call TBitmapUtil::TBitmapUtil() method passing the bitmap as a parameter -//! 3. Call Begin() method passing a point (0, 0) as a parameter -//! 4. Call DecXPos() -//! 5. Call End() method -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Method DecXPos() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - CREATE_OBJECT TBitmapUtil TBitmapUtil1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-BitmapUtil-PublicApi-0015-001-Create_command04 - COMMAND TBitmapUtil1 new GRAPHICS-FBSERV-BitmapUtil-PublicApi-0015-001-New_command06 - COMMAND TBitmapUtil1 Begin GRAPHICS-FBSERV-BitmapUtil-PublicApi-0015-001-Begin_command07 - COMMAND TBitmapUtil1 DecXPos - COMMAND TBitmapUtil1 End - COMMAND TBitmapUtil1 ~ - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0015 - - -START_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0016 -//! @SYMTestCaseID GRAPHICS-FBSERV-BitmapUtil-PublicApi-0016 -//! @SYMAPI TBitmapUtil -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 29/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-BitmapUtil-PublicApi.script -//! @SYMTestCaseDesc DecYPos() negative test for out-of-bounds coordinates -//! Uses API elements: TBitmapUtil(), Begin(), End(), DecYPos() -//! @SYMTestActions 1. Create a 1x1 bitmap -//! 2. Call TBitmapUtil::TBitmapUtil() method passing the bitmap as a parameter -//! 3. Call Begin() method passing a point (0, 0) as a parameter -//! 4. Call DecYPos() -//! 5. Call End() method -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Method DecYPos() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - CREATE_OBJECT TBitmapUtil TBitmapUtil1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-BitmapUtil-PublicApi-0016-001-Create_command04 - COMMAND TBitmapUtil1 new GRAPHICS-FBSERV-BitmapUtil-PublicApi-0016-001-New_command06 - COMMAND TBitmapUtil1 Begin GRAPHICS-FBSERV-BitmapUtil-PublicApi-0016-001-Begin_command07 - COMMAND TBitmapUtil1 DecYPos - COMMAND TBitmapUtil1 End - COMMAND TBitmapUtil1 ~ - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0016 - - -START_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0017 -//! @SYMTestCaseID GRAPHICS-FBSERV-BitmapUtil-PublicApi-0017 -//! @SYMAPI TBitmapUtil -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 29/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-BitmapUtil-PublicApi.script -//! @SYMTestCaseDesc IncXPos() negative test for out-of-bounds coordinates -//! Uses API elements: TBitmapUtil(), Begin(), End(), IncXPos() -//! @SYMTestActions 1. Create a 1x1 bitmap -//! 2. Call TBitmapUtil::TBitmapUtil() method passing the bitmap as a parameter -//! 3. Call Begin() method passing a point (0, 0) as a parameter -//! 4. Call IncXPos() -//! 5. Call End() method -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Method IncXPos() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - CREATE_OBJECT TBitmapUtil TBitmapUtil1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-BitmapUtil-PublicApi-0017-001-Create_command04 - COMMAND TBitmapUtil1 new GRAPHICS-FBSERV-BitmapUtil-PublicApi-0017-001-New_command06 - COMMAND TBitmapUtil1 Begin GRAPHICS-FBSERV-BitmapUtil-PublicApi-0017-001-Begin_command07 - COMMAND TBitmapUtil1 IncXPos - COMMAND TBitmapUtil1 End - COMMAND TBitmapUtil1 ~ - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0017 - - -START_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0018 -//! @SYMTestCaseID GRAPHICS-FBSERV-BitmapUtil-PublicApi-0018 -//! @SYMAPI TBitmapUtil -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 29/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-BitmapUtil-PublicApi.script -//! @SYMTestCaseDesc IncYPos() negative test for out-of-bounds coordinates -//! Uses API elements: TBitmapUtil(), Begin(), End(), IncYPos() -//! @SYMTestActions 1. Create a 1x1 bitmap -//! 2. Call TBitmapUtil::TBitmapUtil() method passing the bitmap as a parameter -//! 3. Call Begin() method passing a point (0, 0) as a parameter -//! 4. Call IncYPos() -//! 5. Call End() method -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Method IncYPos() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - CREATE_OBJECT TBitmapUtil TBitmapUtil1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-BitmapUtil-PublicApi-0018-001-Create_command04 - COMMAND TBitmapUtil1 new GRAPHICS-FBSERV-BitmapUtil-PublicApi-0018-001-New_command06 - COMMAND TBitmapUtil1 Begin GRAPHICS-FBSERV-BitmapUtil-PublicApi-0018-001-Begin_command07 - COMMAND TBitmapUtil1 IncYPos - COMMAND TBitmapUtil1 End - COMMAND TBitmapUtil1 ~ - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0018 - - -START_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0019 -//! @SYMTestCaseID GRAPHICS-FBSERV-BitmapUtil-PublicApi-0019 -//! @SYMAPI TBitmapUtil -//! @SYMAuthor Rnno Sgirka -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-BitmapUtil-PublicApi.script -//! @SYMTestCaseDesc TBitmapUtil::Begin() (Begin(const TPoint &aPosition) version) and End() negative test for out-of-bounds coordinates -//! Uses API elements: TBitmapUtil(), Begin(), End() -//! @SYMTestActions 1. Create a 100x100 bitmap -//! 2. Call TBitmapUtil::TBitmapUtil() method passing the bitmap as a parameter -//! 3. Call Begin() method passing a point (-1, 0) as a parameter -//! 4. Call End() -//! 5. Call Begin() method passing a point (0, -1) as a parameter -//! 6. Call End() -//! 7. Call Begin() method passing a point (100, 0) as a parameter -//! 8. Call End() -//! 9. Call Begin() method passing a point (0, 100) as a parameter -//! 10. Call End() -//! 11. Call Begin() method passing a point (100, 100) as a parameter -//! 12. Call End() -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The Begin() method call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - CREATE_OBJECT TBitmapUtil TBitmapUtil1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-BitmapUtil-PublicApi-0019-001-Create_command04 - COMMAND TBitmapUtil1 new GRAPHICS-FBSERV-BitmapUtil-PublicApi-0019-001-New_command06 - COMMAND TBitmapUtil1 Begin GRAPHICS-FBSERV-BitmapUtil-PublicApi-0019-001-Begin_command07 - COMMAND TBitmapUtil1 End - COMMAND TBitmapUtil1 Begin GRAPHICS-FBSERV-BitmapUtil-PublicApi-0019-001-Begin_command09 - COMMAND TBitmapUtil1 End - COMMAND TBitmapUtil1 Begin GRAPHICS-FBSERV-BitmapUtil-PublicApi-0019-001-Begin_command11 - COMMAND TBitmapUtil1 End - COMMAND TBitmapUtil1 Begin GRAPHICS-FBSERV-BitmapUtil-PublicApi-0019-001-Begin_command13 - COMMAND TBitmapUtil1 End - COMMAND TBitmapUtil1 Begin GRAPHICS-FBSERV-BitmapUtil-PublicApi-0019-001-Begin_command15 - COMMAND TBitmapUtil1 End - COMMAND TBitmapUtil1 ~ - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0019 - - -START_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0020 -//! @SYMTestCaseID GRAPHICS-FBSERV-BitmapUtil-PublicApi-0020 -//! @SYMAPI TBitmapUtil -//! @SYMAuthor Rnno Sgirka -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-BitmapUtil-PublicApi.script -//! @SYMTestCaseDesc TBitmapUtil::SetPos() negative test for out-of-bounds coordinates -//! Uses API elements: TBitmapUtil(), Begin(), End(), SetPos() -//! @SYMTestActions 1. Create a 100x100 bitmap -//! 2. Call TBitmapUtil::TBitmapUtil() method passing the bitmap as a parameter -//! 3. Call Begin() method passing a point (0, 0) as a parameter -//! 4. Call SetPos(-1, 0) -//! 5. Call SetPos(0, -1) -//! 6. Call SetPos(100, 0) -//! 7. Call SetPos(0, 100) -//! 8. Call End() method -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The SetPos() method call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - CREATE_OBJECT TBitmapUtil TBitmapUtil1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-BitmapUtil-PublicApi-0020-001-Create_command04 - COMMAND TBitmapUtil1 new GRAPHICS-FBSERV-BitmapUtil-PublicApi-0020-001-New_command06 - COMMAND TBitmapUtil1 Begin GRAPHICS-FBSERV-BitmapUtil-PublicApi-0020-001-Begin_command07 - COMMAND TBitmapUtil1 SetPos GRAPHICS-FBSERV-BitmapUtil-PublicApi-0020-001-SetPos_command08 - COMMAND TBitmapUtil1 SetPos GRAPHICS-FBSERV-BitmapUtil-PublicApi-0020-001-SetPos_command09 - COMMAND TBitmapUtil1 SetPos GRAPHICS-FBSERV-BitmapUtil-PublicApi-0020-001-SetPos_command10 - COMMAND TBitmapUtil1 SetPos GRAPHICS-FBSERV-BitmapUtil-PublicApi-0020-001-SetPos_command11 - COMMAND TBitmapUtil1 End - COMMAND TBitmapUtil1 ~ - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0020 - - -START_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021 -//! @SYMTestCaseID GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021 -//! @SYMAPI TBitmapUtil -//! @SYMAuthor Louis Henry Nayegon -//! @SYMCreationDate 02/08/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-BitmapUtil-PublicApi.script -//! @SYMTestCaseDesc Multiple calls to DecXPos(), DecYPos(), IncXPos(), IncYPos() test -//! Uses API elements: TBitmapUtil(), Begin(), End(), GetPixel(), SetPixel(), SetPos(), DecXPos(), IncXPos() -//! @SYMTestActions 1. Create a 100x100 EColor256 bitmap -//! 2. Call TBitmapUtil::TBitmapUtil() method passing the bitmap as a parameter -//! 3. Call Begin() method passing a point (10, 10) as a parameter -//! 4. Call IncXPos() multiple times followed by SetPixel() -//! 5. Call DecXPos() multiple times preceded by GetPixel() -//! 6. Call End() method -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The operations all pass -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - CREATE_OBJECT TBitmapUtil TBitmapUtil1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-Create_command04 - COMMAND TBitmapUtil1 new GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-New_command06 - COMMAND TBitmapUtil1 Begin GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-Begin_command07 - COMMAND TBitmapUtil1 IncXPos - COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-SetPixel_command09 - COMMAND TBitmapUtil1 IncXPos - COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-SetPixel_command11 - COMMAND TBitmapUtil1 IncXPos - COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-SetPixel_command13 - COMMAND TBitmapUtil1 IncXPos - COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-SetPixel_command15 - COMMAND TBitmapUtil1 IncXPos - COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-SetPixel_command17 - COMMAND TBitmapUtil1 IncXPos - COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-SetPixel_command19 - COMMAND TBitmapUtil1 IncXPos - COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-SetPixel_command21 - COMMAND TBitmapUtil1 IncXPos - COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-SetPixel_command23 - COMMAND TBitmapUtil1 IncXPos - COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-SetPixel_command25 - COMMAND TBitmapUtil1 IncXPos - COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-SetPixel_command27 - COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-GetPixel_command28 - COMMAND TBitmapUtil1 DecXPos - COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-GetPixel_command30 - COMMAND TBitmapUtil1 DecXPos - COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-GetPixel_command32 - COMMAND TBitmapUtil1 DecXPos - COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-GetPixel_command34 - COMMAND TBitmapUtil1 DecXPos - COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-GetPixel_command36 - COMMAND TBitmapUtil1 DecXPos - COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-GetPixel_command38 - COMMAND TBitmapUtil1 DecXPos - COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-GetPixel_command40 - COMMAND TBitmapUtil1 DecXPos - COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-GetPixel_command42 - COMMAND TBitmapUtil1 DecXPos - COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-GetPixel_command44 - COMMAND TBitmapUtil1 DecXPos - COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-GetPixel_command46 - COMMAND TBitmapUtil1 DecXPos - COMMAND TBitmapUtil1 End - COMMAND TBitmapUtil1 ~ - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021 - - -START_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022 -//! @SYMTestCaseID GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022 -//! @SYMAPI TBitmapUtil -//! @SYMAuthor Louis Henry Nayegon -//! @SYMCreationDate 02/08/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-BitmapUtil-PublicApi.script -//! @SYMTestCaseDesc Multiple calls to DecXPos(), DecYPos(), IncXPos(), IncYPos() test -//! Uses API elements: TBitmapUtil(), Begin(), End(), GetPixel(), SetPixel(), SetPos(), DecXPos(), IncXPos() -//! @SYMTestActions 1. Create a 100x100 EColor16M bitmap -//! 2. Call TBitmapUtil::TBitmapUtil() method passing the bitmap as a parameter -//! 3. Call Begin() method passing a point (10, 10) as a parameter -//! 4. Call IncXPos() multiple times followed by SetPixel() -//! 5. Call DecXPos() multiple times preceded by GetPixel() -//! 6. Call End() method -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The operations all pass -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - CREATE_OBJECT TBitmapUtil TBitmapUtil1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-Create_command04 - COMMAND TBitmapUtil1 new GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-New_command06 - COMMAND TBitmapUtil1 Begin GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-Begin_command07 - COMMAND TBitmapUtil1 IncXPos - COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-SetPixel_command09 - COMMAND TBitmapUtil1 IncXPos - COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-SetPixel_command11 - COMMAND TBitmapUtil1 IncXPos - COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-SetPixel_command13 - COMMAND TBitmapUtil1 IncXPos - COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-SetPixel_command15 - COMMAND TBitmapUtil1 IncXPos - COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-SetPixel_command17 - COMMAND TBitmapUtil1 IncXPos - COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-SetPixel_command19 - COMMAND TBitmapUtil1 IncXPos - COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-SetPixel_command21 - COMMAND TBitmapUtil1 IncXPos - COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-SetPixel_command23 - COMMAND TBitmapUtil1 IncXPos - COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-SetPixel_command25 - COMMAND TBitmapUtil1 IncXPos - COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-SetPixel_command27 - COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-GetPixel_command28 - COMMAND TBitmapUtil1 DecXPos - COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-GetPixel_command30 - COMMAND TBitmapUtil1 DecXPos - COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-GetPixel_command32 - COMMAND TBitmapUtil1 DecXPos - COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-GetPixel_command34 - COMMAND TBitmapUtil1 DecXPos - COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-GetPixel_command36 - COMMAND TBitmapUtil1 DecXPos - COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-GetPixel_command38 - COMMAND TBitmapUtil1 DecXPos - COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-GetPixel_command40 - COMMAND TBitmapUtil1 DecXPos - COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-GetPixel_command42 - COMMAND TBitmapUtil1 DecXPos - COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-GetPixel_command44 - COMMAND TBitmapUtil1 DecXPos - COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-GetPixel_command46 - COMMAND TBitmapUtil1 DecXPos - COMMAND TBitmapUtil1 End - COMMAND TBitmapUtil1 ~ - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022 - - -START_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023 -//! @SYMTestCaseID GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023 -//! @SYMAPI TBitmapUtil -//! @SYMAuthor Louis Henry Nayegon -//! @SYMCreationDate 02/08/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-BitmapUtil-PublicApi.script -//! @SYMTestCaseDesc Multiple calls to DecXPos(), DecYPos(), IncXPos(), IncYPos() test -//! Uses API elements: TBitmapUtil(), Begin(), End(), GetPixel(), SetPixel(), SetPos(), DecXPos(), IncXPos() -//! @SYMTestActions 1. Create a 100x100 EColor16MU bitmap -//! 2. Call TBitmapUtil::TBitmapUtil() method passing the bitmap as a parameter -//! 3. Call Begin() method passing a point (10, 10) as a parameter -//! 4. Call IncXPos() multiple times followed by SetPixel() -//! 5. Call DecXPos() multiple times preceded by GetPixel() -//! 6. Call End() method -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The operations all pass -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - CREATE_OBJECT TBitmapUtil TBitmapUtil1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-Create_command04 - COMMAND TBitmapUtil1 new GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-New_command06 - COMMAND TBitmapUtil1 Begin GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-Begin_command07 - COMMAND TBitmapUtil1 IncXPos - COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-SetPixel_command09 - COMMAND TBitmapUtil1 IncXPos - COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-SetPixel_command11 - COMMAND TBitmapUtil1 IncXPos - COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-SetPixel_command13 - COMMAND TBitmapUtil1 IncXPos - COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-SetPixel_command15 - COMMAND TBitmapUtil1 IncXPos - COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-SetPixel_command17 - COMMAND TBitmapUtil1 IncXPos - COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-SetPixel_command19 - COMMAND TBitmapUtil1 IncXPos - COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-SetPixel_command21 - COMMAND TBitmapUtil1 IncXPos - COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-SetPixel_command23 - COMMAND TBitmapUtil1 IncXPos - COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-SetPixel_command25 - COMMAND TBitmapUtil1 IncXPos - COMMAND TBitmapUtil1 SetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-SetPixel_command27 - COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-GetPixel_command28 - COMMAND TBitmapUtil1 DecXPos - COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-GetPixel_command30 - COMMAND TBitmapUtil1 DecXPos - COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-GetPixel_command32 - COMMAND TBitmapUtil1 DecXPos - COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-GetPixel_command34 - COMMAND TBitmapUtil1 DecXPos - COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-GetPixel_command36 - COMMAND TBitmapUtil1 DecXPos - COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-GetPixel_command38 - COMMAND TBitmapUtil1 DecXPos - COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-GetPixel_command40 - COMMAND TBitmapUtil1 DecXPos - COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-GetPixel_command42 - COMMAND TBitmapUtil1 DecXPos - COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-GetPixel_command44 - COMMAND TBitmapUtil1 DecXPos - COMMAND TBitmapUtil1 GetPixel GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-GetPixel_command46 - COMMAND TBitmapUtil1 DecXPos - COMMAND TBitmapUtil1 End - COMMAND TBitmapUtil1 ~ - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023 diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fbserv/scripts/GRAPHICS-FBSERV-FbsBitmap-PublicApi.script --- a/graphicsapitest/graphicssvs/fbserv/scripts/GRAPHICS-FBSERV-FbsBitmap-PublicApi.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,4416 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// -//! @file -//! @SYMTestSuiteName GRAPHICS-FBSERV-FbsBitmap-PublicApi -//! @SYMScriptTestEnvironment This test script requires a basic ROM. - -///////////////////////////////////////////////////////////////////// -// GRAPHICS-FBSERV-FbsBitmap-PublicAPI.script -// -// Tests all public elements of the CFbsBitmap class -// as a means of confidence that the APIs work as expected. -// -// The purpose is to provide a regression test suite of PublishedAll APIs for CFbsBitmap. -// Negative testing is performed to confirm that correct errors are returned when incorrect parameters are given. -// The tests are fully automated. -///////////////////////////////////////////////////////////////////// - -LOAD_SUITE T_FBServAPI - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0001 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0001 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor James Mechen -//! @SYMCreationDate 22/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::Load() (Load(const TDesC \&aFileName, TInt32 aId=0, TBool aShareIfLoaded=ETrue) version) test. Load a bitmap file with no file offset, without using RFile, -//! making it available for sharing between font and bitmap server clients. -//! Uses API elements: Load() -//! @SYMTestActions 1. Load a bitmap from a multi-bitmap file. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The Load() method call returns KErrNone and doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Load GRAPHICS-FBSERV-FbsBitmap-PublicApi-0001-001command4Load - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0001 - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0002 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0002 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor James Mechen -//! @SYMCreationDate 22/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::Load() (Load(RFile \&aFile, TInt32 aId=0, TBool aShareIfLoaded=ETrue) version) test. -//! Load a bitmap file with no file offset, using RFile, -//! not making it available for sharing between font and bitmap server clients. -//! Uses API elements: Load() -//! @SYMTestActions 1. Load a bitmap from a multi-bitmap file. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The Load() method call returns KErrNone and doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Load GRAPHICS-FBSERV-FbsBitmap-PublicApi-0002-001command4Load - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0002 - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0003 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0003 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor James Mechen -//! @SYMCreationDate 22/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::Load() (Load(const TDesC \&aFileName, TInt32 aId, TBool aShareIfLoaded, TUint aFileOffset) version) test. -//! Load a bitmap file with a file offset, without using RFile, -//! not making it available for sharing between font and bitmap server clients. -//! Uses API elements: Load() -//! @SYMTestActions 1. Load a bitmap from a multi-bitmap file. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The Load() method call returns KErrNone and doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Load GRAPHICS-FBSERV-FbsBitmap-PublicApi-0003-001command4Load - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0003 - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0004 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0004 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor James Mechen -//! @SYMCreationDate 22/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::Load() (Load(RFile \&aFile, TInt32 aId, TBool aShareIfLoaded, TUint aFileOffset) version) test. -//! Load a bitmap file with a file offset, using RFile, -//! making it available for sharing between font and bitmap server clients. -//! Uses API elements: Load(), IsCompressedInRAM() -//! @SYMTestActions 1. Load a bitmap from a multi-bitmap file. -//! 2. Check bitmap is not compressed in RAM. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The Load() method call returns KErrNone and doesn't cause panic. IsCompressedInRAM() returns false. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Load GRAPHICS-FBSERV-FbsBitmap-PublicApi-0004-001command4Load - COMMAND CFbsBitmap1 IsCompressedInRAM GRAPHICS-FBSERV-FbsBitmap-PublicApi-0004-001command5IsCompressedInRAM - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0004 - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0005 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0005 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor James Mechen -//! @SYMCreationDate 22/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::LoadAndCompress() (LoadAndCompress(const TDesC \&aFileName, TInt32 aId=0, TBool aShareIfLoaded=ETrue) version) test. -//! Load and compress a bitmap file with no file offset, without using RFile, -//! making it available for sharing between font and bitmap server clients. -//! Uses API elements: LoadAndCompress(), IsCompressedInRAM() -//! @SYMTestActions 1. Load and compress a bitmap from a multi-bitmap file. -//! 2. Check bitmap is compressed in RAM. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The LoadAndCompress() method call returns KErrNone and doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 LoadAndCompress GRAPHICS-FBSERV-FbsBitmap-PublicApi-0005-001command4LoadAndCompress - COMMAND CFbsBitmap1 IsCompressedInRAM GRAPHICS-FBSERV-FbsBitmap-PublicApi-0005-001command5IsCompressedInRAM - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0005 - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0006 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0006 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor James Mechen -//! @SYMCreationDate 22/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::LoadAndCompress() (LoadAndCompress(RFile \&aFile, TInt32 aId=0, TBool aShareIfLoaded=ETrue) version) test. -//! Load and compress a bitmap file with no file offset, using RFile, -//! not making it available for sharing between font and bitmap server clients. -//! Uses API elements: LoadAndCompress(), IsCompressedInRAM() -//! @SYMTestActions 1. Load and compress a bitmap from a multi-bitmap file. -//! 2. Check bitmap is compressed in RAM. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The LoadAndCompress() method call returns KErrNone and doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 LoadAndCompress GRAPHICS-FBSERV-FbsBitmap-PublicApi-0006-001command4LoadAndCompress - COMMAND CFbsBitmap1 IsCompressedInRAM GRAPHICS-FBSERV-FbsBitmap-PublicApi-0006-001command5IsCompressedInRAM - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0006 - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0007 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0007 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor James Mechen -//! @SYMCreationDate 22/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::LoadAndCompress() (LoadAndCompress(const TDesC \&aFileName, TInt32 aId, TBool aShareIfLoaded, TUint aFileOffset) version) test. -//! Load and compress a bitmap file with a file offset, without using RFile, -//! not making it available for sharing between font and bitmap server clients. -//! Uses API elements: LoadAndCompress(), IsCompressedInRAM() -//! @SYMTestActions 1. Load and compress a bitmap from a multi-bitmap file. -//! 2. Check bitmap is compressed in RAM. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The LoadAndCompress() method call returns KErrNone and doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 LoadAndCompress GRAPHICS-FBSERV-FbsBitmap-PublicApi-0007-001command4LoadAndCompress - COMMAND CFbsBitmap1 IsCompressedInRAM GRAPHICS-FBSERV-FbsBitmap-PublicApi-0007-001command5IsCompressedInRAM - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0007 - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0008 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0008 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor James Mechen -//! @SYMCreationDate 22/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::LoadAndCompress() (LoadAndCompress(RFile \&aFile, TInt32 aId, TBool aShareIfLoaded, TUint aFileOffset) version) test. -//! Load and compress a bitmap file with a file offset, using RFile, -//! making it available for sharing between font and bitmap server clients. -//! Uses API elements: LoadAndCompress(), IsCompressedInRAM() -//! @SYMTestActions 1. Load and compress a bitmap from a multi-bitmap file. -//! 2. Check bitmap is compressed in RAM. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The LoadAndCompress() method call returns KErrNone and doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 LoadAndCompress GRAPHICS-FBSERV-FbsBitmap-PublicApi-0008-001command4LoadAndCompress - COMMAND CFbsBitmap1 IsCompressedInRAM GRAPHICS-FBSERV-FbsBitmap-PublicApi-0008-001command5IsCompressedInRAM - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0008 - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0009 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0009 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor James Mechen -//! @SYMCreationDate 22/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc Load then compress a bitmap file. -//! Uses API elements: Load(), Compress(), IsCompressedInRAM() -//! @SYMTestActions 1. Load a bitmap from a multi-bitmap file. -//! 2. Compress bitmap. -//! 3. Check bitmap is compressed in RAM. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The Load() method call returns KErrNone and doesn't cause panic. IsCompressedInRAM() returns true. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Load GRAPHICS-FBSERV-FbsBitmap-PublicApi-0009-001command4Load - COMMAND CFbsBitmap1 Compress - COMMAND CFbsBitmap1 IsCompressedInRAM GRAPHICS-FBSERV-FbsBitmap-PublicApi-0009-001command6IsCompressedInRAM - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0009 - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0010 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0010 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor James Mechen -//! @SYMCreationDate 22/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::CompressInBackground() test (CompressInBackground() version). Load then compress a bitmap in background, without providing a Request Status. -//! Uses API elements: Load(), CompressInBackground(), IsCompressedInRAM() -//! @SYMTestActions 1. Load a bitmap from a multi-bitmap file. -//! 2. Compress bitmap in background. -//! 3. Wait 1 second -//! 3. Check bitmap is compressed in RAM. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The CompressInbackground() method call returns KErrNone and doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND RFbsSession1 GetSession - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Load GRAPHICS-FBSERV-FbsBitmap-PublicApi-0010-001command5Load - COMMAND CFbsBitmap1 CompressInBackground GRAPHICS-FBSERV-FbsBitmap-PublicApi-0010-001command6CompressInBackground - COMMAND RFbsSession1 SendCommand GRAPHICS-FBSERV-FbsBitmap-PublicApi-0010-001command8SendCommand - COMMAND CFbsBitmap1 IsCompressedInRAM GRAPHICS-FBSERV-FbsBitmap-PublicApi-0010-001command10IsCompressedInRAM - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0010 - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0011 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0011 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor James Mechen -//! @SYMCreationDate 22/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::CompressInBackground() test (CompressInBackground(TRequestStatus \&aRequestStatus) version). Load then compress a bitmap in background, providing a Request Status. -//! Uses API elements: Load(), CompressInBackground(), IsCompressedInRAM() -//! @SYMTestActions 1. Load a bitmap from a multi-bitmap file. -//! 2. Compress bitmap in background. -//! 3. Check bitmap is compressed in RAM. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The CompressInbackground() method call returns KErrNone and doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Load GRAPHICS-FBSERV-FbsBitmap-PublicApi-0011-001command4Load - COMMAND CFbsBitmap1 CompressInBackground GRAPHICS-FBSERV-FbsBitmap-PublicApi-0011-001command5CompressInBackground - OUTSTANDING - COMMAND CFbsBitmap1 IsCompressedInRAM GRAPHICS-FBSERV-FbsBitmap-PublicApi-0011-001command6IsCompressedInRAM - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0011 - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0012 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0012 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor James Mechen -//! @SYMCreationDate 22/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc Load a bitmap and then releases it. -//! Uses API elements: Load(), Reset() -//! @SYMTestActions 1. Load a bitmap from a multi-bitmap file. -//! 2. Release bitmap's handle from font and bitmap server. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The Reset() method call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Load GRAPHICS-FBSERV-FbsBitmap-PublicApi-0012-001command4Load - COMMAND CFbsBitmap1 Reset - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0012 - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0013 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0013 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor James Mechen -//! @SYMCreationDate 22/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc Create bitmaps with various sizes in all display modes. -//! Uses API elements: Create() -//! @SYMTestActions 1-11. Create bitmaps with various sizes in all display modes except ENone, ERgb, EColorLast. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The Create() method call returns KErrNone and doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0013-001command4Create - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0013-001command5Create - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0013-001command6Create - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0013-001command7Create - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0013-001command8Create - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0013-001command9Create - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0013-001command10Create - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0013-001command11Create - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0013-001command12Create - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0013-001command13Create - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0013-001command14Create - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0013 - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0014 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0014 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor James Mechen -//! @SYMCreationDate 22/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::Save() (Save(const TDesC \&aFilename) version) test. Create bitmap and save to file, without using RFile. -//! Uses API elements: Create(), Save() -//! @SYMTestActions 1. Create bitmap. -//! 2. Save bitmap to file. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The Save() method call returns KErrNone and doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0014-001command4Create - COMMAND CFbsBitmap1 Save GRAPHICS-FBSERV-FbsBitmap-PublicApi-0014-001command5Save - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0014 - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0015 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0015 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor James Mechen -//! @SYMCreationDate 22/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::Save() (Save(RFile \&aFile) version) test. Create bitmap and save to file, using RFile. -//! Uses API elements: Create(), Save() -//! @SYMTestActions 1. Create bitmap. -//! 2. Save bitmap to file. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The Save() method call returns KErrNone and doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0015-001command4Create - COMMAND CFbsBitmap1 Save GRAPHICS-FBSERV-FbsBitmap-PublicApi-0015-001command5Save - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0015 - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0016 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0016 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor James Mechen -//! @SYMCreationDate 22/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::StoreL() (StoreL(const TDesC \&aFilename, TInt aNumSources, const TDesC *aSources[], TInt32 aSourceIds[]) version) test. -//! Create bitmaps and store them in a multi-bitmap file, without using RFile. -//! Uses API elements: Create(), StoreL() -//! @SYMTestActions 1-3. Create 3 bitmaps saving them into 3 different files right after creation. -//! 4. Call Store() to create a multi-bitmap file using those 3 files. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The StoreL() method call doesn't leave and doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0016-001command4Create - COMMAND CFbsBitmap1 Save GRAPHICS-FBSERV-FbsBitmap-PublicApi-0016-001command5Save - COMMAND CFbsBitmap1 Reset - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0016-001command7Create - COMMAND CFbsBitmap1 Save GRAPHICS-FBSERV-FbsBitmap-PublicApi-0016-001command8Save - COMMAND CFbsBitmap1 Reset - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0016-001command10Create - COMMAND CFbsBitmap1 Save GRAPHICS-FBSERV-FbsBitmap-PublicApi-0016-001command11Save - COMMAND CFbsBitmap1 Reset - COMMAND CFbsBitmap1 StoreL GRAPHICS-FBSERV-FbsBitmap-PublicApi-0016-001command13StoreL - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0016 - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0017 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0017 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor James Mechen -//! @SYMCreationDate 23/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::StoreL() (StoreL(RFile \&aFile, TInt aNumSources, const TDesC *aSources[], TInt32 aSourceIds[]) version) test. -//! Create bitmaps and store them in a multi-bitmap file, using RFile. -//! Uses API elements: Create(), StoreL() -//! @SYMTestActions 1-3. Create 3 bitmaps saving them into 3 different files right after creation. -//! 4. Store bitmaps in a multi-bitmap file. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The StoreL() method call doesn't leave and doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0017-001command4Create - COMMAND CFbsBitmap1 Save GRAPHICS-FBSERV-FbsBitmap-PublicApi-0017-001command5Save - COMMAND CFbsBitmap1 Reset - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0017-001command7Create - COMMAND CFbsBitmap1 Save GRAPHICS-FBSERV-FbsBitmap-PublicApi-0017-001command8Save - COMMAND CFbsBitmap1 Reset - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0017-001command10Create - COMMAND CFbsBitmap1 Save GRAPHICS-FBSERV-FbsBitmap-PublicApi-0017-001command11Save - COMMAND CFbsBitmap1 Reset - COMMAND CFbsBitmap1 StoreL GRAPHICS-FBSERV-FbsBitmap-PublicApi-0017-001command13StoreL - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0017 - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0018 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0018 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor James Mechen -//! @SYMCreationDate 23/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc Load bitmap, duplicate it and save duplicate to file. -//! Uses API elements: Load(), Duplicate(), Save() -//! @SYMTestActions 1. Load bitmap from file. -//! 2. Instantiate another bitmap. -//! 2. Duplicate loaded bitmap by the second one. -//! 3. Save duplicate to file. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The methods return KErrNone and don't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - CREATE_OBJECT CFbsBitmap CFbsBitmap2 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Load GRAPHICS-FBSERV-FbsBitmap-PublicApi-0018-001command4Load - COMMAND CFbsBitmap1 Handle - COMMAND CFbsBitmap2 new - COMMAND CFbsBitmap2 Duplicate GRAPHICS-FBSERV-FbsBitmap-PublicApi-0018-001command7Duplicate - COMMAND CFbsBitmap2 Save GRAPHICS-FBSERV-FbsBitmap-PublicApi-0018-001command8Save - COMMAND CFbsBitmap1 ~ - COMMAND CFbsBitmap2 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0018 - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0019 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0019 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor James Mechen -//! @SYMCreationDate 23/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc Load bitmap and externalized it to a write stream. -//! Uses API elements: Create(), ExternalizeL(), InternalizeL() -//! @SYMTestActions 1. Create a bitmap. -//! 2. Externalize bitmap to write stream. -//! 3. Internalize bitmap from read stream. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Methods ExternalizeL() and InternalizeL() don't leave and don't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0019-001command4Create - COMMAND CFbsBitmap1 ExternalizeL GRAPHICS-FBSERV-FbsBitmap-PublicApi-0019-001command5ExternalizeL - COMMAND CFbsBitmap1 InternalizeL GRAPHICS-FBSERV-FbsBitmap-PublicApi-0019-001command6InternalizeL - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0019 - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0020 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0020 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor James Mechen -//! @SYMCreationDate 23/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc Load bitmap and externalized part of it to a write stream. -//! Uses API elements: Create(), ExternalizeRectangleL(), InternalizeL() -//! @SYMTestActions 1. Create a bitmap. -//! 2. Externalize part of bitmap to write stream. -//! 3. Internalize bitmap from read stream. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Methods ExternalizeRectangleL() and InternalizeL() don't leave and don't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0020-001command4Create - COMMAND CFbsBitmap1 ExternalizeRectangleL GRAPHICS-FBSERV-FbsBitmap-PublicApi-0020-001command5ExternalizeRectangleL - COMMAND CFbsBitmap1 InternalizeL GRAPHICS-FBSERV-FbsBitmap-PublicApi-0020-001command6InternalizeL - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0020 - - -//! START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0021 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0021 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor James Mechen -//! @SYMCreationDate 23/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc Create hardware bitmap -//! Uses API elements: CreateHardwareBitmap(), HardwareBitmapHandle() -//! @SYMTestActions 1. Create hardware bitmap. -//! 2. Get handle for hardware bitmap. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Hardware Bitmaps are not supported so expect panic on get handle -//! @SYMTestType CIT -//! START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini -//! CREATE_OBJECT RFbsSession RFbsSession1 -//! CREATE_OBJECT CFbsBitmap CFbsBitmap1 -//! COMMAND RFbsSession1 Connect -//! COMMAND CFbsBitmap1 new -//! COMMAND !Error=-5 CFbsBitmap1 CreateHardwareBitmap GRAPHICS-FBSERV-FbsBitmap-PublicApi-0021-001command4CreateHardwareBitmap -//! COMMAND CFbsBitmap1 HardwareBitmapHandle GRAPHICS-FBSERV-FbsBitmap-PublicApi-0021-001command5HardwareBitmapHandle -//! END_TEST_BLOCK !PanicCode=3 !PanicString=KERN-EXEC -//! RUN_TEST_STEP 100 T_FBServAPI utilityClearPanicDlg -//! END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0021 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0022 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0022 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor James Mechen -//! @SYMCreationDate 23/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc Load bitmap and set it to all display modes. -//! Uses API elements: Load(), SetDisplayMode(), DisplayMode(), InitialDisplayMode() -//! @SYMTestActions 1. Create bitmap with a certain display mode (take EColor256 = 6). -//! 2. Call DisplayMode() to check the display mode. -//! 3-15. Set then get all display modes that could be fit into EColor256 (1, 2, 3, 4, 5, 6) -//! 16. Get initial display mode. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Display modes are correctly set without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0022-001command4Create - COMMAND CFbsBitmap1 DisplayMode GRAPHICS-FBSERV-FbsBitmap-PublicApi-0022-001command5DisplayMode - COMMAND CFbsBitmap1 SetDisplayMode GRAPHICS-FBSERV-FbsBitmap-PublicApi-0022-001command6SetDisplayMode - COMMAND CFbsBitmap1 DisplayMode GRAPHICS-FBSERV-FbsBitmap-PublicApi-0022-001command7DisplayMode - COMMAND CFbsBitmap1 SetDisplayMode GRAPHICS-FBSERV-FbsBitmap-PublicApi-0022-001command8SetDisplayMode - COMMAND CFbsBitmap1 DisplayMode GRAPHICS-FBSERV-FbsBitmap-PublicApi-0022-001command9DisplayMode - COMMAND CFbsBitmap1 SetDisplayMode GRAPHICS-FBSERV-FbsBitmap-PublicApi-0022-001command10SetDisplayMode - COMMAND CFbsBitmap1 DisplayMode GRAPHICS-FBSERV-FbsBitmap-PublicApi-0022-001command11DisplayMode - COMMAND CFbsBitmap1 SetDisplayMode GRAPHICS-FBSERV-FbsBitmap-PublicApi-0022-001command12SetDisplayMode - COMMAND CFbsBitmap1 DisplayMode GRAPHICS-FBSERV-FbsBitmap-PublicApi-0022-001command13DisplayMode - COMMAND CFbsBitmap1 SetDisplayMode GRAPHICS-FBSERV-FbsBitmap-PublicApi-0022-001command14SetDisplayMode - COMMAND CFbsBitmap1 DisplayMode GRAPHICS-FBSERV-FbsBitmap-PublicApi-0022-001command15DisplayMode - COMMAND CFbsBitmap1 SetDisplayMode GRAPHICS-FBSERV-FbsBitmap-PublicApi-0022-001command16SetDisplayMode - COMMAND CFbsBitmap1 DisplayMode GRAPHICS-FBSERV-FbsBitmap-PublicApi-0022-001command17DisplayMode - COMMAND CFbsBitmap1 InitialDisplayMode GRAPHICS-FBSERV-FbsBitmap-PublicApi-0022-001command18InitialDisplayMode - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0022 - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0023 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0023 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor James Mechen -//! @SYMCreationDate 23/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::GetScanLine() (GetScanLine(TDes8 \&aBuf, const TPoint \&aPixel, TInt aLength, TDisplayMode aDispMode) version), -//! CFbsBitmap::SetScanLine(), GetVerticalScanLine() (both GetVerticalScanLine(TDes8 \&aBuf, TInt aX, TDisplayMode aDispMode) and -//! GetVerticalScanLine(TDes8 \&aBuf, TInt aX, const TPoint \&aDitherOffset, TDisplayMode aDispMode) versions) test. -//! Load bitmap and test setting/getting scanlines. -//! Uses API elements: Load(), SetScanLine(), GetScanLine(), GetVerticalScanLine() -//! @SYMTestActions 1. Create bitmap (10x10, EColor256). -//! 2. Set horizontal scanline using position 0 from data-file -//! 3. Get horizontal scanline with the same display mode starting at (0,0) and 10 bytes long -//! 4. Get vertical scanline of 0-th vertical with the same display mode -//! 5. Get vertical scanline of 0-th vertical with the same display mode using dithering offset (0,0) -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Scanlines are correctly set without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0023-001command4Create - COMMAND CFbsBitmap1 SetScanLine GRAPHICS-FBSERV-FbsBitmap-PublicApi-0023-001command5SetScanLine - COMMAND CFbsBitmap1 GetScanLine GRAPHICS-FBSERV-FbsBitmap-PublicApi-0023-001command6GetScanLine - COMMAND CFbsBitmap1 GetVerticalScanLine GRAPHICS-FBSERV-FbsBitmap-PublicApi-0023-001command7GetVerticalScanLine - COMMAND CFbsBitmap1 GetVerticalScanLine GRAPHICS-FBSERV-FbsBitmap-PublicApi-0023-001command8GetVerticalScanLine - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0023 - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0024 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0024 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor James Mechen -//! @SYMCreationDate 23/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::SizeInTwips(), CFbsBitmap::SetSizeInTwips() (both SetSizeInTwips(const MGraphicsDeviceMap *aMap) and SetSizeInTwips(const TSize \&aSizeInTwips) versions) test. -//! Load bitmap and test setting/getting size in twips. -//! Uses API elements: Load(), SetSizeInTwips(), SizeInTwips() -//! @SYMTestActions 1. Create bitmap. -//! 2-4. Set then get various twips sizes, checking that sizes match. -//! 5. Create a bitmap device object. -//! 6. Set twips size using the graphics device map. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Sizes in twips are correctly set without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - CREATE_OBJECT CFbsBitmapDevice CFbsBitmapDevice1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Load GRAPHICS-FBSERV-FbsBitmap-PublicApi-0024-001command4Load - COMMAND CFbsBitmap1 SetSizeInTwips GRAPHICS-FBSERV-FbsBitmap-PublicApi-0024-001command5SetSizeInTwips - COMMAND CFbsBitmap1 SizeInTwips GRAPHICS-FBSERV-FbsBitmap-PublicApi-0024-001command6SizeInTwips - COMMAND CFbsBitmap1 SetSizeInTwips GRAPHICS-FBSERV-FbsBitmap-PublicApi-0024-001command7SetSizeInTwips - COMMAND CFbsBitmap1 SizeInTwips GRAPHICS-FBSERV-FbsBitmap-PublicApi-0024-001command8SizeInTwips - COMMAND CFbsBitmap1 SetSizeInTwips GRAPHICS-FBSERV-FbsBitmap-PublicApi-0024-001command9SetSizeInTwips - COMMAND CFbsBitmap1 SizeInTwips GRAPHICS-FBSERV-FbsBitmap-PublicApi-0024-001command10SizeInTwips - COMMAND CFbsBitmap1 SetSizeInTwips GRAPHICS-FBSERV-FbsBitmap-PublicApi-0024-001command11SetSizeInTwips - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0024 - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0025 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0025 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor James Mechen -//! @SYMCreationDate 23/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc Open bitmap files and test various get methods. -//! Uses API elements: Load(), DataStride(), Handle(), IsLargeBitmap(), -//! IsMonochrome(), SizeInPixels() -//! @SYMTestActions 1. Load bitmap file. -//! 2. Get length in bytes between scanlines in memory. -//! 3. Get handle number of the bitmap. -//! 4. Get whether bitmap is large and check it to be as expected. -//! 5. Get whether bitmap is monochrome and check it to be as expected. -//! 6. Get pixel-size of bitmap. -//! 7-12. Repeat 1-6 for another file. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Get methods work correctly without causing panic for images loaded. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - CREATE_OBJECT CFbsBitmap CFbsBitmap2 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Load GRAPHICS-FBSERV-FbsBitmap-PublicApi-0025-001command4Load - COMMAND CFbsBitmap1 DataStride - COMMAND CFbsBitmap1 Handle - COMMAND CFbsBitmap1 IsLargeBitmap GRAPHICS-FBSERV-FbsBitmap-PublicApi-0025-001command7IsLargeBitmap - COMMAND CFbsBitmap1 IsMonochrome GRAPHICS-FBSERV-FbsBitmap-PublicApi-0025-001command8IsMonochrome - COMMAND CFbsBitmap1 SizeInPixels GRAPHICS-FBSERV-FbsBitmap-PublicApi-0025-001command9SizeInPixels - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Load GRAPHICS-FBSERV-FbsBitmap-PublicApi-0025-001command12Load - COMMAND CFbsBitmap1 DataStride - COMMAND CFbsBitmap1 Handle - COMMAND CFbsBitmap1 IsLargeBitmap GRAPHICS-FBSERV-FbsBitmap-PublicApi-0025-001command15IsLargeBitmap - COMMAND CFbsBitmap1 IsMonochrome GRAPHICS-FBSERV-FbsBitmap-PublicApi-0025-001command16IsMonochrome - COMMAND CFbsBitmap1 SizeInPixels GRAPHICS-FBSERV-FbsBitmap-PublicApi-0025-001command17SizeInPixels - COMMAND CFbsBitmap1 ~ - COMMAND CFbsBitmap2 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0025 - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0026 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0026 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor James Mechen -//! @SYMCreationDate 23/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc Load bitmap and get RGB value of various pixels. -//! Uses API elements: Load(), GetPixel() -//! @SYMTestActions 1. Load bitmap. -//! 2-6. Get RGB value of various pixels and check them to be as expected. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults RGB values of pixels are returned without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Load GRAPHICS-FBSERV-FbsBitmap-PublicApi-0026-001command4Load - COMMAND CFbsBitmap1 GetPixel GRAPHICS-FBSERV-FbsBitmap-PublicApi-0026-001command5GetPixel - COMMAND CFbsBitmap1 GetPixel GRAPHICS-FBSERV-FbsBitmap-PublicApi-0026-001command6GetPixel - COMMAND CFbsBitmap1 GetPixel GRAPHICS-FBSERV-FbsBitmap-PublicApi-0026-001command7GetPixel - COMMAND CFbsBitmap1 GetPixel GRAPHICS-FBSERV-FbsBitmap-PublicApi-0026-001command8GetPixel - COMMAND CFbsBitmap1 GetPixel GRAPHICS-FBSERV-FbsBitmap-PublicApi-0026-001command9GetPixel - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0026 - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0027 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0027 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor James Mechen -//! @SYMCreationDate 23/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc IsFileInRom() (both IsFileInRom(const TDesC \&aFilename, TUint32 *\&aWord) and IsFileInRom(RFile \&aFile, TUint32 *\&aWord) versions), -//! SetRomBitmapL(), IsRomBitmap() test. Load bitmap into ROM and test ROM methods. -//! Uses API elements: Load(), IsFileInRom(), SetRomBitmapL(), IsRomBitmap() -//! @SYMTestActions 1. Load bitmap from C drive, without using RFile. -//! 2. Get if the file is in ROM (expect return value FALSE), without using RFile. -//! 3. Load another bitmap from ROM, without using RFile. -//! 4. Get if the file is in ROM (expect return value TRUE), using RFile. -//! 5. Reset the first bitmap. -//! 6. Set the first bitmap to use the bitmap image stored in ROM. -//! 7. Get if bitmap is in ROM. -//! 8-14. Repeat 1-6 using RFile. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults ROM methods work correctly without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - CREATE_OBJECT CFbsBitmap CFbsBitmap2 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Load GRAPHICS-FBSERV-FbsBitmap-PublicApi-0027-001command4Load - COMMAND CFbsBitmap1 IsFileInRom GRAPHICS-FBSERV-FbsBitmap-PublicApi-0027-001command5IsFileInRom - COMMAND CFbsBitmap2 new - COMMAND CFbsBitmap2 Load GRAPHICS-FBSERV-FbsBitmap-PublicApi-0027-001command8Load - COMMAND CFbsBitmap2 IsFileInRom GRAPHICS-FBSERV-FbsBitmap-PublicApi-0027-001command9IsFileInRom - COMMAND CFbsBitmap2 IsRomBitmap GRAPHICS-FBSERV-FbsBitmap-PublicApi-0027-001command10IsRomBitmap - COMMAND CFbsBitmap1 Reset - COMMAND CFbsBitmap1 SetRomBitmapL GRAPHICS-FBSERV-FbsBitmap-PublicApi-0027-001command13SetRomBitmapL - COMMAND CFbsBitmap1 IsRomBitmap GRAPHICS-FBSERV-FbsBitmap-PublicApi-0027-001command14IsRomBitmap - COMMAND CFbsBitmap1 ~ - COMMAND CFbsBitmap2 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0027 - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0028 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0028 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor James Mechen -//! @SYMCreationDate 23/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc Get scanline length for all legal display modes. -//! Uses API elements: ScanLineLength() -//! @SYMTestActions 1-11. Get scanline lengths for all display modes (except ENone, ERgb, EColorLast) and various lengths and check them to be as expected. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Scanline lengths are correctly returned without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 ScanLineLength GRAPHICS-FBSERV-FbsBitmap-PublicApi-0028-001command3ScanLineLength - COMMAND CFbsBitmap1 ScanLineLength GRAPHICS-FBSERV-FbsBitmap-PublicApi-0028-001command4ScanLineLength - COMMAND CFbsBitmap1 ScanLineLength GRAPHICS-FBSERV-FbsBitmap-PublicApi-0028-001command5ScanLineLength - COMMAND CFbsBitmap1 ScanLineLength GRAPHICS-FBSERV-FbsBitmap-PublicApi-0028-001command6ScanLineLength - COMMAND CFbsBitmap1 ScanLineLength GRAPHICS-FBSERV-FbsBitmap-PublicApi-0028-001command7ScanLineLength - COMMAND CFbsBitmap1 ScanLineLength GRAPHICS-FBSERV-FbsBitmap-PublicApi-0028-001command8ScanLineLength - COMMAND CFbsBitmap1 ScanLineLength GRAPHICS-FBSERV-FbsBitmap-PublicApi-0028-001command9ScanLineLength - COMMAND CFbsBitmap1 ScanLineLength GRAPHICS-FBSERV-FbsBitmap-PublicApi-0028-001command10ScanLineLength - COMMAND CFbsBitmap1 ScanLineLength GRAPHICS-FBSERV-FbsBitmap-PublicApi-0028-001command11ScanLineLength - COMMAND CFbsBitmap1 ScanLineLength GRAPHICS-FBSERV-FbsBitmap-PublicApi-0028-001command12ScanLineLength - COMMAND CFbsBitmap1 ScanLineLength GRAPHICS-FBSERV-FbsBitmap-PublicApi-0028-001command13ScanLineLength - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0028 - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0029 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0029 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor James Mechen -//! @SYMCreationDate 23/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc Load bitmap and resize several times. -//! Uses API elements: Load(), Resize(), SwapWidthAndHeight(), SizeInPixels() -//! @SYMTestActions 1. Load bitmap. -//! 2. Resize bitmap to larger than original size. -//! 3. Get size of bitmap. -//! 4. Resize bitmap back to original size. -//! 5. Get size of bitmap. -//! 6. Resize bitmap to small than original size. -//! 7. Get size of bitmap. -//! 8. Swap width and height of bitmap. -//! 9. Get size of bitmap. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Bitmap is resized correctly without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Load GRAPHICS-FBSERV-FbsBitmap-PublicApi-0029-001command4Load - COMMAND CFbsBitmap1 SizeInPixels GRAPHICS-FBSERV-FbsBitmap-PublicApi-0029-001command5SizeInPixels - COMMAND CFbsBitmap1 Resize GRAPHICS-FBSERV-FbsBitmap-PublicApi-0029-001command6Resize - COMMAND CFbsBitmap1 SizeInPixels GRAPHICS-FBSERV-FbsBitmap-PublicApi-0029-001command7SizeInPixels - COMMAND CFbsBitmap1 Resize GRAPHICS-FBSERV-FbsBitmap-PublicApi-0029-001command8Resize - COMMAND CFbsBitmap1 SizeInPixels GRAPHICS-FBSERV-FbsBitmap-PublicApi-0029-001command9SizeInPixels - COMMAND CFbsBitmap1 Resize GRAPHICS-FBSERV-FbsBitmap-PublicApi-0029-001command10Resize - COMMAND CFbsBitmap1 SizeInPixels GRAPHICS-FBSERV-FbsBitmap-PublicApi-0029-001command11SizeInPixels - COMMAND CFbsBitmap1 SwapWidthAndHeight - COMMAND CFbsBitmap1 SizeInPixels GRAPHICS-FBSERV-FbsBitmap-PublicApi-0029-001command13SizeInPixels - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0029 - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0030 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0030 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor James Mechen -//! @SYMCreationDate 23/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc Load bitmap and convert horiz/vert dimensions on graphics device between pixels and twips. -//! Uses API elements: Load(), HorizontalPixelsToTwips(), HorizontalTwipsToPixels(), -//! VerticalPixelsToTwips(), VerticalTwipsToPixels() -//! @SYMTestActions 1. Load bitmap. -//! 2. Convert horiz dimensions on graphics device from pixels to twips and check it to be as expected. -//! 3. Convert horiz dimensions on graphics device back to pixels from twips and check it to be as expected. -//! 4. Convert vert dimensions on graphics device from pixels to twips and check it to be as expected. -//! 5. Convert vert dimensions on graphics device back to pixels from twips and check it to be as expected. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Conversions are done correctly without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Load GRAPHICS-FBSERV-FbsBitmap-PublicApi-0030-001command4Load - COMMAND CFbsBitmap1 HorizontalPixelsToTwips GRAPHICS-FBSERV-FbsBitmap-PublicApi-0030-001command5HorizontalPixelsToTwips - COMMAND CFbsBitmap1 HorizontalTwipsToPixels GRAPHICS-FBSERV-FbsBitmap-PublicApi-0030-001command6HorizontalTwipsToPixels - COMMAND CFbsBitmap1 VerticalPixelsToTwips GRAPHICS-FBSERV-FbsBitmap-PublicApi-0030-001command7VerticalPixelsToTwips - COMMAND CFbsBitmap1 VerticalTwipsToPixels GRAPHICS-FBSERV-FbsBitmap-PublicApi-0030-001command8VerticalTwipsToPixels - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0030 - -/////////////////////////////////////////////////////////////////////////////////// -// NEGATIVE TESTS -/////////////////////////////////////////////////////////////////////////////////// - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0032 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0032 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor James Mechen -//! @SYMCreationDate 30/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc Load bitmap and set it to invalid display mode. -//! Uses API elements: SetDisplayMode() -//! @SYMTestActions 1. Create bitmap. -//! 2. Set invalid display mode. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults KErrArgument is returned. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0032-001command4Create - COMMAND !Error=-6 CFbsBitmap1 SetDisplayMode GRAPHICS-FBSERV-FbsBitmap-PublicApi-0032-001command5SetDisplayMode - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0032 - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0033 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0033 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor James Mechen -//! @SYMCreationDate 30/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc Set a bitmap to use the bitmap image stored in ROM, giving a bad pointer value. -//! Uses API elements: SetRomBitmapL() -//! @SYMTestActions 1. Set a bitmap to use the bitmap image stored in ROM. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults KErrUnknown is returned. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND !Error=-19 CFbsBitmap1 SetRomBitmapL GRAPHICS-FBSERV-FbsBitmap-PublicApi-0033-001command4SetRomBitmapL - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0033 - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0034 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0034 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor James Mechen -//! @SYMCreationDate 30/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc Create bitmap with negative width. -//! Uses API elements: Create() -//! @SYMTestActions 1. Create bitmap with negative width. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults KErrArgument is returned. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND !Error=-6 CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0034-001command4Create - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0034 - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0035 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0035 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor James Mechen -//! @SYMCreationDate 22/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc Create bitmap with display mode ENone. -//! Uses API elements: Create() -//! @SYMTestActions 1. Create bitmap with display modes ENone. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Create() call must return error KErrArgument (-6). -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND !Error=-6 CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0035-001command4Create - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0035 - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0036 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0036 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor James Mechen -//! @SYMCreationDate 22/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc Create bitmap with display mode ERgb. -//! Uses API elements: Create() -//! @SYMTestActions 1. Create bitmap with display modes ERgb. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Create() call must return error KErrArgument (-6). -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND !Error=-6 CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0036-001command4Create - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0036 - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0037 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0037 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor James Mechen -//! @SYMCreationDate 30/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc Duplicate it with invalid handle. -//! Uses API elements: Load(), Duplicate() -//! @SYMTestActions 1. Duplicate bitmap with invalid handle. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults KErrUnknown is returned. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - CREATE_OBJECT CFbsBitmap CFbsBitmap2 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap2 new - COMMAND !Error=-19 CFbsBitmap2 Duplicate GRAPHICS-FBSERV-FbsBitmap-PublicApi-0037-001command6Duplicate - COMMAND CFbsBitmap1 ~ - COMMAND CFbsBitmap2 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0037 - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0038 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0038 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 19/05/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::Header() test. -//! Uses API elements: Create(), Header() -//! @SYMTestActions 1. Create bitmap. -//! 2. Call Header() method. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function Header() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0038-001command4Create - COMMAND CFbsBitmap1 Header - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0038 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0039 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0039 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 19/05/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc Test of not supported (by the documentation of Symbian platform 9.3) CFbsBitmap::PaletteAttributes(). -//! Uses API elements: PaletteAttributes() -//! @SYMTestActions 1. Create bitmap. -//! 2. Call PaletteAttributes() method. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults PaletteAttributes() call must raise panic -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0039-001command4Create - COMMAND CFbsBitmap1 PaletteAttributes - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0039 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 19/05/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc Test of not supported (by the documentation of Symbian platform 9.3) CFbsBitmap::SetPalette(). -//! Uses API elements: SetPalette() -//! @SYMTestActions 1. Create bitmap. -//! 2. Call SetPalette() for different defualt palettes (all display modes) -//! 3. Call SetPalette() for different custom palettes having different number of colors -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function SetPalette() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - CREATE_OBJECT CPalette CPalette1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command4Create - COMMAND CPalette1 NewDefaultL GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command6NewDefaultL - COMMAND CFbsBitmap1 SetPalette GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command8SetPalette - COMMAND CPalette1 NewDefaultL GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command10NewDefaultL - COMMAND CFbsBitmap1 SetPalette GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command12SetPalette - COMMAND CPalette1 NewDefaultL GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command14NewDefaultL - COMMAND CFbsBitmap1 SetPalette GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command16SetPalette - COMMAND CPalette1 NewDefaultL GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command18NewDefaultL - COMMAND CFbsBitmap1 SetPalette GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command20SetPalette - COMMAND CPalette1 NewDefaultL GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command22NewDefaultL - COMMAND CFbsBitmap1 SetPalette GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command24SetPalette - COMMAND CPalette1 NewDefaultL GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command26NewDefaultL - COMMAND CFbsBitmap1 SetPalette GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command28SetPalette - COMMAND CPalette1 NewL GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command30NewL - COMMAND CFbsBitmap1 SetPalette GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command32SetPalette - COMMAND CPalette1 NewL GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command34NewL - COMMAND CFbsBitmap1 SetPalette GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command36SetPalette - COMMAND CPalette1 NewL GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command38NewL - COMMAND CFbsBitmap1 SetPalette GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command40SetPalette - COMMAND CPalette1 NewL GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command42NewL - COMMAND CFbsBitmap1 SetPalette GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command44SetPalette - COMMAND CPalette1 NewL GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command46NewL - COMMAND CFbsBitmap1 SetPalette GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command48SetPalette - COMMAND CPalette1 NewL GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command50NewL - COMMAND CFbsBitmap1 SetPalette GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command52SetPalette - COMMAND CPalette1 NewL GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command54NewL - COMMAND CFbsBitmap1 SetPalette GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command56SetPalette - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - COMMAND CPalette1 ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0041 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0041 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 19/05/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc Test of not supported (by the documentation of Symbian platform 9.3) CFbsBitmap::SetPalette(). -//! Uses API elements: SetPalette() -//! @SYMTestActions 1. Create bitmap. -//! 2. Call SetPalette() passing NULL pointer -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function SetPalette() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - CREATE_OBJECT CPalette CPalette1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0041-001command4Create - COMMAND CFbsBitmap1 SetPalette GRAPHICS-FBSERV-FbsBitmap-PublicApi-0041-001command5SetPalette - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0041 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0042 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0042 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 19/05/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc Test of not supported (by the documentation of Symbian platform 9.3) CFbsBitmap::GetPalette(). -//! Uses API elements: GetPalette() -//! @SYMTestActions 1. Create bitmap. -//! 2. Call GetPalette() method. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults GetPalette() call must return KErrNotSupported (-5). -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0042-001command4Create - COMMAND !Error=-5 CFbsBitmap1 GetPalette - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0042 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0043 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0043 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Louis Henry Nayegon -//! @SYMCreationDate 14/07/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::CompressInBackground() test (CompressInBackground(TBitmapfileCompressionScheme \&aScheme) version). Load then compress a bitmap in background, without providing a Request Status. -//! Uses API elements: Load(), CompressInBackground(), IsCompressedInRAM() -//! @SYMTestActions 1. Load a bitmap from a multi-bitmap file. -//! 2. Compress bitmap in background. -//! 3. Wait 1 second -//! 3. Check bitmap is compressed in RAM. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Bitmap is not compressed in background as this is not supported -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND RFbsSession1 GetSession - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Load GRAPHICS-FBSERV-FbsBitmap-PublicApi-0043-001command5Load - COMMAND CFbsBitmap1 CompressInBackground GRAPHICS-FBSERV-FbsBitmap-PublicApi-0043-001command6CompressInBackground - COMMAND RFbsSession1 SendCommand GRAPHICS-FBSERV-FbsBitmap-PublicApi-0043-001command8SendCommand - ASYNC_DELAY 1000 - COMMAND CFbsBitmap1 IsCompressedInRAM GRAPHICS-FBSERV-FbsBitmap-PublicApi-0043-001command10IsCompressedInRAM - OUTSTANDING - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0043 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0044 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0044 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Louis Henry Nayegon -//! @SYMCreationDate 14/07/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::CompressInBackground() test (CompressInBackground(TRequestStatus \&aRequestStatus, TBitmapfileCompressionScheme \&aScheme) version). Load then compress a bitmap in background, providing a Request Status. -//! Uses API elements: Load(), CompressInBackground(), IsCompressedInRAM() -//! @SYMTestActions 1. Load a bitmap from a multi-bitmap file. -//! 2. Compress bitmap in background. -//! 3. Check bitmap is compressed in RAM. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Bitmap is not compressed in background as this is not supported -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND RFbsSession1 GetSession - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Load GRAPHICS-FBSERV-FbsBitmap-PublicApi-0044-001command5Load - COMMAND !AsyncError=-5 CFbsBitmap1 CompressInBackground GRAPHICS-FBSERV-FbsBitmap-PublicApi-0044-001command7CompressInBackground - COMMAND RFbsSession1 SendCommand GRAPHICS-FBSERV-FbsBitmap-PublicApi-0044-001command9SendCommand - OUTSTANDING - COMMAND CFbsBitmap1 IsCompressedInRAM GRAPHICS-FBSERV-FbsBitmap-PublicApi-0044-001command12IsCompressedInRAM - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0044 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0045 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0045 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Louis Henry Nayegon -//! @SYMCreationDate 14/07/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc Load then compress a bitmap file. -//! Uses API elements: Load(), Compress(TBitmapfileCompressionScheme \&aScheme), IsCompressedInRAM() -//! @SYMTestActions 1. Load a bitmap from a multi-bitmap file. -//! 2. Compress bitmap. -//! 3. Check bitmap is compressed in RAM. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Bitmap is compressed with no errors. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Load GRAPHICS-FBSERV-FbsBitmap-PublicApi-0045-001command4Load - COMMAND !Error=-5 CFbsBitmap1 Compress GRAPHICS-FBSERV-FbsBitmap-PublicApi-0045-001command5Compress - COMMAND CFbsBitmap1 IsCompressedInRAM GRAPHICS-FBSERV-FbsBitmap-PublicApi-0045-001command6IsCompressedInRAM - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0045 - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0048 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0048 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc Calls Reset() on bitmap that wasn't neither created nor loaded. -//! Uses API elements: Load(), Reset() -//! @SYMTestActions 1. Construct a bitmap instance using new operator. -//! 2. Call Reset() method. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function Reset() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Reset - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0048 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0049 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0049 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc ScanLineLength() with negative length test -//! Uses API elements: ScanLineLength() -//! @SYMTestActions 1. Call ScanLineLength() with length -1 and check it to be as expected. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function ScanLineLength() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 ScanLineLength GRAPHICS-FBSERV-FbsBitmap-PublicApi-0049-001command3ScanLineLength - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0049 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0050 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0050 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc ScanLineLength() with not allowed display mode ENone test -//! Uses API elements: ScanLineLength() -//! @SYMTestActions 1. Call ScanLineLength() with display mode ENone and check it to be as expected. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function ScanLineLength() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 ScanLineLength GRAPHICS-FBSERV-FbsBitmap-PublicApi-0050-001command3ScanLineLength - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0050 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0051 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0051 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc Call ScanLineLength() with not allowed display mode ERgb test -//! Uses API elements: ScanLineLength() -//! @SYMTestActions 1. Call ScanLineLength() with display mode ERgb and check it to be as expected. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function ScanLineLength() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 ScanLineLength GRAPHICS-FBSERV-FbsBitmap-PublicApi-0051-001command3ScanLineLength - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0051 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0052 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0052 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc Call ScanLineLength() with not allowed display mode EColorLast test -//! Uses API elements: ScanLineLength() -//! @SYMTestActions 1. Call ScanLineLength() with display mode EColorLast and check it to be as expected. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Operation must panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 ScanLineLength GRAPHICS-FBSERV-FbsBitmap-PublicApi-0052-001command3ScanLineLength - END_TEST_BLOCK !PanicCode=10 !PanicString=FBSCLI - RUN_TEST_STEP 100 T_FBServAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0052 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0053 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0053 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc Call ScanLineLength() with invalid display mode test -//! Uses API elements: ScanLineLength() -//! @SYMTestActions 1. Call ScanLineLength() with display mode -1 and check it to be as expected. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Operation must panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 ScanLineLength GRAPHICS-FBSERV-FbsBitmap-PublicApi-0053-001command3ScanLineLength - END_TEST_BLOCK !PanicCode=10 !PanicString=FBSCLI - RUN_TEST_STEP 100 T_FBServAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0053 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0054 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0054 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc Create bitmap with display mode EColorLast. -//! Uses API elements: Create() -//! @SYMTestActions 1. Create bitmap with display modes EColorLast. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Create() call must return error KErrArgument (-6). -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND !Error=-6 CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0054-001command4Create - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0054 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0055 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0055 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc Create bitmap with invalid display mode. -//! Uses API elements: Create() -//! @SYMTestActions 1. Create bitmap with invalid display mode -1. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Create() call must return error KErrArgument (-6). -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND !Error=-6 CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0055-001command4Create - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0055 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0056 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0056 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc Create bitmap with negative height. -//! Uses API elements: Create() -//! @SYMTestActions 1. Create bitmap with negative height. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults KErrArgument is returned. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND !Error=-6 CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0056-001command4Create - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0056 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0057 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0057 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc Create bitmap with negative width and height. -//! Uses API elements: Create() -//! @SYMTestActions 1. Create bitmap with negative width and height. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults KErrArgument is returned. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND !Error=-6 CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0057-001command4Create - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0057 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0058 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0058 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc Create bitmap with zero-size. -//! Uses API elements: Create() -//! @SYMTestActions 1. Create bitmap with 0x0 size. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The function Create() call returns KErrNone and doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0058-001command4Create - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0058 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0059 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0059 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::Load() (Load(const TDesC &aFileName, TInt32 aId=0, TBool aShareIfLoaded=ETrue) version) test with inexistant file. -//! Uses API elements: Load() -//! @SYMTestActions 1. Call Load() providing wrong path as argument. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Operation must return error KErrNotFound (-1) -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND !Error=-1 CFbsBitmap1 Load GRAPHICS-FBSERV-FbsBitmap-PublicApi-0059-001command4Load - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0059 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0060 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0060 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::Load() (Load(const TDesC &aFileName, TInt32 aId=0, TBool aShareIfLoaded=ETrue) version) test with directory path instead of file path. -//! Uses API elements: Load() -//! @SYMTestActions 1. Call Load() providing directory path instead of file path as argument. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Operation must return error KErrAccessDenied (-21) -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND !Error=-21 CFbsBitmap1 Load GRAPHICS-FBSERV-FbsBitmap-PublicApi-0060-001command4Load - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0060 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0061 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0061 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::Load() (Load(const TDesC &aFileName, TInt32 aId=0, TBool aShareIfLoaded=ETrue) version) test with empty file as argument. -//! Uses API elements: Load() -//! @SYMTestActions 1. Call Load() providing empty file as argument. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Operation must error KErrEof (-25) -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND !Error=-25 CFbsBitmap1 Load GRAPHICS-FBSERV-FbsBitmap-PublicApi-0061-001command4Load - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0061 - - -//!START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0062 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0062 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::Load() (Load(RFile &aFile, TInt32 aId=0, TBool aShareIfLoaded=ETrue) version) test with closed file handle as argument. -//! Uses API elements: Load() -//! @SYMTestActions 1. Call Load() providing a closed file handle as argument. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Operation must panic -//! @SYMTestType CIT -//! START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini -//! CREATE_OBJECT RFbsSession RFbsSession1 -//! CREATE_OBJECT CFbsBitmap CFbsBitmap1 -//! COMMAND RFbsSession1 Connect -//! COMMAND CFbsBitmap1 new -//! COMMAND CFbsBitmap1 Load GRAPHICS-FBSERV-FbsBitmap-PublicApi-0062-001command4Load -//! END_TEST_BLOCK !PanicCode=0 !PanicString=KERN-EXEC -//! RUN_TEST_STEP 100 T_FBServAPI utilityClearPanicDlg -//!END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0062 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0063 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0063 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::Load() (Load(const TDesC &aFileName, TInt32 aId, TBool aShareIfLoaded, TUint aFileOffset) version) test with out of range offset. -//! Uses API elements: Load() -//! @SYMTestActions 1. Call Load() giving real bitmap file as argument but out of range offset. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Operation must error KErrEof (-25) -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND !Error=-25 CFbsBitmap1 Load GRAPHICS-FBSERV-FbsBitmap-PublicApi-0063-001command4Load - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0063 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0064 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0064 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::Load() (Load(const TDesC &aFileName, TInt32 aId, TBool aShareIfLoaded, TUint aFileOffset) version) test with negative offset. -//! Uses API elements: Load() -//! @SYMTestActions 1. Call Load() giving real bitmap file as argument but negative offset. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Load() must return error KErrArgument (-6) -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND !Error=-6 CFbsBitmap1 Load GRAPHICS-FBSERV-FbsBitmap-PublicApi-0064-001command4Load - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0064 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0065 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0065 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::Load() (Load(const TDesC &aFileName, TInt32 aId, TBool aShareIfLoaded, TUint aFileOffset) version) test with out of range bitmap id. -//! Uses API elements: Load() -//! @SYMTestActions 1. Call Load() giving real bitmap file as argument but out of range bitmap id. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Operation must error KErrEof (-25) -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND !Error=-25 CFbsBitmap1 Load GRAPHICS-FBSERV-FbsBitmap-PublicApi-0065-001command4Load - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0065 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0066 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0066 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::Load() (Load(const TDesC &aFileName, TInt32 aId, TBool aShareIfLoaded, TUint aFileOffset) version) test with negative bitmap id. -//! Uses API elements: Load() -//! @SYMTestActions 1. Call Load() giving real bitmap file as argument but negative bitmap id. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Operation must error KErrEof (-25) -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND !Error=-25 CFbsBitmap1 Load GRAPHICS-FBSERV-FbsBitmap-PublicApi-0066-001command4Load - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0066 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0067 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0067 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::LoadAndCompress() (LoadAndCompress(const TDesC &aFileName, TInt32 aId=0, TBool aShareIfLoaded=ETrue) version) test with inexistant file. -//! Uses API elements: LoadAndCompress() -//! @SYMTestActions 1. Call Load() providing wrong path as argument. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Operation must return error KErrNotFound (-1) -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND !Error=-1 CFbsBitmap1 LoadAndCompress GRAPHICS-FBSERV-FbsBitmap-PublicApi-0067-001command4LoadAndCompress - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0067 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0068 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0068 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::LoadAndCompress() (LoadAndCompress(const TDesC &aFileName, TInt32 aId=0, TBool aShareIfLoaded=ETrue) version) test with directory path instead of file path. -//! Uses API elements: LoadAndCompress() -//! @SYMTestActions 1. Call LoadAndCompress() providing directory path instead of file path as argument. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Operation must return error KErrAccessDenied (-21) -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND !Error=-21 CFbsBitmap1 LoadAndCompress GRAPHICS-FBSERV-FbsBitmap-PublicApi-0068-001command4LoadAndCompress - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0068 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0069 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0069 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::LoadAndCompress() (LoadAndCompress(const TDesC &aFileName, TInt32 aId=0, TBool aShareIfLoaded=ETrue) version) test with non-bitmap file as argument. -//! Uses API elements: LoadAndCompress() -//! @SYMTestActions 1. Call LoadAndCompress() providing non-bitmap file as argument. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Operation must return error KErrEof (-25) -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND !Error=-25 CFbsBitmap1 LoadAndCompress GRAPHICS-FBSERV-FbsBitmap-PublicApi-0069-001command4LoadAndCompress - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0069 - - -//!START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0070 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0070 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::LoadAndCompress() (LoadAndCompress(RFile &aFile, TInt32 aId=0, TBool aShareIfLoaded=ETrue) version) test with closed file handle as argument. -//! Uses API elements: LoadAndCompress() -//! @SYMTestActions 1. Call LoadAndCompress() providing closed file handle as argument. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Operation must panic -//! @SYMTestType CIT -//! START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini -//! CREATE_OBJECT RFbsSession RFbsSession1 -//! CREATE_OBJECT CFbsBitmap CFbsBitmap1 -//! COMMAND RFbsSession1 Connect -//! COMMAND CFbsBitmap1 new -//! COMMAND CFbsBitmap1 LoadAndCompress GRAPHICS-FBSERV-FbsBitmap-PublicApi-0070-001-LoadAndCompress_command04 -//! END_TEST_BLOCK !PanicCode=0 !PanicString=KERN-EXEC -//! RUN_TEST_STEP 100 T_FBServAPI utilityClearPanicDlg -//!END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0070 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0071 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0071 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::LoadAndCompress() (LoadAndCompress(const TDesC &aFileName, TInt32 aId, TBool aShareIfLoaded, TUint aFileOffset) version) test with out of range offset. -//! Uses API elements: LoadAndCompress() -//! @SYMTestActions 1. Call LoadAndCompress() giving real bitmap file as argument but out of range offset. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Operation must return error KErrEof (-25) -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND !Error=-25 CFbsBitmap1 LoadAndCompress GRAPHICS-FBSERV-FbsBitmap-PublicApi-0071-001command4LoadAndCompress - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0071 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0072 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0072 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::LoadAndCompress() (LoadAndCompress(const TDesC &aFileName, TInt32 aId, TBool aShareIfLoaded, TUint aFileOffset) version) test with negative offset. -//! Uses API elements: LoadAndCompress() -//! @SYMTestActions 1. Call LoadAndCompress() giving real bitmap file as argument but negative offset. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults LoadAndCompress() must return error KErrArgument (-6) -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND !Error=-6 CFbsBitmap1 LoadAndCompress GRAPHICS-FBSERV-FbsBitmap-PublicApi-0072-001command4LoadAndCompress - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0072 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0073 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0073 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::LoadAndCompress() (LoadAndCompress(const TDesC &aFileName, TInt32 aId, TBool aShareIfLoaded, TUint aFileOffset) version) test with out of range bitmap id. -//! Uses API elements: LoadAndCompress() -//! @SYMTestActions 1. Call LoadAndCompress() giving real bitmap file as argument but out of range bitmap id. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Operation must return error KErrEof (-25) -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND !Error=-25 CFbsBitmap1 LoadAndCompress GRAPHICS-FBSERV-FbsBitmap-PublicApi-0073-001command4LoadAndCompress - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0073 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0074 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0074 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::LoadAndCompress() (LoadAndCompress(const TDesC &aFileName, TInt32 aId, TBool aShareIfLoaded, TUint aFileOffset) version) test with negative bitmap id. -//! Uses API elements: LoadAndCompress() -//! @SYMTestActions 1. Call LoadAndCompress() giving real bitmap file as argument but negative bitmap id. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Operation must return error KErrEof (-25) -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND !Error=-25 CFbsBitmap1 LoadAndCompress GRAPHICS-FBSERV-FbsBitmap-PublicApi-0074-001command4LoadAndCompress - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0074 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0075 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0075 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::Save() (Save(const TDesC &aFilename) version) test with not fully constructed bitmap. -//! Uses API elements: Save() -//! @SYMTestActions 1. Construct a bitmap but don't load or create it. -//! 2. Call Save() without using RFile. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Operation must return error KErrGeneral (-2) -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND !Error=-2 CFbsBitmap1 Save GRAPHICS-FBSERV-FbsBitmap-PublicApi-0075-001command4Save - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0075 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0076 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0076 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::Save() (Save(RFile &aFile) version) test with not fully constructed bitmap. -//! Uses API elements: Save() -//! @SYMTestActions 1. Construct a bitmap but don't load or create it. -//! 2. Call Save() using RFile. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Operation must return error KErrGeneral (-2) -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND !Error=-2 CFbsBitmap1 Save GRAPHICS-FBSERV-FbsBitmap-PublicApi-0076-001command4Save - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0076 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0077 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0077 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::Save() (Save(const TDesC &aFilename) version) test providing directory path instead of file path. -//! Uses API elements: Save() -//! @SYMTestActions 1. Create a bitmap. -//! 2. Call Save() without using RFile providing directory path instead of file path. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Operation must return error KErrAccessDenied (-21) -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0077-001command4Create - COMMAND !Error=-21 CFbsBitmap1 Save GRAPHICS-FBSERV-FbsBitmap-PublicApi-0077-001command5Save - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0077 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0078 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0078 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::Save() (Save(const TDesC &aFilename) version) test providing a file path that resides in inexistant directory. -//! Uses API elements: Save() -//! @SYMTestActions 1. Create a bitmap. -//! 2. Call Save() without using RFile providing a file path that resides in inexistant directory. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Operation must return error KErrPathNotFound (-12) -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0078-001command4Create - COMMAND !Error=-12 CFbsBitmap1 Save GRAPHICS-FBSERV-FbsBitmap-PublicApi-0078-001command5Save - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0078 - - -//!START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0079 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0079 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::Save() (Save(RFile &aFile) version) test providing invalid (closed) file handle. -//! Uses API elements: Save() -//! @SYMTestActions 1. Create a bitmap. -//! 2. Call Save() using RFile providing invalid (closed) file handle. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Operation must panic -//! @SYMTestType CIT -//! START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini -//! CREATE_OBJECT RFbsSession RFbsSession1 -//! CREATE_OBJECT CFbsBitmap CFbsBitmap1 -//! COMMAND RFbsSession1 Connect -//! COMMAND CFbsBitmap1 new -//! COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0079-001-Create_command04 -//! COMMAND CFbsBitmap1 Save GRAPHICS-FBSERV-FbsBitmap-PublicApi-0079-001-Save_command05 -//! END_TEST_BLOCK !PanicCode=0 !PanicString=KERN-EXEC -//!END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0079 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0080 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0080 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::Save() (Save(const TDesC &aFilename) version) test providing malformed (empty) file path. -//! Uses API elements: Save() -//! @SYMTestActions 1. Create a bitmap. -//! 2. Call Save() without using RFile providing malformed (empty) file path. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Operation must return error KErrBadName (-28) -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0080-001command4Create - COMMAND !Error=-28 CFbsBitmap1 Save GRAPHICS-FBSERV-FbsBitmap-PublicApi-0080-001command5Save - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0080 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0081 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0081 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::StoreL() (StoreL(const TDesC &aFilename, TInt aNumSources, const TDesC *aSources[], TInt32 aSourceIds[]) version) test that tries to provide inexistant source files. -//! Uses API elements: StoreL() -//! @SYMTestActions 1. Call Store() passing an inexistent source file, number of bitmaps 1 and source id 0. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Operation must return error KErrNotFound (-1) -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND !Error=-1 CFbsBitmap1 StoreL GRAPHICS-FBSERV-FbsBitmap-PublicApi-0081-001command3StoreL - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0081 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0082 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0082 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::StoreL() (StoreL(const TDesC &aFilename, TInt aNumSources, const TDesC *aSources[], TInt32 aSourceIds[]) version) test that tries to provide out of range id of bitmap. -//! Uses API elements: StoreL() -//! @SYMTestActions 1. Call Store() passing a valid source file, number of bitmaps 1 and source id 99999. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Operation must return error KErrEof (-25) -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND !Error=-25 CFbsBitmap1 StoreL GRAPHICS-FBSERV-FbsBitmap-PublicApi-0082-001command3StoreL - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0082 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0083 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0083 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::StoreL() (StoreL(const TDesC &aFilename, TInt aNumSources, const TDesC *aSources[], TInt32 aSourceIds[]) version) test that tries to provide negative id of bitmap. -//! Uses API elements: StoreL() -//! @SYMTestActions 1. Call Store() passing a source file, number of bitmaps 1 and source id -1. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Operation must return error KErrEof (-25) -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND !Error=-25 CFbsBitmap1 StoreL GRAPHICS-FBSERV-FbsBitmap-PublicApi-0083-001command3StoreL - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0083 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0084 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0084 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::StoreL() (StoreL(const TDesC &aFilename, TInt aNumSources, const TDesC *aSources[], TInt32 aSourceIds[]) version) test that passes negative number of bitmaps. -//! Uses API elements: StoreL() -//! @SYMTestActions 1. Call Store() passing a source file, number of bitmaps -1 and source id 0. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Operation must return error KErrArgument (-6) -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND !Error=-6 CFbsBitmap1 StoreL GRAPHICS-FBSERV-FbsBitmap-PublicApi-0084-001command3StoreL - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0084 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0085 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0085 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::StoreL() (StoreL(const TDesC &aFilename, TInt aNumSources, const TDesC *aSources[], TInt32 aSourceIds[]) version) test that passes out-of-range number of bitmaps. -//! Uses API elements: StoreL() -//! @SYMTestActions 1. Call Store() passing a source file, number of bitmaps 999 and source id 0. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Operation must return error KErrArgument (-6) -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND !Error=-6 CFbsBitmap1 StoreL GRAPHICS-FBSERV-FbsBitmap-PublicApi-0085-001command3StoreL - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0085 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0086 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0086 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::StoreL() (StoreL(const TDesC &aFilename, TInt aNumSources, const TDesC *aSources[], TInt32 aSourceIds[]) version) test that passes number of bitmaps = 0. -//! Uses API elements: StoreL() -//! @SYMTestActions 1. Call Store() passing a source file, number of bitmaps 0 and source id 0. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Operation must return error KErrArgument (-6) -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND !Error=-6 CFbsBitmap1 StoreL GRAPHICS-FBSERV-FbsBitmap-PublicApi-0086-001command3StoreL - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0086 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0087 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0087 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::StoreL() (StoreL(const TDesC &aFilename, TInt aNumSources, const TDesC *aSources[], TInt32 aSourceIds[]) version) -//! test that passes number of bitmaps that is in range of source file number but greater than number of bitmap ids. -//! Uses API elements: StoreL() -//! @SYMTestActions 1. Create an array of file names that contains a file 3 times -//! 2. Create an array of bitmap ids that contains 1 id = 0 -//! 3. Call Store() passing the source files, bitmaps ids and number of bitmaps = 2 -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Operation must return error KErrEof (-25) -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND !Error=-25 CFbsBitmap1 StoreL GRAPHICS-FBSERV-FbsBitmap-PublicApi-0087-001command3StoreL - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0087 - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0089 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0089 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::StoreL() (StoreL(RFile &aFile, TInt aNumSources, const TDesC *aSources[], TInt32 aSourceIds[]) version) test that tries to provide inexistant source files. -//! Uses API elements: StoreL() -//! @SYMTestActions 1. Call Store() passing an inexistent source file, number of bitmaps 1 and source id 0. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Operation must return error KErrNotFound (-1) -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND !Error=-1 CFbsBitmap1 StoreL GRAPHICS-FBSERV-FbsBitmap-PublicApi-0089-001command3StoreL - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0089 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0090 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0090 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::StoreL() (StoreL(RFile &aFile, TInt aNumSources, const TDesC *aSources[], TInt32 aSourceIds[]) version) test that tries to provide out of range id of bitmap. -//! Uses API elements: StoreL() -//! @SYMTestActions 1. Call Store() passing a source file, number of bitmaps 1 and source id 99999. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Operation must return error KErrEof (-25) -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND !Error=-25 CFbsBitmap1 StoreL GRAPHICS-FBSERV-FbsBitmap-PublicApi-0090-001command3StoreL - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0090 - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0091 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0091 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::StoreL() (StoreL(RFile &aFile, TInt aNumSources, const TDesC *aSources[], TInt32 aSourceIds[]) version) test that tries to provide negative id of bitmap. -//! Uses API elements: StoreL() -//! @SYMTestActions 1. Call Store() passing a source file, number of bitmaps 1 and source id -1. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Operation must return error KErrEof (-25) -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND !Error=-25 CFbsBitmap1 StoreL GRAPHICS-FBSERV-FbsBitmap-PublicApi-0091-001command3StoreL - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0091 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0092 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0092 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::StoreL() (StoreL(RFile &aFile, TInt aNumSources, const TDesC *aSources[], TInt32 aSourceIds[]) version) test that passes negative number of bitmaps. -//! Uses API elements: StoreL() -//! @SYMTestActions 1. Call Store() passing a source file, number of bitmaps -1 and source id 0. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Operation must return error KErrArgument (-6) -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND !Error=-6 CFbsBitmap1 StoreL GRAPHICS-FBSERV-FbsBitmap-PublicApi-0092-001command3StoreL - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0092 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0093 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0093 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::StoreL() (StoreL(RFile &aFile, TInt aNumSources, const TDesC *aSources[], TInt32 aSourceIds[]) version) test that passes out-of-range number of bitmaps. -//! Uses API elements: StoreL() -//! @SYMTestActions 1. Call Store() passing a source file, number of bitmaps 999 and source id 0. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Operation must return error KErrArgument (-6) -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND !Error=-6 CFbsBitmap1 StoreL GRAPHICS-FBSERV-FbsBitmap-PublicApi-0093-001command3StoreL - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0093 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0094 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0094 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::StoreL() (StoreL(RFile &aFile, TInt aNumSources, const TDesC *aSources[], TInt32 aSourceIds[]) version) test that passes number of bitmaps = 0. -//! Uses API elements: StoreL() -//! @SYMTestActions 1. Call Store() passing a source file, number of bitmaps 0 and source id 0. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Operation must return error KErrArgument (-6) -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND !Error=-6 CFbsBitmap1 StoreL GRAPHICS-FBSERV-FbsBitmap-PublicApi-0094-001command3StoreL - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0094 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0095 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0095 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::StoreL() (StoreL(RFile &aFile, TInt aNumSources, const TDesC *aSources[], TInt32 aSourceIds[]) version) -//! test that passes number of bitmaps that is in range of source file number but greater than number of bitmap ids. -//! Uses API elements: StoreL() -//! @SYMTestActions 1. Create an array of file names that contains 3 files -//! 3. Create an array of bitmap ids that contains 1 id = 0 -//! 4. Call Store() passing the source files, bitmaps ids and number of bitmaps = 2 -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Operation must return error KErrEof (-25) -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND !Error=-25 CFbsBitmap1 StoreL GRAPHICS-FBSERV-FbsBitmap-PublicApi-0095-001command3StoreL - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0095 - -//!START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0097 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0097 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::StoreL() (StoreL(RFile &aFile, TInt aNumSources, const TDesC *aSources[], TInt32 aSourceIds[]) version) -//! test that passes not opened output file handle -//! Uses API elements: StoreL() -//! @SYMTestActions 1. Create a bitmap saving it into a file right after creation. -//! 2. Call Store() passing the source file, bitmap id = 0, number of bitmaps = 1 and not-opened output file handle -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Operation must panic -//! @SYMTestType CIT -//! START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini -//! CREATE_OBJECT RFbsSession RFbsSession1 -//! CREATE_OBJECT CFbsBitmap CFbsBitmap1 -//! COMMAND RFbsSession1 Connect -//! COMMAND CFbsBitmap1 StoreL GRAPHICS-FBSERV-FbsBitmap-PublicApi-0097-001-StoreL_command03 -//! END_TEST_BLOCK !PanicCode=0 !PanicString=KERN-EXEC -//! RUN_TEST_STEP 100 T_FBServAPI utilityClearPanicDlg -//!END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0097 - - -//! START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0098 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0098 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::GetScanLine() (GetScanLine(TDes8 &aBuf, const TPoint &aPixel, TInt aLength, TDisplayMode aDispMode) version) test with negative length. -//! Uses API elements: GetScanLine() -//! @SYMTestActions 1. Create bitmap (10x10, EColor256). -//! 2. Call GetScanLine() with start point (0, 0), length = -1, display mode EColor256 -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Operation must panic. -//! @SYMTestType CIT -//! START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini -//! CREATE_OBJECT RFbsSession RFbsSession1 -//! CREATE_OBJECT CFbsBitmap CFbsBitmap1 -//! COMMAND RFbsSession1 Connect -//! COMMAND CFbsBitmap1 new -//! COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0098-001-Create_command04 -//! COMMAND CFbsBitmap1 GetScanLine GRAPHICS-FBSERV-FbsBitmap-PublicApi-0098-001-GetScanLine_command05 -//! END_TEST_BLOCK !PanicCode=23 !PanicString=USER -//! RUN_TEST_STEP 100 T_FBServAPI utilityClearPanicDlg -//! END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0098 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0099 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0099 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::GetScanLine() (GetScanLine(TDes8 &aBuf, const TPoint &aPixel, TInt aLength, TDisplayMode aDispMode) version) test with 0 length. -//! Uses API elements: GetScanLine() -//! @SYMTestActions 1. Create bitmap (10x10, EColor256). -//! 2. Call GetScanLine() with start point (0, 0), length = 0, display mode EColor256 -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function GetScanLine() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0099-001command4Create - COMMAND CFbsBitmap1 GetScanLine GRAPHICS-FBSERV-FbsBitmap-PublicApi-0099-001command5GetScanLine - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0099 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0100 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0100 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::GetScanLine() (GetScanLine(TDes8 &aBuf, const TPoint &aPixel, TInt aLength, TDisplayMode aDispMode) version) test with too big length. -//! Uses API elements: GetScanLine() -//! @SYMTestActions 1. Create bitmap (10x10, EColor256). -//! 2. Call GetScanLine() with start point (0, 0), length = 99999, display mode EColor256 -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function GetScanLine() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0100-001command4Create - COMMAND CFbsBitmap1 GetScanLine GRAPHICS-FBSERV-FbsBitmap-PublicApi-0100-001command5GetScanLine - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0100 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0101 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0101 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::GetScanLine() (GetScanLine(TDes8 &aBuf, const TPoint &aPixel, TInt aLength, TDisplayMode aDispMode) version) test with negative start point. -//! Uses API elements: GetScanLine() -//! @SYMTestActions 1. Create bitmap (10x10, EColor256). -//! 2. Call GetScanLine() with start point (-1, -1), length = 10, display mode EColor256 -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function GetScanLine() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0101-001command4Create - COMMAND CFbsBitmap1 GetScanLine GRAPHICS-FBSERV-FbsBitmap-PublicApi-0101-001command5GetScanLine - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0101 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0102 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0102 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::GetScanLine() (GetScanLine(TDes8 &aBuf, const TPoint &aPixel, TInt aLength, TDisplayMode aDispMode) version) test with out of range start point. -//! Uses API elements: GetScanLine() -//! @SYMTestActions 1. Create bitmap (10x10, EColor256). -//! 2. Call GetScanLine() with start point (100, 100), length = 10, display mode EColor256 -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function GetScanLine() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0102-001command4Create - COMMAND CFbsBitmap1 GetScanLine GRAPHICS-FBSERV-FbsBitmap-PublicApi-0102-001command5GetScanLine - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0102 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0103 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0103 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::GetScanLine() (GetScanLine(TDes8 &aBuf, const TPoint &aPixel, TInt aLength, TDisplayMode aDispMode) version) test with display mode ENone. -//! Uses API elements: GetScanLine() -//! @SYMTestActions 1. Create bitmap (10x10, EColor256). -//! 2. Call GetScanLine() with start point (0, 0), length = 10, display mode ENone -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function GetScanLine() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0103-001command4Create - COMMAND CFbsBitmap1 GetScanLine GRAPHICS-FBSERV-FbsBitmap-PublicApi-0103-001command5GetScanLine - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0103 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0104 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0104 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::GetScanLine() (GetScanLine(TDes8 &aBuf, const TPoint &aPixel, TInt aLength, TDisplayMode aDispMode) version) test with display mode ERgb. -//! Uses API elements: GetScanLine() -//! @SYMTestActions 1. Create bitmap (10x10, EColor256). -//! 2. Call GetScanLine() with start point (0, 0), length = 10, display mode ERgb -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function GetScanLine() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0104-001command4Create - COMMAND CFbsBitmap1 GetScanLine GRAPHICS-FBSERV-FbsBitmap-PublicApi-0104-001command5GetScanLine - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0104 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0105 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0105 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::GetScanLine() (GetScanLine(TDes8 &aBuf, const TPoint &aPixel, TInt aLength, TDisplayMode aDispMode) version) test with display mode EColorLast. -//! Uses API elements: GetScanLine() -//! @SYMTestActions 1. Create bitmap (10x10, EColor256). -//! 2. Call GetScanLine() with start point (0, 0), length = 10, display mode EColorLast -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function GetScanLine() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0105-001command4Create - COMMAND CFbsBitmap1 GetScanLine GRAPHICS-FBSERV-FbsBitmap-PublicApi-0105-001command5GetScanLine - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0105 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0106 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0106 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::GetScanLine() (GetScanLine(TDes8 &aBuf, const TPoint &aPixel, TInt aLength, TDisplayMode aDispMode) version) test with invalid display. -//! Uses API elements: GetScanLine() -//! @SYMTestActions 1. Create bitmap (10x10, EColor256). -//! 2. Call GetScanLine() with start point (0, 0), length = 10, display mode -1. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function GetScanLine() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0106-001command4Create - COMMAND CFbsBitmap1 GetScanLine GRAPHICS-FBSERV-FbsBitmap-PublicApi-0106-001command5GetScanLine - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0106 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0107 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0107 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::GetScanLine() (GetScanLine(TDes8 &aBuf, const TPoint &aPixel, TInt aLength, TDisplayMode aDispMode) version) test with too short buffer. -//! Uses API elements: GetScanLine() -//! @SYMTestActions 1. Create bitmap (10x10, EColor256). -//! 2. Call GetScanLine() with start point (0, 0), length = 10, display mode EColor256 and buffer with length 1. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function GetScanLine() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0107-001command4Create - COMMAND CFbsBitmap1 GetScanLine GRAPHICS-FBSERV-FbsBitmap-PublicApi-0107-001command5GetScanLine - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0107 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0108 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0108 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::SetScanLine() test with negative position. -//! Uses API elements: SetScanLine() -//! @SYMTestActions 1. Create bitmap (100x100, EColor256). -//! 2. Set horizontal scanline using position -1 from data-file. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function SetScanLine() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0108-001command4Create - COMMAND CFbsBitmap1 SetScanLine GRAPHICS-FBSERV-FbsBitmap-PublicApi-0108-001command5SetScanLine - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0108 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0109 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0109 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::SetScanLine() test with too big position. -//! Uses API elements: SetScanLine() -//! @SYMTestActions 1. Create bitmap (100x100, EColor256). -//! 2. Set horizontal scanline using bitmaps's position 100 from a data-file. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function SetScanLine() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0109-001command4Create - COMMAND CFbsBitmap1 SetScanLine GRAPHICS-FBSERV-FbsBitmap-PublicApi-0109-001command5SetScanLine - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0109 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0110 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0110 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::GetVerticalScanLine() (GetVerticalScanLine(TDes8 &aBuf, TInt aX, TDisplayMode aDispMode) version) test with negative x-coordinate. -//! Uses API elements: GetVerticalScanLine() -//! @SYMTestActions 1. Create bitmap (10x10, EColor256). -//! 2. Call GetVerticalScanLine() with x-coordinate -1, display mode EColor256 -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function GetVerticalScanLine() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0110-001command4Create - COMMAND CFbsBitmap1 GetVerticalScanLine GRAPHICS-FBSERV-FbsBitmap-PublicApi-0110-001command5GetVerticalScanLine - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0110 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0111 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0111 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::GetVerticalScanLine() (GetVerticalScanLine(TDes8 &aBuf, TInt aX, TDisplayMode aDispMode) version) test with too big x-coordinate. -//! Uses API elements: GetVerticalScanLine() -//! @SYMTestActions 1. Create bitmap (10x10, EColor256). -//! 2. Call GetVerticalScanLine() with x-coordinate 999, display mode EColor256 -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function GetVerticalScanLine() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0111-001command4Create - COMMAND CFbsBitmap1 GetVerticalScanLine GRAPHICS-FBSERV-FbsBitmap-PublicApi-0111-001command5GetVerticalScanLine - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0111 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0112 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0112 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::GetVerticalScanLine() (GetVerticalScanLine(TDes8 &aBuf, TInt aX, TDisplayMode aDispMode) version) test with display mode ENone. -//! Uses API elements: GetVerticalScanLine() -//! @SYMTestActions 1. Create bitmap (10x10, EColor256). -//! 2. Call GetVerticalScanLine() with x-coordinate 0, display mode ENone. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function GetVerticalScanLine() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0112-001command4Create - COMMAND CFbsBitmap1 GetVerticalScanLine GRAPHICS-FBSERV-FbsBitmap-PublicApi-0112-001command5GetVerticalScanLine - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0112 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0113 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0113 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::GetVerticalScanLine() (GetVerticalScanLine(TDes8 &aBuf, TInt aX, TDisplayMode aDispMode) version) test with display mode ERgb. -//! Uses API elements: GetVerticalScanLine() -//! @SYMTestActions 1. Create bitmap (10x10, EColor256). -//! 2. Call GetVerticalScanLine() with x-coordinate 0, display mode ERgb. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function GetVerticalScanLine() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0113-001command4Create - COMMAND CFbsBitmap1 GetVerticalScanLine GRAPHICS-FBSERV-FbsBitmap-PublicApi-0113-001command5GetVerticalScanLine - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0113 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0114 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0114 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::GetVerticalScanLine() (GetVerticalScanLine(TDes8 &aBuf, TInt aX, TDisplayMode aDispMode) version) test with display mode EColorLast. -//! Uses API elements: GetVerticalScanLine() -//! @SYMTestActions 1. Create bitmap (10x10, EColor256). -//! 2. Call GetVerticalScanLine() with x-coordinate 0, display mode EColorLast. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function GetVerticalScanLine() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0114-001command4Create - COMMAND CFbsBitmap1 GetVerticalScanLine GRAPHICS-FBSERV-FbsBitmap-PublicApi-0114-001command5GetVerticalScanLine - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0114 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0115 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0115 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::GetVerticalScanLine() (GetVerticalScanLine(TDes8 &aBuf, TInt aX, TDisplayMode aDispMode) version) test with invalid display mode. -//! Uses API elements: GetVerticalScanLine() -//! @SYMTestActions 1. Create bitmap (10x10, EColor256). -//! 2. Call GetVerticalScanLine() with x-coordinate 0, display mode -1. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function GetVerticalScanLine() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0115-001command4Create - COMMAND CFbsBitmap1 GetVerticalScanLine GRAPHICS-FBSERV-FbsBitmap-PublicApi-0115-001command5GetVerticalScanLine - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0115 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0116 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0116 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::GetVerticalScanLine() (GetVerticalScanLine(TDes8 &aBuf, TInt aX, TDisplayMode aDispMode) version) test with too short buffer. -//! Uses API elements: GetVerticalScanLine() -//! @SYMTestActions 1. Create bitmap (10x10, EColor256). -//! 2. Call GetVerticalScanLine() with x-coordinate 0, display mode EColor256 and buffer with length 1. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function GetVerticalScanLine() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0116-001command4Create - COMMAND CFbsBitmap1 GetVerticalScanLine GRAPHICS-FBSERV-FbsBitmap-PublicApi-0116-001command5GetVerticalScanLine - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0116 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0117 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0117 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::GetVerticalScanLine() (GetVerticalScanLine(TDes8 &aBuf, TInt aX, const TPoint &aDitherOffset, TDisplayMode aDispMode) version) test with negative x-coordinate. -//! Uses API elements: GetVerticalScanLine() -//! @SYMTestActions 1. Create bitmap (10x10, EColor256). -//! 2. Call GetVerticalScanLine() with x-coordinate -1, display mode EColor256, dithering offset (0, 0). -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function GetVerticalScanLine() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0117-001command4Create - COMMAND CFbsBitmap1 GetVerticalScanLine GRAPHICS-FBSERV-FbsBitmap-PublicApi-0117-001command5GetVerticalScanLine - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0117 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0118 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0118 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::GetVerticalScanLine() (GetVerticalScanLine(TDes8 &aBuf, TInt aX, const TPoint &aDitherOffset, TDisplayMode aDispMode) version) test with too big x-coordinate. -//! Uses API elements: GetVerticalScanLine() -//! @SYMTestActions 1. Create bitmap (10x10, EColor256). -//! 2. Call GetVerticalScanLine() with x-coordinate 999, display mode EColor256, dithering offset (0, 0). -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function GetVerticalScanLine() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0118-001command4Create - COMMAND CFbsBitmap1 GetVerticalScanLine GRAPHICS-FBSERV-FbsBitmap-PublicApi-0118-001command5GetVerticalScanLine - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0118 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0119 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0119 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::GetVerticalScanLine() (GetVerticalScanLine(TDes8 &aBuf, TInt aX, const TPoint &aDitherOffset, TDisplayMode aDispMode) version) test with display mode ENone. -//! Uses API elements: GetVerticalScanLine() -//! @SYMTestActions 1. Create bitmap (10x10, EColor256). -//! 2. Call GetVerticalScanLine() with x-coordinate 0, display mode ENone, dithering offset (0, 0). -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function GetVerticalScanLine() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0119-001command4Create - COMMAND CFbsBitmap1 GetVerticalScanLine GRAPHICS-FBSERV-FbsBitmap-PublicApi-0119-001command5GetVerticalScanLine - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0119 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0120 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0120 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::GetVerticalScanLine() (GetVerticalScanLine(TDes8 &aBuf, TInt aX, const TPoint &aDitherOffset, TDisplayMode aDispMode) version) test with display mode ERgb. -//! Uses API elements: GetVerticalScanLine() -//! @SYMTestActions 1. Create bitmap (10x10, EColor256). -//! 2. Call GetVerticalScanLine() with x-coordinate 0, display mode ERgb, dithering offset (0, 0). -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function GetVerticalScanLine() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0120-001command4Create - COMMAND CFbsBitmap1 GetVerticalScanLine GRAPHICS-FBSERV-FbsBitmap-PublicApi-0120-001command5GetVerticalScanLine - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0120 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0121 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0121 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::GetVerticalScanLine() (GetVerticalScanLine(TDes8 &aBuf, TInt aX, const TPoint &aDitherOffset, TDisplayMode aDispMode) version) test with display mode EColorLast. -//! Uses API elements: GetVerticalScanLine() -//! @SYMTestActions 1. Create bitmap (10x10, EColor256). -//! 2. Call GetVerticalScanLine() with x-coordinate 0, display mode EColorLast, dithering offset (0, 0). -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function GetVerticalScanLine() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0121-001command4Create - COMMAND CFbsBitmap1 GetVerticalScanLine GRAPHICS-FBSERV-FbsBitmap-PublicApi-0121-001command5GetVerticalScanLine - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0121 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0122 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0122 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::GetVerticalScanLine() (GetVerticalScanLine(TDes8 &aBuf, TInt aX, const TPoint &aDitherOffset, TDisplayMode aDispMode) version) test with invalid display mode. -//! Uses API elements: GetVerticalScanLine() -//! @SYMTestActions 1. Create bitmap (10x10, EColor256). -//! 2. Call GetVerticalScanLine() with x-coordinate 0, display mode -1, dithering offset (0, 0). -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function GetVerticalScanLine() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0122-001command4Create - COMMAND CFbsBitmap1 GetVerticalScanLine GRAPHICS-FBSERV-FbsBitmap-PublicApi-0122-001command5GetVerticalScanLine - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0122 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0123 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0123 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::GetVerticalScanLine() (GetVerticalScanLine(TDes8 &aBuf, TInt aX, const TPoint &aDitherOffset, TDisplayMode aDispMode) version) test with too short buffer. -//! Uses API elements: GetVerticalScanLine() -//! @SYMTestActions 1. Create bitmap (10x10, EColor256). -//! 2. Call GetVerticalScanLine() with x-coordinate 0, display mode EColor256, dithering offset (0, 0). and buffer with length 1. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function GetVerticalScanLine() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0123-001command4Create - COMMAND CFbsBitmap1 GetVerticalScanLine GRAPHICS-FBSERV-FbsBitmap-PublicApi-0123-001command5GetVerticalScanLine - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0123 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0124 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0124 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::GetVerticalScanLine() (GetVerticalScanLine(TDes8 &aBuf, TInt aX, const TPoint &aDitherOffset, TDisplayMode aDispMode) version) test with negative dithering offset. -//! Uses API elements: GetVerticalScanLine() -//! @SYMTestActions 1. Create bitmap (10x10, EColor256). -//! 2. Call GetVerticalScanLine() with x-coordinate 0, display mode EColor256, dithering offset (-1, -1). -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function GetVerticalScanLine() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0124-001command4Create - COMMAND CFbsBitmap1 GetVerticalScanLine GRAPHICS-FBSERV-FbsBitmap-PublicApi-0124-001command5GetVerticalScanLine - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0124 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0125 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0125 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::GetVerticalScanLine() (GetVerticalScanLine(TDes8 &aBuf, TInt aX, const TPoint &aDitherOffset, TDisplayMode aDispMode) version) test with too big dithering offset. -//! Uses API elements: GetVerticalScanLine() -//! @SYMTestActions 1. Create bitmap (10x10, EColor256). -//! 2. Call GetVerticalScanLine() with x-coordinate 0, display mode EColor256, dithering offset (99999, 99999). -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function GetVerticalScanLine() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0125-001command4Create - COMMAND CFbsBitmap1 GetVerticalScanLine GRAPHICS-FBSERV-FbsBitmap-PublicApi-0125-001command5GetVerticalScanLine - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0125 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0126 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0126 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc Convert horiz/vert dimensions on graphics device between pixels and twips for negative values. -//! Uses API elements: Load(), HorizontalPixelsToTwips(), HorizontalTwipsToPixels(), -//! VerticalPixelsToTwips(), VerticalTwipsToPixels() -//! @SYMTestActions 1. Create bitmap. -//! 2. Convert horiz dimensions on graphics device from -999 pixels to twips and check it to be as expected. -//! 3. Convert horiz dimensions on graphics device back to pixels from -999 twips and check it to be as expected. -//! 4. Convert vert dimensions on graphics device from -999 pixels to twips and check it to be as expected. -//! 5. Convert vert dimensions on graphics device back to pixels from -999 twips and check it to be as expected. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Conversions are done correctly without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0126-001command4Create - COMMAND CFbsBitmap1 HorizontalPixelsToTwips GRAPHICS-FBSERV-FbsBitmap-PublicApi-0126-001command5HorizontalPixelsToTwips - COMMAND CFbsBitmap1 HorizontalTwipsToPixels GRAPHICS-FBSERV-FbsBitmap-PublicApi-0126-001command6HorizontalTwipsToPixels - COMMAND CFbsBitmap1 VerticalPixelsToTwips GRAPHICS-FBSERV-FbsBitmap-PublicApi-0126-001command7VerticalPixelsToTwips - COMMAND CFbsBitmap1 VerticalTwipsToPixels GRAPHICS-FBSERV-FbsBitmap-PublicApi-0126-001command8VerticalTwipsToPixels - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0126 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0127 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0127 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc GetPixel() test for negative x-coordinate. -//! Uses API elements: GetPixel() -//! @SYMTestActions 1. Create 10x10 bitmap. -//! 2. Call GetPixel(-1, 0) and check the RGB color to be as expected. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function GetPixel() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0127-001command4Create - COMMAND CFbsBitmap1 GetPixel GRAPHICS-FBSERV-FbsBitmap-PublicApi-0127-001command5GetPixel - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0127 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0128 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0128 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc GetPixel() test for negative y-coordinate. -//! Uses API elements: GetPixel() -//! @SYMTestActions 1. Create 10x10 bitmap. -//! 2. Call GetPixel(0, -1) and check the RGB color to be as expected. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function GetPixel() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0128-001command4Create - COMMAND CFbsBitmap1 GetPixel GRAPHICS-FBSERV-FbsBitmap-PublicApi-0128-001command5GetPixel - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0128 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0129 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0129 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc GetPixel() test for negative x- and y-coordinate. -//! Uses API elements: GetPixel() -//! @SYMTestActions 1. Create 10x10 bitmap. -//! 2. Call GetPixel(-1, -1) and check the RGB color to be as expected. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function GetPixel() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0129-001command4Create - COMMAND CFbsBitmap1 GetPixel GRAPHICS-FBSERV-FbsBitmap-PublicApi-0129-001command5GetPixel - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0129 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0130 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0130 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc GetPixel() test for too big x-coordinate. -//! Uses API elements: GetPixel() -//! @SYMTestActions 1. Create 10x10 bitmap. -//! 2. Call GetPixel(10, 0) and check the RGB color to be as expected. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function GetPixel() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0130-001command4Create - COMMAND CFbsBitmap1 GetPixel GRAPHICS-FBSERV-FbsBitmap-PublicApi-0130-001command5GetPixel - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0130 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0131 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0131 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc GetPixel() test for too big y-coordinate. -//! Uses API elements: GetPixel() -//! @SYMTestActions 1. Create 10x10 bitmap. -//! 2. Call GetPixel(0, 10) and check the RGB color to be as expected. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function GetPixel() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0131-001command4Create - COMMAND CFbsBitmap1 GetPixel GRAPHICS-FBSERV-FbsBitmap-PublicApi-0131-001command5GetPixel - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0131 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0132 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0132 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc GetPixel() test for too big x- and y-coordinate. -//! Uses API elements: GetPixel() -//! @SYMTestActions 1. Create 10x10 bitmap. -//! 2. Call GetPixel(10, 10) and check the RGB color to be as expected. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function GetPixel() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0132-001command4Create - COMMAND CFbsBitmap1 GetPixel GRAPHICS-FBSERV-FbsBitmap-PublicApi-0132-001command5GetPixel - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0132 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0133 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0133 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc Resize() test on not fully constructed bitmap. -//! Uses API elements: Resize() -//! @SYMTestActions 1. Construct a bitmap, but don't load or create it. -//! 2. Call Resize(). -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Resize() must return error KErrGeneral (-2). -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND !Error=-2 CFbsBitmap1 Resize GRAPHICS-FBSERV-FbsBitmap-PublicApi-0133-001command4Resize - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0133 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0134 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0134 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc Resize() test with illegal size. -//! Uses API elements: Resize() -//! @SYMTestActions 1. Create 10x10 bitmap -//! 2. Call Resize() setting width to -1 and height to -200. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Resize() must return error KErrArgument (-6). -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0134-001command4Create - COMMAND !Error=-6 CFbsBitmap1 Resize GRAPHICS-FBSERV-FbsBitmap-PublicApi-0134-001command5Resize - COMMAND CFbsBitmap1 SizeInPixels GRAPHICS-FBSERV-FbsBitmap-PublicApi-0134-001command6SizeInPixels - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0134 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0135 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0135 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc Resize() test on ROM bitmap. -//! Uses API elements: Resize() -//! @SYMTestActions 1. Load a bitmap from ROM -//! 2. Call Resize() setting width to 10 and height to 10. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Resize() must return error KErrAccessDenied (-21). -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 IsFileInRom GRAPHICS-FBSERV-FbsBitmap-PublicApi-0135-001command4IsFileInRom - COMMAND CFbsBitmap1 Load GRAPHICS-FBSERV-FbsBitmap-PublicApi-0135-001command5Load - COMMAND !Error=-21 CFbsBitmap1 Resize GRAPHICS-FBSERV-FbsBitmap-PublicApi-0135-001command6Resize - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0135 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0136 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0136 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::SetSizeInTwips() (SetSizeInTwips(const MGraphicsDeviceMap *aMap) version) test NULL argument test. -//! Uses API elements: SetSizeInTwips() -//! @SYMTestActions 1. Create bitmap. -//! 2. Call SetSizeInTwips() passing NULL as argument. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function SetSizeInTwips() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - CREATE_OBJECT CFbsBitmapDevice CFbsBitmapDevice1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0136-001command4Create - COMMAND CFbsBitmap1 SetSizeInTwips GRAPHICS-FBSERV-FbsBitmap-PublicApi-0136-001command5SetSizeInTwips - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0136 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0137 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0137 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::SetSizeInTwips() (SetSizeInTwips(const TSize &aSizeInTwips) version) with negative width. -//! Uses API elements: SetSizeInTwips() -//! @SYMTestActions 1. Create bitmap. -//! 2. Call SetSizeInTwips() passing new size (-10, 0). -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function SetSizeInTwips() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0137-001command4Create - COMMAND CFbsBitmap1 SetSizeInTwips GRAPHICS-FBSERV-FbsBitmap-PublicApi-0137-001command5SetSizeInTwips - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0137 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0138 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0138 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::SetSizeInTwips() (SetSizeInTwips(const TSize &aSizeInTwips) version) with negative height. -//! Uses API elements: SetSizeInTwips() -//! @SYMTestActions 1. Create bitmap. -//! 2. Call SetSizeInTwips() passing new size (0, -10). -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function SetSizeInTwips() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0138-001command4Create - COMMAND CFbsBitmap1 SetSizeInTwips GRAPHICS-FBSERV-FbsBitmap-PublicApi-0138-001command5SetSizeInTwips - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0138 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0139 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0139 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::SetSizeInTwips() (SetSizeInTwips(const TSize &aSizeInTwips) version) with negative width and height. -//! Uses API elements: SetSizeInTwips() -//! @SYMTestActions 1. Create bitmap. -//! 2. Call SetSizeInTwips() passing new size (-10, -10). -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function SetSizeInTwips() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0139-001command4Create - COMMAND CFbsBitmap1 SetSizeInTwips GRAPHICS-FBSERV-FbsBitmap-PublicApi-0139-001command5SetSizeInTwips - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0139 - - -//!START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0140 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0140 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc ExternalizeL() test on closed write stream. -//! Uses API elements: ExternalizeL() -//! @SYMTestActions 1. Create a bitmap. -//! 2. Create write stream, close it -//! 3. Call ExternalizeL() on the closed write stream. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The operation must panic. -//! @SYMTestType CIT -//! START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini -//! CREATE_OBJECT RFbsSession RFbsSession1 -//! CREATE_OBJECT CFbsBitmap CFbsBitmap1 -//! COMMAND RFbsSession1 Connect -//! COMMAND CFbsBitmap1 new -//! COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0140-001-Create_command04 -//! COMMAND CFbsBitmap1 ExternalizeL GRAPHICS-FBSERV-FbsBitmap-PublicApi-0140-001-ExternalizeL_command05 -//! END_TEST_BLOCK !PanicCode=3 !PanicString=KERN-EXEC -//! RUN_TEST_STEP 100 T_FBServAPI utilityClearPanicDlg -//!END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0140 - - -//!START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0141 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0141 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc ExternalizeRectangleL() test on closed write stream. -//! Uses API elements: ExternalizeRectangleL() -//! @SYMTestActions 1. Create a bitmap. -//! 2. Create write stream, close it -//! 3. Call ExternalizeRectangleL() on the closed write stream. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The operation must panic. -//! @SYMTestType CIT -//! START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini -//! CREATE_OBJECT RFbsSession RFbsSession1 -//! CREATE_OBJECT CFbsBitmap CFbsBitmap1 -//! COMMAND RFbsSession1 Connect -//! COMMAND CFbsBitmap1 new -//! COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0141-001-Create_command04 -//! COMMAND CFbsBitmap1 ExternalizeRectangleL GRAPHICS-FBSERV-FbsBitmap-PublicApi-0141-001-ExternalizeRectangleL_command05 -//! END_TEST_BLOCK !PanicCode=3 !PanicString=KERN-EXEC -//! RUN_TEST_STEP 100 T_FBServAPI utilityClearPanicDlg -//!END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0141 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0142 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0142 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc ExternalizeRectangleL() test with out-of-range rectangle. -//! Uses API elements: ExternalizeRectangleL() -//! @SYMTestActions 1. Create a bitmap. -//! 2. Call ExternalizeRectangleL() on the write stream passing out-of-range rectangle. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults ExternalizeL() must leave with error KErrTooBig (-40) -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0142-001command4Create - COMMAND !Error=-40 CFbsBitmap1 ExternalizeRectangleL GRAPHICS-FBSERV-FbsBitmap-PublicApi-0142-001command5ExternalizeRectangleL - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0142 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0143 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0143 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc InternalizeL() test from non-bitmap file. -//! Uses API elements: InternalizeL() -//! @SYMTestActions 1. Create a bitmap class instance. -//! 2. Internalize bitmap from read stream that points to non-bitmap file. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults InternalizeL() must leave with error KErrCorrupt (-20) -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0143-001command4Create - COMMAND !Error=-20 CFbsBitmap1 InternalizeL GRAPHICS-FBSERV-FbsBitmap-PublicApi-0143-001command5InternalizeL - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0143 - - -//!START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0144 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0144 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc InternalizeL() test on non-opened read stream. -//! Uses API elements: InternalizeL() -//! @SYMTestActions 1. Create a bitmap class instance. -//! 2. Call InternalizeL() on non-opened read stream -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults InternalizeL() must panic. -//! @SYMTestType CIT -//! START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini -//! CREATE_OBJECT RFbsSession RFbsSession1 -//! CREATE_OBJECT CFbsBitmap CFbsBitmap1 -//! COMMAND RFbsSession1 Connect -//! COMMAND CFbsBitmap1 new -//! COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0144-001command4Create -//! COMMAND CFbsBitmap1 InternalizeL GRAPHICS-FBSERV-FbsBitmap-PublicApi-0144-001command5InternalizeL -//! END_TEST_BLOCK !PanicCode=3 !PanicString=KERN-EXEC -//! RUN_TEST_STEP 100 T_FBServAPI utilityClearPanicDlg -//!END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0144 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0145 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0145 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 06/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc Twice compress a bitmap. -//! Uses API elements: Compress() -//! @SYMTestActions 1. Load a bitmap from a multi-bitmap file. -//! 2. Compress the bitmap. -//! 3. Compress the bitmap second time. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Second Compress() call must also complete without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Load GRAPHICS-FBSERV-FbsBitmap-PublicApi-0145-001command4Load - COMMAND CFbsBitmap1 Compress - COMMAND CFbsBitmap1 Compress - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0145 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0146 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0146 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 06/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::Compress() test on bitmap loaded from ROM. -//! Uses API elements: Compress() -//! @SYMTestActions 1. Load a bitmap from file that resides in ROM. -//! 2. Compress the bitmap. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Compress() call must return error KErrAccessDenied (-21) -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 IsFileInRom GRAPHICS-FBSERV-FbsBitmap-PublicApi-0146-001command4IsFileInRom - COMMAND CFbsBitmap1 Load GRAPHICS-FBSERV-FbsBitmap-PublicApi-0146-001command5Load - COMMAND !Error=-21 CFbsBitmap1 Compress - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0146 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0147 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0147 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 06/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::Compress() test on not-fully-constucted bitmap. -//! Uses API elements: Compress() -//! @SYMTestActions 1. Create a bitmap instance, but don't create or load the bitmap. -//! 2. Compress the bitmap. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Compress() call must return error KErrGeneral (-2) -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND !Error=-2 CFbsBitmap1 Compress - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0147 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0148 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0148 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 06/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::CompressInBackground() (CompressInBackground() version) test that compress a bitmap twice. -//! Uses API elements: CompressInBackground() -//! @SYMTestActions 1. Load a bitmap from a multi-bitmap file. -//! 2. Call Compress() on the bitmap. -//! 3. Call CompressInBackground() on the bitmap. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Second CompressInBackground() call must complete without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Load GRAPHICS-FBSERV-FbsBitmap-PublicApi-0148-001command4Load - COMMAND CFbsBitmap1 Compress - COMMAND CFbsBitmap1 CompressInBackground GRAPHICS-FBSERV-FbsBitmap-PublicApi-0148-001command6CompressInBackground - OUTSTANDING - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0148 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0149 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0149 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 06/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::CompressInBackground() (CompressInBackground() version) test on bitmap loaded from ROM. -//! Uses API elements: CompressInBackground() -//! @SYMTestActions 1. Load a bitmap from file that resides in ROM. -//! 2. Compress the bitmap using CompressInBackground() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults CompressInBackground() call must return error KErrAccessDenied (-21) -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 IsFileInRom GRAPHICS-FBSERV-FbsBitmap-PublicApi-0149-001command4IsFileInRom - COMMAND CFbsBitmap1 Load GRAPHICS-FBSERV-FbsBitmap-PublicApi-0149-001command5Load - COMMAND !Error=-21 CFbsBitmap1 CompressInBackground GRAPHICS-FBSERV-FbsBitmap-PublicApi-0149-001command6CompressInBackground - OUTSTANDING - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0149 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0150 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0150 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 06/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::CompressInBackground() (CompressInBackground() version) test on not-fully-constucted bitmap. -//! Uses API elements: CompressInBackground() -//! @SYMTestActions 1. Create a bitmap instance, but don't create or load the bitmap. -//! 2. Compress the bitmap using CompressInBackground() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults CompressInBackground() call must return error KErrGeneral (-2) -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND !Error=-2 CFbsBitmap1 CompressInBackground GRAPHICS-FBSERV-FbsBitmap-PublicApi-0150-001command4CompressInBackground - OUTSTANDING - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0150 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0151 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0151 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 06/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::CompressInBackground() (CompressInBackground(TRequestStatus &aRequestStatus) version) test that compress a bitmap twice. -//! Uses API elements: CompressInBackground() -//! @SYMTestActions 1. Load a bitmap from a multi-bitmap file. -//! 2. Call Compress() on the bitmap. -//! 3. Call CompressInBackground() on the bitmap. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Second CompressInBackground() call must complete without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Load GRAPHICS-FBSERV-FbsBitmap-PublicApi-0151-001command4Load - COMMAND CFbsBitmap1 Compress - COMMAND CFbsBitmap1 CompressInBackground GRAPHICS-FBSERV-FbsBitmap-PublicApi-0151-001command6CompressInBackground - OUTSTANDING - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0151 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0152 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0152 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 06/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::CompressInBackground() (CompressInBackground(TRequestStatus &aRequestStatus) version) test on bitmap loaded from ROM. -//! Uses API elements: CompressInBackground() -//! @SYMTestActions 1. Load a bitmap from file that resides in ROM. -//! 2. Compress the bitmap using CompressInBackground() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults CompressInBackground() call must return error KErrAccessDenied (-21) from request status -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 IsFileInRom GRAPHICS-FBSERV-FbsBitmap-PublicApi-0152-001command4IsFileInRom - COMMAND CFbsBitmap1 Load GRAPHICS-FBSERV-FbsBitmap-PublicApi-0152-001command5Load - COMMAND !AsyncError=-21 CFbsBitmap1 CompressInBackground GRAPHICS-FBSERV-FbsBitmap-PublicApi-0152-001command6CompressInBackground - OUTSTANDING - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0152 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0153 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0153 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 06/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::CompressInBackground() (CompressInBackground(TRequestStatus &aRequestStatus) version) test on not-fully-constucted bitmap. -//! Uses API elements: CompressInBackground() -//! @SYMTestActions 1. Create a bitmap instance, but don't create or load the bitmap. -//! 2. Compress the bitmap using CompressInBackground() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults CompressInBackground() call must return error KErrGeneral (-2) from request status -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND !AsyncError=-2 CFbsBitmap1 CompressInBackground GRAPHICS-FBSERV-FbsBitmap-PublicApi-0153-001command4CompressInBackground - OUTSTANDING - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0153 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0154 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0154 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 06/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::IsFileInRom() (IsFileInRom(const TDesC &aFilename, TUint32 *&aWord) version) test for malformed path -//! Uses API elements: IsFileInRom() -//! @SYMTestActions 1. Call IsFileInRom() passing malformed path like ":::::''" -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults IsFileInRom() call must pass without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 IsFileInRom GRAPHICS-FBSERV-FbsBitmap-PublicApi-0154-001command4IsFileInRom - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0154 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0155 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0155 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 06/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::CreateHardwareBitmap() test for ENone display mode -//! Uses API elements: CreateHardwareBitmap() -//! @SYMTestActions 1. Call CreateHardwareBitmap() passing size (100, 200), display mode ENone, creator id 0 -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults CreateHardwareBitmap() must return error KErrArgument (-6) -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND !Error=-6 CFbsBitmap1 CreateHardwareBitmap GRAPHICS-FBSERV-FbsBitmap-PublicApi-0155-001command4CreateHardwareBitmap - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0155 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0156 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0156 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 06/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::CreateHardwareBitmap() test for ERgb display mode -//! Uses API elements: CreateHardwareBitmap() -//! @SYMTestActions 1. Call CreateHardwareBitmap() passing size (100, 200), display mode ERgb, creator id 0 -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults CreateHardwareBitmap() must return error KErrArgument (-6) -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND !Error=-6 CFbsBitmap1 CreateHardwareBitmap GRAPHICS-FBSERV-FbsBitmap-PublicApi-0156-001command4CreateHardwareBitmap - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0156 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0157 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0157 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 06/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::CreateHardwareBitmap() test for EColorLast display mode -//! Uses API elements: CreateHardwareBitmap() -//! @SYMTestActions 1. Call CreateHardwareBitmap() passing size (100, 200), display mode EColorLast, creator id 0 -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults CreateHardwareBitmap() must return error KErrArgument (-6) -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND !Error=-6 CFbsBitmap1 CreateHardwareBitmap GRAPHICS-FBSERV-FbsBitmap-PublicApi-0157-001command4CreateHardwareBitmap - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0157 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0158 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0158 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 06/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::CreateHardwareBitmap() test for invalid display mode -//! Uses API elements: CreateHardwareBitmap() -//! @SYMTestActions 1. Call CreateHardwareBitmap() passing size (100, 200), display mode -1, creator id 0 -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults CreateHardwareBitmap() must return error KErrArgument (-6) -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND !Error=-6 CFbsBitmap1 CreateHardwareBitmap GRAPHICS-FBSERV-FbsBitmap-PublicApi-0158-001command4CreateHardwareBitmap - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0158 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0159 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0159 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 06/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::CreateHardwareBitmap() test for invalid size -//! Uses API elements: CreateHardwareBitmap() -//! @SYMTestActions 1. Call CreateHardwareBitmap() passing size (100, -200), display mode EColor256, creator id 0 -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults CreateHardwareBitmap() must return error KErrArgument (-6) -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND !Error=-6 CFbsBitmap1 CreateHardwareBitmap GRAPHICS-FBSERV-FbsBitmap-PublicApi-0159-001command4CreateHardwareBitmap - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0159 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0160 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0160 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 06/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::HardwareBitmapHandle() test non-hardware bitmap -//! Uses API elements: HardwareBitmapHandle() -//! @SYMTestActions 1. Create a 100x200 bitmap -//! 2. Check that HardwareBitmapHandle() returns 0 -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults HardwareBitmapHandle() call doesn't cause panic and must return 0 -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0160-001command4Create - COMMAND CFbsBitmap1 HardwareBitmapHandle GRAPHICS-FBSERV-FbsBitmap-PublicApi-0160-001command5HardwareBitmapHandle - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0160 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0161 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0161 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 06/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc CFbsBitmap::DataAddress() test without locking heap -//! Uses API elements: DataAddress() -//! @SYMTestActions 1. Create a 100x200 bitmap -//! 2. Call DataAddress() without locking the heap -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults DataAddress() must complete without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsBitmap-PublicApi-0161-001command4Create - COMMAND CFbsBitmap1 DataAddress - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0161 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0165 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0165 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc SwapWidthAndHeight() test on not fully constructed bitmap. -//! Uses API elements: SwapWidthAndHeight() -//! @SYMTestActions 1. Construct a bitmap, but don't load or create it. -//! 2. Call SwapWidthAndHeight(). -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults SwapWidthAndHeight() must return error KErrGeneral (-2). -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND !Error=-2 CFbsBitmap1 SwapWidthAndHeight - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0165 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0166 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0166 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc SwapWidthAndHeight() test with hardware bitmap. -//! Uses API elements: SwapWidthAndHeight() -//! @SYMTestActions 1. Create 10x10, Color256 bitmap hardware bitmap -//! 2. Call SwapWidthAndHeight() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults SwapWidthAndHeight() must return error KErrNotSupported (-5). -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND !Error=-5 CFbsBitmap1 CreateHardwareBitmap GRAPHICS-FBSERV-FbsBitmap-PublicApi-0166-001command4CreateHardwareBitmap - COMMAND !Error=-2 CFbsBitmap1 SwapWidthAndHeight GRAPHICS-FBSERV-FbsBitmap-PublicApi-0166-001command5SwapWidthAndHeight - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0166 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0167 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0167 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc SwapWidthAndHeight() test on ROM bitmap. -//! Uses API elements: SwapWidthAndHeight() -//! @SYMTestActions 1. Load another bitmap from ROM -//! 2. Call SwapWidthAndHeight() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults SwapWidthAndHeight() must return error KErrAccessDenied (-21). -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Load GRAPHICS-FBSERV-FbsBitmap-PublicApi-0167-001command4Load - COMMAND !Error=-21 CFbsBitmap1 SwapWidthAndHeight - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0167 - - -START_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0171 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsBitmap-PublicApi-0171 -//! @SYMAPI CFbsBitmap -//! @SYMAuthor Louis Henry Nayegon -//! @SYMCreationDate 02/08/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -//! @SYMTestCaseDesc Duplicate a bitmap in ROM -//! Uses API elements: Load(), Duplicate() -//! @SYMTestActions 1. Duplicate a bitmap in ROM -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Bitmap is duplicated with no errors. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - CREATE_OBJECT CFbsBitmap CFbsBitmap2 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Load GRAPHICS-FBSERV-FbsBitmap-PublicApi-0171-001command4Load - COMMAND CFbsBitmap1 Handle - COMMAND CFbsBitmap2 new - COMMAND CFbsBitmap2 Duplicate GRAPHICS-FBSERV-FbsBitmap-PublicApi-0171-001command7Duplicate - COMMAND CFbsBitmap1 ~ - COMMAND CFbsBitmap2 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsBitmap-PublicApi-0171 diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fbserv/scripts/GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.script --- a/graphicsapitest/graphicssvs/fbserv/scripts/GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,671 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// -//! @file -//! @SYMTestSuiteName GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi -//! @SYMScriptTestEnvironment This test script requires a basic ROM. - -///////////////////////////////////////////////////////////////////// -// GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicAPI.script -// -// Tests all public elements of the CFbsColor256BitmapUtil class -// as a means of confidence that the APIs work as expected. -// -// The purpose is to provide a regression test suite of PublishedAll APIs for CFbsColor256BitmapUtil. -// Negative testing is performed to confirm that correct errors are returned when incorrect parameters are given. -// The tests are fully automated. -///////////////////////////////////////////////////////////////////// - -LOAD_SUITE T_FBServAPI - - -START_TESTCASE GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0001 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0001 -//! @SYMAPI CFbsColor256BitmapUtil -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 10/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.script -//! @SYMTestCaseDesc Simple CFbsColor256BitmapUtil::NewL() test -//! Uses API elements: NewL() -//! @SYMTestActions 1. Create an instance of CFbsColor256BitmapUtil class using NewL() method with NULL parameter. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Creation of CFbsColor256BitmapUtil class instance should not cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.ini - CREATE_OBJECT CPalette CPalette1 - CREATE_OBJECT CFbsColor256BitmapUtil CFbsColor256BitmapUtil1 - COMMAND CFbsColor256BitmapUtil1 NewL GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0001-001-NewL_command02 - COMMAND CFbsColor256BitmapUtil1 ~ - COMMAND CPalette1 ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0001 - - -START_TESTCASE GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0002 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0002 -//! @SYMAPI CFbsColor256BitmapUtil -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 10/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.script -//! @SYMTestCaseDesc CFbsColor256BitmapUtil::NewL() test with default 256 colors palette -//! Uses API elements: NewL() -//! @SYMTestActions 1. Create an instance of CFbsColor256BitmapUtil class using NewL() method with the default EColor256 palette as a parameter. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Creation of CFbsColor256BitmapUtil class instance should not cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.ini - CREATE_OBJECT CPalette CPalette1 - CREATE_OBJECT CFbsColor256BitmapUtil CFbsColor256BitmapUtil1 - COMMAND CPalette1 NewDefaultL GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0002-001-NewDefaultL_command01 - COMMAND CFbsColor256BitmapUtil1 NewL GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0002-001-NewL_command03 - COMMAND CFbsColor256BitmapUtil1 ~ - COMMAND CPalette1 ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0002 - - -START_TESTCASE GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0003 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0003 -//! @SYMAPI CFbsColor256BitmapUtil -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 10/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.script -//! @SYMTestCaseDesc CFbsColor256BitmapUtil::NewL() with more than 256 colors palette -//! Uses API elements: NewL() -//! @SYMTestActions 1. Create an instance of CFbsColor256BitmapUtil class using NewL() method with the default EColor64K palette as a parameter. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Creation of CFbsColor256BitmapUtil class instance should not cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.ini - CREATE_OBJECT CPalette CPalette1 - CREATE_OBJECT CFbsColor256BitmapUtil CFbsColor256BitmapUtil1 - COMMAND CPalette1 NewL GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0003-001-NewL_command01 - COMMAND CFbsColor256BitmapUtil1 NewL GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0003-001-NewL_command03 - COMMAND CFbsColor256BitmapUtil1 ~ - COMMAND CPalette1 ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0003 - - -START_TESTCASE GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0004 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0004 -//! @SYMAPI CFbsColor256BitmapUtil -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 10/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.script -//! @SYMTestCaseDesc CFbsColor256BitmapUtil::NewL() with less than 256 colors palette -//! Uses API elements: NewL() -//! @SYMTestActions 1. Creates an instance of CFbsColor256BitmapUtil class using NewL() method with the default EColor16 palette as a parameter. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Creation of CFbsColor256BitmapUtil class instance should not cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.ini - CREATE_OBJECT CPalette CPalette1 - CREATE_OBJECT CFbsColor256BitmapUtil CFbsColor256BitmapUtil1 - COMMAND CPalette1 NewDefaultL GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0004-001-NewDefaultL_command01 - COMMAND CFbsColor256BitmapUtil1 NewL GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0004-001-NewL_command03 - COMMAND CFbsColor256BitmapUtil1 ~ - COMMAND CPalette1 ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0004 - -///////////////////// CFbsColor256BitmapUtil::CopyBitmap() TESTS ////////////////////////// - -START_TESTCASE GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0005 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0005 -//! @SYMAPI CFbsColor256BitmapUtil -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 13/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.script -//! @SYMTestCaseDesc Simple CFbsColor256BitmapUtil::CopyBitmap() test -//! Uses API elements: NewL(), CopyBitmap() -//! @SYMTestActions 1. Create two fbs bitmaps with the same size and 256 colors display mode. -//! 2. Create a new CFbsColor256BitmapUtil class instance -//! 3. Call it's CFbsColor256BitmapUtil::CopyBitmap() to copy from the first to the second -//! bitmap with no dithering. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function CopyBitmap() call returns KErrNone and doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsColor256BitmapUtil CFbsColor256BitmapUtil1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - CREATE_OBJECT CFbsBitmap CFbsBitmap2 - CREATE_OBJECT CPalette CPalette1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0005-001-Create_command04 - COMMAND CFbsBitmap2 new - COMMAND CFbsBitmap2 Create GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0005-001-Create_command07 - COMMAND CFbsColor256BitmapUtil1 NewL GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0005-001-NewL_command09 - COMMAND CFbsColor256BitmapUtil1 CopyBitmap GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0005-001-CopyBitmap_command10 - COMMAND CFbsBitmap1 ~ - COMMAND CFbsBitmap2 ~ - COMMAND CFbsColor256BitmapUtil1 ~ - COMMAND RFbsSession1 Disconnect - COMMAND CPalette1 ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0005 - - -START_TESTCASE GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0006 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0006 -//! @SYMAPI CFbsColor256BitmapUtil -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 13/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.script -//! @SYMTestCaseDesc CFbsColor256BitmapUtil::CopyBitmap() test with bitmaps of different sizes (first less than second) with no dithering. -//! Uses API elements: NewL(), CopyBitmap() -//! @SYMTestActions 1. Create two blanks fbs bitmaps with different size (first less than second). -//! 2. Create a new CFbsColor256BitmapUtil class instance -//! 3. Call it's CFbsColor256BitmapUtil::CopyBitmap() to copy from the first to the second with no dithering. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Check that method's call panics FBSCLI with code EFbsColor256UtilError -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsColor256BitmapUtil CFbsColor256BitmapUtil1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - CREATE_OBJECT CFbsBitmap CFbsBitmap2 - CREATE_OBJECT CPalette CPalette1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0006-001-Create_command04 - COMMAND CFbsBitmap2 new - COMMAND CFbsBitmap2 Create GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0006-001-Create_command07 - COMMAND CFbsColor256BitmapUtil1 NewL GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0006-001-NewL_command09 - COMMAND CFbsColor256BitmapUtil1 CopyBitmap GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0006-001-CopyBitmap_command10 - END_TEST_BLOCK !PanicString=FBSCLI !PanicCode=14 - RUN_TEST_STEP 100 T_FBServAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0006 - - -START_TESTCASE GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0007 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0007 -//! @SYMAPI CFbsColor256BitmapUtil -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 13/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.script -//! @SYMTestCaseDesc CFbsColor256BitmapUtil::CopyBitmap() test with bitmaps of different sizes (first larger than second) with no dithering. -//! Uses API elements: NewL(), CopyBitmap() -//! @SYMTestActions 1. Create two blanks fbs bitmaps with different size (first larger than second). -//! 2. Create a new CFbsColor256BitmapUtil class instance -//! 3. Call it's CFbsColor256BitmapUtil::CopyBitmap() to copy from the first to the second with no dithering. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Check that method's call panics FBSCLI with code EFbsColor256UtilError -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsColor256BitmapUtil CFbsColor256BitmapUtil1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - CREATE_OBJECT CFbsBitmap CFbsBitmap2 - CREATE_OBJECT CPalette CPalette1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0007-001-Create_command04 - COMMAND CFbsBitmap2 new - COMMAND CFbsBitmap2 Create GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0007-001-Create_command07 - COMMAND CFbsColor256BitmapUtil1 NewL GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0007-001-NewL_command09 - COMMAND CFbsColor256BitmapUtil1 CopyBitmap GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0007-001-CopyBitmap_command10 - END_TEST_BLOCK !PanicString=FBSCLI !PanicCode=14 - RUN_TEST_STEP 100 T_FBServAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0007 - - -START_TESTCASE GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0008 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0008 -//! @SYMAPI CFbsColor256BitmapUtil -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 13/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.script -//! @SYMTestCaseDesc CFbsColor256BitmapUtil::CopyBitmap() test with bitmaps of different sizes (first less than second) with dithering. -//! Uses API elements: NewL(), CopyBitmap() -//! @SYMTestActions 1. Create two blanks fbs bitmaps with different size (first less than second). -//! 2. Create a new CFbsColor256BitmapUtil class instance -//! 3. Call it's CFbsColor256BitmapUtil::CopyBitmap() to copy from the first to the second with dithering. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Check that method's call panics FBSCLI with code EFbsColor256UtilError -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsColor256BitmapUtil CFbsColor256BitmapUtil1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - CREATE_OBJECT CFbsBitmap CFbsBitmap2 - CREATE_OBJECT CPalette CPalette1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0008-001-Create_command04 - COMMAND CFbsBitmap2 new - COMMAND CFbsBitmap2 Create GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0008-001-Create_command07 - COMMAND CFbsColor256BitmapUtil1 NewL GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0008-001-NewL_command09 - COMMAND CFbsColor256BitmapUtil1 CopyBitmap GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0008-001-CopyBitmap_command10 - END_TEST_BLOCK !PanicString=FBSCLI !PanicCode=14 - RUN_TEST_STEP 100 T_FBServAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0008 - - -START_TESTCASE GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0009 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0009 -//! @SYMAPI CFbsColor256BitmapUtil -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 13/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.script -//! @SYMTestCaseDesc CFbsColor256BitmapUtil::CopyBitmap() test with bitmaps of different sizes (first larger than second) with dithering. -//! Uses API elements: NewL(), CopyBitmap() -//! @SYMTestActions 1. Create two blanks fbs bitmaps with different size (first larger than second). -//! 2. Create a new CFbsColor256BitmapUtil class instance -//! 3. Call it's CFbsColor256BitmapUtil::CopyBitmap() to copy from the first to the second with dithering. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Check that method's call panics FBSCLI with code EFbsColor256UtilError -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsColor256BitmapUtil CFbsColor256BitmapUtil1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - CREATE_OBJECT CFbsBitmap CFbsBitmap2 - CREATE_OBJECT CPalette CPalette1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0009-001-Create_command04 - COMMAND CFbsBitmap2 new - COMMAND CFbsBitmap2 Create GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0009-001-Create_command07 - COMMAND CFbsColor256BitmapUtil1 NewL GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0009-001-NewL_command09 - COMMAND CFbsColor256BitmapUtil1 CopyBitmap GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0009-001-CopyBitmap_command10 - END_TEST_BLOCK !PanicString=FBSCLI !PanicCode=14 - RUN_TEST_STEP 100 T_FBServAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0009 - - -START_TESTCASE GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0010 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0010 -//! @SYMAPI CFbsColor256BitmapUtil -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 13/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.script -//! @SYMTestCaseDesc Less-than-256-color mode destination test of CFbsColor256BitmapUtil::CopyBitmap() with dithering. -//! Uses API elements: NewL(), CopyBitmap() -//! @SYMTestActions 1. Create two fbs bitmaps with the same size so that the first would be in 256-color mode -//! and the second in non-256-color mode (EColor16). -//! 2. Create a new CFbsColor256BitmapUtil class instance -//! 3. Call it's CFbsColor256BitmapUtil::CopyBitmap() to copy from the first to the second with dithering. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Check that method's call panics FBSCLI with code EFbsColor256UtilError -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsColor256BitmapUtil CFbsColor256BitmapUtil1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - CREATE_OBJECT CFbsBitmap CFbsBitmap2 - CREATE_OBJECT CPalette CPalette1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0010-001-Create_command04 - COMMAND CFbsBitmap2 new - COMMAND CFbsBitmap2 Create GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0010-001-Create_command07 - COMMAND CFbsColor256BitmapUtil1 NewL GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0010-001-NewL_command09 - COMMAND CFbsColor256BitmapUtil1 CopyBitmap GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0010-001-CopyBitmap_command10 - END_TEST_BLOCK !PanicString=FBSCLI !PanicCode=14 - RUN_TEST_STEP 100 T_FBServAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0010 - - -START_TESTCASE GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0011 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0011 -//! @SYMAPI CFbsColor256BitmapUtil -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 13/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.script -//! @SYMTestCaseDesc More-than-256-color mode destination test of CFbsColor256BitmapUtil::CopyBitmap() with no dithering. -//! Uses API elements: NewL(), CopyBitmap() -//! @SYMTestActions 1. Create two fbs bitmaps with the same size so that the first would be in 256-color mode -//! and the second in non-256-color mode (EColor16M). -//! 2. Create a new CFbsColor256BitmapUtil class instance -//! 3. Call it's CFbsColor256BitmapUtil::CopyBitmap() to copy from the first to the second with no dithering. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Check that method's call panics FBSCLI with code EFbsColor256UtilError -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsColor256BitmapUtil CFbsColor256BitmapUtil1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - CREATE_OBJECT CFbsBitmap CFbsBitmap2 - CREATE_OBJECT CPalette CPalette1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0011-001-Create_command04 - COMMAND CFbsBitmap2 new - COMMAND CFbsBitmap2 Create GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0011-001-Create_command07 - COMMAND CFbsColor256BitmapUtil1 NewL GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0011-001-NewL_command09 - COMMAND CFbsColor256BitmapUtil1 CopyBitmap GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0011-001-CopyBitmap_command10 - END_TEST_BLOCK !PanicString=FBSCLI !PanicCode=14 - RUN_TEST_STEP 100 T_FBServAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0011 - - -START_TESTCASE GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0012 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0012 -//! @SYMAPI CFbsColor256BitmapUtil -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 13/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.script -//! @SYMTestCaseDesc CFbsColor256BitmapUtil::CopyBitmap() test for supported display modes of source -//! Uses API elements: NewL(), CopyBitmap() -//! @SYMTestActions 1. Create fbs bitmaps with the following display modes EColor16M, EColor64K, EColor4K or EColor256 and the same size. -//! 2. Create a destination fbs bitmap of the same size like all those source bitmaps and in EColor256 display mode. -//! 3. Create a new CFbsColor256BitmapUtil class instance -//! 4. Call it's CFbsColor256BitmapUtil::CopyBitmap() to copy from the sources to the destination trying both with dithering and without. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function CopyBitmap() call returns KErrNone and doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsColor256BitmapUtil CFbsColor256BitmapUtil1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - CREATE_OBJECT CFbsBitmap CFbsBitmap2 - CREATE_OBJECT CFbsBitmap CFbsBitmap3 - CREATE_OBJECT CFbsBitmap CFbsBitmap4 - CREATE_OBJECT CFbsBitmap CFbsBitmap5 - CREATE_OBJECT CPalette CPalette1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0012-001-Create_command04 - COMMAND CFbsBitmap2 new - COMMAND CFbsBitmap2 Create GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0012-001-Create_command07 - COMMAND CFbsBitmap3 new - COMMAND CFbsBitmap3 Create GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0012-001-Create_command10 - COMMAND CFbsBitmap4 new - COMMAND CFbsBitmap4 Create GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0012-001-Create_command13 - COMMAND CFbsBitmap5 new - COMMAND CFbsBitmap5 Create GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0012-001-Create_command16 - COMMAND CFbsColor256BitmapUtil1 NewL GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0012-001-NewL_command18 - COMMAND CFbsColor256BitmapUtil1 CopyBitmap GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0012-001-CopyBitmap_command19 - COMMAND CFbsColor256BitmapUtil1 CopyBitmap GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0012-001-CopyBitmap_command20 - COMMAND CFbsColor256BitmapUtil1 CopyBitmap GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0012-001-CopyBitmap_command21 - COMMAND CFbsColor256BitmapUtil1 CopyBitmap GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0012-001-CopyBitmap_command22 - COMMAND CFbsColor256BitmapUtil1 CopyBitmap GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0012-001-CopyBitmap_command23 - COMMAND CFbsColor256BitmapUtil1 CopyBitmap GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0012-001-CopyBitmap_command24 - COMMAND CFbsColor256BitmapUtil1 CopyBitmap GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0012-001-CopyBitmap_command25 - COMMAND CFbsColor256BitmapUtil1 CopyBitmap GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0012-001-CopyBitmap_command26 - COMMAND CFbsBitmap1 ~ - COMMAND CFbsBitmap2 ~ - COMMAND CFbsBitmap3 ~ - COMMAND CFbsBitmap4 ~ - COMMAND CFbsBitmap5 ~ - COMMAND CFbsColor256BitmapUtil1 ~ - COMMAND RFbsSession1 Disconnect - COMMAND CPalette1 ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0012 - - -START_TESTCASE GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0013 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0013 -//! @SYMAPI CFbsColor256BitmapUtil -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 13/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.script -//! @SYMTestCaseDesc CFbsColor256BitmapUtil::CopyBitmap() test for not supported display mode (EGray256) of source -//! Uses API elements: NewL(), CopyBitmap() -//! @SYMTestActions 1. Create a fbs bitmap with the following display modes: EGray256. -//! 2. Create a destination fbs bitmap of the same size and in EColor256 display mode. -//! 3. Create a new CFbsColor256BitmapUtil class instance -//! 4. Call it's CFbsColor256BitmapUtil::CopyBitmap() to copy from the source to the destination with dithering. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Check that method's call returns KErrNotSupported. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsColor256BitmapUtil CFbsColor256BitmapUtil1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - CREATE_OBJECT CFbsBitmap CFbsBitmap2 - CREATE_OBJECT CPalette CPalette1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0013-001-Create_command04 - COMMAND CFbsBitmap2 new - COMMAND CFbsBitmap2 Create GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0013-001-Create_command07 - COMMAND CFbsColor256BitmapUtil1 NewL GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0013-001-NewL_command09 - COMMAND !Error=-5 CFbsColor256BitmapUtil1 CopyBitmap GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0013-001-CopyBitmap_command10 - COMMAND CFbsBitmap1 ~ - COMMAND CFbsBitmap2 ~ - COMMAND CFbsColor256BitmapUtil1 ~ - COMMAND RFbsSession1 Disconnect - COMMAND CPalette1 ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0013 - - -START_TESTCASE GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0014 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0014 -//! @SYMAPI CFbsColor256BitmapUtil -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 13/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.script -//! @SYMTestCaseDesc CFbsColor256BitmapUtil::CopyBitmap() test for not supported display mode (EColor16MU) of source -//! Uses API elements: NewL(), CopyBitmap() -//! @SYMTestActions 1. Create a fbs bitmap with the following display modes: EColor16MU. -//! 2. Create a destination fbs bitmap of the same size and in EColor256 display mode. -//! 3. Create a new CFbsColor256BitmapUtil class instance -//! 4. Call it's CFbsColor256BitmapUtil::CopyBitmap() to copy from the source to the destination with no dithering. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Check that method's call returns KErrNotSupported. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsColor256BitmapUtil CFbsColor256BitmapUtil1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - CREATE_OBJECT CFbsBitmap CFbsBitmap2 - CREATE_OBJECT CPalette CPalette1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0014-001-Create_command04 - COMMAND CFbsBitmap2 new - COMMAND CFbsBitmap2 Create GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0014-001-Create_command07 - COMMAND CFbsColor256BitmapUtil1 NewL GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0014-001-NewL_command09 - COMMAND !Error=-5 CFbsColor256BitmapUtil1 CopyBitmap GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0014-001-CopyBitmap_command10 - COMMAND CFbsBitmap1 ~ - COMMAND CFbsBitmap2 ~ - COMMAND CFbsColor256BitmapUtil1 ~ - COMMAND RFbsSession1 Disconnect - COMMAND CPalette1 ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0014 - - -START_TESTCASE GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0015 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0015 -//! @SYMAPI CFbsColor256BitmapUtil -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 13/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.script -//! @SYMTestCaseDesc CFbsColor256BitmapUtil::CopyBitmap() test for not supported display mode (EColor16MA) of source -//! Uses API elements: NewL(), CopyBitmap() -//! @SYMTestActions 1. Create a fbs bitmap with the following display modes: EColor16MA. -//! 2. Create a destination fbs bitmap of the same size and in EColor256 display mode. -//! 3. Create a new CFbsColor256BitmapUtil class instance -//! 4. Call it's CFbsColor256BitmapUtil::CopyBitmap() to copy from the source to the destination with dithering. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Check that method's call returns KErrNotSupported. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsColor256BitmapUtil CFbsColor256BitmapUtil1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - CREATE_OBJECT CFbsBitmap CFbsBitmap2 - CREATE_OBJECT CPalette CPalette1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0015-001-Create_command04 - COMMAND CFbsBitmap2 new - COMMAND CFbsBitmap2 Create GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0015-001-Create_command07 - COMMAND CFbsColor256BitmapUtil1 NewL GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0015-001-NewL_command09 - COMMAND !Error=-5 CFbsColor256BitmapUtil1 CopyBitmap GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0015-001-CopyBitmap_command10 - COMMAND CFbsBitmap1 ~ - COMMAND CFbsBitmap2 ~ - COMMAND CFbsColor256BitmapUtil1 ~ - COMMAND RFbsSession1 Disconnect - COMMAND CPalette1 ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0015 - - -START_TESTCASE GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0016 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0016 -//! @SYMAPI CFbsColor256BitmapUtil -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 13/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.script -//! @SYMTestCaseDesc CFbsColor256BitmapUtil::CopyBitmap() test with not-constructed bitmaps -//! Uses API elements: NewL(), CopyBitmap() -//! @SYMTestActions 1. Create two fbs bitmaps don't custruct them really (don't call neither Load() or Create()). -//! 2. Create a new CFbsColor256BitmapUtil class instance -//! 3. Call it's CFbsColor256BitmapUtil::CopyBitmap() to copy from the first to the second using dithering and without it. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The function CopyBitmap() call returns KErrNone and doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsColor256BitmapUtil CFbsColor256BitmapUtil1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - CREATE_OBJECT CFbsBitmap CFbsBitmap2 - CREATE_OBJECT CPalette CPalette1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap2 new - COMMAND CFbsColor256BitmapUtil1 NewL GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0016-001-NewL_command07 - COMMAND CFbsColor256BitmapUtil1 CopyBitmap GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0016-001-CopyBitmap_command08 - END_TEST_BLOCK !PanicString=FBSCLI !PanicCode=14 - RUN_TEST_STEP 100 T_FBServAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0016 - - -//!START_TESTCASE GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0017 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0017 -//! @SYMAPI CFbsColor256BitmapUtil -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 13/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.script -//! @SYMTestCaseDesc CFbsColor256BitmapUtil::CopyBitmap() test with NULL bitmap pointers -//! Uses API elements: NewL(), CopyBitmap() -//! @SYMTestActions 1. Create a new CFbsColor256BitmapUtil class instance -//! 3. Call it's CFbsColor256BitmapUtil::CopyBitmap() and pass NULLs as source and destination. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The function CopyBitmap() call returns KErrNone and doesn't cause panic. -//! @SYMTestType CIT -//! START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.ini -//! CREATE_OBJECT RFbsSession RFbsSession1 -//! CREATE_OBJECT CFbsColor256BitmapUtil CFbsColor256BitmapUtil1 -//! CREATE_OBJECT CFbsBitmap CFbsBitmap1 -//! CREATE_OBJECT CFbsBitmap CFbsBitmap2 -//! CREATE_OBJECT CPalette CPalette1 -//! COMMAND CFbsColor256BitmapUtil1 NewL GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0017-001-NewL_command02 -//! COMMAND CFbsColor256BitmapUtil1 CopyBitmap GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0017-001-CopyBitmap_command03 -//! END_TEST_BLOCK !PanicCode=3 !PanicString=KERN-EXEC -//! RUN_TEST_STEP 100 T_FBServAPI utilityClearPanicDlg -//!END_TESTCASE GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0017 - - -START_TESTCASE GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0018 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0018 -//! @SYMAPI CFbsColor256BitmapUtil -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 13/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.script -//! @SYMTestCaseDesc CFbsColor256BitmapUtil::CopyBitmap() test with bitmaps of 0-sizes -//! Uses API elements: NewL(), CopyBitmap() -//! @SYMTestActions 1. Create two fbs 0x0 bitmaps and in 256 colors display mode. -//! 2. Create a new CFbsColor256BitmapUtil class instance -//! 3. Call it's CFbsColor256BitmapUtil::CopyBitmap() to copy from the first to the second using dithering and without it. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function CopyBitmap() call returns KErrNone and doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsColor256BitmapUtil CFbsColor256BitmapUtil1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - CREATE_OBJECT CFbsBitmap CFbsBitmap2 - CREATE_OBJECT CPalette CPalette1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0018-001-Create_command04 - COMMAND CFbsBitmap2 new - COMMAND CFbsBitmap2 Create GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0018-001-Create_command07 - COMMAND CFbsColor256BitmapUtil1 NewL GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0018-001-NewL_command09 - COMMAND CFbsColor256BitmapUtil1 CopyBitmap GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0018-001-CopyBitmap_command10 - COMMAND CFbsBitmap1 ~ - COMMAND CFbsBitmap2 ~ - COMMAND CFbsColor256BitmapUtil1 ~ - COMMAND RFbsSession1 Disconnect - COMMAND CPalette1 ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0018 - - -START_TESTCASE GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0019 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0019 -//! @SYMAPI CFbsColor256BitmapUtil -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 13/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.script -//! @SYMTestCaseDesc CFbsColor256BitmapUtil::CopyBitmap() test with custom palette -//! Uses API elements: NewL(), CopyBitmap() -//! @SYMTestActions 1. Create two fbs bitmaps with the same size and 256 colors display mode. -//! 2. Load a bitmap image into the first of them. -//! 3. Create a 256-colors-palette -//! 4. Create a new CFbsColor256BitmapUtil class instance passing the palette to NewL() method -//! 5. Call it's CFbsColor256BitmapUtil::CopyBitmap() to copy from the first to the second bitmap with dithering and without dithering. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function CopyBitmap() call returns KErrNone and doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsColor256BitmapUtil CFbsColor256BitmapUtil1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - CREATE_OBJECT CFbsBitmap CFbsBitmap2 - CREATE_OBJECT CPalette CPalette1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0019-001-Create_command04 - COMMAND CFbsBitmap2 new - COMMAND CFbsBitmap2 Create GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0019-001-Create_command07 - COMMAND CPalette1 NewL GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0019-001-NewL_command09 - COMMAND CFbsColor256BitmapUtil1 NewL GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0019-001-NewL_command11 - COMMAND CFbsColor256BitmapUtil1 CopyBitmap GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0019-001-CopyBitmap_command12 - COMMAND CFbsBitmap1 ~ - COMMAND CFbsBitmap2 ~ - COMMAND CFbsColor256BitmapUtil1 ~ - COMMAND RFbsSession1 Disconnect - COMMAND CPalette1 ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0019 diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fbserv/scripts/GRAPHICS-FBSERV-FbsFont-PublicApi.script --- a/graphicsapitest/graphicssvs/fbserv/scripts/GRAPHICS-FBSERV-FbsFont-PublicApi.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,956 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// -//! @file -//! @SYMTestSuiteName GRAPHICS-FBSERV-FbsFont-PublicApi -//! @SYMScriptTestEnvironment This test script requires a basic ROM. - -///////////////////////////////////////////////////////////////////// -// GRAPHICS-FBSERV-FbsFont-PublicAPI.script -// -// Tests all public elements of the CFbsFont class -// as a means of confidence that the APIs work as expected. -// -// The purpose is to provide a regression test suite of PublishedAll APIs for CFbsFont. -// Negative testing is performed to confirm that correct errors are returned when incorrect parameters are given. -// The tests are fully automated. -///////////////////////////////////////////////////////////////////// - -LOAD_SUITE T_FBServAPI - - -START_TESTCASE GRAPHICS-FBSERV-FbsFont-PublicApi-0001 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsFont-PublicApi-0001 -//! @SYMAPI CFbsFont -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 22/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsFont-PublicApi.script -//! @SYMTestCaseDesc Simple CFbsFont test -//! @SYMTestActions 1. Create FBS session -//! 2. Create FBS typeface store -//! 3. Creates a CFbsFont class instance obtaining it from FBS typeface store -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Creation of CFbsFont class doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - CREATE_OBJECT CFbsFont CFbsFont1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInPixels GRAPHICS-FBSERV-FbsFont-PublicApi-0001-001-GetNearestFontToDesignHeightInPixels_command004 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsFont-PublicApi-0001 - - -START_TESTCASE GRAPHICS-FBSERV-FbsFont-PublicApi-0002 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsFont-PublicApi-0002 -//! @SYMAPI CFbsFont -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 22/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsFont-PublicApi.script -//! @SYMTestCaseDesc CFbsFont::GetFontMetrics() test -//! Uses API elements: GetFontMetrics() -//! @SYMTestActions 1. Create FBS session -//! 2. Create FBS typeface store -//! 3. Creates a CFbsFont class instance obtaining it from Arial, 12px FBS typeface store -//! 4. Create a TOpenFontMetrics instance and pass it as a parameter to font's GetFontMetrics -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function GetFontMetrics() returns true and doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - CREATE_OBJECT CFbsFont CFbsFont1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInPixels GRAPHICS-FBSERV-FbsFont-PublicApi-0002-001-GetNearestFontToDesignHeightInPixels_command004 - COMMAND CFbsFont1 GetFontMetrics GRAPHICS-FBSERV-FbsFont-PublicApi-0002-001-GetFontMetrics_command006 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsFont-PublicApi-0002 - - -START_TESTCASE GRAPHICS-FBSERV-FbsFont-PublicApi-0003 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsFont-PublicApi-0003 -//! @SYMAPI CFbsFont -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 22/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsFont-PublicApi.script -//! @SYMTestCaseDesc CFbsFont::TextWidthInPixels() test -//! Uses API elements: TextWidthInPixels() -//! @SYMTestActions 1. Create FBS session -//! 2. Create FBS typeface store -//! 3. Creates a CFbsFont class instance obtaining it from FBS typeface store -//! 4. Call TextWidthInPixels(const TDesC\&) method passing descriptor "a" -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The TextWidthInPixels() result value is greater than 0 and the method doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - CREATE_OBJECT CFbsFont CFbsFont1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInPixels GRAPHICS-FBSERV-FbsFont-PublicApi-0003-001-GetNearestFontToDesignHeightInPixels_command004 - COMMAND CFbsFont1 TextWidthInPixels GRAPHICS-FBSERV-FbsFont-PublicApi-0003-001-TextWidthInPixels_command006 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsFont-PublicApi-0003 - - -START_TESTCASE GRAPHICS-FBSERV-FbsFont-PublicApi-0004 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsFont-PublicApi-0004 -//! @SYMAPI CFbsFont -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 22/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsFont-PublicApi.script -//! @SYMTestCaseDesc CFbsFont::TextWidthInPixels() with SCharWidth as a parameter test -//! Uses API elements: TextWidthInPixels() -//! @SYMTestActions 1. Create FBS session -//! 2. Create FBS typeface store -//! 3. Creates a CFbsFont class instance obtaining it from FBS typeface store -//! 4. Call TextWidthInPixels(const TDesC\&, SCharWidth\&) method passing descriptor "a" -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The TextWidthInPixels() result value is equal to SCharWidth.iMove and iLeftAdjust + iWidth + iRightAdjust -//! of the SCharWidth to equal iMove and the method doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - CREATE_OBJECT CFbsFont CFbsFont1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInPixels GRAPHICS-FBSERV-FbsFont-PublicApi-0004-001-GetNearestFontToDesignHeightInPixels_command004 - COMMAND CFbsFont1 TextWidthInPixelsWithCharWidth GRAPHICS-FBSERV-FbsFont-PublicApi-0004-001-TextWidthInPixelsWithCharWidth_command006 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsFont-PublicApi-0004 - - -START_TESTCASE GRAPHICS-FBSERV-FbsFont-PublicApi-0005 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsFont-PublicApi-0005 -//! @SYMAPI CFbsFont -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 22/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsFont-PublicApi.script -//! @SYMTestCaseDesc CFbsFont::Handle() test -//! Uses API elements: Handle() -//! @SYMTestActions 1. Create FBS session -//! 2. Create FBS typeface store -//! 3. Creates a CFbsFont class instance obtaining it from FBS typeface store -//! 4. Call Handle() method -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The result of Handle() is not zero and the method doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - CREATE_OBJECT CFbsFont CFbsFont1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInPixels GRAPHICS-FBSERV-FbsFont-PublicApi-0005-001-GetNearestFontToDesignHeightInPixels_command004 - COMMAND CFbsFont1 Handle - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsFont-PublicApi-0005 - - -START_TESTCASE GRAPHICS-FBSERV-FbsFont-PublicApi-0007 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsFont-PublicApi-0007 -//! @SYMAPI CFbsFont -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 22/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsFont-PublicApi.script -//! @SYMTestCaseDesc Deprecated CFbsFont::RawTextWidthInPixels() test -//! Uses API elements: RawTextWidthInPixels(), MeasureText() -//! @SYMTestActions 1. Create FBS session -//! 2. Create FBS typeface store -//! 3. Creates a CFbsFont class instance obtaining it from FBS typeface store -//! 4. Call RawTextWidthInPixels() method passing descriptor "qwerty" to it -//! 5. Use MeasureText() methods to check that result is the same -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults RawTextWidthInPixels() method call will give same result as MeasureText() and the RawTextWidthInPixels() method doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - CREATE_OBJECT CFbsFont CFbsFont1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInPixels GRAPHICS-FBSERV-FbsFont-PublicApi-0007-001-GetNearestFontToDesignHeightInPixels_command004 - COMMAND CFbsFont1 RawTextWidthInPixels GRAPHICS-FBSERV-FbsFont-PublicApi-0007-001-RawTextWidthInPixels_command006 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsFont-PublicApi-0007 - - -START_TESTCASE GRAPHICS-FBSERV-FbsFont-PublicApi-0008 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsFont-PublicApi-0008 -//! @SYMAPI CFbsFont -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 22/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsFont-PublicApi.script -//! @SYMTestCaseDesc CFbsFont::GetFaceAttrib() test -//! Uses API elements: GetFaceAttrib() -//! @SYMTestActions 1. Create FBS session -//! 2. Create FBS typeface store -//! 3. Creates a CFbsFont class instance (for an Open Font, take Swiss) obtaining it from FBS typeface store -//! 4. Call GetFaceAttrib() method passing a blank TOpenFontFaceAttrib instance to it -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Font face attributes are correct and the GetFaceAttrib() method doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - CREATE_OBJECT CFbsFont CFbsFont1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInPixels GRAPHICS-FBSERV-FbsFont-PublicApi-0008-001-GetNearestFontToDesignHeightInPixels_command004 - COMMAND CFbsFont1 GetFaceAttrib GRAPHICS-FBSERV-FbsFont-PublicApi-0008-001-GetFaceAttrib_command006 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsFont-PublicApi-0008 - - -START_TESTCASE GRAPHICS-FBSERV-FbsFont-PublicApi-0009 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsFont-PublicApi-0009 -//! @SYMAPI CFbsFont -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 22/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsFont-PublicApi.script -//! @SYMTestCaseDesc CFbsFont::IsOpenFont() test -//! Uses API elements: IsOpenFont() -//! @SYMTestActions 1. Create FBS session -//! 2. Create FBS typeface store -//! 3. Creates several instances of CFbsFont class for different fonts -//! obtaining them from FBS typeface store -//! 4. Call their CFbsFont::IsOpenFont() method -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function IsOpenFont() doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - CREATE_OBJECT CFbsFont CFbsFont1 - CREATE_OBJECT CFbsFont CFbsFont2 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInPixels GRAPHICS-FBSERV-FbsFont-PublicApi-0009-001-GetNearestFontToDesignHeightInPixels_command004 - COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInPixels GRAPHICS-FBSERV-FbsFont-PublicApi-0009-001-GetNearestFontToDesignHeightInPixels_command005 - COMMAND CFbsFont1 IsOpenFont - COMMAND CFbsFont2 IsOpenFont - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsFont-PublicApi-0009 - - -START_TESTCASE GRAPHICS-FBSERV-FbsFont-PublicApi-0010 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsFont-PublicApi-0010 -//! @SYMAPI CFbsFont -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 22/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsFont-PublicApi.script -//! @SYMTestCaseDesc CFbsFont::HasCharacter() test -//! Uses API elements: HasCharacter() -//! @SYMTestActions 1. Create FBS session -//! 2. Create FBS typeface store -//! 3. Creates a CFbsFont class instance (for an Open Font) obtaining it from FBS typeface store -//! 4. Call CFbsFont::HasCharacter() method for character 'a' -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Expects that the HasCharacter() method call returns ETrue and doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - CREATE_OBJECT CFbsFont CFbsFont1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInPixels GRAPHICS-FBSERV-FbsFont-PublicApi-0010-001-GetNearestFontToDesignHeightInPixels_command004 - COMMAND CFbsFont1 HasCharacter GRAPHICS-FBSERV-FbsFont-PublicApi-0010-001-HasCharacter_command006 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsFont-PublicApi-0010 - - -START_TESTCASE GRAPHICS-FBSERV-FbsFont-PublicApi-0011 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsFont-PublicApi-0011 -//! @SYMAPI CFbsFont -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 27/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsFont-PublicApi.script -//! @SYMTestCaseDesc Simple test of font metrics related methods inherited from CFont -//! Uses API elements: FontCapitalAscent(), FontMaxAscent(), FontStandardDescent(), FontMaxDescent(), FontLineGap(), -//! FontMaxHeight(), TypeUid(), HeightInPixels(), AscentInPixels(), DescentInPixels(), CharWidthInPixels(), -//! TextCount(), MaxCharWidthInPixels(), MaxNormalCharWidthInPixels(), FontSpecInTwips(), -//! WidthZeroInPixels(), BaselineOffsetInPixels() -//! @SYMTestActions 1. Create FBS session -//! 2. Create FBS typeface store -//! 3. Create a CFbsFont (Arial, 12px) class instance obtaining it from FBS typeface store -//! 4. Call FontCapitalAscent() -//! 5. Call FontMaxAscent() -//! 6. Call FontStandardDescent() -//! 7. Call FontMaxDescent() -//! 8. Call FontLineGap() -//! 9. Call FontMaxHeight() -//! 10. Call TypeUid() -//! 11. Call HeightInPixels() -//! 12. Call AscentInPixels() -//! 13. Call DescentInPixels() -//! 14. Call CharWidthInPixels() passing 'a' as an argument -//! 15. Call TextCount() with "a" and 100, check that the retuned value is 1 -//! 16. Call TextCount() with "abcdf", 30 and a excessWidthInPixels variable as arguments, check that returned value -//! and aExcessWidthInPixels are greater that 0 -//! 17. Call MaxCharWidthInPixels() -//! 18. Call MaxNormalCharWidthInPixels() -//! 19. Call FontSpecInTwips() -//! 20. Call WidthZeroInPixels() -//! 21. Call BaselineOffsetInPixels() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Expects the operations not to cause panic and returned values of the methods to be greater than 0 -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - CREATE_OBJECT CFbsFont CFbsFont1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInPixels GRAPHICS-FBSERV-FbsFont-PublicApi-0011-001-GetNearestFontToDesignHeightInPixels_command004 - COMMAND CFbsFont1 FontCapitalAscent - COMMAND CFbsFont1 FontMaxAscent - COMMAND CFbsFont1 FontStandardDescent - COMMAND CFbsFont1 FontMaxDescent - COMMAND CFbsFont1 FontLineGap - COMMAND CFbsFont1 FontMaxHeight - COMMAND CFbsFont1 TypeUid - COMMAND CFbsFont1 HeightInPixels - COMMAND CFbsFont1 AscentInPixels - COMMAND CFbsFont1 DescentInPixels - COMMAND CFbsFont1 CharWidthInPixels GRAPHICS-FBSERV-FbsFont-PublicApi-0011-001-CharWidthInPixels_command016 - COMMAND CFbsFont1 TextCount GRAPHICS-FBSERV-FbsFont-PublicApi-0011-001-TextCount_command017 - COMMAND CFbsFont1 TextCount GRAPHICS-FBSERV-FbsFont-PublicApi-0011-001-TextCount_command018 - COMMAND CFbsFont1 MaxCharWidthInPixels - COMMAND CFbsFont1 MaxNormalCharWidthInPixels - COMMAND CFbsFont1 FontSpecInTwips - COMMAND CFbsFont1 WidthZeroInPixels - COMMAND CFbsFont1 BaselineOffsetInPixels - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsFont-PublicApi-0011 - - -START_TESTCASE GRAPHICS-FBSERV-FbsFont-PublicApi-0012 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsFont-PublicApi-0012 -//! @SYMAPI CFbsFont -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 28/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsFont-PublicApi.script -//! @SYMTestCaseDesc CFbsFont::GetCharacterData() test -//! Uses API elements: GetCharacterData() -//! @SYMTestActions 1. Create FBS session -//! 2. Create FBS typeface store -//! 3. Create a CFbsFont (Arial, 12px) class instance obtaining it from FBS typeface store -//! 4. Call GetCharacterData() passing code 65 ('a') as an argument -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Expects the GetCharacterData() function call not to cause panic and that passed arguments are set to meaningful values -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - CREATE_OBJECT CFbsFont CFbsFont1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInPixels GRAPHICS-FBSERV-FbsFont-PublicApi-0012-001-GetNearestFontToDesignHeightInPixels_command004 - COMMAND CFbsFont1 GetCharacterData GRAPHICS-FBSERV-FbsFont-PublicApi-0012-001-GetCharacterData_command006 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsFont-PublicApi-0012 - - -START_TESTCASE GRAPHICS-FBSERV-FbsFont-PublicApi-0013 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsFont-PublicApi-0013 -//! @SYMAPI CFbsFont -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 28/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsFont-PublicApi.script -//! @SYMTestCaseDesc CFbsFont::MeasureText() test -//! Uses API elements: MeasureText() -//! @SYMTestActions 1. Create FBS session -//! 2. Create FBS typeface store -//! 3. Create a CFbsFont (Arial, 12px) class instance obtaining it from FBS typeface store -//! 4. Call MeasureText() passing only a descriptor "a" as an argument -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Expects the MeasureText() function call not to cause panic and returned value to be greater that 0 -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - CREATE_OBJECT CFbsFont CFbsFont1 - CREATE_OBJECT TMeasureTextInput TMeasureTextInput1 - CREATE_OBJECT TMeasureTextOutput TMeasureTextOutput1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInPixels GRAPHICS-FBSERV-FbsFont-PublicApi-0013-001-GetNearestFontToDesignHeightInPixels_command004 - COMMAND TMeasureTextOutput1 new - COMMAND TMeasureTextInput1 new - COMMAND CFbsFont1 MeasureText GRAPHICS-FBSERV-FbsFont-PublicApi-0013-001-MeasureText_command010 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - COMMAND TMeasureTextInput1 ~ - COMMAND TMeasureTextOutput1 ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsFont-PublicApi-0013 - - -START_TESTCASE GRAPHICS-FBSERV-FbsFont-PublicApi-0014 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsFont-PublicApi-0014 -//! @SYMAPI CFbsFont -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 28/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsFont-PublicApi.script -//! @SYMTestCaseDesc CFbsFont::ExtendedFunction() test -//! Uses API elements: ExtendedFunction() -//! @SYMTestActions 1. Create FBS session -//! 2. Create FBS typeface store -//! 3. Create a CFbsFont (Arial, 12px) class instance obtaining it from FBS typeface store -//! 4. Call font's ExtendedFunction() passing KFontCapitalAscent (0x1020498E defined in GDI.H) as a parameter -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Expects the ExtendedFunction() call not to cause panic and returned value to be greater than 0 -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - CREATE_OBJECT CFbsFont CFbsFont1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInPixels GRAPHICS-FBSERV-FbsFont-PublicApi-0014-001-GetNearestFontToDesignHeightInPixels_command004 - COMMAND CFbsFont1 ExtendedFunction GRAPHICS-FBSERV-FbsFont-PublicApi-0014-001-ExtendedFunction_command006 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsFont-PublicApi-0014 - - -START_TESTCASE GRAPHICS-FBSERV-FbsFont-PublicApi-0017 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsFont-PublicApi-0017 -//! @SYMAPI CFbsFont -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 31/05/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsFont-PublicApi.script -//! @SYMTestCaseDesc CFbsFont::TextWidthInPixels() test with an empty string -//! Uses API elements: TextWidthInPixels() -//! @SYMTestActions 1. Create FBS session -//! 2. Create FBS typeface store -//! 3. Creates a CFbsFont class instance obtaining it from FBS typeface store -//! 4. Call TextWidthInPixels(const TDesC&) method passing descriptor "" -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function TextWidthInPixels() doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - CREATE_OBJECT CFbsFont CFbsFont1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInPixels GRAPHICS-FBSERV-FbsFont-PublicApi-0017-001-GetNearestFontToDesignHeightInPixels_command004 - COMMAND CFbsFont1 TextWidthInPixels GRAPHICS-FBSERV-FbsFont-PublicApi-0017-001-TextWidthInPixels_command006 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsFont-PublicApi-0017 - - -START_TESTCASE GRAPHICS-FBSERV-FbsFont-PublicApi-0018 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsFont-PublicApi-0018 -//! @SYMAPI CFbsFont -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 31/05/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsFont-PublicApi.script -//! @SYMTestCaseDesc CFbsFont::RawTextWidthInPixels() test with an empty string -//! Uses API elements: RawTextWidthInPixels() -//! @SYMTestActions 1. Create FBS session -//! 2. Create FBS typeface store -//! 3. Creates a CFbsFont class instance obtaining it from FBS typeface store -//! 4. Call RawTextWidthInPixels() method passing descriptor "" -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function RawTextWidthInPixels() doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - CREATE_OBJECT CFbsFont CFbsFont1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInPixels GRAPHICS-FBSERV-FbsFont-PublicApi-0018-001-GetNearestFontToDesignHeightInPixels_command004 - COMMAND CFbsFont1 RawTextWidthInPixels GRAPHICS-FBSERV-FbsFont-PublicApi-0018-001-RawTextWidthInPixels_command006 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsFont-PublicApi-0018 - - -START_TESTCASE GRAPHICS-FBSERV-FbsFont-PublicApi-0019 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsFont-PublicApi-0019 -//! @SYMAPI CFbsFont -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 31/05/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsFont-PublicApi.script -//! @SYMTestCaseDesc CFbsFont::HasCharacter() test for negative character code -//! Uses API elements: HasCharacter() -//! @SYMTestActions 1. Create FBS session -//! 2. Create FBS typeface store -//! 3. Creates a CFbsFont class instance (for an Open Font) obtaining it from FBS typeface store -//! 4. Call CFbsFont::HasCharacter() method passign code -1 as an argument -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function HasCharacter() doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - CREATE_OBJECT CFbsFont CFbsFont1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInPixels GRAPHICS-FBSERV-FbsFont-PublicApi-0019-001-GetNearestFontToDesignHeightInPixels_command004 - COMMAND CFbsFont1 HasCharacter GRAPHICS-FBSERV-FbsFont-PublicApi-0019-001-HasCharacter_command006 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsFont-PublicApi-0019 - - -START_TESTCASE GRAPHICS-FBSERV-FbsFont-PublicApi-0020 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsFont-PublicApi-0020 -//! @SYMAPI CFbsFont -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 31/05/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsFont-PublicApi.script -//! @SYMTestCaseDesc CFbsFont::CharWidthInPixels() test with 0 as character code -//! Uses API elements: CharWidthInPixels() -//! @SYMTestActions 1. Create FBS session -//! 2. Create FBS typeface store -//! 3. Create a CFbsFont (Arial, 12px) class instance obtaining it from FBS typeface store -//! 4. Call CharWidthInPixels() passing char with code 0 as an argument -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function CharWidthInPixels() doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - CREATE_OBJECT CFbsFont CFbsFont1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInPixels GRAPHICS-FBSERV-FbsFont-PublicApi-0020-001-GetNearestFontToDesignHeightInPixels_command004 - COMMAND CFbsFont1 CharWidthInPixels GRAPHICS-FBSERV-FbsFont-PublicApi-0020-001-CharWidthInPixels_command006 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsFont-PublicApi-0020 - - -START_TESTCASE GRAPHICS-FBSERV-FbsFont-PublicApi-0021 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsFont-PublicApi-0021 -//! @SYMAPI CFbsFont -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 31/05/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsFont-PublicApi.script -//! @SYMTestCaseDesc CFbsFont::TextCount() (TextCount(const TDesC &aText, TInt aWidthInPixels) version) test with negative argument in place of width in pexils -//! Uses API elements: TextCount() -//! @SYMTestActions 1. Create FBS session -//! 2. Create FBS typeface store -//! 3. Create a CFbsFont (Arial, 12px) class instance obtaining it from FBS typeface store -//! 4. Call TextCount() passing text "qwerty" and width -1 -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function TextCount() doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - CREATE_OBJECT CFbsFont CFbsFont1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInPixels GRAPHICS-FBSERV-FbsFont-PublicApi-0021-001-GetNearestFontToDesignHeightInPixels_command004 - COMMAND CFbsFont1 TextCount GRAPHICS-FBSERV-FbsFont-PublicApi-0021-001-TextCount_command006 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsFont-PublicApi-0021 - - -START_TESTCASE GRAPHICS-FBSERV-FbsFont-PublicApi-0022 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsFont-PublicApi-0022 -//! @SYMAPI CFbsFont -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 31/05/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsFont-PublicApi.script -//! @SYMTestCaseDesc CFbsFont::TextCount() (TextCount(const TDesC &aText, TInt aWidthInPixels) version) test with 0 argument in place of width in pexils and empty string -//! Uses API elements: TextCount() -//! @SYMTestActions 1. Create FBS session -//! 2. Create FBS typeface store -//! 3. Create a CFbsFont (Arial, 12px) class instance obtaining it from FBS typeface store -//! 4. Call TextCount() passing text "" and width 0 -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function TextCount() doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - CREATE_OBJECT CFbsFont CFbsFont1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInPixels GRAPHICS-FBSERV-FbsFont-PublicApi-0022-001-GetNearestFontToDesignHeightInPixels_command004 - COMMAND CFbsFont1 TextCount GRAPHICS-FBSERV-FbsFont-PublicApi-0022-001-TextCount_command006 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsFont-PublicApi-0022 - - -START_TESTCASE GRAPHICS-FBSERV-FbsFont-PublicApi-0023 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsFont-PublicApi-0023 -//! @SYMAPI CFbsFont -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 31/05/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsFont-PublicApi.script -//! @SYMTestCaseDesc CFbsFont::TextCount() (TextCount(const TDesC &aText, TInt aWidthInPixels, TInt &aExcessWidthInPixels) version) test with negative argument in place of width in pexils -//! Uses API elements: TextCount() -//! @SYMTestActions 1. Create FBS session -//! 2. Create FBS typeface store -//! 3. Create a CFbsFont (Arial, 12px) class instance obtaining it from FBS typeface store -//! 4. Call TextCount() passing text "qwerty" and width -1 -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function TextCount() doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - CREATE_OBJECT CFbsFont CFbsFont1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInPixels GRAPHICS-FBSERV-FbsFont-PublicApi-0023-001-GetNearestFontToDesignHeightInPixels_command004 - COMMAND CFbsFont1 TextCount GRAPHICS-FBSERV-FbsFont-PublicApi-0023-001-TextCount_command006 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsFont-PublicApi-0023 - - -START_TESTCASE GRAPHICS-FBSERV-FbsFont-PublicApi-0024 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsFont-PublicApi-0024 -//! @SYMAPI CFbsFont -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 31/05/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsFont-PublicApi.script -//! @SYMTestCaseDesc CFbsFont::TextCount() (TextCount(const TDesC &aText, TInt aWidthInPixels, TInt &aExcessWidthInPixels) version) test with 0 argument in place of width in pexils and empty string -//! Uses API elements: TextCount() -//! @SYMTestActions 1. Create FBS session -//! 2. Create FBS typeface store -//! 3. Create a CFbsFont (Arial, 12px) class instance obtaining it from FBS typeface store -//! 4. Call TextCount() passing text "" and width 0 -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function TextCount() doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - CREATE_OBJECT CFbsFont CFbsFont1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInPixels GRAPHICS-FBSERV-FbsFont-PublicApi-0024-001-GetNearestFontToDesignHeightInPixels_command004 - COMMAND CFbsFont1 TextCount GRAPHICS-FBSERV-FbsFont-PublicApi-0024-001-TextCount_command006 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsFont-PublicApi-0024 - - -START_TESTCASE GRAPHICS-FBSERV-FbsFont-PublicApi-0025 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsFont-PublicApi-0025 -//! @SYMAPI CFbsFont -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 31/05/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsFont-PublicApi.script -//! @SYMTestCaseDesc CFbsFont::GetCharacterData() test with 0 as a character code -//! Uses API elements: GetCharacterData() -//! @SYMTestActions 1. Create FBS session -//! 2. Create FBS typeface store -//! 3. Create a CFbsFont (Arial, 12px) class instance obtaining it from FBS typeface store -//! 4. Call GetCharacterData() passing code 0 as an argument -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function GetCharacterData() doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - CREATE_OBJECT CFbsFont CFbsFont1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInPixels GRAPHICS-FBSERV-FbsFont-PublicApi-0025-001-GetNearestFontToDesignHeightInPixels_command004 - COMMAND CFbsFont1 GetCharacterData GRAPHICS-FBSERV-FbsFont-PublicApi-0025-001-GetCharacterData_command006 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsFont-PublicApi-0025 - - -START_TESTCASE GRAPHICS-FBSERV-FbsFont-PublicApi-0026 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsFont-PublicApi-0026 -//! @SYMAPI CFbsFont -//! @SYMAuthor Rnno Sgirka -//! @SYMCreationDate 14/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsFont-PublicApi.script -//! @SYMTestCaseDesc CFbsFont::MeasureText() test with different variations of arguments -//! Uses API elements: MeasureText() -//! @SYMTestActions 1. Create FBS session -//! 2. Create FBS typeface store -//! 3. Create a CFbsFont (Arial, 12px) class instance obtaining it from FBS typeface store -//! 4. Call MeasureText() passing text "qwerty" as an argument, with TMeasureTextOutput and with blank TMeasureTextInput provided. -//! 5. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with blank TMeasureTextInput provided. -//! 6. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iStartInputChar=0, iEndInputChar=5). -//! 7. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iEndInputChar=5). -//! 8. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iStartInputChar=0, iEndInputChar=-1). -//! 9. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iStartInputChar=0, iEndInputChar=100). -//! 10. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iStartInputChar=100, iEndInputChar=5). -//! 11. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iStartInputChar=-1, iEndInputChar=-1). -//! 12. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iDirection=0). -//! 13. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iDirection=1). -//! 14. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iDirection=999). -//! 15. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iFlags=0). -//! 16. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iFlags=1). -//! 17. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iFlags=999). -//! 18. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iMaxAdvance=-1). -//! 19. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iMaxAdvance=0). -//! 20. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iMaxAdvance=1). -//! 21. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iMaxAdvance=999). -//! 22. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iMaxBounds=-1). -//! 23. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iMaxBounds=0). -//! 24. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iMaxBounds=1). -//! 25. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iMaxBounds=999). -//! 26. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iCharJustNum=-1). -//! 27. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iCharJustNum=0). -//! 28. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iCharJustNum=1). -//! 29. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iCharJustNum=999). -//! 30. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iCharJustExcess=-1). -//! 31. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iCharJustExcess=0). -//! 32. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iCharJustExcess=1). -//! 33. Call MeasureText() passing text "qwerty" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iCharJustExcess=999). -//! 34. Call MeasureText() passing text "qwerty asdf" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iWordJustNum=-1). -//! 35. Call MeasureText() passing text "qwerty asdf" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iWordJustNum=0). -//! 36. Call MeasureText() passing text "qwerty asdf" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iWordJustNum=1). -//! 37. Call MeasureText() passing text "qwerty asdf" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iWordJustNum=999). -//! 38. Call MeasureText() passing text "qwerty asdf" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iWordJustExcess=-1). -//! 39. Call MeasureText() passing text "qwerty asdf" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iWordJustExcess=0). -//! 40. Call MeasureText() passing text "qwerty asdf" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iWordJustExcess=1). -//! 41. Call MeasureText() passing text "qwerty asdf" as an argument, without TMeasureTextOutput and with TMeasureTextInput provided (where iWordJustExcess=999). -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function MeasureText() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - CREATE_OBJECT CFbsFont CFbsFont1 - CREATE_OBJECT TMeasureTextInput TMeasureTextInput1 - CREATE_OBJECT TMeasureTextOutput TMeasureTextOutput1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInPixels GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-GetNearestFontToDesignHeightInPixels_command004 - COMMAND TMeasureTextOutput1 new - COMMAND TMeasureTextInput1 new - COMMAND CFbsFont1 MeasureText GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command010 - COMMAND TMeasureTextInput1 new - COMMAND CFbsFont1 MeasureText GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command014 - COMMAND TMeasureTextInput1 new - COMMAND TMeasureTextInput1 iStartInputChar GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iStartInputChar_command017 - COMMAND TMeasureTextInput1 iEndInputChar GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iEndInputChar_command018 - COMMAND CFbsFont1 MeasureText GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command020 - COMMAND TMeasureTextInput1 new - COMMAND TMeasureTextInput1 iEndInputChar GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iEndInputChar_command023 - COMMAND CFbsFont1 MeasureText GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command025 - COMMAND TMeasureTextInput1 new - COMMAND TMeasureTextInput1 iStartInputChar GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iStartInputChar_command028 - COMMAND TMeasureTextInput1 iEndInputChar GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iEndInputChar_command029 - COMMAND CFbsFont1 MeasureText GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command031 - COMMAND TMeasureTextInput1 new - COMMAND TMeasureTextInput1 iStartInputChar GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iStartInputChar_command034 - COMMAND TMeasureTextInput1 iEndInputChar GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iEndInputChar_command035 - COMMAND CFbsFont1 MeasureText GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command037 - COMMAND TMeasureTextInput1 new - COMMAND TMeasureTextInput1 iStartInputChar GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iStartInputChar_command040 - COMMAND TMeasureTextInput1 iEndInputChar GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iEndInputChar_command041 - COMMAND CFbsFont1 MeasureText GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command043 - COMMAND TMeasureTextInput1 new - COMMAND TMeasureTextInput1 iStartInputChar GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iStartInputChar_command046 - COMMAND TMeasureTextInput1 iEndInputChar GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iEndInputChar_command047 - COMMAND CFbsFont1 MeasureText GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command049 - COMMAND TMeasureTextInput1 new - COMMAND TMeasureTextInput1 iDirection GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iDirection_command052 - COMMAND CFbsFont1 MeasureText GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command054 - COMMAND TMeasureTextInput1 new - COMMAND TMeasureTextInput1 iDirection GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iDirection_command057 - COMMAND CFbsFont1 MeasureText GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command059 - COMMAND TMeasureTextInput1 new - COMMAND TMeasureTextInput1 iDirection GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iDirection_command062 - COMMAND CFbsFont1 MeasureText GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command064 - COMMAND TMeasureTextInput1 new - COMMAND TMeasureTextInput1 iFlags GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iFlags_command067 - COMMAND CFbsFont1 MeasureText GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command069 - COMMAND TMeasureTextInput1 new - COMMAND TMeasureTextInput1 iFlags GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iFlags_command072 - COMMAND CFbsFont1 MeasureText GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command074 - COMMAND TMeasureTextInput1 new - COMMAND TMeasureTextInput1 iFlags GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iFlags_command077 - COMMAND CFbsFont1 MeasureText GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command079 - COMMAND TMeasureTextInput1 new - COMMAND TMeasureTextInput1 iMaxAdvance GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iMaxAdvance_command082 - COMMAND CFbsFont1 MeasureText GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command084 - COMMAND TMeasureTextInput1 new - COMMAND TMeasureTextInput1 iMaxAdvance GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iMaxAdvance_command087 - COMMAND CFbsFont1 MeasureText GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command089 - COMMAND TMeasureTextInput1 new - COMMAND TMeasureTextInput1 iMaxAdvance GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iMaxAdvance_command092 - COMMAND CFbsFont1 MeasureText GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command094 - COMMAND TMeasureTextInput1 new - COMMAND TMeasureTextInput1 iMaxAdvance GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iMaxAdvance_command097 - COMMAND CFbsFont1 MeasureText GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command100 - COMMAND TMeasureTextInput1 new - COMMAND TMeasureTextInput1 iMaxBounds GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iMaxBounds_command103 - COMMAND CFbsFont1 MeasureText GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command105 - COMMAND TMeasureTextInput1 new - COMMAND TMeasureTextInput1 iMaxBounds GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iMaxBounds_command108 - COMMAND CFbsFont1 MeasureText GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command110 - COMMAND TMeasureTextInput1 new - COMMAND TMeasureTextInput1 iMaxBounds GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iMaxBounds_command113 - COMMAND CFbsFont1 MeasureText GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command115 - COMMAND TMeasureTextInput1 new - COMMAND TMeasureTextInput1 iMaxBounds GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iMaxBounds_command118 - COMMAND CFbsFont1 MeasureText GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command120 - COMMAND TMeasureTextInput1 new - COMMAND TMeasureTextInput1 iCharJustNum GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iCharJustNum_command123 - COMMAND CFbsFont1 MeasureText GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command125 - COMMAND TMeasureTextInput1 new - COMMAND TMeasureTextInput1 iCharJustNum GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iCharJustNum_command128 - COMMAND CFbsFont1 MeasureText GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command130 - COMMAND TMeasureTextInput1 new - COMMAND TMeasureTextInput1 iCharJustNum GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iCharJustNum_command133 - COMMAND CFbsFont1 MeasureText GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command135 - COMMAND TMeasureTextInput1 new - COMMAND TMeasureTextInput1 iCharJustNum GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iCharJustNum_command138 - COMMAND CFbsFont1 MeasureText GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command140 - COMMAND TMeasureTextInput1 new - COMMAND TMeasureTextInput1 iCharJustExcess GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iCharJustExcess_command143 - COMMAND CFbsFont1 MeasureText GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command145 - COMMAND TMeasureTextInput1 new - COMMAND TMeasureTextInput1 iCharJustExcess GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iCharJustExcess_command148 - COMMAND CFbsFont1 MeasureText GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command150 - COMMAND TMeasureTextInput1 new - COMMAND TMeasureTextInput1 iCharJustExcess GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iCharJustExcess_command153 - COMMAND CFbsFont1 MeasureText GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command155 - COMMAND TMeasureTextInput1 new - COMMAND TMeasureTextInput1 iCharJustExcess GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iCharJustExcess_command158 - COMMAND CFbsFont1 MeasureText GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command160 - COMMAND TMeasureTextInput1 new - COMMAND TMeasureTextInput1 iWordJustNum GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iWordJustNum_command163 - COMMAND CFbsFont1 MeasureText GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command165 - COMMAND TMeasureTextInput1 new - COMMAND TMeasureTextInput1 iWordJustNum GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iWordJustNum_command168 - COMMAND CFbsFont1 MeasureText GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command170 - COMMAND TMeasureTextInput1 new - COMMAND TMeasureTextInput1 iWordJustNum GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iWordJustNum_command173 - COMMAND CFbsFont1 MeasureText GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command175 - COMMAND TMeasureTextInput1 new - COMMAND TMeasureTextInput1 iWordJustNum GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iWordJustNum_command178 - COMMAND CFbsFont1 MeasureText GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command180 - COMMAND TMeasureTextInput1 new - COMMAND TMeasureTextInput1 iWordJustExcess GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iWordJustExcess_command183 - COMMAND CFbsFont1 MeasureText GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command185 - COMMAND TMeasureTextInput1 new - COMMAND TMeasureTextInput1 iWordJustExcess GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iWordJustExcess_command188 - COMMAND CFbsFont1 MeasureText GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command190 - COMMAND TMeasureTextInput1 new - COMMAND TMeasureTextInput1 iWordJustExcess GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iWordJustExcess_command193 - COMMAND CFbsFont1 MeasureText GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command195 - COMMAND TMeasureTextInput1 new - COMMAND TMeasureTextInput1 iWordJustExcess GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iWordJustExcess_command198 - COMMAND CFbsFont1 MeasureText GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command200 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - COMMAND TMeasureTextInput1 ~ - COMMAND TMeasureTextOutput1 ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsFont-PublicApi-0026 - - -START_TESTCASE GRAPHICS-FBSERV-FbsFont-PublicApi-0028 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsFont-PublicApi-0028 -//! @SYMAPI CFbsFont -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 05/06/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsFont-PublicApi.script -//! @SYMTestCaseDesc CFbsFont::ExtendedFunction() for inexistant function id test -//! Uses API elements: ExtendedFunction() -//! @SYMTestActions 1. Create FBS session -//! 2. Create FBS typeface store -//! 3. Create a CFbsFont (Arial, 12px) class instance obtaining it from FBS typeface store -//! 4. Call font's ExtendedFunction() passing 0 as a parameter. Expect KErrNotFound returned -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function ExtendedFunction() call doesn't panic and returns KErrNotFound (-1) -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - CREATE_OBJECT CFbsFont CFbsFont1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInPixels GRAPHICS-FBSERV-FbsFont-PublicApi-0028-001-GetNearestFontToDesignHeightInPixels_command004 - COMMAND CFbsFont1 ExtendedFunction GRAPHICS-FBSERV-FbsFont-PublicApi-0028-001-ExtendedFunction_command006 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsFont-PublicApi-0028 diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fbserv/scripts/GRAPHICS-FBSERV-FbsSession-PublicApi.script --- a/graphicsapitest/graphicssvs/fbserv/scripts/GRAPHICS-FBSERV-FbsSession-PublicApi.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,532 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// -//! @file -//! @SYMTestSuiteName GRAPHICS-FBSERV-FbsSession-PublicApi -//! @SYMScriptTestEnvironment This test script requires a basic ROM. - -///////////////////////////////////////////////////////////////////// -// GRAPHICS-FBSERV-FbsSession-PublicAPI.script -// -// Tests all public elements of the RFbsSession class -// as a means of confidence that the APIs work as expected. -// -// The purpose is to provide a regression test suite of PublishedAll APIs for RFbsSession. -// Negative testing is performed to confirm that correct errors are returned when incorrect parameters are given. -// The tests are fully automated. -///////////////////////////////////////////////////////////////////// - -LOAD_SUITE T_FBServAPI - - -START_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0001 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsSession-PublicApi-0001 -//! @SYMAPI RFbsSession -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 23/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsSession-PublicApi.script -//! @SYMTestCaseDesc RFbsSession::Connect() (Connect() version), RFbsSession::GetSession() and RFbsSession::Disconnect() test -//! Uses API elements: Connect(), GetSession(), Disconnect() -//! @SYMTestActions 1. Call RFbsSession::GetSession() -//! 2. Create a RFbsSession using RFbsSession::Connect() -//! 3. Call RFbsSession::GetSession() -//! 4. Close the RFbsSession using RFbsSession::Disconnect() -//! 5. Call RFbsSession::GetSession() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Expects that GetSession() returns not NULL when session is opened and NULL when session is disconnected or not opened -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - COMMAND RFbsSession1 GetSession GRAPHICS-FBSERV-FbsSession-PublicApi-0001-001-GetSession_command001 - COMMAND RFbsSession1 Connect - COMMAND RFbsSession1 GetSession - COMMAND RFbsSession1 Disconnect - COMMAND RFbsSession1 GetSession GRAPHICS-FBSERV-FbsSession-PublicApi-0001-001-GetSession_command005 - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0001 - - -START_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0002 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsSession-PublicApi-0002 -//! @SYMAPI RFbsSession -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 23/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsSession-PublicApi.script -//! @SYMTestCaseDesc RFbsSession::Connect() (Connect(RFs \&aFileServer) version), RFbsSession::GetSession() and RFbsSession::Disconnect() test with a file-server session specified -//! Uses API elements: Connect(), GetSession(), Disconnect() -//! @SYMTestActions 1. Create and connect a file-server session -//! 2. Create a RFbsSession using RFbsSession::Connect() passing RFs instance as an argument -//! 3. Call RFbsSession::GetSession() -//! 4. Close the RFbsSession using RFbsSession::Disconnect() -//! 5. Call RFbsSession::GetSession() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Expects that GetSession() returns not NULL when session is opened and NULL when session is disconnected -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - COMMAND RFbsSession1 GetSession GRAPHICS-FBSERV-FbsSession-PublicApi-0002-001-GetSession_command001 - COMMAND RFbsSession1 Connect GRAPHICS-FBSERV-FbsSession-PublicApi-0002-001-Connect_command002 - COMMAND RFbsSession1 GetSession - COMMAND RFbsSession1 Disconnect - COMMAND RFbsSession1 GetSession GRAPHICS-FBSERV-FbsSession-PublicApi-0002-001-GetSession_command005 - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0002 - - -START_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0003 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsSession-PublicApi-0003 -//! @SYMAPI RFbsSession -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 23/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsSession-PublicApi.script -//! @SYMTestCaseDesc RFbsSession::SetCallBack(), RFbsSession::CallBack(), RFbsSession::ResetCallBack() test -//! Uses API elements: Connect(), SetCallBack(), CallBack(), ResetCallBack(), Disconnect() -//! @SYMTestActions 1. Create a RFbsSession -//! 2. Call CallBack() expecting that nothing happpens (no check is needed, just make sure that the call doesn't fail) -//! 3. Set instance variable iCallBackCalled to EFalse -//! 4. Call SetCallBack() specifying a function that sets the instance variable iCallBackCalled to ETrue -//! 5. Call CallBack() -//! 6. Check that iCallBackCalled is ETrue -//! 7. Set the instance variable iCallBackCalled to EFalse -//! 8. Call ResetCallBack() -//! 9. Call CallBack() -//! 10. Check that iCallBackCalled is EFalse -//! 11. Disconnect session -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults See actions -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - COMMAND RFbsSession1 Connect - COMMAND RFbsSession1 GetSession - COMMAND RFbsSession1 CallBack - COMMAND RFbsSession1 SetCallBack - COMMAND RFbsSession1 CallBack GRAPHICS-FBSERV-FbsSession-PublicApi-0003-001-CallBack_command005 - COMMAND RFbsSession1 ResetCallBack - COMMAND RFbsSession1 CallBack GRAPHICS-FBSERV-FbsSession-PublicApi-0003-001-CallBack_command007 - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0003 - - -START_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0004 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsSession-PublicApi-0004 -//! @SYMAPI RFbsSession -//! CFbsTypefaceStore -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 23/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsSession-PublicApi.script -//! @SYMTestCaseDesc CFbsTypefaceStore::ResourceCount() test -//! Uses API elements: RFbsSession::Connect(), RFbsSession::ResourceCount(), CFbsTypefaceStore::ReleaseFont() -//! @SYMTestActions 1. Create a RFbsSession -//! 2. Call CFbsTypefaceStore::NewL() passing NULL as an argument -//! 3. Call ResourceCount() -//! 4. Call CFbsTypefaceStore::GetNearestFontToDesignHeightInPixels() for Arial, 12px font -//! 5. Call ResourceCount() and make sure that the value was increased by one -//! 6. Call CFbsTypefaceStore::ReleaseFont() passing previously obtained font -//! 7. Call ResourceCount() and make sure that the value was decreased by one -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults See actions -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - CREATE_OBJECT CFbsFont CFbsFont1 - COMMAND RFbsSession1 Connect - COMMAND RFbsSession1 GetSession - COMMAND CFbsTypefaceStore1 NewL - COMMAND RFbsSession1 ResourceCount - COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInPixels GRAPHICS-FBSERV-FbsSession-PublicApi-0004-001-GetNearestFontToDesignHeightInPixels_command008 - COMMAND RFbsSession1 ResourceCount GRAPHICS-FBSERV-FbsSession-PublicApi-0004-001-ResourceCount_command010 - COMMAND CFbsTypefaceStore1 ReleaseFont GRAPHICS-FBSERV-FbsSession-PublicApi-0004-001-ReleaseFont_command012 - COMMAND RFbsSession1 ResourceCount GRAPHICS-FBSERV-FbsSession-PublicApi-0004-001-ResourceCount_command014 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0004 - - -START_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0005 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsSession-PublicApi-0005 -//! @SYMAPI RFbsSession -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 23/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsSession-PublicApi.script -//! @SYMTestCaseDesc RFbsSession::SendCommand() test -//! Uses API elements: Connect(), SendCommand() -//! @SYMTestActions 1. Create a RFbsSession -//! 2. Call SendCommand() passing 0 as an argument -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function SendCommand() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - COMMAND RFbsSession1 Connect - COMMAND RFbsSession1 GetSession - COMMAND RFbsSession1 SendCommand GRAPHICS-FBSERV-FbsSession-PublicApi-0005-001-SendCommand_command003 - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0005 - - -START_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0006 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsSession-PublicApi-0006 -//! @SYMAPI RFbsSession -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 23/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsSession-PublicApi.script -//! @SYMTestCaseDesc RFbsSession::Version() test -//! Uses API elements: Connect(), Version() -//! @SYMTestActions 1. Create a RFbsSession -//! 2. Call Version() method -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The test expects that fields of TVersion instance will be initialized -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - COMMAND RFbsSession1 Connect - COMMAND RFbsSession1 GetSession - COMMAND RFbsSession1 Version - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0006 - - -START_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0007 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsSession-PublicApi-0007 -//! @SYMAPI RFbsSession -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 23/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsSession-PublicApi.script -//! @SYMTestCaseDesc RFbsSession::HeapBase() test -//! Uses API elements: Connect(), HeapBase() -//! @SYMTestActions 1. Create a RFbsSession -//! 2. Call HeapBase() method -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The test expects that the HeapBase() method doesn't cause panic and the returned value will not be NULL -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - COMMAND RFbsSession1 Connect - COMMAND RFbsSession1 GetSession - COMMAND RFbsSession1 HeapBase - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0007 - - -START_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0008 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsSession-PublicApi-0008 -//! @SYMAPI RFbsSession -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 23/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsSession-PublicApi.script -//! @SYMTestCaseDesc RFbsSession::SessionHandle() test -//! Uses API elements: Connect(), SessionHandle() -//! @SYMTestActions 1. Create a RFbsSession -//! 2. Call SessionHandle() method -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The test expects that the SessionHandle() method doesn't cause panic and the returned value will not be NULL -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - COMMAND RFbsSession1 Connect - COMMAND RFbsSession1 GetSession - COMMAND RFbsSession1 SessionHandle - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0008 - - -//!START_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0009 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsSession-PublicApi-0009 -//! @SYMAPI RFbsSession -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 29/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsSession-PublicApi.script -//! @SYMTestCaseDesc RFbsSession::Connect() (Connect(RFs \&aFileServer) version) negative test with a not-connected file-server session specified -//! Uses API elements: Connect() -//! @SYMTestActions 1. Create and connect a file-server session, but don't connect it -//! 2. Create a RFbsSession using RFbsSession::Connect() passing RFs instance as an argument -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Expects that RFbsSession::Connect() will return an error -//! @SYMTestType CIT -//! START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.ini -//! CREATE_OBJECT RFbsSession RFbsSession1 -//! COMMAND RFbsSession1 Connect GRAPHICS-FBSERV-FbsSession-PublicApi-0009-001-Connect_command001 -//! END_TEST_BLOCK !PanicCode=0 !PanicString=KERN-EXEC -//! RUN_TEST_STEP 100 T_FBServAPI utilityClearPanicDlg -//!END_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0009 - - -//! START_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0010 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsSession-PublicApi-0010 -//! @SYMAPI RFbsSession -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 29/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsSession-PublicApi.script -//! @SYMTestCaseDesc RFbsSession::SendCommand() negative test that send a wrong command -//! Uses API elements: Connect(), SendCommand() -//! @SYMTestActions 1. Create a RFbsSession -//! 2. Call SendCommand() passing -1 as an argument -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The operation should panic -//! @SYMTestType CIT -//! START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.ini -//! CREATE_OBJECT RFbsSession RFbsSession1 -//! COMMAND RFbsSession1 Connect -//! COMMAND RFbsSession1 GetSession -//! COMMAND RFbsSession1 SendCommand GRAPHICS-FBSERV-FbsSession-PublicApi-0010-001-SendCommand_command003 -//! END_TEST_BLOCK !PanicString=USER !PanicCode=72 -//! RUN_TEST_STEP 100 T_FBServAPI utilityClearPanicDlg -//!END_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0010 - - -START_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0011 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsSession-PublicApi-0011 -//! @SYMAPI RFbsSession -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 29/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsSession-PublicApi.script -//! @SYMTestCaseDesc RFbsSession::Disconnect() negative test for not connected session -//! Uses API elements: Disconnect() -//! @SYMTestActions 1. Create a RFbsSession but don't call it's Connect() method -//! 2. Call RFbsSession::Disconnect() -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The function Disconnect() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0011 - - -START_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0012 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsSession-PublicApi-0012 -//! @SYMAPI RFbsSession -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 11/07/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsSession-PublicApi.script -//! @SYMTestCaseDesc RFbsSession() test -//! Uses API elements: RFbsSession() -//! @SYMTestActions 1. Call RFbsSession() constuctor -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The RFbsSession() constructor call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - COMMAND RFbsSession1 Constructor - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0012 - - - -//!START_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0014 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsSession-PublicApi-0014 -//! @SYMAPI RFbsSession -//! @SYMAuthor Rnno Sgirka -//! @SYMCreationDate 25/05/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsSession-PublicApi.script -//! @SYMTestCaseDesc RFbsSession::SendCommand() negative test for not connected session -//! Uses API elements: SendCommand() -//! @SYMTestActions 1. Create a RFbsSession but don't call it's Connect() method -//! 2. Call SendCommand() passing 0 as an argument -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Expects that SendCommand() panics -//! @SYMTestType CIT - -//! START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.ini - -//! CREATE_OBJECT RFbsSession RFbsSession1 - -//! COMMAND RFbsSession1 SendCommand GRAPHICS-FBSERV-FbsSession-PublicApi-0014-001-SendCommand_command001 - -//! END_TEST_BLOCK !PanicCode=3 !PanicString=KERN-EXEC - -//! RUN_TEST_STEP 100 T_FBServAPI utilityClearPanicDlg - -//!END_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0014 - - -START_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0015 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsSession-PublicApi-0015 -//! @SYMAPI RFbsSession -//! @SYMAuthor Rnno Sgirka -//! @SYMCreationDate 25/05/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsSession-PublicApi.script -//! @SYMTestCaseDesc RFbsSession::Version() test for not connected session -//! Uses API elements: Version() -//! @SYMTestActions 1. Create a RFbsSession but don't call it's Connect() method -//! 2. Call RFbsSession::Version() -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The function Version() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - COMMAND RFbsSession1 Version - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0015 - - -//!START_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0016 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsSession-PublicApi-0016 -//! @SYMAPI RFbsSession -//! @SYMAuthor Rnno Sgirka -//! @SYMCreationDate 25/05/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsSession-PublicApi.script -//! @SYMTestCaseDesc RFbsSession::SessionHandle() negative test for not connected session -//! Uses API elements: SessionHandle() -//! @SYMTestActions 1. Create a RFbsSession but don't call it's Connect() method -//! 2. Call RFbsSession::SessionHandle() -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Expects that SessionHandle() panics -//! @SYMTestType CIT -//! START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.ini -//! CREATE_OBJECT RFbsSession RFbsSession1 -//! COMMAND RFbsSession1 SessionHandle -//! END_TEST_BLOCK !PanicCode=3 !PanicString=KERN-EXEC -//! RUN_TEST_STEP 100 T_FBServAPI utilityClearPanicDlg -//!END_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0016 - - -//!START_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0017 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsSession-PublicApi-0017 -//! @SYMAPI RFbsSession -//! @SYMAuthor Rnno Sgirka -//! @SYMCreationDate 25/05/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsSession-PublicApi.script -//! @SYMTestCaseDesc RFbsSession::CallBack() negative test for not connected session -//! Uses API elements: CallBack() -//! @SYMTestActions 1. Create a RFbsSession but don't call it's Connect() method -//! 2. Call RFbsSession::CallBack() -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Expects that CallBack() panics -//! @SYMTestType CIT -//! START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.ini -//! CREATE_OBJECT RFbsSession RFbsSession1 -//! COMMAND RFbsSession1 CallBack -//! END_TEST_BLOCK !PanicCode=3 !PanicString=KERN-EXEC -//! RUN_TEST_STEP 100 T_FBServAPI utilityClearPanicDlg -//!END_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0017 - - -//!START_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0018 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsSession-PublicApi-0018 -//! @SYMAPI RFbsSession -//! @SYMAuthor Rnno Sgirka -//! @SYMCreationDate 25/05/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsSession-PublicApi.script -//! @SYMTestCaseDesc RFbsSession::SetCallBack() negative test for not connected session -//! Uses API elements: SetCallBack() -//! @SYMTestActions 1. Create a RFbsSession but don't call it's Connect() method -//! 2. Call RFbsSession::SetCallBack() -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Expects that SetCallBack() panics -//! @SYMTestType CIT -//! START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.ini -//! CREATE_OBJECT RFbsSession RFbsSession1 -//! COMMAND RFbsSession1 SetCallBack -//! END_TEST_BLOCK !PanicCode=3 !PanicString=KERN-EXEC -//! RUN_TEST_STEP 100 T_FBServAPI utilityClearPanicDlg -//!END_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0018 - - -//!START_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0019 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsSession-PublicApi-0019 -//! @SYMAPI RFbsSession -//! @SYMAuthor Rnno Sgirka -//! @SYMCreationDate 25/05/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsSession-PublicApi.script -//! @SYMTestCaseDesc RFbsSession::ResetCallBack() negative test for not connected session -//! Uses API elements: ResetCallBack() -//! @SYMTestActions 1. Create a RFbsSession but don't call it's Connect() method -//! 2. Call RFbsSession::ResetCallBack() -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Expects that ResetCallBack() panics -//! @SYMTestType CIT -//! START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.ini -//! CREATE_OBJECT RFbsSession RFbsSession1 -//! COMMAND RFbsSession1 ResetCallBack -//! END_TEST_BLOCK !PanicCode=3 !PanicString=KERN-EXEC -//! RUN_TEST_STEP 100 T_FBServAPI utilityClearPanicDlg -//!END_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0019 - - -START_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0020 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsSession-PublicApi-0020 -//! @SYMAPI RFbsSession -//! @SYMAuthor Rnno Sgirka -//! @SYMCreationDate 29/05/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsSession-PublicApi.script -//! @SYMTestCaseDesc RFbsSession::SendCommand() test that sends a correct message with correct message parameters -//! Uses API elements: Connect(), SendCommand() -//! @SYMTestActions 1. Create a RFbsSession -//! 2. Create a 100x200 bitmap. -//! 3. Send message 15 (EFbsMessBitmapResize) using SendCommand() passing as arguments: the handle of the bitmap, new width 50, new height 20. -//! 4. Disconnect the session -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The function SendCommand() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - COMMAND RFbsSession1 Connect - COMMAND RFbsSession1 GetSession - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsSession-PublicApi-0020-001-Create_command005 - COMMAND RFbsSession1 SendCommand GRAPHICS-FBSERV-FbsSession-PublicApi-0020-001-SendCommand_command007 - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0020 - - -START_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0021 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsSession-PublicApi-0021 -//! @SYMAPI RFbsSession -//! @SYMAuthor Louis Henry Nayegon -//! @SYMCreationDate 02/08/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsSession-PublicApi.script -//! @SYMTestCaseDesc RFbsSession::Disconnect() called without a connection -//! @SYMTestActions 1. Disconnect the session -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The function Disconnect() passes -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsSession-PublicApi-0021 diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fbserv/scripts/GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script --- a/graphicsapitest/graphicssvs/fbserv/scripts/GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1382 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// -//! @file -//! @SYMTestSuiteName GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi -//! @SYMScriptTestEnvironment This test script requires a basic ROM. - -///////////////////////////////////////////////////////////////////// -// GRAPHICS-FBSERV-FbsTypefaceStore-PublicAPI.script -// -// Tests all public elements of the CFbsTypefaceStore class -// as a means of confidence that the APIs work as expected. -// -// The purpose is to provide a regression test suite of PublishedAll APIs for CFbsTypefaceStore. -// Negative testing is performed to confirm that correct errors are returned when incorrect parameters are given. -// The tests are fully automated. -///////////////////////////////////////////////////////////////////// - -LOAD_SUITE T_FBServAPI - -RUN_UTILS CopyFile ${SYSDRIVE}\graphics\t_fbservapi\testfontfb.gdr ${SYSDRIVE}\graphics\t_fbservapi\tmpfontfb.gdr - - -START_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0001 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0001 -//! @SYMAPI CFbsTypefaceStore -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 22/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script -//! @SYMTestCaseDesc CFbsTypefaceStore::NewL() with null parameter test -//! Uses API elements: NewL() -//! @SYMTestActions 1. Create a RFbsSession -//! 2. Call CFbsTypefaceStore::NewL() passing NULL as an argument -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Expects that the creation will not cause panic, will not leave and the returned value is not NULL -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0001 - - -START_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0002 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0002 -//! @SYMAPI CFbsTypefaceStore -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 22/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script -//! @SYMTestCaseDesc CFbsTypefaceStore::AddFile() test -//! Uses API elements: AddFile() -//! @SYMTestActions 1. Create a RFbsSession -//! 2. Call CFbsTypefaceStore::NewL() passing NULL as an argument -//! 3. Call AddFile() method specifying the location of an existing gdr-file on z: drive -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Expects that the addFile() method call returns KErrNone and aId is other that 0 on return -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 AddFile GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0002-001-AddFile_command004 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0002 - - -START_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0003 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0003 -//! @SYMAPI CFbsTypefaceStore -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 22/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script -//! @SYMTestCaseDesc CFbsTypefaceStore::InstallFile() test -//! Uses API elements: InstallFile() -//! @SYMTestActions 1. Create a RFbsSession -//! 2. Call CFbsTypefaceStore::NewL() passing NULL as an argument -//! 3. Call InstallFile() method specifing the location of an existing gdr-file on z: drive -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Expects that the method call returns KErrNone and aId is other that 0 on return -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 InstallFile GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0003-001-InstallFile_command004 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0003 - - -START_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0004 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0004 -//! @SYMAPI CFbsTypefaceStore -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 22/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script -//! @SYMTestCaseDesc CFbsTypefaceStore::RemoveFile() test -//! Uses API elements: RemoveFile(), AddFile() -//! @SYMTestActions 1. Create a RFbsSession -//! 2. Call CFbsTypefaceStore::NewL() passing NULL as an argument -//! 3. Call AddFile() method specifing the location of an existing gdr-file on z: drive -//! 4. Call RemoveFile() twice to decrement instance count from previous test cases specifing the file id obtained from AddFile() call -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function RemoveFile() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 AddFile GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0004-001-AddFile_command004 - COMMAND CFbsTypefaceStore1 RemoveFile - COMMAND CFbsTypefaceStore1 RemoveFile - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0004 - - -START_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0005 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0005 -//! @SYMAPI CFbsTypefaceStore -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 22/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script -//! @SYMTestCaseDesc Deprecated CFbsTypefaceStore::GetNearestFontInTwips() test -//! Uses API elements: GetNearestFontInTwips() -//! @SYMTestActions 1. Create a RFbsSession -//! 2. Call CFbsTypefaceStore::NewL() passing NULL as an argument -//! 3. Call GetNearestFontInTwips() for Swiss, 12 twips font -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Expects that the GetNearestFontInTwips() method call doesn't cause panic, returns KErrNone and the returned font pointer is not NULL -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 GetNearestFontInTwips GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0005-001-GetNearestFontInTwips_command004 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0005 - - -START_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0006 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0006 -//! @SYMAPI CFbsTypefaceStore -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 22/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script -//! @SYMTestCaseDesc CFbsTypefaceStore::GetNearestFontInPixels() test -//! Uses API elements: GetNearestFontInPixels() -//! @SYMTestActions 1. Create a RFbsSession -//! 2. Call CFbsTypefaceStore::NewL() passing NULL as an argument -//! 3. Call GetNearestFontInPixels() for Swiss, 12px font -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Expects that the GetNearestFontInPixels() method call doesn't cause panic, returns KErrNone and the returned font pointer is not NULL -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 GetNearestFontInPixels GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0006-001-GetNearestFontInPixels_command004 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0006 - - -START_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0007 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0007 -//! @SYMAPI CFbsTypefaceStore -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 22/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script -//! @SYMTestCaseDesc CFbsTypefaceStore::GetNearestFontToDesignHeightInPixels() test -//! Uses API elements: GetNearestFontToDesignHeightInPixels() -//! @SYMTestActions 1. Create a RFbsSession -//! 2. Call CFbsTypefaceStore::NewL() passing NULL as an argument -//! 3. Call GetNearestFontToDesignHeightInPixels() for Swiss, 12 font -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Expects that the GetNearestFontToDesignHeightInPixels() method call doesn't cause panic, returns KErrNone and the returned font pointer is not NULL -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInPixels GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0007-001-GetNearestFontToDesignHeightInPixels_command004 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0007 - - -START_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0008 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0008 -//! @SYMAPI CFbsTypefaceStore -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 22/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script -//! @SYMTestCaseDesc CFbsTypefaceStore::GetNearestFontToMaxHeightInPixels() test -//! Uses API elements: GetNearestFontToMaxHeightInPixels() -//! @SYMTestActions 1. Create a RFbsSession -//! 2. Call CFbsTypefaceStore::NewL() passing NULL as an argument -//! 3. Call GetNearestFontToMaxHeightInPixels() for Swiss, 12 font setting maximum height to 12 -//! 4. Call font's FontHeightInPixels() to verify that it's actual height doesn't exceed maximum -//! height restriction -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Expects that the GetNearestFontToMaxHeightInPixels() method call doesn't cause panic, returns KErrNone and -//! that the height of the returned font is not greater that the maximum specified. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 GetNearestFontToMaxHeightInPixels GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0008-001-GetNearestFontToMaxHeightInPixels_command004 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0008 - - -START_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0009 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0009 -//! @SYMAPI CFbsTypefaceStore -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 22/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script -//! @SYMTestCaseDesc CFbsTypefaceStore::GetFontById() test -//! Uses API elements: GetFontById() -//! @SYMTestActions 1. Create a RFbsSession -//! 2. Call CFbsTypefaceStore::NewL() passing NULL as an argument -//! 3. Call GetFontById() passing 268435493 (KScreenFontUidCalc13n from FONTID.H) and default TAlgStyle as arguments -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Expects that the GetFontById() method call doesn't cause panic, returns KErrNone and -//! that the returned font is not NULL. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 GetFontById GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0009-001-GetFontById_command004 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0009 - - -START_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0010 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0010 -//! @SYMAPI CFbsTypefaceStore -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 22/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script -//! @SYMTestCaseDesc CFbsTypefaceStore::NumTypefaces() test -//! Uses API elements: NumTypefaces() -//! @SYMTestActions 1. Create a RFbsSession -//! 2. Call CFbsTypefaceStore::NewL() passing NULL as an argument -//! 3. Call NumTypefaces() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function NumtypeFaces() doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 NumTypefaces - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0010 - - -START_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0011 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0011 -//! @SYMAPI CFbsTypefaceStore -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 22/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script -//! @SYMTestCaseDesc CFbsTypefaceStore::TypefaceSupport() and CFbsTypefaceStore::NumTypefaces() test -//! Uses API elements: TypefaceSupport(), NumTypefaces() -//! @SYMTestActions 1. Create a RFbsSession -//! 2. Call CFbsTypefaceStore::NewL() passing NULL as an argument -//! 3. Call NumTypefaces() and memorize it's value -//! 4. Use cycle calling TypefaceSupport() to obtain all TTypefaceSupport descriptions for all typeface indices between 0 and NumTypefaces() - 1 -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The test expects the operations don't cause panic and that iNumHeights, iMinHeightInTwips, iMaxHeightInTwips fields are \>0 -//! for all loaded typefaces. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 TypefaceSupport GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0011-001-TypefaceSupport_command004 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0011 - - -START_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0012 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0012 -//! @SYMAPI CFbsTypefaceStore -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 22/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script -//! @SYMTestCaseDesc CFbsTypefaceStore::FontHeightInTwips(), CFbsTypefaceStore::TypefaceSupport() and CFbsTypefaceStore::NumTypefaces() test -//! Uses API elements: TypefaceSupport(), NumTypefaces(), FontHeightInTwips() -//! @SYMTestActions 1. Create a RFbsSession -//! 2. Call CFbsTypefaceStore::NewL() passing NULL as an argument -//! 3. Call NumTypefaces() and memorize it's value -//! 4. Use cycle calling TypefaceSupport() to obtain all TTypefaceSupport descriptions for all typeface indices between 0 and NumTypefaces() - 1 -//! 5. Use inner cycle and call FontHeightInTwips() for all typeface indices between 0 and NumTypefaces() - 1 and all height -//! indices between 0 and iNumHeights obtained from TypefaceSupport() for the given typeface -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The test expects the operations don't cause panic and that FontHeightInTwips() result is \>0 for all loaded typefaces. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 FontHeightInTwips GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0012-001-FontHeightInTwips_command004 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0012 - - -START_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0013 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0013 -//! @SYMAPI CFbsTypefaceStore -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 22/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script -//! @SYMTestCaseDesc CFbsTypefaceStore::FontHeightInPixels() test -//! Uses API elements: FontHeightInPixels() -//! @SYMTestActions 1. Create a RFbsSession -//! 2. Call CFbsTypefaceStore::NewL() passing NULL as an argument -//! 3. Call FontHeightInPixels() passing typeface index 0 and height index 0 as arguments -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The test expects the FontHeightInPixels() operation not to panic and that FontHeightInPixels() result is \>0 for all loaded typefaces. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 FontHeightInPixels GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0013-001-FontHeightInPixels_command004 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0013 - - -START_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0014 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0014 -//! @SYMAPI CFbsTypefaceStore -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 22/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script -//! @SYMTestCaseDesc CFbsTypefaceStore::DefaultBitmapType(), CFbsTypefaceStore::SetDefaultBitmapType() test -//! Uses API elements: DefaultBitmapType(), SetDefaultBitmapType() -//! @SYMTestActions The test assumes that default bitmap type was not changed yet -//! 1. Create a RFbsSession -//! 2. Call CFbsTypefaceStore::NewL() passing NULL as an argument -//! 3. Call SetDefaultBitmapType() and give EMonochromeGlyphBitmap as an argument -//! 4. Call DefaultBitmapType() and check that it's value is EMonochromeGlyphBitmap -//! 5. Call SetDefaultBitmapType() and pass EDefaultGlyphBitmap as an argument -//! 6. Call DefaultBitmapType() and check that it's value is EDefaultGlyphBitmap -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults See actions -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 SetDefaultBitmapType GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0014-001-SetDefaultBitmapType_command004 - COMMAND CFbsTypefaceStore1 DefaultBitmapType GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0014-001-DefaultBitmapType_command005 - COMMAND CFbsTypefaceStore1 SetDefaultBitmapType GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0014-001-SetDefaultBitmapType_command006 - COMMAND CFbsTypefaceStore1 DefaultBitmapType GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0014-001-DefaultBitmapType_command007 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0014 - - -START_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0015 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0015 -//! @SYMAPI CFbsTypefaceStore -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 22/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script -//! @SYMTestCaseDesc CFbsTypefaceStore::SetFontNameAliasL() test -//! Uses API elements: SetFontNameAliasL(), GetNearestFontToDesignHeightInTwips() -//! @SYMTestActions 1. Create a RFbsSession -//! 2. Call CFbsTypefaceStore::NewL() passing NULL as an argument -//! 3. Call SetFontNameAliasL() and set "ArialAlias" as the font's name alias for font "Arial" -//! 5. Use GetNearestFontToDesignHeightInTwips() to find the font with alias "ALIAS" setting the value in TFontSpec -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Expects that the font was found by alias and that the SetFontNameAliasL() method call doesn't leave or panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 SetFontNameAliasL GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0015-001-SetFontNameAliasL_command004 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0015 - - -START_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0016 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0016 -//! @SYMAPI CFbsTypefaceStore -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 22/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script -//! @SYMTestCaseDesc CFbsTypefaceStore::SetDefaultLanguageForMetrics() test -//! Uses API elements: SetDefaultLanguageForMetrics() -//! @SYMTestActions 1. Create a RFbsSession -//! 2. Call CFbsTypefaceStore::NewL() passing NULL as an argument -//! 3. Call SetDefaultLanguageForMetrics() to set ELangEstonian and ELangEnglish -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The function SetDefaultLanguageForMetrics() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 SetDefaultLanguageForMetrics GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0016-001-SetDefaultLanguageForMetrics_command004 - COMMAND CFbsTypefaceStore1 SetDefaultLanguageForMetrics GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0016-001-SetDefaultLanguageForMetrics_command005 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0016 - - -START_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0020 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0020 -//! @SYMAPI CFbsTypefaceStore -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 29/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script -//! @SYMTestCaseDesc CFbsTypefaceStore::GetNearestFontToDesignHeightInTwips() test -//! Uses API elements: GetNearestFontToDesignHeightInTwips() -//! @SYMTestActions 1. Create a RFbsSession -//! 2. Call CFbsTypefaceStore::NewL() passing NULL as an argument -//! 3. Call GetNearestFontToDesignHeightInTwips() for Swiss, 30 twips font -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Expects that the method call doesn't cause panic, returns KErrNone and the returned font pointer is not NULL -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInTwips GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0020-001-GetNearestFontToDesignHeightInTwips_command004 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0020 - - -START_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0021 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0021 -//! @SYMAPI CFbsTypefaceStore -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 29/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script -//! @SYMTestCaseDesc CFbsTypefaceStore::GetNearestFontToMaxHeightInTwips() test -//! Uses API elements: GetNearestFontToMaxHeightInTwips() -//! @SYMTestActions 1. Create a RFbsSession -//! 2. Call CFbsTypefaceStore::NewL() passing NULL as an argument -//! 3. Call GetNearestFontToMaxHeightInTwips() for Swiss, 30 font setting maximum height to 30 -//! 4. Call font's FontHeightInTwips() to verify that it's actual height doesn't exceed maximum -//! height restriction -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Expects that the GetNearestFontToMaxHeightInTwips() method call returns KErrNone and -//! that the height of the returned font is not greater that the maximum specified. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 GetNearestFontToMaxHeightInTwips GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0021-001-GetNearestFontToMaxHeightInTwips_command004 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0021 - - -START_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0022 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0022 -//! @SYMAPI CFbsTypefaceStore -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 29/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script -//! @SYMTestCaseDesc CFbsTypefaceStore::AddFile() negative test for non-existent file -//! Uses API elements: AddFile() -//! @SYMTestActions 1. Create a RFbsSession -//! 2. Call CFbsTypefaceStore::NewL() passing NULL as an argument -//! 3. Call AddFile() method specifying the location of a non-existing gdr-file -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Expects that AddFile() method call returns an error code -1 (item not found) -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND !Error=-1 CFbsTypefaceStore1 AddFile GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0022-001-AddFile_command004 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0022 - - -START_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0023 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0023 -//! @SYMAPI CFbsTypefaceStore -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 29/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script -//! @SYMTestCaseDesc CFbsTypefaceStore::AddFile() negative test for non-gdr file -//! Uses API elements: AddFile() -//! @SYMTestActions 1. Create a RFbsSession -//! 2. Call CFbsTypefaceStore::NewL() passing NULL as an argument -//! 3. Call AddFile() method specifying the location of an existing but non-gdr-file -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Expects that AddFile() method call will fail returning error code -20 (KErrCorrupt) -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND !Error=-20 CFbsTypefaceStore1 AddFile GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0023-001-AddFile_command004 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0023 - - -START_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0024 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0024 -//! @SYMAPI CFbsTypefaceStore -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 29/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script -//! @SYMTestCaseDesc CFbsTypefaceStore::InstallFile() negative test for non-existent file -//! Uses API elements: InstallFile() -//! @SYMTestActions 1. Create a RFbsSession -//! 2. Call CFbsTypefaceStore::NewL() passing NULL as an argument -//! 3. Call InstallFile() method specifying the location of a non-existing gdr-file -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Expects that InstallFile() method call returns an error code -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND !Error=-1 CFbsTypefaceStore1 InstallFile GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0024-001-InstallFile_command004 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0024 - - -START_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0025 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0025 -//! @SYMAPI CFbsTypefaceStore -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 29/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script -//! @SYMTestCaseDesc CFbsTypefaceStore::InstallFile() negative test for non-gdr file -//! Uses API elements: InstallFile() -//! @SYMTestActions 1. Create a RFbsSession -//! 2. Call CFbsTypefaceStore::NewL() passing NULL as an argument -//! 3. Call InstallFile() method specifying the location of an existing but non-gdr-file -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Expects that InstallFile() method call will fail returning error code -20 (KErrCorrupt) -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND !Error=-20 CFbsTypefaceStore1 InstallFile GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0025-001-InstallFile_command004 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0025 - - -START_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0027 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0027 -//! @SYMAPI CFbsTypefaceStore -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 29/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script -//! @SYMTestCaseDesc Deprecated CFbsTypefaceStore::GetNearestFontInTwips() negative test for non-existent font name -//! Uses API elements: GetNearestFontInTwips() -//! @SYMTestActions 1. Create a RFbsSession -//! 2. Call CFbsTypefaceStore::NewL() passing NULL as an argument -//! 3. Call GetNearestFontInTwips() for NonExistentFont, 12 twips font -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The function GetNearestFontInTwips() call returns KErrNone and doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 GetNearestFontInTwips GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0027-001-GetNearestFontInTwips_command004 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0027 - - -START_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0028 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0028 -//! @SYMAPI CFbsTypefaceStore -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 29/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script -//! @SYMTestCaseDesc CFbsTypefaceStore::GetNearestFontInPixels() negative test for non-existent font name -//! Uses API elements: GetNearestFontInPixels() -//! @SYMTestActions 1. Create a RFbsSession -//! 2. Call CFbsTypefaceStore::NewL() passing NULL as an argument -//! 3. Call GetNearestFontInPixels() for NonExistentFont, 12 px font -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The function GetNearestFontInPixels() call returns KErrNone and doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 GetNearestFontInPixels GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0028-001-GetNearestFontInPixels_command004 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0028 - - -START_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0029 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0029 -//! @SYMAPI CFbsTypefaceStore -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 29/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script -//! @SYMTestCaseDesc CFbsTypefaceStore::GetNearestFontToDesignHeightInPixels() negative test for non-existent font name -//! Uses API elements: GetNearestFontToDesignHeightInPixels() -//! @SYMTestActions 1. Create a RFbsSession -//! 2. Call CFbsTypefaceStore::NewL() passing NULL as an argument -//! 3. Call GetNearestFontToDesignHeightInPixels() for NonExistentFont, 12 px font -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The function GetNearestFontToDesignHeightInPixels() call returns KErrNone and doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInPixels GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0029-001-GetNearestFontToDesignHeightInPixels_command004 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0029 - - -START_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0030 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0030 -//! @SYMAPI CFbsTypefaceStore -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 29/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script -//! @SYMTestCaseDesc CFbsTypefaceStore::GetNearestFontToMaxHeightInPixels() negative test for non-existent font name -//! Uses API elements: GetNearestFontToMaxHeightInPixels() -//! @SYMTestActions 1. Create a RFbsSession -//! 2. Call CFbsTypefaceStore::NewL() passing NULL as an argument -//! 3. Call GetNearestFontToMaxHeightInPixels() for NonExistentFont, 12 px font -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The function GetNearestFontToMaxHeightInPixels() call returns KErrNone and doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 GetNearestFontToMaxHeightInPixels GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0030-001-GetNearestFontToMaxHeightInPixels_command004 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0030 - - -START_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0031 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0031 -//! @SYMAPI CFbsTypefaceStore -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 29/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script -//! @SYMTestCaseDesc CFbsTypefaceStore::GetNearestFontToMaxHeightInPixels() negative test for too small maximum height -//! Uses API elements: GetNearestFontToMaxHeightInPixels() -//! @SYMTestActions 1. Create a RFbsSession -//! 2. Call CFbsTypefaceStore::NewL() passing NULL as an argument -//! 3. Call GetNearestFontToMaxHeightInPixels() for NonExistentFont, 12 px font and aMaxHeight=0 -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The function GetNearestFontToMaxHeightInPixels() call returns KErrNone and doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 GetNearestFontToMaxHeightInPixels GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0031-001-GetNearestFontToMaxHeightInPixels_command004 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0031 - - -START_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0032 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0032 -//! @SYMAPI CFbsTypefaceStore -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 29/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script -//! @SYMTestCaseDesc CFbsTypefaceStore::GetFontById() negative test for non-existent font id -//! Uses API elements: GetFontById() -//! @SYMTestActions 1. Create a RFbsSession -//! 2. Call CFbsTypefaceStore::NewL() passing NULL as an argument -//! 3. Use GetFontById() providing font id = 0 -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Expects that the GetFontById() method call returns an error -1 (KErrNotFound). -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND !Error=-1 CFbsTypefaceStore1 GetFontById GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0032-001-GetFontById_command004 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0032 - - -START_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0036 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0036 -//! @SYMAPI CFbsTypefaceStore -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 29/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script -//! @SYMTestCaseDesc CFbsTypefaceStore::SetDefaultBitmapType() test that tries to set a wrong value -//! Uses API elements: DefaultBitmapType(), SetDefaultBitmapType() -//! @SYMTestActions 1. Create a RFbsSession -//! 2. Call CFbsTypefaceStore::NewL() passing NULL as an argument -//! 3. Call DefaultBitmapType() and remember it's value -//! 4. Call SetDefaultBitmapType() and give -999 as an argument -//! 5. Call SetDefaultBitmapType() and pass EDefaultGlyphBitmap as an argument -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The function SetDefaultBitmapType doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 SetDefaultBitmapType GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0036-001-SetDefaultBitmapType_command004 - COMMAND CFbsTypefaceStore1 SetDefaultBitmapType GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0036-001-SetDefaultBitmapType_command005 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0036 - - -START_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0037 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0037 -//! @SYMAPI CFbsTypefaceStore -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 29/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script -//! @SYMTestCaseDesc CFbsTypefaceStore::SetFontNameAliasL() test for wrong font name -//! Uses API elements: SetFontNameAliasL() -//! @SYMTestActions 1. Create a RFbsSession -//! 2. Call CFbsTypefaceStore::NewL() passing NULL as an argument -//! 3. Call SetFontNameAliasL() and set name alias for font name "NonExistentFont" -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The function SetFontNameAliasL() call doesn't leave and doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 SetFontNameAliasL GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0037-001-SetFontNameAliasL_command004 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0037 - - -START_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0038 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0038 -//! @SYMAPI CFbsTypefaceStore -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 29/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script -//! @SYMTestCaseDesc CFbsTypefaceStore::SetDefaultLanguageForMetrics() negative test with wrong language code -//! Uses API elements: SetDefaultLanguageForMetrics() -//! @SYMTestActions 1. Create a RFbsSession -//! 2. Call CFbsTypefaceStore::NewL() passing NULL as an argument -//! 3. Call SetDefaultLanguageForMetrics() with -1 as an argument -//! 4. Call SetDefaultLanguageForMetrics() to ELangEnglish -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The function SetDefaultLanguageForMetrics() call doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 SetDefaultLanguageForMetrics GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0038-001-SetDefaultLanguageForMetrics_command004 - COMMAND CFbsTypefaceStore1 SetDefaultLanguageForMetrics GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0038-001-SetDefaultLanguageForMetrics_command005 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0038 - - -START_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0040 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0040 -//! @SYMAPI CFbsTypefaceStore -//! @SYMAuthor Louis Henry Nayegon -//! @SYMCreationDate 29/03/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script -//! @SYMTestCaseDesc CFbsTypefaceStore::SetSystemDefaultTypefaceNameL() test -//! Uses API elements: SetSystemDefaultTypefaceNameL(const TDesC \&aFontTypefaceName) -//! @SYMTestActions 1. Create a RFbsSession -//! 2. Call CFbsTypefaceStore::NewL() passing NULL as an argument -//! 3. Call SetSystemDefaultTypefaceNameL() method -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Checks that SetSystemDefaultTypefaceNameL() method call doesn't cause panics -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 SetSystemDefaultTypefaceNameL GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0040-001-SetSystemDefaultTypefaceNameL_command004 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0040 - - -START_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0041 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0041 -//! @SYMAPI CFbsTypefaceStore -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 31/05/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script -//! @SYMTestCaseDesc CFbsTypefaceStore::NewL() with a bitmap device as a parameter test -//! Uses API elements: NewL() -//! @SYMTestActions 1. Create a RFbsSession -//! 2. Create a fbs bitmap -//! 3. Create a fbs bitmap device -//! 4. Call CFbsTypefaceStore::NewL() passing the device as an argument -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Expects that the creation will not cause panic, the method NewL will not leave and the returned value is not NULL -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsBitmap CFbsBitmap1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - CREATE_OBJECT CFbsBitmapDevice CFbsBitmapDevice1 - COMMAND RFbsSession1 Connect - COMMAND CFbsBitmap1 new - COMMAND CFbsBitmap1 Create GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0041-001-Create_command004 - COMMAND CFbsBitmapDevice1 NewL GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0041-001-NewL_command006 - COMMAND CFbsTypefaceStore1 NewL GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0041-001-NewL_command008 - COMMAND CFbsTypefaceStore1 ~ - COMMAND CFbsBitmapDevice1 ~ - COMMAND CFbsBitmap1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0041 - - -START_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0042 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0042 -//! @SYMAPI CFbsTypefaceStore -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 31/05/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script -//! @SYMTestCaseDesc CFbsTypefaceStore::NewL() with a screen device as a parameter test -//! Uses API elements: NewL() -//! @SYMTestActions 1. Create a RFbsSession -//! 2. Create a fbs screen device -//! 3. Call CFbsTypefaceStore::NewL() passing the device as an argument -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Expects that the creation will not cause panic, the method NewL doesn't cause panic and the returned value is not NULL -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - CREATE_OBJECT CFbsScreenDevice CFbsScreenDevice1 - COMMAND RFbsSession1 Connect - COMMAND CFbsScreenDevice1 NewL GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0042-001-NewL_command003 - COMMAND CFbsTypefaceStore1 NewL GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0042-001-NewL_command005 - COMMAND CFbsTypefaceStore1 ~ - COMMAND CFbsScreenDevice1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0042 - - -START_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0043 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0043 -//! @SYMAPI CFbsTypefaceStore -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 31/05/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script -//! @SYMTestCaseDesc Deprecated CFbsTypefaceStore::GetNearestFontInTwips() negative test for an existent font name but too big/too small/negative size -//! Uses API elements: GetNearestFontInTwips() -//! @SYMTestActions 1. Create a RFbsSession -//! 2. Call CFbsTypefaceStore::NewL() passing NULL as an argument -//! 3. Call GetNearestFontInTwips() for Arial, 1000000 twips font -//! 4. Call GetNearestFontInTwips() for Arial, 0 twips font -//! 5. Call GetNearestFontInTwips() for Arial, -1 twips font -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The function GetNearestFontInTwips() call returns KErrNone and doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 GetNearestFontInTwips GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0043-001-GetNearestFontInTwips_command004 - COMMAND CFbsTypefaceStore1 GetNearestFontInTwips GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0043-001-GetNearestFontInTwips_command005 - COMMAND CFbsTypefaceStore1 GetNearestFontInTwips GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0043-001-GetNearestFontInTwips_command006 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0043 - - -START_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0044 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0044 -//! @SYMAPI CFbsTypefaceStore -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 31/05/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script -//! @SYMTestCaseDesc Deprecated CFbsTypefaceStore::GetNearestFontInPixels() negative test for an existent font name but too big/too small/negative size -//! Uses API elements: GetNearestFontInPixels() -//! @SYMTestActions 1. Create a RFbsSession -//! 2. Call CFbsTypefaceStore::NewL() passing NULL as an argument -//! 3. Call GetNearestFontInPixels() for Arial, 1000000 px font -//! 4. Call GetNearestFontInPixels() for Arial, 0 px font -//! 5. Call GetNearestFontInPixels() for Arial, -1 px font -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The function GetNearestFontInPixels() call returns KErrNone and doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 GetNearestFontInPixels GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0044-001-GetNearestFontInPixels_command004 - COMMAND CFbsTypefaceStore1 GetNearestFontInPixels GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0044-001-GetNearestFontInPixels_command005 - COMMAND CFbsTypefaceStore1 GetNearestFontInPixels GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0044-001-GetNearestFontInPixels_command006 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0044 - - -START_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0045 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0045 -//! @SYMAPI CFbsTypefaceStore -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 31/05/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script -//! @SYMTestCaseDesc Deprecated CFbsTypefaceStore::GetNearestFontToDesignHeightInPixels() negative test for an existent font name but too big/too small/negative size -//! Uses API elements: GetNearestFontToDesignHeightInPixels() -//! @SYMTestActions 1. Create a RFbsSession -//! 2. Call CFbsTypefaceStore::NewL() passing NULL as an argument -//! 3. Call GetNearestFontToDesignHeightInPixels() for Arial, 1000000 px font -//! 4. Call GetNearestFontToDesignHeightInPixels() for Arial, 0 px font -//! 5. Call GetNearestFontToDesignHeightInPixels() for Arial, -1 px font -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The function GetNearestFontToDesignHeightInPixels() call returns KErrNone and doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInPixels GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0045-001-GetNearestFontToDesignHeightInPixels_command004 - COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInPixels GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0045-001-GetNearestFontToDesignHeightInPixels_command005 - COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInPixels GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0045-001-GetNearestFontToDesignHeightInPixels_command006 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0045 - - -START_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0046 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0046 -//! @SYMAPI CFbsTypefaceStore -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 31/05/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script -//! @SYMTestCaseDesc Deprecated CFbsTypefaceStore::GetNearestFontToDesignHeightInTwips() negative test for an existent font name but too big/too small/negative size -//! Uses API elements: GetNearestFontToDesignHeightInTwips() -//! @SYMTestActions 1. Create a RFbsSession -//! 2. Call CFbsTypefaceStore::NewL() passing NULL as an argument -//! 3. Call GetNearestFontToDesignHeightInTwips() for Arial, 1000000 twips font -//! 4. Call GetNearestFontToDesignHeightInTwips() for Arial, 0 twips font -//! 5. Call GetNearestFontToDesignHeightInTwips() for Arial, -1 twips font -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The function GetNearestFontToDesignHeightInTwips() call returns KErrNone and doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInTwips GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0046-001-GetNearestFontToDesignHeightInTwips_command004 - COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInTwips GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0046-001-GetNearestFontToDesignHeightInTwips_command005 - COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInTwips GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0046-001-GetNearestFontToDesignHeightInTwips_command006 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0046 - - -START_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0047a -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0047a -//! @SYMAPI CFbsTypefaceStore -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 31/05/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script -//! @SYMTestCaseDesc Deprecated CFbsTypefaceStore::GetNearestFontToMaxHeightInPixels() negative test for an existent font name but too big/too small/negative sizes -//! Uses API elements: GetNearestFontToMaxHeightInPixels() -//! @SYMTestActions 1. Create a RFbsSession -//! 2. Call CFbsTypefaceStore::NewL() passing NULL as an argument -//! 3. Call GetNearestFontToMaxHeightInPixels() for Arial, 1000000 twips font, specifying max size = 50 -//! 4. Call GetNearestFontToMaxHeightInPixels() for Arial, 0 twips font, specifying max size = 50 -//! 5. Call GetNearestFontToDesignHeightInTwips() for Arial, -1 twips font, specifying max size = 50 -//! 6. Call GetNearestFontToMaxHeightInPixels() for Arial, 50 twips font, specifying max size = 1000000 -//! 7. Call GetNearestFontToMaxHeightInPixels() for Arial, 50 twips font, specifying max size = 0 -//! 8. Call GetNearestFontToDesignHeightInTwips() for Arial, 50 twips font, specifying max size = -1 -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The function GetNearestFontToMaxHeightInPixels() call returns KErrNone and doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 GetNearestFontToMaxHeightInPixels GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0047-001-GetNearestFontToMaxHeightInPixels_command004 - COMMAND CFbsTypefaceStore1 GetNearestFontToMaxHeightInPixels GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0047-001-GetNearestFontToMaxHeightInPixels_command005 - COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInTwips GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0047-001-GetNearestFontToDesignHeightInTwips_command006 - COMMAND !Error=-40 CFbsTypefaceStore1 GetNearestFontToMaxHeightInPixels GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0047-001-GetNearestFontToMaxHeightInPixels_command007 - COMMAND CFbsTypefaceStore1 GetNearestFontToMaxHeightInPixels GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0047-001-GetNearestFontToMaxHeightInPixels_command008 - COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInTwips GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0047-001-GetNearestFontToDesignHeightInTwips_command009 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0047a - - -START_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0048 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0048 -//! @SYMAPI CFbsTypefaceStore -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 31/05/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script -//! @SYMTestCaseDesc CFbsTypefaceStore::GetFontById() test by algormitmic style with too big/negative/0 size factors -//! Uses API elements: GetFontById() -//! @SYMTestActions 1. Create a RFbsSession -//! 2. Call CFbsTypefaceStore::NewL() passing NULL as an argument -//! 3. Create a TAlgStyle instance and set width and height factors to 1000000 -//! 4. Call GetFontById() passing 268435509 (KScreenFontUidArialNormal13 from FONTIDS.H) and the TAlgStyle instance with as arguments -//! 5. Create a TAlgStyle instance and set width and height factors to -1000000 -//! 6. Call GetFontById() passing 268435509 (KScreenFontUidArialNormal13 from FONTIDS.H) and the TAlgStyle instance with as arguments -//! 7. Create a TAlgStyle instance and set width and height factors to 0 -//! 8. Call GetFontById() passing 268435509 (KScreenFontUidArialNormal13 from FONTIDS.H) and the TAlgStyle instance with as arguments -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Expects that the GetFontById() method call returns KErrNone and that the returned font is not NULL. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - CREATE_OBJECT TAlgStyle TAlgStyle1 - COMMAND RFbsSession1 Connect - COMMAND TAlgStyle1 new - COMMAND TAlgStyle1 SetWidthFactor GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0048-001-SetWidthFactor_command004 - COMMAND TAlgStyle1 SetHeightFactor GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0048-001-SetHeightFactor_command005 - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 GetFontById GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0048-001-GetFontById_command008 - COMMAND TAlgStyle1 new - COMMAND TAlgStyle1 SetWidthFactor GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0048-001-SetWidthFactor_command011 - COMMAND TAlgStyle1 SetHeightFactor GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0048-001-SetHeightFactor_command012 - COMMAND CFbsTypefaceStore1 GetFontById GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0048-001-GetFontById_command014 - COMMAND TAlgStyle1 new - COMMAND TAlgStyle1 SetWidthFactor GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0048-001-SetWidthFactor_command017 - COMMAND TAlgStyle1 SetHeightFactor GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0048-001-SetHeightFactor_command018 - COMMAND CFbsTypefaceStore1 GetFontById GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0048-001-GetFontById_command020 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - COMMAND TAlgStyle1 ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0048 - - -START_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0049 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0049 -//! @SYMAPI CFbsTypefaceStore -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 31/05/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script -//! @SYMTestCaseDesc CFbsTypefaceStore::FontHeightInTwips() negative test for out-of-bounds typeface index -//! Uses API elements: FontHeightInTwips() -//! @SYMTestActions 1. Create a RFbsSession -//! 2. Call CFbsTypefaceStore::NewL() passing NULL as an argument -//! 3. Call FontHeightInTwips() for typeface index = 0 and height index = -1 -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The test expects FontHeightInTwips() calls to panic -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 FontHeightInTwips GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0049-001-FontHeightInTwips_command004 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0049 - - -START_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0050 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0050 -//! @SYMAPI CFbsTypefaceStore -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 31/05/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script -//! @SYMTestCaseDesc CFbsTypefaceStore::FontHeightInTwips() negative test for out-of-bounds height index -//! Uses API elements: FontHeightInTwips() -//! @SYMTestActions 1. Create a RFbsSession -//! 2. Call CFbsTypefaceStore::NewL() passing NULL as an argument -//! 3. Call FontHeightInTwips() for typeface index = -1 and height index = 0 -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The test expects FontHeightInTwips() calls to panic -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 FontHeightInTwips GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0050-001-FontHeightInTwips_command004 - END_TEST_BLOCK !PanicCode=26 !PanicString=FBSCLI - RUN_TEST_STEP 100 T_FBServAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0050 - - -START_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0051 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0051 -//! @SYMAPI CFbsTypefaceStore -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 31/05/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script -//! @SYMTestCaseDesc CFbsTypefaceStore::FontHeightInPixels() negative test for out-of-bounds typeface index -//! Uses API elements: FontHeightInPixels() -//! @SYMTestActions 1. Create a RFbsSession -//! 2. Call CFbsTypefaceStore::NewL() passing NULL as an argument -//! 3. Call FontHeightInPixels() for typeface index = 0 and height index = -1 -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The test expects FontHeightInPixels() calls to panic -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 FontHeightInPixels GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0051-001-FontHeightInPixels_command004 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0051 - - -START_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0052 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0052 -//! @SYMAPI CFbsTypefaceStore -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 31/05/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script -//! @SYMTestCaseDesc CFbsTypefaceStore::FontHeightInPixels() negative test for out-of-bounds height index -//! Uses API elements: FontHeightInPixels() -//! @SYMTestActions 1. Create a RFbsSession -//! 2. Call CFbsTypefaceStore::NewL() passing NULL as an argument -//! 3. Call FontHeightInPixels() for typeface index = -1 and height index = 0 -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The test expects FontHeightInPixels() calls to panic -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 FontHeightInPixels GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0052-001-FontHeightInPixels_command004 - END_TEST_BLOCK !PanicCode=26 !PanicString=FBSCLI - RUN_TEST_STEP 100 T_FBServAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0052 - - -START_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0053 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0053 -//! @SYMAPI CFbsTypefaceStore -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 31/05/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script -//! @SYMTestCaseDesc CFbsTypefaceStore::SetFontNameAliasL() test with empty font and alias name -//! Uses API elements: SetFontNameAliasL() -//! @SYMTestActions 1. Create a RFbsSession -//! 2. Call CFbsTypefaceStore::NewL() passing NULL as an argument -//! 3. Call SetFontNameAliasL() with empty font and alias name parameters -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The function SetFontNameAliasL() call doesn't leave and doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 SetFontNameAliasL GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0053-001-SetFontNameAliasL_command004 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0053 - - -START_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0054 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0054 -//! @SYMAPI CFbsTypefaceStore -//! @SYMAuthor Anton Golovko -//! @SYMCreationDate 31/05/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script -//! @SYMTestCaseDesc Deprecated CFbsTypefaceStore::GetNearestFontToDesignHeightInTwips() negative test for an empty font name -//! Uses API elements: GetNearestFontToDesignHeightInTwips() -//! @SYMTestActions 1. Create a RFbsSession -//! 2. Call CFbsTypefaceStore::NewL() passing NULL as an argument -//! 3. Call GetNearestFontToDesignHeightInTwips() for "" (empty name), 50 twips font -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The function GetNearestFontToDesignHeightInTwips() call returns KErrNone and doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInTwips GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0054-001-GetNearestFontToDesignHeightInTwips_command004 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0054 - - -START_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0056 -//! @SYMTestCaseID GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0056 -//! @SYMAPI CFbsTypefaceStore -//! @SYMAuthor Rnno Sgirka -//! @SYMCreationDate 27/07/2006 -//! @SYMTestCaseDependencies setup-GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script -//! @SYMTestCaseDesc CFbsTypefaceStore::SetSystemDefaultTypefaceNameL() negative test with invalid typeface name -//! Uses API elements: SetSystemDefaultTypefaceNameL(const TDesC \&aFontTypefaceName) -//! @SYMTestActions 1. Create a RFbsSession -//! 2. Call CFbsTypefaceStore::NewL() passing NULL as an argument -//! 3. Call SetSystemDefaultTypefaceNameL() method with WrongName as typeface name -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Checks that SetSystemDefaultTypefaceNameL() doesn't leave or panic -//! @SYMTestType CIT - START_TEST_BLOCK 100 T_FBServAPI \graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini - CREATE_OBJECT RFbsSession RFbsSession1 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - COMMAND RFbsSession1 Connect - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 SetSystemDefaultTypefaceNameL GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0056-001-SetSystemDefaultTypefaceNameL_command004 - COMMAND CFbsTypefaceStore1 ~ - COMMAND RFbsSession1 Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0056 - -RUN_UTILS DeleteFile ${SYSDRIVE}\graphics\t_fbservapi\tmpfontfb.gdr diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fbserv/scripts/GRAPHICS-FBSERV-PublicApi.script --- a/graphicsapitest/graphicssvs/fbserv/scripts/GRAPHICS-FBSERV-PublicApi.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,22 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// - -RUN_SCRIPT ${SYSDRIVE}\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -RUN_SCRIPT ${SYSDRIVE}\graphics\GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.script -RUN_SCRIPT ${SYSDRIVE}\graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.script -RUN_SCRIPT ${SYSDRIVE}\graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.script -RUN_SCRIPT ${SYSDRIVE}\graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script -RUN_SCRIPT ${SYSDRIVE}\graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.script diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fbserv/scripts/setup-GRAPHICS-FBSERV-BitmapUtil-PublicApi.script --- a/graphicsapitest/graphicssvs/fbserv/scripts/setup-GRAPHICS-FBSERV-BitmapUtil-PublicApi.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,29 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// - -RUN_UTILS MkDir ${SYSDRIVE}\graphics\ - -// copy script files - -RUN_UTILS CopyFile z:\graphics\GRAPHICS-FBSERV-PublicApi.script ${SYSDRIVE}\graphics\GRAPHICS-FBSERV-PublicApi.script -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-FBSERV-PublicApi.script - -RUN_UTILS CopyFile z:\graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.script ${SYSDRIVE}\graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.script -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.script - -// copy ini data file -RUN_UTILS CopyFile z:\graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini ${SYSDRIVE}\graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fbserv/scripts/setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script --- a/graphicsapitest/graphicssvs/fbserv/scripts/setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,55 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// - -RUN_UTILS MkDir ${SYSDRIVE}\graphics\ -RUN_UTILS MkDir ${SYSDRIVE}\graphics\t_fbservapi\ - -// copy script files -RUN_UTILS CopyFile z:\graphics\GRAPHICS-FBSERV-PublicApi.script ${SYSDRIVE}\graphics\GRAPHICS-FBSERV-PublicApi.script -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-FBSERV-PublicApi.script - -RUN_UTILS CopyFile z:\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.script ${SYSDRIVE}\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.script - -// copy ini data file - -RUN_UTILS CopyFile z:\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini ${SYSDRIVE}\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini - -// copy other data files -RUN_UTILS CopyFile z:\graphics\t_fbservapi\empty_file.txt ${SYSDRIVE}\graphics\t_fbservapi\empty_file.txt -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\t_fbservapi\empty_file.txt - -RUN_UTILS CopyFile z:\graphics\t_fbservapi\testfontfb.gdr ${SYSDRIVE}\graphics\t_fbservapi\testfontfb.gdr -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\t_fbservapi\testfontfb.gdr - -RUN_UTILS CopyFile z:\graphics\t_fbservapi\test_bitmap.mbm ${SYSDRIVE}\graphics\t_fbservapi\test_bitmap.mbm -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\t_fbservapi\test_bitmap.mbm - -RUN_UTILS CopyFile z:\graphics\t_fbservapi\test_bitmap_offset8.mbm ${SYSDRIVE}\graphics\t_fbservapi\test_bitmap_offset8.mbm -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\t_fbservapi\test_bitmap_offset8.mbm - -RUN_UTILS CopyFile z:\graphics\t_fbservapi\scaniline_10bytes.txt ${SYSDRIVE}\graphics\t_fbservapi\scaniline_10bytes.txt -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\t_fbservapi\scaniline_10bytes.txt - -RUN_UTILS CopyFile z:\graphics\t_fbservapi\test_bitmap_24bit_400x300.mbm ${SYSDRIVE}\graphics\t_fbservapi\test_bitmap_24bit_400x300.mbm -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\t_fbservapi\test_bitmap_24bit_400x300.mbm - -RUN_UTILS CopyFile z:\graphics\t_fbservapi\test_bitmap_32x8.mbm ${SYSDRIVE}\graphics\t_fbservapi\test_bitmap_32x8.mbm -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\t_fbservapi\test_bitmap_32x8.mbm - -RUN_UTILS CopyFile z:\graphics\t_fbservapi\test_bitmap_rom.rbm ${SYSDRIVE}\graphics\t_fbservapi\test_bitmap_rom.rbm -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\t_fbservapi\test_bitmap_rom.rbm diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fbserv/scripts/setup-GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.script --- a/graphicsapitest/graphicssvs/fbserv/scripts/setup-GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,29 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// - -RUN_UTILS MkDir ${SYSDRIVE}\graphics\ - -// copy script files - -RUN_UTILS CopyFile z:\graphics\GRAPHICS-FBSERV-PublicApi.script ${SYSDRIVE}\graphics\GRAPHICS-FBSERV-PublicApi.script -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-FBSERV-PublicApi.script - -RUN_UTILS CopyFile z:\graphics\GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.script ${SYSDRIVE}\graphics\GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.script -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.script - -// copy ini data file -RUN_UTILS CopyFile z:\graphics\GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.ini ${SYSDRIVE}\graphics\GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.ini -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.ini diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fbserv/scripts/setup-GRAPHICS-FBSERV-FbsFont-PublicApi.script --- a/graphicsapitest/graphicssvs/fbserv/scripts/setup-GRAPHICS-FBSERV-FbsFont-PublicApi.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,29 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// - -RUN_UTILS MkDir ${SYSDRIVE}\graphics\ - -// copy script files - -RUN_UTILS CopyFile z:\graphics\GRAPHICS-FBSERV-PublicApi.script ${SYSDRIVE}\graphics\GRAPHICS-FBSERV-PublicApi.script -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-FBSERV-PublicApi.script - -RUN_UTILS CopyFile z:\graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.script ${SYSDRIVE}\graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.script -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.script - -// copy ini data files -RUN_UTILS CopyFile z:\graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini ${SYSDRIVE}\graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-FBSERV-FbsFont-PublicApi.ini diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fbserv/scripts/setup-GRAPHICS-FBSERV-FbsSession-PublicApi.script --- a/graphicsapitest/graphicssvs/fbserv/scripts/setup-GRAPHICS-FBSERV-FbsSession-PublicApi.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,29 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// - -RUN_UTILS MkDir ${SYSDRIVE}\graphics\ - -// copy script files - -RUN_UTILS CopyFile z:\graphics\GRAPHICS-FBSERV-PublicApi.script ${SYSDRIVE}\graphics\GRAPHICS-FBSERV-PublicApi.script -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-FBSERV-PublicApi.script - -RUN_UTILS CopyFile z:\graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.script ${SYSDRIVE}\graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.script -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.script - -// copy ini data file -RUN_UTILS CopyFile z:\graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.ini ${SYSDRIVE}\graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.ini -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-FBSERV-FbsSession-PublicApi.ini diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fbserv/scripts/setup-GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script --- a/graphicsapitest/graphicssvs/fbserv/scripts/setup-GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,36 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// - -RUN_UTILS MkDir ${SYSDRIVE}\graphics\ -RUN_UTILS MkDir ${SYSDRIVE}\graphics\t_fbservapi\ - -// copy script files -RUN_UTILS CopyFile z:\graphics\GRAPHICS-FBSERV-PublicApi.script ${SYSDRIVE}\graphics\GRAPHICS-FBSERV-PublicApi.script -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-FBSERV-PublicApi.script - -RUN_UTILS CopyFile z:\graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script ${SYSDRIVE}\graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script - -// copy ini data file -RUN_UTILS CopyFile z:\graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini ${SYSDRIVE}\graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini - -// copy other data files -RUN_UTILS CopyFile z:\graphics\t_fbservapi\empty_file.txt ${SYSDRIVE}\graphics\t_fbservapi\empty_file.txt -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\t_fbservapi\empty_file.txt - -RUN_UTILS CopyFile z:\graphics\t_fbservapi\testfontfb.gdr ${SYSDRIVE}\graphics\t_fbservapi\testfontfb.gdr -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\t_fbservapi\testfontfb.gdr diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fbserv/scripts/setup-GRAPHICS-FBSERV-PublicApi.script --- a/graphicsapitest/graphicssvs/fbserv/scripts/setup-GRAPHICS-FBSERV-PublicApi.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,33 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// - -RUN_UTILS MkDir ${SYSDRIVE}\graphics\ - -// copy script files -RUN_UTILS CopyFile z:\graphics\GRAPHICS-FBSERV-PublicApi.script ${SYSDRIVE}\graphics\GRAPHICS-FBSERV-PublicApi.script -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-FBSERV-PublicApi.script - -RUN_UTILS CopyFile z:\graphics\t_graphics.tcs ${SYSDRIVE}\graphics\t_graphics.tcs -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\t_graphics.tcs -RUN_UTILS CopyFile z:\graphics\t_graphics_panic.tcs ${SYSDRIVE}\graphics\t_graphics_panic.tcs -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\t_graphics_panic.tcs - -RUN_SCRIPT z:\graphics\setup-GRAPHICS-FBSERV-FbsBitmap-PublicApi.script -RUN_SCRIPT z:\graphics\setup-GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.script -RUN_SCRIPT z:\graphics\setup-GRAPHICS-FBSERV-FbsFont-PublicApi.script -RUN_SCRIPT z:\graphics\setup-GRAPHICS-FBSERV-FbsSession-PublicApi.script -RUN_SCRIPT z:\graphics\setup-GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.script -RUN_SCRIPT z:\graphics\setup-GRAPHICS-FBSERV-BitmapUtil-PublicApi.script diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fbserv/src/T_DataBitmapUtil.cpp --- a/graphicsapitest/graphicssvs/fbserv/src/T_DataBitmapUtil.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,403 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataBitmapUtil -*/ - -// User includes -#include "T_DataBitmapUtil.h" -#include "T_GraphicsUtil.h" - -/*@{*/ -/// Parameters -_LIT(KBitmap, "bitmap"); -_LIT(KPointX, "point_x"); -_LIT(KPointY, "point_y"); -_LIT(KOtherBitmapUtil, "other_bitmap_util"); -_LIT(KColor, "color"); -_LIT(KColorMask, "colormask"); - -/// Commands -_LIT(KCmdNew, "new"); -_LIT(KCmdBegin, "Begin"); -_LIT(KCmdEnd, "End"); -_LIT(KCmdSetPixel, "SetPixel"); -_LIT(KCmdGetPixel, "GetPixel"); -_LIT(KCmdSetPos, "SetPos"); -_LIT(KCmdDecXPos, "DecXPos"); -_LIT(KCmdDecYPos, "DecYPos"); -_LIT(KCmdIncXPos, "IncXPos"); -_LIT(KCmdIncYPos, "IncYPos"); -_LIT(KCleanup, "~"); -/*@}*/ - -/** -* Two phase constructor -*/ -CT_DataBitmapUtil* CT_DataBitmapUtil::NewL() - { - CT_DataBitmapUtil* ret = new (ELeave) CT_DataBitmapUtil(); - return ret; - } - -/** -* Protected constructor. First phase construction -*/ -CT_DataBitmapUtil::CT_DataBitmapUtil() -: CDataWrapperBase() -, iBitmapUtil(NULL) - { - } - -/** -* Protected desctructor -*/ -CT_DataBitmapUtil::~CT_DataBitmapUtil() - { - DestroyData(); - } - -/** -* Contains cleanup implementation -*/ -void CT_DataBitmapUtil::DestroyData() - { - delete iBitmapUtil; - iBitmapUtil = NULL; - } - -TAny* CT_DataBitmapUtil::GetObject() - { - return iBitmapUtil; - } - -void CT_DataBitmapUtil::SetObjectL(TAny* aObject) - { - DestroyData(); - iBitmapUtil = static_cast (aObject); - } - -void CT_DataBitmapUtil::DisownObjectL() - { - iBitmapUtil = NULL; - } - -/** -* Process a command read from the ini file -* -* @param aDataWrapper test step requiring command to be processed -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* -* @return ETrue if the command is processed -*/ -TBool CT_DataBitmapUtil::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt /*aAsyncErrorIndex*/) - { - TBool retVal = ETrue; - - if (aCommand == KCmdNew) - { - DoCmdNewL(aSection); - } - else if (aCommand == KCmdBegin) - { - DoCmdBeginL(aSection); - } - else if (aCommand == KCmdEnd) - { - DoCmdEnd(); - } - else if (aCommand == KCmdSetPixel) - { - DoCmdSetPixelL(aSection); - } - else if (aCommand == KCmdGetPixel) - { - DoCmdGetPixel(aSection); - } - else if (aCommand == KCmdSetPos) - { - DoCmdSetPos(aSection); - } - else if (aCommand == KCmdDecXPos) - { - DoCmdDecXPos(); - } - else if (aCommand == KCmdDecYPos) - { - DoCmdDecYPos(); - } - else if (aCommand == KCmdIncXPos) - { - DoCmdIncXPos(); - } - else if (aCommand == KCmdIncYPos) - { - DoCmdIncYPos(); - } - else if (aCommand == KCleanup) - { - DestroyData(); - } - else - { - retVal=EFalse; - } - - return retVal; - } - - - -/** Creates a TBitmapUtil instance */ -void CT_DataBitmapUtil::DoCmdNewL(const TDesC& aSection) - { - INFO_PRINTF1(_L("Creates a TBitmapUtil instance")); - - // get fbsBitmap passed as a parameter - CFbsBitmap* fbsBitmap=NULL; - CT_GraphicsUtil::GetFbsBitmapL(*this, aSection, KBitmap(), fbsBitmap); - - // cleanup if already created - delete iBitmapUtil; - iBitmapUtil = NULL; - - // call new operator - TRAPD(err, iBitmapUtil = new (ELeave) TBitmapUtil(fbsBitmap)); - - // check error code - if (err != KErrNone) - { - ERR_PRINTF2(_L("Error creation instance: %d"), err); - SetError(err); - } - } - - -/** Calls TBitmapUtil::Begin() */ -void CT_DataBitmapUtil::DoCmdBeginL(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls TBitmapUtil::Begin()")); - TBool dataOk=ETrue; - - // get position x-coordinate from parameters - TInt pointX; - if(!GetIntFromConfig(aSection, KPointX(), pointX)) - { - ERR_PRINTF2(_L("No %S"), &KPointX()); - SetBlockResult(EFail); - dataOk=EFalse; - } - - // get position y-coordinate from parameters - TInt pointY; - if(!GetIntFromConfig(aSection, KPointY(), pointY)) - { - ERR_PRINTF2(_L("No %S"), &KPointY()); - SetBlockResult(EFail); - dataOk=EFalse; - } - - if ( dataOk ) - { - // call Begin() - // get bitmapUtil passed as a parameter - CT_DataBitmapUtil* bitmapUtilDataObject = CT_DataBitmapUtil::GetBitmapUtilDataObjectFromParameterL(*this, KOtherBitmapUtil(), aSection); - - if (bitmapUtilDataObject == NULL) - { - iBitmapUtil->Begin(TPoint(pointX, pointY)); - } - else - { - TBitmapUtil* otherBitmapUtil = static_cast(bitmapUtilDataObject->GetObject()); - - // call Begin() - iBitmapUtil->Begin(TPoint(pointX, pointY), *otherBitmapUtil); - } - } - } - - -/** Calls TBitmapUtil::End() */ -void CT_DataBitmapUtil::DoCmdEnd() - { - INFO_PRINTF1(_L("Calls TBitmapUtil::End()")); - - // call End() - iBitmapUtil->End(); - } - - -/** Calls TBitmapUtil::SetPixel() */ -void CT_DataBitmapUtil::DoCmdSetPixelL(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls TBitmapUtil::SetPixel()")); - - // get bitmapUtil passed as a parameter - CT_DataBitmapUtil* bitmapUtilDataObject = CT_DataBitmapUtil::GetBitmapUtilDataObjectFromParameterL(*this, KOtherBitmapUtil(), aSection); - - if (bitmapUtilDataObject == NULL) - { - // get color from parameters - TInt color; - if(!GetIntFromConfig(aSection, KColor(), color)) - { - ERR_PRINTF2(_L("No %S"), &KColor()); - SetBlockResult(EFail); - } - else - { - // call SetPixel() - iBitmapUtil->SetPixel(TUint32(color)); - } - } - else - { - TBitmapUtil* otherBitmapUtil = static_cast(bitmapUtilDataObject->GetObject()); - - // call SetPixel() - iBitmapUtil->SetPixel(*otherBitmapUtil); - } - } - - -/** Calls TBitmapUtil::GetPixel() */ -void CT_DataBitmapUtil::DoCmdGetPixel(const TDesC& aSection) - { - // call GetPixel() - TUint32 color = iBitmapUtil->GetPixel(); - INFO_PRINTF2(_L("Calls TBitmapUtil::GetPixel() %d"), color); - - TInt colorMask; - if ( GetHexFromConfig(aSection, KColorMask(), colorMask) ) - { - color &= colorMask; - INFO_PRINTF2(_L("Color after masking %d"), color); - } - - // get expected color from parameters - TInt expectedColor; - if(GetIntFromConfig(aSection, KColor(), expectedColor)) - { - // check that the value is as expected - if (color != (TUint32)expectedColor ) - { - ERR_PRINTF3(_L("The value is not as expected! expected: %d, actual: %d"), expectedColor, color); - SetBlockResult(EFail); - } - } - } - -/** Calls TBitmapUtil::SetPos() */ -void CT_DataBitmapUtil::DoCmdSetPos(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls TBitmapUtil::SetPos()")); - TBool dataOk=ETrue; - - // get position x-coordinate from parameters - TInt pointX; - if(!GetIntFromConfig(aSection, KPointX(), pointX)) - { - ERR_PRINTF2(_L("No %S"), &KPointX()); - SetBlockResult(EFail); - dataOk=EFalse; - } - - // get position y-coordinate from parameters - TInt pointY; - if(!GetIntFromConfig(aSection, KPointY(), pointY)) - { - ERR_PRINTF2(_L("No %S"), &KPointY()); - SetBlockResult(EFail); - dataOk=EFalse; - } - - if ( dataOk ) - { - // call SetPos() - iBitmapUtil->SetPos(TPoint(pointX, pointY)); - } - } - - -/** Calls TBitmapUtil::DecXPos() */ -void CT_DataBitmapUtil::DoCmdDecXPos() - { - INFO_PRINTF1(_L("Calls TBitmapUtil::DecXPos()")); - - // call DecXPos() - iBitmapUtil->DecXPos(); - } - - -/** Calls TBitmapUtil::DecYPos() */ -void CT_DataBitmapUtil::DoCmdDecYPos() - { - INFO_PRINTF1(_L("Calls TBitmapUtil::DecYPos()")); - - // call DecYPos() - iBitmapUtil->DecYPos(); - } - - -/** Calls TBitmapUtil::IncXPos() */ -void CT_DataBitmapUtil::DoCmdIncXPos() - { - INFO_PRINTF1(_L("Calls TBitmapUtil::IncXPos()")); - - // call IncXPos() - iBitmapUtil->IncXPos(); - } - - -/** Calls TBitmapUtil::IncYPos() */ -void CT_DataBitmapUtil::DoCmdIncYPos() - { - INFO_PRINTF1(_L("Calls TBitmapUtil::IncYPos()")); - - // call IncYPos() - iBitmapUtil->IncYPos(); - } - - - -///////////////////////////////// UTIL METHODS ////////////////////////////////////// - - -/** -* Utility method that fetches CT_DataBitmapUtil pointer by command parameter name from INI-file. -*/ -CT_DataBitmapUtil* CT_DataBitmapUtil::GetBitmapUtilDataObjectFromParameterL(CDataWrapper& aDataWrapper, const TDesC& aParameterName, const TDesC& aSection) - { - // get AlgStyleData object from parameters - CT_DataBitmapUtil* ret=NULL; - - TPtrC bitmapUtilDataObjectName; - // get BitmapUtilData object from parameters - if ( aDataWrapper.GetStringFromConfig(aSection, aParameterName, bitmapUtilDataObjectName) ) - { - // check that the data object was found - ret=static_cast(aDataWrapper.GetDataWrapperL(bitmapUtilDataObjectName)); - } - - return ret; - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fbserv/src/T_DataFbsBitmap.cpp --- a/graphicsapitest/graphicssvs/fbserv/src/T_DataFbsBitmap.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,2296 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent -v -This contains CT_DataFbsBitmap -*/ - -// User includes -#include "T_DataFbsBitmap.h" -#include "T_GraphicsUtil.h" - -// EPOC includes -#include - -/*@{*/ -/// Parameters -_LIT(KAlways, "always"); -_LIT(KBitmapId, "bitmap_id"); -_LIT(KBuffLength, "buff_length"); -_LIT(KDitherOffsetX, "dither_offset_x"); -_LIT(KDitherOffsetY, "dither_offset_y"); -_LIT(KExpectedBool, "expected_bool"); -_LIT(KExpectedInt, "expected_int"); -_LIT(KFbsBitmapName, "fbs_bitmap_name"); -_LIT(KFileName, "file_name"); -_LIT(KFileOffset, "file_offset"); -_LIT(KHeight, "height"); -_LIT(KHandle, "handle"); -_LIT(KWidth, "width"); -_LIT(KLength, "length"); -_LIT(KNullExpected, "null_expected"); -_LIT(KDevice, "device"); -_LIT(KNumberOfSources, "number_of_sources"); -_LIT(KPixels, "pixels"); -_LIT(KPointX, "point_x"); -_LIT(KPointY, "point_y"); -_LIT(KRectTlX, "rect_tl_x"); -_LIT(KRectTlY, "rect_tl_y"); -_LIT(KRectBrX, "rect_br_x"); -_LIT(KRectBrY, "rect_br_y"); -_LIT(KScanLineCoord, "scan_line_coord"); -_LIT(KSourceFileName0, "source_file_name_0"); // we don't need more than 3 sources for our test anyway. -_LIT(KSourceFileName1, "source_file_name_1"); // So that this solution is ok -_LIT(KSourceFileName2, "source_file_name_2"); -_LIT(KSourceBitmapId0, "source_bitmap_id_0"); -_LIT(KSourceBitmapId1, "source_bitmap_id_1"); -_LIT(KSourceBitmapId2, "source_bitmap_id_2"); -_LIT(KShareIfLoaded, "share_if_loaded"); -_LIT(KTwips, "twips"); -_LIT(KUseDitherOffset, "use_dither_offset"); -_LIT(KUseRFile, "use_rfile"); -_LIT(KUseClosedRFile, "use_closed_rfile"); -_LIT(KUseClosedStream, "use_closed_stream"); -_LIT(KUseRequestStatus, "use_request_status"); -_LIT(KUid, "uid"); -_LIT(KPalette, "palette"); -_LIT(KModifiable, "modifiable"); -_LIT(KEntries, "entries"); -_LIT(KRed, "red"); -_LIT(KGreen, "green"); -_LIT(KBlue, "blue"); -_LIT(KDisplayMode, "displaymode"); -_LIT(KBitmapfileCompressionScheme, "bitmap_compression_scheme"); - -/// Commands -_LIT(KCmdDisown, "disown"); -_LIT(KCmdNew, "new"); -_LIT(KCmdDestructor, "~"); -_LIT(KCmdCompress, "Compress"); -_LIT(KCmdCompressInBackground, "CompressInBackground"); -_LIT(KCmdCreate, "Create"); -_LIT(KCmdCreateHardwareBitmap, "CreateHardwareBitmap"); -_LIT(KCmdDataAddress, "DataAddress"); -_LIT(KCmdDataStride, "DataStride"); -_LIT(KCmdDisplayMode, "DisplayMode"); -_LIT(KCmdDuplicate, "Duplicate"); -_LIT(KCmdExternalizeL, "ExternalizeL"); -_LIT(KCmdExternalizeRectangleL, "ExternalizeRectangleL"); -_LIT(KCmdGetPalette, "GetPalette"); -_LIT(KCmdGetPixel, "GetPixel"); -_LIT(KCmdGetScanLine, "GetScanLine"); -_LIT(KCmdGetVerticalScanLine, "GetVerticalScanLine"); -_LIT(KCmdHandle, "Handle"); -_LIT(KCmdHardwareBitmapHandle, "HardwareBitmapHandle"); -_LIT(KCmdHeader, "Header"); -_LIT(KCmdHorizontalPixelsToTwips, "HorizontalPixelsToTwips"); -_LIT(KCmdHorizontalTwipsToPixels, "HorizontalTwipsToPixels"); -_LIT(KCmdInitialDisplayMode, "InitialDisplayMode"); -_LIT(KCmdInternalizeL, "InternalizeL"); -_LIT(KCmdIsCompressedInRAM, "IsCompressedInRAM"); -_LIT(KCmdIsFileInRom, "IsFileInRom"); -_LIT(KCmdIsLargeBitmap, "IsLargeBitmap"); -_LIT(KCmdIsMonochrome, "IsMonochrome"); -_LIT(KCmdIsRomBitmap, "IsRomBitmap"); -_LIT(KCmdLoad, "Load"); -_LIT(KCmdLoadAndCompress, "LoadAndCompress"); -_LIT(KCmdLockHeap, "LockHeap"); -_LIT(KCmdLockHeapLC, "LockHeapLC"); -_LIT(KCmdPaletteAttributes, "PaletteAttributes"); -_LIT(KCmdReset, "Reset"); -_LIT(KCmdResize, "Resize"); -_LIT(KCmdSave, "Save"); -_LIT(KCmdScanLineLength, "ScanLineLength"); -_LIT(KCmdSetDisplayMode, "SetDisplayMode"); -_LIT(KCmdSetPalette, "SetPalette"); -_LIT(KCmdSetRomBitmapL, "SetRomBitmapL"); -_LIT(KCmdSetScanLine, "SetScanLine"); -_LIT(KCmdSetSizeInTwips, "SetSizeInTwips"); -_LIT(KCmdSizeInPixels, "SizeInPixels"); -_LIT(KCmdSizeInTwips, "SizeInTwips"); -_LIT(KCmdStoreL, "StoreL"); -_LIT(KCmdSwapWidthAndHeight, "SwapWidthAndHeight"); -_LIT(KCmdUnlockHeap, "UnlockHeap"); -_LIT(KCmdVerticalPixelsToTwips, "VerticalPixelsToTwips"); -_LIT(KCmdVerticalTwipsToPixels, "VerticalTwipsToPixels"); - -//?? SetRomBitmapL -// Begin -// End -// GetDecompressionBuffer -// GetAllBitmapHandles -/*@}*/ - -/** -* Two phase constructor -*/ -CT_DataFbsBitmap* CT_DataFbsBitmap::NewL() - { - CT_DataFbsBitmap* ret = new (ELeave) CT_DataFbsBitmap(); - CleanupStack::PushL(ret); - ret->ConstructL(); - CleanupStack::Pop(ret); - return ret; - } - -/** -* Protected constructor. First phase construction -*/ -CT_DataFbsBitmap::CT_DataFbsBitmap() -: CDataWrapperBase() -, iFbsBitmap(NULL) -, iDisplayMode(ENone) -, iPopWhenUnlocking(EFalse) -, iCompressFailed(EFalse) -, iActiveCompressInBackground(NULL) - { - } - -/** -* Protected constructor. Second phase construction -*/ -void CT_DataFbsBitmap::ConstructL() - { - iActiveCompressInBackground=CActiveCallback::NewL(*this); - } - -/** -* Destructor. -*/ -CT_DataFbsBitmap::~CT_DataFbsBitmap() - { - DestroyData(); - delete iActiveCompressInBackground; - iActiveCompressInBackground=NULL; - } - -/** -* Contains cleanup implementation -*/ -void CT_DataFbsBitmap::DestroyData() - { - delete iFbsBitmap; - iFbsBitmap=NULL; - } - -/** -* Return a pointer to the object that the data wraps -* -* @return pointer to the object that the data wraps -*/ -TAny* CT_DataFbsBitmap::GetObject() - { - return iFbsBitmap; - } - -void CT_DataFbsBitmap::SetObjectL(TAny* aAny) - { - DestroyData(); - iFbsBitmap=static_cast (aAny); - } - -void CT_DataFbsBitmap::DisownObjectL() - { - iFbsBitmap=NULL; - } - -CFbsBitmap* CT_DataFbsBitmap::GetFbsBitmap() const - { - return iFbsBitmap; - } - -/** -* Process a command read from the ini file -* -* @param aDataWrapper test step requiring command to be processed -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* -* @return ETrue if the command is processed -*/ -TBool CT_DataFbsBitmap::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex) - { - TBool retVal = ETrue; - - if (aCommand == KCmdNew) - { - DoCmdNewL(); - } - else if (aCommand == KCmdDestructor) - { - DoCmdDestructor(); - } - else if (aCommand == KCmdCompress) - { - DoCmdCompress(aSection); - } - else if (aCommand == KCmdCompressInBackground) - { - DoCmdCompressInBackground(aSection, aAsyncErrorIndex); - } - else if (aCommand == KCmdCreate) - { - DoCmdCreate(aSection); - } - else if (aCommand == KCmdCreateHardwareBitmap) - { - DoCmdCreateHardwareBitmap(aSection); - } - else if (aCommand == KCmdDataAddress) - { - DoCmdDataAddress(aSection); - } - else if (aCommand == KCmdDataStride) - { - DoCmdDataStride(aSection); - } - else if (aCommand == KCmdDisplayMode) - { - DoCmdDisplayMode(aSection); - } - else if (aCommand == KCmdDuplicate) - { - DoCmdDuplicateL(aSection); - } - else if (aCommand == KCmdExternalizeL) - { - DoCmdExternalizeL(aSection); - } - else if (aCommand == KCmdExternalizeRectangleL) - { - DoCmdExternalizeRectangleL(aSection); - } - else if (aCommand == KCmdGetPalette) - { - DoCmdGetPaletteL(aSection); - } - else if (aCommand == KCmdGetPixel) - { - DoCmdGetPixel(aSection); - } - else if (aCommand == KCmdGetScanLine) - { - DoCmdGetScanLineL(aSection); - } - else if (aCommand == KCmdGetVerticalScanLine) - { - DoCmdGetVerticalScanLineL(aSection); - } - else if (aCommand == KCmdHandle) - { - DoCmdHandle(aSection); - } - else if (aCommand == KCmdHardwareBitmapHandle) - { - DoCmdHardwareBitmapHandle(aSection); - } - else if (aCommand == KCmdHeader) - { - DoCmdHeader(); - } - else if (aCommand == KCmdHorizontalPixelsToTwips) - { - DoCmdHorizontalPixelsToTwips(aSection); - } - else if (aCommand == KCmdHorizontalTwipsToPixels) - { - DoCmdHorizontalTwipsToPixels(aSection); - } - else if (aCommand == KCmdInitialDisplayMode) - { - DoCmdInitialDisplayMode(aSection); - } - else if (aCommand == KCmdInternalizeL) - { - DoCmdInternalizeL(aSection); - } - else if (aCommand == KCmdIsCompressedInRAM) - { - DoCmdIsCompressedInRAM(aSection); - } - else if (aCommand == KCmdIsFileInRom) - { - DoCmdIsFileInRom(aSection); - } - else if (aCommand == KCmdIsLargeBitmap) - { - DoCmdIsLargeBitmap(aSection); - } - else if (aCommand == KCmdIsMonochrome) - { - DoCmdIsMonochrome(aSection); - } - else if (aCommand == KCmdIsRomBitmap) - { - DoCmdIsRomBitmap(aSection); - } - else if (aCommand == KCmdLoad) - { - DoCmdLoadL(aSection); - } - else if (aCommand == KCmdLoadAndCompress) - { - DoCmdLoadAndCompressL(aSection); - } - else if (aCommand == KCmdLockHeap) - { - DoCmdLockHeap(aSection); - } - else if (aCommand == KCmdLockHeapLC) - { - DoCmdLockHeapLC(aSection); - } - else if (aCommand == KCmdPaletteAttributes) - { - DoCmdPaletteAttributes(aSection); - } - else if (aCommand == KCmdReset) - { - DoCmdReset(); - } - else if (aCommand == KCmdResize) - { - DoCmdResize(aSection); - } - else if (aCommand == KCmdSave) - { - DoCmdSave(aSection); - } - else if (aCommand == KCmdScanLineLength) - { - DoCmdScanLineLength(aSection); - } - else if (aCommand == KCmdSetDisplayMode) - { - DoCmdSetDisplayMode(aSection); - } - else if (aCommand == KCmdSetPalette) - { - DoCmdSetPaletteL(aSection); - } - else if (aCommand == KCmdSetRomBitmapL) - { - DoCmdSetRomBitmapL(aSection); - } - else if (aCommand == KCmdSetScanLine) - { - DoCmdSetScanLineL(aSection); - } - else if (aCommand == KCmdSetSizeInTwips) - { - DoCmdSetSizeInTwipsL(aSection); - } - else if (aCommand == KCmdSizeInPixels) - { - DoCmdSizeInPixels(aSection); - } - else if (aCommand == KCmdSizeInTwips) - { - DoCmdSizeInTwips(aSection); - } - else if (aCommand == KCmdStoreL) - { - DoCmdStoreL(aSection); - } - else if (aCommand == KCmdSwapWidthAndHeight) - { - DoCmdSwapWidthAndHeight(); - } - else if (aCommand == KCmdUnlockHeap) - { - DoCmdUnlockHeapL(aSection); - } - else if (aCommand == KCmdVerticalPixelsToTwips) - { - DoCmdVerticalPixelsToTwips(aSection); - } - else if (aCommand == KCmdVerticalTwipsToPixels) - { - DoCmdVerticalTwipsToPixels(aSection); - } - else if (aCommand == KCmdDisown) - { - DisownObjectL(); - } - else - { - retVal=EFalse; - } - - return retVal; - } - - -/** Creates new CFbsBitmap class instance */ -void CT_DataFbsBitmap::DoCmdNewL() - { - INFO_PRINTF1(_L("Creates new CFbsBitmap class instance")); - - // cleanup if already created - DestroyData(); - iFbsBitmap=new (ELeave) CFbsBitmap(); - } - -/** Calls static CFbsBitmap destructor */ -void CT_DataFbsBitmap::DoCmdDestructor() - { - DestroyData(); - } - -/** Calls CFbsBitmap::Compress() */ -void CT_DataFbsBitmap::DoCmdCompress(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CFbsBitmap::Compress()")); - - TInt err=KErrNone; - TBitmapfileCompressionScheme compressionScheme; - if ( CT_GraphicsUtil::ReadBitmapfileCompressionScheme(*this, aSection, KBitmapfileCompressionScheme(), compressionScheme) ) - { - err=GetFbsBitmap()->Compress(compressionScheme); - } - else - { - // call Compress() - err=GetFbsBitmap()->Compress(); - } - // check error code - if ( err!=KErrNone ) - { - ERR_PRINTF2(_L("Compress error: %d"), err); - SetError(err); - iCompressFailed = ETrue; - } - else - { - iCompressFailed = EFalse; - }; - } - -/** Calls CFbsBitmap::CompressInBackground() */ -void CT_DataFbsBitmap::DoCmdCompressInBackground(const TDesC& aSection, const TInt aAsyncErrorIndex) - { - INFO_PRINTF1(_L("Calls CFbsBitmap::CompressInBackground()")); - - // get a flag if to use requset status from parameters - TBool useRequestStatus = EFalse; - GetBoolFromConfig(aSection, KUseRequestStatus(), useRequestStatus); - - TBitmapfileCompressionScheme compressionScheme; - TBool hasCompressionScheme=CT_GraphicsUtil::ReadBitmapfileCompressionScheme(*this, aSection, KBitmapfileCompressionScheme(), compressionScheme); - - // call CompressInBackground() - if ( useRequestStatus ) - { - if ( hasCompressionScheme ) - { - GetFbsBitmap()->CompressInBackground(iActiveCompressInBackground->iStatus, compressionScheme); - } - else - { - GetFbsBitmap()->CompressInBackground(iActiveCompressInBackground->iStatus); - } - iActiveCompressInBackground->Activate(aAsyncErrorIndex); - IncOutstanding(); - } - else - { - TInt err = KErrNone; - - if ( hasCompressionScheme ) - { - err=GetFbsBitmap()->CompressInBackground(compressionScheme); - } - else - { - err=GetFbsBitmap()->CompressInBackground(); - } - - // check error code - if ( err != KErrNone ) - { - ERR_PRINTF2(_L("Compress in background error: %d"), err); - SetError(err); - iCompressFailed = ETrue; - } - else - { - iCompressFailed = EFalse; - } - } - } - -/** Calls CFbsBitmap::Create() */ -void CT_DataFbsBitmap::DoCmdCreate(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CFbsBitmap::Create()")); - - // get size height from parameters - TInt height; - if(!GetIntFromConfig(aSection, KHeight(), height)) - { - ERR_PRINTF2(_L("No %S"), &KHeight()); - SetBlockResult(EFail); - } - - // get size width from parameters - TInt width; - if(!GetIntFromConfig(aSection, KWidth(), width)) - { - ERR_PRINTF2(_L("No %S"), &KWidth()); - SetBlockResult(EFail); - } - - // get display mode from parameters - - TDisplayMode displayMode; - if ( !CT_GraphicsUtil::ReadDisplayMode(*this, aSection, KDisplayMode(), displayMode) ) - { - ERR_PRINTF1(_L("No display mode")); - SetBlockResult(EFail); - } - else - { - // call Create() - TInt err = GetFbsBitmap()->Create(TSize(width, height), displayMode); - - // check error code - if (err != KErrNone) - { - ERR_PRINTF2(_L("Creation error: %d"), err); - SetError(err); - } - } - } - -/** Calls CFbsBitmap::CreateHardwareBitmap() */ -void CT_DataFbsBitmap::DoCmdCreateHardwareBitmap(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CFbsBitmap::CreateHardwareBitmap()")); - - // get size height from parameters - TInt height; - if(!GetIntFromConfig(aSection, KHeight(), height)) - { - ERR_PRINTF2(_L("No %S"), &KHeight()); - SetBlockResult(EFail); - } - - // get size width from parameters - TInt width; - if(!GetIntFromConfig(aSection, KWidth(), width)) - { - ERR_PRINTF2(_L("No %S"), &KWidth()); - SetBlockResult(EFail); - } - - // get display mode from parameters - TDisplayMode displayMode; - if ( !CT_GraphicsUtil::ReadDisplayMode(*this, aSection, KDisplayMode(), displayMode) ) - { - ERR_PRINTF1(_L("No display mode")); - SetBlockResult(EFail); - } - - // get application uid from parameters - TInt uidInt; - if(!GetIntFromConfig(aSection, KUid(), uidInt)) - { - ERR_PRINTF2(_L("No %S"), &KUid()); - SetBlockResult(EFail); - } - - // call Create() - TInt err = GetFbsBitmap()->CreateHardwareBitmap(TSize(width, height), displayMode, TUid::Uid(uidInt)); - - // check error code - if ( err != KErrNone ) - { - ERR_PRINTF2(_L("Hardware bitmap creation error: %d"), err); - SetError(err); - } - } - -/** Calls CFbsBitmap::DataAddress() locking and unlocking heap by defined in parameters means */ -void CT_DataFbsBitmap::DoCmdDataAddress(const TDesC& aSection) - { - // call DataAddress() - TUint32* address=GetFbsBitmap()->DataAddress(); - INFO_PRINTF2(_L("DataAddress %d"), address); - - // validate returned value if needed - TInt expectedValue; - if(GetIntFromConfig(aSection, KExpectedInt(), expectedValue)) - { - if (expectedValue != (TInt)address) - { - ERR_PRINTF1(_L("The returned value is not as expected")); - SetBlockResult(EFail); - } - } - } - -/** Calls CFbsBitmap::DataStride() */ -void CT_DataFbsBitmap::DoCmdDataStride(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CFbsBitmap::DataStride()")); - - // call DataStride() - TInt value = GetFbsBitmap()->DataStride(); - INFO_PRINTF2(_L("Data stride: %d"), value); - - // validate returned value if needed - TInt expectedValue; - if(GetIntFromConfig(aSection, KExpectedInt(), expectedValue)) - { - if (expectedValue != value) - { - ERR_PRINTF3(_L("The returned value is not as expected, expected: %d, actual: %d"), expectedValue, value); - SetBlockResult(EFail); - } - } - - // check the value is not NULL - if (value <= 0) - { - ERR_PRINTF2(_L("The data stride is not expected zero or less, value: %d"), value); - SetBlockResult(EFail); - } - } - -/** Checks CFbsBitmap::DisplayMode() value */ -void CT_DataFbsBitmap::DoCmdDisplayMode(const TDesC& aSection) - { - INFO_PRINTF1(_L("Checks CFbsBitmap::DisplayMode() value")); - - // call DisplayMode() - iDisplayMode=GetFbsBitmap()->DisplayMode(); - INFO_PRINTF2(_L("Display Mode %d"), iDisplayMode); - - // get display mode from parameters - TDisplayMode expectedValue; - if ( CT_GraphicsUtil::ReadDisplayMode(*this, aSection, KDisplayMode(), expectedValue) ) - { - // check value against NULL - if ( iDisplayMode!=expectedValue ) - { - ERR_PRINTF3(_L("The value is not as expected! expected: %d, actual: %d"), expectedValue, iDisplayMode); - SetBlockResult(EFail); - } - } - } - -/** Calls CFbsBitmap::Duplicate() */ -void CT_DataFbsBitmap::DoCmdDuplicateL(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CFbsBitmap::Duplicate()")); - TInt handle=GetHandle(); - TPtrC objectName; - if ( GetStringFromConfig(aSection, KFbsBitmapName(), objectName) ) - { - CDataWrapperBase* wrapper=static_cast(GetDataWrapperL(objectName)); - handle=wrapper->GetHandle(); - } - else - { - GetIntFromConfig(aSection, KHandle(), handle); - } - - // call Duplicate() - TInt err = GetFbsBitmap()->Duplicate(handle); - if (err != KErrNone) - { - ERR_PRINTF2(_L("Duplicate error: %d"), err); - SetError(err); - } - } - -/** Calls CFbsBitmap::ExternalizeL() */ -void CT_DataFbsBitmap::DoCmdExternalizeL(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CFbsBitmap::ExternalizeL()")); - ExternalizeImplL(aSection, TRect(), EFalse); - } - -/** Calls CFbsBitmap::ExternalizeRectangleL() */ -void CT_DataFbsBitmap::DoCmdExternalizeRectangleL(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CFbsBitmap::ExternalizeRectangleL()")); - - // get rectangle top left x-coordinate from parameters - TInt tlx; - if(!GetIntFromConfig(aSection, KRectTlX(), tlx)) - { - ERR_PRINTF2(_L("No %S"), &KRectTlX()); - SetBlockResult(EFail); - } - - // get rectangle top left x-coordinate from parameters - TInt tly; - if(!GetIntFromConfig(aSection, KRectTlY(), tly)) - { - ERR_PRINTF2(_L("No %S"), &KRectTlY()); - SetBlockResult(EFail); - } - - // get rectangle top left x-coordinate from parameters - TInt brx; - if(!GetIntFromConfig(aSection, KRectBrX(), brx)) - { - ERR_PRINTF2(_L("No %S"), &KRectBrX()); - SetBlockResult(EFail); - } - - // get rectangle top left x-coordinate from parameters - TInt bry; - if(!GetIntFromConfig(aSection, KRectBrY(), bry)) - { - ERR_PRINTF2(_L("No %S"), &KRectBrY()); - SetBlockResult(EFail); - } - - ExternalizeImplL(aSection, TRect(tlx, tly, brx, bry), ETrue); - } - -/** Calls CFbsBitmap::GetPalette() */ -void CT_DataFbsBitmap::DoCmdGetPaletteL(const TDesC& aSection) - { - // call GetPalette() - CPalette* palette = NULL; - TInt err = GetFbsBitmap()->GetPalette(palette); - INFO_PRINTF2(_L("Calls CFbsBitmap::GetPalette() %d"), palette); - - // check error code - if (err != KErrNone) - { - ERR_PRINTF2(_L("GetPalette error: %d"), err); - SetError(err); - } - else - { - // Verify palette - CPalette* expectedPalette = NULL; - - if ( CT_GraphicsUtil::GetPaletteL(*this, aSection, KPalette(), expectedPalette) ) - { - if ( palette != expectedPalette ) - { - ERR_PRINTF3(_L("GetPalette palette %d not the expected palette %d"), palette, expectedPalette); - SetBlockResult(EFail); - } - } - } - } - -/** Calls CFbsBitmap::GetPixel() */ -void CT_DataFbsBitmap::DoCmdGetPixel(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CFbsBitmap::GetPixel()")); - - // get point x-coordinate from parameters - TInt pointX; - if(!GetIntFromConfig(aSection, KPointX(), pointX)) - { - ERR_PRINTF2(_L("No %S"), &KPointX()); - SetBlockResult(EFail); - } - - // get point y-coordinate from parameters - TInt pointY; - if(!GetIntFromConfig(aSection, KPointY(), pointY)) - { - ERR_PRINTF2(_L("No %S"), &KPointY()); - SetBlockResult(EFail); - } - - // call GetPixel() - TRgb color; - GetFbsBitmap()->GetPixel(color, TPoint(pointX, pointY)); - - INFO_PRINTF2(_L("Red %d"), color.Red()); - INFO_PRINTF2(_L("Green %d"), color.Green()); - INFO_PRINTF2(_L("Blue %d"), color.Blue()); - - TInt actual; - TInt expected; - - if(GetIntFromConfig(aSection, KRed(), expected)) - { - actual=color.Red(); - if ( expected != actual ) - { - ERR_PRINTF3(_L("Expected Red %d does not match actual %d"), expected, actual); - SetBlockResult(EFail); - } - } - - if(GetIntFromConfig(aSection, KGreen(), expected)) - { - actual=color.Green(); - if ( expected != actual ) - { - ERR_PRINTF3(_L("Expected Green %d does not match actual %d"), expected, actual); - SetBlockResult(EFail); - } - } - - if(GetIntFromConfig(aSection, KBlue(), expected)) - { - actual=color.Blue(); - if ( expected != actual ) - { - ERR_PRINTF3(_L("Expected Blue %d does not match actual %d"), expected, actual); - SetBlockResult(EFail); - } - } - } - -/** Calls CFbsBitmap::GetScanLine() */ -void CT_DataFbsBitmap::DoCmdGetScanLineL(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CFbsBitmap::GetScanLine()")); - TBool dataOk=ETrue; - - // get point x coordinate from parameters - TInt pointX = 0; - if(!GetIntFromConfig(aSection, KPointX(), pointX)) - { - ERR_PRINTF2(_L("No %S"), &KPointX()); - SetBlockResult(EFail); - dataOk=EFalse; - } - - // get point y coordinate from parameters - TInt pointY = 0; - if(!GetIntFromConfig(aSection, KPointY(), pointY)) - { - ERR_PRINTF2(_L("No %S"), &KPointY()); - SetBlockResult(EFail); - dataOk=EFalse; - } - - // get length from parameters - TInt length = 0; - if(!GetIntFromConfig(aSection, KLength(), length)) - { - ERR_PRINTF2(_L("No %S"), &KLength()); - SetBlockResult(EFail); - dataOk=EFalse; - } - - // get buffer length from parameters - TInt buffLength = 0; - if(!GetIntFromConfig(aSection, KBuffLength(), buffLength)) - { - ERR_PRINTF2(_L("No %S"), &KBuffLength()); - SetBlockResult(EFail); - dataOk=EFalse; - } - - // get display mode from parameters - TDisplayMode displayMode; - if ( !CT_GraphicsUtil::ReadDisplayMode(*this, aSection, KDisplayMode(), displayMode) ) - { - ERR_PRINTF1(_L("No display mode")); - SetBlockResult(EFail); - dataOk=EFalse; - } - - if ( dataOk ) - { - // call GetScanLine() - TUint8* buffer = new (ELeave) TUint8[buffLength]; - TPtr8 scanline(buffer, buffLength, buffLength); - - GetFbsBitmap()->GetScanLine(scanline, TPoint(pointX, pointY), length, displayMode); - - delete [] buffer; - } - } - -/** Calls CFbsBitmap::GetVerticalScanLine() */ -void CT_DataFbsBitmap::DoCmdGetVerticalScanLineL(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CFbsBitmap::GetVerticalScanLine()")); - TBool dataOk=ETrue; - - // get point x coordinate from parameters - TInt pointX = 0; - if(!GetIntFromConfig(aSection, KPointX(), pointX)) - { - ERR_PRINTF2(_L("No %S"), &KPointX()); - SetBlockResult(EFail); - dataOk=EFalse; - } - - // get if to use dither offset flag from parameters - TBool useDitherOffset = EFalse; - if(!GetBoolFromConfig(aSection, KUseDitherOffset(), useDitherOffset)) - { - ERR_PRINTF2(_L("No %S"), &KUseDitherOffset()); - SetBlockResult(EFail); - dataOk=EFalse; - } - - // get dither offset x coordinate from parameters - TInt ditherOffsetX = 0; - if(useDitherOffset && !GetIntFromConfig(aSection, KDitherOffsetX(), ditherOffsetX)) - { - ERR_PRINTF2(_L("No %S"), &KDitherOffsetX()); - SetBlockResult(EFail); - dataOk=EFalse; - } - - // get dither offset y coordinate from parameters - TInt ditherOffsetY = 0; - if(useDitherOffset && !GetIntFromConfig(aSection, KDitherOffsetY(), ditherOffsetY)) - { - ERR_PRINTF2(_L("No %S"), &KDitherOffsetY()); - SetBlockResult(EFail); - dataOk=EFalse; - } - - // get buffer length from parameters - TInt buffLength = 0; - if(!GetIntFromConfig(aSection, KBuffLength(), buffLength)) - { - ERR_PRINTF2(_L("No %S"), &KBuffLength()); - SetBlockResult(EFail); - dataOk=EFalse; - } - - // get display mode from parameters - TDisplayMode displayMode; - if ( !CT_GraphicsUtil::ReadDisplayMode(*this, aSection, KDisplayMode(), displayMode) ) - { - ERR_PRINTF1(_L("No display mode")); - SetBlockResult(EFail); - dataOk=EFalse; - } - - if ( dataOk ) - { - // call GetVerticalScanLine() - TUint8* buffer = new (ELeave) TUint8[buffLength]; - TPtr8 scanline(buffer, buffLength, buffLength); - - if (useDitherOffset) - { - GetFbsBitmap()->GetVerticalScanLine(scanline, pointX, displayMode); - } - else - { - GetFbsBitmap()->GetVerticalScanLine(scanline, pointX, TPoint(ditherOffsetX, ditherOffsetY), displayMode); - } - - delete [] buffer; - } - } - -/** Calls CFbsBitmap::Handle() */ -void CT_DataFbsBitmap::DoCmdHandle(const TDesC& aSection) - { - - // call Handle() - TInt handle=GetFbsBitmap()->Handle(); - INFO_PRINTF2(_L("Calls CFbsBitmap::Handle() %d"), handle); - SetHandle(handle); - - // validate returned value if needed - TInt expectedValue; - if(GetIntFromConfig(aSection, KExpectedInt(), expectedValue)) - { - if (expectedValue != handle) - { - ERR_PRINTF3(_L("The returned value is not as expected, expected: %d, actual: %d"), expectedValue, handle); - SetBlockResult(EFail); - } - } - } - -/** Checks CFbsBitmap::HardwareBitmapHandle() */ -void CT_DataFbsBitmap::DoCmdHardwareBitmapHandle(const TDesC& aSection) - { - // call HardwareBitmapHandle() - TInt handle=GetFbsBitmap()->HardwareBitmapHandle(); - INFO_PRINTF2(_L("CFbsBitmap::HardwareBitmapHandle() %d"), handle); - SetHandle(handle); - - // get if null expected flag from parameters - TBool nullExpected = EFalse; - if ( GetBoolFromConfig(aSection, KNullExpected(), nullExpected) ) - { - // check value againts NULL - if ( (handle == NULL) != nullExpected ) - { - ERR_PRINTF2(_L("The value is not as expected! value: %d"), handle); - SetBlockResult(EFail); - } - } - } - -/** Calls CFbsBitmap::Header() */ -void CT_DataFbsBitmap::DoCmdHeader() - { - INFO_PRINTF1(_L("Calls CFbsBitmap::Header()")); - - // call Header() - SEpocBitmapHeader header=GetFbsBitmap()->Header(); - INFO_PRINTF2(_L("Header iBitmapSize &d"), header.iBitmapSize); - INFO_PRINTF2(_L("Header iBitsPerPixel &d"), header.iBitsPerPixel); - INFO_PRINTF2(_L("Header iColor &d"), header.iColor); - INFO_PRINTF2(_L("Header iCompression &d"), header.iCompression); - INFO_PRINTF2(_L("Header iPaletteEntries &d"), header.iPaletteEntries); - INFO_PRINTF3(_L("Header iSizeInPixels &d %d"), header.iSizeInPixels.iWidth, header.iSizeInPixels.iHeight); - INFO_PRINTF3(_L("Header iSizeInTwips &d %d"), header.iSizeInTwips.iWidth, header.iSizeInTwips.iHeight); - INFO_PRINTF2(_L("Header iStructSize &d"), header.iStructSize); - } - -/** Calls CFbsBitmap::HorizontalPixelsToTwips() */ -void CT_DataFbsBitmap::DoCmdHorizontalPixelsToTwips(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CFbsBitmap::HorizontalPixelsToTwips()")); - - // get pixels from parameters - TInt pixels; - if(!GetIntFromConfig(aSection, KPixels(), pixels)) - { - ERR_PRINTF2(_L("No %S"), &KPixels()); - SetBlockResult(EFail); - } - - // call HorizontalPixelsToTwips() - TInt value = GetFbsBitmap()->HorizontalPixelsToTwips(pixels); - INFO_PRINTF2(_L("Twips: %d"), value); - - // validate returned value if needed - TInt expectedValue; - if(GetIntFromConfig(aSection, KExpectedInt(), expectedValue)) - { - if (expectedValue != value) - { - ERR_PRINTF3(_L("The returned value is not as expected, expected: %d, actual: %d"), expectedValue, value); - SetBlockResult(EFail); - } - } - } - -/** Calls CFbsBitmap::HorizontalTwipsToPixels() */ -void CT_DataFbsBitmap::DoCmdHorizontalTwipsToPixels(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CFbsBitmap::HorizontalTwipsToPixels()")); - - // get twips from parameters - TInt twips; - if(!GetIntFromConfig(aSection, KTwips(), twips)) - { - ERR_PRINTF2(_L("No %S"), &KTwips()); - SetBlockResult(EFail); - } - - // call HorizontalTwipsToPixels() - TInt value = GetFbsBitmap()->HorizontalTwipsToPixels(twips); - INFO_PRINTF2(_L("Pixels: %d"), value); - - // validate returned value if needed - TInt expectedValue; - if(GetIntFromConfig(aSection, KExpectedInt(), expectedValue)) - { - if (expectedValue != value) - { - ERR_PRINTF3(_L("The returned value is not as expected, expected: %d, actual: %d"), expectedValue, value); - SetBlockResult(EFail); - } - } - } - -/** Checks CFbsBitmap::InitialDisplayMode() value */ -void CT_DataFbsBitmap::DoCmdInitialDisplayMode(const TDesC& aSection) - { - INFO_PRINTF1(_L("Checks CFbsBitmap::InitialDisplayMode() value")); - - // call InitialDisplayMode() - TInt actualValue = GetFbsBitmap()->InitialDisplayMode(); - INFO_PRINTF2(_L("Initial Display Mode %d"), actualValue); - - // get display mode from parameters - TDisplayMode expectedValue; - if ( CT_GraphicsUtil::ReadDisplayMode(*this, aSection, KDisplayMode(), expectedValue) ) - { - // check value againts NULL - if (actualValue != expectedValue) - { - ERR_PRINTF3(_L("The value is not as expected! expecyed: %d, actual: %d"), expectedValue, actualValue); - SetBlockResult(EFail); - } - } - } - -/** Calls CFbsBitmap::InternalizeL() */ -void CT_DataFbsBitmap::DoCmdInternalizeL(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CFbsBitmap::InternalizeL()")); - - // get file name from parameters - TPtrC fileName; - if (!GetStringFromConfig(aSection, KFileName(), fileName)) - { - ERR_PRINTF2(_L("No %S"), &KFileName()); - SetBlockResult(EFail); - } - - // get a flag if to use closed stream from parameters - TBool useClosedStream = EFalse; - if(!GetBoolFromConfig(aSection, KUseClosedStream(), useClosedStream)) - { - ERR_PRINTF2(_L("No %S"), &KUseClosedStream()); - SetBlockResult(EFail); - } - - // ReadStore creation - CDirectFileStore* readstore = CDirectFileStore::OpenL(FileServer(), fileName, EFileStream | EFileRead); - CleanupStack::PushL(readstore); - TInt popCount=1; - TStreamId headerid = readstore->Root(); - RStoreReadStream readstrm; - - // close stream if defined by parameters - if (!useClosedStream) - { - readstrm.OpenL(*readstore, headerid); - CleanupClosePushL(readstrm); - popCount=2; - } - - // call InternalizeL() - TRAPD(err, GetFbsBitmap()->InternalizeL(readstrm)); - if (err != KErrNone) - { - ERR_PRINTF2(_L("Internalize error: %d"), err); - SetError(err); - } - - // cleanup - CleanupStack::PopAndDestroy(popCount, readstore); - } - -/** Calls CFbsBitmap::IsCompressedInRAM() to check againt expected value */ -void CT_DataFbsBitmap::DoCmdIsCompressedInRAM(const TDesC& aSection) - { - // call IsCompressedInRAM() to get actual value - TBool actualValue = GetFbsBitmap()->IsCompressedInRAM(); - INFO_PRINTF2(_L("CFbsBitmap::IsCompressedInRAM() %d"), actualValue); - - // get expected value from parameters - TBool expectedValue = EFalse; - if ( GetBoolFromConfig(aSection, KExpectedBool(), expectedValue) ) - { - if (actualValue != expectedValue) - { - ERR_PRINTF3(_L("Expected value doesn't match to actual! expected: %d, actual: %d"), expectedValue, actualValue); - if (!iCompressFailed) - { - SetBlockResult(EFail); - }; - } - } - } - -/** Calls CFbsBitmap::IsFileInRom() and check against expectation */ -void CT_DataFbsBitmap::DoCmdIsFileInRom(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CFbsBitmap::IsFileInRom() and check against expectation")); - - // get file name from parameters - - TPtrC fileName; - if ( !GetStringFromConfig(aSection, KFileName(), fileName) ) - { - ERR_PRINTF2(_L("No %S"), &KFileName()); - SetBlockResult(EFail); - } - - // get flag if use RFile instance in Save() call from parameters - TBool useRFile = EFalse; - GetBoolFromConfig(aSection, KUseRFile(), useRFile); - - TInt err = KErrNone; - TBool isFileInRom = EFalse; - TUint32* addressInRom = NULL; - if (useRFile) - { - // open rfile - RFile file; - err = file.Open(FileServer(), fileName, EFileShareReadersOnly); - - // check if failed to open file - if ( err != KErrNone ) - { - ERR_PRINTF2(_L("File open error: %d"), err); - SetBlockResult(EFail); - } - else - { - // call IsFileInRom() - isFileInRom = CFbsBitmap::IsFileInRom(file, addressInRom); - - // close rfile - file.Close(); - } - } - else - { - isFileInRom = CFbsBitmap::IsFileInRom(fileName, addressInRom); - } - - // get expected value if is in ROM from parameters - TBool expectedIsFileInRom = EFalse; - if ( GetBoolFromConfig(aSection, KExpectedBool(), expectedIsFileInRom) ) - { - // check the expectation - if (expectedIsFileInRom != isFileInRom) - { - ERR_PRINTF3(_L("The value is not as expected! expected: %d, actual: %d"), expectedIsFileInRom, isFileInRom); - SetBlockResult(EFail); - } - } - - // check that address is not null if in rom - if ( isFileInRom && addressInRom == NULL ) - { - ERR_PRINTF1(_L("The file is in ROM but returned address is NULL")); - SetBlockResult(EFail); - } - } - -/** Calls CFbsBitmap::IsLargeBitmap() */ -void CT_DataFbsBitmap::DoCmdIsLargeBitmap(const TDesC& aSection) - { - // call IsLargeBitmap() - TBool value = GetFbsBitmap()->IsLargeBitmap(); - INFO_PRINTF2(_L("Is large bitmap: %d"), value); - - // validate returned value if needed - TBool expectedBool; - if(GetIntFromConfig(aSection, KExpectedBool(), expectedBool)) - { - if (expectedBool != value) - { - ERR_PRINTF3(_L("The returned value is not as expected, expected: %d, actual: %d"), expectedBool, value); - SetBlockResult(EFail); - } - } - } - -/** Calls CFbsBitmap::IsMonochrome() */ -void CT_DataFbsBitmap::DoCmdIsMonochrome(const TDesC& aSection) - { - - // call IsMonochrome() - TBool value = GetFbsBitmap()->IsMonochrome(); - INFO_PRINTF2(_L("Is monochrome: %d"), value); - - // validate returned value if needed - TBool expectedBool; - if(GetIntFromConfig(aSection, KExpectedBool(), expectedBool)) - { - if (expectedBool != value) - { - ERR_PRINTF3(_L("The returned value is not as expected, expected: %d, actual: %d"), expectedBool, value); - SetBlockResult(EFail); - } - } - } - -/** Calls CFbsBitmap::IsRomBitmap() and check against expectation */ -void CT_DataFbsBitmap::DoCmdIsRomBitmap(const TDesC& aSection) - { - // call IsRomBitmap() - TBool actualValue = GetFbsBitmap()->IsRomBitmap(); - INFO_PRINTF2(_L("CFbsBitmap::IsRomBitmap() %d"), actualValue); - - // get expected value if is in ROM from parameters - TBool expectedIsRomBitmap = EFalse; - if ( GetBoolFromConfig(aSection, KExpectedBool(), expectedIsRomBitmap) ) - { - // check the expectation - if (expectedIsRomBitmap != actualValue) - { - ERR_PRINTF3(_L("The value is not as expected! expected: %d, actual: %d"), expectedIsRomBitmap, actualValue); - SetBlockResult(EFail); - } - } - } - -/** CFbsBitmap::Load() Call */ -void CT_DataFbsBitmap::DoCmdLoadL(const TDesC& aSection) - { - INFO_PRINTF1(_L("CFbsBitmap::Load() Call")); - LoadOrLoadAndCompressL(aSection, EFalse); - } - -/** CFbsBitmap::LoadAndCompress() Call */ -void CT_DataFbsBitmap::DoCmdLoadAndCompressL(const TDesC& aSection) - { - INFO_PRINTF1(_L("CFbsBitmap::LoadAndCompress() Call")); - LoadOrLoadAndCompressL(aSection, ETrue); - } - -/** Calls static CFbsBitmap destructor */ -void CT_DataFbsBitmap::DoCmdLockHeap(const TDesC& aSection) - { - TBool always=EFalse; - GetBoolFromConfig(aSection, KAlways(), always); - GetFbsBitmap()->LockHeap(always); - } - -/** Calls static CFbsBitmap destructor */ -void CT_DataFbsBitmap::DoCmdLockHeapLC(const TDesC& aSection) - { - TBool always=EFalse; - GetBoolFromConfig(aSection, KAlways(), always); - - GetFbsBitmap()->LockHeapLC(always); - iPopWhenUnlocking=ETrue; - } - -/** Calls CFbsBitmap::PaletteAttributes() */ -void CT_DataFbsBitmap::DoCmdPaletteAttributes(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CFbsBitmap::PaletteAttributes()")); - - // call PaletteAttributes() - TBool modifiable; - TInt entries; - GetFbsBitmap()->PaletteAttributes(modifiable, entries); - - INFO_PRINTF3(_L("Modifiable: %d, Number of entries: %d"), modifiable, entries); - - // validate returned value if needed - TBool expectedModifiable; - if(GetBoolFromConfig(aSection, KModifiable(), expectedModifiable)) - { - if (expectedModifiable != modifiable) - { - ERR_PRINTF3(_L("The returned modifaiable value is not as expected, expected: %d, actual: %d"), expectedModifiable, modifiable); - SetBlockResult(EFail); - } - } - - // validate returned value if needed - TBool expectedEntries; - if(GetIntFromConfig(aSection, KEntries(), expectedEntries)) - { - if (expectedEntries != entries) - { - ERR_PRINTF3(_L("The returned modifaiable value is not as expected, expected: %d, actual: %d"), expectedEntries, entries); - SetBlockResult(EFail); - } - } - } - -/** Calls CFbsBitmap::Reset() */ -void CT_DataFbsBitmap::DoCmdReset() - { - INFO_PRINTF1(_L("Calls CFbsBitmap::Reset()")); - - // call Reset() - GetFbsBitmap()->Reset(); - } - -/** Calls CFbsBitmap::Resize() */ -void CT_DataFbsBitmap::DoCmdResize(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CFbsBitmap::Resize()")); - - // get size height from parameters - TInt height; - if(!GetIntFromConfig(aSection, KHeight(), height)) - { - ERR_PRINTF2(_L("No %S"), &KHeight()); - SetBlockResult(EFail); - } - - // get size width from parameters - TInt width; - if(!GetIntFromConfig(aSection, KWidth(), width)) - { - ERR_PRINTF2(_L("No %S"), &KWidth()); - SetBlockResult(EFail); - } - - // call Resize() - TInt err = GetFbsBitmap()->Resize(TSize(width, height)); - - // check error code - if (err != KErrNone) - { - ERR_PRINTF2(_L("Resize error: %d"), err); - SetError(err); - } - } - -/** Calls CFbsBitmap::Save() */ -void CT_DataFbsBitmap::DoCmdSave(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CFbsBitmap::Save()")); - - // get file name from parameters - TPtrC fileName; - if (!GetStringFromConfig(aSection, KFileName(), fileName)) - { - ERR_PRINTF2(_L("No %S"), &KFileName()); - SetBlockResult(EFail); - } - - // get flag if use RFile instance in Save() call from parameters - TBool useRFile = EFalse; - if(!GetBoolFromConfig(aSection, KUseRFile(), useRFile)) - { - ERR_PRINTF2(_L("No %S"), &KUseRFile()); - SetBlockResult(EFail); - } - - // get flag if use RFile instance in Load() call from parameters - TBool useClosedRFile = EFalse; - if(GetBoolFromConfig(aSection, KUseClosedRFile(), useClosedRFile)) - { - if (useClosedRFile && !useRFile) - { - ERR_PRINTF3(_L("Cannot use %S parameter if %S is not set to TRUE"), &KUseClosedRFile(), &KUseRFile()); - SetBlockResult(EFail); - } - } - - TInt err = KErrNone; - if (useRFile) - { - // required to allow file handle to be adopted by another process - FileServer().ShareProtected(); - - // open or create rfile - RFile file; - - if (!useClosedRFile) - { - err = file.Open(FileServer(), fileName, EFileWrite); - - if (err == KErrNotFound) - { - err = file.Create(FileServer(), fileName, EFileWrite); - - // check if failed to create file - if (err != KErrNone) - { - ERR_PRINTF2(_L("File create error: %d"), err); - SetBlockResult(EFail); - } - } - else if (err != KErrNone) - { - // if failed to open file - ERR_PRINTF2(_L("File open error: %d"), err); - SetBlockResult(EFail); - } - } - - // call Save() - err = GetFbsBitmap()->Save(file); - - // close rfile - file.Close(); - } - else - { - err = GetFbsBitmap()->Save(fileName); - } - - // check error code - if (err != KErrNone) - { - ERR_PRINTF2(_L("Save error: %d"), err); - SetError(err); - } - } - -/** Calls CFbsBitmap::ScanLineLength() */ -void CT_DataFbsBitmap::DoCmdScanLineLength(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CFbsBitmap::ScanLineLength()")); - - // get length from parameters - TInt length = 0; - if(!GetIntFromConfig(aSection, KLength(), length)) - { - ERR_PRINTF2(_L("No %S"), &KLength()); - SetBlockResult(EFail); - } - - // get display mode from parameters - TDisplayMode displayMode; - if ( !CT_GraphicsUtil::ReadDisplayMode(*this, aSection, KDisplayMode(), displayMode) ) - { - ERR_PRINTF1(_L("No display mode")); - SetBlockResult(EFail); - } - else - { - TInt actualValue = CFbsBitmap::ScanLineLength(length, displayMode); - INFO_PRINTF2(_L("CFbsBitmap::ScanLineLength() %d"), actualValue); - - TInt expectedValue = 0; - if ( GetIntFromConfig(aSection, KExpectedInt(), expectedValue) ) - { - if (actualValue != expectedValue) - { - ERR_PRINTF3(_L("Expected value doesn't match to actual! expected: %d, actual: %d"), expectedValue, actualValue); - SetBlockResult(EFail); - } - } - } - } - -/** Calls CFbsBitmap::SetDisplayMode() */ -void CT_DataFbsBitmap::DoCmdSetDisplayMode(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CFbsBitmap::SetDisplayMode()")); - - // get display mode from parameters - TDisplayMode displayMode; - if ( !CT_GraphicsUtil::ReadDisplayMode(*this, aSection, KDisplayMode(), displayMode) ) - { - ERR_PRINTF1(_L("No display mode")); - SetBlockResult(EFail); - } - else - { - // call SetDisplayMode() - TInt err = GetFbsBitmap()->SetDisplayMode(displayMode); - - // check error code - if (err != KErrNone) - { - ERR_PRINTF2(_L("Set display mode error: %d"), err); - SetError(err); - } - } - } - -/** Calls CFbsBitmap::SetPalette() by previously created palette */ -void CT_DataFbsBitmap::DoCmdSetPaletteL(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CFbsBitmap::SetPalette() by previously created palette")); - - // get CPalette object passed as a parameter - CPalette* palette = NULL; - - CT_GraphicsUtil::GetPaletteL(*this, aSection, KPalette(), palette); - - // call SetPalette() - GetFbsBitmap()->SetPalette(palette); - } - -/** Calls CFbsBitmap::SetRomBitmapL() by another bitmap */ -void CT_DataFbsBitmap::DoCmdSetRomBitmapL(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CFbsBitmap::SetRomBitmapL() by another bitmap")); - - // get fbsBitmap passed as a parameter - CFbsBitmap* otherFbsBitmap=NULL; - - CT_GraphicsUtil::GetFbsBitmapL(*this, aSection, KFbsBitmapName(), otherFbsBitmap); - - // get romPointer. If the bitmap is ROM bitmap then Handle() returns ROM pointer - CBitwiseBitmap* bitmapRomAddress=NULL; - if ( otherFbsBitmap!=NULL ) - { - bitmapRomAddress=REINTERPRET_CAST(CBitwiseBitmap*, otherFbsBitmap->Handle()); - } - - // call SetRomBitmapL() - TInt bitmapSizeInBytes=0; - TRAPD(err, GetFbsBitmap()->SetRomBitmapL(bitmapRomAddress, bitmapSizeInBytes)); - - // check error code - if (err != KErrNone) - { - ERR_PRINTF2(_L("Set ROM bitmap error: %d"), err); - SetError(err); - } - } - -/** Calls CFbsBitmap::SetScanLine() */ -void CT_DataFbsBitmap::DoCmdSetScanLineL(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CFbsBitmap::SetScanLine()")); - - // get scanline coordinate from parameters - TInt coordinate = 0; - if(!GetIntFromConfig(aSection, KScanLineCoord(), coordinate)) - { - ERR_PRINTF2(_L("No %S"), &KScanLineCoord()); - SetBlockResult(EFail); - } - - // get file name from parameters - TPtrC fileName; - if (!GetStringFromConfig(aSection, KFileName(), fileName)) - { - ERR_PRINTF2(_L("No %S"), &KFileName()); - SetBlockResult(EFail); - } - - // open file - RFile file; - User::LeaveIfError(file.Open(FileServer(), fileName, EFileRead | EFileShareAny)); - CleanupClosePushL(file); - - // get size - TInt size = 0; - User::LeaveIfError(file.Size(size)); - - // read file - HBufC8* fileDataBuff = HBufC8::NewLC(size); - TPtr8 fileData = fileDataBuff->Des(); - - User::LeaveIfError(file.Read(fileData)); - - GetFbsBitmap()->SetScanLine(fileData, coordinate); - - CleanupStack::PopAndDestroy(2, &file); // fileDataBuff, file - } - -/** Calls CFbsBitmap::SetSizeInTwips() by size parameter */ -void CT_DataFbsBitmap::DoCmdSetSizeInTwipsL(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CFbsBitmap::SetSizeInTwips()")); - - // get if to NULL device pointer flag from parameters - TPtrC device; - if ( GetStringFromConfig(aSection, KDevice(), device) ) - { - CFbsBitmapDevice* bitmapDevice=static_cast(GetDataObjectL(device)); - GetFbsBitmap()->SetSizeInTwips(bitmapDevice); - } - else - { - // get size height from parameters - TInt height; - if(!GetIntFromConfig(aSection, KHeight(), height)) - { - ERR_PRINTF2(_L("No %S"), &KHeight()); - SetBlockResult(EFail); - } - - // get size width from parameters - TInt width; - if(!GetIntFromConfig(aSection, KWidth(), width)) - { - ERR_PRINTF2(_L("No %S"), &KWidth()); - SetBlockResult(EFail); - } - - // call SetSizeInTwips() - GetFbsBitmap()->SetSizeInTwips(TSize(width, height)); - } - } - -/** Calls CFbsBitmap::SizeInPixels() and checks the size */ -void CT_DataFbsBitmap::DoCmdSizeInPixels(const TDesC& aSection) - { - // call SizeInTwips() - TSize actualSize = GetFbsBitmap()->SizeInPixels(); - INFO_PRINTF3(_L("CFbsBitmap::SizeInPixels() height %d, width %d"), actualSize.iHeight, actualSize.iWidth); - - // get size height from parameters - TInt height; - if ( GetIntFromConfig(aSection, KHeight(), height) ) - { - if ( actualSize.iHeight != height ) - { - ERR_PRINTF3(_L("Height mismatch expected: %d, actual: %d"), height, actualSize.iHeight); - SetBlockResult(EFail); - } - } - - // get size width from parameters - TInt width; - if ( GetIntFromConfig(aSection, KWidth(), width) ) - { - // check that value is as expected - if ( actualSize.iWidth != width ) - { - ERR_PRINTF3(_L("Width mismatch expected: %d, actual: %d"), width, actualSize.iWidth); - SetBlockResult(EFail); - } - } - } - -/** Calls CFbsBitmap::SizeInTwips() and compares the result with expected */ -void CT_DataFbsBitmap::DoCmdSizeInTwips(const TDesC& aSection) - { - // call SizeInTwips() - TSize actualSize = GetFbsBitmap()->SizeInTwips(); - INFO_PRINTF3(_L("CFbsBitmap::SizeInTwips() height %d, width %d"), actualSize.iHeight, actualSize.iWidth); - - // get size height from parameters - TInt height; - if ( GetIntFromConfig(aSection, KHeight(), height) ) - { - if ( actualSize.iHeight != height ) - { - ERR_PRINTF3(_L("Height mismatch expected: %d, actual: %d"), height, actualSize.iHeight); - SetBlockResult(EFail); - } - } - - // get size width from parameters - TInt width; - if ( GetIntFromConfig(aSection, KWidth(), width) ) - { - // check that value is as expected - if ( actualSize.iWidth != width ) - { - ERR_PRINTF3(_L("Width mismatch expected: %d, actual: %d"), width, actualSize.iWidth); - SetBlockResult(EFail); - } - } - } - -/** Calls CFbsBitmap::StoreL() */ -void CT_DataFbsBitmap::DoCmdStoreL(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CFbsBitmap::StoreL()")); - - TInt numberOfFiles = 0; - TInt numberOfBitmapIds = 0; - TPtrC sourceFileName1; - TPtrC sourceFileName2; - TInt sourceBitmapId0 = -1; - TInt sourceBitmapId1 = -1; - TInt sourceBitmapId2 = -1; - - // get file name from parameters - TPtrC fileName; - if (!GetStringFromConfig(aSection, KFileName(), fileName)) - { - ERR_PRINTF2(_L("No %S"), &KFileName()); - SetBlockResult(EFail); - } - - // get flag if use RFile instance in Save() call from parameters - TBool useRFile = EFalse; - if(!GetBoolFromConfig(aSection, KUseRFile(), useRFile)) - { - ERR_PRINTF2(_L("No %S"), &KUseRFile()); - SetBlockResult(EFail); - } - - // get flag if use RFile instance in Load() call from parameters - TBool useClosedRFile = EFalse; - if(GetBoolFromConfig(aSection, KUseClosedRFile(), useClosedRFile)) - { - if (useClosedRFile && !useRFile) - { - ERR_PRINTF3(_L("Cannot use %S parameter if %S is not set to TRUE"), &KUseClosedRFile(), &KUseRFile()); - SetBlockResult(EFail); - } - } - - // get up to 3 source file names from parameters - TPtrC sourceFileName0; - if (GetStringFromConfig(aSection, KSourceFileName0(), sourceFileName0)) - { - numberOfFiles++; - if (GetStringFromConfig(aSection, KSourceFileName1(), sourceFileName1)) - { - numberOfFiles++; - if (GetStringFromConfig(aSection, KSourceFileName2(), sourceFileName2)) - { - numberOfFiles++; - } - } - } - - // get up to 3 source bitmap ids from parameters - if (GetIntFromConfig(aSection, KSourceBitmapId0(), sourceBitmapId0)) - { - numberOfBitmapIds++; - if (GetIntFromConfig(aSection, KSourceBitmapId1(), sourceBitmapId1)) - { - numberOfBitmapIds++; - if (GetIntFromConfig(aSection, KSourceBitmapId2(), sourceBitmapId2)) - { - numberOfBitmapIds++; - } - } - } - - // get number of sources argument from parameters - TInt numberOfSources; - if(!GetIntFromConfig(aSection, KNumberOfSources(), numberOfSources)) - { - ERR_PRINTF2(_L("No %S"), &KNumberOfSources()); - SetBlockResult(EFail); - } - - // create array of file names - TFileName** sourceFiles = new (ELeave) TFileName*[numberOfFiles]; - CleanupStack::PushL(sourceFiles); - if (numberOfFiles > 0) sourceFiles[0] = new (ELeave) TFileName(sourceFileName0); - if (numberOfFiles > 1) sourceFiles[1] = new (ELeave) TFileName(sourceFileName1); - if (numberOfFiles > 2) sourceFiles[2] = new (ELeave) TFileName(sourceFileName2); - - // create array of bitmap ids - TInt32* bitmapIds = new (ELeave) TInt32[numberOfBitmapIds]; - CleanupStack::PushL(bitmapIds); - - if (numberOfBitmapIds > 0) bitmapIds[0] = sourceBitmapId0; - if (numberOfBitmapIds > 1) bitmapIds[1] = sourceBitmapId1; - if (numberOfBitmapIds > 2) bitmapIds[2] = sourceBitmapId2; - - TInt err = KErrNone; - if (useRFile) - { - // required to allow file handle to be adopted by another process - FileServer().ShareProtected(); - - // open rfile - TBool openSuccess = EFalse; - - RFile file; - err = file.Open(FileServer(), fileName, EFileWrite); - - // check if ok, if not fount => try to create new file - if (err == KErrNone) - { - openSuccess = ETrue; - } - else if (err == KErrNotFound) - { - INFO_PRINTF1(_L("File doesn't exist, trying to create it.")); - - err = file.Create(FileServer(), fileName, EFileWrite); - - // check if failed to create file - if (err == KErrNone) - { - openSuccess = ETrue; - } - else - { - ERR_PRINTF2(_L("File create error: %d"), err); - SetBlockResult(EFail); - } - } - else - { - ERR_PRINTF2(_L("File open error: %d"), err); - SetBlockResult(EFail); - } - - // if ok => do store - if (openSuccess) - { - // if we use invalid RFile handle in our test - if (useClosedRFile) - { - file.Close(); - } - - // call StoreL() - TRAP(err, CFbsBitmap::StoreL(file, numberOfSources, (const TDesC**) sourceFiles, bitmapIds)); - - // check error code - if (err != KErrNone) - { - ERR_PRINTF2(_L("Store error: %d"), err); - SetError(err); - } - - // close rfile - file.Close(); - } - } - else - { - // call StoreL() - TRAP(err, CFbsBitmap::StoreL(fileName, numberOfSources, (const TDesC**) sourceFiles, bitmapIds)); - - // check error code - if (err != KErrNone) - { - ERR_PRINTF2(_L("Store error: %d"), err); - SetError(err); - } - } - - // Iterate over the file name pointer array and cleanup - for (TInt i = 0; i < numberOfFiles; ++i) - { - delete sourceFiles[i]; - } - - // Cleanup the arrays allocated on the heap - CleanupStack::PopAndDestroy(2, sourceFiles); - } - -/** Calls CFbsBitmap::SwapWidthAndHeight() */ -void CT_DataFbsBitmap::DoCmdSwapWidthAndHeight() - { - INFO_PRINTF1(_L("Calls CFbsBitmap::SwapWidthAndHeight()")); - - // call SwapWidthAndHeight() - TInt err = GetFbsBitmap()->SwapWidthAndHeight(); - - // check error code - if (err != KErrNone) - { - ERR_PRINTF2(_L("Swap width and height error: %d"), err); - SetError(err); - } - } - -/** Calls static CFbsBitmap destructor */ -void CT_DataFbsBitmap::DoCmdUnlockHeapL(const TDesC& aSection) - { - - CFbsBitmap* bitmap=NULL; - if ( CT_GraphicsUtil::GetFbsBitmapL(*this, aSection, KFbsBitmapName(), bitmap) ) - { - CFbsBitmap::UnlockHeap(bitmap); - } - else - { - TBool always=EFalse; - GetBoolFromConfig(aSection, KAlways(), always); - - GetFbsBitmap()->UnlockHeap(always); - } - - if ( iPopWhenUnlocking ) - { - iPopWhenUnlocking=EFalse; - CleanupStack::Pop(); - } - } - -/** Calls CFbsBitmap::VerticalPixelsToTwips() */ -void CT_DataFbsBitmap::DoCmdVerticalPixelsToTwips(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CFbsBitmap::VerticalPixelsToTwips()")); - - // get pixels from parameters - TInt pixels; - if(!GetIntFromConfig(aSection, KPixels(), pixels)) - { - ERR_PRINTF2(_L("No %S"), &KPixels()); - SetBlockResult(EFail); - } - - // call VerticalPixelsToTwips() - TInt value = GetFbsBitmap()->VerticalPixelsToTwips(pixels); - INFO_PRINTF2(_L("Twips: %d"), value); - - // validate returned value if needed - TInt expectedValue; - if(GetIntFromConfig(aSection, KExpectedInt(), expectedValue)) - { - if (expectedValue != value) - { - ERR_PRINTF3(_L("The returned value is not as expected, expected: %d, actual: %d"), expectedValue, value); - SetBlockResult(EFail); - } - } - } - -/** Calls CFbsBitmap::VerticalTwipsToPixels() */ -void CT_DataFbsBitmap::DoCmdVerticalTwipsToPixels(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CFbsBitmap::VerticalTwipsToPixels()")); - - // get twips from parameters - TInt twips; - if(!GetIntFromConfig(aSection, KTwips(), twips)) - { - ERR_PRINTF2(_L("No %S"), &KTwips()); - SetBlockResult(EFail); - } - - // call VerticalTwipsToPixels() - TInt value = GetFbsBitmap()->VerticalTwipsToPixels(twips); - INFO_PRINTF2(_L("Pixels: %d"), value); - - // validate returned value if needed - TInt expectedValue; - if(GetIntFromConfig(aSection, KExpectedInt(), expectedValue)) - { - if (expectedValue != value) - { - ERR_PRINTF3(_L("The returned value is not as expected, expected: %d, actual: %d"), expectedValue, value); - SetBlockResult(EFail); - } - } - } - -/** Calls CFbsBitmap::ExternalizeL() or CFbsBitmap::ExternalizeRectangleL(). Used by DoCmdExternalize() and DoCmdExternalizeRectangle() methods */ -void CT_DataFbsBitmap::ExternalizeImplL(const TDesC& aSection, const TRect& aRect, TBool aUseRect) - { - // get file name from parameters - TPtrC fileName; - if (!GetStringFromConfig(aSection, KFileName(), fileName)) - { - ERR_PRINTF2(_L("No %S"), &KFileName()); - SetBlockResult(EFail); - } - - // get a flag if to use closed stream from parameters - TBool useClosedStream = EFalse; - if(!GetBoolFromConfig(aSection, KUseClosedStream(), useClosedStream)) - { - ERR_PRINTF2(_L("No %S"), &KUseClosedStream()); - SetBlockResult(EFail); - } - - // create write store - CDirectFileStore* writestore = CDirectFileStore::ReplaceL(FileServer(), fileName, EFileStream | EFileWrite); - CleanupStack::PushL(writestore); - TInt popCount=1; - TUidType uidtype(KDirectFileStoreLayoutUid, KMultiBitmapFileImageUid); - - writestore->SetTypeL(uidtype); - - // create write stream - RStoreWriteStream writestrm; - - // close stream set by parameters - if (!useClosedStream) - { - TStreamId headerid=writestrm.CreateL(*writestore); - CleanupClosePushL(writestrm); - - ++popCount; - writestore->SetRootL(headerid); - } - - if (aUseRect) - { - // call ExternalizeRectangleL() - TRAPD(err, GetFbsBitmap()->ExternalizeRectangleL(writestrm, aRect)); - if (err != KErrNone) - { - ERR_PRINTF2(_L("Externalize rectangle error: %d"), err); - SetError(err); - } - } - else - { - // call ExternalizaL() - TRAPD(err, GetFbsBitmap()->ExternalizeL(writestrm)); - if (err != KErrNone) - { - ERR_PRINTF2(_L("Externalize error: %d"), err); - SetError(err); - } - } - - // cleanup - CleanupStack::PopAndDestroy(popCount, writestore); - } - -/** Calls CFbsBitmap::Load() or CFbsBitmap::LoadAndCompress(). Used by DoCmdLoad() and DoCmdLoadAndCompress() methods */ -void CT_DataFbsBitmap::LoadOrLoadAndCompressL(const TDesC& aSection, TBool aCompress) - { - - // get bitmap id from parameters - TInt bitmapId; - if(!GetIntFromConfig(aSection, KBitmapId(), bitmapId)) - { - ERR_PRINTF2(_L("No %S"), &KBitmapId()); - SetBlockResult(EFail); - } - - // get file name from parameters - TPtrC fileName; - if (!GetStringFromConfig(aSection, KFileName(), fileName)) - { - ERR_PRINTF2(_L("No %S"), &KFileName()); - SetBlockResult(EFail); - } - - // get file offset from parameters - TInt fileOffset; - TBool useOffset = GetIntFromConfig(aSection, KFileOffset(), fileOffset); - - // get share if loaded from parameters - TBool shareIfLoaded = EFalse; - GetBoolFromConfig(aSection, KShareIfLoaded(), shareIfLoaded); - - // get flag if use RFile instance in Load() call from parameters - TBool useRFile = EFalse; - GetBoolFromConfig(aSection, KUseRFile(), useRFile); - - // get flag if use RFile instance in Load() call from parameters - TBool useClosedRFile = EFalse; - GetBoolFromConfig(aSection, KUseClosedRFile(), useClosedRFile); - - if (useClosedRFile && !useRFile) - { - ERR_PRINTF3(_L("Cannot use %S parameter if %S is not set to TRUE"), &KUseClosedRFile(), &KUseRFile()); - SetBlockResult(EFail); - } - - // load bitmap - TInt err = KErrNone; - if (useRFile) - { - // required to allow file handle to be adopted by another process - FileServer().ShareProtected(); - - // open rfile - RFile file; - - // if we use invalid RFile handle in our test - if (!useClosedRFile) - { - User::LeaveIfError(file.Open(FileServer(), fileName, EFileShareReadersOnly)); - CleanupClosePushL(file); - } - - // do load - if (aCompress) - { - if (useOffset) - { - err = GetFbsBitmap()->LoadAndCompress(file, bitmapId, shareIfLoaded, fileOffset); - } - else - { - err = GetFbsBitmap()->LoadAndCompress(file, bitmapId, shareIfLoaded); - } - } - else - { - if (useOffset) - { - err = GetFbsBitmap()->Load(file, bitmapId, shareIfLoaded, fileOffset); - } - else - { - err = GetFbsBitmap()->Load(file, bitmapId, shareIfLoaded); - } - } - - if (!useClosedRFile) - { - CleanupStack::PopAndDestroy(&file); - } - } - else - { - if (aCompress) - { - if (useOffset) - { - err = GetFbsBitmap()->LoadAndCompress(fileName, bitmapId, shareIfLoaded, fileOffset); - } - else - { - err = GetFbsBitmap()->LoadAndCompress(fileName, bitmapId, shareIfLoaded); - } - } - else - { - if (useOffset) - { - err = GetFbsBitmap()->Load(fileName, bitmapId, shareIfLoaded, fileOffset); - } - else - { - err = GetFbsBitmap()->Load(fileName, bitmapId, shareIfLoaded); - } - } - } - - // check error code - if (err != KErrNone) - { - ERR_PRINTF2(_L("Load error: %d"), err); - SetError(err); - } - } - -/** - Virtual RunL - Called on completion of an asynchronous command - @see MTPActiveCallback - @param aActive Active Object that RunL has been called on - @pre N/A - @post N/A - @leave system wide error code -*/ -void CT_DataFbsBitmap::RunL(CActive* aActive, const TInt aIndex) - { - if ( aActive==iActiveCompressInBackground ) - { - RunCompressInBackground(aIndex); - } - else - { - ERR_PRINTF1(_L("Stray signal")); - SetBlockResult(EFail); - } - DecOutstanding(); - } - -/** - Virtual DoCancel - Request to cancel the asynchronous command - @see - MTPActiveCallback - @param aActive Active Object that DoCancel has been called on - @pre - N/A - @post - N/A - @leave system wide error code -*/ -void CT_DataFbsBitmap::DoCancel(CActive* aActive, const TInt aIndex) - { - if ( aActive==iActiveCompressInBackground ) - { - DoCancelCompressInBackground(aIndex); - } - else - { - ERR_PRINTF1(_L("Stray signal")); - SetBlockResult(EFail); - } - DecOutstanding(); - } - -void CT_DataFbsBitmap::RunCompressInBackground(const TInt aIndex) - { - TInt err=iActiveCompressInBackground->iStatus.Int(); - INFO_PRINTF2(_L("RunCompressInBackground %d"), err); - if ( err!=KErrNone ) - { - ERR_PRINTF2(_L("RunL Error %d"), err); - SetAsyncError(aIndex, err); - } - } - -void CT_DataFbsBitmap::DoCancelCompressInBackground(const TInt /*aIndex*/) - { - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fbserv/src/T_DataFbsColor256BitmapUtil.cpp --- a/graphicsapitest/graphicssvs/fbserv/src/T_DataFbsColor256BitmapUtil.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,227 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataFbsColor256BitmapUtil -*/ - -// User includes -#include "T_DataFbsColor256BitmapUtil.h" -#include "T_GraphicsUtil.h" - -/*@{*/ -/// Parameters -_LIT(KDither, "dither"); -_LIT(KBitmapFrom, "bitmap_from"); -_LIT(KBitmapTo, "bitmap_to"); -_LIT(KPalette, "palette"); - -/// Enumeration parameter values -_LIT(KDitherNoDither, "ENoDither"); -_LIT(KDitherFloydSteinberg, "EFloydSteinberg"); - -/// Commands -_LIT(KCmdNewL, "NewL"); -_LIT(KCmdCopyBitmap, "CopyBitmap"); -_LIT(KCleanup, "~"); -/*@}*/ - - -/** -* Two phase constructor -*/ -CT_DataFbsColor256BitmapUtil* CT_DataFbsColor256BitmapUtil::NewL() - { - CT_DataFbsColor256BitmapUtil* ret = new (ELeave) CT_DataFbsColor256BitmapUtil(); - CleanupStack::PushL(ret); - ret->ConstructL(); - CleanupStack::Pop(ret); - return ret; - } - - -/** -* Protected constructor. First phase construction -*/ -CT_DataFbsColor256BitmapUtil::CT_DataFbsColor256BitmapUtil() -: CDataWrapperBase() -, iFbsColor256BitmapUtil(NULL) - { - } - - -void CT_DataFbsColor256BitmapUtil::ConstructL() - { - } - - -CT_DataFbsColor256BitmapUtil::~CT_DataFbsColor256BitmapUtil() - { - DestroyData(); - } - - -/** -* Contains cleanup implementation -*/ -void CT_DataFbsColor256BitmapUtil::DestroyData() - { - delete iFbsColor256BitmapUtil; - iFbsColor256BitmapUtil = NULL; - } - - -/** -* Return a pointer to the object that the data wraps -* -* @return pointer to the object that the data wraps -*/ -TAny* CT_DataFbsColor256BitmapUtil::GetObject() - { - return iFbsColor256BitmapUtil; - } - - -/** -* Process a command read from the ini file -* -* @param aDataWrapper test step requiring command to be processed -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* -* @return ETrue if the command is processed -*/ -TBool CT_DataFbsColor256BitmapUtil::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt /*aAsyncErrorIndex*/) - { - TBool retVal = ETrue; - - if (aCommand == KCmdNewL) - { - DoCmdNewL(aSection); - } - else if (aCommand == KCmdCopyBitmap) - { - DoCmdCopyBitmapL(aSection); - } - else if (aCommand == KCleanup) - { - DestroyData(); - } - else - { - retVal=EFalse; - } - - return retVal; - } - - -////////////////// COMMANDS IMPLEMENTATION //////////////////////// - -/** CFbsColor256BitmapUtil::NewL() call */ -void CT_DataFbsColor256BitmapUtil::DoCmdNewL(const TDesC& aSection) - { - INFO_PRINTF1(_L("CFbsColor256BitmapUtil::NewL() call")); - - // cleanup if any - delete iFbsColor256BitmapUtil; - iFbsColor256BitmapUtil = NULL; - - // get CPalette object passed as a parameter - CPalette* palette = NULL; - CT_GraphicsUtil::GetPaletteL(*this, aSection, KPalette(), palette); - - // call NewL() - TRAPD(err, iFbsColor256BitmapUtil = CFbsColor256BitmapUtil::NewL(palette)); - - // check error code - if (err != KErrNone) - { - ERR_PRINTF2(_L("CFbsColor256BitmapUtil::NewL error: %d"), err); - SetError(err); - } - } - - -/** CFbsColor256BitmapUtil::CopyBitmap() call */ -void CT_DataFbsColor256BitmapUtil::DoCmdCopyBitmapL(const TDesC& aSection) - { - INFO_PRINTF1(_L("CFbsColor256BitmapUtil::CopyBitmap() call")); - - // get source CFbsBitmap passed as a parameter - CFbsBitmap* fbsBitmapFrom = NULL; - CT_GraphicsUtil::GetFbsBitmapL(*this, aSection, KBitmapFrom(), fbsBitmapFrom); - - // get destination CFbsBitmap passed as a parameter - CFbsBitmap* fbsBitmapTo = NULL; - CT_GraphicsUtil::GetFbsBitmapL(*this, aSection, KBitmapTo(), fbsBitmapTo); - - // get dither mode from parameters - CFbsColor256BitmapUtil::TDither dither; - if (!ReadDither(*this, aSection, dither)) - { - ERR_PRINTF1(_L("No dither")); - SetBlockResult(EFail); - } - else - { - // call CopyBitmap() - TInt err = iFbsColor256BitmapUtil->CopyBitmap(fbsBitmapTo, fbsBitmapFrom, dither); - - // check error - if (err != KErrNone) - { - ERR_PRINTF2(_L("CopyBitmap failed with error %d"), err); - SetError(err); - } - } - } - -//////////////////// UTIL METHODS //////////////////////////// - - -TBool CT_DataFbsColor256BitmapUtil::ReadDither(CDataWrapper& aDataWrapper, const TDesC& aSection, CFbsColor256BitmapUtil::TDither& aDither) - { - // Read dither from INI file - TPtrC ditherStr; - TBool found=aDataWrapper.GetStringFromConfig(aSection, KDither(), ditherStr); - if ( found ) - { - if (ditherStr == KDitherNoDither) - { - aDither = CFbsColor256BitmapUtil::ENoDither; - } - else if (ditherStr == KDitherFloydSteinberg) - { - aDither = CFbsColor256BitmapUtil::EFloydSteinberg; - } - else - { - TInt dither = 0; - found = aDataWrapper.GetIntFromConfig(aSection, KDither(), dither); - if ( found ) - { - aDither = (CFbsColor256BitmapUtil::TDither) dither; - } - } - } - - return found; - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fbserv/src/T_DataFbsFont.cpp --- a/graphicsapitest/graphicssvs/fbserv/src/T_DataFbsFont.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,367 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataFbsFont -*/ - -#include "T_DataFbsFont.h" - -/*@{*/ -/// Parameters -_LIT(KText, "text"); -_LIT(KExpectedBool, "expected_bool"); -_LIT(KCharCode, "char_code"); -_LIT(KNullBitmapPointerExpected, "null_bitmap_pointer_expected"); - -/// Commands -_LIT(KCmdGetFontMetrics, "GetFontMetrics"); -_LIT(KCmdTextWidthInPixelsWithCharWidth, "TextWidthInPixelsWithCharWidth"); -_LIT(KCmdHandle, "Handle"); -_LIT(KCmdCharacterMetrics, "CharacterMetrics"); -_LIT(KCmdRawTextWidthInPixels, "RawTextWidthInPixels"); -_LIT(KCmdGetFaceAttrib, "GetFaceAttrib"); -_LIT(KCmdIsOpenFont, "IsOpenFont"); -_LIT(KCmdHasCharacter, "HasCharacter"); -/*@}*/ - -/** -* Constructor -*/ -CT_DataFbsFont* CT_DataFbsFont::NewL() - { - CT_DataFbsFont* ret = new (ELeave) CT_DataFbsFont(); - return ret; - } - -/** -* Protected constructor. First phase construction -*/ -CT_DataFbsFont::CT_DataFbsFont() -: CT_DataFont() -, iFbsFont(NULL) - { - } - -/** -* Process a command read from the ini file -* -* @param aDataWrapper test step requiring command to be processed -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* -* @return ETrue if the command is processed -*/ -TBool CT_DataFbsFont::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex) - { - TBool ret=ETrue; - - if (aCommand == KCmdGetFontMetrics) - { - DoCmdGetFontMetrics(aSection); - } - else if (aCommand == KCmdTextWidthInPixelsWithCharWidth) - { - DoCmdTextWidthInPixelsWithCharWidth(aSection); - } - else if (aCommand == KCmdHandle) - { - DoCmdHandle(); - } - else if (aCommand == KCmdCharacterMetrics) - { - DoCmdCharacterMetrics(aSection); - } - else if (aCommand == KCmdRawTextWidthInPixels) - { - DoCmdRawTextWidthInPixels(aSection); - } - else if (aCommand == KCmdGetFaceAttrib) - { - DoCmdGetFaceAttrib(aSection); - } - else if (aCommand == KCmdIsOpenFont) - { - DoCmdIsOpenFont(aSection); - } - else if (aCommand == KCmdHasCharacter) - { - DoCmdHasCharacter(aSection); - } - else - { - ret=CT_DataFont::DoCommandL(aCommand, aSection, aAsyncErrorIndex); - } - - return ret; - } - - -CFont* CT_DataFbsFont::GetFont() const - { - return iFbsFont; - } - - -/** -* Return a pointer to the object that the data wraps -* -* @return pointer to the object that the data wraps -*/ -TAny* CT_DataFbsFont::GetObject() - { - return iFbsFont; - } - - -/** -* Sets a fbs font -* -* @param aNewFont fbs font -*/ -void CT_DataFbsFont::SetObjectL(TAny* aObject) - { - // no clean up needed, because fonts are managed by server side - iFbsFont = static_cast(aObject); - } - - -/** -* Disown a fbs font -* -*/ -void CT_DataFbsFont::DisownObjectL() - { - // no clean up needed, because fonts are managed by server side - iFbsFont=NULL; - } - - -/** Calls CFbsFont::GetFontMetrics() */ -void CT_DataFbsFont::DoCmdGetFontMetrics(const TDesC& aSection) - { - TOpenFontMetrics metrics; - TBool actual = iFbsFont->GetFontMetrics(metrics); - INFO_PRINTF2(_L("Calls CFbsFont::GetFontMetrics() %d"), actual); - - // get if true expected flag from parameters - TBool expected; - if ( GetBoolFromConfig(aSection, KExpectedBool(), expected) ) - { - // check that the value is as expected - if (actual != expected) - { - ERR_PRINTF3(_L("The value is not as expected! expected: %d, actual: %d"), expected, actual); - SetBlockResult(EFail); - } - } - } - - -/** Calls CFbsFont::TextWidthInPixels() using SCharWidth output paramter */ -void CT_DataFbsFont::DoCmdTextWidthInPixelsWithCharWidth(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CFbsFont::TextWidthInPixels() using SCharWidth output paramter")); - - // get text from parameters - TPtrC text; - if (!GetStringFromConfig(aSection, KText(), text)) - { - ERR_PRINTF2(_L("No %S"), &KText()); - SetBlockResult(EFail); - } - else - { - // call TextWidthInPixels() - SCharWidth charWidth; - iFbsFont->TextWidthInPixels(text, charWidth); - - // validate SCharWidth - if (charWidth.iMove != charWidth.iLeftAdjust + charWidth.iWidth + charWidth.iRightAdjust) - { - ERR_PRINTF5(_L("Move is not equal to left adjust + width + right adjust!, move: %d, leftAdjust: %d, width: %d, rightAdjust: %d"), charWidth.iMove, charWidth.iLeftAdjust, charWidth.iWidth, charWidth.iRightAdjust); - SetBlockResult(EFail); - } - } - } - - -/** Calls CFbsFont::Handle() */ -void CT_DataFbsFont::DoCmdHandle() - { - // call Handle() - TInt handle = iFbsFont->Handle(); - INFO_PRINTF2(_L("Calls CFbsFont::Handle() %d"), handle); - - // validate hanle - if (handle == 0) - { - ERR_PRINTF1(_L("Handle is zero!")); - SetBlockResult(EFail); - } - } - - -/** Calls CFbsFont::CharacterMetrics() */ -void CT_DataFbsFont::DoCmdCharacterMetrics(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CFbsFont::CharacterMetrics()")); - - // get character code from parameters - TInt charCode = 0; - if(!GetIntFromConfig(aSection, KCharCode(), charCode)) - { - ERR_PRINTF2(_L("No %S"), &KCharCode()); - SetBlockResult(EFail); - } - else - { - // call CharacterMetrics() - const TUint8* bitmapPointer; - iFbsFont->CharacterMetrics(charCode, bitmapPointer); - - // get if NULL bitmap pointer expected flag from parameters - TBool expectedNull = EFalse; - if(GetBoolFromConfig(aSection, KNullBitmapPointerExpected(), expectedNull)) - { - // check that on retirn the bitmap pointer is not NULL - if ( expectedNull ) - { - if ( bitmapPointer!=NULL ) - { - ERR_PRINTF1(_L("Bitmap pointer is NOT null!")); - SetBlockResult(EFail); - } - } - else - { - if ( bitmapPointer==NULL ) - { - ERR_PRINTF1(_L("Bitmap pointer is null!")); - SetBlockResult(EFail); - } - } - } - } - } - - -/** Calls CFbsFont::RawTextWidthInPixels() */ -void CT_DataFbsFont::DoCmdRawTextWidthInPixels(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CFbsFont::RawTextWidthInPixels()")); - - // get text from parameters - TPtrC text; - if (!GetStringFromConfig(aSection, KText(), text)) - { - ERR_PRINTF2(_L("No %S"), &KText()); - SetBlockResult(EFail); - } - else - { - // call RawTextWidthInPixels() - TInt width = iFbsFont->RawTextWidthInPixels(text); - - // check result against MeasureText() - TInt measureTextWidth = iFbsFont->MeasureText(text); - if ( width != measureTextWidth) - { - ERR_PRINTF3(_L("The result of RawTextWidthInPixels() is not the same as for MeasureText(): %d, and %d"), width, measureTextWidth); - SetBlockResult(EFail); - } - } - } - - -/** Calls CFbsFont::GetFaceAttrib() */ -void CT_DataFbsFont::DoCmdGetFaceAttrib(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CFbsFont::GetFaceAttrib()")); - - // call GetFaceAttrib() - TOpenFontFaceAttrib attrib; - TBool actual = iFbsFont->GetFaceAttrib(attrib); - - // get if true expected flag from parameters - TBool expected; - if(GetBoolFromConfig(aSection, KExpectedBool(), expected)) - { - // check that the value is as expected - if (actual != expected) - { - ERR_PRINTF3(_L("The value is not as expected! expected: %d, actual: %d"), expected, actual); - SetBlockResult(EFail); - } - } - } - - -/** Calls CFbsFont::IsOpenFont() */ -void CT_DataFbsFont::DoCmdIsOpenFont(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CFbsFont::IsOpenFont()")); - - // call IsOpenFont() - TBool actual = iFbsFont->IsOpenFont(); - - // check that the value is as expected if there is a expected bool parameter - TBool expected; - if (GetBoolFromConfig(aSection, KExpectedBool(), expected) ) - { - // check that the value is as expected - if (actual != expected) - { - ERR_PRINTF3(_L("The value is not as expected! expected: %d, actual: %d"), expected, actual); - SetBlockResult(EFail); - } - } - } - - -/** Calls CFbsFont::HasCharacter() */ -void CT_DataFbsFont::DoCmdHasCharacter(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CFbsFont::HasCharacter()")); - - // get character code from parameters - TInt charCode = 0; - if(!GetIntFromConfig(aSection, KCharCode(), charCode)) - { - ERR_PRINTF2(_L("No %S"), &KCharCode()); - SetBlockResult(EFail); - } - else - { - // call HasCharacter() - TBool actual = iFbsFont->HasCharacter(charCode); - - TBool expected; - if(GetBoolFromConfig(aSection, KExpectedBool(), expected)) - { - // check that the value is as expected - if (actual != expected) - { - ERR_PRINTF3(_L("The value is not as expected! expected: %d, actual: %d"), expected, actual); - SetBlockResult(EFail); - } - } - } - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fbserv/src/T_DataFbsSession.cpp --- a/graphicsapitest/graphicssvs/fbserv/src/T_DataFbsSession.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,741 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataFbsSession -*/ - -#include "T_DataFbsSession.h" -#include "T_GraphicsUtil.h" - - -/*@{*/ -/// Parameters -_LIT(KSession, "session"); -_LIT(KInvalidSession, "invalid_session"); -_LIT(KNullSession, "null_session"); -_LIT(KExpectedCallBack, "expected"); -_LIT(KExpectedDiff, "expected_diff"); -_LIT(KFbsMessage, "fbs_message"); -_LIT(KBitmap, "bitmap"); -_LIT(KFbsParameter0, "parameter0"); -_LIT(KFbsParameter1, "parameter1"); -_LIT(KFbsParameter2, "parameter2"); -_LIT(KFbsParameter3, "parameter3"); -_LIT(KVersionName, "name"); -_LIT(KVersionBuild, "build"); -_LIT(KVersionMajor, "major"); -_LIT(KVersionMinor, "minor"); - -/// Commands -_LIT(KCmdConstructor, "Constructor"); -_LIT(KCmdConnect, "Connect"); -_LIT(KCmdDisconnect, "Disconnect"); -_LIT(KCmdGetSession, "GetSession"); -_LIT(KCmdCallBack, "CallBack"); -_LIT(KCmdSetCallBack, "SetCallBack"); -_LIT(KCmdResetCallBack, "ResetCallBack"); -_LIT(KCmdResourceCount, "ResourceCount"); -_LIT(KCmdSendCommand, "SendCommand"); -_LIT(KCmdVersion, "Version"); -_LIT(KCmdHeapBase, "HeapBase"); -_LIT(KCmdSessionHandle, "SessionHandle"); - -_LIT(KFbsMessInit, "EFbsMessInit"); -_LIT(KFbsMessShutdown, "EFbsMessShutdown"); -_LIT(KFbsMessClose, "EFbsMessClose"); -_LIT(KFbsMessResourceCount, "EFbsMessResourceCount"); -_LIT(KFbsMessNumTypefaces, "EFbsMessNumTypefaces"); -_LIT(KFbsMessTypefaceSupport, "EFbsMessTypefaceSupport"); -_LIT(KFbsMessFontHeightInTwips, "EFbsMessFontHeightInTwips"); -_LIT(KFbsMessFontHeightInPixels, "EFbsMessFontHeightInPixels"); -_LIT(KFbsMessAddFontStoreFile, "EFbsMessAddFontStoreFile"); -_LIT(KFbsMessInstallFontStoreFile, "EFbsMessInstallFontStoreFile"); -_LIT(KFbsMessRemoveFontStoreFile, "EFbsMessRemoveFontStoreFile"); -_LIT(KFbsMessSetPixelHeight, "EFbsMessSetPixelHeight"); -_LIT(KFbsMessGetFontById, "EFbsMessGetFontById"); -_LIT(KFbsMessFontDuplicate, "EFbsMessFontDuplicate"); -_LIT(KFbsMessBitmapCreate, "EFbsMessBitmapCreate"); -_LIT(KFbsMessBitmapResize, "EFbsMessBitmapResize"); -_LIT(KFbsMessBitmapDuplicate, "EFbsMessBitmapDuplicate"); -_LIT(KFbsMessBitmapLoad, "EFbsMessBitmapLoad"); -_LIT(KFbsMessDefaultAllocFail, "EFbsMessDefaultAllocFail"); -_LIT(KFbsMessDefaultMark, "EFbsMessDefaultMark"); -_LIT(KFbsMessDefaultMarkEnd, "EFbsMessDefaultMarkEnd"); -_LIT(KFbsMessUserAllocFail, "EFbsMessUserAllocFail"); -_LIT(KFbsMessUserMark, "EFbsMessUserMark"); -_LIT(KFbsMessUserMarkEnd, "EFbsMessUserMarkEnd"); -_LIT(KFbsMessHeapCheck, "EFbsMessHeapCheck"); -_LIT(KFbsMessRasterize, "EFbsMessRasterize"); -_LIT(KFbsMessFaceAttrib, "EFbsMessFaceAttrib"); -_LIT(KFbsMessHasCharacter, "EFbsMessHasCharacter"); -_LIT(KFbsMessSetDefaultGlyphBitmapType, "EFbsMessSetDefaultGlyphBitmapType"); -_LIT(KFbsMessGetDefaultGlyphBitmapType, "EFbsMessGetDefaultGlyphBitmapType"); -_LIT(KFbsMessFontNameAlias, "EFbsMessFontNameAlias"); -_LIT(KFbsMessBitmapCompress, "EFbsMessBitmapCompress"); -_LIT(KFbsMessGetHeapSizes, "EFbsMessGetHeapSizes"); -_LIT(KFbsMessGetNearestFontToDesignHeightInTwips, "EFbsMessGetNearestFontToDesignHeightInTwips"); -_LIT(KFbsMessGetNearestFontToMaxHeightInTwips, "EFbsMessGetNearestFontToMaxHeightInTwips"); -_LIT(KFbsMessGetNearestFontToDesignHeightInPixels, "EFbsMessGetNearestFontToDesignHeightInPixels"); -_LIT(KFbsMessGetNearestFontToMaxHeightInPixels, "EFbsMessGetNearestFontToMaxHeightInPixels"); -_LIT(KFbsMessShapeText, "EFbsMessShapeText"); -_LIT(KFbsMessShapeDelete, "EFbsMessShapeDelete"); -_LIT(KFbsMessDefaultLanguageForMetrics, "EFbsMessDefaultLanguageForMetrics"); -_LIT(KFbsMessSetTwipsHeight, "EFbsMessSetTwipsHeight"); -_LIT(KFbsMessGetTwipsHeight, "EFbsMessGetTwipsHeight"); -_LIT(KFbsCompress, "EFbsCompress"); -_LIT(KFbsMessBitmapBgCompress, "EFbsMessBitmapBgCompress"); -_LIT(KFbsSetSystemDefaultTypefaceName, "EFbsSetSystemDefaultTypefaceName"); -_LIT(KFbsGetAllBitmapHandles, "EFbsGetAllBitmapHandles"); -_LIT(KFbsMessCreateLinkedTypeface, "EFbsMessCreateLinkedTypeface"); -_LIT(KFbsMessSetHeapFail, "EFbsMessSetHeapFail"); -_LIT(KFbsMessHeapCount, "EFbsMessHeapCount"); -_LIT(KFbsMessSetHeapReset, "EFbsMessSetHeapReset"); -_LIT(KFbsMessSetHeapCheck, "EFbsMessSetHeapCheck"); -_LIT(KFbsMessHeap, "EFbsMessHeap"); -_LIT(KFbsMessLinkedCache, "EFbsMessLinkedCache"); -_LIT(KFbsMessBitmapClean, "EFbsMessBitmapClean"); -/*@}*/ - -/** -* Two phase constructor -*/ -CT_DataFbsSession* CT_DataFbsSession::NewL() - { - CT_DataFbsSession* ret = new (ELeave) CT_DataFbsSession(); - CleanupStack::PushL(ret); - ret->ConstructL(); - CleanupStack::Pop(ret); - return ret; - } - -/** -* Protected constructor. First phase construction -*/ -CT_DataFbsSession::CT_DataFbsSession() -: CDataWrapperBase() -, iSession(NULL) -, iResourceCount(-1) -, iCallBackCalled(EFalse) - { - } - -/** -* Second phase construction -*/ -void CT_DataFbsSession::ConstructL() - { - } - -/** -* Protected destructor. -*/ -CT_DataFbsSession::~CT_DataFbsSession() - { - } - -/** -* Process a command read from the ini file -* -* @param aDataWrapper test step requiring command to be processed -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* -* @return ETrue if the command is processed -*/ -TBool CT_DataFbsSession::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt /*aAsyncErrorIndex*/) - { - TBool ret=ETrue; - - if (aCommand == KCmdConstructor) - { - DoCmdConstructor(); - } - else if (aCommand == KCmdConnect) - { - DoCmdConnect(aSection); - } - else if (aCommand == KCmdDisconnect) - { - DoCmdDisconnect(); - } - else if (aCommand == KCmdGetSession) - { - DoCmdGetSession(aSection); - } - else if (aCommand == KCmdCallBack) - { - DoCmdCallBack(aSection); - } - else if (aCommand == KCmdResetCallBack) - { - DoCmdResetCallBack(); - } - else if (aCommand == KCmdSetCallBack) - { - DoCmdSetCallBack(); - } - else if (aCommand == KCmdResourceCount) - { - DoCmdResourceCount(aSection); - } - else if (aCommand == KCmdSendCommand) - { - DoCmdSendCommandL(aSection); - } - else if (aCommand == KCmdVersion) - { - DoCmdVersion(aSection); - } - else if (aCommand == KCmdHeapBase) - { - DoCmdHeapBase(); - } - else if (aCommand == KCmdSessionHandle) - { - DoCmdSessionHandle(); - } - else - { - ret=EFalse; - } - - return ret; - } - - -void CT_DataFbsSession::DoCmdConstructor() - { - INFO_PRINTF1(_L("Call RFbsSession's constructor")); - - RFbsSession tempSession; - } - - -/** RFbsSession::Connect() Call */ -void CT_DataFbsSession::DoCmdConnect(const TDesC& aSection) - { - INFO_PRINTF1(_L("RFbsSession::Connect() call")); - - TBool session=EFalse; - GetBoolFromConfig(aSection, KSession(), session); - - TBool invalidSession=EFalse; - GetBoolFromConfig(aSection, KInvalidSession(), invalidSession); - - TInt err=KErrNone; - if ( session ) - { - err=RFbsSession::Connect(FileServer()); - } - else if ( invalidSession ) - { - err=RFbsSession::Connect(iFsUnconnected); - } - else - { - err=RFbsSession::Connect(); - } - - if ( err!=KErrNone ) - { - ERR_PRINTF2(_L("Connect failed with error %d"), err); - SetError(err); - } - } - -/** RFbsSession::Disconnect() call */ -void CT_DataFbsSession::DoCmdDisconnect() - { - INFO_PRINTF1(_L("RFbsSession::Disconnect() call")); - RFbsSession::Disconnect(); - } - -/** RFbsSession::GetSession() check */ -void CT_DataFbsSession::DoCmdGetSession(const TDesC& aSection) - { - INFO_PRINTF1(_L("RFbsSession::GetSession() check")); - - // get not_null_session parameter value - - TBool nullSessionExpected = EFalse; - GetBoolFromConfig(aSection, KNullSession(), nullSessionExpected); - - // check result of GetSession() method - iSession = RFbsSession::GetSession(); - - if ( nullSessionExpected ) - { - if ( iSession != NULL ) - { - // Session is expected to be null but it is not null - ERR_PRINTF1(_L("Session is expected to be null but it is not null!")); - SetBlockResult(EFail); - } - } - else - { - if ( iSession == NULL ) - { - ERR_PRINTF1(_L("Session is expected to be not null but it is null!")); - SetBlockResult(EFail); - } - } - } - - -/** RFbsSession::CallBack() call */ -void CT_DataFbsSession::DoCmdCallBack(const TDesC& aSection) - { - INFO_PRINTF1(_L("RFbsSession::CallBack() call")); - iCallBackCalled=EFalse; - iSession->CallBack(); - - // get expected callback parameter value - TBool expected; - if( GetBoolFromConfig(aSection, KExpectedCallBack(), expected) ) - { - if ( expected != iCallBackCalled ) - { - ERR_PRINTF3(_L("Expected callback %d does not equal actual callback %d"), expected, iCallBackCalled); - SetBlockResult(EFail); - } - } - } - - -/** Set call back function uding RFbsSession::SetCallBack() */ -void CT_DataFbsSession::DoCmdSetCallBack() - { - INFO_PRINTF1(_L("Set call back function uding SetCallBack()")); - TCallBack callBack(CallBackFunction, this); - iCallBackCalled=EFalse; - iSession->SetCallBack(callBack); - } - - -/** RFbsSession::ResetCallBack() call */ -void CT_DataFbsSession::DoCmdResetCallBack() - { - INFO_PRINTF1(_L("RFbsSession::ResetCallBack() call")); - iCallBackCalled=EFalse; - iSession->ResetCallBack(); - } - - -/** RFbsSession::ResourceCount() call, memorize resource count */ -void CT_DataFbsSession::DoCmdResourceCount(const TDesC& aSection) - { - TInt resourceCount=iSession->ResourceCount(); - INFO_PRINTF2(_L("RFbsSession::ResourceCount() %d"), resourceCount); - - - // get expected difference from parameters - TInt expectedDifference; - if ( GetIntFromConfig(aSection, KExpectedDiff(), expectedDifference) ) - { - TInt actualDifference=resourceCount-iResourceCount; - if ( actualDifference != expectedDifference ) - { - ERR_PRINTF3(_L("Resource count difference is not as expected! expected: %d, actual: %d"), expectedDifference, actualDifference); - SetBlockResult(EFail); - } - } - - iResourceCount = resourceCount; - } - - -/** RFbsSession::SendCommand() call */ -void CT_DataFbsSession::DoCmdSendCommandL(const TDesC& aSection) - { - INFO_PRINTF1(_L("RFbsSession::SendCommand() call")); - - TInt fbsParameter0=0; - CFbsBitmap* fbsBitmap=NULL; - if ( CT_GraphicsUtil::GetFbsBitmapL(*this, aSection, KBitmap(), fbsBitmap) ) - { - fbsParameter0=fbsBitmap->Handle(); - } - else - { - GetIntFromConfig(aSection, KFbsParameter0(), fbsParameter0); - } - - TInt fbsParameter1=0; - GetIntFromConfig(aSection, KFbsParameter1(), fbsParameter1); - - TInt fbsParameter2=0; - GetIntFromConfig(aSection, KFbsParameter2(), fbsParameter2); - - TInt fbsParameter3=0; - GetIntFromConfig(aSection, KFbsParameter3(), fbsParameter3); - - TInt fbsMessage; - if ( !GetFbsMessage(aSection, fbsMessage) ) - { - ERR_PRINTF1(_L("No fbs message")); - SetBlockResult(EFail); - } - else - { - iSession->SendCommand(fbsMessage, fbsParameter0, fbsParameter1, fbsParameter2, fbsParameter3); - } - } - - -/** RFbsSession::Version() call */ -void CT_DataFbsSession::DoCmdVersion(const TDesC& aSection) - { - INFO_PRINTF1(_L("RFbsSession::Version() call")); - - TVersion version = iSession->Version(); - TVersionName versionName = version.Name(); - INFO_PRINTF2(_L("Version name : %s"), &versionName); - INFO_PRINTF2(_L("Version build : %d"), (TInt)version.iBuild); - INFO_PRINTF2(_L("Version major : %d"), (TInt)version.iMajor); - INFO_PRINTF2(_L("Version minor : %d"), (TInt)version.iMinor); - - TPtrC name; - if ( GetStringFromConfig(aSection, KVersionName(), name) ) - { - if ( name != version.Name() ) - { - ERR_PRINTF1(_L("Name does not match expected name")); - SetBlockResult(EFail); - } - } - - TInt intTemp; - if ( GetIntFromConfig(aSection, KVersionBuild(), intTemp) ) - { - if ( intTemp != version.iBuild ) - { - ERR_PRINTF1(_L("Build does not match expected build")); - SetBlockResult(EFail); - } - } - - if ( GetIntFromConfig(aSection, KVersionMajor(), intTemp) ) - { - if ( intTemp != version.iMajor ) - { - ERR_PRINTF1(_L("Major does not match expected major")); - SetBlockResult(EFail); - } - } - - if ( GetIntFromConfig(aSection, KVersionMinor(), intTemp) ) - { - if ( intTemp != version.iMinor ) - { - ERR_PRINTF1(_L("Minor does not match expected minor")); - SetBlockResult(EFail); - } - } - - if (version.Name() == _L("") && version.iBuild == 0 && version.iMajor == 0 && version.iMinor == 0) - { - ERR_PRINTF1(_L("Some version fields are not set!")); - SetBlockResult(EFail); - } - } - - -/** RFbsSession::HeapBase() call */ -void CT_DataFbsSession::DoCmdHeapBase() - { - TUint8* heapBase = iSession->HeapBase(); - INFO_PRINTF2(_L("RFbsSession::HeapBase() %d"), heapBase); - - if (heapBase == NULL) - { - ERR_PRINTF1(_L("Heap base is null!")); - SetBlockResult(EFail); - } - } - - -/** RFbsSession::SessionHandle() call */ -void CT_DataFbsSession::DoCmdSessionHandle() - { - TInt sessionHandle = iSession->SessionHandle(); - INFO_PRINTF2(_L("RFbsSession::SessionHandle() %d"), sessionHandle); - - if (sessionHandle == 0) - { - ERR_PRINTF1(_L("Session handle is 0!")); - SetBlockResult(EFail); - } - } - - -/** -* Return a pointer to the object that the data wraps. Not implemented, returns NULL. -* -* @return pointer to the object that the data wraps. Not implemented, returns NULL. -*/ -TAny* CT_DataFbsSession::GetObject() - { - return iSession; - } - - -/** Function used as a call back, that sets GlobalCallBackCalled to true*/ -TInt CT_DataFbsSession::CallBackFunction(TAny* aThis) - { - return static_cast(aThis)->CallBackFunction(); - } - - -/** Function used as a call back, that sets GlobalCallBackCalled to true*/ -TInt CT_DataFbsSession::CallBackFunction() - { - return iCallBackCalled = ETrue; - } - -TBool CT_DataFbsSession::GetFbsMessage(const TDesC& aSection, TInt& aMessage) - { - TPtrC fbsMessage; - TBool ret=GetStringFromConfig(aSection, KFbsMessage(), fbsMessage); - if ( !ret ) - { - ERR_PRINTF2(_L("No %S"), &KFbsMessage()); - SetBlockResult(EFail); - } - else - { - if ( fbsMessage==KFbsMessInit ) - { - aMessage = EFbsMessInit; - } - else if ( fbsMessage==KFbsMessShutdown ) - { - aMessage = EFbsMessShutdown; - } - else if ( fbsMessage==KFbsMessClose ) - { - aMessage = EFbsMessClose; - } - else if ( fbsMessage==KFbsMessResourceCount ) - { - aMessage = EFbsMessResourceCount; - } - else if ( fbsMessage==KFbsMessNumTypefaces ) - { - aMessage = EFbsMessNumTypefaces; - } - else if ( fbsMessage==KFbsMessTypefaceSupport ) - { - aMessage = EFbsMessTypefaceSupport; - } - else if ( fbsMessage==KFbsMessFontHeightInTwips ) - { - aMessage = EFbsMessFontHeightInTwips; - } - else if ( fbsMessage==KFbsMessFontHeightInPixels ) - { - aMessage = EFbsMessFontHeightInPixels; - } - else if ( fbsMessage==KFbsMessAddFontStoreFile ) - { - aMessage = EFbsMessAddFontStoreFile; - } - else if ( fbsMessage==KFbsMessInstallFontStoreFile ) - { - aMessage = EFbsMessInstallFontStoreFile; - } - else if ( fbsMessage==KFbsMessRemoveFontStoreFile ) - { - aMessage = EFbsMessRemoveFontStoreFile; - } - else if ( fbsMessage==KFbsMessSetPixelHeight ) - { - aMessage = EFbsMessSetPixelHeight; - } - else if ( fbsMessage==KFbsMessGetFontById ) - { - aMessage = EFbsMessGetFontById; - } - else if ( fbsMessage==KFbsMessFontDuplicate ) - { - aMessage = EFbsMessFontDuplicate; - } - else if ( fbsMessage==KFbsMessBitmapCreate ) - { - aMessage = EFbsMessBitmapCreate; - } - else if ( fbsMessage==KFbsMessBitmapResize ) - { - aMessage = EFbsMessBitmapResize; - } - else if ( fbsMessage==KFbsMessBitmapDuplicate ) - { - aMessage = EFbsMessBitmapDuplicate; - } - else if ( fbsMessage==KFbsMessBitmapLoad ) - { - aMessage = EFbsMessBitmapLoad; - } - else if ( fbsMessage==KFbsMessDefaultAllocFail ) - { - aMessage = EFbsMessDefaultAllocFail; - } - else if ( fbsMessage==KFbsMessDefaultMark ) - { - aMessage = EFbsMessDefaultMark; - } - else if ( fbsMessage==KFbsMessDefaultMarkEnd ) - { - aMessage = EFbsMessDefaultMarkEnd; - } - else if ( fbsMessage==KFbsMessUserAllocFail ) - { - aMessage = EFbsMessUserAllocFail; - } - else if ( fbsMessage==KFbsMessUserMark ) - { - aMessage = EFbsMessUserMark; - } - else if ( fbsMessage==KFbsMessUserMarkEnd ) - { - aMessage = EFbsMessUserMarkEnd; - } - else if ( fbsMessage==KFbsMessHeapCheck ) - { - aMessage = EFbsMessHeapCheck; - } - else if ( fbsMessage==KFbsMessRasterize ) - { - aMessage = EFbsMessRasterize; - } - else if ( fbsMessage==KFbsMessFaceAttrib ) - { - aMessage = EFbsMessFaceAttrib; - } - else if ( fbsMessage==KFbsMessHasCharacter ) - { - aMessage = EFbsMessHasCharacter; - } - else if ( fbsMessage==KFbsMessSetDefaultGlyphBitmapType ) - { - aMessage = EFbsMessSetDefaultGlyphBitmapType; - } - else if ( fbsMessage==KFbsMessGetDefaultGlyphBitmapType ) - { - aMessage = EFbsMessGetDefaultGlyphBitmapType; - } - else if ( fbsMessage==KFbsMessFontNameAlias ) - { - aMessage = EFbsMessFontNameAlias; - } - else if ( fbsMessage==KFbsMessBitmapCompress ) - { - aMessage = EFbsMessBitmapCompress; - } - else if ( fbsMessage==KFbsMessGetHeapSizes ) - { - aMessage = EFbsMessGetHeapSizes; - } - else if ( fbsMessage==KFbsMessGetNearestFontToDesignHeightInTwips ) - { - aMessage = EFbsMessGetNearestFontToDesignHeightInTwips; - } - else if ( fbsMessage==KFbsMessGetNearestFontToMaxHeightInTwips ) - { - aMessage = EFbsMessGetNearestFontToMaxHeightInTwips; - } - else if ( fbsMessage==KFbsMessGetNearestFontToDesignHeightInPixels ) - { - aMessage = EFbsMessGetNearestFontToDesignHeightInPixels; - } - else if ( fbsMessage==KFbsMessGetNearestFontToMaxHeightInPixels ) - { - aMessage = EFbsMessGetNearestFontToMaxHeightInPixels; - } - else if ( fbsMessage==KFbsMessShapeText ) - { - aMessage = EFbsMessShapeText; - } - else if ( fbsMessage==KFbsMessShapeDelete ) - { - aMessage = EFbsMessShapeDelete; - } - else if ( fbsMessage==KFbsMessDefaultLanguageForMetrics ) - { - aMessage = EFbsMessDefaultLanguageForMetrics; - } - else if ( fbsMessage==KFbsMessSetTwipsHeight ) - { - aMessage = EFbsMessSetTwipsHeight; - } - else if ( fbsMessage==KFbsMessGetTwipsHeight ) - { - aMessage = EFbsMessGetTwipsHeight; - } - else if ( fbsMessage==KFbsCompress ) - { - aMessage = EFbsCompress; - } - else if ( fbsMessage==KFbsMessBitmapBgCompress ) - { - aMessage = EFbsMessBitmapBgCompress; - } - - else if ( fbsMessage==KFbsSetSystemDefaultTypefaceName ) - { - aMessage = EFbsSetSystemDefaultTypefaceName; - } - else if ( fbsMessage==KFbsGetAllBitmapHandles ) - { - aMessage = EFbsGetAllBitmapHandles; - } - else if ( fbsMessage==KFbsMessSetHeapFail ) - { - aMessage = EFbsMessSetHeapFail; - } - else if ( fbsMessage==KFbsMessHeapCount ) - { - aMessage = EFbsMessHeapCount; - } - else if ( fbsMessage==KFbsMessSetHeapReset ) - { - aMessage = EFbsMessSetHeapReset; - } - else if ( fbsMessage==KFbsMessSetHeapCheck ) - { - aMessage = EFbsMessSetHeapCheck; - } - else if ( fbsMessage==KFbsMessHeap ) - { - aMessage = EFbsMessHeap; - } - else if ( fbsMessage==KFbsMessBitmapClean ) - { - aMessage = EFbsMessBitmapClean; - } - else - { - ret=GetIntFromConfig(aSection, KFbsMessage(), aMessage); - } - } - - return ret; - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fbserv/src/T_DataFbsTypefaceStore.cpp --- a/graphicsapitest/graphicssvs/fbserv/src/T_DataFbsTypefaceStore.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,722 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataFbsTypefaceStore -*/ - -#include "T_DataFbsTypefaceStore.h" -#include "T_GraphicsUtil.h" - - -/*@{*/ -/// Parameters -_LIT(KAllFonts, "all_fonts"); -_LIT(KDriveName, "drive_name"); -_LIT(KFileName, "file_name"); -_LIT(KFont, "font"); -_LIT(KFontUid, "font_uid"); -_LIT(KFontNameAlias, "font_name_alias"); -_LIT(KFontName, "font_name"); -_LIT(KLanguage, "language"); -_LIT(KTypefaceId, "typeface_id"); -_LIT(KGraphicsDevice, "graphics_device"); -_LIT(KFontMaxHeight, "font_max_height"); -_LIT(KTypefaceIndex, "typeface_index"); -_LIT(KHeightIndex, "height_index"); -_LIT(KUseFileName, "use_file_name"); -_LIT(KUseDriveName, "use_drive_name"); -_LIT(KAlgStyle, "alg_style"); -_LIT(KCheckAgainstMaximum, "check_against_maximum"); -_LIT(KCheckHeightPositive, "check_height_positive"); -_LIT(KGlyphBitmapType, "glyph_bitmap_type"); - -/// Commands -_LIT(KCmdNewL, "NewL"); -_LIT(KCmdAddFile, "AddFile"); -_LIT(KCmdInstallFile, "InstallFile"); -_LIT(KCmdRemoveFile, "RemoveFile"); -_LIT(KCmdGetNearestFontInPixels, "GetNearestFontInPixels"); -_LIT(KCmdGetNearestFontToDesignHeightInPixels, "GetNearestFontToDesignHeightInPixels"); -_LIT(KCmdGetNearestFontToMaxHeightInPixels, "GetNearestFontToMaxHeightInPixels"); -_LIT(KCmdGetFontById, "GetFontById"); -_LIT(KCmdFontHeightInPixels, "FontHeightInPixels"); -_LIT(KCmdDefaultBitmapType, "DefaultBitmapType"); -_LIT(KCmdSetDefaultBitmapType, "SetDefaultBitmapType"); -_LIT(KCmdSetFontNameAliasL, "SetFontNameAliasL"); -_LIT(KCmdSetDefaultLanguageForMetrics, "SetDefaultLanguageForMetrics"); -_LIT(KCmdRemoveFontFileLocksL, "RemoveFontFileLocksL"); -_LIT(KCmdSetSystemDefaultTypefaceName, "SetSystemDefaultTypefaceNameL"); -_LIT(KCmdDestructor, "~"); - -/// Logging -_LIT(KLogError, "Error=%d"); -_LIT(KLogMissingParameter, "Missing parameter '%S'"); -/*@}*/ - - -/** -* Two phase constructor -*/ -CT_DataFbsTypefaceStore* CT_DataFbsTypefaceStore::NewL() - { - CT_DataFbsTypefaceStore* ret = new (ELeave) CT_DataFbsTypefaceStore(); - CleanupStack::PushL(ret); - ret->ConstructL(); - CleanupStack::Pop(ret); - return ret; - } - - -/** -* Protected constructor. First phase construction -*/ -CT_DataFbsTypefaceStore::CT_DataFbsTypefaceStore() -: CT_DataTypefaceStore() -, iFbsTypefaceStore(NULL) -, iLastTypefaceFileId(0) - { - } - - -/** -* Protected second phase construction -*/ -void CT_DataFbsTypefaceStore::ConstructL() - { - } - - -/** -* Destructor. -*/ -CT_DataFbsTypefaceStore::~CT_DataFbsTypefaceStore() - { - DestroyData(); - } - - -/** -* cleanup implementation. -*/ -void CT_DataFbsTypefaceStore::DestroyData() - { - delete iFbsTypefaceStore; - iFbsTypefaceStore = NULL; - } - - -/** -* Return a pointer to the object that the data wraps -* -* @return pointer to the object that the data wraps -*/ -TAny* CT_DataFbsTypefaceStore::GetObject() - { - return iFbsTypefaceStore; - } - - -/** -* Process a command read from the ini file -* -* @param aDataWrapper test step requiring command to be processed -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* -* @return ETrue if the command is processed -*/ -TBool CT_DataFbsTypefaceStore::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex) - { - TBool ret=ETrue; - - if (aCommand == KCmdNewL) - { - DoCmdNewL(aSection); - } - else if (aCommand == KCmdAddFile) - { - DoCmdAddFile(aSection); - } - else if (aCommand == KCmdInstallFile) - { - DoCmdInstallFile(aSection); - } - else if (aCommand == KCmdRemoveFile) - { - DoCmdRemoveFile(aSection); - } - else if (aCommand == KCmdGetNearestFontInPixels) - { - DoCmdGetNearestFontInPixelsL(aSection); - } - else if (aCommand == KCmdGetNearestFontToDesignHeightInPixels) - { - DoCmdGetNearestFontToDesignHeightInPixelsL(aSection); - } - else if (aCommand == KCmdGetNearestFontToMaxHeightInPixels) - { - DoCmdGetNearestFontToMaxHeightInPixelsL(aSection); - } - else if (aCommand == KCmdGetFontById) - { - DoCmdGetFontByIdL(aSection); - } - else if (aCommand == KCmdFontHeightInPixels) - { - DoCmdFontHeightInPixels(aSection); - } - else if (aCommand == KCmdDefaultBitmapType) - { - DoCmdDefaultBitmapType(aSection); - } - else if (aCommand == KCmdSetDefaultBitmapType) - { - DoCmdSetDefaultBitmapType(aSection); - } - else if (aCommand == KCmdSetFontNameAliasL) - { - DoCmdSetFontNameAlias(aSection); - } - else if (aCommand == KCmdSetDefaultLanguageForMetrics) - { - DoCmdSetDefaultLanguageForMetrics(aSection); - } - else if (aCommand == KCmdRemoveFontFileLocksL) - { - DoCmdRemoveFontFileLocks(aSection); - } - else if (aCommand == KCmdSetSystemDefaultTypefaceName) - { - DoCmdSetSystemDefaultTypefaceName(aSection); - } - else if (aCommand == KCmdDestructor) - { - DestroyData(); - } - else - { - ret=CT_DataTypefaceStore::DoCommandL(aCommand, aSection, aAsyncErrorIndex); - } - - return ret; - } - - -CTypefaceStore* CT_DataFbsTypefaceStore::GetTypefaceStore() const - { - return iFbsTypefaceStore; - } - - - -////////////////// COMMANDS IMPLEMENTATION //////////////////////// - -/** CFbsTypefaceStore::NewL() call */ -void CT_DataFbsTypefaceStore::DoCmdNewL(const TDesC& aSection) - { - INFO_PRINTF1(_L("CFbsTypefaceStore::NewL() call")); - - // cleanup if any - DestroyData(); - - - // get FbsBitmapData object from parameters - CGraphicsDevice* device=NULL; - TPtrC deviceName; - if ( GetStringFromConfig(aSection, KGraphicsDevice(), deviceName) ) - { - // check that the data object was found - device=static_cast(GetDataObjectL(deviceName)); - } - - // do create - TRAPD(err, iFbsTypefaceStore = CFbsTypefaceStore::NewL(device)); - - // check error code - if (err != KErrNone) - { - ERR_PRINTF2(_L("CFbsTypefaceStore creation error: %d"), err); - SetError(err); - } - } - - -/** Call CFbsTypefaceStore::GetNearestFontInPixels() */ -void CT_DataFbsTypefaceStore::DoCmdGetNearestFontInPixelsL(const TDesC& aSection) - { - INFO_PRINTF1(_L("Call CFbsTypefaceStore::GetNearestFontInPixels()")); - - TFontSpec fontSpec; - if ( !GetFontSpecFromConfig(aSection, KFont, fontSpec) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFont()); - SetBlockResult(EFail); - } - else - { - // call CFbsTypefaceStore::GetNearestFontInPixels() - CFont* font = NULL; - TInt err = iFbsTypefaceStore->GetNearestFontInPixels(font, fontSpec); - - // check error code - if (err != KErrNone) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - else - { - // set fbs font data object of provided - SetFontDataObjectIfPassedAsParameterL(font, aSection); - } - } - } - - -/** Call CFbsTypefaceStore::GetNearestFontToDesignHeightInPixels() */ -void CT_DataFbsTypefaceStore::DoCmdGetNearestFontToDesignHeightInPixelsL(const TDesC& aSection) - { - INFO_PRINTF1(_L("Call CFbsTypefaceStore::GetNearestFontToDesignHeightInPixels()")); - - TFontSpec fontSpec; - if ( !GetFontSpecFromConfig(aSection, KFont, fontSpec) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFont()); - SetBlockResult(EFail); - } - else - { - // call CFbsTypefaceStore::GetNearestFontToDesignHeightInPixels() - CFont* fbsFont = NULL; - TInt err = iFbsTypefaceStore->GetNearestFontToDesignHeightInPixels(fbsFont, fontSpec); - - // check error code - if (err != KErrNone) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - else - { - // set fbs font data object of provided - SetFontDataObjectIfPassedAsParameterL(fbsFont, aSection); - } - } - } - - -/** Call CFbsTypefaceStore::GetNearestFontToMaxHeightInPixels() */ -void CT_DataFbsTypefaceStore::DoCmdGetNearestFontToMaxHeightInPixelsL(const TDesC& aSection) - { - INFO_PRINTF1(_L("Call CFbsTypefaceStore::GetNearestFontToMaxHeightInPixels()")); - - TBool dataOk=ETrue; - - TFontSpec fontSpec; - if ( !GetFontSpecFromConfig(aSection, KFont, fontSpec) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFont()); - SetBlockResult(EFail); - } - - TInt fontMaxHeight; - if ( !GetIntFromConfig(aSection, KFontMaxHeight(), fontMaxHeight) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFontMaxHeight()); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - // call CFbsTypefaceStore::GetNearestFontToMaxHeightInPixels() - CFont* fbsFont = NULL; - TInt err = iFbsTypefaceStore->GetNearestFontToMaxHeightInPixels(fbsFont, fontSpec, fontMaxHeight); - - // check error code - if (err != KErrNone) - { - ERR_PRINTF2(_L("Get nearest font to max height in twips error: %d"), err); - SetError(err); - } - else - { - // set fbs font data object of provided - SetFontDataObjectIfPassedAsParameterL(fbsFont, aSection); - - // get check against maximum parameter from parameters - TBool checkAgainstMaximum = EFalse; - GetBoolFromConfig(aSection, KCheckAgainstMaximum(), checkAgainstMaximum); - - if ( checkAgainstMaximum ) - { - // check that the height of the returned font is not greater that the maximum specified - if (fbsFont->HeightInPixels() > fontMaxHeight) - { - ERR_PRINTF3(_L("Font doesn't match in maximum specified, height: %d, maximum: %d"), fbsFont->HeightInPixels(), fontMaxHeight); - SetBlockResult(EFail); - } - } - } - } - } - - -/** Call CFbsTypefaceStore::AddFile(), remeber typeface id */ -void CT_DataFbsTypefaceStore::DoCmdAddFile(const TDesC& aSection) - { - INFO_PRINTF1(_L("Call CFbsTypefaceStore::AddFile(), remeber typeface id")); - - // get font file name from parameters - TPtrC fileName; - if (!GetStringFromConfig(aSection, KFileName(), fileName)) - { - ERR_PRINTF2(_L("No %S"), &KFileName()); - SetBlockResult(EFail); - } - else - { - // call AddFile() - TInt err = iFbsTypefaceStore->AddFile(fileName, iLastTypefaceFileId); - INFO_PRINTF2(_L("Id %d"), iLastTypefaceFileId); - - // check error code - if (err != KErrNone) - { - ERR_PRINTF2(_L("Add file error: %d"), err); - SetError(err); - } - } - } - - -/** Call CFbsTypefaceStore::InstallFile(), remeber typeface id */ -void CT_DataFbsTypefaceStore::DoCmdInstallFile(const TDesC& aSection) - { - INFO_PRINTF1(_L("Call CFbsTypefaceStore::InstallFile(), remeber typeface id")); - - // get font file name from parameters - TPtrC fileName; - if (!GetStringFromConfig(aSection, KFileName(), fileName)) - { - ERR_PRINTF2(_L("No %S"), &KFileName()); - SetBlockResult(EFail); - } - else - { - // call InstallFile() - TInt err = iFbsTypefaceStore->InstallFile(fileName, iLastTypefaceFileId); - INFO_PRINTF2(_L("Id %d"), iLastTypefaceFileId); - - // check error code - if (err != KErrNone) - { - ERR_PRINTF2(_L("Install file error: %d"), err); - SetError(err); - } - } - } - - -/** Call CFbsTypefaceStore::RemoveFile() */ -void CT_DataFbsTypefaceStore::DoCmdRemoveFile(const TDesC& aSection) - { - INFO_PRINTF1(_L("Call CFbsTypefaceStore::RemoveFile()")); - - // get typeface id from parameters if provided - TInt typefaceId=iLastTypefaceFileId; - GetIntFromConfig(aSection, KTypefaceId(), typefaceId); - INFO_PRINTF2(_L("Typeface id provided : %d"), typefaceId); - - // call RemoveFile() - iFbsTypefaceStore->RemoveFile(typefaceId); - } - - -/** Call CFbsTypefaceStore::GetFontById() */ -void CT_DataFbsTypefaceStore::DoCmdGetFontByIdL(const TDesC& aSection) - { - INFO_PRINTF1(_L("Call CFbsTypefaceStore::GetFontById()")); - - // get font uid from parameters - TInt fontUid; - if(!GetIntFromConfig(aSection, KFontUid(), fontUid)) - { - ERR_PRINTF2(_L("No %S"), &KFontUid()); - SetBlockResult(EFail); - } - - // call GetFontById() - TAlgStyle* algStylePointer = NULL; - CT_GraphicsUtil::GetAlgStyleL(*this, aSection, KAlgStyle(), algStylePointer); - - CFont* fbsFont = NULL; - TInt err = KErrNone; - if (algStylePointer == NULL) - { - TAlgStyle algStyle; - err = iFbsTypefaceStore->GetFontById(fbsFont, TUid::Uid(fontUid), algStyle); - } - else - { - err = iFbsTypefaceStore->GetFontById(fbsFont, TUid::Uid(fontUid), *algStylePointer); - } - - // check error code - if (err != KErrNone) - { - ERR_PRINTF2(_L("Get font by id error: %d"), err); - SetError(err); - } - } - - -/** Call CFbsTypefaceStore::FontHeightInPixels() */ -void CT_DataFbsTypefaceStore::DoCmdFontHeightInPixels(const TDesC& aSection) - { - INFO_PRINTF1(_L("Call CFbsTypefaceStore::FontHeightInPixels()")); - TBool dataOk=ETrue; - - // get typeface index from parameters - TInt typefaceIndex; - if(!GetIntFromConfig(aSection, KTypefaceIndex(), typefaceIndex)) - { - ERR_PRINTF2(_L("No %S"), &KTypefaceIndex()); - SetBlockResult(EFail); - dataOk=EFalse; - } - - // get height index from parameters - TInt heightIndex; - if(!GetIntFromConfig(aSection, KHeightIndex(), heightIndex)) - { - ERR_PRINTF2(_L("No %S"), &KHeightIndex()); - SetBlockResult(EFail); - dataOk=EFalse; - } - - if ( dataOk ) - { - TInt typefaceHeight = iFbsTypefaceStore->FontHeightInPixels(typefaceIndex, heightIndex); - - // get positive height check flag from parameters - TBool checkHeightPositive = EFalse; - GetBoolFromConfig(aSection, KCheckHeightPositive(), checkHeightPositive); - - // check that TTypefaceSupport fields are set - if ( checkHeightPositive && (typefaceHeight<=0) ) - { - ERR_PRINTF2(_L("Typeface height is not greater than 0, height: %d"), typefaceHeight); - SetBlockResult(EFail); - } - } - } - - -/** Call CFbsTypefaceStore::DefaultBitmapType() and compare value with expected */ -void CT_DataFbsTypefaceStore::DoCmdDefaultBitmapType(const TDesC& aSection) - { - // get actual value of default bitmap type - TGlyphBitmapType actualValue = iFbsTypefaceStore->DefaultBitmapType(); - - INFO_PRINTF2(_L("CFbsTypefaceStore::DefaultBitmapType() %d"), actualValue); - - - // get expected value of default bitmap type from parameters - TGlyphBitmapType expectedType; - if (!CT_GraphicsUtil::ReadGlyphBitmapType(*this, aSection, KGlyphBitmapType(), expectedType)) - { - ERR_PRINTF1(_L("No glyph_bitmap_type")); - SetBlockResult(EFail); - } - - // compare - if (actualValue != expectedType) - { - ERR_PRINTF3(_L("Value of default bitmap type is not as expected, expected: %d, actual: %d"), expectedType, actualValue); - SetBlockResult(EFail); - } - } - - -/** Call CFbsTypefaceStore::SetDefaultBitmapType() */ -void CT_DataFbsTypefaceStore::DoCmdSetDefaultBitmapType(const TDesC& aSection) - { - INFO_PRINTF1(_L("Call CFbsTypefaceStore::SetDefaultBitmapType()")); - - // get expected value of default bitmap type from parameters - TGlyphBitmapType glyphBitmapType; - if (!CT_GraphicsUtil::ReadGlyphBitmapType(*this, aSection, KGlyphBitmapType(), glyphBitmapType)) - { - ERR_PRINTF1(_L("No glyph_bitmap_type")); - SetBlockResult(EFail); - } - - // get actual value of default bitmap type - iFbsTypefaceStore->SetDefaultBitmapType(glyphBitmapType); - } - - -/** Calls SetFontNameAliasL() for the given font name and alias name */ -void CT_DataFbsTypefaceStore::DoCmdSetFontNameAlias(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls SetFontNameAliasL() for the given font name and alias name")); - TBool dataOk=ETrue; - - // get font name from parameters - TPtrC fontName; - if (!GetStringFromConfig(aSection, KFontName(), fontName)) - { - ERR_PRINTF2(_L("No %S"), &KFontName()); - SetBlockResult(EFail); - dataOk=EFalse; - } - - // get font name alias from parameters - TPtrC fontNameAlias; - if (!GetStringFromConfig(aSection, KFontNameAlias(), fontNameAlias)) - { - ERR_PRINTF2(_L("No %S"), &KFontNameAlias()); - SetBlockResult(EFail); - dataOk=EFalse; - } - - if ( dataOk ) - { - // set font name alias - TRAPD(err, iFbsTypefaceStore->SetFontNameAliasL(fontNameAlias, fontName)); - - // check error code - if (err != KErrNone) - { - ERR_PRINTF2(_L("Set font name alias error: %d"), err); - SetError(err); - } - } - } - - -/** Call CFbsTypefaceStore::SetDefaultLanguageForMetrics() */ -void CT_DataFbsTypefaceStore::DoCmdSetDefaultLanguageForMetrics(const TDesC& aSection) - { - INFO_PRINTF1(_L("Call CFbsTypefaceStore::SetDefaultLanguageForMetrics()")); - - // get language from parameters - TInt language; - if(!GetIntFromConfig(aSection, KLanguage(), language)) - { - ERR_PRINTF2(_L("No %S"), &KLanguage()); - SetBlockResult(EFail); - } - else - { - // call SetDefaultLanguageForMetrics for the given language - iFbsTypefaceStore->SetDefaultLanguageForMetrics((TLanguage) language); - } - } - - -/** Call CFbsTypefaceStore::RemoveFontFileLocksL() */ -void CT_DataFbsTypefaceStore::DoCmdRemoveFontFileLocks(const TDesC& aSection) - { - // get if to call by file name flag from parameters - TBool useFileName = EFalse; - GetBoolFromConfig(aSection, KUseFileName(), useFileName); - - // get if to call by drive name flag from parameters - TBool useDriveName = EFalse; - GetBoolFromConfig(aSection, KUseDriveName(), useDriveName); - - TInt err = KErrNone; - - if (useDriveName && useFileName) - { - ERR_PRINTF1(_L("Cannot all by both file and drive name")); - SetBlockResult(EFail); - } - else if (useDriveName) - { - // get drive name from parameters - TPtrC driveName; - if (!GetStringFromConfig(aSection, KDriveName(), driveName)) - { - ERR_PRINTF2(_L("No %S"), &KDriveName()); - SetBlockResult(EFail); - } - - // get all-fonts boolean value from parameters - TBool allFonts = EFalse; - GetBoolFromConfig(aSection, KAllFonts(), allFonts); - - // call RemoveFontFileLocksL() - TRAP(err, iFbsTypefaceStore->RemoveFontFileLocksL(driveName, allFonts)); - } - else if (useFileName) - { - // get file name from parameters - TPtrC fileName; - if (!GetStringFromConfig(aSection, KFileName(), fileName)) - { - ERR_PRINTF2(_L("No %S"), &KFileName()); - SetBlockResult(EFail); - } - else - { - // call RemoveFontFileLocksL() - TRAP(err, iFbsTypefaceStore->RemoveFontFileLocksL(fileName)); - } - } - else - { - TRAP(err, iFbsTypefaceStore->RemoveFontFileLocksL()); - } - - // check error code - if (err != KErrNone) - { - ERR_PRINTF2(_L("Remove font file lock error: %d"), err); - SetError(err); - } - } - - -/** Call CFbsTypefaceStore::SetSystemDefaultTypefaceNameL() */ -void CT_DataFbsTypefaceStore::DoCmdSetSystemDefaultTypefaceName(const TDesC& aSection) - { - - TPtrC name; - if ( GetStringFromConfig(aSection, KFontName(), name) ) - { - TRAPD(err, iFbsTypefaceStore->SetSystemDefaultTypefaceNameL(name)); - if (err != KErrNone) - { - ERR_PRINTF2(_L("SetSystemDefaultTypefaceNameL error: %d"), err); - SetError(err); - } - } - else - { - ERR_PRINTF2(_L("No %S"), &KFontName()); - SetBlockResult(EFail); - } - } - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fbserv/src/T_FBServAPIServer.cpp --- a/graphicsapitest/graphicssvs/fbserv/src/T_FBServAPIServer.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,82 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -The main entry point for the TEF Server T_FBServAPIAddr.exe -*/ - -// User Includes -#include "T_FBServAPIServer.h" - -CT_FBServAPIServer* CT_FBServAPIServer::NewL() -/** - * @return - Instance of the test server - * Same code for Secure and non-secure variants - * Called inside the MainL() function to create and start the - * CTestServer derived server. - */ - { - CT_FBServAPIServer* server = new (ELeave) CT_FBServAPIServer(); - CleanupStack::PushL(server); - server->ConstructL(); - CleanupStack::Pop(server); - return server; - } - -LOCAL_C void MainL() -/** - * Secure variant - * Much simpler, uses the new Rendezvous() call to sync with the client - */ - { -#if (defined __DATA_CAGING__) - RProcess().DataCaging(RProcess::EDataCagingOn); - RProcess().SecureApi(RProcess::ESecureApiOn); -#endif - CActiveScheduler* sched=NULL; - sched=new(ELeave) CActiveScheduler; - CActiveScheduler::Install(sched); - CT_FBServAPIServer* server = NULL; - TRAPD(err, server = CT_FBServAPIServer::NewL()); - if(!err) - { - RProcess::Rendezvous(KErrNone); - sched->Start(); - } - delete server; - delete sched; - } - -GLDEF_C TInt E32Main() -/** - * @return - Standard Epoc error code on process exit - * Secure variant only - * Process entry point. Called by client using RProcess API - */ - { - CTrapCleanup* cleanup = CTrapCleanup::New(); - if(cleanup == NULL) - { - return KErrNoMemory; - } - TRAP_IGNORE(MainL()); - delete cleanup; - return KErrNone; - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fbserv/testdata/GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini --- a/graphicsapitest/graphicssvs/fbserv/testdata/GRAPHICS-FBSERV-BitmapUtil-PublicApi.ini Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,664 +0,0 @@ -[include] -file1 =\graphics\t_graphics.ini - - -[TBitmapUtil1] -name =TBitmapUtil1 - -[CFbsBitmap1] -name =CFbsBitmap1 - -[RFbsSession1] -name =RFbsSession1 - -[TBitmapUtil2] -name =TBitmapUtil2 - -[CFbsBitmap2] -name =CFbsBitmap2 - - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0001-001-Create_command04] -displaymode ={default_fbserv,displaymode} -width =100 -height =100 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0001-001-New_command06] -bitmap =CFbsBitmap1 - - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0002-001-Create_command04] -displaymode ={default_fbserv,displaymode} -width =100 -height =100 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0002-001-New_command06] -bitmap =CFbsBitmap1 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0002-001-Begin_command07] -point_x =0 -point_y =0 - - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0003-001-Create_command04] -displaymode ={default_fbserv,displaymode} -width =100 -height =100 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0003-001-New_command06] -bitmap =CFbsBitmap1 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0003-001-Create_command09] -displaymode ={default_fbserv,displaymode} -width =100 -height =100 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0003-001-Begin_command11] -point_x =0 -point_y =0 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0003-001-New_command13] -bitmap =CFbsBitmap2 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0003-001-Begin_command14] -point_x =0 -point_y =0 -other_bitmap_util =TBitmapUtil1 - - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0004-001-Create_command04] -displaymode ={default_fbserv,displaymode} -width =100 -height =100 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0004-001-New_command06] -bitmap =CFbsBitmap1 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0004-001-Begin_command07] -point_x =0 -point_y =0 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0004-001-SetPixel_command08] -color =128 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0004-001-GetPixel_command09] -color =128 - - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0005-001-Create_command04] -displaymode ={default_fbserv,displaymode} -width =100 -height =100 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0005-001-New_command06] -bitmap =CFbsBitmap1 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0005-001-Begin_command07] -point_x =0 -point_y =0 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0005-001-SetPixel_command08] -color =128 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0005-001-Create_command12] -displaymode ={default_fbserv,displaymode} -width =100 -height =100 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0005-001-New_command14] -bitmap =CFbsBitmap2 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0005-001-Begin_command15] -point_x =0 -point_y =0 -other_bitmap_util =TBitmapUtil1 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0005-001-SetPixel_command16] -other_bitmap_util =TBitmapUtil1 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0005-001-GetPixel_command17] -color =128 - - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006-001-Create_command04] -displaymode ={default_fbserv,displaymode} -width =100 -height =100 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006-001-New_command06] -bitmap =CFbsBitmap1 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006-001-Begin_command07] -point_x =0 -point_y =0 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006-001-SetPixel_command08] -color =0 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006-001-SetPos_command09] -point_x =1 -point_y =0 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006-001-SetPixel_command10] -color =1 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006-001-SetPos_command11] -point_x =0 -point_y =1 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006-001-SetPixel_command12] -color =2 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006-001-SetPos_command13] -point_x =1 -point_y =1 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006-001-SetPixel_command14] -color =3 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006-001-SetPos_command15] -point_x =0 -point_y =0 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006-001-GetPixel_command16] -color =0 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006-001-SetPos_command17] -point_x =1 -point_y =0 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006-001-GetPixel_command18] -color =1 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006-001-SetPos_command19] -point_x =0 -point_y =1 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006-001-GetPixel_command20] -color =2 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006-001-SetPos_command21] -point_x =1 -point_y =1 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0006-001-GetPixel_command22] -color =3 - - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0007-001-Create_command04] -displaymode ={default_fbserv,displaymode} -width =100 -height =100 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0007-001-New_command06] -bitmap =CFbsBitmap1 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0007-001-Begin_command07] -point_x =10 -point_y =10 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0007-001-SetPixel_command09] -color =1 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0007-001-SetPixel_command11] -color =2 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0007-001-SetPixel_command13] -color =3 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0007-001-SetPixel_command15] -color =4 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0007-001-SetPos_command16] -point_x =9 -point_y =10 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0007-001-GetPixel_command17] -color =1 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0007-001-SetPos_command18] -point_x =9 -point_y =9 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0007-001-GetPixel_command19] -color =2 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0007-001-SetPos_command20] -point_x =10 -point_y =9 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0007-001-GetPixel_command21] -color =3 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0007-001-SetPos_command22] -point_x =10 -point_y =10 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0007-001-GetPixel_command23] -color =4 - - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0008-001-New_command03] -bitmap =CFbsBitmap1 - - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0009-001-New_command03] -bitmap =CFbsBitmap1 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0009-001-Begin_command04] -point_x =0 -point_y =0 - - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0010-001-New_command05] -bitmap =CFbsBitmap1 - - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0011-001-New_command05] -bitmap =CFbsBitmap1 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0011-001-Create_command06] -displaymode =ERgb -width =100 -height =100 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0011-001-Begin_command07] -point_x =0 -point_y =0 - - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0012-001-Create_command04] -displaymode ={default_fbserv,displaymode} -width =100 -height =100 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0012-001-New_command06] -bitmap =CFbsBitmap1 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0012-001-Begin_command07] -point_x =-1 -point_y =-1 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0012-001-SetPixel_command08] -color =0 - - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0013-001-Create_command04] -displaymode =EGray16 -width =100 -height =100 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0013-001-New_command06] -bitmap =CFbsBitmap1 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0013-001-Begin_command07] -point_x =0 -point_y =0 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0013-001-SetPixel_command08] -color =16 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0013-001-GetPixel_command09] -color =0 - - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0014-001-Create_command04] -displaymode ={default_fbserv,displaymode} -width =100 -height =100 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0014-001-New_command06] -bitmap =CFbsBitmap1 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0014-001-Begin_command07] -point_x =0 -point_y =0 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0014-001-SetPos_command08] -point_x =100 -point_y =100 - - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0015-001-Create_command04] -displaymode ={default_fbserv,displaymode} -width =1 -height =1 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0015-001-New_command06] -bitmap =CFbsBitmap1 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0015-001-Begin_command07] -point_x =0 -point_y =0 - - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0016-001-Create_command04] -displaymode ={default_fbserv,displaymode} -width =1 -height =1 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0016-001-New_command06] -bitmap =CFbsBitmap1 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0016-001-Begin_command07] -point_x =0 -point_y =0 - - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0017-001-Create_command04] -displaymode ={default_fbserv,displaymode} -width =1 -height =1 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0017-001-New_command06] -bitmap =CFbsBitmap1 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0017-001-Begin_command07] -point_x =0 -point_y =0 - - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0018-001-Create_command04] -displaymode ={default_fbserv,displaymode} -width =1 -height =1 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0018-001-New_command06] -bitmap =CFbsBitmap1 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0018-001-Begin_command07] -point_x =0 -point_y =0 - - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0019-001-Create_command04] -displaymode ={default_fbserv,displaymode} -width =100 -height =100 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0019-001-New_command06] -bitmap =CFbsBitmap1 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0019-001-Begin_command07] -point_x =-1 -point_y =0 -use_other_bitmap_util =FALSE - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0019-001-Begin_command09] -point_x =0 -point_y =-1 -use_other_bitmap_util =FALSE - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0019-001-Begin_command11] -point_x =100 -point_y =0 -use_other_bitmap_util =FALSE - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0019-001-Begin_command13] -point_x =0 -point_y =100 -use_other_bitmap_util =FALSE - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0019-001-Begin_command15] -point_x =100 -point_y =100 -use_other_bitmap_util =FALSE - - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0020-001-Create_command04] -displaymode ={default_fbserv,displaymode} -width =100 -height =100 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0020-001-New_command06] -bitmap =CFbsBitmap1 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0020-001-Begin_command07] -point_x =0 -point_y =0 -use_other_bitmap_util =FALSE - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0020-001-SetPos_command08] -point_x =-1 -point_y =0 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0020-001-SetPos_command09] -point_x =0 -point_y =-1 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0020-001-SetPos_command10] -point_x =100 -point_y =0 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0020-001-SetPos_command11] -point_x =0 -point_y =100 - - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-Create_command04] -displaymode ={default_fbserv,displaymode} -width =100 -height =100 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-New_command06] -bitmap =CFbsBitmap1 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-Begin_command07] -point_x =10 -point_y =10 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-SetPixel_command09] -color =128 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-SetPixel_command11] -color =127 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-SetPixel_command13] -color =126 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-SetPixel_command15] -color =125 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-SetPixel_command17] -color =124 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-SetPixel_command19] -color =123 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-SetPixel_command21] -color =122 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-SetPixel_command23] -color =121 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-SetPixel_command25] -color =120 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-SetPixel_command27] -color =119 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-GetPixel_command28] -color =119 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-GetPixel_command30] -color =120 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-GetPixel_command32] -color =121 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-GetPixel_command34] -color =122 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-GetPixel_command36] -color =123 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-GetPixel_command38] -color =124 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-GetPixel_command40] -color =125 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-GetPixel_command42] -color =126 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-GetPixel_command44] -color =127 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0021-001-GetPixel_command46] -color =128 - - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-Create_command04] -displaymode =EColor16M -width =100 -height =100 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-New_command06] -bitmap =CFbsBitmap1 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-Begin_command07] -point_x =10 -point_y =10 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-SetPixel_command09] -color =128 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-SetPixel_command11] -color =127 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-SetPixel_command13] -color =126 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-SetPixel_command15] -color =125 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-SetPixel_command17] -color =124 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-SetPixel_command19] -color =123 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-SetPixel_command21] -color =122 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-SetPixel_command23] -color =121 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-SetPixel_command25] -color =120 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-SetPixel_command27] -color =119 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-GetPixel_command28] -color =119 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-GetPixel_command30] -color =120 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-GetPixel_command32] -color =121 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-GetPixel_command34] -color =122 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-GetPixel_command36] -color =123 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-GetPixel_command38] -color =124 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-GetPixel_command40] -color =125 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-GetPixel_command42] -color =126 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-GetPixel_command44] -color =127 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0022-001-GetPixel_command46] -color =128 - - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-Create_command04] -displaymode =EColor16MU -width =100 -height =100 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-New_command06] -bitmap =CFbsBitmap1 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-Begin_command07] -point_x =10 -point_y =10 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-SetPixel_command09] -color =128 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-SetPixel_command11] -color =127 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-SetPixel_command13] -color =126 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-SetPixel_command15] -color =125 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-SetPixel_command17] -color =124 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-SetPixel_command19] -color =123 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-SetPixel_command21] -color =122 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-SetPixel_command23] -color =121 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-SetPixel_command25] -color =120 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-SetPixel_command27] -color =119 - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-GetPixel_command28] -color =119 -colormask =FFFFFF - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-GetPixel_command30] -color =120 -colormask =FFFFFF - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-GetPixel_command32] -color =121 -colormask =FFFFFF - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-GetPixel_command34] -color =122 -colormask =FFFFFF - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-GetPixel_command36] -color =123 -colormask =FFFFFF - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-GetPixel_command38] -color =124 -colormask =FFFFFF - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-GetPixel_command40] -color =125 -colormask =FFFFFF - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-GetPixel_command42] -color =126 -colormask =FFFFFF - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-GetPixel_command44] -color =127 -colormask =FFFFFF - -[GRAPHICS-FBSERV-BitmapUtil-PublicApi-0023-001-GetPixel_command46] -color =128 -colormask =FFFFFF diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fbserv/testdata/GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini --- a/graphicsapitest/graphicssvs/fbserv/testdata/GRAPHICS-FBSERV-FbsBitmap-PublicApi.ini Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1992 +0,0 @@ -[include] -file1 =\graphics\t_graphics.ini - - -[CFbsBitmap1] -name =CFbsBitmap1 - -[CFbsBitmap2] -name =CFbsBitmap2 - -[RFbsSession1] -name =RFbsSession1 - -[CFbsBitmapDevice1] -name =CFbsBitmapDevice1 - -[CPalette1] -name =CPalette1 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0001-001command4Load] -bitmap_id =0 -file_name ={default_fbserv,file_name} -share_if_loaded =TRUE -use_rfile =FALSE - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0002-001command4Load] -bitmap_id =0 -file_name ={default_fbserv,file_name} -share_if_loaded =FALSE -use_rfile =TRUE - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0003-001command4Load] -bitmap_id =0 -file_name =\graphics\t_fbservapi\test_bitmap_offset8.mbm -share_if_loaded =FALSE -use_rfile =FALSE -file_offset =8 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0004-001command4Load] -bitmap_id =0 -file_name =\graphics\t_fbservapi\test_bitmap_offset8.mbm -share_if_loaded =TRUE -use_rfile =TRUE -file_offset =8 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0004-001command5IsCompressedInRAM] -expected_bool =FALSE - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0005-001command4LoadAndCompress] -bitmap_id =0 -file_name ={default_fbserv,file_name} -share_if_loaded =TRUE -use_rfile =FALSE - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0005-001command5IsCompressedInRAM] -expected_bool =TRUE - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0006-001command4LoadAndCompress] -bitmap_id =0 -file_name ={default_fbserv,file_name} -share_if_loaded =FALSE -use_rfile =TRUE - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0006-001command5IsCompressedInRAM] -expected_bool =TRUE - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0007-001command4LoadAndCompress] -bitmap_id =0 -file_name =\graphics\t_fbservapi\test_bitmap_offset8.mbm -share_if_loaded =FALSE -use_rfile =FALSE -file_offset =8 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0007-001command5IsCompressedInRAM] -expected_bool =TRUE - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0008-001command4LoadAndCompress] -bitmap_id =0 -file_name =\graphics\t_fbservapi\test_bitmap_offset8.mbm -share_if_loaded =TRUE -use_rfile =TRUE -file_offset =8 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0008-001command5IsCompressedInRAM] -expected_bool =TRUE - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0009-001command4Load] -bitmap_id =0 -file_name ={default_fbserv,file_name} -share_if_loaded =TRUE -use_rfile =FALSE - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0009-001command6IsCompressedInRAM] -expected_bool =TRUE - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0010-001command5Load] -bitmap_id =0 -file_name ={default_fbserv,file_name} -share_if_loaded =TRUE -use_rfile =FALSE - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0010-001command6CompressInBackground] -use_request_status =FALSE - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0010-001command8SendCommand] -fbs_message =EFbsCompress - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0010-001command10IsCompressedInRAM] -expected_bool =TRUE - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0011-001command4Load] -bitmap_id =0 -file_name ={default_fbserv,file_name} -share_if_loaded =TRUE -use_rfile =FALSE - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0011-001command5CompressInBackground] -use_request_status =TRUE - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0011-001command6IsCompressedInRAM] -expected_bool =TRUE - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0012-001command4Load] -bitmap_id =0 -file_name ={default_fbserv,file_name} -share_if_loaded =FALSE -use_rfile =FALSE - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0013-001command4Create] -width =100 -height =200 -displaymode =EGray2 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0013-001command5Create] -width =100 -height =200 -displaymode =EGray4 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0013-001command6Create] -width ={default_fbserv,large_width} -height ={default_fbserv,large_height} -displaymode =EGray16 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0013-001command7Create] -width =32 -height =431 -displaymode =EGray256 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0013-001command8Create] -width =1 -height =1 -displaymode =EColor16 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0013-001command9Create] -width =300 -height =30 -displaymode ={default_fbserv,displaymode} - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0013-001command10Create] -width =100 -height =1 -displaymode =EColor64K - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0013-001command11Create] -width =1 -height =200 -displaymode =EColor16M - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0013-001command12Create] -width =60 -height =60 -displaymode =EColor4K - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0013-001command13Create] -width =4 -height =256 -displaymode =EColor16MU - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0013-001command14Create] -width =300 -height =200 -displaymode =EColor16MA - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0014-001command4Create] -width =100 -height =200 -displaymode =EGray2 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0014-001command5Save] -file_name =\graphics\t_fbservapi\output_fbsbitmap0014.mbm -use_rfile =FALSE - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0015-001command4Create] -width =100 -height =200 -displaymode =EGray2 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0015-001command5Save] -file_name =\graphics\t_fbservapi\output_fbsbitmap0015.mbm -use_rfile =TRUE - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0016-001command4Create] -width =100 -height =200 -displaymode =EGray2 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0016-001command5Save] -file_name =\graphics\t_fbservapi\output_fbsbitmap0016_1.mbm -use_rfile =FALSE - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0016-001command7Create] -width =10 -height =20 -displaymode =EGray4 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0016-001command8Save] -file_name =\graphics\t_fbservapi\output_fbsbitmap0016_2.mbm -use_rfile =FALSE - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0016-001command10Create] -width =200 -height =100 -displaymode =EGray2 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0016-001command11Save] -file_name =\graphics\t_fbservapi\output_fbsbitmap0016_3.mbm -use_rfile =FALSE - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0016-001command13StoreL] -file_name =\graphics\t_fbservapi\output_fbsbitmap0016.mbm -use_rfile =FALSE -source_file_name_0 =\graphics\t_fbservapi\output_fbsbitmap0016_1.mbm -source_file_name_1 =\graphics\t_fbservapi\output_fbsbitmap0016_2.mbm -source_file_name_2 =\graphics\t_fbservapi\output_fbsbitmap0016_3.mbm -source_bitmap_id_0 =0 -source_bitmap_id_1 =0 -source_bitmap_id_2 =0 -number_of_sources =3 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0017-001command4Create] -width =100 -height =200 -displaymode =EGray2 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0017-001command5Save] -file_name =\graphics\t_fbservapi\output_fbsbitmap0017_1.mbm -use_rfile =FALSE - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0017-001command7Create] -width =10 -height =20 -displaymode =EGray4 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0017-001command8Save] -file_name =\graphics\t_fbservapi\output_fbsbitmap0017_2.mbm -use_rfile =FALSE - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0017-001command10Create] -width =200 -height =100 -displaymode =EGray2 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0017-001command11Save] -file_name =\graphics\t_fbservapi\output_fbsbitmap0017_3.mbm -use_rfile =FALSE - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0017-001command13StoreL] -file_name =\graphics\t_fbservapi\output_fbsbitmap0017.mbm -use_rfile =TRUE -source_file_name_0 =\graphics\t_fbservapi\output_fbsbitmap0017_1.mbm -source_file_name_1 =\graphics\t_fbservapi\output_fbsbitmap0017_2.mbm -source_file_name_2 =\graphics\t_fbservapi\output_fbsbitmap0017_3.mbm -source_bitmap_id_0 =0 -source_bitmap_id_1 =0 -source_bitmap_id_2 =0 -number_of_sources =3 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0018-001command4Load] -bitmap_id =0 -file_name ={default_fbserv,file_name} -share_if_loaded =TRUE -use_rfile =FALSE - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0018-001command7Duplicate] -fbs_bitmap_name =CFbsBitmap1 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0018-001command8Save] -file_name =\graphics\t_fbservapi\output_fbsbitmap0018.mbm -use_rfile =FALSE - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0019-001command4Create] -width =100 -height =200 -displaymode =EGray2 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0019-001command5ExternalizeL] -file_name =\graphics\t_fbservapi\output_fbsbitmap0019.tmp -use_closed_stream =FALSE - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0019-001command6InternalizeL] -file_name =\graphics\t_fbservapi\output_fbsbitmap0019.tmp -use_closed_stream =FALSE - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0020-001command4Create] -width =100 -height =200 -displaymode =EGray2 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0020-001command5ExternalizeRectangleL] -file_name =\graphics\t_fbservapi\output_fbsbitmap0020.tmp -rect_tl_x =10 -rect_tl_y =20 -rect_br_x =30 -rect_br_y =40 -use_closed_stream =FALSE - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0020-001command6InternalizeL] -file_name =\graphics\t_fbservapi\output_fbsbitmap0020.tmp -use_closed_stream =FALSE - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0021-001command4CreateHardwareBitmap] -width =100 -height =200 -displaymode =EGray2 -uid =0 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0021-001command5HardwareBitmapHandle] -null_expected =FALSE -ignore_if_stopped =TRUE - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0022-001command4Create] -width =100 -height =200 -displaymode ={default_fbserv,displaymode} - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0022-001command5DisplayMode] -displaymode ={default_fbserv,displaymode} - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0022-001command6SetDisplayMode] -displaymode =EGray2 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0022-001command7DisplayMode] -displaymode =EGray2 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0022-001command8SetDisplayMode] -displaymode =EGray4 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0022-001command9DisplayMode] -displaymode =EGray4 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0022-001command10SetDisplayMode] -displaymode =EGray16 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0022-001command11DisplayMode] -displaymode =EGray16 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0022-001command12SetDisplayMode] -displaymode =EGray256 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0022-001command13DisplayMode] -displaymode =EGray256 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0022-001command14SetDisplayMode] -displaymode =EColor16 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0022-001command15DisplayMode] -displaymode =EColor16 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0022-001command16SetDisplayMode] -displaymode ={default_fbserv,displaymode} - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0022-001command17DisplayMode] -displaymode ={default_fbserv,displaymode} - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0022-001command18InitialDisplayMode] -displaymode ={default_fbserv,displaymode} - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0023-001command4Create] -width =100 -height =200 -displaymode ={default_fbserv,displaymode} - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0023-001command5SetScanLine] -file_name =\graphics\t_fbservapi\scaniline_10bytes.txt -scan_line_coord =0 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0023-001command6GetScanLine] -point_x =0 -point_y =0 -length =10 -displaymode ={default_fbserv,displaymode} -buff_length =10 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0023-001command7GetVerticalScanLine] -point_x =0 -use_dither_offset =FALSE -displaymode ={default_fbserv,displaymode} -buff_length =10 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0023-001command8GetVerticalScanLine] -point_x =0 -use_dither_offset =TRUE -dither_offset_x =0 -dither_offset_y =0 -displaymode ={default_fbserv,displaymode} -buff_length =10 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0024-001command4Load] -bitmap_id =0 -file_name ={default_fbserv,file_name} -share_if_loaded =TRUE -use_rfile =FALSE - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0024-001command5SetSizeInTwips] -width =20 -height =20 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0024-001command6SizeInTwips] -width =20 -height =20 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0024-001command7SetSizeInTwips] -width =30 -height =200 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0024-001command8SizeInTwips] -width =30 -height =200 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0024-001command9SetSizeInTwips] -width =100 -height =10 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0024-001command10SizeInTwips] -width =100 -height =10 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0024-001command11SetSizeInTwips] -device =CFbsBitmapDevice1 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0025-001command4Load] -bitmap_id =0 -file_name =\graphics\t_fbservapi\test_bitmap_32x8.mbm -share_if_loaded =TRUE -use_rfile =FALSE - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0025-001command7IsLargeBitmap] -expected_bool =FALSE - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0025-001command8IsMonochrome] -expected_bool =FALSE - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0025-001command9SizeInPixels] -width =32 -height =8 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0025-001command12Load] -bitmap_id =0 -file_name =\graphics\t_fbservapi\test_bitmap_24bit_400x300.mbm -share_if_loaded =TRUE -use_rfile =FALSE - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0025-001command15IsLargeBitmap] -expected_bool =TRUE - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0025-001command16IsMonochrome] -expected_bool =FALSE - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0025-001command17SizeInPixels] -width =400 -height =300 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0026-001command4Load] -bitmap_id =0 -file_name =\graphics\t_fbservapi\test_bitmap_32x8.mbm -share_if_loaded =TRUE -use_rfile =FALSE - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0026-001command5GetPixel] -point_x =0 -point_y =0 -red =0 -green =0 -blue =0 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0026-001command6GetPixel] -point_x =31 -point_y =7 -red =0 -green =0 -blue =0 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0026-001command7GetPixel] -point_x =0 -point_y =7 -red =170 -green =170 -blue =170 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0026-001command8GetPixel] -point_x =10 -point_y =2 -red =0 -green =0 -blue =0 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0026-001command9GetPixel] -point_x =20 -point_y =7 -red =170 -green =170 -blue =170 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0027-001command4Load] -bitmap_id =0 -file_name ={default_fbserv,file_name} -share_if_loaded =TRUE -use_rfile =FALSE - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0027-001command5IsFileInRom] -file_name ={default_fbserv,file_name} -use_rfile =FALSE -expected_bool =FALSE - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0027-001command8Load] -bitmap_id =0 -file_name =z:\graphics\t_fbservapi\test_bitmap_rom.rbm -share_if_loaded =TRUE -use_rfile =FALSE - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0027-001command9IsFileInRom] -file_name =z:\graphics\t_fbservapi\test_bitmap_rom.rbm -use_rfile =TRUE -expected_bool =TRUE - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0027-001command10IsRomBitmap] -expected_bool =TRUE - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0027-001command13SetRomBitmapL] -fbs_bitmap_name =CFbsBitmap2 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0027-001command14IsRomBitmap] -expected_bool =TRUE - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0028-001command3ScanLineLength] -length =200 -displaymode =EGray2 -expected_int =28 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0028-001command4ScanLineLength] -length =0 -displaymode =EGray4 -expected_int =0 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0028-001command5ScanLineLength] -length =1 -displaymode =EGray16 -expected_int =4 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0028-001command6ScanLineLength] -length ={default_fbserv,large_height} -displaymode =EGray256 -expected_int ={default_fbserv,large_height} - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0028-001command7ScanLineLength] -length =100 -displaymode =EColor16 -expected_int =52 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0028-001command8ScanLineLength] -length =6 -displaymode ={default_fbserv,displaymode} -expected_int =8 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0028-001command9ScanLineLength] -length =200 -displaymode =EColor64K -expected_int =400 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0028-001command10ScanLineLength] -length =200 -displaymode =EColor16M -expected_int =600 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0028-001command11ScanLineLength] -length ={default_fbserv,large_width} -displaymode =EColor4K -expected_int ={default_fbserv,large_height} - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0028-001command12ScanLineLength] -length =200 -displaymode =EColor16MU -expected_int =800 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0028-001command13ScanLineLength] -length =200 -displaymode =EColor16MA -expected_int =800 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0029-001command4Load] -bitmap_id =0 -file_name =\graphics\t_fbservapi\test_bitmap_24bit_400x300.mbm -share_if_loaded =TRUE -use_rfile =FALSE - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0029-001command5SizeInPixels] -width =400 -height =300 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0029-001command6Resize] -width =400 -height =300 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0029-001command7SizeInPixels] -width =400 -height =300 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0029-001command8Resize] -width ={default_fbserv,large_width} -height =500 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0029-001command9SizeInPixels] -width ={default_fbserv,large_width} -height =500 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0029-001command10Resize] -width =5 -height =3 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0029-001command11SizeInPixels] -width =5 -height =3 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0029-001command13SizeInPixels] -width =3 -height =5 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0030-001command4Load] -bitmap_id =0 -file_name ={default_fbserv,file_name} -share_if_loaded =TRUE -use_rfile =FALSE - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0030-001command5HorizontalPixelsToTwips] -pixels =100 -expected_int =0 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0030-001command6HorizontalTwipsToPixels] -twips =100 -expected_int =0 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0030-001command7VerticalPixelsToTwips] -pixels =100 -expected_int =0 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0030-001command8VerticalTwipsToPixels] -twips =100 -expected_int =0 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0032-001command4Create] -width =100 -height =200 -displaymode ={default_fbserv,displaymode} - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0032-001command5SetDisplayMode] -displaymode =999 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0033-001command4SetRomBitmapL] - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0034-001command4Create] -width =-100 -height =200 -displaymode =EGray2 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0035-001command4Create] -width =100 -height =200 -displaymode =ENone - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0036-001command4Create] -width =100 -height =200 -displaymode =ERgb - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0037-001command6Duplicate] -fbs_bitmap_name =CFbsBitmap1 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0038-001command4Create] -width =100 -height =200 -displaymode ={default_fbserv,displaymode} - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0039-001command4Create] -width =100 -height =200 -displaymode ={default_fbserv,displaymode} - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command4Create] -width =100 -height =200 -displaymode ={default_fbserv,displaymode} - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command6NewDefaultL] -displaymode =EGray2 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command8SetPalette] -palette =CPalette1 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command10NewDefaultL] -displaymode =EGray4 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command12SetPalette] -palette =CPalette1 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command14NewDefaultL] -displaymode =EGray16 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command16SetPalette] -palette =CPalette1 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command18NewDefaultL] -displaymode =EGray256 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command20SetPalette] -palette =CPalette1 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command22NewDefaultL] -displaymode =EColor16 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command24SetPalette] -palette =CPalette1 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command26NewDefaultL] -displaymode ={default_fbserv,displaymode} - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command28SetPalette] -palette =CPalette1 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command30NewL] -number_of_colors =512 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command32SetPalette] -palette =CPalette1 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command34NewL] -number_of_colors =2 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command36SetPalette] -palette =CPalette1 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command38NewL] -number_of_colors =8 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command40SetPalette] -palette =CPalette1 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command42NewL] -number_of_colors =32 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command44SetPalette] -palette =CPalette1 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command46NewL] -number_of_colors =256 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command48SetPalette] -palette =CPalette1 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command50NewL] -number_of_colors =1024 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command52SetPalette] -palette =CPalette1 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command54NewL] -number_of_colors =65536 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0040-001command56SetPalette] -palette =CPalette1 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0041-001command4Create] -width =100 -height =200 -displaymode ={default_fbserv,displaymode} - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0041-001command5SetPalette] -palette =CPalette1 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0042-001command4Create] -width =100 -height =200 -displaymode ={default_fbserv,displaymode} - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0043-001command5Load] -bitmap_id =0 -file_name ={default_fbserv,file_name} -share_if_loaded =TRUE -use_rfile =FALSE - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0043-001command6CompressInBackground] -bitmap_compression_scheme =EPaletteCompression -use_request_status =FALSE - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0043-001command8SendCommand] -fbs_message =EFbsCompress - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0043-001command10IsCompressedInRAM] -expected_bool =FALSE - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0044-001command5Load] -bitmap_id =0 -file_name ={default_fbserv,file_name} -share_if_loaded =TRUE -use_rfile =FALSE - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0044-001command7CompressInBackground] -bitmap_compression_scheme =EPaletteCompression -use_request_status =TRUE - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0044-001command9SendCommand] -fbs_message =EFbsCompress - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0044-001command12IsCompressedInRAM] -expected_bool =FALSE - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0045-001command4Load] -bitmap_id =0 -file_name ={default_fbserv,file_name} -share_if_loaded =TRUE -use_rfile =FALSE - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0045-001command5Compress] -bitmap_compression_scheme =EPaletteCompression - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0045-001command6IsCompressedInRAM] -expected_bool =TRUE - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0049-001command3ScanLineLength] -length =-1 -displaymode =EGray2 -expected_int =0 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0050-001command3ScanLineLength] -length =1 -displaymode =ENone -expected_int =0 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0051-001command3ScanLineLength] -length =1 -displaymode =ERgb -expected_int =4 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0052-001command3ScanLineLength] -length =1 -displaymode =EColorLast -expected_int =4 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0053-001command3ScanLineLength] -length =1 -displaymode =-1 -expected_int =4 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0054-001command4Create] -width =100 -height =200 -displaymode =EColorLast - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0055-001command4Create] -width =100 -height =200 -displaymode =-1 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0056-001command4Create] -width =100 -height =-200 -displaymode =EGray2 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0057-001command4Create] -width =-100 -height =-200 -displaymode =EGray2 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0058-001command4Create] -width =0 -height =0 -displaymode =EGray2 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0059-001command4Load] -bitmap_id =0 -file_name =\graphics\t_fbservapi\NON_EXISTENT_FILE.txt -share_if_loaded =TRUE -use_rfile =FALSE - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0060-001command4Load] -bitmap_id =0 -file_name =\graphics\t_fbservapi -share_if_loaded =TRUE -use_rfile =FALSE - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0061-001command4Load] -bitmap_id =0 -file_name =\graphics\t_fbservapi\empty_file.txt -share_if_loaded =TRUE -use_rfile =FALSE - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0062-001command4Load] -bitmap_id =0 -share_if_loaded =TRUE -use_closed_rfile =TRUE -file_name ={default_fbserv,file_name} -use_rfile =TRUE - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0063-001command4Load] -bitmap_id =0 -file_name ={default_fbserv,file_name} -share_if_loaded =FALSE -use_rfile =FALSE -file_offset =99999 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0064-001command4Load] -bitmap_id =0 -file_name ={default_fbserv,file_name} -share_if_loaded =FALSE -use_rfile =FALSE -file_offset =-1 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0065-001command4Load] -bitmap_id =99999 -file_name ={default_fbserv,file_name} -share_if_loaded =FALSE -use_rfile =FALSE -file_offset =0 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0066-001command4Load] -bitmap_id =-1 -file_name ={default_fbserv,file_name} -share_if_loaded =FALSE -use_rfile =FALSE -file_offset =0 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0067-001command4LoadAndCompress] -bitmap_id =0 -file_name =\graphics\t_fbservapi\NON_EXISTENT_FILE.txt -share_if_loaded =TRUE -use_rfile =FALSE - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0068-001command4LoadAndCompress] -bitmap_id =0 -file_name =\graphics\t_fbservapi -share_if_loaded =TRUE -use_rfile =FALSE - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0069-001command4LoadAndCompress] -bitmap_id =0 -file_name =\graphics\t_fbservapi\empty_file.txt -share_if_loaded =TRUE -use_rfile =FALSE - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0070-001-LoadAndCompress_command04] -bitmap_id =0 -share_if_loaded =TRUE -use_closed_rfile =TRUE -file_name={default_fbserv,file_name} -use_rfile =TRUE - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0071-001command4LoadAndCompress] -bitmap_id =0 -file_name ={default_fbserv,file_name} -share_if_loaded =FALSE -use_rfile =FALSE -file_offset =99999 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0072-001command4LoadAndCompress] -bitmap_id =0 -file_name ={default_fbserv,file_name} -share_if_loaded =FALSE -use_rfile =FALSE -file_offset =-1 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0073-001command4LoadAndCompress] -bitmap_id =99999 -file_name ={default_fbserv,file_name} -share_if_loaded =FALSE -use_rfile =FALSE -file_offset =0 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0074-001command4LoadAndCompress] -bitmap_id =-1 -file_name ={default_fbserv,file_name} -share_if_loaded =FALSE -use_rfile =FALSE -file_offset =0 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0075-001command4Save] -file_name =\graphics\t_fbservapi\output_fbsbitmap0075.mbm -use_rfile =FALSE - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0076-001command4Save] -file_name =\graphics\t_fbservapi\output_fbsbitmap0076.tmp -use_rfile =TRUE - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0077-001command4Create] -width =100 -height =200 -displaymode =EGray2 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0077-001command5Save] -file_name =\graphics\t_fbservapi -use_rfile =FALSE - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0078-001command4Create] -width =100 -height =200 -displaymode =EGray2 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0078-001command5Save] -file_name =\graphics\t_fbservapi\NONEXISTENT_DIRECTORY\output_fbsbitmap0078.mbm -use_rfile =FALSE - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0079-001-Create_command04] -displaymode =EGray2 -width =100 -height =200 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0079-001-Save_command05] -file_name =\graphics\t_fbservapi\output_fbsbitmap0079.mbm -use_rfile =TRUE -use_closed_rfile =TRUE - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0080-001command4Create] -width =100 -height =200 -displaymode =EGray2 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0080-001command5Save] -file_name = -use_rfile =FALSE - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0081-001command3StoreL] -file_name =\graphics\t_fbservapi\output_fbsbitmap0081.mbm -use_rfile =FALSE -source_file_name_0 =\graphics\t_fbservapi\NONEXISTENT_FILE.mbm -source_bitmap_id_0 =0 -number_of_sources =1 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0082-001command3StoreL] -file_name =\graphics\t_fbservapi\output_fbsbitmap0082.mbm -use_rfile =FALSE -source_file_name_0 ={default_fbserv,file_name} -source_bitmap_id_0 =99999 -number_of_sources =1 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0083-001command3StoreL] -file_name =\graphics\t_fbservapi\output_fbsbitmap0083.mbm -use_rfile =FALSE -source_file_name_0 ={default_fbserv,file_name} -source_bitmap_id_0 =-1 -number_of_sources =1 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0084-001command3StoreL] -file_name =\graphics\t_fbservapi\output_fbsbitmap0084.mbm -use_rfile =FALSE -source_file_name_0 ={default_fbserv,file_name} -source_bitmap_id_0 =0 -number_of_sources =-1 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0085-001command3StoreL] -file_name =\graphics\t_fbservapi\output_fbsbitmap0085.mbm -use_rfile =FALSE -source_file_name_0 ={default_fbserv,file_name} -source_bitmap_id_0 =0 -number_of_sources =999 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0086-001command3StoreL] -file_name =\graphics\t_fbservapi\output_fbsbitmap0086.mbm -use_rfile =FALSE -source_file_name_0 ={default_fbserv,file_name} -source_bitmap_id_0 =0 -number_of_sources =0 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0087-001command3StoreL] -file_name =\graphics\t_fbservapi\output_fbsbitmap0087.mbm -use_rfile =FALSE -source_file_name_0 ={default_fbserv,file_name} -source_file_name_1 ={default_fbserv,file_name} -source_file_name_2 ={default_fbserv,file_name} -source_bitmap_id_0 =0 -number_of_sources =2 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0089-001command3StoreL] -file_name =\graphics\t_fbservapi\output_fbsbitmap0089.mbm -use_rfile =TRUE -source_file_name_0 =\graphics\t_fbservapi\NONEXISTENT_FILE.mbm -source_bitmap_id_0 =0 -number_of_sources =1 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0090-001command3StoreL] -file_name =\graphics\t_fbservapi\output_fbsbitmap0090.mbm -use_rfile =TRUE -source_file_name_0 ={default_fbserv,file_name} -source_bitmap_id_0 =99999 -number_of_sources =1 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0091-001command3StoreL] -file_name =\graphics\t_fbservapi\output_fbsbitmap0091.mbm -use_rfile =TRUE -source_file_name_0 ={default_fbserv,file_name} -source_bitmap_id_0 =-1 -number_of_sources =1 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0092-001command3StoreL] -file_name =\graphics\t_fbservapi\output_fbsbitmap0092.mbm -use_rfile =TRUE -source_file_name_0 ={default_fbserv,file_name} -source_bitmap_id_0 =0 -number_of_sources =-1 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0093-001command3StoreL] -file_name =\graphics\t_fbservapi\output_fbsbitmap0093.mbm -use_rfile =TRUE -source_file_name_0 ={default_fbserv,file_name} -source_bitmap_id_0 =0 -number_of_sources =999 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0094-001command3StoreL] -file_name =\graphics\t_fbservapi\output_fbsbitmap0094.mbm -use_rfile =TRUE -source_file_name_0 ={default_fbserv,file_name} -source_bitmap_id_0 =0 -number_of_sources =0 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0095-001command3StoreL] -file_name =\graphics\t_fbservapi\output_fbsbitmap0095.mbm -use_rfile =TRUE -source_file_name_0 ={default_fbserv,file_name} -source_file_name_1 ={default_fbserv,file_name} -source_file_name_2 ={default_fbserv,file_name} -source_bitmap_id_0 =0 -number_of_sources =2 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0097-001-StoreL_command03] -use_closed_rfile =TRUE -source_bitmap_id_0 =0 -source_file_name_0={default_fbserv,file_name} -file_name =\graphics\t_fbservapi\output_fbsbitmap0097.mbm -number_of_sources =1 -use_rfile =TRUE - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0098-001-Create_command04] -displaymode={default_fbserv,displaymode} -width =10 -height =10 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0098-001-GetScanLine_command05] -buff_length =10000 -length =-1 -point_x =0 -point_y =0 -displaymode={default_fbserv,displaymode} - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0099-001command4Create] -width =10 -height =10 -displaymode ={default_fbserv,displaymode} - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0099-001command5GetScanLine] -point_x =0 -point_y =0 -length =0 -displaymode ={default_fbserv,displaymode} -buff_length =10000 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0100-001command4Create] -width =10 -height =10 -displaymode ={default_fbserv,displaymode} - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0100-001command5GetScanLine] -point_x =0 -point_y =0 -length =99999 -displaymode ={default_fbserv,displaymode} -buff_length =10000 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0101-001command4Create] -width =10 -height =10 -displaymode ={default_fbserv,displaymode} - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0101-001command5GetScanLine] -point_x =0 -point_y =0 -length =10 -displaymode ={default_fbserv,displaymode} -buff_length =10000 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0102-001command4Create] -width =10 -height =10 -displaymode ={default_fbserv,displaymode} - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0102-001command5GetScanLine] -point_x =999 -point_y =999 -length =10 -displaymode ={default_fbserv,displaymode} -buff_length =10000 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0103-001command4Create] -width =10 -height =10 -displaymode ={default_fbserv,displaymode} - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0103-001command5GetScanLine] -point_x =0 -point_y =9 -length =10 -displaymode =ENone -buff_length =10000 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0104-001command4Create] -width =10 -height =10 -displaymode ={default_fbserv,displaymode} - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0104-001command5GetScanLine] -point_x =0 -point_y =9 -length =10 -displaymode =ERgb -buff_length =10000 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0105-001command4Create] -width =10 -height =10 -displaymode ={default_fbserv,displaymode} - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0105-001command5GetScanLine] -point_x =0 -point_y =9 -length =10 -displaymode =EColorLast -buff_length =10000 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0106-001command4Create] -width =10 -height =10 -displaymode ={default_fbserv,displaymode} - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0106-001command5GetScanLine] -point_x =0 -point_y =9 -length =10 -displaymode =-1 -buff_length =10000 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0107-001command4Create] -width =10 -height =10 -displaymode ={default_fbserv,displaymode} - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0107-001command5GetScanLine] -point_x =0 -point_y =9 -length =10 -displaymode ={default_fbserv,displaymode} -buff_length =1 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0108-001command4Create] -width =100 -height =100 -displaymode ={default_fbserv,displaymode} - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0108-001command5SetScanLine] -file_name =\graphics\t_fbservapi\scaniline_10bytes.txt -scan_line_coord =-1 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0109-001command4Create] -width =100 -height =100 -displaymode ={default_fbserv,displaymode} - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0109-001command5SetScanLine] -file_name =\graphics\t_fbservapi\scaniline_10bytes.txt -scan_line_coord =100 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0110-001command4Create] -width =10 -height =10 -displaymode ={default_fbserv,displaymode} - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0110-001command5GetVerticalScanLine] -point_x =-1 -use_dither_offset =FALSE -displaymode ={default_fbserv,displaymode} -buff_length =10000 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0111-001command4Create] -width =10 -height =10 -displaymode ={default_fbserv,displaymode} - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0111-001command5GetVerticalScanLine] -point_x =999 -use_dither_offset =FALSE -displaymode ={default_fbserv,displaymode} -buff_length =10000 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0112-001command4Create] -width =10 -height =10 -displaymode ={default_fbserv,displaymode} - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0112-001command5GetVerticalScanLine] -point_x =0 -use_dither_offset =FALSE -displaymode =ENone -buff_length =10000 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0113-001command4Create] -width =10 -height =10 -displaymode ={default_fbserv,displaymode} - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0113-001command5GetVerticalScanLine] -point_x =0 -use_dither_offset =FALSE -displaymode =ERgb -buff_length =10000 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0114-001command4Create] -width =10 -height =10 -displaymode ={default_fbserv,displaymode} - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0114-001command5GetVerticalScanLine] -point_x =0 -use_dither_offset =FALSE -displaymode =EColorLast -buff_length =10000 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0115-001command4Create] -width =10 -height =10 -displaymode ={default_fbserv,displaymode} - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0115-001command5GetVerticalScanLine] -point_x =0 -use_dither_offset =FALSE -displaymode =-1 -buff_length =10000 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0116-001command4Create] -width =10 -height =10 -displaymode ={default_fbserv,displaymode} - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0116-001command5GetVerticalScanLine] -point_x =0 -use_dither_offset =FALSE -displaymode ={default_fbserv,displaymode} -buff_length =1 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0117-001command4Create] -width =10 -height =10 -displaymode ={default_fbserv,displaymode} - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0117-001command5GetVerticalScanLine] -point_x =-1 -use_dither_offset =TRUE -dither_offset_x =0 -dither_offset_y =0 -displaymode ={default_fbserv,displaymode} -buff_length =10000 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0118-001command4Create] -width =10 -height =10 -displaymode ={default_fbserv,displaymode} - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0118-001command5GetVerticalScanLine] -point_x =999 -use_dither_offset =TRUE -dither_offset_x =0 -dither_offset_y =0 -displaymode ={default_fbserv,displaymode} -buff_length =10000 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0119-001command4Create] -width =10 -height =10 -displaymode ={default_fbserv,displaymode} - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0119-001command5GetVerticalScanLine] -point_x =0 -use_dither_offset =TRUE -dither_offset_x =0 -dither_offset_y =0 -displaymode =ENone -buff_length =10000 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0120-001command4Create] -width =10 -height =10 -displaymode ={default_fbserv,displaymode} - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0120-001command5GetVerticalScanLine] -point_x =0 -use_dither_offset =TRUE -dither_offset_x =0 -dither_offset_y =0 -displaymode =ERgb -buff_length =10000 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0121-001command4Create] -width =10 -height =10 -displaymode ={default_fbserv,displaymode} - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0121-001command5GetVerticalScanLine] -point_x =0 -use_dither_offset =TRUE -dither_offset_x =0 -dither_offset_y =0 -displaymode =EColorLast -buff_length =10000 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0122-001command4Create] -width =10 -height =10 -displaymode ={default_fbserv,displaymode} - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0122-001command5GetVerticalScanLine] -point_x =0 -use_dither_offset =TRUE -dither_offset_x =0 -dither_offset_y =0 -displaymode =-1 -buff_length =10000 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0123-001command4Create] -width =10 -height =10 -displaymode ={default_fbserv,displaymode} - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0123-001command5GetVerticalScanLine] -point_x =0 -use_dither_offset =TRUE -dither_offset_x =0 -dither_offset_y =0 -displaymode ={default_fbserv,displaymode} -buff_length =1 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0124-001command4Create] -width =10 -height =10 -displaymode ={default_fbserv,displaymode} - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0124-001command5GetVerticalScanLine] -point_x =0 -use_dither_offset =TRUE -dither_offset_x =-1 -dither_offset_y =-1 -displaymode ={default_fbserv,displaymode} -buff_length =10000 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0125-001command4Create] -width =10 -height =10 -displaymode ={default_fbserv,displaymode} - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0125-001command5GetVerticalScanLine] -point_x =0 -use_dither_offset =TRUE -dither_offset_x =99999 -dither_offset_y =99999 -displaymode ={default_fbserv,displaymode} -buff_length =10000 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0126-001command4Create] -width =10 -height =10 -displaymode ={default_fbserv,displaymode} - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0126-001command5HorizontalPixelsToTwips] -pixels =-999 -expected_int =0 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0126-001command6HorizontalTwipsToPixels] -twips =-999 -expected_int =0 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0126-001command7VerticalPixelsToTwips] -pixels =-999 -expected_int =0 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0126-001command8VerticalTwipsToPixels] -twips =-999 -expected_int =0 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0127-001command4Create] -width =10 -height =10 -displaymode ={default_fbserv,displaymode} - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0127-001command5GetPixel] -point_x =-1 -point_y =0 -red =255 -green =255 -blue =255 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0128-001command4Create] -width =10 -height =10 -displaymode ={default_fbserv,displaymode} - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0128-001command5GetPixel] -point_x =0 -point_y =-1 -red =255 -green =255 -blue =255 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0129-001command4Create] -width =10 -height =10 -displaymode ={default_fbserv,displaymode} - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0129-001command5GetPixel] -point_x =-1 -point_y =-1 -red =255 -green =255 -blue =255 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0130-001command4Create] -width =10 -height =10 -displaymode ={default_fbserv,displaymode} - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0130-001command5GetPixel] -point_x =10 -point_y =0 -red =255 -green =255 -blue =255 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0131-001command4Create] -width =10 -height =10 -displaymode ={default_fbserv,displaymode} - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0131-001command5GetPixel] -point_x =0 -point_y =10 -red =255 -green =255 -blue =255 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0132-001command4Create] -width =10 -height =10 -displaymode ={default_fbserv,displaymode} - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0132-001command5GetPixel] -point_x =10 -point_y =10 -red =255 -green =255 -blue =255 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0133-001command4Resize] -width =20 -height =20 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0134-001command4Create] -width =10 -height =10 -displaymode ={default_fbserv,displaymode} - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0134-001command5Resize] -width =-1 -height =-200 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0134-001command6SizeInPixels] -width =10 -height =10 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0135-001command4IsFileInRom] -file_name =z:\graphics\t_fbservapi\test_bitmap_rom.rbm -use_rfile =TRUE -expected_bool =TRUE - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0135-001command5Load] -bitmap_id =0 -file_name =z:\graphics\t_fbservapi\test_bitmap_rom.rbm -share_if_loaded =TRUE -use_rfile =FALSE - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0135-001command6Resize] -width =10 -height =10 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0136-001command4Create] -width =10 -height =10 -displaymode ={default_fbserv,displaymode} - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0136-001command5SetSizeInTwips] -device =CFbsBitmapDevice1 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0137-001command4Create] -width =100 -height =100 -displaymode ={default_fbserv,displaymode} - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0137-001command5SetSizeInTwips] -width =-10 -height =0 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0138-001command4Create] -width =100 -height =100 -displaymode ={default_fbserv,displaymode} - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0138-001command5SetSizeInTwips] -width =0 -height =-10 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0139-001command4Create] -width =100 -height =100 -displaymode ={default_fbserv,displaymode} - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0139-001command5SetSizeInTwips] -width =-10 -height =-10 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0140-001-Create_command04] -displaymode =EGray2 -width =100 -height =200 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0140-001-ExternalizeL_command05] -use_closed_stream =TRUE -file_name =\graphics\t_fbservapi\output_fbsbitmap0140_1.tmp - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0141-001-Create_command04] -displaymode =EGray2 -width =100 -height =200 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0141-001-ExternalizeRectangleL_command05] -use_closed_stream =TRUE -rect_br_y =40 -rect_br_x =30 -file_name =\graphics\t_fbservapi\output_fbsbitmap0140_2.tmp -rect_tl_y =20 -rect_tl_x =10 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0142-001command4Create] -width =100 -height =200 -displaymode =EGray2 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0142-001command5ExternalizeRectangleL] -file_name =\graphics\t_fbservapi\output_fbsbitmap0142.tmp -rect_tl_x =1000 -rect_tl_y =1000 -rect_br_x =1002 -rect_br_y =1002 -use_closed_stream =FALSE - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0143-001command4Create] -width =100 -height =200 -displaymode =EGray2 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0143-001command5InternalizeL] -file_name =\graphics\t_fbservapi\testfontfb.gdr -use_closed_stream =FALSE - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0144-001command4Create] -width =100 -height =200 -displaymode =EGray2 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0144-001command5InternalizeL] -file_name ={default_fbserv,file_name} -use_closed_stream =TRUE - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0145-001command4Load] -bitmap_id =0 -file_name ={default_fbserv,file_name} -share_if_loaded =TRUE -use_rfile =FALSE - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0146-001command4IsFileInRom] -file_name =z:\graphics\t_fbservapi\test_bitmap_rom.rbm -use_rfile =TRUE -expected_bool =TRUE - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0146-001command5Load] -bitmap_id =0 -file_name =z:\graphics\t_fbservapi\test_bitmap_rom.rbm -share_if_loaded =TRUE -use_rfile =FALSE - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0148-001command4Load] -bitmap_id =0 -file_name ={default_fbserv,file_name} -share_if_loaded =TRUE -use_rfile =FALSE - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0148-001command6CompressInBackground] -use_request_status =FALSE - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0149-001command4IsFileInRom] -file_name =z:\graphics\t_fbservapi\test_bitmap_rom.rbm -use_rfile =TRUE -expected_bool =TRUE - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0149-001command5Load] -bitmap_id =0 -file_name =z:\graphics\t_fbservapi\test_bitmap_rom.rbm -share_if_loaded =TRUE -use_rfile =FALSE - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0149-001command6CompressInBackground] -use_request_status =FALSE - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0150-001command4CompressInBackground] -use_request_status =FALSE - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0151-001command4Load] -bitmap_id =0 -file_name ={default_fbserv,file_name} -share_if_loaded =TRUE -use_rfile =FALSE - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0151-001command6CompressInBackground] -use_request_status =TRUE - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0152-001command4IsFileInRom] -file_name =z:\graphics\t_fbservapi\test_bitmap_rom.rbm -use_rfile =TRUE -expected_bool =TRUE - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0152-001command5Load] -bitmap_id =0 -file_name =z:\graphics\t_fbservapi\test_bitmap_rom.rbm -share_if_loaded =TRUE -use_rfile =FALSE - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0152-001command6CompressInBackground] -use_request_status =TRUE - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0153-001command4CompressInBackground] -use_request_status =TRUE - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0154-001command4IsFileInRom] -file_name =z:\:::::'' -use_rfile =FALSE -expected_bool =FALSE - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0155-001command4CreateHardwareBitmap] -width =100 -height =200 -displaymode =ENone -uid =0 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0156-001command4CreateHardwareBitmap] -width =100 -height =200 -displaymode =ERgb -uid =0 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0157-001command4CreateHardwareBitmap] -width =100 -height =200 -displaymode =EColorLast -uid =0 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0158-001command4CreateHardwareBitmap] -width =100 -height =200 -displaymode =-1 -uid =0 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0159-001command4CreateHardwareBitmap] -width =100 -height =-200 -displaymode =EGray2 -uid =0 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0160-001command4Create] -width =100 -height =200 -displaymode =EGray2 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0160-001command5HardwareBitmapHandle] -null_expected =TRUE -ignore_if_stopped =TRUE - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0161-001command4Create] -width =100 -height =200 -displaymode =EGray2 - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0166-001command4CreateHardwareBitmap] -width =10 -height =10 -displaymode =EColor16 -uid =0 - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0166-001command5SwapWidthAndHeight] -ignore_if_stopped =TRUE - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0167-001command4Load] -bitmap_id =0 -file_name =z:\graphics\t_fbservapi\test_bitmap_rom.rbm -share_if_loaded =TRUE -use_rfile =FALSE - - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0171-001command4Load] -bitmap_id =0 -file_name =z:\graphics\t_fbservapi\test_bitmap_rom.rbm -share_if_loaded =TRUE -use_rfile =FALSE - -[GRAPHICS-FBSERV-FbsBitmap-PublicApi-0171-001command7Duplicate] -fbs_bitmap_name =CFbsBitmap1 diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fbserv/testdata/GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.ini --- a/graphicsapitest/graphicssvs/fbserv/testdata/GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi.ini Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,370 +0,0 @@ -[include] -file1 =\graphics\t_graphics.ini - - -[CFbsBitmap1] -name =CFbsBitmap1 - -[CPalette1] -name =CPalette1 - -[RFbsSession1] -name =RFbsSession1 - -[CFbsBitmap2] -name =CFbsBitmap2 - -[CFbsColor256BitmapUtil1] -name =CFbsColor256BitmapUtil1 - -[CFbsBitmap3] -name =CFbsBitmap3 - -[CFbsBitmap4] -name =CFbsBitmap4 - -[CFbsBitmap5] -name =CFbsBitmap5 - - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0001-001-NewL_command02] -palette =CPalette1 - - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0002-001-NewDefaultL_command01] -displaymode ={default_fbserv,displaymode} - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0002-001-NewL_command03] -palette =CPalette1 - - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0003-001-NewL_command01] -number_of_colors =512 - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0003-001-NewL_command03] -palette =CPalette1 - - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0004-001-NewDefaultL_command01] -displaymode =EGray16 - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0004-001-NewL_command03] -palette =CPalette1 - - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0005-001-Create_command04] -displaymode ={default_fbserv,displaymode} -width =100 -height =100 - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0005-001-Create_command07] -displaymode ={default_fbserv,displaymode} -width =100 -height =100 - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0005-001-NewL_command09] -palette =CPalette1 - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0005-001-CopyBitmap_command10] -bitmap_to =CFbsBitmap2 -dither =ENoDither -bitmap_from =CFbsBitmap1 - - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0006-001-Create_command04] -displaymode ={default_fbserv,displaymode} -width =99 -height =99 - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0006-001-Create_command07] -displaymode ={default_fbserv,displaymode} -width =100 -height =100 - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0006-001-NewL_command09] -palette =CPalette1 - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0006-001-CopyBitmap_command10] -bitmap_to =CFbsBitmap2 -dither =ENoDither -bitmap_from =CFbsBitmap1 - - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0007-001-Create_command04] -displaymode ={default_fbserv,displaymode} -width =100 -height =100 - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0007-001-Create_command07] -displaymode ={default_fbserv,displaymode} -width =99 -height =99 - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0007-001-NewL_command09] -palette =CPalette1 - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0007-001-CopyBitmap_command10] -bitmap_to =CFbsBitmap2 -dither =ENoDither -bitmap_from =CFbsBitmap1 - - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0008-001-Create_command04] -displaymode ={default_fbserv,displaymode} -width =99 -height =99 - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0008-001-Create_command07] -displaymode ={default_fbserv,displaymode} -width =100 -height =100 - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0008-001-NewL_command09] -palette =CPalette1 - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0008-001-CopyBitmap_command10] -bitmap_to =CFbsBitmap2 -dither =EFloydSteinberg -bitmap_from =CFbsBitmap1 - - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0009-001-Create_command04] -displaymode ={default_fbserv,displaymode} -width =100 -height =100 - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0009-001-Create_command07] -displaymode ={default_fbserv,displaymode} -width =99 -height =99 - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0009-001-NewL_command09] -palette =CPalette1 - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0009-001-CopyBitmap_command10] -bitmap_to =CFbsBitmap2 -dither =EFloydSteinberg -bitmap_from =CFbsBitmap1 - - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0010-001-Create_command04] -displaymode ={default_fbserv,displaymode} -width =100 -height =100 - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0010-001-Create_command07] -displaymode =EGray16 -width =100 -height =100 - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0010-001-NewL_command09] -palette =CPalette1 - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0010-001-CopyBitmap_command10] -bitmap_to =CFbsBitmap2 -dither =EFloydSteinberg -bitmap_from =CFbsBitmap1 - - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0011-001-Create_command04] -displaymode ={default_fbserv,displaymode} -width =100 -height =100 - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0011-001-Create_command07] -displaymode =EColor16M -width =100 -height =100 - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0011-001-NewL_command09] -palette =CPalette1 - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0011-001-CopyBitmap_command10] -bitmap_to =CFbsBitmap2 -dither =ENoDither -bitmap_from =CFbsBitmap1 - - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0012-001-Create_command04] -displaymode =EColor16M -width =100 -height =100 - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0012-001-Create_command07] -displaymode =EColor64K -width =100 -height =100 - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0012-001-Create_command10] -displaymode =EColor4K -width =100 -height =100 - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0012-001-Create_command13] -displaymode ={default_fbserv,displaymode} -width =100 -height =100 - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0012-001-Create_command16] -displaymode ={default_fbserv,displaymode} -width =100 -height =100 - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0012-001-NewL_command18] -palette =CPalette1 - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0012-001-CopyBitmap_command19] -bitmap_to =CFbsBitmap5 -dither =ENoDither -bitmap_from =CFbsBitmap1 - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0012-001-CopyBitmap_command20] -bitmap_to =CFbsBitmap5 -dither =ENoDither -bitmap_from =CFbsBitmap2 - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0012-001-CopyBitmap_command21] -bitmap_to =CFbsBitmap5 -dither =ENoDither -bitmap_from =CFbsBitmap3 - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0012-001-CopyBitmap_command22] -bitmap_to =CFbsBitmap5 -dither =ENoDither -bitmap_from =CFbsBitmap4 - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0012-001-CopyBitmap_command23] -bitmap_to =CFbsBitmap5 -dither =EFloydSteinberg -bitmap_from =CFbsBitmap1 - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0012-001-CopyBitmap_command24] -bitmap_to =CFbsBitmap5 -dither =EFloydSteinberg -bitmap_from =CFbsBitmap2 - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0012-001-CopyBitmap_command25] -bitmap_to =CFbsBitmap5 -dither =EFloydSteinberg -bitmap_from =CFbsBitmap3 - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0012-001-CopyBitmap_command26] -bitmap_to =CFbsBitmap5 -dither =EFloydSteinberg -bitmap_from =CFbsBitmap4 - - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0013-001-Create_command04] -displaymode =EGray256 -width =100 -height =100 - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0013-001-Create_command07] -displaymode ={default_fbserv,displaymode} -width =100 -height =100 - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0013-001-NewL_command09] -palette =CPalette1 - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0013-001-CopyBitmap_command10] -bitmap_to =CFbsBitmap2 -dither =ENoDither -bitmap_from =CFbsBitmap1 - - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0014-001-Create_command04] -displaymode =EGray2 -width =100 -height =100 - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0014-001-Create_command07] -displaymode ={default_fbserv,displaymode} -width =100 -height =100 - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0014-001-NewL_command09] -palette =CPalette1 - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0014-001-CopyBitmap_command10] -bitmap_to =CFbsBitmap2 -dither =ENoDither -bitmap_from =CFbsBitmap1 - - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0015-001-Create_command04] -displaymode =EGray4 -width =100 -height =100 - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0015-001-Create_command07] -displaymode ={default_fbserv,displaymode} -width =100 -height =100 - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0015-001-NewL_command09] -palette =CPalette1 - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0015-001-CopyBitmap_command10] -bitmap_to =CFbsBitmap2 -dither =ENoDither -bitmap_from =CFbsBitmap1 - - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0016-001-NewL_command07] -palette =CPalette1 - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0016-001-CopyBitmap_command08] -bitmap_to =CFbsBitmap2 -dither =ENoDither -bitmap_from =CFbsBitmap1 - - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0017-001-NewL_command02] -palette =CPalette1 - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0017-001-CopyBitmap_command03] -bitmap_to =CFbsBitmap2 -dither =ENoDither -bitmap_from =CFbsBitmap1 - - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0018-001-Create_command04] -displaymode ={default_fbserv,displaymode} -width =0 -height =0 - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0018-001-Create_command07] -displaymode ={default_fbserv,displaymode} -width =0 -height =0 - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0018-001-NewL_command09] -palette =CPalette1 - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0018-001-CopyBitmap_command10] -bitmap_to =CFbsBitmap2 -dither =ENoDither -bitmap_from =CFbsBitmap1 - - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0019-001-Create_command04] -displaymode ={default_fbserv,displaymode} -width =100 -height =100 - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0019-001-Create_command07] -displaymode ={default_fbserv,displaymode} -width =100 -height =100 - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0019-001-NewL_command09] -number_of_colors =256 - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0019-001-NewL_command11] -palette =CPalette1 - -[GRAPHICS-FBSERV-FbsColor256BitmapUtil-PublicApi-0019-001-CopyBitmap_command12] -bitmap_to =CFbsBitmap2 -dither =ENoDither -bitmap_from =CFbsBitmap1 diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fbserv/testdata/GRAPHICS-FBSERV-FbsFont-PublicApi.ini --- a/graphicsapitest/graphicssvs/fbserv/testdata/GRAPHICS-FBSERV-FbsFont-PublicApi.ini Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,535 +0,0 @@ -[include] -file1 =\graphics\t_graphics.ini - - -[CFbsTypefaceStore1] -name =CFbsTypefaceStore1 - -[TMeasureTextOutput1] -name =TMeasureTextOutput1 - -[CFbsFont1] -name =CFbsFont1 - -[TMeasureTextInput1] -name =TMeasureTextInput1 - -[RFbsSession1] -name =RFbsSession1 - -[CFbsFont2] -name =CFbsFont2 - - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0001-001-GetNearestFontToDesignHeightInPixels_command004] -font_height ={default_fbserv,font_height} -font_name ={default_fbserv,font_name} -font_data_object_name =CFbsFont1 - - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0002-001-GetNearestFontToDesignHeightInPixels_command004] -font_height ={default_fbserv,font_height} -font_name ={default_fbserv,font_name} -font_data_object_name =CFbsFont1 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0002-001-GetFontMetrics_command006] -expected_bool =TRUE - - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0003-001-GetNearestFontToDesignHeightInPixels_command004] -font_height ={default_fbserv,font_height} -font_name ={default_fbserv,font_name} -font_data_object_name =CFbsFont1 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0003-001-TextWidthInPixels_command006] -text =a - - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0004-001-GetNearestFontToDesignHeightInPixels_command004] -font_height ={default_fbserv,font_height} -font_name ={default_fbserv,font_name} -font_data_object_name =CFbsFont1 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0004-001-TextWidthInPixelsWithCharWidth_command006] -text =a - - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0005-001-GetNearestFontToDesignHeightInPixels_command004] -font_height ={default_fbserv,font_height} -font_name ={default_fbserv,font_name} -font_data_object_name =CFbsFont1 - - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0007-001-GetNearestFontToDesignHeightInPixels_command004] -font_height ={default_fbserv,font_height} -font_name ={default_fbserv,font_name} -font_data_object_name =CFbsFont1 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0007-001-RawTextWidthInPixels_command006] -text =qwerty - - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0008-001-GetNearestFontToDesignHeightInPixels_command004] -font_height ={default_fbserv,font_height} -font_name ={default_fbserv,alternate_font_name1} -font_data_object_name =CFbsFont1 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0008-001-GetFaceAttrib_command006] -expected_bool =TRUE - - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0009-001-GetNearestFontToDesignHeightInPixels_command004] -font_height ={default_fbserv,font_height} -font_name ={default_fbserv,alternate_font_name1} -font_data_object_name =CFbsFont1 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0009-001-GetNearestFontToDesignHeightInPixels_command005] -font_height ={default_fbserv,font_height} -font_name ={default_fbserv,font_name} -font_data_object_name =CFbsFont2 - - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0010-001-GetNearestFontToDesignHeightInPixels_command004] -font_height ={default_fbserv,font_height} -font_name ={default_fbserv,font_name} -font_data_object_name =CFbsFont1 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0010-001-HasCharacter_command006] -expected_bool =TRUE -char_code =65 - - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0011-001-GetNearestFontToDesignHeightInPixels_command004] -font_height ={default_fbserv,font_height} -font_name ={default_fbserv,font_name} -font_data_object_name =CFbsFont1 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0011-001-CharWidthInPixels_command016] -expected_bool =FALSE -char_code =65 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0011-001-TextCount_command017] -calculate_excess =FALSE -width_available =100 -text =a - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0011-001-TextCount_command018] -calculate_excess =TRUE -width_available =30 -text =abcdf - - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0012-001-GetNearestFontToDesignHeightInPixels_command004] -font_height ={default_fbserv,font_height} -font_name ={default_fbserv,font_name} -font_data_object_name =CFbsFont1 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0012-001-GetCharacterData_command006] -char_code =65 - - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0013-001-GetNearestFontToDesignHeightInPixels_command004] -font_height ={default_fbserv,font_height} -font_name ={default_fbserv,font_name} -font_data_object_name =CFbsFont1 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0013-001-MeasureText_command010] -text =qwerty -measure_text_input =TMeasureTextInput1 -measure_text_output =TMeasureTextOutput1 - - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0014-001-GetNearestFontToDesignHeightInPixels_command004] -font_height ={default_fbserv,font_height} -font_name ={default_fbserv,font_name} -font_data_object_name =CFbsFont1 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0014-001-ExtendedFunction_command006] -uid =1020498E - - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0017-001-GetNearestFontToDesignHeightInPixels_command004] -font_height ={default_fbserv,font_height} -font_name ={default_fbserv,font_name} -font_data_object_name =CFbsFont1 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0017-001-TextWidthInPixels_command006] -text = - - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0018-001-GetNearestFontToDesignHeightInPixels_command004] -font_height ={default_fbserv,font_height} -font_name ={default_fbserv,font_name} -font_data_object_name =CFbsFont1 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0018-001-RawTextWidthInPixels_command006] -text = - - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0019-001-GetNearestFontToDesignHeightInPixels_command004] -font_height ={default_fbserv,font_height} -font_name ={default_fbserv,font_name} -font_data_object_name =CFbsFont1 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0019-001-HasCharacter_command006] -expected_bool =FALSE -char_code =-1 - - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0020-001-GetNearestFontToDesignHeightInPixels_command004] -font_height ={default_fbserv,font_height} -font_name ={default_fbserv,font_name} -font_data_object_name =CFbsFont1 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0020-001-CharWidthInPixels_command006] -expected_bool =FALSE -char_code =0 - - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0021-001-GetNearestFontToDesignHeightInPixels_command004] -font_height ={default_fbserv,font_height} -font_name ={default_fbserv,font_name} -font_data_object_name =CFbsFont1 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0021-001-TextCount_command006] -calculate_excess =FALSE -should_fit =FALSE -width_available =-1 -text =qwerty - - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0022-001-GetNearestFontToDesignHeightInPixels_command004] -font_height ={default_fbserv,font_height} -font_name ={default_fbserv,font_name} -font_data_object_name =CFbsFont1 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0022-001-TextCount_command006] -calculate_excess =FALSE -should_fit =TRUE -width_available =0 -text = - - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0023-001-GetNearestFontToDesignHeightInPixels_command004] -font_height ={default_fbserv,font_height} -font_name ={default_fbserv,font_name} -font_data_object_name =CFbsFont1 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0023-001-TextCount_command006] -calculate_excess =TRUE -should_fit =FALSE -width_available =-1 -text =qwerty - - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0024-001-GetNearestFontToDesignHeightInPixels_command004] -font_height ={default_fbserv,font_height} -font_name ={default_fbserv,font_name} -font_data_object_name =CFbsFont1 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0024-001-TextCount_command006] -calculate_excess =TRUE -should_fit =TRUE -width_available =0 -text = - - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0025-001-GetNearestFontToDesignHeightInPixels_command004] -font_height ={default_fbserv,font_height} -font_name ={default_fbserv,font_name} -font_data_object_name =CFbsFont1 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0025-001-GetCharacterData_command006] -char_code =0 - - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-GetNearestFontToDesignHeightInPixels_command004] -font_height ={default_fbserv,font_height} -font_name ={default_fbserv,font_name} -font_data_object_name =CFbsFont1 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command010] -text =qwerty -measure_text_input =TMeasureTextInput1 -measure_text_output =TMeasureTextOutput1 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command014] -measure_text_input =TMeasureTextInput1 -text =qwerty - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iStartInputChar_command017] -value =0 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iEndInputChar_command018] -value =5 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command020] -measure_text_input =TMeasureTextInput1 -text =qwerty - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iEndInputChar_command023] -value =5 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command025] -measure_text_input =TMeasureTextInput1 -text =qwerty - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iStartInputChar_command028] -value =0 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iEndInputChar_command029] -value =-1 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command031] -measure_text_input =TMeasureTextInput1 -text =qwerty - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iStartInputChar_command034] -value =0 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iEndInputChar_command035] -value =100 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command037] -measure_text_input =TMeasureTextInput1 -text =qwerty - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iStartInputChar_command040] -value =100 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iEndInputChar_command041] -value =5 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command043] -measure_text_input =TMeasureTextInput1 -text =qwerty - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iStartInputChar_command046] -value =-1 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iEndInputChar_command047] -value =-1 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command049] -measure_text_input =TMeasureTextInput1 -text =qwerty - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iDirection_command052] -value =0 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command054] -measure_text_input =TMeasureTextInput1 -text =qwerty - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iDirection_command057] -value =1 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command059] -measure_text_input =TMeasureTextInput1 -text =qwerty - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iDirection_command062] -value =999 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command064] -measure_text_input =TMeasureTextInput1 -text =qwerty - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iFlags_command067] -flag1 =0 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command069] -measure_text_input =TMeasureTextInput1 -text =qwerty - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iFlags_command072] -flag1 =EFVisualOrder - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command074] -measure_text_input =TMeasureTextInput1 -text =qwerty - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iFlags_command077] -flag1 =999 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command079] -measure_text_input =TMeasureTextInput1 -text =qwerty - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iMaxAdvance_command082] -value =-1 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command084] -measure_text_input =TMeasureTextInput1 -text =qwerty - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iMaxAdvance_command087] -value =0 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command089] -measure_text_input =TMeasureTextInput1 -text =qwerty - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iMaxAdvance_command092] -value =1 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command094] -measure_text_input =TMeasureTextInput1 -text =qwerty - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iMaxAdvance_command097] -value =999 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command100] -measure_text_input =TMeasureTextInput1 -text =qwerty - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iMaxBounds_command103] -value =-1 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command105] -measure_text_input =TMeasureTextInput1 -text =qwerty - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iMaxBounds_command108] -value =0 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command110] -measure_text_input =TMeasureTextInput1 -text =qwerty - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iMaxBounds_command113] -value =1 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command115] -measure_text_input =TMeasureTextInput1 -text =qwerty - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iMaxBounds_command118] -value =999 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command120] -measure_text_input =TMeasureTextInput1 -text =qwerty - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iCharJustNum_command123] -value =-1 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command125] -measure_text_input =TMeasureTextInput1 -text =qwerty - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iCharJustNum_command128] -value =0 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command130] -measure_text_input =TMeasureTextInput1 -text =qwerty - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iCharJustNum_command133] -value =1 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command135] -measure_text_input =TMeasureTextInput1 -text =qwerty - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iCharJustNum_command138] -value =999 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command140] -measure_text_input =TMeasureTextInput1 -text =qwerty - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iCharJustExcess_command143] -value =-1 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command145] -measure_text_input =TMeasureTextInput1 -text =qwerty - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iCharJustExcess_command148] -value =0 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command150] -measure_text_input =TMeasureTextInput1 -text =qwerty - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iCharJustExcess_command153] -value =1 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command155] -measure_text_input =TMeasureTextInput1 -text =qwerty - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iCharJustExcess_command158] -value =999 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command160] -measure_text_input =TMeasureTextInput1 -text =qwerty - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iWordJustNum_command163] -value =-1 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command165] -measure_text_input =TMeasureTextInput1 -text =qwerty asdf - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iWordJustNum_command168] -value =0 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command170] -measure_text_input =TMeasureTextInput1 -text =qwerty asdf - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iWordJustNum_command173] -value =1 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command175] -measure_text_input =TMeasureTextInput1 -text =qwerty asdf - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iWordJustNum_command178] -value =999 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command180] -measure_text_input =TMeasureTextInput1 -text =qwerty asdf - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iWordJustExcess_command183] -value =-1 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command185] -measure_text_input =TMeasureTextInput1 -text =qwerty asdf - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iWordJustExcess_command188] -value =0 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command190] -measure_text_input =TMeasureTextInput1 -text =qwerty asdf - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iWordJustExcess_command193] -value =1 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command195] -measure_text_input =TMeasureTextInput1 -text =qwerty asdf - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-iWordJustExcess_command198] -value =999 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0026-001-MeasureText_command200] -measure_text_input =TMeasureTextInput1 -text =qwerty asdf - - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0028-001-GetNearestFontToDesignHeightInPixels_command004] -font_height ={default_fbserv,font_height} -font_name ={default_fbserv,font_name} -font_data_object_name =CFbsFont1 - -[GRAPHICS-FBSERV-FbsFont-PublicApi-0028-001-ExtendedFunction_command006] -expected_result =-1 -uid =0 diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fbserv/testdata/GRAPHICS-FBSERV-FbsSession-PublicApi.ini --- a/graphicsapitest/graphicssvs/fbserv/testdata/GRAPHICS-FBSERV-FbsSession-PublicApi.ini Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,82 +0,0 @@ -[include] -file1 =\graphics\t_graphics.ini - - -[CFbsFont1] -name =CFbsFont1 - -[CFbsBitmap1] -name =CFbsBitmap1 - -[RFbsSession1] -name =RFbsSession1 - -[CFbsTypefaceStore1] -name =CFbsTypefaceStore1 - - -[GRAPHICS-FBSERV-FbsSession-PublicApi-0001-001-GetSession_command001] -null_session =TRUE - -[GRAPHICS-FBSERV-FbsSession-PublicApi-0001-001-GetSession_command005] -null_session =TRUE - - -[GRAPHICS-FBSERV-FbsSession-PublicApi-0002-001-GetSession_command001] -null_session =TRUE - -[GRAPHICS-FBSERV-FbsSession-PublicApi-0002-001-Connect_command002] -session =TRUE - -[GRAPHICS-FBSERV-FbsSession-PublicApi-0002-001-GetSession_command005] -null_session =TRUE - - -[GRAPHICS-FBSERV-FbsSession-PublicApi-0003-001-CallBack_command005] -expected =TRUE - -[GRAPHICS-FBSERV-FbsSession-PublicApi-0003-001-CallBack_command007] -expected =FALSE - - -[GRAPHICS-FBSERV-FbsSession-PublicApi-0004-001-GetNearestFontToDesignHeightInPixels_command008] -font_height ={default_fbserv,font_height} -font_name ={default_fbserv,font_name} -font_data_object_name =CFbsFont1 - -[GRAPHICS-FBSERV-FbsSession-PublicApi-0004-001-ResourceCount_command010] -expected_diff =1 - -[GRAPHICS-FBSERV-FbsSession-PublicApi-0004-001-ReleaseFont_command012] -font_data_object_name =CFbsFont1 - -[GRAPHICS-FBSERV-FbsSession-PublicApi-0004-001-ResourceCount_command014] -expected_diff =-1 - - -[GRAPHICS-FBSERV-FbsSession-PublicApi-0005-001-SendCommand_command003] -fbs_message =0 - - -[GRAPHICS-FBSERV-FbsSession-PublicApi-0009-001-Connect_command001] -invalid_session =TRUE - - -[GRAPHICS-FBSERV-FbsSession-PublicApi-0010-001-SendCommand_command003] -fbs_message =-1 - - -[GRAPHICS-FBSERV-FbsSession-PublicApi-0014-001-SendCommand_command001] -fbs_message =0 - - -[GRAPHICS-FBSERV-FbsSession-PublicApi-0020-001-Create_command005] -displaymode =EGray2 -width =100 -height =200 - -[GRAPHICS-FBSERV-FbsSession-PublicApi-0020-001-SendCommand_command007] -fbs_message =EFbsMessBitmapResize -bitmap =CFbsBitmap1 -parameter1 =50 -parameter2 =20 diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fbserv/testdata/GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini --- a/graphicsapitest/graphicssvs/fbserv/testdata/GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi.ini Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,359 +0,0 @@ -[include] -file1 =\graphics\t_graphics.ini - - -[TAlgStyle1] -name =TAlgStyle1 - -[CFbsTypefaceStore1] -name =CFbsTypefaceStore1 - -[CFbsBitmap1] -name =CFbsBitmap1 - -[RFbsSession1] -name =RFbsSession1 - -[CFbsBitmapDevice1] -name =CFbsBitmapDevice1 - -[CFbsScreenDevice1] -name =CFbsScreenDevice1 - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0002-001-AddFile_command004] -file_name =\graphics\t_fbservapi\tmpfontfb.gdr - - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0003-001-InstallFile_command004] -file_name =\graphics\t_fbservapi\tmpfontfb.gdr - - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0004-001-AddFile_command004] -file_name =\graphics\t_fbservapi\tmpfontfb.gdr - - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0005-001-GetNearestFontInTwips_command004] -font_height ={default_fbserv,font_height} -font_name ={default_fbserv,font_name} - - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0006-001-GetNearestFontInPixels_command004] -font_height ={default_fbserv,font_height} -font_name ={default_fbserv,font_name} - - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0007-001-GetNearestFontToDesignHeightInPixels_command004] -font_height ={default_fbserv,font_height} -font_name ={default_fbserv,font_name} - - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0008-001-GetNearestFontToMaxHeightInPixels_command004] -font_height ={default_fbserv,font_height} -check_against_maximum =TRUE -font_name ={default_fbserv,font_name} -font_max_height =12 - - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0009-001-GetFontById_command004] -font_uid =268435493 - - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0011-001-TypefaceSupport_command004] -typeface_index =0 - - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0012-001-FontHeightInTwips_command004] -height_index =0 -typeface_index =0 -check_height_positive =TRUE - - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0013-001-FontHeightInPixels_command004] -height_index =0 -typeface_index =0 -check_height_positive =TRUE - - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0014-001-SetDefaultBitmapType_command004] -glyph_bitmap_type =EMonochromeGlyphBitmap - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0014-001-DefaultBitmapType_command005] -glyph_bitmap_type =EMonochromeGlyphBitmap - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0014-001-SetDefaultBitmapType_command006] -glyph_bitmap_type =EDefaultGlyphBitmap - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0014-001-DefaultBitmapType_command007] -glyph_bitmap_type =EDefaultGlyphBitmap - - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0015-001-SetFontNameAliasL_command004] -font_name ={default_fbserv,font_name} -font_name_alias =ArialAlias - - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0016-001-SetDefaultLanguageForMetrics_command004] -language =49 - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0016-001-SetDefaultLanguageForMetrics_command005] -language =1 - - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0020-001-GetNearestFontToDesignHeightInTwips_command004] -font_height =30 -font_name ={default_fbserv,alternate_font_name1} - - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0021-001-GetNearestFontToMaxHeightInTwips_command004] -font_height =30 -check_against_maximum =TRUE -font_name ={default_fbserv,alternate_font_name1} -font_max_height =30 - - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0022-001-AddFile_command004] -file_name =\graphics\t_fbservapi\NON_EXISTENT_FILE.gdr - - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0023-001-AddFile_command004] -file_name =\graphics\t_fbservapi\empty_file.txt - - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0024-001-InstallFile_command004] -file_name =\graphics\t_fbservapi\NON_EXISTENT_FILE.gdr - - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0025-001-InstallFile_command004] -file_name =\graphics\t_fbservapi\empty_file.txt - - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0027-001-GetNearestFontInTwips_command004] -font_height ={default_fbserv,font_height} -font_name =NonExistentFont - - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0028-001-GetNearestFontInPixels_command004] -font_height ={default_fbserv,font_height} -font_name =NonExistentFont - - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0029-001-GetNearestFontToDesignHeightInPixels_command004] -font_height ={default_fbserv,font_height} -font_name =NonExistentFont - - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0030-001-GetNearestFontToMaxHeightInPixels_command004] -font_height ={default_fbserv,font_height} -font_name =NonExistentFont -check_against_maximum =TRUE -font_max_height =12 - - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0031-001-GetNearestFontToMaxHeightInPixels_command004] -font_height ={default_fbserv,font_height} -font_name =NonExistentFont -check_against_maximum =TRUE -font_max_height =12 - - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0032-001-GetFontById_command004] -font_uid =0 - - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0036-001-SetDefaultBitmapType_command004] -glyph_bitmap_type =-999 - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0036-001-SetDefaultBitmapType_command005] -glyph_bitmap_type =EDefaultGlyphBitmap - - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0037-001-SetFontNameAliasL_command004] -font_name =NonExistentFont -font_name_alias =NonExistentFontAlias - - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0038-001-SetDefaultLanguageForMetrics_command004] -language =-999 - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0038-001-SetDefaultLanguageForMetrics_command005] -language =1 - - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0040-001-SetSystemDefaultTypefaceNameL_command004] -font_name ={default_fbserv,alternate_font_name1} - - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0041-001-Create_command004] -displaymode ={default_fbserv,displaymode} -width =100 -height =100 - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0041-001-NewL_command006] -bitmap =CFbsBitmap1 - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0041-001-NewL_command008] -graphics_device =CFbsBitmapDevice1 - - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0042-001-NewL_command003] -displaymode ={default_bitgdi, displaymode} -screen_number ={default_bitgdi, screennumber} - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0042-001-NewL_command005] -graphics_device =CFbsScreenDevice1 - - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0043-001-GetNearestFontInTwips_command004] -font_height =1000000 -font_name ={default_fbserv,font_name} - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0043-001-GetNearestFontInTwips_command005] -font_height =0 -font_name ={default_fbserv,font_name} - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0043-001-GetNearestFontInTwips_command006] -font_height =-1 -font_name ={default_fbserv,font_name} - - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0044-001-GetNearestFontInPixels_command004] -font_height =1000000 -font_name ={default_fbserv,font_name} - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0044-001-GetNearestFontInPixels_command005] -font_height =0 -font_name ={default_fbserv,font_name} - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0044-001-GetNearestFontInPixels_command006] -font_height =-1 -font_name ={default_fbserv,font_name} - - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0045-001-GetNearestFontToDesignHeightInPixels_command004] -font_height =1000000 -font_name ={default_fbserv,font_name} - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0045-001-GetNearestFontToDesignHeightInPixels_command005] -font_height =0 -font_name ={default_fbserv,font_name} - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0045-001-GetNearestFontToDesignHeightInPixels_command006] -font_height =-1 -font_name ={default_fbserv,font_name} - - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0046-001-GetNearestFontToDesignHeightInTwips_command004] -font_height =1000000 -font_name ={default_fbserv,font_name} - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0046-001-GetNearestFontToDesignHeightInTwips_command005] -font_height =0 -font_name ={default_fbserv,font_name} - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0046-001-GetNearestFontToDesignHeightInTwips_command006] -font_height =-1 -font_name ={default_fbserv,font_name} - - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0047-001-GetNearestFontToMaxHeightInPixels_command004] -font_height =1000000 -check_against_maximum =FALSE -font_name ={default_fbserv,font_name} -font_max_height =50 - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0047-001-GetNearestFontToMaxHeightInPixels_command005] -font_height =0 -check_against_maximum =FALSE -font_name ={default_fbserv,font_name} -font_max_height =50 - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0047-001-GetNearestFontToDesignHeightInTwips_command006] -font_height =-1 -font_name ={default_fbserv,font_name} -font_max_height =50 - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0047-001-GetNearestFontToMaxHeightInPixels_command007] -font_height =50 -check_against_maximum =TRUE -font_name ={default_fbserv,font_name} -font_max_height =1000000 - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0047-001-GetNearestFontToMaxHeightInPixels_command008] -font_height =50 -check_against_maximum =FALSE -font_name ={default_fbserv,font_name} -font_max_height =0 - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0047-001-GetNearestFontToDesignHeightInTwips_command009] -font_height =50 -font_name ={default_fbserv,font_name} -font_max_height =-1 - - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0048-001-SetWidthFactor_command004] -factor =1000000 - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0048-001-SetHeightFactor_command005] -factor =1000000 - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0048-001-GetFontById_command008] -font_uid =268435494 -alg_style =TAlgStyle1 - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0048-001-SetWidthFactor_command011] -factor =-1000000 - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0048-001-SetHeightFactor_command012] -factor =-1000000 - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0048-001-GetFontById_command014] -font_uid =268435494 -alg_style =TAlgStyle1 - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0048-001-SetWidthFactor_command017] -factor =0 - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0048-001-SetHeightFactor_command018] -factor =0 - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0048-001-GetFontById_command020] -font_uid =268435494 -alg_style =TAlgStyle1 - - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0049-001-FontHeightInTwips_command004] -height_index =-1 -typeface_index =0 -check_height_positive =FALSE - - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0050-001-FontHeightInTwips_command004] -height_index =0 -typeface_index =-1 -check_height_positive =FALSE - - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0051-001-FontHeightInPixels_command004] -height_index =-1 -typeface_index =0 -check_height_positive =FALSE - - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0052-001-FontHeightInPixels_command004] -height_index =0 -typeface_index =-1 -check_height_positive =TRUE - - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0053-001-SetFontNameAliasL_command004] -font_name = -font_name_alias = - - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0054-001-GetNearestFontToDesignHeightInTwips_command004] -font_height =50 -font_name = - - -[GRAPHICS-FBSERV-FbsTypefaceStore-PublicApi-0056-001-SetSystemDefaultTypefaceNameL_command004] -font_name =WrongName diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fbserv/testdata/empty_file.txt diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fbserv/testdata/scaniline_10bytes.txt --- a/graphicsapitest/graphicssvs/fbserv/testdata/scaniline_10bytes.txt Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ - ` 3 d} -% \ No newline at end of file diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fbserv/testdata/test_bitmap.mbm Binary file graphicsapitest/graphicssvs/fbserv/testdata/test_bitmap.mbm has changed diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fbserv/testdata/test_bitmap_24bit_400x300.mbm Binary file graphicsapitest/graphicssvs/fbserv/testdata/test_bitmap_24bit_400x300.mbm has changed diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fbserv/testdata/test_bitmap_32x8.mbm Binary file graphicsapitest/graphicssvs/fbserv/testdata/test_bitmap_32x8.mbm has changed diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fbserv/testdata/test_bitmap_offset8.mbm Binary file graphicsapitest/graphicssvs/fbserv/testdata/test_bitmap_offset8.mbm has changed diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fbserv/testdata/test_bitmap_rom.rbm Binary file graphicsapitest/graphicssvs/fbserv/testdata/test_bitmap_rom.rbm has changed diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fbserv/testdata/testfontfb.gdr Binary file graphicsapitest/graphicssvs/fbserv/testdata/testfontfb.gdr has changed diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fntstore/group/T_GraphicsFntstoreAPI.mmp --- a/graphicsapitest/graphicssvs/fntstore/group/T_GraphicsFntstoreAPI.mmp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,82 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -TARGETTYPE EXE -TARGET T_GraphicsFntstoreApi.exe -UID 0x1000007D 0x20003723 -VENDORID 0x70000001 - -CAPABILITY SwEvent WriteDeviceData Powermgmt ProtServ - -SOURCEPATH ../src -SOURCE T_GraphicsFntstoreAPIServer.cpp -SOURCE T_DataAlgStyle.cpp -SOURCE T_DataBitmapFont.cpp -SOURCE T_DataFontStore.cpp -SOURCE T_DataLinkedTypefaceSpecification.cpp -SOURCE T_TestOpenFont.cpp - -SOURCEPATH ../../common/src -SOURCE TestServerBase.cpp -SOURCE UtilityClearPanicDlg.cpp -SOURCE DataWrapperBase.cpp -SOURCE T_GraphicsUtil.cpp -SOURCE DataWrapperActive.cpp - -SOURCEPATH ../../gdi/src -SOURCE T_DataFont.cpp -SOURCE T_DataTypefaceStore.cpp - -USERINCLUDE ../inc -USERINCLUDE ../../common/inc -USERINCLUDE ../../gdi/inc -USERINCLUDE ../../bitgdi/inc -USERINCLUDE ../../fbserv/inc - -MW_LAYER_SYSTEMINCLUDE_SYMBIAN -OS_LAYER_SYSTEMINCLUDE_SYMBIAN - -LIBRARY euser.lib -LIBRARY efsrv.lib -LIBRARY esock.lib -LIBRARY testexecuteutils.lib -LIBRARY testexecutelogclient.lib -LIBRARY charconv.lib -LIBRARY fbscli.lib -LIBRARY ws32.lib -LIBRARY gdi.lib -LIBRARY bafl.lib -LIBRARY c32.lib -LIBRARY c32root.lib -LIBRARY hal.lib -LIBRARY w32stdgraphic.lib - -LIBRARY fntstr.lib -LIBRARY fntstr_fmm.lib -LIBRARY estor.lib -LIBRARY bitgdi.lib -LIBRARY eikcore.lib -LIBRARY cone.lib -LIBRARY apgrfx.lib -LIBRARY iniparser.lib -LIBRARY imageconversion.lib -LIBRARY ecom.lib - -SOURCEPATH ..\src -SOURCE T_DataOpenFontGlyphData.cpp T_DataOpenFontRasterizerContext.cpp - -SMPSAFE diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fntstore/group/bld.inf --- a/graphicsapitest/graphicssvs/fntstore/group/bld.inf Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,58 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// - -PRJ_TESTEXPORTS -t_fntstoreapi.iby /epoc32/rom/include/t_fntstoreapi.iby -t_fntstoreapi_binaries.iby /epoc32/rom/include/t_fntstoreapi_binaries.iby -t_fntstoreapi_testdata.iby /epoc32/rom/include/t_fntstoreapi_testdata.iby - -// to pkg -../pkg/t_fntstoreapi.pkg /epoc32/pkg/t_fntstoreapi.pkg -../pkg/tfntstoreapi.bat /epoc32/pkg/tfntstoreapi.bat - -../scripts/setup-T-GRAPHICS-FNTSTORE-PublicApi.script z:/graphics/setup-t-graphics-fntstore-publicapi.script - -../scripts/GRAPHICS-FNTSTORE-PublicApi.script /epoc32/pkg/graphics-fntstore-publicapi.script -../scripts/GRAPHICS-FNTSTORE-PublicApi.script z:/graphics/graphics-fntstore-publicapi.script - -../scripts/GRAPHICS-FNTSTORE-FntStore-PublicApi.script /epoc32/pkg/graphics-fntstore-fntstore-publicapi.script -../scripts/GRAPHICS-FNTSTORE-FntStore-PublicApi.script z:/graphics/graphics-fntstore-fntstore-publicapi.script -../testdata/GRAPHICS-FNTSTORE-FntStore-PublicApi.ini /epoc32/pkg/graphics-fntstore-fntstore-publicapi.ini -../testdata/GRAPHICS-FNTSTORE-FntStore-PublicApi.ini z:/graphics/graphics-fntstore-fntstore-publicapi.ini - -../scripts/GRAPHICS-FNTSTORE-BitmapFont-PublicApi.script /epoc32/pkg/graphics-fntstore-bitmapfont-publicapi.script -../scripts/GRAPHICS-FNTSTORE-BitmapFont-PublicApi.script z:/graphics/graphics-fntstore-bitmapfont-publicapi.script -../testdata/GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini /epoc32/pkg/graphics-fntstore-bitmapfont-publicapi.ini -../testdata/GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini z:/graphics/graphics-fntstore-bitmapfont-publicapi.ini - -../scripts/GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi.script /epoc32/pkg/graphics-fntstore-openfontrasterizercontext-publicapi.script -../scripts/GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi.script z:/graphics/graphics-fntstore-openfontrasterizercontext-publicapi.script -../testdata/GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi.ini /epoc32/pkg/graphics-fntstore-openfontrasterizercontext-publicapi.ini -../testdata/GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi.ini z:/graphics/graphics-fntstore-openfontrasterizercontext-publicapi.ini - -// Generic test date -../testdata/dummy /epoc32/pkg/dummy -../testdata/dummy z:/graphics/fntstore/dummy -../testdata/testfontws.gdr /epoc32/pkg/testfontws.gdr -../testdata/testfontws.gdr z:/graphics/fntstore/testfontws.gdr -../testdata/bad_entrysel /epoc32/pkg/bad_entrysel -../testdata/bad_entrysel z:/graphics/fntstore/bad_entrysel - - -PRJ_TESTMMPFILES -T_GraphicsFntstoreAPI.mmp - - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fntstore/group/t_fntstoreapi.iby --- a/graphicsapitest/graphicssvs/fntstore/group/t_fntstoreapi.iby Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// - -#if (!defined __T_FNTSTORE_API_IBY__) -#define __T_FNTSTORE_API_IBY__ - -#include -#include - -#endif diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fntstore/group/t_fntstoreapi_binaries.iby --- a/graphicsapitest/graphicssvs/fntstore/group/t_fntstoreapi_binaries.iby Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// - -#if (!defined __T_FNTSTORE_API_BINARIES_IBY__) -#define __T_FNTSTORE_API_BINARIES_IBY__ - -#include - -#if (!defined EKA2) -file=ABI_DIR\BUILD_DIR\T_GraphicsFntstoreAPI.exe system\libs\T_GraphicsFntstoreAPI.exe - -#else -file=ABI_DIR\BUILD_DIR\T_GraphicsFntstoreAPI.exe system\bin\T_GraphicsFntstoreAPI.exe - -#endif - -#endif diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fntstore/group/t_fntstoreapi_testdata.iby --- a/graphicsapitest/graphicssvs/fntstore/group/t_fntstoreapi_testdata.iby Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,35 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// - -#if (!defined __T_FNTSTORE_API_TESTDATA_IBY__) -#define __T_FNTSTORE_API_TESTDATA_IBY__ - -data=EPOCROOT##Epoc32\data\z\graphics\setup-t-graphics-fntstore-publicapi.script graphics\setup-t-graphics-fntstore-publicapi.script - -data=EPOCROOT##Epoc32\data\z\graphics\graphics-fntstore-fntstore-publicapi.script graphics\graphics-fntstore-fntstore-publicapi.script -data=EPOCROOT##Epoc32\data\z\graphics\graphics-fntstore-fntstore-publicapi.ini graphics\graphics-fntstore-fntstore-publicapi.ini - -data=EPOCROOT##Epoc32\data\z\graphics\graphics-fntstore-bitmapfont-publicapi.script graphics\graphics-fntstore-bitmapfont-publicapi.script -data=EPOCROOT##Epoc32\data\z\graphics\graphics-fntstore-bitmapfont-publicapi.ini graphics\graphics-fntstore-bitmapfont-publicapi.ini - -data=EPOCROOT##Epoc32\data\z\graphics\graphics-fntstore-openfontrasterizercontext-publicapi.script graphics\graphics-fntstore-openfontrasterizercontext-publicapi.script -data=EPOCROOT##Epoc32\data\z\graphics\graphics-fntstore-openfontrasterizercontext-publicapi.ini graphics\graphics-fntstore-openfontrasterizercontext-publicapi.ini - -data=EPOCROOT##Epoc32\data\z\graphics\fntstore\dummy graphics\fntstore\dummy -data=EPOCROOT##Epoc32\data\z\graphics\fntstore\testfontws.gdr graphics\fntstore\testfontws.gdr -data=EPOCROOT##Epoc32\data\z\graphics\fntstore\bad_entrysel graphics\fntstore\bad_entrysel - -#endif diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fntstore/inc/T_DataAlgStyle.h --- a/graphicsapitest/graphicssvs/fntstore/inc/T_DataAlgStyle.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,61 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataAlgStyle -*/ - -#if (!defined __T_DATA_ALG_STYLE_H__) -#define __T_DATA_ALG_STYLE_H__ - -// User Includes -#include "DataWrapperBase.h" - -// EPOC includes -#include -#include - -class CT_DataAlgStyle : public CDataWrapperBase - { -public: - CT_DataAlgStyle(); - ~CT_DataAlgStyle(); - - static CT_DataAlgStyle* NewL(); - - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - virtual TAny* GetObject(); - virtual void SetObjectL(TAny* aObject); - virtual void DisownObjectL(); - void DestroyData(); - -private: - void ConstructL(); - - void DoCmdNew(); - void DoCmdSetWidthFactor(const TDesC& aSection); - void DoCmdSetHeightFactor(const TDesC& aSection); - -private: - /** TAlgStyle class instance to work with*/ - TAlgStyle* iAlgStyle; - }; - -#endif /* __T_DATA_ALG_STYLE_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fntstore/inc/T_DataBitmapFont.h --- a/graphicsapitest/graphicssvs/fntstore/inc/T_DataBitmapFont.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,73 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataBitmapFont -*/ - -#if (!defined __T_DATA_BITMAP_FONT_H__) -#define __T_DATA_BITMAP_FONT_H__ - -// User Includes -#include "T_DataFont.h" - -// EPOC includes -#include -#include - -class CT_DataBitmapFont : public CT_DataFont - { -public: - static CT_DataBitmapFont* NewL(); - - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - virtual TAny* GetObject(); - virtual void SetObjectL(TAny* aObject); - virtual void DisownObjectL(); - -protected: - CT_DataBitmapFont(); - - virtual CFont* GetFont() const; - -private: - void DoCmdBitmapEncoding(const TDesC& aSection); - void DoCmdCharacterMetrics(const TDesC& aSection); - void DoCmdCharacterNeedsToBeRasterized(const TDesC& aSection); - void DoCmdGetCharacterData(const TDesC& aSection); - void DoCmdGetFaceAttrib(const TDesC& aSection); - void DoCmdGetFontMetrics(const TDesC& aSection); - void DoCmdGlyphBitmapType(const TDesC& aSection); - void DoCmdHasCharacterL(const TDesC& aSection); - void DoCmdIsOpenFont(const TDesC& aSection); - void DoCmdOpenFont(const TDesC& aSection); - void DoCmdRasterize(const TDesC& aSection); - void DoCmdUniqueFontId(const TDesC& aSection); - - static TBool GetCharacterMetricsFromConfig(CDataWrapper& aDataWrapper,const TDesC& aSectName,const TDesC& aKeyName,TCharacterMetrics& aResult); - static TBool GetOpenFontCharMetricsFromConfig(CDataWrapperBase& aDataWrapper,const TDesC& aSectName,const TDesC& aKeyName,TOpenFontCharMetrics& aResult); - static TBool GetOpenFontFaceAttribFromConfig(CDataWrapper& aDataWrapper,const TDesC& aSectName,const TDesC& aKeyName,TOpenFontFaceAttrib& aResult); - static TBool GetOpenFontMetricsFromConfig(CDataWrapper& aDataWrapper,const TDesC& aSectName,const TDesC& aKeyName,TOpenFontMetrics& aResult); - -private: - CBitmapFont* iBitmapFont; - }; - -#endif /* __T_DATA_BITMAP_FONT_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fntstore/inc/T_DataFontStore.h --- a/graphicsapitest/graphicssvs/fntstore/inc/T_DataFontStore.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,85 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataFontStore -*/ - -#if (!defined __T_DATA_FONTSTORE_H__) -#define __T_DATA_FONTSTORE_H__ - -// User Includes -#include "DataWrapperBase.h" - -// EPOC includes -#include -#include -#include "T_DataTypefaceStore.h" - -class CT_DataFontStore : public CT_DataTypefaceStore - { -public: - - ~CT_DataFontStore(); - static CT_DataFontStore* NewL(); - - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - virtual TAny* GetObject(); - virtual void SetObjectL(TAny* aObject); - virtual void DisownObjectL(); - void DestroyData(); - virtual CTypefaceStore* GetTypefaceStore() const; - -protected: - CT_DataFontStore(); - void ConstructL(); - -private: - void DoCmdNewL(const TDesC& aSection); - void DoCmdDestructor(); - - void DoCmdAddFileL(const TDesC& aSection); - void DoCmdRemoveFile(const TDesC& aSection); - void DoCmdDefaultBitmapType(const TDesC& aSection); - void DoCmdDeleteSessionCache(const TDesC& aSection); - void DoCmdFontHeightInPixels(const TDesC& aSection); - void DoCmdFontHeightInTwips(const TDesC& aSection); - void DoCmdGetFontByIdL(const TDesC& aSection); - void DoCmdGetNearestFontToDesignHeightInPixelsL(const TDesC& aSection); - TBool DoCmdGetNearestFontToDesignHeightInTwipsL(const TDesC& aSection); - void DoCmdGetNearestFontToMaxHeightInPixelsL(const TDesC& aSection); - TBool DoCmdGetNearestFontToMaxHeightInTwipsL(const TDesC& aSection); - void DoCmdInstallRasterizerL(const TDesC& aSection); - void DoCmdInstallShaperFactoryL(const TDesC& aSection); - void DoCmdNumTypefaces(const TDesC& aSection); - void DoCmdSetDefaultBitmapType(const TDesC& aSection); - void DoCmdTypefaceSupport(const TDesC& aSection); - -private: - TBool FindIdByName(const TDesC&, TInt&); - -private: - /** CLinkedTypefaceSpecification class instance to work with*/ - CFontStore* iFntStore; - RArray iFile; - RArray iId; - }; - -#endif /* __T_DATA_FONTSTORE_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fntstore/inc/T_DataLinkedTypefaceSpecification.h --- a/graphicsapitest/graphicssvs/fntstore/inc/T_DataLinkedTypefaceSpecification.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,61 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataLinkedTypefaceSpecification -*/ - -#if (!defined __T_DATA_LINKED_TYPEFACE_SPECIFICATION_H__) -#define __T_DATA_LINKED_TYPEFACE_SPECIFICATION_H__ - -// User Includes -#include "DataWrapperBase.h" - -// EPOC includes -#include -#include - -class CT_DataLinkedTypefaceSpecification : public CDataWrapperBase - { -public: - - ~CT_DataLinkedTypefaceSpecification(); - static CT_DataLinkedTypefaceSpecification* NewL(); - - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - virtual TAny* GetObject(); - virtual void SetObjectL(TAny* aObject); - virtual void DisownObjectL(); - void DestroyData(); - -protected: - CT_DataLinkedTypefaceSpecification(); - void ConstructL(); - -private: - void DoCmdNewL(const TDesC& aSection); - void DoCmdDestructor(); - -private: - /** CLinkedTypefaceSpecification class instance to work with*/ - CLinkedTypefaceSpecification* iSpec; - }; - -#endif /* __T_DATA_LINKED_TYPEFACE_SPECIFICATION_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fntstore/inc/T_DataOpenFontGlyphData.h --- a/graphicsapitest/graphicssvs/fntstore/inc/T_DataOpenFontGlyphData.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,60 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataOpenFontGlyphData -*/ - -#if (!defined __T_DATA_OPEN_FONT_GLYPH_DATA_H__) -#define __T_DATA_OPEN_FONT_GLYPH_DATA_H__ - -// User Includes -#include "DataWrapperBase.h" - -// EPOC includes -#include -#include - -class CT_DataOpenFontGlyphData : public CDataWrapperBase - { -public: - CT_DataOpenFontGlyphData(); - ~CT_DataOpenFontGlyphData(); - - static CT_DataOpenFontGlyphData* NewL(); - - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - virtual TAny* GetObject(); - virtual void SetObjectL(TAny* aObject); - virtual void DisownObjectL(); - void DestroyData(); - -private: - void ConstructL(); - - void DoCmdNew(const TDesC& aSection); - void DoCmdDestructor(); - -private: - /** TOpenFontGlyphData class instance to work with*/ - TOpenFontGlyphData* iGlyphData; - }; - -#endif /* __T_DATA_OPEN_FONT_GLYPH_DATA_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fntstore/inc/T_DataOpenFontRasterizerContext.h --- a/graphicsapitest/graphicssvs/fntstore/inc/T_DataOpenFontRasterizerContext.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,64 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataOpenFontRasterizerContext -*/ - -#if (!defined __T_DATA_OPEN_FONT_RASTERIZER_CONTEXT_H__) -#define __T_DATA_OPEN_FONT_RASTERIZER_CONTEXT_H__ - -// User Includes -#include "DataWrapperBase.h" - -// EPOC includes -#include -#include - -class CT_DataOpenFontRasterizerContext : public CDataWrapperBase - { -public: - CT_DataOpenFontRasterizerContext(); - ~CT_DataOpenFontRasterizerContext(); - - static CT_DataOpenFontRasterizerContext* NewL(); - - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - virtual TAny* GetObject(); - virtual void SetObjectL(TAny* aObject); - virtual void DisownObjectL(); - void DestroyData(); - -private: - void ConstructL(); - - void DoCmdNew(); - void DoCmdEndGlyph(); - void DoCmdStartGlyphL(const TDesC& aSection); - void DoCmdWriteGlyphBit(const TDesC& aSection); - void DoCmdWriteGlyphByte(const TDesC& aSection); - void DoCmdDestructor(); - -private: - /** COpenFontRasterizerContext class instance to work with*/ - COpenFontRasterizerContext* iRasterizerContext; - }; - -#endif /* __T_DATA_OPEN_FONT_RASTERIZER_CONTEXT_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fntstore/inc/T_GraphicsFntstoreAPIServer.h --- a/graphicsapitest/graphicssvs/fntstore/inc/T_GraphicsFntstoreAPIServer.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,48 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -#if (!defined __T_GRAPHICS_FNTSTORE_API_SERVER_H__) -#define __T_GRAPHICS_FNTSTORE_API_SERVER_H__ - -// User Include -#include "TestServerBase.h" - -class CT_GraphicsFntstoreAPIServer : public CTestServerBase - { -private: - class CT_GraphicsFntstoreAPIBlock : public CTestBlockController - { - public: - inline CT_GraphicsFntstoreAPIBlock(); - inline ~CT_GraphicsFntstoreAPIBlock(); - - CDataWrapper* CreateDataL(const TDesC& aData); - }; - -public: - inline CT_GraphicsFntstoreAPIServer(); - inline ~CT_GraphicsFntstoreAPIServer(); - - static CT_GraphicsFntstoreAPIServer* NewL(); - - inline CTestBlockController* CreateTestBlock(); - }; - -#include "T_GraphicsFntstoreAPIServer.inl" - -#endif /* __T_GRAPHICS_FNTSTORE_API_SERVER_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fntstore/inc/T_GraphicsFntstoreAPIServer.inl --- a/graphicsapitest/graphicssvs/fntstore/inc/T_GraphicsFntstoreAPIServer.inl Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,48 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_GraphicsFntstoreAPIServer inline functions -*/ - - -/*@{*/ -/*@}*/ - -inline CT_GraphicsFntstoreAPIServer::CT_GraphicsFntstoreAPIBlock::CT_GraphicsFntstoreAPIBlock() - { - } - -inline CT_GraphicsFntstoreAPIServer::CT_GraphicsFntstoreAPIBlock::~CT_GraphicsFntstoreAPIBlock() - { - } - -inline CT_GraphicsFntstoreAPIServer::CT_GraphicsFntstoreAPIServer() - { - } - -inline CT_GraphicsFntstoreAPIServer::~CT_GraphicsFntstoreAPIServer() - { - } - -inline CTestBlockController* CT_GraphicsFntstoreAPIServer::CreateTestBlock() - { - return new CT_GraphicsFntstoreAPIBlock(); - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fntstore/inc/T_TestOpenFont.h --- a/graphicsapitest/graphicssvs/fntstore/inc/T_TestOpenFont.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,106 +0,0 @@ -// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// Creates a dummy rasterizer and a dummy shaper for FontStore APIs testing. -// -// - -#ifndef __T_TESTOPENFONT_H__ -#define __T_TESTOPENFONT_H__ - -#include -#include -#include - -_LIT(KTestFont1, "dummy"); -_LIT(KTestFont2, "dummy_2"); - - -class CTestRasterizer : public COpenFontRasterizer - { -public: - static CTestRasterizer* NewL(); - COpenFontFile* NewFontFileL(TInt aUid, const TDesC& aFileName, RFs& aFileSession); - }; - - -class CTestFontFile: public COpenFontFile - { -public: - static CTestFontFile* NewL(TInt aUid,const TDesC& aFileName); - - TBool GetNearestFontHelper(const TOpenFontSpec& aDesiredFontSpec, TInt aPixelWidth, TInt aPixelHeight, - TInt& aFaceIndex, TOpenFontSpec& aActualFontSpec) const; - void GetNearestFontInPixelsL(RHeap* aHeap, COpenFontSessionCacheList* aSessionCacheList, - const TOpenFontSpec& aDesiredFontSpec, TInt aPixelWidth, TInt aPixelHeight, - COpenFont*& aFont,TOpenFontSpec& aActualFontSpec); - void GetNearestFontToDesignHeightInPixelsL(RHeap* aHeap,COpenFontSessionCacheList* aSessionCacheList, - const TOpenFontSpec& aDesiredFontSpec,TInt aPixelWidth,TInt aPixelHeight, - COpenFont*& aFont,TOpenFontSpec& aActualFontSpec); - void GetNearestFontToMaxHeightInPixelsL(RHeap* aHeap,COpenFontSessionCacheList* aSessionCacheList, - const TOpenFontSpec& aDesiredFontSpec,TInt aPixelWidth,TInt aPixelHeight, - COpenFont*& aFont,TOpenFontSpec& aActualFontSpec, TInt aMaxHeight); - virtual TBool HasUnicodeCharacterL(TInt aFaceIndex,TInt aCode) const; - -private: - CTestFontFile(TInt aUid,const TDesC& aFileName); - void ConstructL(); - }; - - -class CTestFont: public COpenFont - { -public: - static CTestFont* NewL(RHeap* aHeap,COpenFontSessionCacheList* aSessionCacheList,CTestFontFile* aFontFile,TInt aSizeInPixels); -private: - CTestFont(RHeap* aHeap,COpenFontSessionCacheList* aSessionCacheList,CTestFontFile* aFontFile,TInt aSizeInPixels); - virtual void RasterizeL(TInt aCode,TOpenFontGlyphData* aGlyphData); - }; - - -class CTestShaperFactory: public CShaperFactory - { -public: - static CTestShaperFactory* NewL(); - virtual ~CTestShaperFactory(); - virtual CShaper* NewShaperL(CBitmapFont* aBitmapfont, TInt aScript, TInt aLanguage, RHeap* aHeap); - -private: - CTestShaperFactory(); - }; - - -class CTestShaper : public CShaper - { -public: - - static CShaper* NewL(CBitmapFont* aBitmapfont, TInt aScript, TInt aLanguage, RHeap* aHeap); - ~CTestShaper(); - virtual TInt ShapeText(TShapeHeader*& aOutput, const TInput& aInput, RHeap* aHeapForOutput); - -private: - CTestShaper(); - TInt ConstructL(CBitmapFont* aBitmapfont, TInt aScript, TInt aLanguage, RHeap* iHeap); - TInt TestShapeTextL(TShapeHeader*& aOutput, const TInput& aInput, RHeap* aHeapForOutput); - -private: - RHeap* iClientHeap; - RHeap* iHeap; - TAny* iHeapMemory; - TInt32* iGlyphs; - TInt32* iIndices; - TInt32* iPositions; - }; - -#endif // __T_TESTOPENFONT_H__ - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fntstore/pkg/t_fntstoreapi.pkg --- a/graphicsapitest/graphicssvs/fntstore/pkg/t_fntstoreapi.pkg Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,60 +0,0 @@ -; -; Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of "Eclipse Public License v1.0" -; which accompanies this distribution, and is available -; at the URL "http://www.eclipse.org/legal/epl-v10.html". -; -; Initial Contributors: -; Nokia Corporation - initial contribution. -; -; Contributors: -; -; Description: -; -; -; Install file for T_GraphicsFntstoreApi.exe -; - -; Languages - -&EN - -; Installation header -; UID is the app's UID -#{"T_FntstoreAPI"},(0x20003723),1,0,0 - -;%{"Vendor-EN"} -;:"Symbian" - -; Localised Vendor name -%{"Nokia"} - -; Unique Vendor name -:"Nokia" - - -"T_GraphicsFntstoreApi.exe"-"!:\sys\bin\T_GraphicsFntstoreApi.exe" - -"t_graphics.ini"-"!:\graphics\t_graphics.ini" -"tfntstoreapi.bat"-"!:\graphics\tfntstoreapi.bat" -"t_graphics.tcs"-"!:\graphics\t_graphics.tcs" -"t_graphics_panic.tcs"-"!:\graphics\t_graphics_panic.tcs" -"graphics-fntstore-publicapi.script"-"!:\graphics\graphics-fntstore-publicapi.script" - -"graphics-fntstore-fntstore-publicapi.script"-"!:\graphics\graphics-fntstore-fntstore-publicapi.script" -"graphics-fntstore-fntstore-publicapi.ini"-"!:\graphics\graphics-fntstore-fntstore-publicapi.ini" -"graphics-fntstore-bitmapfont-publicapi.script"-"!:\graphics\graphics-fntstore-bitmapfont-publicapi.script" -"graphics-fntstore-bitmapfont-publicapi.ini"-"!:\graphics\graphics-fntstore-bitmapfont-publicapi.ini" -"graphics-fntstore-openfontrasterizercontext-publicapi.script"-"!:\graphics\graphics-fntstore-openfontrasterizercontext-publicapi.script" -"graphics-fntstore-openfontrasterizercontext-publicapi.ini"-"!:\graphics\graphics-fntstore-openfontrasterizercontext-publicapi.ini" - -"fntstore\dummy"-"!:\graphics\fntstore\dummy" -"fntstore\testfontws.gdr"-"!:\graphics\fntstore\testfontws.gdr" -"fntstore\bad_entrysel"-"!:\graphics\fntstore\bad_entrysel" - -; Required files -; None - -; Component .sis files -; None diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fntstore/pkg/tfntstoreapi.bat --- a/graphicsapitest/graphicssvs/fntstore/pkg/tfntstoreapi.bat Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,17 +0,0 @@ -@rem -@rem Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -@rem All rights reserved. -@rem This component and the accompanying materials are made available -@rem under the terms of "Eclipse Public License v1.0" -@rem which accompanies this distribution, and is available -@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". -@rem -@rem Initial Contributors: -@rem Nokia Corporation - initial contribution. -@rem -@rem Contributors: -@rem -@rem Description: -@rem - -testexecute \graphics\graphics-fntstore-publicapi diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fntstore/scripts/GRAPHICS-FNTSTORE-BitmapFont-PublicApi.script --- a/graphicsapitest/graphicssvs/fntstore/scripts/GRAPHICS-FNTSTORE-BitmapFont-PublicApi.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,947 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// -//! @file -//! @SYMTestSuiteName GRAPHICS-FNTSTORE-BitmapFont-PublicApi -//! @SYMScriptTestEnvironment - -///////////////////////////////////////////////////////////////////// -// GRAPHICS-FNTSTORE-BitmapFont-PublicApi.script -// -// Tests all public elements of the CBitmapFont -// classes as a means of confidence that the APIs work as expected. -// -// The purpose is to provide a regression test suite of PublishedAll APIs for CBitmapFont -// The tests are fully automated. -///////////////////////////////////////////////////////////////////// - -LOAD_SUITE T_GraphicsFntstoreApi -DELAY 1000 - - -START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0001 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0001 -//! @SYMAPI CBitmapFont::BitmapEncoding() -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 15/04/2009 -//! @SYMTestCaseDesc Get encoding value, using a bitmap font. -//! @SYMTestActions 1. Create a CFontStore object, a TAlgStyle object and a CBitmapFont object. -//! 2. Add a font file specified in test data. -//! 3. Get a bitmap font. -//! 4. Call BitmapEncoding and check the return value. -//! 5. Release the font and remove the font file. -//! 6. Destroy the TAlgStyle object and the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults BitmapEncoding returns the expected value. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - CREATE_OBJECT CBitmapFont bmpFont - CREATE_OBJECT TAlgStyle algStyle - COMMAND fntStore NewL - COMMAND algStyle new - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0001-AddFileL_command03 - COMMAND fntStore GetFontById GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0001-GetFontById_command04 - COMMAND bmpFont BitmapEncoding GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0001-BitmapEncoding_command05 - COMMAND fntStore ReleaseFont GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0001-ReleaseFont_command06 - COMMAND fntStore RemoveFile - COMMAND algStyle ~ - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0001 - - -START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0002 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0002 -//! @SYMAPI CBitmapFont::BitmapEncoding() -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 15/04/2009 -//! @SYMTestCaseDesc Get encoding value, using an open font. -//! @SYMTestActions 1. Create a CFontStore object and a CBitmapFont object. -//! 2. Install a rasterizer and add a font file. -//! 3. Get an open font. -//! 4. Call BitmapEncoding and check the return value. -//! 5. Release the font and remove the font file. -//! 6. Destroy the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults BitmapEncoding returns the expected value. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - CREATE_OBJECT CBitmapFont bmpFont - COMMAND fntStore NewL - COMMAND fntStore InstallRasterizerL GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0002-InstallRasterizerL_command02 - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0002-AddFileL_command03 - COMMAND fntStore GetNearestFontToDesignHeightInPixels GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0002-GetNearestFontToDesignHeightInPixels_command04 - COMMAND bmpFont BitmapEncoding GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0002-BitmapEncoding_command05 - COMMAND fntStore ReleaseFont GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0002-ReleaseFont_command06 - COMMAND fntStore RemoveFile - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0002 - - -START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0003 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0003 -//! @SYMAPI CBitmapFont::CharacterMetrics(TInt, const TUint8{ptr}{ref}) -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 15/04/2009 -//! @SYMTestCaseDesc Get a pointer to a bitmap and the metrics for a specified character, using a bitmap font. -//! @SYMTestActions 1. Create a CFontStore object, a TAlgStyle object and a CBitmapFont object. -//! 2. Add a font file specified in test data. -//! 3. Get a bitmap font. -//! 4. Call CharacterMetrics with code 0 and check the return value. -//! 5. Call CharacterMetrics with code 33 and check the return value. -//! 6. Release the font and remove the font file. -//! 7. Destroy the TAlgStyle object and the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Both bitmap pointers are not NULL. -//! 2. Both returned metrics are expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - CREATE_OBJECT CBitmapFont bmpFont - CREATE_OBJECT TAlgStyle algStyle - COMMAND fntStore NewL - COMMAND algStyle new - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0003-AddFileL_command03 - COMMAND fntStore GetFontById GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0003-GetFontById_command04 - COMMAND bmpFont CharacterMetrics GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0003-CharacterMetrics_command05 - COMMAND bmpFont CharacterMetrics GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0003-CharacterMetrics_command06 - COMMAND fntStore ReleaseFont GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0003-ReleaseFont_command07 - COMMAND fntStore RemoveFile - COMMAND algStyle ~ - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0003 - - -START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0004 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0004 -//! @SYMAPI CBitmapFont::CharacterMetrics(TInt, const TUint8{ptr}{ref}) -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 15/04/2009 -//! @SYMTestCaseDesc Negative case; Get a pointer to a bitmap and the metrics for a specified character with negative and big code, using a bitmap font. -//! @SYMTestActions 1. Create a CFontStore object, a TAlgStyle object and a CBitmapFont object. -//! 2. Add a font file specified in test data. -//! 3. Get a bitmap font. -//! 4. Call CharacterMetrics with code -1 and check the return value. -//! 5. Call CharacterMetrics with code 99999 and check the return value. -//! 6. Release the font and remove the font file. -//! 7. Destroy the TAlgStyle object and the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Both bitmap pointers are not NULL. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - CREATE_OBJECT CBitmapFont bmpFont - CREATE_OBJECT TAlgStyle algStyle - COMMAND fntStore NewL - COMMAND algStyle new - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0004-AddFileL_command03 - COMMAND fntStore GetFontById GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0004-GetFontById_command04 - COMMAND bmpFont CharacterMetrics GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0004-CharacterMetrics_command05 - COMMAND bmpFont CharacterMetrics GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0004-CharacterMetrics_command06 - COMMAND fntStore ReleaseFont GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0004-ReleaseFont_command07 - COMMAND fntStore RemoveFile - COMMAND algStyle ~ - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0004 - - -START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0005 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0005 -//! @SYMAPI CBitmapFont::CharacterMetrics(TInt, const TUint8{ptr}{ref}) -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 15/04/2009 -//! @SYMTestCaseDesc Get a pointer to a bitmap and the metrics for a specified character, using an open font. -//! @SYMTestActions 1. Create a CFontStore object and a CBitmapFont object. -//! 2. Install a rasterizer and add a font file. -//! 3. Get an open font. -//! 4. Call CharacterMetrics and check the return value. -//! 5. Release the font and remove the font file. -//! 6. Destroy the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Bitmap pointer is NULL. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - CREATE_OBJECT CBitmapFont bmpFont - COMMAND fntStore NewL - COMMAND fntStore InstallRasterizerL GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0005-InstallRasterizerL_command02 - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0005-AddFileL_command03 - COMMAND fntStore GetNearestFontToDesignHeightInPixels GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0005-GetNearestFontToDesignHeightInPixels_command04 - COMMAND bmpFont CharacterMetrics GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0005-CharacterMetrics_command05 - COMMAND fntStore ReleaseFont GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0005-ReleaseFont_command06 - COMMAND fntStore RemoveFile - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0005 - - -START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0006 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0006 -//! @SYMAPI CBitmapFont::CharacterNeedsToBeRasterized(TInt, TInt) -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 15/04/2009 -//! @SYMTestCaseDesc Get whether the specified character needs to be rasterised, using an open font. -//! @SYMTestActions 1. Create a CFontStore object and a CBitmapFont object. -//! 2. Install a rasterizer and add a font file. -//! 3. Get an open font. -//! 4. Call CharacterNeedsToBeRasterized and check the return value. -//! 5. Release the font and remove the font file. -//! 6. Destroy the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CharacterNeedsToBeRasterized returns the expected value. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - CREATE_OBJECT CBitmapFont bmpFont - COMMAND fntStore NewL - COMMAND fntStore InstallRasterizerL GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0006-InstallRasterizerL_command02 - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0006-AddFileL_command03 - COMMAND fntStore GetNearestFontToDesignHeightInPixels GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0006-GetNearestFontToDesignHeightInPixels_command04 - COMMAND bmpFont CharacterNeedsToBeRasterized GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0006-CharacterNeedsToBeRasterized_command05 - COMMAND fntStore ReleaseFont GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0006-ReleaseFont_command06 - COMMAND fntStore RemoveFile - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0006 - - -START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0007 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0007 -//! @SYMAPI CBitmapFont::CharacterNeedsToBeRasterized(TInt, TInt) -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 15/04/2009 -//! @SYMTestCaseDesc Get whether the specified character needs to be rasterised, using a bitmap font. -//! @SYMTestActions 1. Create a CFontStore object, a TAlgStyle object and a CBitmapFont object. -//! 2. Add a font file specified in test data. -//! 3. Get a bitmap font. -//! 4. Call CharacterNeedsToBeRasterized and check the return value. -//! 5. Release the font and remove the font file. -//! 6. Destroy the TAlgStyle object and the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CharacterNeedsToBeRasterized returns EFalse. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - CREATE_OBJECT CBitmapFont bmpFont - CREATE_OBJECT TAlgStyle algStyle - COMMAND fntStore NewL - COMMAND algStyle new - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0007-AddFileL_command03 - COMMAND fntStore GetFontById GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0007-GetFontById_command04 - COMMAND bmpFont CharacterNeedsToBeRasterized GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0007-CharacterNeedsToBeRasterized_command05 - COMMAND fntStore ReleaseFont GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0007-ReleaseFont_command06 - COMMAND fntStore RemoveFile - COMMAND algStyle ~ - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0007 - - -START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0008 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0008 -//! @SYMAPI CBitmapFont::CharacterNeedsToBeRasterized(TInt, TInt) -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 15/04/2009 -//! @SYMTestCaseDesc Negative case; Get whether the specified character with negative and big code needs to be rasterised, using an open font. -//! @SYMTestActions 1. Create a CFontStore object and a CBitmapFont object. -//! 2. Install a rasterizer and add a font file. -//! 3. Get an open font. -//! 4. Call CharacterNeedsToBeRasterized with code -1 and check the return value. -//! 5. Call CharacterNeedsToBeRasterized with code 99999 and check the return value. -//! 6. Release the font and remove the font file. -//! 7. Destroy the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CharacterNeedsToBeRasterized returns the expected value at two steps. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - CREATE_OBJECT CBitmapFont bmpFont - COMMAND fntStore NewL - COMMAND fntStore InstallRasterizerL GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0008-InstallRasterizerL_command02 - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0008-AddFileL_command03 - COMMAND fntStore GetNearestFontToDesignHeightInPixels GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0008-GetNearestFontToDesignHeightInPixels_command04 - COMMAND bmpFont CharacterNeedsToBeRasterized GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0008-CharacterNeedsToBeRasterized_command05 - COMMAND bmpFont CharacterNeedsToBeRasterized GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0008-CharacterNeedsToBeRasterized_command06 - COMMAND fntStore ReleaseFont GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0008-ReleaseFont_command07 - COMMAND fntStore RemoveFile - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0008 - - -START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0011 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0011 -//! @SYMAPI CBitmapFont::GetCharacterData(TInt, TInt, TOpenFontCharMetrics{ref}, const TUint8{ptr}{ref}) -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 15/04/2009 -//! @SYMTestCaseDesc Get a pointer to a bitmap and the metrics for a specified character, using an open font. -//! @SYMTestActions 1. Create a CFontStore object and a CBitmapFont object. -//! 2. Install a rasterizer and add a font file. -//! 3. Get an open font. -//! 4. Call GetCharacterData and check the return value. -//! 5. Release the font and remove the font file. -//! 6. Destroy the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults GetCharacterData returns the expected value. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - CREATE_OBJECT CBitmapFont bmpFont - COMMAND fntStore NewL - COMMAND fntStore InstallRasterizerL GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0011-InstallRasterizerL_command02 - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0011-AddFileL_command03 - COMMAND fntStore GetNearestFontToDesignHeightInPixels GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0011-GetNearestFontToDesignHeightInPixels_command04 - COMMAND bmpFont GetCharacterData GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0011-GetCharacterData_command05 - COMMAND fntStore ReleaseFont GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0011-ReleaseFont_command06 - COMMAND fntStore RemoveFile - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0011 - - -START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0012 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0012 -//! @SYMAPI CBitmapFont::GetCharacterData(TInt, TInt, TOpenFontCharMetrics{ref}, const TUint8{ptr}{ref}) -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 15/04/2009 -//! @SYMTestCaseDesc Get a pointer to a bitmap and the metrics for a specified character, using a bitmap font. -//! @SYMTestActions 1. Create a CFontStore object, a TAlgStyle object and a CBitmapFont object. -//! 2. Add a font file specified in test data. -//! 3. Get a bitmap font. -//! 4. Call GetCharacterData with code 0 and check the return value. -//! 5. Call GetCharacterData with code 330 and check the return value. -//! 6. Release the font and remove the font file. -//! 7. Destroy the TAlgStyle object and the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. GetCharacterData returns ETrue at two steps. -//! 2. Both bitmap pointers are not NULL. -//! 3. Both metrics are expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - CREATE_OBJECT CBitmapFont bmpFont - CREATE_OBJECT TAlgStyle algStyle - COMMAND fntStore NewL - COMMAND algStyle new - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0012-AddFileL_command03 - COMMAND fntStore GetFontById GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0012-GetFontById_command04 - COMMAND bmpFont GetCharacterData GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0012-GetCharacterData_command05 - COMMAND bmpFont GetCharacterData GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0012-GetCharacterData_command06 - COMMAND fntStore ReleaseFont GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0012-ReleaseFont_command07 - COMMAND fntStore RemoveFile - COMMAND algStyle ~ - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0012 - - -START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0013 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0013 -//! @SYMAPI CBitmapFont::GetCharacterData(TInt, TInt, TOpenFontCharMetrics{ref}, const TUint8{ptr}{ref}) -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 15/04/2009 -//! @SYMTestCaseDesc Negative case; Get a pointer to a bitmap and the metrics for a specified character with negative and big code, using a bitmap font. -//! @SYMTestActions 1. Create a CFontStore object, a TAlgStyle object and a CBitmapFont object. -//! 2. Add a font file specified in test data. -//! 3. Get a bitmap font. -//! 4. Call GetCharacterData with code -1 and check the return value. -//! 5. Call GetCharacterData with code 99999 and check the return value. -//! 6. Release the font and remove the font file. -//! 7. Destroy the TAlgStyle object and the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. GetCharacterData returns ETrue at two steps. -//! 2. Both bitmap pointers are not NULL. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - CREATE_OBJECT CBitmapFont bmpFont - CREATE_OBJECT TAlgStyle algStyle - COMMAND fntStore NewL - COMMAND algStyle new - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0013-AddFileL_command03 - COMMAND fntStore GetFontById GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0013-GetFontById_command04 - COMMAND bmpFont GetCharacterData GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0013-GetCharacterData_command05 - COMMAND bmpFont GetCharacterData GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0013-GetCharacterData_command06 - COMMAND fntStore ReleaseFont GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0013-ReleaseFont_command07 - COMMAND fntStore RemoveFile - COMMAND algStyle ~ - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0013 - - -START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0014 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0014 -//! @SYMAPI CBitmapFont::GetFaceAttrib(TOpenFontFaceAttrib{ref}) -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 15/04/2009 -//! @SYMTestCaseDesc Get the open font typeface attributes, using an open font. -//! @SYMTestActions 1. Create a CFontStore object and a CBitmapFont object. -//! 2. Install a rasterizer and add a font file. -//! 3. Get an open font. -//! 4. Call GetFaceAttrib and check the return value. -//! 5. Release the font and remove the font file. -//! 6. Destroy the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. GetFaceAttrib returns the expect value. -//! 2. Open font typeface attributes are expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - CREATE_OBJECT CBitmapFont bmpFont - COMMAND fntStore NewL - COMMAND fntStore InstallRasterizerL GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0014-InstallRasterizerL_command02 - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0014-AddFileL_command03 - COMMAND fntStore GetNearestFontToDesignHeightInPixels GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0014-GetNearestFontToDesignHeightInPixels_command04 - COMMAND bmpFont GetFaceAttrib GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0014-GetFaceAttrib_command05 - COMMAND fntStore ReleaseFont GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0014-ReleaseFont_command06 - COMMAND fntStore RemoveFile - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0014 - - -START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0015 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0015 -//! @SYMAPI CBitmapFont::GetFaceAttrib(TOpenFontFaceAttrib{ref}) -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 15/04/2009 -//! @SYMTestCaseDesc Get the open font typeface attributes, using a bitmap font. -//! @SYMTestActions 1. Create a CFontStore object, a TAlgStyle object and a CBitmapFont object. -//! 2. Add a font file specified in test data. -//! 3. Get a bitmap font. -//! 4. Call GetFaceAttrib and check the return value. -//! 5. Release the font and remove the font file. -//! 6. Destroy the TAlgStyle object and the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults GetFaceAttrib returns EFalse. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - CREATE_OBJECT CBitmapFont bmpFont - CREATE_OBJECT TAlgStyle algStyle - COMMAND fntStore NewL - COMMAND algStyle new - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0015-AddFileL_command03 - COMMAND fntStore GetFontById GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0015-GetFontById_command04 - COMMAND bmpFont GetFaceAttrib GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0015-GetFaceAttrib_command05 - COMMAND fntStore ReleaseFont GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0015-ReleaseFont_command06 - COMMAND fntStore RemoveFile - COMMAND algStyle ~ - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0015 - - -START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0016 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0016 -//! @SYMAPI CBitmapFont::GetFontMetrics(TOpenFontMetrics{ref}) -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 15/04/2009 -//! @SYMTestCaseDesc Get the open font metrics, using an open font. -//! @SYMTestActions 1. Create a CFontStore object and a CBitmapFont object. -//! 2. Install a rasterizer and add a font file. -//! 3. Get an open font. -//! 4. Call GetFontMetrics and check the return value. -//! 5. Release the font and remove the font file. -//! 6. Destroy the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. GetFontMetrics returns the expect value. -//! 2. Open font metrics is expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - CREATE_OBJECT CBitmapFont bmpFont - COMMAND fntStore NewL - COMMAND fntStore InstallRasterizerL GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0016-InstallRasterizerL_command02 - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0016-AddFileL_command03 - COMMAND fntStore GetNearestFontToDesignHeightInPixels GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0016-GetNearestFontToDesignHeightInPixels_command04 - COMMAND bmpFont GetFontMetrics GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0016-GetFontMetrics_command05 - COMMAND fntStore ReleaseFont GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0016-ReleaseFont_command06 - COMMAND fntStore RemoveFile - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0016 - - -START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0017 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0017 -//! @SYMAPI CBitmapFont::GetFontMetrics(TOpenFontMetrics{ref}) -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 15/04/2009 -//! @SYMTestCaseDesc Get the open font metrics, using a bitmap font. -//! @SYMTestActions 1. Create a CFontStore object, a TAlgStyle object and a CBitmapFont object. -//! 2. Add a font file specified in test data. -//! 3. Get a bitmap font. -//! 4. Call GetFontMetrics and check the return value. -//! 5. Release the font and remove the font file. -//! 6. Destroy the TAlgStyle object and the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults GetFontMetrics returns EFalse. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - CREATE_OBJECT CBitmapFont bmpFont - CREATE_OBJECT TAlgStyle algStyle - COMMAND fntStore NewL - COMMAND algStyle new - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0017-AddFileL_command03 - COMMAND fntStore GetFontById GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0017-GetFontById_command04 - COMMAND bmpFont GetFontMetrics GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0017-GetFontMetrics_command05 - COMMAND fntStore ReleaseFont GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0017-ReleaseFont_command06 - COMMAND fntStore RemoveFile - COMMAND algStyle ~ - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0017 - - -START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0021 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0021 -//! @SYMAPI CBitmapFont::GlyphBitmapType() -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 15/04/2009 -//! @SYMTestCaseDesc Get the anti-aliasing setting for the font, using an open font. -//! @SYMTestActions 1. Create a CFontStore object and a CBitmapFont object. -//! 2. Install a rasterizer and add a font file. -//! 3. Get an open font. -//! 4. Call GlyphBitmapType and check the return value. -//! 5. Release the font and remove the font file. -//! 6. Destroy the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults GlyphBitmapType returns the expected value. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - CREATE_OBJECT CBitmapFont bmpFont - COMMAND fntStore NewL - COMMAND fntStore InstallRasterizerL GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0021-InstallRasterizerL_command02 - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0021-AddFileL_command03 - COMMAND fntStore GetNearestFontToDesignHeightInPixels GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0021-GetNearestFontToDesignHeightInPixels_command04 - COMMAND bmpFont GlyphBitmapType GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0021-GlyphBitmapType_command05 - COMMAND fntStore ReleaseFont GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0021-ReleaseFont_command06 - COMMAND fntStore RemoveFile - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0021 - - -START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0022 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0022 -//! @SYMAPI CBitmapFont::GlyphBitmapType() -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 15/04/2009 -//! @SYMTestCaseDesc Negative case; Get the anti-aliasing setting for the font, using a bitmap font. -//! @SYMTestActions 1. Create a CFontStore object, a TAlgStyle object and a CBitmapFont object. -//! 2. Add a font file specified in test data. -//! 3. Get a bitmap font. -//! 4. Call GlyphBitmapType and check the return value. -//! 5. Release the font and remove the font file. -//! 6. Destroy the TAlgStyle object and the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults GlyphBitmapType returns the expected value. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - CREATE_OBJECT CBitmapFont bmpFont - CREATE_OBJECT TAlgStyle algStyle - COMMAND fntStore NewL - COMMAND algStyle new - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0022-AddFileL_command03 - COMMAND fntStore GetFontById GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0022-GetFontById_command04 - COMMAND bmpFont GlyphBitmapType GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0022-GlyphBitmapType_command05 - COMMAND fntStore ReleaseFont GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0022-ReleaseFont_command06 - COMMAND fntStore RemoveFile - COMMAND algStyle ~ - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0022 - - -START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0023 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0023 -//! @SYMAPI CBitmapFont::HasCharacterL(TInt) -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 15/04/2009 -//! @SYMTestCaseDesc Get the Bitmap encoding value, using an open font. -//! @SYMTestActions 1. Create a CFontStore object and a CBitmapFont object. -//! 2. Install a rasterizer and add a font file. -//! 3. Get an open font. -//! 4. Call GlyphBitmapType and check the return value. -//! 5. Release the font and remove the font file. -//! 6. Destroy the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults HasCharacterL returns the expected value. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - CREATE_OBJECT CBitmapFont bmpFont - COMMAND fntStore NewL - COMMAND fntStore InstallRasterizerL GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0023-InstallRasterizerL_command02 - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0023-AddFileL_command03 - COMMAND fntStore GetNearestFontToDesignHeightInPixels GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0023-GetNearestFontToDesignHeightInPixels_command04 - COMMAND bmpFont HasCharacterL GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0023-HasCharacterL_command05 - COMMAND fntStore ReleaseFont GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0023-ReleaseFont_command06 - COMMAND fntStore RemoveFile - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0023 - - -START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0024 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0024 -//! @SYMAPI CBitmapFont::HasCharacterL(TInt) -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 15/04/2009 -//! @SYMTestCaseDesc Get the Bitmap encoding value, using a bitmap font. -//! @SYMTestActions 1. Create a CFontStore object, a TAlgStyle object and a CBitmapFont object. -//! 2. Add a font file specified in test data. -//! 3. Get a bitmap font. -//! 4. Call HasCharacterL and check the return value. -//! 5. Release the font and remove the font file. -//! 6. Destroy the TAlgStyle object and the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults HasCharacterL returns the expected value. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - CREATE_OBJECT CBitmapFont bmpFont - CREATE_OBJECT TAlgStyle algStyle - COMMAND fntStore NewL - COMMAND algStyle new - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0024-AddFileL_command03 - COMMAND fntStore GetFontById GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0024-GetFontById_command04 - COMMAND bmpFont HasCharacterL GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0024-HasCharacterL_command05 - COMMAND fntStore ReleaseFont GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0024-ReleaseFont_command06 - COMMAND fntStore RemoveFile - COMMAND algStyle ~ - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0024 - - -START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0025 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0025 -//! @SYMAPI CBitmapFont::HasCharacterL(TInt) -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 15/04/2009 -//! @SYMTestCaseDesc Negative case; Get the Bitmap encoding value with negative and big code, using a bitmap font. -//! @SYMTestActions 1. Create a CFontStore object, a TAlgStyle object and a CBitmapFont object. -//! 2. Add a font file specified in test data. -//! 3. Get a bitmap font. -//! 4. Call HasCharacterL with -1 and 99999 and check the return value. -//! 5. Release the font and remove the font file. -//! 6. Destroy the TAlgStyle object and the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults HasCharacterL returns the expected value. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - CREATE_OBJECT CBitmapFont bmpFont - CREATE_OBJECT TAlgStyle algStyle - COMMAND fntStore NewL - COMMAND algStyle new - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0025-AddFileL_command03 - COMMAND fntStore GetFontById GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0025-GetFontById_command04 - COMMAND bmpFont HasCharacterL GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0025-HasCharacterL_command05 - COMMAND bmpFont HasCharacterL GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0025-HasCharacterL_command06 - COMMAND fntStore ReleaseFont GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0025-ReleaseFont_command07 - COMMAND fntStore RemoveFile - COMMAND algStyle ~ - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0025 - - -START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0026 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0026 -//! @SYMAPI CBitmapFont::IsOpenFont() -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 15/04/2009 -//! @SYMTestCaseDesc Return whether the bitmap font object is an open font, using an open font. -//! @SYMTestActions 1. Create a CFontStore object and a CBitmapFont object. -//! 2. Install a rasterizer and add a font file. -//! 3. Get an open font. -//! 4. Call IsOpenFont and check the return value. -//! 5. Release the font and remove the font file. -//! 6. Destroy the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults IsOpenFont returns ETrue. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - CREATE_OBJECT CBitmapFont bmpFont - COMMAND fntStore NewL - COMMAND fntStore InstallRasterizerL GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0026-InstallRasterizerL_command02 - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0026-AddFileL_command03 - COMMAND fntStore GetNearestFontToDesignHeightInPixels GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0026-GetNearestFontToDesignHeightInPixels_command04 - COMMAND bmpFont IsOpenFont GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0026-IsOpenFont_command05 - COMMAND fntStore ReleaseFont GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0026-ReleaseFont_command06 - COMMAND fntStore RemoveFile - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0026 - - -START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0027 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0027 -//! @SYMAPI CBitmapFont::IsOpenFont() -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 15/04/2009 -//! @SYMTestCaseDesc Return whether the bitmap font object is an open font, using a bitmap font. -//! @SYMTestActions 1. Create a CFontStore object, a TAlgStyle object and a CBitmapFont object. -//! 2. Add a font file specified in test data. -//! 3. Get a bitmap font. -//! 4. Call IsOpenFont and check the return value. -//! 5. Release the font and remove the font file. -//! 6. Destroy the TAlgStyle object and the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults IsOpenFont returns EFalse. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - CREATE_OBJECT CBitmapFont bmpFont - CREATE_OBJECT TAlgStyle algStyle - COMMAND fntStore NewL - COMMAND algStyle new - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0027-AddFileL_command03 - COMMAND fntStore GetFontById GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0027-GetFontById_command04 - COMMAND bmpFont IsOpenFont GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0027-IsOpenFont_command05 - COMMAND fntStore ReleaseFont GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0027-ReleaseFont_command06 - COMMAND fntStore RemoveFile - COMMAND algStyle ~ - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0027 - - -START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0031 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0031 -//! @SYMAPI CBitmapFont::OpenFont() -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 15/04/2009 -//! @SYMTestCaseDesc Return a pointer to the open font being used by the bitmap font object, using an open font. -//! @SYMTestActions 1. Create a CFontStore object and a CBitmapFont object. -//! 2. Install a rasterizer and add a font file. -//! 3. Get an open font. -//! 4. Call OpenFont and check the return value. -//! 5. Release the font and remove the font file. -//! 6. Destroy the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults OpenFont returns a pointer to the open font. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - CREATE_OBJECT CBitmapFont bmpFont - COMMAND fntStore NewL - COMMAND fntStore InstallRasterizerL GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0031-InstallRasterizerL_command02 - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0031-AddFileL_command03 - COMMAND fntStore GetNearestFontToDesignHeightInPixels GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0031-GetNearestFontToDesignHeightInPixels_command04 - COMMAND bmpFont OpenFont GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0031-OpenFont_command05 - COMMAND fntStore ReleaseFont GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0031-ReleaseFont_command06 - COMMAND fntStore RemoveFile - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0031 - - -START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0032 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0032 -//! @SYMAPI CBitmapFont::OpenFont() -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 15/04/2009 -//! @SYMTestCaseDesc Return a pointer to the open font being used by the bitmap font object, using a bitmap font. -//! @SYMTestActions 1. Create a CFontStore object, a TAlgStyle object and a CBitmapFont object. -//! 2. Add a font file specified in test data. -//! 3. Get a bitmap font. -//! 4. Call OpenFont and check the return value. -//! 5. Release the font and remove the font file. -//! 6. Destroy the TAlgStyle object and the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults OpenFont returns a NULL pointer. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - CREATE_OBJECT CBitmapFont bmpFont - CREATE_OBJECT TAlgStyle algStyle - COMMAND fntStore NewL - COMMAND algStyle new - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0032-AddFileL_command03 - COMMAND fntStore GetFontById GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0032-GetFontById_command04 - COMMAND bmpFont OpenFont GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0032-OpenFont_command05 - COMMAND fntStore ReleaseFont GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0032-ReleaseFont_command06 - COMMAND fntStore RemoveFile - COMMAND algStyle ~ - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0032 - - -START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0033 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0033 -//! @SYMAPI CBitmapFont::Rasterize(TInt, TInt, TOpenFontGlyphData{ptr}) -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 15/04/2009 -//! @SYMTestCaseDesc Attempt to rasterize a character into a data area, using an open font. -//! @SYMTestActions 1. Create a CFontStore object and a CBitmapFont object. -//! 2. Install a rasterizer and add a font file. -//! 3. Get an open font. -//! 4. Call Rasterize and check the return value. -//! 5. Release the font and remove the font file. -//! 6. Destroy the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Rasterize returns the expected value. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - CREATE_OBJECT CBitmapFont bmpFont - COMMAND fntStore NewL - COMMAND fntStore InstallRasterizerL GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0033-InstallRasterizerL_command02 - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0033-AddFileL_command03 - COMMAND fntStore GetNearestFontToDesignHeightInPixels GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0033-GetNearestFontToDesignHeightInPixels_command04 - COMMAND bmpFont Rasterize GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0033-Rasterize_command05 - COMMAND fntStore ReleaseFont GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0033-ReleaseFont_command06 - COMMAND fntStore RemoveFile - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0033 - - -START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0034 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0034 -//! @SYMAPI CBitmapFont::Rasterize(TInt, TInt, TOpenFontGlyphData{ptr}) -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 15/04/2009 -//! @SYMTestCaseDesc Negative case; Attempt to rasterize a character into a data area, using a bitmap font. -//! @SYMTestActions 1. Create a CFontStore object, a TAlgStyle object and a CBitmapFont object. -//! 2. Add a font file specified in test data. -//! 3. Get a bitmap font. -//! 4. Call Rasterize and check the return value. -//! 5. Release the font and remove the font file. -//! 6. Destroy the TAlgStyle object and the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Rasterize returns the expected value. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - CREATE_OBJECT CBitmapFont bmpFont - CREATE_OBJECT TAlgStyle algStyle - COMMAND fntStore NewL - COMMAND algStyle new - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0034-AddFileL_command03 - COMMAND fntStore GetFontById GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0034-GetFontById_command04 - COMMAND bmpFont Rasterize GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0034-Rasterize_command05 - COMMAND fntStore ReleaseFont GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0034-ReleaseFont_command06 - COMMAND fntStore RemoveFile - COMMAND algStyle ~ - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0034 - - -START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0035 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0035 -//! @SYMAPI CBitmapFont::UniqueFontId() -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 15/04/2009 -//! @SYMTestCaseDesc Get unique font id, using an open font. -//! @SYMTestActions 1. Create a CFontStore object and a CBitmapFont object. -//! 2. Install a rasterizer and add a font file. -//! 3. Get an open font. -//! 4. Call UniqueFontId and check the return value. -//! 5. Release the font and remove the font file. -//! 6. Destroy the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults UniqueFontId returns the expected value. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - CREATE_OBJECT CBitmapFont bmpFont - COMMAND fntStore NewL - COMMAND fntStore InstallRasterizerL GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0035-InstallRasterizerL_command02 - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0035-AddFileL_command03 - COMMAND fntStore GetNearestFontToDesignHeightInPixels GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0035-GetNearestFontToDesignHeightInPixels_command04 - COMMAND bmpFont UniqueFontId GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0035-UniqueFontId_command05 - COMMAND fntStore ReleaseFont GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0035-ReleaseFont_command06 - COMMAND fntStore RemoveFile - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0035 - - -START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0036 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0036 -//! @SYMAPI CBitmapFont::UniqueFontId() -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 15/04/2009 -//! @SYMTestCaseDesc Get unique font id, using a bitmap font. -//! @SYMTestActions 1. Create a CFontStore object, a TAlgStyle object and a CBitmapFont object. -//! 2. Add a font file specified in test data. -//! 3. Get a bitmap font. -//! 4. Call UniqueFontId and check the return value. -//! 5. Release the font and remove the font file. -//! 6. Destroy the TAlgStyle object and the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults UniqueFontId returns the expected value. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - CREATE_OBJECT CBitmapFont bmpFont - CREATE_OBJECT TAlgStyle algStyle - COMMAND fntStore NewL - COMMAND algStyle new - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0036-AddFileL_command03 - COMMAND fntStore GetFontById GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0036-GetFontById_command04 - COMMAND bmpFont UniqueFontId GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0036-UniqueFontId_command05 - COMMAND fntStore ReleaseFont GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0036-ReleaseFont_command06 - COMMAND fntStore RemoveFile - COMMAND algStyle ~ - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0036 - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fntstore/scripts/GRAPHICS-FNTSTORE-FntStore-PublicApi.script --- a/graphicsapitest/graphicssvs/fntstore/scripts/GRAPHICS-FNTSTORE-FntStore-PublicApi.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1517 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// -//! @file -//! @SYMTestSuiteName GRAPHICS-FNTSTORE-FntStore-PublicApi -//! @SYMScriptTestEnvironment - -///////////////////////////////////////////////////////////////////// -// GRAPHICS-FNTSTORE-FntStore-PublicApi.script -// -// Tests all public elements of the CFontStore -// classes as a means of confidence that the APIs work as expected. -// -// The purpose is to provide a regression test suite of PublishedAll APIs for CFontStore -// The tests are fully automated. -///////////////////////////////////////////////////////////////////// - -LOAD_SUITE T_GraphicsFntstoreApi -DELAY 1000 - -START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0001 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-FntStore-PublicApi-0001 -//! @SYMAPI CFontStore::NewL(RHeap{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 25/03/2009 -//! @SYMTestCaseDesc Creates a new CFontStore object with heap size 65536. -//! @SYMTestActions 1. Create a CFontStore object. -//! 2. Destroy the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CFontStore::NewL() returns a CFontStore object. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - COMMAND fntStore NewL GRAPHICS-FNTSTORE-FntStore-PublicApi-0001-NewL_command01 - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0001 - -START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0002 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-FntStore-PublicApi-0002 -//! @SYMAPI CFontStore::NewL(RHeap{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 26/03/2009 -//! @SYMTestCaseDesc Creates a new CFontStore object using heap of current thread. -//! @SYMTestActions 1. Create a CFontStore object. -//! 2. Destroy the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CFontStore::NewL() returns a CFontStore object. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - COMMAND fntStore NewL - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0002 - -START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0003 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-FntStore-PublicApi-0003 -//! @SYMAPI CFontStore::NewL(RHeap{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 26/03/2009 -//! @SYMTestCaseDesc Negative case. Creates a new CFontStore object with heap size 0, which means NULL heap. -//! @SYMTestActions 1. Create a CFontStore object. -//! 2. Destroy the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get error -4 (KErrNoMemory). -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - COMMAND !Error=-4 fntStore NewL GRAPHICS-FNTSTORE-FntStore-PublicApi-0003-NewL_command01 - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0003 - -START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0004 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-FntStore-PublicApi-0004 -//! @SYMAPI CFontStore::AddFileL(const TDesC{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 27/03/2009 -//! @SYMTestCaseDesc Finds or creates a font file object to support a font file. -//! @SYMTestActions 1. Create a CFontStore object. -//! 2. Get the number of typefaces. -//! 3. Add a font file specified in test data. -//! 4. Get the number of typefaces. -//! 5. Remove the file. -//! 6. Destroy the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. CFontStore::AddFileL() is called successfully. -//! 2. Before and after add file, number of typefaces is expected as specified in test data respectively. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - COMMAND fntStore NewL - COMMAND fntStore NumTypefaces GRAPHICS-FNTSTORE-FntStore-PublicApi-0004-NumTypefaces_command02 - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-FntStore-PublicApi-0004-AddFileL_command03 - COMMAND fntStore NumTypefaces GRAPHICS-FNTSTORE-FntStore-PublicApi-0004-NumTypefaces_command04 - COMMAND fntStore RemoveFile GRAPHICS-FNTSTORE-FntStore-PublicApi-0004-RemoveFile_command05 - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0004 - -START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0005 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-FntStore-PublicApi-0005 -//! @SYMAPI CFontStore::AddFileL(const TDesC{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 27/03/2009 -//! @SYMTestCaseDesc Negative case. Add a not supported font file. -//! @SYMTestActions 1. Create a CFontStore object. -//! 2. Add a font file specified in test data. -//! 3. Destroy the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get error -5 (KErrNotSupported) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - COMMAND fntStore NewL - COMMAND !Error=-5 fntStore AddFileL GRAPHICS-FNTSTORE-FntStore-PublicApi-0005-AddFileL_command02 - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0005 - -START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0006 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-FntStore-PublicApi-0006 -//! @SYMAPI CFontStore::AddFileL(const TDesC{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 27/03/2009 -//! @SYMTestCaseDesc Add 2 font files. One is gdr file, another is test open font file. -//! @SYMTestActions 1. Create a CFontStore object. -//! 2. Get the number of typefaces. -//! 3. Add a font file specified in test data. -//! 4. Get the number of typefaces. -//! 5. Install a test rasterizer. -//! 6. Add open font file specified in test data. -//! 7. Get the number of typefaces. -//! 8. Remove all font files. -//! 9. Destroy the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. CFontStore::AddFileL() is called successfully. -//! 2. Before and after add font files, the number of typefaces is expected as specified respectively. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - COMMAND fntStore NewL - COMMAND fntStore NumTypefaces GRAPHICS-FNTSTORE-FntStore-PublicApi-0006-NumTypefaces_command02 - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-FntStore-PublicApi-0006-AddFileL_command03 - COMMAND fntStore NumTypefaces GRAPHICS-FNTSTORE-FntStore-PublicApi-0006-NumTypefaces_command04 - COMMAND fntStore InstallRasterizerL GRAPHICS-FNTSTORE-FntStore-PublicApi-0006-InstallRasterizerL_command05 - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-FntStore-PublicApi-0006-AddFileL_command06 - COMMAND fntStore NumTypefaces GRAPHICS-FNTSTORE-FntStore-PublicApi-0006-NumTypefaces_command07 - COMMAND fntStore RemoveFile - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0006 - -START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0007 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-FntStore-PublicApi-0007 -//! @SYMAPI CFontStore::AddFileL(const TDesC{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 27/03/2009 -//! @SYMTestCaseDesc Add a font file twice. -//! @SYMTestActions 1. Create a CFontStore object. -//! 2. Add a font file specified in test data and get the number of typefaces. -//! 3. Add the font file again and get the number of typefaces. -//! 4. Remove all files. -//! 5. Destroy the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. CFontStore::AddFileL() is called successfully. -//! 2. Before and after 1st AddFileL(), number of typefaces is expected as specified in test data respectively. -//! 3. Before and after 2nd AddFileL(), number of typefaces keeps unchanged. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - COMMAND fntStore NewL - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-FntStore-PublicApi-0007-AddFileL_command02 - COMMAND fntStore NumTypefaces GRAPHICS-FNTSTORE-FntStore-PublicApi-0007-NumTypefaces_command03 - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-FntStore-PublicApi-0007-AddFileL_command04 - COMMAND fntStore NumTypefaces GRAPHICS-FNTSTORE-FntStore-PublicApi-0007-NumTypefaces_command05 - COMMAND fntStore RemoveFile - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0007 - -START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0011 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-FntStore-PublicApi-0011 -//! @SYMAPI CFontStore::RemoveFile(TUid) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 27/03/2009 -//! @SYMTestCaseDesc Remove font file. -//! @SYMTestActions 1. Create a CFontStore object. -//! 2. Install a test rasterizer. -//! 3. Add a font file specified in test data and get the number of typefaces. -//! 4. Remove the file and get the number of typefaces. -//! 5. Add 2 font files and get the number of typefaces. -//! 6. Remove all files. -//! 7. Destroy the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. CFontStore::RemoveFile() is called successfully. -//! 2. After both RemoveFile(), the number of typefaces is 0. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - COMMAND fntStore NewL - COMMAND fntStore InstallRasterizerL GRAPHICS-FNTSTORE-FntStore-PublicApi-0011-InstallRasterizerL_command02 - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-FntStore-PublicApi-0011-AddFileL_command03 - COMMAND fntStore NumTypefaces GRAPHICS-FNTSTORE-FntStore-PublicApi-0011-NumTypefaces_command04 - COMMAND fntStore RemoveFile GRAPHICS-FNTSTORE-FntStore-PublicApi-0011-RemoveFile_command05 - COMMAND fntStore NumTypefaces GRAPHICS-FNTSTORE-FntStore-PublicApi-0011-NumTypefaces_command06 - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-FntStore-PublicApi-0011-AddFileL_command07 - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-FntStore-PublicApi-0011-AddFileL_command08 - COMMAND fntStore NumTypefaces GRAPHICS-FNTSTORE-FntStore-PublicApi-0011-NumTypefaces_command09 - COMMAND fntStore RemoveFile - COMMAND fntStore NumTypefaces GRAPHICS-FNTSTORE-FntStore-PublicApi-0011-NumTypefaces_command11 - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0011 - -START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0012 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-FntStore-PublicApi-0012 -//! @SYMAPI CFontStore::RemoveFile(TUid) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 27/03/2009 -//! @SYMTestCaseDesc Negative case. Remove all files whilst no file is added. -//! @SYMTestActions 1. Create a CFontStore object. -//! 2. Get the number of typefaces. -//! 3. Remove all files and get the number of typefaces. -//! 4. Destroy the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. CFontStore::RemoveFile() is called successfully. -//! 2. Before and after RemoveFile(), the number of typefaces is 0. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - COMMAND fntStore NewL - COMMAND fntStore NumTypefaces GRAPHICS-FNTSTORE-FntStore-PublicApi-0012-NumTypefaces_command02 - COMMAND fntStore RemoveFile - COMMAND fntStore NumTypefaces GRAPHICS-FNTSTORE-FntStore-PublicApi-0012-NumTypefaces_command04 - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0012 - -START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0013 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-FntStore-PublicApi-0013 -//! @SYMAPI CFontStore::RemoveFile(TUid) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 27/03/2009 -//! @SYMTestCaseDesc Remove font file. -//! @SYMTestActions 1. Create a CFontStore object. -//! 2. Install a test rasterizer. -//! 3. Add 2 font files specified in test data and get the number of typefaces. -//! 4. Remove 1st file and get the number of typefaces. -//! 5. Add 1st font file and get the number of typefaces. -//! 6. Remove all files and get the number of typefaces. -//! 7. Add 1st file twice and get the number of typefaces. -//! 8. Remove the file once and get the number of typefaces. -//! 9. Remove all files and get the number of typefaces. -//! 10. Destroy the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. CFontStore::RemoveFile() is called successfully. -//! 2. After 1st RemoveFile(), the number of typefaces is that contained in 2nd file. -//! 3. After 2nd RemoveFile(), the number of typefaces is 0. -//! 4. After 3rd RemoveFile(), the number of typefaces is that contained in 1st file. -//! 5. After 4th RemoveFile(), the number of typefaces is 0. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - COMMAND fntStore NewL - COMMAND fntStore InstallRasterizerL GRAPHICS-FNTSTORE-FntStore-PublicApi-0013-InstallRasterizerL_command02 - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-FntStore-PublicApi-0013-AddFileL_command03 - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-FntStore-PublicApi-0013-AddFileL_command04 - COMMAND fntStore NumTypefaces GRAPHICS-FNTSTORE-FntStore-PublicApi-0013-NumTypefaces_command05 - COMMAND fntStore RemoveFile GRAPHICS-FNTSTORE-FntStore-PublicApi-0013-RemoveFile_command06 - COMMAND fntStore NumTypefaces GRAPHICS-FNTSTORE-FntStore-PublicApi-0013-NumTypefaces_command07 - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-FntStore-PublicApi-0013-AddFileL_command08 - COMMAND fntStore NumTypefaces GRAPHICS-FNTSTORE-FntStore-PublicApi-0013-NumTypefaces_command09 - COMMAND fntStore RemoveFile - COMMAND fntStore NumTypefaces GRAPHICS-FNTSTORE-FntStore-PublicApi-0013-NumTypefaces_command11 - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-FntStore-PublicApi-0013-AddFileL_command12 - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-FntStore-PublicApi-0013-AddFileL_command13 - COMMAND fntStore NumTypefaces GRAPHICS-FNTSTORE-FntStore-PublicApi-0013-NumTypefaces_command14 - COMMAND fntStore RemoveFile GRAPHICS-FNTSTORE-FntStore-PublicApi-0013-RemoveFile_command15 - COMMAND fntStore NumTypefaces GRAPHICS-FNTSTORE-FntStore-PublicApi-0013-NumTypefaces_command16 - COMMAND fntStore RemoveFile - COMMAND fntStore NumTypefaces GRAPHICS-FNTSTORE-FntStore-PublicApi-0013-NumTypefaces_command17 - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0013 - -START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0014 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-FntStore-PublicApi-0014 -//! @SYMAPI CFontStore::RemoveFile(TUid) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 27/03/2009 -//! @SYMTestCaseDesc Negative case. Remove file using invalid uid. -//! @SYMTestActions 1. Create a CFontStore object. -//! 2. Remove file using invalid uid. -//! 3. Destroy the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CFontStore::RemoveFile() is called successfully. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - COMMAND fntStore NewL - COMMAND fntStore RemoveFile GRAPHICS-FNTSTORE-FntStore-PublicApi-0014-RemoveFile_command2 - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0014 - -START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0015 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-FntStore-PublicApi-0015 -//! @SYMAPI CFontStore::RemoveFile(TUid) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 27/03/2009 -//! @SYMTestCaseDesc Negative case. Remove file without releaseing gotten font. -//! @SYMTestActions 1. Create a CFontStore object, a TAlgStyle object and a CBitmapFont object. -//! 2. Add a font file. -//! 3. Get font by uid and don't release it. -//! 4. Remove the font file just added. -//! 5. Install a rasterizer. -//! 6. Add a open font file. -//! 7. Get a font per TFontSpec and don't release it. -//! 8. Remove the font file just added. -//! 9. Destroy all objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CFontStore::RemoveFile() is called successfully. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - CREATE_OBJECT TAlgStyle algStyle - CREATE_OBJECT CBitmapFont bitmapFont - COMMAND fntStore NewL - COMMAND algStyle new - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-FntStore-PublicApi-0015-AddFileL_command03 - COMMAND fntStore GetFontById GRAPHICS-FNTSTORE-FntStore-PublicApi-0015-GetFontById_command04 - COMMAND fntStore RemoveFile GRAPHICS-FNTSTORE-FntStore-PublicApi-0015-RemoveFile_command05 - COMMAND fntStore InstallRasterizerL GRAPHICS-FNTSTORE-FntStore-PublicApi-0015-InstallRasterizerL_command06 - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-FntStore-PublicApi-0015-AddFileL_command07 - COMMAND fntStore GetNearestFontToDesignHeightInPixels GRAPHICS-FNTSTORE-FntStore-PublicApi-0015-GetNearestFontToDesignHeightInPixels_command07 - COMMAND fntStore RemoveFile GRAPHICS-FNTSTORE-FntStore-PublicApi-0015-RemoveFile_command08 - COMMAND fntStore ~ - COMMAND algStyle ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0015 - -START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0021 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-FntStore-PublicApi-0021 -//! @SYMAPI CFontStore::GetNearestFontToDesignHeightInPixels(CFont{ptr}{ref},const TFontSpec{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 27/03/2009 -//! @SYMTestCaseDesc Gets the font which is the nearest to the given font specification. -//! @SYMTestActions 1. Create a CFontStore object and a CBitmapFont object. -//! 2. Install a test rasterizer. -//! 3. Add a font file specified in test data. -//! 4. Get the font specified in test data. -//! 5. Check the font is expected. -//! 6. Release the font. -//! 7. Remove all files. -//! 8. Destroy the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. CFontStore::GetNearestFontToDesignHeightInPixels() is called successfully. -//! 2. The font returned is as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - CREATE_OBJECT CBitmapFont bitmapFont - COMMAND fntStore NewL - COMMAND fntStore InstallRasterizerL GRAPHICS-FNTSTORE-FntStore-PublicApi-0021-InstallRasterizerL_command02 - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-FntStore-PublicApi-0021-AddFileL_command03 - COMMAND fntStore GetNearestFontToDesignHeightInPixels GRAPHICS-FNTSTORE-FntStore-PublicApi-0021-GetNearestFontToDesignHeightInPixels_command04 - COMMAND bitmapFont HeightInPixels GRAPHICS-FNTSTORE-FntStore-PublicApi-0021-HeightInPixels_command05 - COMMAND fntStore ReleaseFont GRAPHICS-FNTSTORE-FntStore-PublicApi-0021-ReleaseFont_command06 - COMMAND fntStore RemoveFile GRAPHICS-FNTSTORE-FntStore-PublicApi-0021-RemoveFile_command07 - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0021 - -START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0022 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-FntStore-PublicApi-0022 -//! @SYMAPI CFontStore::GetNearestFontToDesignHeightInPixels(CFont{ptr}{ref},const TFontSpec{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 30/03/2009 -//! @SYMTestCaseDesc Gets the font which is the nearest to the given font specification, which is not contained in font file. -//! @SYMTestActions 1. Create a CFontStore object and a CBitmapFont object. -//! 2. Install a test rasterizer. -//! 3. Add a font file specified in test data. -//! 4. Get the font specified in test data. -//! 5. Check the font is expected. -//! 6. Release the font. -//! 7. Remove all files. -//! 8. Destroy the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. CFontStore::GetNearestFontToDesignHeightInPixels() is called successfully. -//! 2. The font returned is as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - CREATE_OBJECT CBitmapFont bitmapFont - COMMAND fntStore NewL - COMMAND fntStore InstallRasterizerL GRAPHICS-FNTSTORE-FntStore-PublicApi-0022-InstallRasterizerL_command02 - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-FntStore-PublicApi-0022-AddFileL_command03 - COMMAND fntStore GetNearestFontToDesignHeightInPixels GRAPHICS-FNTSTORE-FntStore-PublicApi-0022-GetNearestFontToDesignHeightInPixels_command04 - COMMAND bitmapFont FontSpecInTwips GRAPHICS-FNTSTORE-FntStore-PublicApi-0022-FontSpecInTwips_command05 - COMMAND bitmapFont HeightInPixels GRAPHICS-FNTSTORE-FntStore-PublicApi-0022-HeightInPixels_command06 - COMMAND fntStore ReleaseFont GRAPHICS-FNTSTORE-FntStore-PublicApi-0022-ReleaseFont_command07 - COMMAND fntStore RemoveFile - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0022 - -START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0023 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-FntStore-PublicApi-0023 -//! @SYMAPI CFontStore::GetNearestFontToDesignHeightInPixels(CFont{ptr}{ref},const TFontSpec{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 30/03/2009 -//! @SYMTestCaseDesc Negative case. Gets the font which is the nearest to the given font specification without font file added. -//! @SYMTestActions 1. Create a CFontStore object and a CBitmapFont object. -//! 2. Get the font specified in test data. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get error code -2 (KErrGeneral). -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - CREATE_OBJECT CBitmapFont bitmapFont - COMMAND fntStore NewL - COMMAND !Error=-2 fntStore GetNearestFontToDesignHeightInPixels GRAPHICS-FNTSTORE-FntStore-PublicApi-0023-GetNearestFontToDesignHeightInPixels_command02 - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0023 - -START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0031 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-FntStore-PublicApi-0031 -//! @SYMAPI CFontStore::GetNearestFontToMaxHeightInPixels(CFont{ptr}{ref},const TFontSpec{ref}, TInt) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 30/03/2009 -//! @SYMTestCaseDesc Gets the font which is the nearest to the given font specification. -//! @SYMTestActions 1. Create a CFontStore object and a CBitmapFont object. -//! 2. Install a test rasterizer. -//! 3. Add a font file specified in test data. -//! 4. Get the font specified in test data. -//! 5. Check the font is expected. -//! 6. Release the font. -//! 7. Remove all files. -//! 8. Destroy the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. CFontStore::GetNearestFontToMaxHeightInPixels() is called successfully. -//! 2. The font returned is as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - CREATE_OBJECT CBitmapFont bitmapFont - COMMAND fntStore NewL - COMMAND fntStore InstallRasterizerL GRAPHICS-FNTSTORE-FntStore-PublicApi-0031-InstallRasterizerL_command02 - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-FntStore-PublicApi-0031-AddFileL_command03 - COMMAND fntStore GetNearestFontToMaxHeightInPixels GRAPHICS-FNTSTORE-FntStore-PublicApi-0031-GetNearestFontToMaxHeightInPixels_command04 - COMMAND bitmapFont HeightInPixels GRAPHICS-FNTSTORE-FntStore-PublicApi-0031-HeightInPixels_command05 - COMMAND fntStore ReleaseFont GRAPHICS-FNTSTORE-FntStore-PublicApi-0031-ReleaseFont_command06 - COMMAND fntStore RemoveFile - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0031 - -START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0032 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-FntStore-PublicApi-0032 -//! @SYMAPI CFontStore::GetNearestFontToMaxHeightInPixels(CFont{ptr}{ref},const TFontSpec{ref}, TInt) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 30/03/2009 -//! @SYMTestCaseDesc Gets the font which is the nearest to the given font specification, which is not contained in font file. -//! @SYMTestActions 1. Create a CFontStore object and a CBitmapFont object. -//! 2. Install a test rasterizer. -//! 3. Add a font file specified in test data. -//! 4. Get the font specified in test data. -//! 5. Check the font is expected. -//! 6. Release the font. -//! 7. Remove all files. -//! 8. Destroy the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. CFontStore::GetNearestFontToMaxHeightInPixels() is called successfully. -//! 2. The font returned is as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - CREATE_OBJECT CBitmapFont bitmapFont - COMMAND fntStore NewL - COMMAND fntStore InstallRasterizerL GRAPHICS-FNTSTORE-FntStore-PublicApi-0032-InstallRasterizerL_command02 - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-FntStore-PublicApi-0032-AddFileL_command03 - COMMAND fntStore GetNearestFontToMaxHeightInPixels GRAPHICS-FNTSTORE-FntStore-PublicApi-0032-GetNearestFontToMaxHeightInPixels_command04 - COMMAND bitmapFont FontSpecInTwips GRAPHICS-FNTSTORE-FntStore-PublicApi-0032-FontSpecInTwips_command05 - COMMAND bitmapFont HeightInPixels GRAPHICS-FNTSTORE-FntStore-PublicApi-0032-HeightInPixels_command06 - COMMAND fntStore ReleaseFont GRAPHICS-FNTSTORE-FntStore-PublicApi-0032-ReleaseFont_command07 - COMMAND fntStore RemoveFile - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0032 - -START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0033 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-FntStore-PublicApi-0033 -//! @SYMAPI CFontStore::GetNearestFontToMaxHeightInPixels(CFont{ptr}{ref},const TFontSpec{ref}, TInt) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 30/03/2009 -//! @SYMTestCaseDesc Negative case. Gets the font which is the nearest to the given font specification without font file added. -//! @SYMTestActions 1. Create a CFontStore object and a CBitmapFont object. -//! 2. Get the font specified in test data. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get error code -2 (KErrGeneral). -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - CREATE_OBJECT CBitmapFont bitmapFont - COMMAND fntStore NewL - COMMAND !Error=-2 fntStore GetNearestFontToMaxHeightInPixels GRAPHICS-FNTSTORE-FntStore-PublicApi-0033-GetNearestFontToMaxHeightInPixels_command02 - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0033 - -START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0034 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-FntStore-PublicApi-0034 -//! @SYMAPI CFontStore::GetNearestFontToMaxHeightInPixels(CFont{ptr}{ref},const TFontSpec{ref}, TInt) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 03/04/2009 -//! @SYMTestCaseDesc Negative case. Gets the font with max height set to 9999, 1, and negative number respectively. -//! @SYMTestActions 1. Create a CFontStore object and a CBitmapFont object. -//! 2. Get the font specified with max height 9999. -//! 3. Get the font specified with max height 1. -//! 4. Get the font specified with max height set to negative number. -//! 5. Destroy the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. 1st call to CFontStore::GetNearestFontToMaxHeightInPixels() returns -40 (KErrTooBig) -//! 2. 2nd call to CFontStore::GetNearestFontToMaxHeightInPixels() returns -6 (KErrArgument) -//! 3. 3rd call to CFontStore::GetNearestFontToMaxHeightInPixels() returns -2 (KErrGeneral) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - CREATE_OBJECT CBitmapFont bitmapFont - COMMAND fntStore NewL - COMMAND !Error=-40 fntStore GetNearestFontToMaxHeightInPixels GRAPHICS-FNTSTORE-FntStore-PublicApi-0034-GetNearestFontToMaxHeightInPixels_command02 - COMMAND !Error=-6 fntStore GetNearestFontToMaxHeightInPixels GRAPHICS-FNTSTORE-FntStore-PublicApi-0034-GetNearestFontToMaxHeightInPixels_command03 - COMMAND !Error=-2 fntStore GetNearestFontToMaxHeightInPixels GRAPHICS-FNTSTORE-FntStore-PublicApi-0034-GetNearestFontToMaxHeightInPixels_command04 - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0034 - -START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0041 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-FntStore-PublicApi-0041 -//! @SYMAPI CFontStore::GetNearestFontToDesignHeightInTwips(CFont{ptr}{ref},const TOpenFontSpec{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 30/03/2009 -//! @SYMTestCaseDesc Gets the font which is the nearest to the given font specification. -//! @SYMTestActions 1. Create a CFontStore object and a CBitmapFont object. -//! 2. Install a test rasterizer. -//! 3. Add a font file specified in test data. -//! 4. Get the font specified in test data. -//! 5. Check the font is expected. -//! 6. Release the font. -//! 7. Remove all files. -//! 8. Destroy the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. CFontStore::GetNearestFontToDesignHeightInTwips() is called successfully. -//! 2. The font returned is as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - CREATE_OBJECT CBitmapFont bitmapFont - COMMAND fntStore NewL - COMMAND fntStore InstallRasterizerL GRAPHICS-FNTSTORE-FntStore-PublicApi-0041-InstallRasterizerL_command02 - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-FntStore-PublicApi-0041-AddFileL_command03 - COMMAND fntStore GetNearestFontToDesignHeightInTwips GRAPHICS-FNTSTORE-FntStore-PublicApi-0041-GetNearestFontToDesignHeightInTwips_command04 - COMMAND bitmapFont FontSpecInTwips GRAPHICS-FNTSTORE-FntStore-PublicApi-0041-FontSpecInTwips_command05 - COMMAND fntStore ReleaseFont GRAPHICS-FNTSTORE-FntStore-PublicApi-0041-ReleaseFont_command06 - COMMAND fntStore RemoveFile - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0041 - -START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0042 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-FntStore-PublicApi-0042 -//! @SYMAPI CFontStore::GetNearestFontToDesignHeightInTwips(CFont{ptr}{ref},const TOpenFontSpec{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 30/03/2009 -//! @SYMTestCaseDesc Gets the font which is the nearest to the given font specification, which is not contained in font file. -//! @SYMTestActions 1. Create a CFontStore object and a CBitmapFont object. -//! 2. Install a test rasterizer. -//! 3. Add a font file specified in test data. -//! 4. Get the font specified in test data. -//! 5. Check the font is expected. -//! 6. Release the font. -//! 7. Remove all files. -//! 8. Destroy the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. CFontStore::GetNearestFontToDesignHeightInTwips() is called successfully. -//! 2. The font returned is as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - CREATE_OBJECT CBitmapFont bitmapFont - COMMAND fntStore NewL - COMMAND fntStore InstallRasterizerL GRAPHICS-FNTSTORE-FntStore-PublicApi-0042-InstallRasterizerL_command02 - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-FntStore-PublicApi-0042-AddFileL_command03 - COMMAND fntStore GetNearestFontToDesignHeightInTwips GRAPHICS-FNTSTORE-FntStore-PublicApi-0042-GetNearestFontToDesignHeightInTwips_command04 - COMMAND bitmapFont FontSpecInTwips GRAPHICS-FNTSTORE-FntStore-PublicApi-0042-FontSpecInTwips_command05 - COMMAND fntStore ReleaseFont GRAPHICS-FNTSTORE-FntStore-PublicApi-0042-ReleaseFont_command06 - COMMAND fntStore RemoveFile - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0042 - -START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0043 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-FntStore-PublicApi-0043 -//! @SYMAPI CFontStore::GetNearestFontToDesignHeightInTwips(CFont{ptr}{ref},const TOpenFontSpec{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 30/03/2009 -//! @SYMTestCaseDesc Negative case. Gets the font which is the nearest to the given font specification without font file added. -//! @SYMTestActions 1. Create a CFontStore object and a CBitmapFont object. -//! 2. Get the font specified in test data. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get error code -2 (KErrGeneral). -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - CREATE_OBJECT CBitmapFont bitmapFont - COMMAND fntStore NewL - COMMAND !Error=-2 fntStore GetNearestFontToDesignHeightInTwips GRAPHICS-FNTSTORE-FntStore-PublicApi-0043-GetNearestFontToDesignHeightInTwips_command02 - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0043 - -START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0051 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-FntStore-PublicApi-0051 -//! @SYMAPI CFontStore::GetNearestFontToDesignHeightInPixels(CFont{ptr}{ref},const TOpenFontSpec{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 30/03/2009 -//! @SYMTestCaseDesc Gets the font which is the nearest to the given font specification. -//! @SYMTestActions 1. Create a CFontStore object and a CBitmapFont object. -//! 2. Install a test rasterizer. -//! 3. Add a font file specified in test data. -//! 4. Get the font specified in test data. -//! 5. Check the font is expected. -//! 6. Release the font. -//! 7. Remove all files. -//! 8. Destroy the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. CFontStore::GetNearestFontToDesignHeightInPixels() is called successfully. -//! 2. The font returned is as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - CREATE_OBJECT CBitmapFont bitmapFont - COMMAND fntStore NewL - COMMAND fntStore InstallRasterizerL GRAPHICS-FNTSTORE-FntStore-PublicApi-0051-InstallRasterizerL_command02 - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-FntStore-PublicApi-0051-AddFileL_command03 - COMMAND fntStore GetNearestFontToDesignHeightInPixels GRAPHICS-FNTSTORE-FntStore-PublicApi-0051-GetNearestFontToDesignHeightInPixels_command04 - COMMAND bitmapFont HeightInPixels GRAPHICS-FNTSTORE-FntStore-PublicApi-0051-HeightInPixels_command05 - COMMAND fntStore ReleaseFont GRAPHICS-FNTSTORE-FntStore-PublicApi-0051-ReleaseFont_command06 - COMMAND fntStore RemoveFile - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0051 - -START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0052 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-FntStore-PublicApi-0052 -//! @SYMAPI CFontStore::GetNearestFontToDesignHeightInPixels(CFont{ptr}{ref},const TOpenFontSpec{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 30/03/2009 -//! @SYMTestCaseDesc Gets the font which is the nearest to the given font specification, which is not contained in font file. -//! @SYMTestActions 1. Create a CFontStore object and a CBitmapFont object. -//! 2. Install a test rasterizer. -//! 3. Add a font file specified in test data. -//! 4. Get the font specified in test data. -//! 5. Check the font is expected. -//! 6. Release the font. -//! 7. Remove all files. -//! 8. Destroy the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. CFontStore::GetNearestFontToDesignHeightInPixels() is called successfully. -//! 2. The font returned is as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - CREATE_OBJECT CBitmapFont bitmapFont - COMMAND fntStore NewL - COMMAND fntStore InstallRasterizerL GRAPHICS-FNTSTORE-FntStore-PublicApi-0052-InstallRasterizerL_command02 - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-FntStore-PublicApi-0052-AddFileL_command03 - COMMAND fntStore GetNearestFontToDesignHeightInPixels GRAPHICS-FNTSTORE-FntStore-PublicApi-0052-GetNearestFontToDesignHeightInPixels_command04 - COMMAND bitmapFont FontSpecInTwips GRAPHICS-FNTSTORE-FntStore-PublicApi-0052-FontSpecInTwips_command05 - COMMAND bitmapFont HeightInPixels GRAPHICS-FNTSTORE-FntStore-PublicApi-0052-HeightInPixels_command06 - COMMAND fntStore ReleaseFont GRAPHICS-FNTSTORE-FntStore-PublicApi-0052-ReleaseFont_command07 - COMMAND fntStore RemoveFile - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0052 - -START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0053 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-FntStore-PublicApi-0053 -//! @SYMAPI CFontStore::GetNearestFontToDesignHeightInPixels(CFont{ptr}{ref},const TOpenFontSpec{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 30/03/2009 -//! @SYMTestCaseDesc Negative case. Gets the font which is the nearest to the given font specification without font file added. -//! @SYMTestActions 1. Create a CFontStore object and a CBitmapFont object. -//! 2. Get the font specified in test data. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get error code -2 (KErrGeneral). -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - CREATE_OBJECT CBitmapFont bitmapFont - COMMAND fntStore NewL - COMMAND !Error=-2 fntStore GetNearestFontToDesignHeightInPixels GRAPHICS-FNTSTORE-FntStore-PublicApi-0053-GetNearestFontToDesignHeightInPixels_command02 - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0053 - - -START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0061 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-FntStore-PublicApi-0061 -//! @SYMAPI CFontStore::GetNearestFontToMaxHeightInTwips(CFont{ptr}{ref},const TOpenFontSpec{ref}, TInt) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 30/03/2009 -//! @SYMTestCaseDesc Gets the font which is the nearest to the given font specification. -//! @SYMTestActions 1. Create a CFontStore object and a CBitmapFont object. -//! 2. Install a test rasterizer. -//! 3. Add a font file specified in test data. -//! 4. Get the font specified in test data. -//! 5. Check the font is expected. -//! 6. Release the font. -//! 7. Remove all files. -//! 8. Destroy the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. CFontStore::GetNearestFontToMaxHeightInTwips() is called successfully. -//! 2. The font returned is as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - CREATE_OBJECT CBitmapFont bitmapFont - COMMAND fntStore NewL - COMMAND fntStore InstallRasterizerL GRAPHICS-FNTSTORE-FntStore-PublicApi-0061-InstallRasterizerL_command02 - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-FntStore-PublicApi-0061-AddFileL_command03 - COMMAND fntStore GetNearestFontToMaxHeightInTwips GRAPHICS-FNTSTORE-FntStore-PublicApi-0061-GetNearestFontToMaxHeightInTwips_command04 - COMMAND bitmapFont FontSpecInTwips GRAPHICS-FNTSTORE-FntStore-PublicApi-0061-FontSpecInTwips_command05 - COMMAND fntStore ReleaseFont GRAPHICS-FNTSTORE-FntStore-PublicApi-0061-ReleaseFont_command06 - COMMAND fntStore RemoveFile - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0061 - -START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0062 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-FntStore-PublicApi-0062 -//! @SYMAPI CFontStore::GetNearestFontToMaxHeightInTwips(CFont{ptr}{ref},const TOpenFontSpec{ref}, TInt) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 30/03/2009 -//! @SYMTestCaseDesc Gets the font which is the nearest to the given font specification, which is not contained in font file. -//! @SYMTestActions 1. Create a CFontStore object and a CBitmapFont object. -//! 2. Install a test rasterizer. -//! 3. Add a font file specified in test data. -//! 4. Get the font specified in test data. -//! 5. Check the font is expected. -//! 6. Release the font. -//! 7. Remove all files. -//! 8. Destroy the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. CFontStore::GetNearestFontToMaxHeightInTwips() is called successfully. -//! 2. The font returned is as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - CREATE_OBJECT CBitmapFont bitmapFont - COMMAND fntStore NewL - COMMAND fntStore InstallRasterizerL GRAPHICS-FNTSTORE-FntStore-PublicApi-0062-InstallRasterizerL_command02 - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-FntStore-PublicApi-0062-AddFileL_command03 - COMMAND fntStore GetNearestFontToMaxHeightInTwips GRAPHICS-FNTSTORE-FntStore-PublicApi-0062-GetNearestFontToMaxHeightInTwips_command04 - COMMAND bitmapFont FontSpecInTwips GRAPHICS-FNTSTORE-FntStore-PublicApi-0062-FontSpecInTwips_command05 - COMMAND fntStore ReleaseFont GRAPHICS-FNTSTORE-FntStore-PublicApi-0062-ReleaseFont_command06 - COMMAND fntStore RemoveFile - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0062 - -START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0063 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-FntStore-PublicApi-0063 -//! @SYMAPI CFontStore::GetNearestFontToMaxHeightInTwips(CFont{ptr}{ref},const TOpenFontSpec{ref}, TInt) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 30/03/2009 -//! @SYMTestCaseDesc Negative case. Gets the font which is the nearest to the given font specification without font file added. -//! @SYMTestActions 1. Create a CFontStore object and a CBitmapFont object. -//! 2. Get the font specified in test data. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get error code -2 (KErrGeneral). -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - CREATE_OBJECT CBitmapFont bitmapFont - COMMAND fntStore NewL - COMMAND !Error=-2 fntStore GetNearestFontToMaxHeightInTwips GRAPHICS-FNTSTORE-FntStore-PublicApi-0063-GetNearestFontToMaxHeightInTwips_command02 - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0063 - -START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0071 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-FntStore-PublicApi-0071 -//! @SYMAPI CFontStore::GetNearestFontToMaxHeightInPixels(CFont{ptr}{ref},const TOpenFontSpec{ref}, TInt) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 30/03/2009 -//! @SYMTestCaseDesc Gets the font which is the nearest to the given font specification. -//! @SYMTestActions 1. Create a CFontStore object and a CBitmapFont object. -//! 2. Install a test rasterizer. -//! 3. Add a font file specified in test data. -//! 4. Get the font specified in test data. -//! 5. Check the font is expected. -//! 6. Release the font. -//! 7. Remove all files. -//! 8. Destroy the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. CFontStore::GetNearestFontToMaxHeightInPixels() is called successfully. -//! 2. The font returned is as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - CREATE_OBJECT CBitmapFont bitmapFont - COMMAND fntStore NewL - COMMAND fntStore InstallRasterizerL GRAPHICS-FNTSTORE-FntStore-PublicApi-0071-InstallRasterizerL_command02 - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-FntStore-PublicApi-0071-AddFileL_command03 - COMMAND fntStore GetNearestFontToMaxHeightInPixels GRAPHICS-FNTSTORE-FntStore-PublicApi-0071-GetNearestFontToMaxHeightInPixels_command04 - COMMAND bitmapFont HeightInPixels GRAPHICS-FNTSTORE-FntStore-PublicApi-0071-HeightInPixels_command05 - COMMAND fntStore ReleaseFont GRAPHICS-FNTSTORE-FntStore-PublicApi-0071-ReleaseFont_command06 - COMMAND fntStore RemoveFile - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0071 - -START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0072 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-FntStore-PublicApi-0072 -//! @SYMAPI CFontStore::GetNearestFontToMaxHeightInPixels(CFont{ptr}{ref},const TOpenFontSpec{ref}, TInt) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 30/03/2009 -//! @SYMTestCaseDesc Gets the font which is the nearest to the given font specification, which is not contained in font file. -//! @SYMTestActions 1. Create a CFontStore object and a CBitmapFont object. -//! 2. Install a test rasterizer. -//! 3. Add a font file specified in test data. -//! 4. Get the font specified in test data. -//! 5. Check the font is expected. -//! 6. Release the font. -//! 7. Remove all files. -//! 8. Destroy the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. CFontStore::GetNearestFontToMaxHeightInPixels() is called successfully. -//! 2. The font returned is as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - CREATE_OBJECT CBitmapFont bitmapFont - COMMAND fntStore NewL - COMMAND fntStore InstallRasterizerL GRAPHICS-FNTSTORE-FntStore-PublicApi-0072-InstallRasterizerL_command02 - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-FntStore-PublicApi-0072-AddFileL_command03 - COMMAND fntStore GetNearestFontToMaxHeightInPixels GRAPHICS-FNTSTORE-FntStore-PublicApi-0072-GetNearestFontToMaxHeightInPixels_command04 - COMMAND bitmapFont FontSpecInTwips GRAPHICS-FNTSTORE-FntStore-PublicApi-0072-FontSpecInTwips_command05 - COMMAND bitmapFont HeightInPixels GRAPHICS-FNTSTORE-FntStore-PublicApi-0072-HeightInPixels_command06 - COMMAND fntStore ReleaseFont GRAPHICS-FNTSTORE-FntStore-PublicApi-0072-ReleaseFont_command07 - COMMAND fntStore RemoveFile - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0072 - -START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0081 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-FntStore-PublicApi-0081 -//! @SYMAPI CFontStore::GetFontById(CFont{ptr}{ref},TUid{ref}, const TAlgStyle{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 30/03/2009 -//! @SYMTestCaseDesc Gets a bitmap font using the given font UID and algorithmic style. -//! @SYMTestActions 1. Create a CFontStore object, a TAlgStyle object and a CBitmapFont object. -//! 2. Install a test rasterizer. -//! 3. Add a font file specified in test data. -//! 4. Get the font specified in test data. -//! 5. Check the font is expected. -//! 6. Release the font. -//! 7. Remove all files. -//! 8. Destroy all objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. CFontStore::GetFontById() is called successfully. -//! 2. The font returned is as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - CREATE_OBJECT CBitmapFont bitmapFont - CREATE_OBJECT TAlgStyle algStyle - COMMAND fntStore NewL - COMMAND algStyle new - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-FntStore-PublicApi-0081-AddFileL_command03 - COMMAND fntStore GetFontById GRAPHICS-FNTSTORE-FntStore-PublicApi-0081-GetFontById_command04 - COMMAND bitmapFont FontSpecInTwips GRAPHICS-FNTSTORE-FntStore-PublicApi-0081-FontSpecInTwips_command05 - COMMAND fntStore ReleaseFont GRAPHICS-FNTSTORE-FntStore-PublicApi-0081-ReleaseFont_command06 - COMMAND fntStore RemoveFile - COMMAND algStyle ~ - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0081 - -START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0082 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-FntStore-PublicApi-0082 -//! @SYMAPI CFontStore::GetFontById(CFont{ptr}{ref},TUid{ref}, const TAlgStyle{ref}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 30/03/2009 -//! @SYMTestCaseDesc Negative case. Gets a bitmap font using invalid font UID. -//! @SYMTestActions 1. Create a CFontStore object, a TAlgStyle object and a CBitmapFont object. -//! 2. Install a test rasterizer. -//! 3. Add a font file specified in test data. -//! 4. Get the font specified in test data. -//! 5. Remove all files. -//! 6. Destroy all objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get error code -1 KErrNotFound. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - CREATE_OBJECT CBitmapFont bitmapFont - CREATE_OBJECT TAlgStyle algStyle - COMMAND fntStore NewL - COMMAND algStyle new - COMMAND fntStore InstallRasterizerL GRAPHICS-FNTSTORE-FntStore-PublicApi-0082-InstallRasterizerL_command03 - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-FntStore-PublicApi-0082-AddFileL_command04 - COMMAND !Error=-1 fntStore GetFontById GRAPHICS-FNTSTORE-FntStore-PublicApi-0082-GetFontById_command05 - COMMAND fntStore RemoveFile - COMMAND algStyle ~ - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0082 - -START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0091 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-FntStore-PublicApi-0091 -//! @SYMAPI CFontStore::ReleaseFont(CFont{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 30/03/2009 -//! @SYMTestCaseDesc Releases the hold of a typeface store client on a specified font. -//! @SYMTestActions 1. Create a CFontStore object and a CBitmapFont object. -//! 2. Install a test rasterizer. -//! 3. Add a font file specified in test data. -//! 4. Get the font specified in test data. -//! 5. Release the font. -//! 6. Remove all files. -//! 7. Destroy the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CFontStore::ReleaseFont() is called successfully. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - CREATE_OBJECT CBitmapFont bitmapFont - COMMAND fntStore NewL - COMMAND fntStore InstallRasterizerL GRAPHICS-FNTSTORE-FntStore-PublicApi-0091-InstallRasterizerL_command02 - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-FntStore-PublicApi-0091-AddFileL_command03 - COMMAND fntStore GetNearestFontToMaxHeightInPixels GRAPHICS-FNTSTORE-FntStore-PublicApi-0091-GetNearestFontToMaxHeightInPixels_command04 - COMMAND fntStore ReleaseFont GRAPHICS-FNTSTORE-FntStore-PublicApi-0091-ReleaseFont_command05 - COMMAND fntStore RemoveFile - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0091 - -START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0101 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-FntStore-PublicApi-0101 -//! @SYMAPI CFontStore::NumTypefaces() -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 30/03/2009 -//! @SYMTestCaseDesc Gets the number of typefaces held in the font store. -//! @SYMTestActions 1. Create a CFontStore object. -//! 2. Get the number of typefaces. -//! 3. Add a font file specified in test data. -//! 4. Get the number of typefaces. -//! 5. Remove the file. -//! 6. Destroy the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. CFontStore::NumTypefaces() is called successfully. -//! 2. Before and after add file, number of typefaces is expected as specified in test data respectively. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - COMMAND fntStore NewL - COMMAND fntStore NumTypefaces GRAPHICS-FNTSTORE-FntStore-PublicApi-0101-NumTypefaces_command02 - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-FntStore-PublicApi-0101-AddFileL_command03 - COMMAND fntStore NumTypefaces GRAPHICS-FNTSTORE-FntStore-PublicApi-0101-NumTypefaces_command04 - COMMAND fntStore RemoveFile GRAPHICS-FNTSTORE-FntStore-PublicApi-0101-RemoveFile_command05 - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0101 - -START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0111 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-FntStore-PublicApi-0111 -//! @SYMAPI CFontStore::TypefaceSupport(TTypefaceSupport{ref},TInt) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 31/03/2009 -//! @SYMTestCaseDesc Gets a typeface support object for the typeface in the font store represented by the given index. -//! @SYMTestActions 1. Create a CFontStore object. -//! 2. Add a font file specified in test data. -//! 3. Enumerate all typefaces in the font file. -//! 4. Remove all files. -//! 5. Destroy the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. CFontStore::TypefaceSupport() is called successfully. -//! 2. All typefaces in the font store are enumerated. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - COMMAND fntStore NewL - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-FntStore-PublicApi-0111-AddFileL_command02 - COMMAND fntStore TypefaceSupport GRAPHICS-FNTSTORE-FntStore-PublicApi-0111-TypefaceSupport_command03 - COMMAND fntStore TypefaceSupport GRAPHICS-FNTSTORE-FntStore-PublicApi-0111-TypefaceSupport_command04 - COMMAND fntStore TypefaceSupport GRAPHICS-FNTSTORE-FntStore-PublicApi-0111-TypefaceSupport_command05 - COMMAND fntStore TypefaceSupport GRAPHICS-FNTSTORE-FntStore-PublicApi-0111-TypefaceSupport_command06 - COMMAND fntStore TypefaceSupport GRAPHICS-FNTSTORE-FntStore-PublicApi-0111-TypefaceSupport_command07 - COMMAND fntStore TypefaceSupport GRAPHICS-FNTSTORE-FntStore-PublicApi-0111-TypefaceSupport_command08 - COMMAND fntStore TypefaceSupport GRAPHICS-FNTSTORE-FntStore-PublicApi-0111-TypefaceSupport_command09 - COMMAND fntStore TypefaceSupport GRAPHICS-FNTSTORE-FntStore-PublicApi-0111-TypefaceSupport_command10 - COMMAND fntStore RemoveFile - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0111 - -START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0112 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-FntStore-PublicApi-0112 -//! @SYMAPI CFontStore::TypefaceSupport(TTypefaceSupport{ref},TInt) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 31/03/2009 -//! @SYMTestCaseDesc Negative case. Gets a typeface support object for the typeface in the font store with negative index. -//! @SYMTestActions 1. Create a CFontStore object. -//! 2. Add a font file specified in test data. -//! 3. Get a typeface support with index -1. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get panic code 0 and panic string FntStore. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - COMMAND fntStore NewL - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-FntStore-PublicApi-0112-AddFileL_command02 - COMMAND fntStore TypefaceSupport GRAPHICS-FNTSTORE-FntStore-PublicApi-0112-TypefaceSupport_command03 - END_TEST_BLOCK !PanicString=FntStore !PanicCode=0 - RUN_TEST_STEP 100 T_GraphicsFntstoreApi utilityClearPanicDlg -END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0112 - -START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0113 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-FntStore-PublicApi-0113 -//! @SYMAPI CFontStore::TypefaceSupport(TTypefaceSupport{ref},TInt) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 31/03/2009 -//! @SYMTestCaseDesc Negative case. Gets typeface support object for the typeface in the font store with index > NumTypefaces(). -//! @SYMTestActions 1. Create a CFontStore object. -//! 2. Add a font file specified in test data. -//! 3. Get a typeface support with index 99. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Can not get typeface. Uninitialized value is returned. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - COMMAND fntStore NewL - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-FntStore-PublicApi-0113-AddFileL_command02 - COMMAND fntStore TypefaceSupport GRAPHICS-FNTSTORE-FntStore-PublicApi-0113-TypefaceSupport_command03 - COMMAND fntStore RemoveFile - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0113 - -START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0114 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-FntStore-PublicApi-0114 -//! @SYMAPI CFontStore::TypefaceSupport(TTypefaceSupport{ref},TInt) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 03/04/2009 -//! @SYMTestCaseDesc Negative case. Gets typeface support object for the typeface in the font store with index > NumTypefaces(). -//! @SYMTestActions 1. Create a CFontStore object. -//! 2. Install a rasterizer and add 2 font files. -//! 3. Get a typeface support with index of the 1st typeface in 2nd file. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CFontStore::TypefaceSupport() is called successfully. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - COMMAND fntStore NewL - COMMAND fntStore InstallRasterizerL GRAPHICS-FNTSTORE-FntStore-PublicApi-0114-InstallRasterizerL_command02 - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-FntStore-PublicApi-0114-AddFileL_command03 - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-FntStore-PublicApi-0114-AddFileL_command04 - COMMAND fntStore TypefaceSupport GRAPHICS-FNTSTORE-FntStore-PublicApi-0114-TypefaceSupport_command05 - COMMAND fntStore RemoveFile - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0114 - -START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0121 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-FntStore-PublicApi-0121 -//! @SYMAPI CFontStore::FontHeightInTwips(TInt, TInt) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 30/03/2009 -//! @SYMTestCaseDesc Gets the height of a font in twips. -//! @SYMTestActions 1. Create a CFontStore object. -//! 2. Install a test rasterizer. -//! 3. Add a font file specified in test data. -//! 4. Gets the height of a font specified in test data in twips. -//! 5. Remove all files. -//! 6. Destroy the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. CFontStore::FontHeightInTwips() is called successfully. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - COMMAND fntStore NewL - COMMAND fntStore InstallRasterizerL GRAPHICS-FNTSTORE-FntStore-PublicApi-0121-InstallRasterizerL_command02 - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-FntStore-PublicApi-0121-AddFileL_command03 - COMMAND fntStore FontHeightInTwips GRAPHICS-FNTSTORE-FntStore-PublicApi-0121-FontHeightInTwips_command04 - COMMAND fntStore RemoveFile - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0121 - -START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0122 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-FntStore-PublicApi-0122 -//! @SYMAPI CFontStore::FontHeightInTwips(TInt, TInt) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 30/03/2009 -//! @SYMTestCaseDesc Negative case. Gets the height of a font with combination of typeface index > NumTypefaces(), typeface index in range, height index > numheights, height index < 0. -//! @SYMTestActions 1. Create a CFontStore object. -//! 2. Install a test rasterizer. -//! 3. Add a font file specified in test data. -//! 4. Gets the height of a font with typeface index > NumTypefaces(). -//! 5. Gets the height of a font with typeface index in range and height index > numheights. -//! 6. Gets the height of a font with typeface index in range and height index < 0. -//! 7. Remove all files. -//! 8. Destroy the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. CFontStore::FontHeightInTwips() is called successfully. -//! 2. The 1st and 3rd call of CFontStore::FontHeightInTwips() returns 0. -//! 3. The 2nd call of CFontStore::FontHeightInTwips() returns positive number. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - COMMAND fntStore NewL - COMMAND fntStore InstallRasterizerL GRAPHICS-FNTSTORE-FntStore-PublicApi-0122-InstallRasterizerL_command02 - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-FntStore-PublicApi-0122-AddFileL_command03 - COMMAND fntStore FontHeightInTwips GRAPHICS-FNTSTORE-FntStore-PublicApi-0122-FontHeightInTwips_command04 - COMMAND fntStore FontHeightInTwips GRAPHICS-FNTSTORE-FntStore-PublicApi-0122-FontHeightInTwips_command05 - COMMAND fntStore FontHeightInTwips GRAPHICS-FNTSTORE-FntStore-PublicApi-0122-FontHeightInTwips_command06 - COMMAND fntStore RemoveFile - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0122 - -START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0123 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-FntStore-PublicApi-0123 -//! @SYMAPI CFontStore::FontHeightInTwips(TInt, TInt) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 30/03/2009 -//! @SYMTestCaseDesc Negative case. Gets the height of a font with negative typeface index. -//! @SYMTestActions 1. Create a CFontStore object. -//! 2. Install a test rasterizer. -//! 3. Add a font file specified in test data. -//! 4. Gets the height of a font with negative typeface index. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get panic code 0 and panic string FntStore. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - COMMAND fntStore NewL - COMMAND fntStore InstallRasterizerL GRAPHICS-FNTSTORE-FntStore-PublicApi-0123-InstallRasterizerL_command02 - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-FntStore-PublicApi-0123-AddFileL_command03 - COMMAND fntStore FontHeightInTwips GRAPHICS-FNTSTORE-FntStore-PublicApi-0123-FontHeightInTwips_command04 - END_TEST_BLOCK !PanicString=FntStore !PanicCode=0 - RUN_TEST_STEP 100 T_GraphicsFntstoreApi utilityClearPanicDlg -END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0123 - -START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0131 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-FntStore-PublicApi-0131 -//! @SYMAPI CFontStore::FontHeightInPixels(TInt, TInt) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 31/03/2009 -//! @SYMTestCaseDesc Gets the height of a font in twips. -//! @SYMTestActions 1. Create a CFontStore object. -//! 2. Install a test rasterizer. -//! 3. Add a open font file specified in test data. -//! 4. Gets the height of a font specified in test data in twips. -//! 5. Remove all files. -//! 6. Destroy the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. CFontStore::FontHeightInPixels() is called successfully. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - COMMAND fntStore NewL - COMMAND fntStore InstallRasterizerL GRAPHICS-FNTSTORE-FntStore-PublicApi-0131-InstallRasterizerL_command02 - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-FntStore-PublicApi-0131-AddFileL_command03 - COMMAND fntStore FontHeightInPixels GRAPHICS-FNTSTORE-FntStore-PublicApi-0131-FontHeightInPixels_command04 - COMMAND fntStore RemoveFile - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0131 - -START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0132 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-FntStore-PublicApi-0132 -//! @SYMAPI CFontStore::FontHeightInPixels(TInt, TInt) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 31/03/2009 -//! @SYMTestCaseDesc Negative case. Gets the height of a font with combination of typeface index > NumTypefaces(), typeface index in range, height index > numheights, height index < 0. -//! @SYMTestActions 1. Create a CFontStore object. -//! 2. Install a test rasterizer. -//! 3. Add a font file specified in test data. -//! 4. Gets the height of a font with typeface index > NumTypefaces(). -//! 5. Gets the height of a font with typeface index in range and height index > numheights. -//! 6. Gets the height of a font with typeface index in range and height index < 0. -//! 7. Remove all files. -//! 8. Destroy the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. CFontStore::FontHeightInPixels() is called successfully. -//! 2. The 1st and 3rd call of CFontStore::FontHeightInPixels() returns 0. -//! 3. The 2nd call of CFontStore::FontHeightInPixels() returns the biggest height. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - COMMAND fntStore NewL - COMMAND fntStore InstallRasterizerL GRAPHICS-FNTSTORE-FntStore-PublicApi-0132-InstallRasterizerL_command02 - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-FntStore-PublicApi-0132-AddFileL_command03 - COMMAND fntStore FontHeightInPixels GRAPHICS-FNTSTORE-FntStore-PublicApi-0132-FontHeightInPixels_command04 - COMMAND fntStore FontHeightInPixels GRAPHICS-FNTSTORE-FntStore-PublicApi-0132-FontHeightInPixels_command05 - COMMAND fntStore FontHeightInPixels GRAPHICS-FNTSTORE-FntStore-PublicApi-0132-FontHeightInPixels_command06 - COMMAND fntStore RemoveFile - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0132 - -START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0133 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-FntStore-PublicApi-0133 -//! @SYMAPI CFontStore::FontHeightInPixels(TInt, TInt) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 31/03/2009 -//! @SYMTestCaseDesc Negative case. Gets the height of a font with negative typeface index. -//! @SYMTestActions 1. Create a CFontStore object. -//! 2. Install a test rasterizer. -//! 3. Add a font file specified in test data. -//! 4. Gets the height of a font with negative typeface index. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get panic code 0 and panic string FntStore. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - COMMAND fntStore NewL - COMMAND fntStore InstallRasterizerL GRAPHICS-FNTSTORE-FntStore-PublicApi-0133-InstallRasterizerL_command02 - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-FntStore-PublicApi-0133-AddFileL_command03 - COMMAND fntStore FontHeightInPixels GRAPHICS-FNTSTORE-FntStore-PublicApi-0133-FontHeightInPixels_command04 - END_TEST_BLOCK !PanicString=FntStore !PanicCode=0 - RUN_TEST_STEP 100 T_GraphicsFntstoreApi utilityClearPanicDlg -END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0133 - -START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0134 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-FntStore-PublicApi-0134 -//! @SYMAPI CFontStore::FontHeightInPixels(TInt, TInt) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 03/04/2009 -//! @SYMTestCaseDesc Gets the height of a font in twips. -//! @SYMTestActions 1. Create a CFontStore object. -//! 2. Add a font file specified in test data. -//! 3. Gets the height of a font specified in test data in twips. -//! 4. Remove all files. -//! 5. Destroy the CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. CFontStore::FontHeightInPixels() is called successfully. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - COMMAND fntStore NewL - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-FntStore-PublicApi-0134-AddFileL_command02 - COMMAND fntStore FontHeightInPixels GRAPHICS-FNTSTORE-FntStore-PublicApi-0134-FontHeightInPixels_command03 - COMMAND fntStore RemoveFile - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0134 - -START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0141 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-FntStore-PublicApi-0141 -//! @SYMAPI CFontStore::InstallRasterizerL(COpenFontRasterizer{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 31/03/2009 -//! @SYMTestCaseDesc Installs and takes ownership of an Open Font rasterizer. -//! @SYMTestActions 1. Create a CFontStore object. -//! 2. Add a font file specified in test data. -//! 3. Install a test rasterizer. -//! 4. Add a font file specified in test data. -//! 5. Remove all files. -//! 6. Destroy CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. CFontStore::InstallRasterizerL() is called successfully. -//! 2. Before install rasterizer, CFontStore::AddFileL() returns error -25 (KErrEof). -//! 3. After install rasterizer, CFontStore::AddFileL() returns 0 (KErrNone). -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - COMMAND fntStore NewL - COMMAND !Error=-25 fntStore AddFileL GRAPHICS-FNTSTORE-FntStore-PublicApi-0141-AddFileL_command02 - COMMAND fntStore InstallRasterizerL GRAPHICS-FNTSTORE-FntStore-PublicApi-0141-InstallRasterizerL_command03 - COMMAND fntStore AddFileL GRAPHICS-FNTSTORE-FntStore-PublicApi-0141-AddFileL_command04 - COMMAND fntStore RemoveFile - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0141 - -START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0142 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-FntStore-PublicApi-0142 -//! @SYMAPI CFontStore::InstallRasterizerL(COpenFontRasterizer{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 31/03/2009 -//! @SYMTestCaseDesc Negative case. Installs a null rasterizer. -//! @SYMTestActions 1. Create a CFontStore object. -//! 2. Install a null rasterizer. -//! 3. Destroy CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CFontStore::InstallRasterizerL() is called successfully. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - COMMAND fntStore NewL - COMMAND fntStore InstallRasterizerL GRAPHICS-FNTSTORE-FntStore-PublicApi-0142-InstallRasterizerL_command02 - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0142 - -START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0151 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-FntStore-PublicApi-0151 -//! @SYMAPI CFontStore::DeleteSessionCache(TInt) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 31/03/2009 -//! @SYMTestCaseDesc Deletes the glyph cache belonging to a particular client. -//! @SYMTestActions 1. Create a CFontStore object. -//! 2. Delete a session cache specified by session handle. -//! 3. Destroy CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CFontStore::DeleteSessionCache() is called successfully. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - COMMAND fntStore NewL - COMMAND fntStore DeleteSessionCache GRAPHICS-FNTSTORE-FntStore-PublicApi-0151-DeleteSessionCache_command02 - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0151 - -START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0161 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-FntStore-PublicApi-0161 -//! @SYMAPI CFontStore::DefaultBitmapType() -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 31/03/2009 -//! @SYMTestCaseDesc Get the default bitmap type. -//! @SYMTestActions 1. Create a CFontStore object. -//! 2. Get the default bitmap type. -//! 3. Destroy CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CFontStore::DefaultBitmapType() is called successfully. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - COMMAND fntStore NewL - COMMAND fntStore DefaultBitmapType GRAPHICS-FNTSTORE-FntStore-PublicApi-0161-DefaultBitmapType_command02 - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0161 - -START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0171 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-FntStore-PublicApi-0171 -//! @SYMAPI CFontStore::SetDefaultBitmapType(TGlyphBitmapType) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 31/03/2009 -//! @SYMTestCaseDesc Sets a default bitmap type. -//! @SYMTestActions 1. Create a CFontStore object. -//! 2. Set the default bitmap type. -//! 3. Check the bitmap type set using DefaultBitmapType. -//! 4. Set the default bitmap type. -//! 5. Check the bitmap type set using DefaultBitmapType. -//! 6. Set the default bitmap type. -//! 7. Check the bitmap type set using DefaultBitmapType. -//! 8. Set the default bitmap type. -//! 9. Check the bitmap type set using DefaultBitmapType. -//! 10. Set the default bitmap type. -//! 11. Check the bitmap type set using DefaultBitmapType. -//! 12. Destroy CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CFontStore::SetDefaultBitmapType() is called successfully. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - COMMAND fntStore NewL - COMMAND fntStore SetDefaultBitmapType GRAPHICS-FNTSTORE-FntStore-PublicApi-0171-SetDefaultBitmapType_command02 - COMMAND fntStore DefaultBitmapType GRAPHICS-FNTSTORE-FntStore-PublicApi-0171-DefaultBitmapType_command03 - COMMAND fntStore SetDefaultBitmapType GRAPHICS-FNTSTORE-FntStore-PublicApi-0171-SetDefaultBitmapType_command04 - COMMAND fntStore DefaultBitmapType GRAPHICS-FNTSTORE-FntStore-PublicApi-0171-DefaultBitmapType_command05 - COMMAND fntStore SetDefaultBitmapType GRAPHICS-FNTSTORE-FntStore-PublicApi-0171-SetDefaultBitmapType_command06 - COMMAND fntStore DefaultBitmapType GRAPHICS-FNTSTORE-FntStore-PublicApi-0171-DefaultBitmapType_command07 - COMMAND fntStore SetDefaultBitmapType GRAPHICS-FNTSTORE-FntStore-PublicApi-0171-SetDefaultBitmapType_command08 - COMMAND fntStore DefaultBitmapType GRAPHICS-FNTSTORE-FntStore-PublicApi-0171-DefaultBitmapType_command09 - COMMAND fntStore SetDefaultBitmapType GRAPHICS-FNTSTORE-FntStore-PublicApi-0171-SetDefaultBitmapType_command10 - COMMAND fntStore DefaultBitmapType GRAPHICS-FNTSTORE-FntStore-PublicApi-0171-DefaultBitmapType_command11 - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0171 - -START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0172 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-FntStore-PublicApi-0172 -//! @SYMAPI CFontStore::SetDefaultBitmapType(TGlyphBitmapType) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 31/03/2009 -//! @SYMTestCaseDesc Negative case. Sets a default bitmap type with invalid number. -//! @SYMTestActions 1. Create a CFontStore object. -//! 2. Set the default bitmap type. -//! 3. Check the bitmap type set using DefaultBitmapType. -//! 4. Destroy CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CFontStore::SetDefaultBitmapType() is called successfully. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - COMMAND fntStore NewL - COMMAND fntStore SetDefaultBitmapType GRAPHICS-FNTSTORE-FntStore-PublicApi-0172-SetDefaultBitmapType_command02 - COMMAND fntStore DefaultBitmapType GRAPHICS-FNTSTORE-FntStore-PublicApi-0172-DefaultBitmapType_command03 - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0172 - -START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0181 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-FntStore-PublicApi-0181 -//! @SYMAPI CFontStore::InstallShaperFactoryL(CShaperFactory{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 31/03/2009 -//! @SYMTestCaseDesc Installs and takes ownership of a shaper. -//! @SYMTestActions 1. Create a CFontStore object. -//! 3. Install a test shaper. -//! 3. Destroy CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CFontStore::InstallShaperFactoryL() is called successfully. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - COMMAND fntStore NewL - COMMAND fntStore InstallShaperFactoryL GRAPHICS-FNTSTORE-FntStore-PublicApi-0181-InstallShaperFactoryL_command02 - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0181 - -START_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0182 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-FntStore-PublicApi-0182 -//! @SYMAPI CFontStore::InstallShaperFactoryL(CShaperFactory{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 31/03/2009 -//! @SYMTestCaseDesc Negative case. Installs and takes ownership of a null shaper. -//! @SYMTestActions 1. Create a CFontStore object. -//! 3. Install a null shaper. -//! 3. Destroy CFontStore object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CFontStore::InstallShaperFactoryL() is called successfully. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.ini - CREATE_OBJECT CFontStore fntStore - COMMAND fntStore NewL - COMMAND fntStore InstallShaperFactoryL GRAPHICS-FNTSTORE-FntStore-PublicApi-0182-InstallShaperFactoryL_command02 - COMMAND fntStore ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-FntStore-PublicApi-0182 - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fntstore/scripts/GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi.script --- a/graphicsapitest/graphicssvs/fntstore/scripts/GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,183 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// -//! @file -//! @SYMTestSuiteName GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi -//! @SYMScriptTestEnvironment - -///////////////////////////////////////////////////////////////////// -// GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi.script -// -// Tests all public elements of the COpenFontRasterizerContext -// classes as a means of confidence that the APIs work as expected. -// -// The purpose is to provide a regression test suite of PublishedAll APIs for COpenFontRasterizerContext -// The tests are fully automated. -///////////////////////////////////////////////////////////////////// - -LOAD_SUITE T_GraphicsFntstoreApi -DELAY 1000 - -START_TESTCASE GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0001 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0001 -//! @SYMAPI COpenFontRasterizerContext::COpenFontRasterizerContext() -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 09/04/2009 -//! @SYMTestCaseDesc Creates a new COpenFontRasterizerContext object. -//! @SYMTestActions 1. Create a COpenFontRasterizerContext object. -//! 2. Destroy the object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults COpenFontRasterizerContext::COpenFontRasterizerContext() is called successfully. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi.ini - CREATE_OBJECT COpenFontRasterizerContext razContext - COMMAND razContext new - COMMAND razContext ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0001 - -START_TESTCASE GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0002 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0002 -//! @SYMAPI COpenFontRasterizerContext::StartGlyph(TOpenFontGlyphData{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 10/04/2009 -//! @SYMTestCaseDesc Start writing the glyph data. -//! @SYMTestActions 1. Create a COpenFontRasterizerContext object and a TOpenFontGlyphData object. -//! 2. Start writing the glyph data. -//! 3. Completes writing glyph data. -//! 4. Destroy all objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults COpenFontRasterizerContext::StartGlyph() is called successfully. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi.ini - CREATE_OBJECT COpenFontRasterizerContext razContext - CREATE_OBJECT TOpenFontGlyphData glyphData - COMMAND razContext new - COMMAND glyphData New GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0002-New_command02 - COMMAND razContext StartGlyph GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0002-StartGlyph_command03 - COMMAND razContext EndGlyph - COMMAND glyphData ~ - COMMAND razContext ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0002 - -START_TESTCASE GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0003 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0003 -//! @SYMAPI COpenFontRasterizerContext::WriteGlyphBit(TInt) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 10/04/2009 -//! @SYMTestCaseDesc Writes a bit to the glyph buffer. -//! @SYMTestActions 1. Create a COpenFontRasterizerContext object and a TOpenFontGlyphData object. -//! 2. Start writing the glyph data. -//! 3. Writes a bit to the glyph buffer. -//! 4. Completes writing glyph data. -//! 5. Destroy all objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults COpenFontRasterizerContext::WriteGlyphBit() is called successfully. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi.ini - CREATE_OBJECT COpenFontRasterizerContext razContext - CREATE_OBJECT TOpenFontGlyphData glyphData - COMMAND razContext new - COMMAND glyphData New GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0003-New_command02 - COMMAND razContext StartGlyph GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0003-StartGlyph_command03 - COMMAND razContext WriteGlyphBit GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0003-WriteGlyphBit_command04 - COMMAND razContext EndGlyph - COMMAND glyphData ~ - COMMAND razContext ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0003 - -START_TESTCASE GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0004 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0004 -//! @SYMAPI COpenFontRasterizerContext::WriteGlyphByte(TInt) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 10/04/2009 -//! @SYMTestCaseDesc Writes a byte to the glyph buffer. -//! @SYMTestActions 1. Create a COpenFontRasterizerContext object and a TOpenFontGlyphData object. -//! 2. Start writing the glyph data. -//! 3. Writes a byte to the glyph buffer. -//! 4. Completes writing glyph data. -//! 5. Destroy all objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults COpenFontRasterizerContext::WriteGlyphByte() is called successfully. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi.ini - CREATE_OBJECT COpenFontRasterizerContext razContext - CREATE_OBJECT TOpenFontGlyphData glyphData - COMMAND razContext new - COMMAND glyphData New GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0004-New_command02 - COMMAND razContext StartGlyph GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0004-StartGlyph_command03 - COMMAND razContext WriteGlyphByte GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0004-WriteGlyphByte_command04 - COMMAND razContext EndGlyph - COMMAND glyphData ~ - COMMAND razContext ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0004 - -START_TESTCASE GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0005 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0005 -//! @SYMAPI COpenFontRasterizerContext::EndGlyph(TInt) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 10/04/2009 -//! @SYMTestCaseDesc Completes writing glyph data. -//! @SYMTestActions 1. Create a COpenFontRasterizerContext object and a TOpenFontGlyphData object. -//! 2. Start writing the glyph data. -//! 3. Completes writing glyph data. -//! 4. Destroy all objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults COpenFontRasterizerContext::EndGlyph() is called successfully. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi.ini - CREATE_OBJECT COpenFontRasterizerContext razContext - CREATE_OBJECT TOpenFontGlyphData glyphData - COMMAND razContext new - COMMAND glyphData New GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0005-New_command02 - COMMAND razContext StartGlyph GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0005-StartGlyph_command03 - COMMAND razContext EndGlyph - COMMAND glyphData ~ - COMMAND razContext ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0005 - -START_TESTCASE GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0006 -//! @SYMTestCaseID GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0006 -//! @SYMAPI COpenFontRasterizerContext::StartGlyph(TOpenFontGlyphData{ptr}) -//! @SYMAuthor Felix Rao -//! @SYMCreationDate 10/04/2009 -//! @SYMTestCaseDesc Negative case. Start writing the glyph data and destroy the context object without calling EndGlyphData(). -//! @SYMTestActions 1. Create a COpenFontRasterizerContext object and a TOpenFontGlyphData object. -//! 2. Start writing the glyph data. -//! 3. Destroy all objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults COpenFontRasterizerContext::StartGlyph() is called successfully. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsFntstoreApi \graphics\GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi.ini - CREATE_OBJECT COpenFontRasterizerContext razContext - CREATE_OBJECT TOpenFontGlyphData glyphData - COMMAND razContext new - COMMAND glyphData New GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0006-New_command02 - COMMAND razContext StartGlyph GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0006-StartGlyph_command03 - COMMAND glyphData ~ - COMMAND razContext ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0006 - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fntstore/scripts/GRAPHICS-FNTSTORE-PublicApi.script --- a/graphicsapitest/graphicssvs/fntstore/scripts/GRAPHICS-FNTSTORE-PublicApi.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,19 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// - -RUN_SCRIPT ${SYSDRIVE}\graphics\GRAPHICS-FNTSTORE-FntStore-PublicApi.script -RUN_SCRIPT ${SYSDRIVE}\graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.script -RUN_SCRIPT ${SYSDRIVE}\graphics\GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi.script diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fntstore/scripts/setup-T-GRAPHICS-FNTSTORE-PublicApi.script --- a/graphicsapitest/graphicssvs/fntstore/scripts/setup-T-GRAPHICS-FNTSTORE-PublicApi.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,56 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// - -RUN_UTILS MkDir ${SYSDRIVE}\graphics\ -RUN_UTILS MkDir ${SYSDRIVE}\graphics\fntstore\ - -RUN_UTILS CopyFile z:\graphics\GRAPHICS-FNTSTORE-PublicApi.script ${SYSDRIVE}\graphics\GRAPHICS-FNTSTORE-PublicApi.script -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-FNTSTORE-PublicApi.script -RUN_UTILS CopyFile z:\graphics\t_graphics.tcs ${SYSDRIVE}\graphics\t_graphics.tcs -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\t_graphics.tcs -RUN_UTILS CopyFile z:\graphics\t_graphics_panic.tcs ${SYSDRIVE}\graphics\t_graphics_panic.tcs -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\t_graphics_panic.tcs - - -// T_DataFontStore -RUN_UTILS CopyFile z:\graphics\graphics-fntstore-fntstore-publicapi.script ${SYSDRIVE}\graphics\graphics-fntstore-fntstore-publicapi.script -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\graphics-fntstore-fntstore-publicapi.script -RUN_UTILS CopyFile z:\graphics\graphics-fntstore-fntstore-publicapi.ini ${SYSDRIVE}\graphics\graphics-fntstore-fntstore-publicapi.ini -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\graphics-fntstore-fntstore-publicapi.ini - -// T_DataBitmapFont -RUN_UTILS CopyFile z:\graphics\graphics-fntstore-bitmapfont-publicapi.script ${SYSDRIVE}\graphics\graphics-fntstore-bitmapfont-publicapi.script -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\graphics-fntstore-bitmapfont-publicapi.script -RUN_UTILS CopyFile z:\graphics\graphics-fntstore-bitmapfont-publicapi.ini ${SYSDRIVE}\graphics\graphics-fntstore-bitmapfont-publicapi.ini -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\graphics-fntstore-bitmapfont-publicapi.ini - -// T_DataOpenFontRasterizerContext -RUN_UTILS CopyFile z:\graphics\GRAPHICS-fntstore-openfontrasterizercontext-PublicApi.script ${SYSDRIVE}\graphics\GRAPHICS-fntstore-openfontrasterizercontext-PublicApi.script -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-fntstore-openfontrasterizercontext-PublicApi.script -RUN_UTILS CopyFile z:\graphics\graphics-fntstore-openfontrasterizercontext-publicapi.ini ${SYSDRIVE}\graphics\graphics-fntstore-openfontrasterizercontext-publicapi.ini -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\graphics-fntstore-openfontrasterizercontext-publicapi.ini - -RUN_UTILS MkDir \graphics\fntstore - -//datafile -RUN_UTILS CopyFile z:\graphics\fntstore\dummy ${SYSDRIVE}\graphics\fntstore\dummy -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\fntstore\dummy -RUN_UTILS CopyFile z:\graphics\fntstore\dummy ${SYSDRIVE}\graphics\fntstore\dummy_2 -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\fntstore\dummy_2 -RUN_UTILS CopyFile z:\graphics\fntstore\testfontws.gdr ${SYSDRIVE}\graphics\fntstore\testfontws.gdr -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\fntstore\testfontws.gdr -RUN_UTILS CopyFile z:\graphics\fntstore\bad_entrysel ${SYSDRIVE}\graphics\fntstore\bad_entrysel -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\fntstore\bad_entrysel diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fntstore/src/T_DataAlgStyle.cpp --- a/graphicsapitest/graphicssvs/fntstore/src/T_DataAlgStyle.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,200 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataAlgStyle -*/ - -#include "T_DataAlgStyle.h" - - -/*@{*/ -/// Parameters -_LIT(KFactor, "factor"); - -/// Commands -_LIT(KCmdNew, "new"); -_LIT(KCmdSetWidthFactor, "SetWidthFactor"); -_LIT(KCmdSetHeightFactor, "SetHeightFactor"); -_LIT(KCleanup, "~"); - -/*@}*/ - - -/** -* Two phase constructor -*/ -CT_DataAlgStyle* CT_DataAlgStyle::NewL() - { - CT_DataAlgStyle* ret = new (ELeave) CT_DataAlgStyle(); - CleanupStack::PushL(ret); - ret->ConstructL(); - CleanupStack::Pop(ret); - return ret; - } - - -/** -* Protected constructor. First phase construction -*/ -CT_DataAlgStyle::CT_DataAlgStyle() -: CDataWrapperBase() -, iAlgStyle(NULL) - { - } - - -/** -* Protected second phase construction -*/ -void CT_DataAlgStyle::ConstructL() - { - } - - -/** -* Destructor. -*/ -CT_DataAlgStyle::~CT_DataAlgStyle() - { - DestroyData(); - } - - -/** -* cleanup implementation. -*/ -void CT_DataAlgStyle::DestroyData() - { - delete iAlgStyle; - iAlgStyle = NULL; - } - -TAny* CT_DataAlgStyle::GetObject() - { - return iAlgStyle; - } - -void CT_DataAlgStyle::SetObjectL(TAny* aObject) - { - DestroyData(); - iAlgStyle = static_cast (aObject); - } - -void CT_DataAlgStyle::DisownObjectL() - { - iAlgStyle = NULL; - } - -/** -* Process a command read from the ini file -* -* @param aDataWrapper test step requiring command to be processed -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* -* @return ETrue if the command is processed -*/ -TBool CT_DataAlgStyle::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt /*aAsyncErrorIndex*/) - { - TBool retVal = ETrue; - - if (aCommand == KCmdNew) - { - DoCmdNew(); - } - else if (aCommand == KCmdSetWidthFactor) - { - DoCmdSetWidthFactor(aSection); - } - else if (aCommand == KCmdSetHeightFactor) - { - DoCmdSetHeightFactor(aSection); - } - else if (aCommand == KCleanup) - { - DestroyData(); - } - else - { - retVal=EFalse; - } - - return retVal; - } - - -////////////////// COMMANDS IMPLEMENTATION //////////////////////// - -/** Creates an instance of TAlgSAtyle structure */ -void CT_DataAlgStyle::DoCmdNew() - { - INFO_PRINTF1(_L("Creates an instance of TAlgSAtyle structure")); - - // cleanup if any - DestroyData(); - - // call new operator - TRAPD(err, iAlgStyle = new (ELeave) TAlgStyle()); - - // check error code - if (err != KErrNone) - { - ERR_PRINTF2(_L("Error creating an instance: %d"), err); - SetError(err); - } - } - - -/** Calls TAlgSAtyle::SetWidthFactor() */ -void CT_DataAlgStyle::DoCmdSetWidthFactor(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls TAlgSAtyle::SetWidthFactor()")); - // get factor from parameters - TInt factor; - if (!GetIntFromConfig(aSection, KFactor(), factor) ) - { - ERR_PRINTF2(_L("No %S"), &KFactor()); - SetBlockResult(EFail); - } - - // call SetWidthFactor() - iAlgStyle->SetWidthFactor(factor); - } - - -/** Calls TAlgSAtyle::SetWidthFactor() */ -void CT_DataAlgStyle::DoCmdSetHeightFactor(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls TAlgSAtyle::SetHeightFactor()")); - - // get factor from parameters - TInt factor; - if (!GetIntFromConfig(aSection, KFactor(), factor) ) - { - ERR_PRINTF2(_L("No %S"), &KFactor()); - SetBlockResult(EFail); - } - - // call SetHeightFactor() - iAlgStyle->SetHeightFactor(factor); - } - - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fntstore/src/T_DataBitmapFont.cpp --- a/graphicsapitest/graphicssvs/fntstore/src/T_DataBitmapFont.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,911 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataBitmapFont -*/ - -#include "T_DataBitmapFont.h" -#include "T_GraphicsUtil.h" - -/*@{*/ -/// Parameters -_LIT(KFldExpected, "expected"); -_LIT(KFldCode, "code"); -_LIT(KFldIsNull, "isnull"); -_LIT(KFldSessHandle, "handle"); -_LIT(KFldGlyphBitmapType, "glyphtype"); - -_LIT(KFldCharMetrics, "charmetrics"); -_LIT(KFldOFCharMetrics, "ofcharmetrics"); -_LIT(KFldOFFaceAttrib, "offaceattrib"); -_LIT(KFldOFMetrics, "ofmetrics"); - - -/// Commands -_LIT(KCmdBitmapEncoding, "BitmapEncoding"); -_LIT(KCmdCharacterMetrics, "CharacterMetrics"); -_LIT(KCmdCharacterNeedsToBeRasterized, "CharacterNeedsToBeRasterized"); -_LIT(KCmdGetCharacterData, "GetCharacterData"); -_LIT(KCmdGetFaceAttrib, "GetFaceAttrib"); -_LIT(KCmdGetFontMetrics, "GetFontMetrics"); -_LIT(KCmdGlyphBitmapType, "GlyphBitmapType"); -_LIT(KCmdHasCharacterL, "HasCharacterL"); -_LIT(KCmdIsOpenFont, "IsOpenFont"); -_LIT(KCmdOpenFont, "OpenFont"); -_LIT(KCmdRasterize, "Rasterize"); -_LIT(KCmdUniqueFontId, "UniqueFontId"); - -/// Constant Literals -_LIT(KTagCharMetricsAscent, "ascent"); -_LIT(KTagCharMetricsHeight, "height"); -_LIT(KTagCharMetricsMove, "move"); -_LIT(KTagCharMetricsLeftAdjust, "leftadjust"); -_LIT(KTagCharMetricsRightAdjust, "rightadjust"); - -_LIT(KTagOFCharMetricsHeight, "height"); -_LIT(KTagOFCharMetricsGlyphType, "glyphtype"); - -_LIT(KTagOFFaceAttribFamilyName, "familyname"); -_LIT(KTagOFFaceAttribMinSize, "minsize"); - -_LIT(KTagOFMetricsMaxHeight, "maxheight"); -_LIT(KTagOFMetricsSize, "size"); - -_LIT(KFormatEntryField, "%S_%S"); - -/// Logging -_LIT(KLogError, "Error=%d"); -_LIT(KLogMissingParameter, "Missing parameter '%S'"); -_LIT(KLogMissingExpectedValue, "Missing expected value '%S'"); -_LIT(KLogNotExpectedValueInt, "'%S' is not as expected=%d, actual=%d"); -_LIT(KLogNotExpectedValueString, "'%S' is not as expected='%S', actual='%S'"); - -/*@}*/ - - -/** -* Two phase constructor -*/ -CT_DataBitmapFont* CT_DataBitmapFont::NewL() - { - CT_DataBitmapFont* ret = new (ELeave) CT_DataBitmapFont(); - return ret; - } - - -/** -* Protected constructor. First phase construction -*/ -CT_DataBitmapFont::CT_DataBitmapFont() -: CT_DataFont(), iBitmapFont(NULL) - { - } - -TAny* CT_DataBitmapFont::GetObject() - { - return iBitmapFont; - } - -void CT_DataBitmapFont::SetObjectL(TAny* aObject) - { - iBitmapFont = static_cast (aObject); - } - -void CT_DataBitmapFont::DisownObjectL() - { - iBitmapFont = NULL; - } - -CFont* CT_DataBitmapFont::GetFont() const - { - return iBitmapFont; - } - -/** -* Process a command read from the ini file -* -* @param aDataWrapper test step requiring command to be processed -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* -* @return ETrue if the command is processed -*/ -TBool CT_DataBitmapFont::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex) - { - TBool ret = ETrue; - - if (aCommand == KCmdBitmapEncoding) - { - DoCmdBitmapEncoding(aSection); - } - else if (aCommand == KCmdCharacterMetrics) - { - DoCmdCharacterMetrics(aSection); - } - else if (aCommand == KCmdCharacterNeedsToBeRasterized) - { - DoCmdCharacterNeedsToBeRasterized(aSection); - } - else if (aCommand == KCmdGetCharacterData) - { - DoCmdGetCharacterData(aSection); - } - else if (aCommand == KCmdGetFaceAttrib) - { - DoCmdGetFaceAttrib(aSection); - } - else if (aCommand == KCmdGetFontMetrics) - { - DoCmdGetFontMetrics(aSection); - } - else if (aCommand == KCmdGlyphBitmapType) - { - DoCmdGlyphBitmapType(aSection); - } - else if (aCommand == KCmdHasCharacterL) - { - DoCmdHasCharacterL(aSection); - } - else if (aCommand == KCmdIsOpenFont) - { - DoCmdIsOpenFont(aSection); - } - else if (aCommand == KCmdOpenFont) - { - DoCmdOpenFont(aSection); - } - else if (aCommand == KCmdRasterize) - { - DoCmdRasterize(aSection); - } - else if (aCommand == KCmdUniqueFontId) - { - DoCmdUniqueFontId(aSection); - } - else - { - ret = CT_DataFont::DoCommandL(aCommand, aSection, aAsyncErrorIndex); - } - - return ret; - } - -////////////////// COMMANDS IMPLEMENTATION //////////////////////// - -/** Calls CBitmapFont::DoCmdBitmapEncoding() */ -void CT_DataBitmapFont::DoCmdBitmapEncoding(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CBitmapFont::BitmapEncoding()")); - TInt ret = iBitmapFont->BitmapEncoding(); - INFO_PRINTF2(_L("The actual bitmap encoding value is %d"), ret); - - TInt expected; - if( GetIntFromConfig(aSection, KFldExpected, expected) ) - { - if (ret != expected) - { - ERR_PRINTF4(KLogNotExpectedValueInt, &KFldExpected, ret, expected); - SetBlockResult(EFail); - } - } - } - -void CT_DataBitmapFont::DoCmdCharacterMetrics(const TDesC& aSection) - { - TInt code; - if( !GetIntFromConfig(aSection, KFldCode, code) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldCode); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("Calls CBitmapFont::CharacterMetrics(TInt, const TUint8*&)")); - TCharacterMetrics metrics; - const TUint8* ptr; - metrics= iBitmapFont->CharacterMetrics(code, ptr); - TBool failed = EFalse; - - TBool isNull; - if( GetBoolFromConfig(aSection, KFldIsNull, isNull) ) - { - if(isNull) - { - if(ptr != NULL) - { - ERR_PRINTF1(_L("Should return a NULL pointer") ); - failed = ETrue; - } - else - { - INFO_PRINTF1(_L("A NULL pointer is returned")); - - } - } - else - { - if(ptr == NULL) - { - ERR_PRINTF1(_L("Should return a pointer to the character bitmap") ); - failed = ETrue; - } - else - { - INFO_PRINTF1(_L("A pointer to the character bitmap is returned") ); - } - } - } - - TCharacterMetrics expected; - if( GetCharacterMetricsFromConfig(*this, aSection, KFldCharMetrics, expected) ) - { - if(metrics.iAscentInPixels != expected.iAscentInPixels) - { - - ERR_PRINTF4(KLogNotExpectedValueInt, &KTagCharMetricsAscent, expected.iAscentInPixels, metrics.iAscentInPixels); - failed = ETrue; - } - if(metrics.iHeightInPixels != expected.iHeightInPixels) - { - ERR_PRINTF4(KLogNotExpectedValueInt, &KTagCharMetricsHeight, expected.iHeightInPixels, metrics.iHeightInPixels); - failed = ETrue; - } - if(metrics.iMoveInPixels != expected.iMoveInPixels) - { - ERR_PRINTF4(KLogNotExpectedValueInt, &KTagCharMetricsMove, expected.iMoveInPixels, metrics.iMoveInPixels); - failed = ETrue; - } - if(metrics.iLeftAdjustInPixels != expected.iLeftAdjustInPixels) - { - ERR_PRINTF4(KLogNotExpectedValueInt, &KTagCharMetricsLeftAdjust, expected.iLeftAdjustInPixels, metrics.iLeftAdjustInPixels); - failed = ETrue; - } - if(metrics.iRightAdjustInPixels != expected.iRightAdjustInPixels) - { - ERR_PRINTF4(KLogNotExpectedValueInt, &KTagCharMetricsRightAdjust, expected.iRightAdjustInPixels, metrics.iRightAdjustInPixels); - failed = ETrue; - } - } - - if(failed) - { - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("Character metrics is expected.")); - } - } - } - -void CT_DataBitmapFont::CT_DataBitmapFont::DoCmdCharacterNeedsToBeRasterized(const TDesC& aSection) - { - TBool dataOK = ETrue; - - TInt handle; - if( !GetIntFromConfig(aSection, KFldSessHandle, handle) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldSessHandle); - dataOK = EFalse; - } - - TInt code; - if( !GetIntFromConfig(aSection, KFldCode, code) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldCode); - dataOK = EFalse; - } - - if(!dataOK) - { - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("Calls CBitmapFont::CharacterNeedsToBeRasterized(TInt, TInt)")); - TBool ret = iBitmapFont->CharacterNeedsToBeRasterized(handle, code); - - TBool expected; - if( GetBoolFromConfig(aSection, KFldExpected, expected) ) - { - if(ret) - { - if(!expected) - { - ERR_PRINTF1(_L("Return value is not as expected: EFalse, actual: ETrue")); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("Return value is ETrue")); - } - } - else - { - if(expected) - { - ERR_PRINTF1(_L("Return value is not as expected: ETrue, actual: EFalse")); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("Return value is EFalse")); - } - } - } - } - } - - -void CT_DataBitmapFont::DoCmdGetCharacterData(const TDesC& aSection) - { - TBool dataOK = ETrue; - - TInt handle; - if( !GetIntFromConfig(aSection, KFldSessHandle, handle) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldSessHandle); - dataOK = EFalse; - } - - TInt code; - if( !GetIntFromConfig(aSection, KFldCode, code) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldCode); - dataOK = EFalse; - } - - if(!dataOK) - { - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("Calls CBitmapFont::GetCharacterData(TInt aSessionHandle, TInt aCode, TOpenFontCharMetrics &aMetrics, const TUint8 *&aBitmap)")); - TOpenFontCharMetrics metrics; - const TUint8* ptr; - TBool ret = iBitmapFont->GetCharacterData(handle, code, metrics, ptr); - - TBool expected; - if( GetBoolFromConfig(aSection, KFldExpected, expected) ) - { - if(ret) - { - if(!expected) - { - ERR_PRINTF1(_L("Return value is not as expected: EFalse, actual: ETrue")); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("Return value is ETrue")); - - TBool isNull; - if( GetBoolFromConfig(aSection, KFldIsNull, isNull) ) - { - if(isNull) - { - if(ptr != NULL) - { - ERR_PRINTF1(_L("Should return a NULL pointer") ); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("A NULL pointer is returned") ); - } - } - else - { - if(ptr == NULL) - { - ERR_PRINTF1(_L("Should return a pointer to the character bitmap.") ); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("a pointer to the character bitmap is returned") ); - } - } - } - - TBool failed = EFalse; - TOpenFontCharMetrics expectedMetrics; - if( GetOpenFontCharMetricsFromConfig(*this, aSection, KFldOFCharMetrics, expectedMetrics) ) - { - if(metrics.GlyphType() != expectedMetrics.GlyphType()) - { - ERR_PRINTF4(KLogNotExpectedValueInt, &KTagOFCharMetricsGlyphType, metrics.GlyphType(), expectedMetrics.GlyphType()); - failed = ETrue; - } - if(metrics.Height() != expectedMetrics.Height()) - { - ERR_PRINTF4(KLogNotExpectedValueInt, &KTagOFCharMetricsHeight, metrics.Height(), expectedMetrics.Height()); - failed = ETrue; - } - - if(failed) - { - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("Open font character metrics is expected")); - } - } - } - } - else - { - if(expected) - { - ERR_PRINTF1(_L("Return value is not as expected: ETrue, actual: EFalse")); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("Return value is EFalse")); - } - } - } - } - } - -void CT_DataBitmapFont::DoCmdGetFaceAttrib(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CBitmapFont::GetFaceAttrib(TOpenFontFaceAttrib&)")); - TOpenFontFaceAttrib attrib; - TBool ret = iBitmapFont->GetFaceAttrib(attrib); - - TBool expected; - if( GetBoolFromConfig(aSection, KFldExpected, expected) ) - { - if(ret) - { - if(!expected) - { - ERR_PRINTF1(_L("Return value is not as expected: EFalse, actual: ETrue")); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("Return value is ETrue")); - TBool failed = EFalse; - TOpenFontFaceAttrib expectedAttrib; - if( GetOpenFontFaceAttribFromConfig(*this, aSection, KFldOFFaceAttrib, expectedAttrib) ) - { - TPtrC actualName = attrib.FamilyName(); - TPtrC expectedName = expectedAttrib.FamilyName(); - if(actualName != expectedName) - { - ERR_PRINTF4(KLogNotExpectedValueString, &KTagOFFaceAttribFamilyName, &expectedName, &actualName); - failed = ETrue; - } - if(attrib.MinSizeInPixels() != expectedAttrib.MinSizeInPixels()) - { - ERR_PRINTF4(KLogNotExpectedValueInt, &KTagOFFaceAttribMinSize, expectedAttrib.MinSizeInPixels(), attrib.MinSizeInPixels()); - failed = ETrue; - } - - if(failed) - { - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("Open font typeface attributes is expected")); - } - } - } - } - else - { - if(expected) - { - ERR_PRINTF1(_L("Return value is not as expected: ETrue, actual: EFalse")); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("Return value is EFalse")); - } - } - } - } - -void CT_DataBitmapFont::DoCmdGetFontMetrics(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CBitmapFont::GetFontMetrics(TOpenFontMetrics&)")); - TOpenFontMetrics metrics; - iBitmapFont->GetFontMetrics(metrics); - - TOpenFontMetrics expectedMetrics; - if( GetOpenFontMetricsFromConfig(*this, aSection, KFldOFMetrics, expectedMetrics) ) - { - TBool failed = EFalse; - if(metrics.MaxHeight() != expectedMetrics.MaxHeight()) - { - ERR_PRINTF4(KLogNotExpectedValueInt, &KTagOFMetricsMaxHeight, expectedMetrics.MaxHeight(), metrics.MaxHeight()); - failed = ETrue; - } - if(metrics.Size() != expectedMetrics.Size()) - { - ERR_PRINTF4(KLogNotExpectedValueInt, &KTagOFMetricsSize, expectedMetrics.Size(), metrics.Size()); - failed = ETrue; - } - - if(failed) - { - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("Open font metrics is expected")); - } - } - } - -void CT_DataBitmapFont::DoCmdGlyphBitmapType(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CBitmapFont::GlyphBitmapType()")); - TGlyphBitmapType ret = iBitmapFont->GlyphBitmapType(); - INFO_PRINTF2(_L("Glyph bitmap type is %d."), (TInt)ret); - - TGlyphBitmapType expected; - if( CT_GraphicsUtil::ReadGlyphBitmapType(*this, aSection, KFldGlyphBitmapType(), expected) ) - { - if(ret != expected) - { - ERR_PRINTF4(KLogNotExpectedValueInt, &KFldExpected, (TInt)ret, (TInt)expected); - SetBlockResult(EFail); - } - } - } - -void CT_DataBitmapFont::DoCmdHasCharacterL(const TDesC& aSection) - { - TInt code; - if( !GetIntFromConfig(aSection, KFldCode, code) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldCode); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("Calls CBitmapFont::HasCharacterL(TInt)")); - TBool ret = iBitmapFont->HasCharacterL(code); - - TBool expected; - if( GetBoolFromConfig(aSection, KFldExpected, expected) ) - { - if(ret) - { - if(!expected) - { - ERR_PRINTF1(_L("Return value is not as expected: EFalse, actual: ETrue")); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("Return value is ETrue")); - } - } - else - { - if(expected) - { - ERR_PRINTF1(_L("Return value is not as expected: ETrue, actual: EFalse")); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("Return value is EFalse")); - } - } - } - } - } - -void CT_DataBitmapFont::DoCmdIsOpenFont(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CBitmapFont::IsOpenFont()")); - TBool ret = iBitmapFont->IsOpenFont(); - - TBool expected; - if( GetBoolFromConfig(aSection, KFldExpected, expected) ) - { - if(ret) - { - if(!expected) - { - ERR_PRINTF1(_L("Return value is not as expected: EFalse, actual: ETrue")); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("Return value is ETrue")); - } - } - else - { - if(expected) - { - ERR_PRINTF1(_L("Return value is not as expected: ETrue, actual: EFalse")); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("Return value is EFalse")); - } - } - } - } - -void CT_DataBitmapFont::DoCmdOpenFont(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CBitmapFont::OpenFont()")); - COpenFont* ptr = iBitmapFont->OpenFont(); - - TBool isNull; - if( GetBoolFromConfig(aSection, KFldIsNull, isNull) ) - { - if(isNull) - { - if(ptr != NULL) - { - ERR_PRINTF1(_L("Should return a NULL pointer") ); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("A NULL pointer is returned") ); - } - } - else - { - if(ptr == NULL) - { - ERR_PRINTF1(_L("Should return a pointer to COpenFont") ); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("A pointer to COpenFont is returned") ); - } - } - } - } - -void CT_DataBitmapFont::DoCmdRasterize(const TDesC& aSection) - { - TBool dataOK = ETrue; - - TInt handle; - if( !GetIntFromConfig(aSection, KFldSessHandle, handle) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldSessHandle); - dataOK = EFalse; - } - - TInt code; - if( !GetIntFromConfig(aSection, KFldCode, code) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldCode); - dataOK = EFalse; - } - - if(!dataOK) - { - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("Calls CBitmapFont::Rasterize(TInt, TInt, TOpenFontGlyphData*)")); - TOpenFontGlyphData* ptr = NULL; - TBool ret = iBitmapFont->Rasterize(handle, code, ptr); - - TBool expected; - if( GetBoolFromConfig(aSection, KFldExpected, expected) ) - { - if(ret) - { - if(!expected) - { - ERR_PRINTF1(_L("Return value is not as expected: EFalse, actual: ETrue")); - SetBlockResult(EFail); - } - else - { - // The character was successfully rasterized. - INFO_PRINTF1(_L("Return value is ETrue")); - TBool isNull; - if( GetBoolFromConfig(aSection, KFldIsNull, isNull) ) - { - if(isNull) - { - if(ptr != NULL) - { - ERR_PRINTF1(_L("Should return a NULL pointer") ); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("A NULL pointer is returned")); - } - } - else - { - if(ptr == NULL) - { - ERR_PRINTF1(_L("Should return a pointer to TOpenFontGlyphData") ); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("A pointer to TOpenFontGlyphData is returned")); - } - } - } - } - } - // ret = EFalse - else - { - if(expected) - { - ERR_PRINTF1(_L("Return value is not as expected: ETrue, actual: EFalse")); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("Return value is EFalse")); - } - } - } - } - } - -void CT_DataBitmapFont::DoCmdUniqueFontId(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CBitmapFont::UniqueFontId()")); - TUint32 ret = iBitmapFont->UniqueFontId(); - INFO_PRINTF2(_L("Unique font id is %d"), (TInt)ret); - - TInt temp; - if( GetIntFromConfig(aSection, KFldExpected, temp) ) - { - TUint32 expected = (TUint32)temp; - if(ret != expected) - { - ERR_PRINTF4(KLogNotExpectedValueInt, &KFldExpected, ret, expected); - SetBlockResult(EFail); - } - } - } - -TBool CT_DataBitmapFont::GetCharacterMetricsFromConfig(CDataWrapper& aDataWrapper, const TDesC& aSectName, const TDesC& aKeyName, TCharacterMetrics& aResult) - { - TBuf tempStore; - TInt temp; - TBool ret = EFalse; - - tempStore.Format(KFormatEntryField, &aKeyName, &KTagCharMetricsAscent); - if( aDataWrapper.GetIntFromConfig(aSectName, tempStore, temp) ) - { - aResult.iAscentInPixels = temp; - ret = ETrue; - } - - tempStore.Format(KFormatEntryField, &aKeyName, &KTagCharMetricsHeight); - if( aDataWrapper.GetIntFromConfig(aSectName, tempStore, temp) ) - { - aResult.iHeightInPixels = temp; - ret = ETrue; - } - - tempStore.Format(KFormatEntryField, &aKeyName, &KTagCharMetricsLeftAdjust); - if( aDataWrapper.GetIntFromConfig(aSectName, tempStore, temp) ) - { - aResult.iLeftAdjustInPixels = temp; - ret = ETrue; - } - - tempStore.Format(KFormatEntryField, &aKeyName, &KTagCharMetricsMove); - if( aDataWrapper.GetIntFromConfig(aSectName, tempStore, temp) ) - { - aResult.iMoveInPixels = temp; - ret = ETrue; - } - - tempStore.Format(KFormatEntryField, &aKeyName, &KTagCharMetricsRightAdjust); - if( aDataWrapper.GetIntFromConfig(aSectName, tempStore, temp) ) - { - aResult.iRightAdjustInPixels = temp; - ret = ETrue; - } - - return ret; - } - - -TBool CT_DataBitmapFont::GetOpenFontCharMetricsFromConfig(CDataWrapperBase& aDataWrapper,const TDesC& aSectName,const TDesC& aKeyName,TOpenFontCharMetrics& aResult) - { - TBuf tempStore; - TGlyphBitmapType type; - TInt height; - - tempStore.Format(KFormatEntryField, &aKeyName, &KTagOFCharMetricsGlyphType); - if( CT_GraphicsUtil::ReadGlyphBitmapType(aDataWrapper, aSectName, tempStore, type) ) - { - tempStore.Format(KFormatEntryField, &aKeyName, &KTagOFCharMetricsHeight); - if( aDataWrapper.GetIntFromConfig(aSectName, tempStore, height) ) - { - aResult.SetHeight(height); - aResult.SetGlyphType(type); - return ETrue; - } - } - - return EFalse; - } - -TBool CT_DataBitmapFont::GetOpenFontFaceAttribFromConfig(CDataWrapper& aDataWrapper,const TDesC& aSectName,const TDesC& aKeyName,TOpenFontFaceAttrib& aResult) - { - TBuf tempStore; - tempStore.Format(KFormatEntryField, &aKeyName, &KTagOFFaceAttribFamilyName); - - TPtrC familyname; - TInt minsize; - if( aDataWrapper.GetStringFromConfig(aSectName, tempStore, familyname) ) - { - tempStore.Format(KFormatEntryField, &aKeyName, &KTagOFFaceAttribMinSize); - if( aDataWrapper.GetIntFromConfig(aSectName, tempStore, minsize) ) - { - aResult.SetFamilyName(familyname); - aResult.SetMinSizeInPixels(minsize); - return ETrue; - } - } - - return EFalse; - } - -TBool CT_DataBitmapFont::GetOpenFontMetricsFromConfig(CDataWrapper& aDataWrapper,const TDesC& aSectName, const TDesC& aKeyName, TOpenFontMetrics& aResult) - { - TBuf tempStore; - tempStore.Format(KFormatEntryField, &aKeyName, &KTagOFMetricsMaxHeight); - - TInt maxheight; - TInt size; - if( aDataWrapper.GetIntFromConfig(aSectName, tempStore, maxheight) ) - { - tempStore.Format(KFormatEntryField, &aKeyName, &KTagOFMetricsSize); - if( aDataWrapper.GetIntFromConfig(aSectName, tempStore, size) ) - { - aResult.SetMaxHeight(maxheight); - aResult.SetSize(size); - return ETrue; - } - } - - return EFalse; - } - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fntstore/src/T_DataFontStore.cpp --- a/graphicsapitest/graphicssvs/fntstore/src/T_DataFontStore.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,763 +0,0 @@ -/* - * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). - * All rights reserved. - * This component and the accompanying materials are made available - * under the terms of "Eclipse Public License v1.0" - * which accompanies this distribution, and is available - * at the URL "http://www.eclipse.org/legal/epl-v10.html". - * - * Initial Contributors: - * Nokia Corporation - initial contribution. - * - * Contributors: - * - * Description: - * - */ -/** - @test - @internalComponent - - This contains CT_DataFontStore - */ -#include "T_DataFontStore.h" -#include "T_GraphicsUtil.h" -#include "T_TestOpenFont.h" - -/*@{*/ -/// Parameters -_LIT(KFldTypefaceName, "typefacename"); -_LIT(KFldHeapSize, "heapsize"); -_LIT(KFldFontFile, "fontfile"); -_LIT(KFldId, "id"); -_LIT(KFldExpectedGlyphBitmapType, "expected_bmptype"); -_LIT(KFldGlyphBitmapType, "bmptype"); -_LIT(KFldSessionHandle, "sessionhandle"); -_LIT(KFldTypefaceIndex, "typeface_index"); -_LIT(KFldHeightIndex, "height_index"); -_LIT(KFldExpectedHeight, "expected_height"); -_LIT(KFldFontUid, "fontuid"); -_LIT(KFldAlgStyle, "alg_style"); -_LIT(KFldFont, "font"); -_LIT(KFldOpenFont, "openfont"); -_LIT(KFldMaxHeight, "maxheight"); -_LIT(KFldUseTestClass, "usetestclass"); -_LIT(KFldRasterizer, "rasterizer"); -_LIT(KFldShaperFactory, "shaperfactory"); - -/// Commands -_LIT(KCmdNewL, "NewL"); -_LIT(KCmdDestructor, "~"); -_LIT(KCmdAddFileL, "AddFileL"); -_LIT(KCmdRemoveFile, "RemoveFile"); -_LIT(KCmdDefaultBitmapType, "DefaultBitmapType"); -_LIT(KCmdDeleteSessionCache, "DeleteSessionCache"); -_LIT(KCmdFontHeightInPixels, "FontHeightInPixels"); -_LIT(KCmdGetFontById, "GetFontById"); -_LIT(KCmdGetNearestFontToDesignHeightInPixels, "GetNearestFontToDesignHeightInPixels"); -_LIT(KCmdGetNearestFontToDesignHeightInTwips, "GetNearestFontToDesignHeightInTwips"); -_LIT(KCmdGetNearestFontToMaxHeightInPixels, "GetNearestFontToMaxHeightInPixels"); -_LIT(KCmdGetNearestFontToMaxHeightInTwips, "GetNearestFontToMaxHeightInTwips"); -_LIT(KCmdInstallRasterizerL, "InstallRasterizerL"); -_LIT(KCmdInstallShaperFactoryL, "InstallShaperFactoryL"); -_LIT(KCmdSetDefaultBitmapType, "SetDefaultBitmapType"); - -/// Logs -_LIT(KLogMissingParameter, "Missing parameter '%S'"); -_LIT(KLogError, "Error=%d"); -_LIT(KLogMissingFilename, "File '%S' not found in array"); -_LIT(KLogFontSpec, "font_spec or openfont_spec"); -/*@}*/ - -/** - * Two phase constructor - */ -CT_DataFontStore* CT_DataFontStore::NewL() - { - CT_DataFontStore* ret = new (ELeave) CT_DataFontStore(); - CleanupStack::PushL(ret); - ret->ConstructL(); - CleanupStack::Pop(ret); - return ret; - } -/** - * Protected second phase construction - */ -void CT_DataFontStore::ConstructL() - { - } - -/** - * Protected constructor. First phase construction - */ -CT_DataFontStore::CT_DataFontStore() : - CT_DataTypefaceStore(), iFntStore(NULL) - { - } - -/** - * Destructor. - */ -CT_DataFontStore::~CT_DataFontStore() - { - DestroyData(); - iFile.Reset(); - iFile.Close(); - iId.Reset(); - iId.Close(); - } - -/** - * cleanup implementation. - */ -void CT_DataFontStore::DestroyData() - { - delete iFntStore; - iFntStore = NULL; - } - -TAny* CT_DataFontStore::GetObject() - { - return iFntStore; - } - -void CT_DataFontStore::SetObjectL(TAny* aObject) - { - DestroyData(); - iFntStore = static_cast (aObject); - } - -void CT_DataFontStore::DisownObjectL() - { - iFntStore = NULL; - } - -CTypefaceStore* CT_DataFontStore::GetTypefaceStore() const - { - return iFntStore; - } - -/** - * Process a command read from the ini file - * - * @param aDataWrapper test step requiring command to be processed - * @param aCommand the command to process - * @param aSection the entry in the ini file requiring the command to be processed - * - * @return ETrue if the command is processed - */ -TBool CT_DataFontStore::DoCommandL(const TTEFFunction& aCommand, - const TTEFSectionName& aSection, const TInt aAsyncErrorIndex) - { - TBool retVal = ETrue; - - if (aCommand == KCmdNewL) - { - DoCmdNewL(aSection); - } - else if (aCommand == KCmdDestructor) - { - DoCmdDestructor(); - } - else if (aCommand == KCmdAddFileL) - { - DoCmdAddFileL(aSection); - } - else if (aCommand == KCmdRemoveFile) - { - DoCmdRemoveFile(aSection); - } - else if (aCommand == KCmdDefaultBitmapType) - { - DoCmdDefaultBitmapType(aSection); - } - else if (aCommand == KCmdDeleteSessionCache) - { - DoCmdDeleteSessionCache(aSection); - } - else if (aCommand == KCmdFontHeightInPixels) - { - DoCmdFontHeightInPixels(aSection); - } - else if (aCommand == KCmdGetFontById) - { - DoCmdGetFontByIdL(aSection); - } - else if (aCommand == KCmdGetNearestFontToDesignHeightInPixels) - { - DoCmdGetNearestFontToDesignHeightInPixelsL(aSection); - } - else if (aCommand == KCmdGetNearestFontToDesignHeightInTwips) - { - if (!DoCmdGetNearestFontToDesignHeightInTwipsL(aSection)) - { - retVal = CT_DataTypefaceStore::DoCommandL(aCommand, aSection, aAsyncErrorIndex); - } - } - else if (aCommand == KCmdGetNearestFontToMaxHeightInPixels) - { - DoCmdGetNearestFontToMaxHeightInPixelsL(aSection); - } - else if (aCommand == KCmdGetNearestFontToMaxHeightInTwips) - { - if (!DoCmdGetNearestFontToMaxHeightInTwipsL(aSection)) - { - retVal = CT_DataTypefaceStore::DoCommandL(aCommand, aSection, aAsyncErrorIndex); - } - } - else if (aCommand == KCmdInstallRasterizerL) - { - DoCmdInstallRasterizerL(aSection); - } - else if (aCommand == KCmdInstallShaperFactoryL) - { - DoCmdInstallShaperFactoryL(aSection); - } - else if (aCommand == KCmdSetDefaultBitmapType) - { - DoCmdSetDefaultBitmapType(aSection); - } - else - { - retVal = CT_DataTypefaceStore::DoCommandL(aCommand, aSection, aAsyncErrorIndex); - } - - return retVal; - } - -////////////////// COMMANDS IMPLEMENTATION //////////////////////// - -/** Creates an instance of CT_DataFontStore class */ -void CT_DataFontStore::DoCmdNewL(const TDesC& aSection) - { - // cleanup if any - DestroyData(); - - TInt heapsize; - TInt err; - - INFO_PRINTF1(_L("execute CFontStore::NewL(RHeap*)")); - if (GetIntFromConfig(aSection, KFldHeapSize, heapsize)) - { - RHeap* heap = NULL; - if (heapsize != 0) - { - heap = UserHeap::ChunkHeap(NULL, heapsize, heapsize); - } - TRAP(err, iFntStore = CFontStore::NewL(heap)); - } - else - { - // Use heap of the thread. - TRAP(err, iFntStore = CFontStore::NewL(&User::Heap())); - } - - if (err != KErrNone) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - } - -void CT_DataFontStore::DoCmdDestructor() - { - // cleanup if any - DestroyData(); - } - -void CT_DataFontStore::DoCmdAddFileL(const TDesC& aSection) - { - TPtrC name; - - if (!GetStringFromConfig(aSection, KFldFontFile, name)) - { - ERR_PRINTF2(KLogMissingParameter, &KFldFontFile()); - SetBlockResult(EFail); - } - else - { - TUid id; - - INFO_PRINTF1(_L("execute CFontStore::AddFileL(const TDesC&)")); - TRAPD(err, id = iFntStore->AddFileL(name)); - - if (err != KErrNone) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - else - { - iFile.AppendL(name); - iId.AppendL(id.iUid); - } - } - } - -TBool CT_DataFontStore::FindIdByName(const TDesC& aName, TInt& aId) - { - TBool found = EFalse; - for (TInt index = 0; index < iFile.Count(); ++index) - { - if (iFile[index] == aName) - { - aId = iId[index]; - iFile.Remove(index); - iId.Remove(index); - found = ETrue; - break; - } - } - return found; - } - -void CT_DataFontStore::DoCmdRemoveFile(const TDesC& aSection) - { - TBool dataOk = ETrue; - TInt id; - - // Get the uid - if (!GetIntFromConfig(aSection, KFldId(), id)) - { - TPtrC file; - - // No uid provided. Get file name instead. - if (!GetStringFromConfig(aSection, KFldFontFile(), file)) - { - dataOk = EFalse; - } - else - { - // Get uid by file name. - if (!FindIdByName(file, id)) - { - dataOk = EFalse; - } - } - } - - if (dataOk) - { - INFO_PRINTF1(_L("execute CFontStore::RemoveFile(TUid)")); - iFntStore->RemoveFile(TUid::Uid(id)); - } - else - { - INFO_PRINTF1(_L("execute CFontStore::RemoveFile(TUid::Null())")); - iFntStore->RemoveFile(TUid::Null()); - } - } - -void CT_DataFontStore::DoCmdDefaultBitmapType(const TDesC& aSection) - { - TGlyphBitmapType actual = iFntStore->DefaultBitmapType(); - INFO_PRINTF2(_L("execute CFontStore::DefaultBitmapType() = %d"), actual); - - TGlyphBitmapType expected; - if(CT_GraphicsUtil::ReadGlyphBitmapType(*this, aSection, KFldExpectedGlyphBitmapType(), expected)) - { - if (actual != expected) - { - ERR_PRINTF3(_L("The expected result %d is not equal to the actual result %d!"), expected, actual); - SetBlockResult(EFail); - } - } - } - -void CT_DataFontStore::DoCmdDeleteSessionCache(const TDesC& aSection) - { - TInt handle; - - if (!GetIntFromConfig(aSection, KFldSessionHandle, handle)) - { - ERR_PRINTF2(KLogMissingParameter, &KFldSessionHandle()); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("execute CFontStore::DeleteSessionCache(TInt)")); - iFntStore->DeleteSessionCache(handle); - } - } - -void CT_DataFontStore::DoCmdFontHeightInPixels(const TDesC& aSection) - { - TInt tfindex; - TInt heightindex; - TBool dataOk = ETrue; - - if (!GetIntFromConfig(aSection, KFldTypefaceIndex, tfindex)) - { - dataOk = EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldTypefaceIndex()); - SetBlockResult(EFail); - } - - if (!GetIntFromConfig(aSection, KFldHeightIndex, heightindex)) - { - dataOk = EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldHeightIndex()); - SetBlockResult(EFail); - } - - if (dataOk) - { - TInt actual = iFntStore->FontHeightInPixels(tfindex, heightindex); - INFO_PRINTF2(_L("execute CFontStore::FontHeightInPixels(TInt, TInt) = %d"), actual); - - TInt expected; - if (GetIntFromConfig(aSection, KFldExpectedHeight, expected)) - { - if (expected != actual) - { - ERR_PRINTF3(_L("The expected result %d is not equal to the actual result %d!"), expected, actual); - SetBlockResult(EFail); - } - } - } - } - -void CT_DataFontStore::DoCmdGetFontByIdL(const TDesC& aSection) - { - TBool dataOk = ETrue; - TAlgStyle* algStyle = NULL; - TPtrC wrapperName; - TInt fontUid; - - // get font uid - if (!GetIntFromConfig(aSection, KFldFontUid(), fontUid)) - { - dataOk = EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldFontUid()); - SetBlockResult(EFail); - } - // get algorithmic style - if (!CT_GraphicsUtil::GetAlgStyleL(*this, aSection, KFldAlgStyle(), algStyle) && NULL == algStyle) - { - dataOk = EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldAlgStyle()); - SetBlockResult(EFail); - } - if (!GetStringFromConfig(aSection, KFldFont, wrapperName)) - { - dataOk = EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldFont()); - SetBlockResult(EFail); - } - - if (dataOk) - { - CFont* font = NULL; - INFO_PRINTF1(_L("execute CFontStore::GetFontById(CFont *&, TUid, const TAlgStyle&)")); - TInt err = iFntStore->GetFontById(font, TUid::Uid(fontUid), *algStyle); - - if (KErrNone != err) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - else - { - SetDataObjectL(wrapperName, font); - } - } - } - -void CT_DataFontStore::DoCmdGetNearestFontToDesignHeightInPixelsL( - const TDesC& aSection) - { - TPtrC wrapperName; - - if (!GetStringFromConfig(aSection, KFldFont, wrapperName)) - { - ERR_PRINTF2(KLogMissingParameter, &KFldFont()); - SetBlockResult(EFail); - } - else - { - TFontSpec fontSpec; - TInt err; - CFont* font; - TBool fxnCalled = EFalse; - - if (GetFontSpecFromConfig(aSection, KFldFont, fontSpec)) - { - fxnCalled = ETrue; - INFO_PRINTF1(_L("execute CFontStore::GetNearestFontToDesignHeightInPixels(CFont*&, const TFontSpec&)")); - err = iFntStore->GetNearestFontToDesignHeightInPixels(font, fontSpec); - } - else if (GetFontSpecFromConfig(aSection, KFldOpenFont, fontSpec)) - { - fxnCalled = ETrue; - INFO_PRINTF1(_L("execute CFontStore::GetNearestFontToDesignHeightInPixels(CFont*&, const TOpenFontSpec&)")); - err = iFntStore->GetNearestFontToDesignHeightInPixels(font, TOpenFontSpec(fontSpec)); - } - else - { - ERR_PRINTF2(KLogMissingParameter, &KLogFontSpec()); - SetBlockResult(EFail); - } - - if (fxnCalled) - { - if (err != KErrNone) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - else - { - SetDataObjectL(wrapperName, font); - } - } - } - } - -TBool CT_DataFontStore::DoCmdGetNearestFontToDesignHeightInTwipsL( - const TDesC& aSection) - { - TPtrC wrapperName; - - if (!GetStringFromConfig(aSection, KFldFont, wrapperName)) - { - ERR_PRINTF2(KLogMissingParameter, &KFldFont()); - SetBlockResult(EFail); - } - else - { - TFontSpec fontSpec; - TInt err; - CFont* font; - - if (!GetFontSpecFromConfig(aSection, KFldOpenFont, fontSpec)) - { - return EFalse; - } - else - { - INFO_PRINTF1(_L("execute CFontStore::GetNearestFontToDesignHeightInTwips(CFont*&, const TOpenFontSpec&)")); - err = iFntStore->GetNearestFontToDesignHeightInTwips(font, TOpenFontSpec(fontSpec)); - if (err != KErrNone) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - else - { - SetDataObjectL(wrapperName, font); - } - } - } - return ETrue; - } - -void CT_DataFontStore::DoCmdGetNearestFontToMaxHeightInPixelsL(const TDesC& aSection) - { - TBool dataOk = ETrue; - - TPtrC wrapperName; - if (!GetStringFromConfig(aSection, KFldFont, wrapperName)) - { - dataOk = EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldFont()); - SetBlockResult(EFail); - } - - TInt maxHeight; - if (!GetIntFromConfig(aSection, KFldMaxHeight, maxHeight)) - { - dataOk = EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldMaxHeight()); - SetBlockResult(EFail); - } - - if (dataOk) - { - TFontSpec fontSpec; - TInt err; - CFont* font; - TBool fxnCalled = EFalse; - - if (GetFontSpecFromConfig(aSection, KFldFont, fontSpec)) - { - fxnCalled = ETrue; - INFO_PRINTF1(_L("execute CFontStore::GetNearestFontToMaxHeightInPixels(CFont*&, const TFontSpec&, TInt)")); - err = iFntStore->GetNearestFontToMaxHeightInPixels(font, fontSpec, maxHeight); - } - else if (GetFontSpecFromConfig(aSection, KFldOpenFont, fontSpec)) - { - fxnCalled = ETrue; - INFO_PRINTF1(_L("execute CFontStore::GetNearestFontToMaxHeightInPixels(CFont*&, const TOpenFontSpec&, TInt)")); - err = iFntStore->GetNearestFontToMaxHeightInPixels(font, TOpenFontSpec(fontSpec), maxHeight); - } - else - { - ERR_PRINTF2(KLogMissingParameter, &KLogFontSpec()); - SetBlockResult(EFail); - } - - if (fxnCalled) - { - if (err != KErrNone) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - else - { - SetDataObjectL(wrapperName, font); - } - } - } - } - -TBool CT_DataFontStore::DoCmdGetNearestFontToMaxHeightInTwipsL(const TDesC& aSection) - { - TBool dataOk = ETrue; - TPtrC wrapperName; - if (!GetStringFromConfig(aSection, KFldFont, wrapperName)) - { - dataOk = EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldFont()); - SetBlockResult(EFail); - } - - TInt maxHeight; - if (!GetIntFromConfig(aSection, KFldMaxHeight, maxHeight)) - { - dataOk = EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldMaxHeight()); - SetBlockResult(EFail); - } - - TFontSpec fontSpec; - if (!GetFontSpecFromConfig(aSection, KFldOpenFont, fontSpec)) - { - return EFalse; - } - - if (dataOk) - { - TInt err; - CFont* font; - - INFO_PRINTF1(_L("execute CFontStore::GetNearestFontToMaxHeightInTwips(CFont*&, const TOpenFontSpec&, TInt)")); - err = iFntStore->GetNearestFontToMaxHeightInTwips(font, TOpenFontSpec(fontSpec), maxHeight); - if (err != KErrNone) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - else - { - SetDataObjectL(wrapperName, font); - } - } - return ETrue; - } - -void CT_DataFontStore::DoCmdInstallRasterizerL(const TDesC& aSection) - { - COpenFontRasterizer* rasterizer = NULL; - TInt err; - TBool useDummy; - - if (!GetBoolFromConfig(aSection, KFldUseTestClass, useDummy)) - { - ERR_PRINTF2(KLogMissingParameter, &KFldUseTestClass()); - SetBlockResult(EFail); - } - else - { - if (useDummy) - { - TRAP(err, rasterizer = CTestRasterizer::NewL()); - if (err != KErrNone) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - return; - } - } - else - { - CT_GraphicsUtil::GetRasterizerL(*this, aSection, KFldRasterizer, rasterizer); - } - - if (rasterizer == NULL) - { - INFO_PRINTF1(_L("execute CFontStore::InstallRasterizerL(NULL)")); - } - else - { - INFO_PRINTF1(_L("execute CFontStore::InstallRasterizerL(COpenFontRasterizer*)")); - } - TRAP(err, iFntStore->InstallRasterizerL(rasterizer)); - if (err != KErrNone) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - } - } - -void CT_DataFontStore::DoCmdInstallShaperFactoryL(const TDesC& aSection) - { - CShaperFactory* shaper = NULL; - TInt err; - TBool useDummy; - - if (!GetBoolFromConfig(aSection, KFldUseTestClass, useDummy)) - { - ERR_PRINTF2(KLogMissingParameter, &KFldUseTestClass()); - SetBlockResult(EFail); - } - else - { - if (useDummy) - { - TRAP(err, shaper = CTestShaperFactory::NewL()); - if (err != KErrNone) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - return; - } - } - else - { - CT_GraphicsUtil::GetShaperFactoryL(*this, aSection, KFldShaperFactory, shaper); - } - - if (shaper == NULL) - { - INFO_PRINTF1(_L("execute CFontStore::InstallShaperFactoryL(NULL)")); - } - else - { - INFO_PRINTF1(_L("execute CFontStore::InstallShaperFactoryL(CShaperFactory*)")); - } - TRAP(err, iFntStore->InstallShaperFactoryL(shaper)); - if (err != KErrNone) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - } - } - -void CT_DataFontStore::DoCmdSetDefaultBitmapType(const TDesC& aSection) - { - TGlyphBitmapType bmptype; - - if (!CT_GraphicsUtil::ReadGlyphBitmapType(*this, aSection, KFldGlyphBitmapType(), bmptype)) - { - ERR_PRINTF2(KLogMissingParameter, &KFldGlyphBitmapType()); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("execute CFontStore::SetDefaultBitmapType(TGlyphBitmapType)")); - iFntStore->SetDefaultBitmapType(bmptype); - } - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fntstore/src/T_DataLinkedTypefaceSpecification.cpp --- a/graphicsapitest/graphicssvs/fntstore/src/T_DataLinkedTypefaceSpecification.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,164 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataLinkedTypefaceSpecification -*/ - -#include "T_DataLinkedTypefaceSpecification.h" - - -/*@{*/ -/// Parameters -_LIT(KFldTypefaceName, "typefacename"); - -/// Commands -_LIT(KCmdNewL, "NewL"); -_LIT(KCmdDestructor, "~"); - -/// Logs -_LIT(KLogMissingParameter, "Missing parameter '%S'"); -_LIT(KLogError, "Error=%d"); -/*@}*/ - - -/** -* Two phase constructor -*/ -CT_DataLinkedTypefaceSpecification* CT_DataLinkedTypefaceSpecification::NewL() - { - CT_DataLinkedTypefaceSpecification* ret = new (ELeave) CT_DataLinkedTypefaceSpecification(); - CleanupStack::PushL(ret); - ret->ConstructL(); - CleanupStack::Pop(ret); - return ret; - } -/** -* Protected second phase construction -*/ -void CT_DataLinkedTypefaceSpecification::ConstructL() - { - } - -/** -* Protected constructor. First phase construction -*/ -CT_DataLinkedTypefaceSpecification::CT_DataLinkedTypefaceSpecification() -: CDataWrapperBase() -, iSpec(NULL) - { - } - -/** -* Destructor. -*/ -CT_DataLinkedTypefaceSpecification::~CT_DataLinkedTypefaceSpecification() - { - DestroyData(); - } - - -/** -* cleanup implementation. -*/ -void CT_DataLinkedTypefaceSpecification::DestroyData() - { - delete iSpec; - iSpec = NULL; - } - -TAny* CT_DataLinkedTypefaceSpecification::GetObject() - { - return iSpec; - } - -void CT_DataLinkedTypefaceSpecification::SetObjectL(TAny* aObject) - { - DestroyData(); - iSpec = static_cast (aObject); - } - -void CT_DataLinkedTypefaceSpecification::DisownObjectL() - { - iSpec = NULL; - } - -/** -* Process a command read from the ini file -* -* @param aDataWrapper test step requiring command to be processed -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* -* @return ETrue if the command is processed -*/ -TBool CT_DataLinkedTypefaceSpecification::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt /*aAsyncErrorIndex*/) - { - TBool retVal = ETrue; - - if (aCommand == KCmdNewL) - { - DoCmdNewL(aSection); - } - else if (aCommand == KCmdDestructor) - { - DoCmdDestructor(); - } - else - { - retVal=EFalse; - } - - return retVal; - } - - -////////////////// COMMANDS IMPLEMENTATION //////////////////////// - -/** Creates an instance of CT_DataLinkedTypefaceSpecification class */ -void CT_DataLinkedTypefaceSpecification::DoCmdNewL(const TDesC& aSection) - { - // cleanup if any - DestroyData(); - - // call new operator - TPtrC name; - if (!GetStringFromConfig(aSection, KFldTypefaceName, name)) - { - ERR_PRINTF2(KLogMissingParameter, &KFldTypefaceName); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("execute CLinkedTypefaceSpecification::NewLC")); - TRAPD(err, iSpec = CLinkedTypefaceSpecification::NewLC(name); CleanupStack::Pop(iSpec)); - if (err != KErrNone) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - } - } - -void CT_DataLinkedTypefaceSpecification::DoCmdDestructor() - { - // cleanup if any - DestroyData(); - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fntstore/src/T_DataOpenFontGlyphData.cpp --- a/graphicsapitest/graphicssvs/fntstore/src/T_DataOpenFontGlyphData.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,168 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataOpenFontGlyphData -*/ - -#include "T_DataOpenFontGlyphData.h" - - -/*@{*/ -/// Parameters -_LIT(KFldBufferSize, "buffer_size"); - -/// Commands -_LIT(KCmdNew, "New"); -_LIT(KCmdDestructor, "~"); - -/// Logs -_LIT(KLogMissingParameter, "Missing parameter '%S'"); - -/*@}*/ - -/** -* Two phase constructor -*/ -CT_DataOpenFontGlyphData* CT_DataOpenFontGlyphData::NewL() - { - CT_DataOpenFontGlyphData* ret = new (ELeave) CT_DataOpenFontGlyphData(); - CleanupStack::PushL(ret); - ret->ConstructL(); - CleanupStack::Pop(ret); - return ret; - } - - -/** -* Protected constructor. First phase construction -*/ -CT_DataOpenFontGlyphData::CT_DataOpenFontGlyphData() -: CDataWrapperBase() -, iGlyphData(NULL) - { - } - - -/** -* Protected second phase construction -*/ -void CT_DataOpenFontGlyphData::ConstructL() - { - } - - -/** -* Destructor. -*/ -CT_DataOpenFontGlyphData::~CT_DataOpenFontGlyphData() - { - if (iGlyphData != NULL) - DestroyData(); - } - - -/** -* cleanup implementation. -*/ -void CT_DataOpenFontGlyphData::DestroyData() - { - User::Heap().Free(iGlyphData); - iGlyphData = NULL; - } - -TAny* CT_DataOpenFontGlyphData::GetObject() - { - return iGlyphData; - } - -void CT_DataOpenFontGlyphData::SetObjectL(TAny* aObject) - { - DestroyData(); - iGlyphData = static_cast (aObject); - } - -void CT_DataOpenFontGlyphData::DisownObjectL() - { - iGlyphData = NULL; - } - -/** -* Process a command read from the ini file -* -* @param aDataWrapper test step requiring command to be processed -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* -* @return ETrue if the command is processed -*/ -TBool CT_DataOpenFontGlyphData::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt /*aAsyncErrorIndex*/) - { - TBool retVal = ETrue; - - if (aCommand == KCmdNew) - { - DoCmdNew(aSection); - } - else if (aCommand == KCmdDestructor) - { - DoCmdDestructor(); - } - else - { - retVal=EFalse; - } - - return retVal; - } - - -////////////////// COMMANDS IMPLEMENTATION //////////////////////// - -/** Creates an instance of TOpenFontGlyphData structure */ -void CT_DataOpenFontGlyphData::DoCmdNew(const TDesC& aSection) - { - INFO_PRINTF1(_L("Creates an object of TOpenFontGlyphData")); - - // cleanup if any - DestroyData(); - - TInt bufsize; - if (!GetIntFromConfig(aSection, KFldBufferSize, bufsize)) - { - ERR_PRINTF2(KLogMissingParameter, &KFldBufferSize()); - SetBlockResult(EFail); - } - - // call TOpenFontGlyphData::New() - INFO_PRINTF1(_L("execute TOpenFontGlyphData::New(RHeap*, TInt)")); - iGlyphData = TOpenFontGlyphData::New(&(User::Heap()), bufsize); - - if (iGlyphData == NULL) - { - ERR_PRINTF1(_L("No enough memory")); - SetError(KErrNoMemory); - } - } - -void CT_DataOpenFontGlyphData::DoCmdDestructor() - { - DestroyData(); - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fntstore/src/T_DataOpenFontRasterizerContext.cpp --- a/graphicsapitest/graphicssvs/fntstore/src/T_DataOpenFontRasterizerContext.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,238 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataOpenFontRasterizerContext -*/ - -#include "T_DataOpenFontRasterizerContext.h" -#include "T_GraphicsUtil.h" - - -/*@{*/ -/// Parameters -_LIT(KFldGlyphData, "glyphdata"); -_LIT(KFldBit, "bit"); -_LIT(KFldByte, "byte"); - -/// Commands -_LIT(KCmdNew, "new"); -_LIT(KCmdEndGlyph, "EndGlyph"); -_LIT(KCmdStartGlyph, "StartGlyph"); -_LIT(KCmdWriteGlyphBit, "WriteGlyphBit"); -_LIT(KCmdWriteGlyphByte, "WriteGlyphByte"); -_LIT(KCmdDestructor, "~"); - -/// Logs -_LIT(KLogMissingParameter, "Missing parameter '%S'"); - -/*@}*/ - - -/** -* Two phase constructor -*/ -CT_DataOpenFontRasterizerContext* CT_DataOpenFontRasterizerContext::NewL() - { - CT_DataOpenFontRasterizerContext* ret = new (ELeave) CT_DataOpenFontRasterizerContext(); - CleanupStack::PushL(ret); - ret->ConstructL(); - CleanupStack::Pop(ret); - return ret; - } - - -/** -* Protected constructor. First phase construction -*/ -CT_DataOpenFontRasterizerContext::CT_DataOpenFontRasterizerContext() -: CDataWrapperBase() -, iRasterizerContext(NULL) - { - } - - -/** -* Protected second phase construction -*/ -void CT_DataOpenFontRasterizerContext::ConstructL() - { - } - - -/** -* Destructor. -*/ -CT_DataOpenFontRasterizerContext::~CT_DataOpenFontRasterizerContext() - { - DestroyData(); - } - - -/** -* cleanup implementation. -*/ -void CT_DataOpenFontRasterizerContext::DestroyData() - { - delete iRasterizerContext; - iRasterizerContext = NULL; - } - -TAny* CT_DataOpenFontRasterizerContext::GetObject() - { - return iRasterizerContext; - } - -void CT_DataOpenFontRasterizerContext::SetObjectL(TAny* aObject) - { - DestroyData(); - iRasterizerContext = static_cast (aObject); - } - -void CT_DataOpenFontRasterizerContext::DisownObjectL() - { - iRasterizerContext = NULL; - } - -/** -* Process a command read from the ini file -* -* @param aDataWrapper test step requiring command to be processed -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* -* @return ETrue if the command is processed -*/ -TBool CT_DataOpenFontRasterizerContext::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt /*aAsyncErrorIndex*/) - { - TBool retVal = ETrue; - - if (aCommand == KCmdNew) - { - DoCmdNew(); - } - else if (aCommand == KCmdEndGlyph) - { - DoCmdEndGlyph(); - } - else if (aCommand == KCmdStartGlyph) - { - DoCmdStartGlyphL(aSection); - } - else if (aCommand == KCmdWriteGlyphBit) - { - DoCmdWriteGlyphBit(aSection); - } - else if (aCommand == KCmdWriteGlyphByte) - { - DoCmdWriteGlyphByte(aSection); - } - else if (aCommand == KCmdDestructor) - { - DoCmdDestructor(); - } - else - { - retVal=EFalse; - } - - return retVal; - } - - -////////////////// COMMANDS IMPLEMENTATION //////////////////////// - -/** Creates an instance of COpenFontRasterizerContext structure */ -void CT_DataOpenFontRasterizerContext::DoCmdNew() - { - INFO_PRINTF1(_L("Creates an instance of COpenFontRasterizerContext")); - - // cleanup if any - DestroyData(); - - // call new operator - TRAPD(err, iRasterizerContext = new (ELeave) COpenFontRasterizerContext()); - - // check error code - if (err != KErrNone) - { - ERR_PRINTF2(_L("Error creating an instance: %d"), err); - SetError(err); - } - } - -void CT_DataOpenFontRasterizerContext::DoCmdEndGlyph() - { - INFO_PRINTF1(_L("execute COpenFontRasterizerContext::EndGlyph()")); - iRasterizerContext->EndGlyph(); - } - -void CT_DataOpenFontRasterizerContext::DoCmdStartGlyphL(const TDesC& aSection) - { - TOpenFontGlyphData* glyphData= NULL; - - if (!CT_GraphicsUtil::GetOpenFontGlyphDataL(*this, aSection, KFldGlyphData, glyphData)) - { - ERR_PRINTF2(KLogMissingParameter, &KFldGlyphData()); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("execute COpenFontRasterizerContext::StartGlyph(TOpenFontGlyphData*)")); - iRasterizerContext->StartGlyph(glyphData); - } - } - -void CT_DataOpenFontRasterizerContext::DoCmdWriteGlyphBit(const TDesC& aSection) - { - TInt bit; - - if (!GetIntFromConfig(aSection, KFldBit, bit)) - { - ERR_PRINTF2(KLogMissingParameter, &KFldBit()); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("execute COpenFontRasterizerContext::WriteGlyphBit(TInt)")); - iRasterizerContext->WriteGlyphBit(bit); - } - } - -void CT_DataOpenFontRasterizerContext::DoCmdWriteGlyphByte(const TDesC& aSection) - { - TInt byte; - - if (!GetIntFromConfig(aSection, KFldByte, byte)) - { - ERR_PRINTF2(KLogMissingParameter, &KFldByte()); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("execute COpenFontRasterizerContext::WriteGlyphByte(TInt)")); - iRasterizerContext->WriteGlyphByte(byte); - } - } - -void CT_DataOpenFontRasterizerContext::DoCmdDestructor() - { - DestroyData(); - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fntstore/src/T_GraphicsFntstoreAPIServer.cpp --- a/graphicsapitest/graphicssvs/fntstore/src/T_GraphicsFntstoreAPIServer.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,170 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -#include "T_GraphicsFntstoreAPIServer.h" -#include "T_DataAlgStyle.h" -#include "T_DataFontStore.h" -#include "T_DataBitmapFont.h" -#include "T_DataOpenFontGlyphData.h" -#include "T_DataOpenFontRasterizerContext.h" - -// EPOC Includes -#include - -/** - * @enum Constant Literals used. - */ -/*@{*/ -// Graphics Fntstore API - -_LIT(KTAlgStyle, "TAlgStyle"); -_LIT(KCFontStore, "CFontStore"); -_LIT(KCBitmapFont, "CBitmapFont"); -_LIT(KTOpenFontGlyphData, "TOpenFontGlyphData"); -_LIT(KCOpenFontRasterizerContext, "COpenFontRasterizerContext"); -/*@}*/ - - -inline CDataWrapper* CT_GraphicsFntstoreAPIServer::CT_GraphicsFntstoreAPIBlock::CreateDataL( const TDesC& aData ) - { - CDataWrapper* wrapper = NULL; - - if (aData == KCFontStore) - { - wrapper = CT_DataFontStore::NewL(); - } - else if (aData == KCBitmapFont) - { - wrapper = CT_DataBitmapFont::NewL(); - } - else if (aData == KTAlgStyle) - { - wrapper = CT_DataAlgStyle::NewL(); - } - else if (aData == KTOpenFontGlyphData) - { - wrapper = CT_DataOpenFontGlyphData::NewL(); - } - else if (aData == KCOpenFontRasterizerContext) - { - wrapper = CT_DataOpenFontRasterizerContext::NewL(); - } - - return wrapper; - } - -CT_GraphicsFntstoreAPIServer* CT_GraphicsFntstoreAPIServer::NewL() -/** - * @return - Instance of the test server - * Same code for Secure and non-secure variants - * Called inside the MainL() function to create and start the - * CTestServer derived server. - */ - { - CT_GraphicsFntstoreAPIServer* server = new (ELeave) CT_GraphicsFntstoreAPIServer(); - CleanupStack::PushL(server); - // CServer base class call - server->ConstructL(); /*Parsing the server name from the file name*/ - CleanupStack::Pop(server); - return server; - } - - -TInt LoadDrivers() - { -#ifdef __WINS__ - #define KPDDName _L("ECDRV") - #define KLDDName _L("ECOMM") -#else - #define KPDDName _L("EUART1") - #define KLDDName _L("ECOMM") -#endif - TInt rerr = KErrNone; - - rerr = StartC32(); - if( rerr!=KErrNone && rerr!=KErrAlreadyExists ) - { - return rerr; - } - - rerr = User::LoadPhysicalDevice(KPDDName); - if(rerr != KErrNone && rerr != KErrAlreadyExists) - { - return rerr; - } - rerr = User::LoadLogicalDevice(KLDDName); - if(rerr != KErrNone && rerr != KErrAlreadyExists) - { - return rerr; - } - return KErrNone; - } - -LOCAL_C void MainL() -/** - * Secure variant - * Much simpler, uses the new Rendezvous() call to sync with the client - */ - { -#if (defined __DATA_CAGING__) - RProcess().DataCaging(RProcess::EDataCagingOn); - RProcess().SecureApi(RProcess::ESecureApiOn); -#endif - CActiveScheduler* sched=NULL; - sched=new(ELeave) CActiveScheduler; - CActiveScheduler::Install(sched); - CT_GraphicsFntstoreAPIServer* server = NULL; - // Create the CTestServer derived server - TRAPD(err,server = CT_GraphicsFntstoreAPIServer::NewL()); - if(!err) - { - // Sync with the client and enter the active scheduler - RProcess::Rendezvous(KErrNone); - sched->Start(); - } - delete server; - delete sched; - } - -GLDEF_C TInt E32Main() -/** - * @return - Standard Epoc error code on process exit - * Secure variant only - * Process entry point. Called by client using RProcess API - */ - { - TInt rerr = LoadDrivers(); - if( rerr != KErrNone ) - { - return rerr; - } - - __UHEAP_MARK; - CTrapCleanup* cleanup = CTrapCleanup::New(); - if(cleanup == NULL) - { - return KErrNoMemory; - } -#if (defined TRAP_IGNORE) - TRAP_IGNORE(MainL()); -#else - TRAPD(err,MainL()); -#endif - delete cleanup; - __UHEAP_MARKEND; - return KErrNone; - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fntstore/src/T_TestOpenFont.cpp --- a/graphicsapitest/graphicssvs/fntstore/src/T_TestOpenFont.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,211 +0,0 @@ -// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// Creates a dummy rasterizer and a dummy shaper for FontStore APIs testing. -// -// - -#include -#include -#include "T_TestOpenFont.h" - -CTestRasterizer* CTestRasterizer::NewL() - { - return new(ELeave) CTestRasterizer; - } - -COpenFontFile* CTestRasterizer::NewFontFileL(TInt aUid,const TDesC& aFileName,RFs& /*aFileSession*/) - { - TParse parse; - parse.Set(aFileName, NULL, NULL); - - if (parse.Name().CompareF(KTestFont1) == 0 || parse.Name().CompareF(KTestFont2) == 0) - { - // create a dummy font. - return CTestFontFile::NewL(aUid,aFileName); - } - else - { - return NULL; - } - } - -CTestFontFile::CTestFontFile(TInt aUid, const TDesC& aFileName) -: COpenFontFile(aUid, aFileName) - { - } - -CTestFontFile* CTestFontFile::NewL(TInt aUid, const TDesC& aFileName) - { - CTestFontFile* self = new(ELeave)CTestFontFile(aUid,aFileName); - CleanupStack::PushL(self); - self->ConstructL(); - CleanupStack::Pop(); - return self; - } - -TBool CTestFontFile::GetNearestFontHelper(const TOpenFontSpec& aDesiredFontSpec, TInt aPixelWidth, TInt aPixelHeight, - TInt& aFaceIndex, TOpenFontSpec& aActualFontSpec) const - { - return COpenFontFile::GetNearestFontHelper(aDesiredFontSpec, aPixelWidth, aPixelHeight, aFaceIndex, aActualFontSpec); - } - -void CTestFontFile::ConstructL() - { - const TDesC& filename = FileName(); - TOpenFontFaceAttrib attrib; - - if (filename.CompareF(KTestFont1) == 0) - attrib.SetFullName(_L("Test Font1")); - else if (filename.CompareF(KTestFont2) == 0) - { - attrib.SetFullName(_L("Test Font2")); - attrib.SetBold(TRUE); - attrib.SetItalic(TRUE); - } - attrib.SetFamilyName(_L("Test")); - attrib.SetLocalFullName(attrib.FullName()); - attrib.SetCoverage(TOpenFontFaceAttrib::ELatinSet); - attrib.SetMinSizeInPixels(8); - AddFaceL(attrib); - } - -void CTestFontFile::GetNearestFontInPixelsL(RHeap* aHeap,COpenFontSessionCacheList* aSessionCacheList, - const TOpenFontSpec& aDesiredFontSpec,TInt aPixelWidth,TInt aPixelHeight, - COpenFont*& aFont,TOpenFontSpec& aActualFontSpec) - { - aFont = NULL; - TInt face_index = 0; - if (GetNearestFontHelper(aDesiredFontSpec,aPixelWidth,aPixelHeight,face_index,aActualFontSpec)) - { - aFont = CTestFont::NewL(aHeap,aSessionCacheList,this,aActualFontSpec.Height()); - } - } - -void CTestFontFile::GetNearestFontToDesignHeightInPixelsL(RHeap* aHeap,COpenFontSessionCacheList* aSessionCacheList, - const TOpenFontSpec& aDesiredFontSpec,TInt aPixelWidth,TInt aPixelHeight, - COpenFont*& aFont,TOpenFontSpec& aActualFontSpec) - { - aFont = NULL; - TInt face_index = 0; - if (GetNearestFontHelper(aDesiredFontSpec,aPixelWidth,aPixelHeight,face_index,aActualFontSpec)) - { - aFont = CTestFont::NewL(aHeap,aSessionCacheList,this,aActualFontSpec.Height()); - } - } - -void CTestFontFile::GetNearestFontToMaxHeightInPixelsL(RHeap* aHeap,COpenFontSessionCacheList* aSessionCacheList, - const TOpenFontSpec& aDesiredFontSpec,TInt aPixelWidth,TInt aPixelHeight, - COpenFont*& aFont,TOpenFontSpec& aActualFontSpec,TInt /*aMaxHeight*/) - { - aFont = NULL; - TInt face_index = 0; - if (GetNearestFontHelper(aDesiredFontSpec,aPixelWidth,aPixelHeight,face_index,aActualFontSpec)) - { - aFont = CTestFont::NewL(aHeap,aSessionCacheList,this,aActualFontSpec.Height()); - } - } - -TBool CTestFontFile::HasUnicodeCharacterL(TInt /*aFaceIndex*/,TInt /*aCode*/) const - { - // has no characters - return EFalse; - } - -CTestFont* CTestFont::NewL(RHeap* aHeap,COpenFontSessionCacheList* aSessionCacheList, - CTestFontFile* aFontFile,TInt aSizeInPixels) - { - CTestFont* f = (CTestFont*)aHeap->AllocL(sizeof(CTestFont)); - new(f) CTestFont(aHeap,aSessionCacheList,aFontFile,aSizeInPixels); - return f; - } - -CTestFont::CTestFont(RHeap* aHeap,COpenFontSessionCacheList* aSessionCacheList,CTestFontFile* aFontFile, - TInt aSizeInPixels): - COpenFont(aHeap,aSessionCacheList,aFontFile) - { - iMetrics.SetSize(aSizeInPixels); - iMetrics.SetAscent(aSizeInPixels * 3 / 4); - iMetrics.SetDescent(aSizeInPixels - iMetrics.Ascent()); - iMetrics.SetMaxHeight(iMetrics.Ascent()); - iMetrics.SetMaxDepth(iMetrics.Descent()); - iMetrics.SetMaxWidth(aSizeInPixels * 2); - } - -void CTestFont::RasterizeL(TInt /*aCode*/,TOpenFontGlyphData* /*aGlyphData*/) - { - // has no glyphs - User::Leave(KErrNotSupported); - } - - -CTestShaperFactory* CTestShaperFactory::NewL() - { - return new(ELeave) CTestShaperFactory; - } - -CTestShaperFactory::CTestShaperFactory() - { - } - -CTestShaperFactory::~CTestShaperFactory() - { - } - - -CShaper* CTestShaperFactory::NewShaperL(CBitmapFont* aBitmapfont, TInt aScript, TInt aLanguage, RHeap* aHeap) - { - return CTestShaper::NewL(aBitmapfont, aScript, aLanguage, aHeap); - } - -void* CShaperFactory::ExtendedInterface(TUid /*aInterfaceId*/) - { - return 0; - } - - -CShaper * CTestShaper::NewL(CBitmapFont* aBitmapfont, TInt aScript, TInt aLanguage, RHeap* aHeap) - { - CTestShaper* self = new(ELeave) CTestShaper(); - CleanupStack::PushL(self); - TInt error = self->ConstructL(aBitmapfont, aScript, aLanguage, aHeap); - if (KErrNone == error) - { - CleanupStack::Pop(); - return self; - } - else - { - CleanupStack::PopAndDestroy(); - return NULL; - } - } - - TInt CTestShaper::ConstructL(CBitmapFont* /*aBitmapfont*/, TInt /*aScript*/, TInt /*aLanguage*/, RHeap* /*aHeap*/ ) - { - return KErrNone; - } - -CTestShaper::CTestShaper() - { - } - - CTestShaper::~CTestShaper() - { - } - -TInt CTestShaper::ShapeText(TShapeHeader*& /*aOutput*/, const TInput& /*aInput*/, RHeap* /*aHeapForOutput*/) - { - return KErrNotSupported; - } - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fntstore/testdata/GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini --- a/graphicsapitest/graphicssvs/fntstore/testdata/GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,544 +0,0 @@ -#[include] -#file1 =\graphics\t_graphics.ini - -[fntStore] -name=fntstore - -[bmpFont] -name=bmpfont - -[algStyle] -name=algstyle - - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0001-AddFileL_command03] -fontfile =\graphics\fntstore\testfontws.gdr - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0001-GetFontById_command04] -fontuid =268458256 -alg_style =algStyle -font =bmpFont - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0001-BitmapEncoding_command05] -expected =0 - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0001-ReleaseFont_command06] -font_data_object_name =bmpFont - - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0002-InstallRasterizerL_command02] -usetestclass =TRUE - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0002-AddFileL_command03] -fontfile =\graphics\fntstore\dummy - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0002-GetNearestFontToDesignHeightInPixels_command04] -font =bmpFont -openfont_name =Test -openfont_height =30 - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0002-BitmapEncoding_command05] -expected =0 - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0002-ReleaseFont_command06] -font_data_object_name =bmpFont - - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0003-AddFileL_command03] -fontfile =\graphics\fntstore\testfontws.gdr - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0003-GetFontById_command04] -fontuid =268458256 -alg_style =algStyle -font =bmpFont - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0003-CharacterMetrics_command05] -code =0 -isnull =EFalse -charmetrics_ascent =10 -charmetrics_height =10 -charmetrics_move =8 -charmetrics_leftadjust =0 -charmetrics_rightadjust=1 - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0003-CharacterMetrics_command06] -code =33 -isnull =EFalse -charmetrics_ascent =10 -charmetrics_height =10 -charmetrics_move =3 -charmetrics_leftadjust =0 -charmetrics_rightadjust=1 - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0003-ReleaseFont_command07] -font_data_object_name =bmpFont - - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0004-AddFileL_command03] -fontfile =\graphics\fntstore\testfontws.gdr - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0004-GetFontById_command04] -fontuid =268458256 -alg_style =algStyle -font =bmpFont - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0004-CharacterMetrics_command05] -code =-1 -isnull =EFalse - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0004-CharacterMetrics_command06] -code =99999 -isnull =EFalse - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0004-ReleaseFont_command07] -font_data_object_name =bmpFont - - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0005-InstallRasterizerL_command02] -usetestclass =TRUE - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0005-AddFileL_command03] -fontfile =\graphics\fntstore\dummy - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0005-GetNearestFontToDesignHeightInPixels_command04] -font =bmpFont -openfont_name =Test -openfont_height =30 - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0005-CharacterMetrics_command05] -code =0 -isnull =ETrue - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0005-ReleaseFont_command06] -font_data_object_name =bmpFont - - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0006-InstallRasterizerL_command02] -usetestclass =TRUE - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0006-AddFileL_command03] -fontfile =\graphics\fntstore\dummy - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0006-GetNearestFontToDesignHeightInPixels_command04] -font =bmpFont -openfont_name =Test -openfont_height =30 - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0006-CharacterNeedsToBeRasterized_command05] -handle =1 -code =0 -expected =ETrue - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0006-ReleaseFont_command06] -font_data_object_name =bmpFont - - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0007-AddFileL_command03] -fontfile =\graphics\fntstore\testfontws.gdr - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0007-GetFontById_command04] -fontuid =268458256 -alg_style =algStyle -font =bmpFont - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0007-CharacterNeedsToBeRasterized_command05] -handle =1 -code =0 -expected =EFalse - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0007-ReleaseFont_command06] -font_data_object_name =bmpFont - - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0008-InstallRasterizerL_command02] -usetestclass =TRUE - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0008-AddFileL_command03] -fontfile =\graphics\fntstore\dummy - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0008-GetNearestFontToDesignHeightInPixels_command04] -font =bmpFont -openfont_name =Test -openfont_height =30 - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0008-CharacterNeedsToBeRasterized_command05] -handle =-1 -code =0 -expected =ETrue - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0008-CharacterNeedsToBeRasterized_command06] -handle =99999 -code =0 -expected =ETrue - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0008-ReleaseFont_command07] -font_data_object_name =bmpFont - - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0011-InstallRasterizerL_command02] -usetestclass =TRUE - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0011-AddFileL_command03] -fontfile =\graphics\fntstore\dummy - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0011-GetNearestFontToDesignHeightInPixels_command04] -font =bmpFont -openfont_name =Test -openfont_height =30 - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0011-GetCharacterData_command05] -handle =1 -code =0 -expected =EFalse -ofcharmetrics_glyphtype =EDefaultGlyphBitmap -ofcharmetrics_height =10 - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0011-ReleaseFont_command06] -font_data_object_name =bmpFont - - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0012-AddFileL_command03] -fontfile =\graphics\fntstore\testfontws.gdr - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0012-GetFontById_command04] -fontuid =268458256 -alg_style =algStyle -font =bmpFont - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0012-GetCharacterData_command05] -handle =1 -code =0 -expected =ETrue -isnull =EFalse -ofcharmetrics_glyphtype =EDefaultGlyphBitmap -ofcharmetrics_height =10 - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0012-GetCharacterData_command06] -handle =1 -code =330 -expected =ETrue -isnull =EFalse -ofcharmetrics_glyphtype =EDefaultGlyphBitmap -ofcharmetrics_height =12 - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0012-ReleaseFont_command07] -font_data_object_name =bmpFont - - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0013-AddFileL_command03] -fontfile =\graphics\fntstore\testfontws.gdr - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0013-GetFontById_command04] -fontuid =268458256 -alg_style =algStyle -font =bmpFont - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0013-GetCharacterData_command05] -handle =1 -code =-1 -expected =ETrue -isnull =EFalse - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0013-GetCharacterData_command06] -handle =1 -code =99999 -expected =ETrue -isnull =EFalse - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0013-ReleaseFont_command07] -font_data_object_name =bmpFont - - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0014-InstallRasterizerL_command02] -usetestclass =TRUE - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0014-AddFileL_command03] -fontfile =\graphics\fntstore\dummy - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0014-GetNearestFontToDesignHeightInPixels_command04] -font =bmpFont -openfont_name =Test -openfont_height =300 - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0014-GetFaceAttrib_command05] -expected =ETrue -offaceattrib_familyname =Test -offaceattrib_minsize =8 - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0014-ReleaseFont_command06] -font_data_object_name =bmpFont - - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0015-AddFileL_command03] -fontfile =\graphics\fntstore\testfontws.gdr - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0015-GetFontById_command04] -fontuid =268458256 -alg_style =algStyle -font =bmpFont - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0015-GetFaceAttrib_command05] -expected =EFalse - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0015-ReleaseFont_command06] -font_data_object_name =bmpFont - - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0016-InstallRasterizerL_command02] -usetestclass =TRUE - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0016-AddFileL_command03] -fontfile =\graphics\fntstore\dummy - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0016-GetNearestFontToDesignHeightInPixels_command04] -font =bmpFont -openfont_name =Test -openfont_height =300 - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0016-GetFontMetrics_command05] -expected =ETrue -ofmetrics_maxheight =225 -ofmetrics_size =300 - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0016-ReleaseFont_command06] -font_data_object_name =bmpFont - - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0017-AddFileL_command03] -fontfile =\graphics\fntstore\testfontws.gdr - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0017-GetFontById_command04] -fontuid =268458256 -alg_style =algStyle -font =bmpFont - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0017-GetFontMetrics_command05] -expected =EFalse - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0017-ReleaseFont_command06] -font_data_object_name =bmpFont - - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0021-InstallRasterizerL_command02] -usetestclass =TRUE - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0021-AddFileL_command03] -fontfile =\graphics\fntstore\dummy - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0021-GetNearestFontToDesignHeightInPixels_command04] -font =bmpFont -openfont_name =Test -openfont_height =30 - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0021-GlyphBitmapType_command05] -glyphtype =EMonochromeGlyphBitmap - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0021-ReleaseFont_command06] -font_data_object_name =bmpFont - - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0022-AddFileL_command03] -fontfile =\graphics\fntstore\testfontws.gdr - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0022-GetFontById_command04] -fontuid =268458256 -alg_style =algStyle -font =bmpFont - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0022-GlyphBitmapType_command05] -glyphtype =EDefaultGlyphBitmap - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0022-ReleaseFont_command06] -font_data_object_name =bmpFont - - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0023-InstallRasterizerL_command02] -usetestclass =TRUE - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0023-AddFileL_command03] -fontfile =\graphics\fntstore\dummy - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0023-GetNearestFontToDesignHeightInPixels_command04] -font =bmpFont -openfont_name =Test -openfont_height =30 - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0023-HasCharacterL_command05] -code =0 -expected =EFalse - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0023-ReleaseFont_command06] -font_data_object_name =bmpFont - - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0024-AddFileL_command03] -fontfile =\graphics\fntstore\testfontws.gdr - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0024-GetFontById_command04] -fontuid =268458256 -alg_style =algStyle -font =bmpFont - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0024-HasCharacterL_command05] -code =0 -expected =EFalse - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0024-ReleaseFont_command06] -font_data_object_name =bmpFont - - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0025-AddFileL_command03] -fontfile =\graphics\fntstore\testfontws.gdr - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0025-GetFontById_command04] -fontuid =268458256 -alg_style =algStyle -font =bmpFont - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0025-HasCharacterL_command05] -code =-1 -expected =EFalse - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0025-HasCharacterL_command06] -code =99999 -expected =EFalse - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0025-ReleaseFont_command07] -font_data_object_name =bmpFont - - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0026-InstallRasterizerL_command02] -usetestclass =TRUE - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0026-AddFileL_command03] -fontfile =\graphics\fntstore\dummy - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0026-GetNearestFontToDesignHeightInPixels_command04] -font =bmpFont -openfont_name =Test -openfont_height =30 - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0026-IsOpenFont_command05] -expected =ETrue - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0026-ReleaseFont_command06] -font_data_object_name =bmpFont - - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0027-AddFileL_command03] -fontfile =\graphics\fntstore\testfontws.gdr - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0027-GetFontById_command04] -fontuid =268458256 -alg_style =algStyle -font =bmpFont - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0027-IsOpenFont_command05] -expected =EFalse - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0027-ReleaseFont_command06] -font_data_object_name =bmpFont - - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0031-InstallRasterizerL_command02] -usetestclass =TRUE - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0031-AddFileL_command03] -fontfile =\graphics\fntstore\dummy - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0031-GetNearestFontToDesignHeightInPixels_command04] -font =bmpFont -openfont_name =Test -openfont_height =30 - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0031-OpenFont_command05] -isnull =EFalse - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0031-ReleaseFont_command06] -font_data_object_name =bmpFont - - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0032-AddFileL_command03] -fontfile =\graphics\fntstore\testfontws.gdr - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0032-GetFontById_command04] -fontuid =268458256 -alg_style =algStyle -font =bmpFont - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0032-OpenFont_command05] -isnull =ETrue - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0032-ReleaseFont_command06] -font_data_object_name =bmpFont - - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0033-InstallRasterizerL_command02] -usetestclass =TRUE - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0033-AddFileL_command03] -fontfile =\graphics\fntstore\dummy - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0033-GetNearestFontToDesignHeightInPixels_command04] -font =bmpFont -openfont_name =Test -openfont_height =30 - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0033-Rasterize_command05] -handle =1 -code =0 -expected =EFalse - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0033-ReleaseFont_command06] -font_data_object_name =bmpFont - - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0034-AddFileL_command03] -fontfile =\graphics\fntstore\testfontws.gdr - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0034-GetFontById_command04] -fontuid =268458256 -alg_style =algStyle -font =bmpFont - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0034-Rasterize_command05] -handle =1 -code =0 -expected =EFalse - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0034-ReleaseFont_command06] -font_data_object_name =bmpFont - - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0035-InstallRasterizerL_command02] -usetestclass =TRUE - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0035-AddFileL_command03] -fontfile =\graphics\fntstore\dummy - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0035-GetNearestFontToDesignHeightInPixels_command04] -font =bmpFont -openfont_name =Test -openfont_height =30 - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0035-UniqueFontId_command05] -expected =1 - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0035-ReleaseFont_command06] -font_data_object_name =bmpFont - - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0036-AddFileL_command03] -fontfile =\graphics\fntstore\testfontws.gdr - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0036-GetFontById_command04] -fontuid =268458256 -alg_style =algStyle -font =bmpFont - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0036-UniqueFontId_command05] -expected =1 - -[GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0036-ReleaseFont_command06] -font_data_object_name =bmpFont - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fntstore/testdata/GRAPHICS-FNTSTORE-FntStore-PublicApi.ini --- a/graphicsapitest/graphicssvs/fntstore/testdata/GRAPHICS-FNTSTORE-FntStore-PublicApi.ini Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,758 +0,0 @@ -[include] -file1 =\graphics\t_graphics.ini - -[fntStore] -name =fntstr - -[bitmapFont] -name =fnt - -[algStyle] -name =algstyle - - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0001-NewL_command01] -heapsize =65536 - - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0003-NewL_command01] -heapsize =0 - - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0004-NumTypefaces_command02] -typefaces =0 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0004-AddFileL_command03] -fontfile =\graphics\fntstore\testfontws.gdr - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0004-NumTypefaces_command04] -typefaces =8 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0004-RemoveFile_command05] -fontfile =\graphics\fntstore\testfontws.gdr - - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0005-AddFileL_command02] -fontfile =\graphics\fntstore\bad_entrysel - - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0006-NumTypefaces_command02] -typefaces =0 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0006-AddFileL_command03] -fontfile =\graphics\fntstore\testfontws.gdr - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0006-NumTypefaces_command04] -typefaces =8 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0006-InstallRasterizerL_command05] -usetestclass =TRUE - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0006-AddFileL_command06] -fontfile =\graphics\fntstore\dummy - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0006-NumTypefaces_command07] -typefaces =9 - - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0007-AddFileL_command02] -fontfile =\graphics\fntstore\testfontws.gdr - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0007-NumTypefaces_command03] -typefaces =8 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0007-AddFileL_command04] -fontfile =\graphics\fntstore\testfontws.gdr - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0007-NumTypefaces_command05] -typefaces =8 - - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0011-InstallRasterizerL_command02] -usetestclass =TRUE - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0011-AddFileL_command03] -fontfile =\graphics\fntstore\testfontws.gdr - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0011-NumTypefaces_command04] -typefaces =8 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0011-RemoveFile_command05] -fontfile =\graphics\fntstore\testfontws.gdr - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0011-NumTypefaces_command06] -typefaces =0 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0011-AddFileL_command07] -fontfile =\graphics\fntstore\testfontws.gdr - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0011-AddFileL_command08] -fontfile =\graphics\fntstore\dummy - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0011-NumTypefaces_command09] -typefaces =9 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0011-NumTypefaces_command11] -typefaces =0 - - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0012-NumTypefaces_command02] -typefaces =0 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0012-NumTypefaces_command04] -typefaces =0 - - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0013-InstallRasterizerL_command02] -usetestclass =TRUE - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0013-AddFileL_command03] -fontfile =\graphics\fntstore\testfontws.gdr - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0013-AddFileL_command04] -fontfile =\graphics\fntstore\dummy - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0013-NumTypefaces_command05] -typefaces =9 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0013-RemoveFile_command06] -fontfile =\graphics\fntstore\testfontws.gdr - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0013-NumTypefaces_command07] -typefaces =1 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0013-AddFileL_command08] -fontfile =\graphics\fntstore\testfontws.gdr - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0013-NumTypefaces_command09] -typefaces =9 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0013-NumTypefaces_command11] -typefaces =0 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0013-AddFileL_command12] -fontfile =\graphics\fntstore\testfontws.gdr - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0013-AddFileL_command13] -fontfile =\graphics\fntstore\testfontws.gdr - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0013-NumTypefaces_command14] -typefaces =8 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0013-RemoveFile_command15] -fontfile =\graphics\fntstore\testfontws.gdr - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0013-NumTypefaces_command16] -typefaces =8 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0013-NumTypefaces_command17] -typefaces =0 - - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0014-RemoveFile_command2] -id =10 - - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0015-AddFileL_command03] -fontfile =\graphics\fntstore\testfontws.gdr - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0015-GetFontById_command04] -fontuid =268458256 -alg_style =algStyle -font =bitmapFont - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0015-RemoveFile_command05] -fontfile =\graphics\fntstore\testfontws.gdr - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0015-InstallRasterizerL_command06] -usetestclass =TRUE - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0015-AddFileL_command07] -fontfile =\graphics\fntstore\dummy - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0015-GetNearestFontToDesignHeightInPixels_command07] -font =bitmapFont -font_name =Test -font_height =95 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0015-RemoveFile_command08] -fontfile =\graphics\fntstore\dummy - - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0021-InstallRasterizerL_command02] -usetestclass =TRUE - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0021-AddFileL_command03] -fontfile =\graphics\fntstore\dummy - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0021-GetNearestFontToDesignHeightInPixels_command04] -font =bitmapFont -font_name =Test -font_height =95 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0021-HeightInPixels_command05] -expected_result =95 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0021-ReleaseFont_command06] -font_data_object_name =bitmapFont - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0021-RemoveFile_command07] -fontfile =\graphics\fntstore\dummy - - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0022-InstallRasterizerL_command02] -usetestclass =TRUE - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0022-AddFileL_command03] -fontfile =\graphics\fntstore\dummy - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0022-GetNearestFontToDesignHeightInPixels_command04] -font =bitmapFont -font_name =NoSuchFont -font_height =95 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0022-FontSpecInTwips_command05] -expected_name =Test -expected_height =1131 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0022-HeightInPixels_command06] -expected_result =95 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0022-ReleaseFont_command07] -font_data_object_name =bitmapFont - - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0023-GetNearestFontToDesignHeightInPixels_command02] -font =bitmapFont -font_name =Test -font_height =95 - - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0031-InstallRasterizerL_command02] -usetestclass =TRUE - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0031-AddFileL_command03] -fontfile =\graphics\fntstore\dummy - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0031-GetNearestFontToMaxHeightInPixels_command04] -font =bitmapFont -maxheight =95 -font_name =Test -font_height =95 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0031-HeightInPixels_command05] -expected_result =95 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0031-ReleaseFont_command06] -font_data_object_name =bitmapFont - - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0032-InstallRasterizerL_command02] -usetestclass =TRUE - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0032-AddFileL_command03] -fontfile =\graphics\fntstore\dummy - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0032-GetNearestFontToMaxHeightInPixels_command04] -font =bitmapFont -maxheight =95 -font_name =NoSuchFont -font_height =95 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0032-FontSpecInTwips_command05] -expected_name =Test -expected_height =1131 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0032-HeightInPixels_command06] -expected_result =95 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0032-ReleaseFont_command07] -font_data_object_name =bitmapFont - - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0033-GetNearestFontToMaxHeightInPixels_command02] -font =bitmapFont -maxheight =95 -font_name =Test -font_height =95 - - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0034-GetNearestFontToMaxHeightInPixels_command02] -font =bitmapFont -maxheight =9999 -font_name =Test -font_height =95 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0034-GetNearestFontToMaxHeightInPixels_command03] -font =bitmapFont -maxheight =1 -font_name =Test -font_height =95 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0034-GetNearestFontToMaxHeightInPixels_command04] -font =bitmapFont -maxheight =-1 -font_name =Test -font_height =95 - - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0041-InstallRasterizerL_command02] -usetestclass =TRUE - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0041-AddFileL_command03] -fontfile =\graphics\fntstore\dummy - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0041-GetNearestFontToDesignHeightInTwips_command04] -font =bitmapFont -openfont_name =Test -openfont_height =95 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0041-FontSpecInTwips_command05] -expected_name =Test -expected_height =1131 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0041-ReleaseFont_command06] -font_data_object_name =bitmapFont - - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0042-InstallRasterizerL_command02] -usetestclass =TRUE - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0042-AddFileL_command03] -fontfile =\graphics\fntstore\dummy - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0042-GetNearestFontToDesignHeightInTwips_command04] -font =bitmapFont -openfont_name =NoSuchFont -openfont_height =95 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0042-FontSpecInTwips_command05] -expected_name =Test -expected_height =1131 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0042-ReleaseFont_command06] -font_data_object_name =bitmapFont - - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0043-GetNearestFontToDesignHeightInTwips_command02] -font =bitmapFont -openfont_name =Test -openfont_height =95 - - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0051-InstallRasterizerL_command02] -usetestclass =TRUE - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0051-AddFileL_command03] -fontfile =\graphics\fntstore\dummy - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0051-GetNearestFontToDesignHeightInPixels_command04] -font =bitmapFont -openfont_name =Test -openfont_height =95 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0051-HeightInPixels_command05] -expected_result =95 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0051-ReleaseFont_command06] -font_data_object_name =bitmapFont - - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0052-InstallRasterizerL_command02] -usetestclass =TRUE - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0052-AddFileL_command03] -fontfile =\graphics\fntstore\dummy - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0052-GetNearestFontToDesignHeightInPixels_command04] -font =bitmapFont -openfont_name =NoSuchFont -openfont_height =95 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0052-FontSpecInTwips_command05] -expected_name =Test -expected_height =1131 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0052-HeightInPixels_command06] -expected_result =95 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0052-ReleaseFont_command07] -font_data_object_name =bitmapFont - - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0053-GetNearestFontToDesignHeightInPixels_command02] -font =bitmapFont -openfont_name =Test -openfont_height =95 - - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0061-InstallRasterizerL_command02] -usetestclass =TRUE - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0061-AddFileL_command03] -fontfile =\graphics\fntstore\dummy - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0061-GetNearestFontToMaxHeightInTwips_command04] -font =bitmapFont -maxheight =95 -openfont_name =Test -openfont_height =95 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0061-FontSpecInTwips_command05] -expected_name =Test -expected_height =1131 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0061-ReleaseFont_command06] -font_data_object_name =bitmapFont - - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0062-InstallRasterizerL_command02] -usetestclass =TRUE - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0062-AddFileL_command03] -fontfile =\graphics\fntstore\dummy - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0062-GetNearestFontToMaxHeightInTwips_command04] -font =bitmapFont -maxheight =95 -openfont_name =NoSuchFont -openfont_height =95 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0062-FontSpecInTwips_command05] -expected_name =Test -expected_height =1131 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0062-ReleaseFont_command06] -font_data_object_name =bitmapFont - - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0063-GetNearestFontToMaxHeightInTwips_command02] -font =bitmapFont -maxheight =95 -openfont_name =Test -openfont_height =95 - - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0071-InstallRasterizerL_command02] -usetestclass =TRUE - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0071-AddFileL_command03] -fontfile =\graphics\fntstore\dummy - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0071-GetNearestFontToMaxHeightInPixels_command04] -font =bitmapFont -maxheight =95 -openfont_name =Test -openfont_height =95 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0071-HeightInPixels_command05] -expected_result =95 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0071-ReleaseFont_command06] -font_data_object_name =bitmapFont - - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0072-InstallRasterizerL_command02] -usetestclass =TRUE - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0072-AddFileL_command03] -fontfile =\graphics\fntstore\dummy - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0072-GetNearestFontToMaxHeightInPixels_command04] -font =bitmapFont -maxheight =95 -openfont_name =NoSuchFont -openfont_height =95 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0072-FontSpecInTwips_command05] -expected_name =Test -expected_height =1131 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0072-HeightInPixels_command06] -expected_result =95 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0072-ReleaseFont_command07] -font_data_object_name =bitmapFont - - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0081-AddFileL_command03] -fontfile =\graphics\fntstore\testfontws.gdr - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0081-GetFontById_command04] -fontuid =268458256 -alg_style =algStyle -font =bitmapFont - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0081-FontSpecInTwips_command05] -expected_name =LatinBold12 -expected_height =143 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0081-ReleaseFont_command06] -font_data_object_name =bitmapFont - - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0082-InstallRasterizerL_command03] -usetestclass =TRUE - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0082-AddFileL_command04] -fontfile =\graphics\fntstore\dummy - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0082-GetFontById_command05] -fontuid =12345 -alg_style =algStyle -font =bitmapFont - - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0091-InstallRasterizerL_command02] -usetestclass =TRUE - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0091-AddFileL_command03] -fontfile =\graphics\fntstore\dummy - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0091-GetNearestFontToMaxHeightInPixels_command04] -font =bitmapFont -maxheight =95 -font_name =Test -font_height =95 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0091-ReleaseFont_command05] -font_data_object_name =bitmapFont - - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0101-NumTypefaces_command02] -typefaces =0 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0101-AddFileL_command03] -fontfile =\graphics\fntstore\testfontws.gdr - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0101-NumTypefaces_command04] -typefaces =8 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0101-RemoveFile_command05] -fontfile =\graphics\fntstore\testfontws.gdr - - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0111-AddFileL_command02] -fontfile =\graphics\fntstore\testfontws.gdr - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0111-TypefaceSupport_command03] -typeface_index =0 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0111-TypefaceSupport_command04] -typeface_index =1 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0111-TypefaceSupport_command05] -typeface_index =2 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0111-TypefaceSupport_command06] -typeface_index =3 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0111-TypefaceSupport_command07] -typeface_index =4 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0111-TypefaceSupport_command08] -typeface_index =5 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0111-TypefaceSupport_command09] -typeface_index =6 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0111-TypefaceSupport_command10] -typeface_index =7 - - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0112-AddFileL_command02] -fontfile =\graphics\fntstore\testfontws.gdr - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0112-TypefaceSupport_command03] -typeface_index =-1 - - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0113-AddFileL_command02] -fontfile =\graphics\fntstore\testfontws.gdr - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0113-TypefaceSupport_command03] -typeface_index =99 - - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0114-InstallRasterizerL_command02] -usetestclass =TRUE - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0114-AddFileL_command03] -fontfile =\graphics\fntstore\testfontws.gdr - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0114-AddFileL_command04] -fontfile =\graphics\fntstore\dummy - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0114-TypefaceSupport_command05] -typeface_index =8 - - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0121-InstallRasterizerL_command02] -usetestclass =TRUE - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0121-AddFileL_command03] -fontfile =\graphics\fntstore\dummy - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0121-FontHeightInTwips_command04] -typeface_index =0 -height_index =0 -check_height_positive =TRUE - - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0122-InstallRasterizerL_command02] -usetestclass =TRUE - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0122-AddFileL_command03] -fontfile =\graphics\fntstore\dummy - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0122-FontHeightInTwips_command04] -typeface_index =1 -height_index =0 -check_height_positive =FALSE - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0122-FontHeightInTwips_command05] -typeface_index =0 -height_index =9999 -check_height_positive =TRUE - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0122-FontHeightInTwips_command06] -typeface_index =0 -height_index =-1 -check_height_positive =FALSE - - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0123-InstallRasterizerL_command02] -usetestclass =TRUE - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0123-AddFileL_command03] -fontfile =\graphics\fntstore\dummy - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0123-FontHeightInTwips_command04] -typeface_index =-99 -height_index =0 -check_height_positive =FALSE - - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0131-InstallRasterizerL_command02] -usetestclass =TRUE - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0131-AddFileL_command03] -fontfile =\graphics\fntstore\dummy - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0131-FontHeightInPixels_command04] -typeface_index =0 -height_index =0 -expected_height ={default_wserv, height_with_index_0_0} - - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0132-InstallRasterizerL_command02] -usetestclass =TRUE - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0132-AddFileL_command03] -fontfile =\graphics\fntstore\dummy - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0132-FontHeightInPixels_command04] -typeface_index =1 -height_index =0 -expected_height =0 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0132-FontHeightInPixels_command05] -typeface_index =0 -height_index =9999 -expected_height ={default_wserv, height_with_index_0_9999} - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0132-FontHeightInPixels_command06] -typeface_index =0 -height_index =-1 -expected_height =0 - - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0133-InstallRasterizerL_command02] -usetestclass =TRUE - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0133-AddFileL_command03] -fontfile =\graphics\fntstore\dummy - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0133-FontHeightInPixels_command04] -typeface_index =-99 -height_index =0 -expected_height =0 - - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0134-AddFileL_command02] -fontfile =\graphics\fntstore\testfontws.gdr - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0134-FontHeightInPixels_command03] -typeface_index =0 -height_index =0 -expected_height =12 - - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0141-AddFileL_command02] -fontfile =\graphics\fntstore\dummy - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0141-InstallRasterizerL_command03] -usetestclass =TRUE - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0141-AddFileL_command04] -fontfile =\graphics\fntstore\dummy - - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0142-InstallRasterizerL_command02] -usetestclass =FALSE - - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0151-DeleteSessionCache_command02] -sessionhandle =65536 - - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0161-DefaultBitmapType_command02] -expected_bmptype =EMonochromeGlyphBitmap - - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0171-SetDefaultBitmapType_command02] -bmptype =EDefaultGlyphBitmap - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0171-DefaultBitmapType_command03] -expected_bmptype =EDefaultGlyphBitmap - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0171-SetDefaultBitmapType_command04] -bmptype =EMonochromeGlyphBitmap - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0171-DefaultBitmapType_command05] -expected_bmptype =EMonochromeGlyphBitmap - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0171-SetDefaultBitmapType_command06] -bmptype =EAntiAliasedGlyphBitmap - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0171-DefaultBitmapType_command07] -expected_bmptype =EAntiAliasedGlyphBitmap - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0171-SetDefaultBitmapType_command08] -bmptype =ESubPixelGlyphBitmap - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0171-DefaultBitmapType_command09] -expected_bmptype =ESubPixelGlyphBitmap - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0171-SetDefaultBitmapType_command10] -bmptype =EFourColourBlendGlyphBitmap - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0171-DefaultBitmapType_command11] -expected_bmptype =EFourColourBlendGlyphBitmap - - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0172-SetDefaultBitmapType_command02] -bmptype =9999 - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0172-DefaultBitmapType_command03] -expected_bmptype =9999 - - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0181-InstallShaperFactoryL_command02] -usetestclass =TRUE - - -[GRAPHICS-FNTSTORE-FntStore-PublicApi-0182-InstallShaperFactoryL_command02] -usetestclass =FALSE - - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fntstore/testdata/GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi.ini --- a/graphicsapitest/graphicssvs/fntstore/testdata/GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi.ini Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,48 +0,0 @@ -[glyphData] -name =glyphdata - -[razContext] -name =razcntxt - - -[GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0002-New_command02] -buffer_size =4096 - -[GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0002-StartGlyph_command03] -glyphdata =glyphData - - -[GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0003-New_command02] -buffer_size =4096 - -[GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0003-StartGlyph_command03] -glyphdata =glyphData - -[GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0003-WriteGlyphBit_command04] -bit =1 - - -[GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0004-New_command02] -buffer_size =4096 - -[GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0004-StartGlyph_command03] -glyphdata =glyphData - -[GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0004-WriteGlyphByte_command04] -byte =9999 - - -[GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0005-New_command02] -buffer_size =4096 - -[GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0005-StartGlyph_command03] -glyphdata =glyphData - - -[GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0006-New_command02] -buffer_size =4096 - -[GRAPHICS-FNTSTORE-OpenFontRasterizerContext-PublicApi-0006-StartGlyph_command03] -glyphdata =glyphData - - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fntstore/testdata/bad_entrysel Binary file graphicsapitest/graphicssvs/fntstore/testdata/bad_entrysel has changed diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fntstore/testdata/dummy --- a/graphicsapitest/graphicssvs/fntstore/testdata/dummy Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -. diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/fntstore/testdata/testfontws.gdr Binary file graphicsapitest/graphicssvs/fntstore/testdata/testfontws.gdr has changed diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/gdi/inc/T_DataBitmapContext.h --- a/graphicsapitest/graphicssvs/gdi/inc/T_DataBitmapContext.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,49 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataBitmapContext -*/ - -#if (!defined __T_DATA_BITMAP_CONTEXT_H__) -#define __T_DATA_BITMAP_CONTEXT_H__ - -// User includes -#include "T_DataGraphicsContext.h" - -class CT_DataBitmapContext : public CT_DataGraphicsContext - { -public: - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - -protected: - CT_DataBitmapContext(); - virtual CBitmapContext* GetBitmapContext() const = 0; - - void DoCmdAlphaBlendBitmapsL(const TDesC& aSection); - void DoCmdBitBltL(const TDesC& aSection); - void DoCmdBitBltMaskedL(const TDesC& aSection); - void DoCmdClear(const TDesC& aSection); - void DoCmdCopyRect(const TDesC& aSection); - void DoCmdSetFaded(const TDesC& aSection); - void DoCmdSetFadingParameters(const TDesC& aSection); - }; - -#endif /* __T_DATA_BITMAP_CONTEXT_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/gdi/inc/T_DataBitmapDevice.h --- a/graphicsapitest/graphicssvs/gdi/inc/T_DataBitmapDevice.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,59 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataBitmapDevice -*/ - -#if (!defined __T_DATA_BITMAP_DEVICE_H__) -#define __T_DATA_BITMAP_DEVICE_H__ - -// User includes -#include "T_DataGraphicsDevice.h" - -class CT_DataBitmapDevice : public CT_DataGraphicsDevice - { -public: - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - -protected: - CT_DataBitmapDevice(); - ~CT_DataBitmapDevice(); - - virtual CBitmapDevice* GetBitmapDevice() const = 0; - - void DoCmdAddFileL(const TDesC& aSection); - void DoCmdCreateBitmapContextL(const TDesC& aSection); - void DoCmdFontHeightInPixels(const TDesC& aSection); - void DoCmdGetNearestFontInPixelsL(const TDesC& aSection); - void DoCmdGetNearestFontToDesignHeightInPixelsL(const TDesC& aSection); - void DoCmdGetNearestFontToMaxHeightInPixelsL(const TDesC& aSection); - void DoCmdGetPixel(const TDesC& aSection); - void DoCmdGetScanLineL(const TDesC& aSection); - void DoCmdRemoveFile(const TDesC& aSection); - - void CheckScanLine(const TDesC& aSection,TDes8 &aBuf); - -private: - RArray iFile; - RArray iId; - }; - -#endif /* __T_DATA_BITMAP_DEVICE_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/gdi/inc/T_DataDrawTextExtendedParam.h --- a/graphicsapitest/graphicssvs/gdi/inc/T_DataDrawTextExtendedParam.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,56 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataDrawTextExtendedParam -*/ - -#if (!defined __T_DATA_DRAW_TEXT_EXTENDED_PARAM_H__) -#define __T_DATA_DRAW_TEXT_EXTENDED_PARAM_H__ - -// User Includes -#include "T_DataDrawTextParam.h" - -class CT_DataDrawTextExtendedParam : public CT_DataDrawTextParam - { -public: - CT_DataDrawTextExtendedParam(); - ~CT_DataDrawTextExtendedParam(); - - virtual TAny* GetObject(); - virtual void SetObjectL(TAny* aAny); - virtual void DisownObjectL(); - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - -protected: - virtual CGraphicsContext::TDrawTextParam* GetDrawTextParam() const; - - void DoCmd_new(); - void DoCmd_destructor(); - void DoCmd_iParRightToLeft(const TDesC& aSection); - -private: - void DestroyData(); - -private: - CGraphicsContext::TDrawTextExtendedParam* iDrawTextExtendedParam; - }; - -#endif /* __T_DATA_DRAW_TEXT_EXTENDED_PARAM_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/gdi/inc/T_DataDrawTextParam.h --- a/graphicsapitest/graphicssvs/gdi/inc/T_DataDrawTextParam.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,63 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataDrawTextParam -*/ - -#if (!defined __T_DATA_DRAW_TEXT_PARAM_H__) -#define __T_DATA_DRAW_TEXT_PARAM_H__ - -// epoc32 includes -#include - -// User Includes -#include "DataWrapperBase.h" - -class CT_DataDrawTextParam : public CDataWrapperBase - { -public: - CT_DataDrawTextParam(); - ~CT_DataDrawTextParam(); - - virtual TAny* GetObject(); - virtual void SetObjectL(TAny* aAny); - virtual void DisownObjectL(); - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - -protected: - virtual CGraphicsContext::TDrawTextParam* GetDrawTextParam() const; - - void DoCmd_new(); - void DoCmd_destructor(); - void DoCmd_iDirection(const TDesC& aSection); - void DoCmd_iCharJustNum(const TDesC& aSection); - void DoCmd_iCharJustExcess(const TDesC& aSection); - void DoCmd_iWordJustNum(const TDesC& aSection); - void DoCmd_iWordJustExcess(const TDesC& aSection); - -private: - void DestroyData(); - -private: - CGraphicsContext::TDrawTextParam* iDrawTextParam; - }; - -#endif /* __T_DATA_DRAW_TEXT_PARAM_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/gdi/inc/T_DataFont.h --- a/graphicsapitest/graphicssvs/gdi/inc/T_DataFont.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,71 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataFont -*/ - -#if (!defined __T_DATA_FONT_H__) -#define __T_DATA_FONT_H__ - -// User Includes -#include "DataWrapperBase.h" - -// epoc32 includes -#include -#include - -class CT_DataFont : public CDataWrapperBase - { -public: - CT_DataFont(); - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - - virtual CFont* GetFont() const = 0; - -private: - void DoCmdTextCount(const TDesC& aSection); - void DoCmdTextWidthInPixels(const TDesC& aSection); - void DoCmdCharWidthInPixels(const TDesC& aSection); - void DoCmdFontCapitalAscent(const TDesC& aSection); - void DoCmdFontMaxAscent(const TDesC& aSection); - void DoCmdFontStandardDescent(const TDesC& aSection); - void DoCmdFontMaxDescent(const TDesC& aSection); - void DoCmdFontLineGap(const TDesC& aSection); - void DoCmdFontMaxHeight(const TDesC& aSection); - void DoCmdTypeUid(const TDesC& aSection); - void DoCmdHeightInPixels(const TDesC& aSection); - void DoCmdAscentInPixels(const TDesC& aSection); - void DoCmdDescentInPixels(const TDesC& aSection); - void DoCmdMaxCharWidthInPixels(const TDesC& aSection); - void DoCmdMaxNormalCharWidthInPixels(const TDesC& aSection); - void DoCmdFontSpecInTwips(const TDesC& aSection); - void DoCmdWidthZeroInPixels(const TDesC& aSection); - void DoCmdBaselineOffsetInPixels(const TDesC& aSection); - void DoCmdGetCharacterData(const TDesC& aSection); - void DoCmdExtendedFunction(const TDesC& aSection); - void DoCmdMeasureTextL(const TDesC& aSection); - - // Helpers - static TBool GetMeasureTextInputL(CDataWrapper& aDataWrapper, const TDesC& aParameterName, const TDesC& aSection, CFont::TMeasureTextInput*& aMeasureTextInput); - static TBool GetMeasureTextOutputL(CDataWrapper& aDataWrapper, const TDesC& aParameterName, const TDesC& aSection, CFont::TMeasureTextOutput*& aMeasureTextOutput); - }; - -#endif /* __T_DATA_FONT_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/gdi/inc/T_DataGraphicsContext.h --- a/graphicsapitest/graphicssvs/gdi/inc/T_DataGraphicsContext.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,91 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataGraphicsContext -*/ - -#if (!defined __T_DATA_GRAPHICS_CONTEXT_H__) -#define __T_DATA_GRAPHICS_CONTEXT_H__ - -// epoc32 includes -#include - -// User Includes -#include "DataWrapperBase.h" - -class CT_DataGraphicsContext : public CDataWrapperBase - { -public: - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - -protected: - CT_DataGraphicsContext(); - virtual CGraphicsContext* GetGraphicsContext() const = 0; - - void DoCmdCancelClippingRect(); - void DoCmdCancelClippingRegion(); - void DoCmdDeviceL(const TDesC& aSection); - void DoCmdDiscardBrushPattern(); - void DoCmdDiscardFont(); - void DoCmdDrawArc(const TDesC& aSection); - void DoCmdDrawBitmapL(const TDesC& aSection); - void DoCmdDrawBitmapMaskedL(const TDesC& aSection); - void DoCmdDrawEllipse(const TDesC& aSection); - void DoCmdDrawLine(const TDesC& aSection); - void DoCmdDrawLineBy(const TDesC& aSection); - void DoCmdDrawLineTo(const TDesC& aSection); - void DoCmdDrawPie(const TDesC& aSection); - void DoCmdDrawPolygonL(const TDesC& aSection); - void DoCmdDrawPolyLineL(const TDesC& aSection); - void DoCmdDrawRect(const TDesC& aSection); - void DoCmdDrawRoundRect(const TDesC& aSection); - void DoCmdDrawText(const TDesC& aSection); - void DoCmdDrawTextExtendedL(const TDesC& aSection); - void DoCmdDrawTextVertical(const TDesC& aSection); - void DoCmdGetShadowColor(const TDesC& aSection); - void DoCmdGetUnderlineMetrics(const TDesC& aSection); - void DoCmdJustificationInPixels(const TDesC& aSection); - void DoCmdMapColorsL(const TDesC& aSection); - void DoCmdMoveBy(const TDesC& aSection); - void DoCmdMoveTo(const TDesC& aSection); - void DoCmdPlot(const TDesC& aSection); - void DoCmdReserved(); - void DoCmdReset(); - void DoCmdSetBrushColor(const TDesC& aSection); - void DoCmdSetBrushOrigin(const TDesC& aSection); - void DoCmdSetBrushStyle(const TDesC& aSection); - void DoCmdSetClippingRegion(const TDesC& aSection); - void DoCmdSetCharJustification(const TDesC& aSection); - void DoCmdSetClippingRect(const TDesC& aSection); - void DoCmdSetDrawMode(const TDesC& aSection); - void DoCmdSetOrigin(const TDesC& aSection); - void DoCmdSetPenColor(const TDesC& aSection); - void DoCmdSetPenSize(const TDesC& aSection); - void DoCmdSetPenStyle(const TDesC& aSection); - void DoCmdSetShadowColor(const TDesC& aSection); - void DoCmdSetStrikethroughStyle(const TDesC& aSection); - void DoCmdSetUnderlineStyle(const TDesC& aSection); - void DoCmdSetWordJustification(const TDesC& aSection); - void DoCmdUseBrushPatternL(const TDesC& aSection); - void DoCmdUseFontL(const TDesC& aSection); - }; - -#endif /* __T_DATA_GRAPHICS_CONTEXT_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/gdi/inc/T_DataGraphicsDevice.h --- a/graphicsapitest/graphicssvs/gdi/inc/T_DataGraphicsDevice.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,64 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataGraphicsDevice -*/ - -#if (!defined __T_DATA_GRAPHICS_DEVICE_H__) -#define __T_DATA_GRAPHICS_DEVICE_H__ - -// User Includes -#include "T_DataGraphicsDeviceMap.h" - -class CT_DataGraphicsDevice : public CT_DataGraphicsDeviceMap - { -public: - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - -protected: - CT_DataGraphicsDevice(); - - virtual CGraphicsDevice* GetGraphicsDevice() const = 0; - - void DoCmdCreateContextL(const TDesC& aSection); - void DoCmdDisplayMode(const TDesC& aSection); - void DoCmdFontHeightInTwips(const TDesC& aSection); - void DoCmdGetPaletteL(const TDesC& aSection); - void DoCmdNumTypefaces(const TDesC& aSection); - void DoCmdPaletteAttributes(const TDesC& aSection); - void DoCmdSetPaletteL(const TDesC& aSection); - void DoCmdSizeInPixels(const TDesC& aSection); - void DoCmdSizeInTwips(const TDesC& aSection); - void DoCmdTypefaceSupport(const TDesC& aSection); - - // helpers - inline TDisplayMode GetDisplayMode() const; - -private: - TDisplayMode iDisplayMode; - TSize iSizeInPixels; - TSize iSizeInTwips; - TTypefaceSupport iTypefaceSupport; - }; - -#include "T_DataGraphicsDevice.inl" - -#endif /* __T_DATA_GRAPHICS_DEVICE_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/gdi/inc/T_DataGraphicsDevice.inl --- a/graphicsapitest/graphicssvs/gdi/inc/T_DataGraphicsDevice.inl Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,28 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataGraphicsDevice inline functions -*/ - -TDisplayMode CT_DataGraphicsDevice::GetDisplayMode() const - { - return iDisplayMode; - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/gdi/inc/T_DataGraphicsDeviceMap.h --- a/graphicsapitest/graphicssvs/gdi/inc/T_DataGraphicsDeviceMap.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,62 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataGraphicsDeviceMap -*/ - -#if (!defined __T_DATA_GRAPHICS_DEVICE_MAP_H__) -#define __T_DATA_GRAPHICS_DEVICE_MAP_H__ - -// epoc32 includes -#include - -// User Includes -#include "DataWrapperBase.h" - -class CT_DataGraphicsDeviceMap : public CDataWrapperBase - { -public: - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - -protected: - CT_DataGraphicsDeviceMap(); - - virtual MGraphicsDeviceMap* GetGraphicsDeviceMap() const = 0; - - void DoCmdGetNearestFontInTwipsL(const TDesC& aSection); - void DoCmdGetNearestFontToDesignHeightInTwipsL(const TDesC& aSection); - void DoCmdGetNearestFontToMaxHeightInTwipsL(const TDesC& aSection); - void DoCmdHorizontalPixelsToTwips(const TDesC& aSection); - void DoCmdHorizontalTwipsToPixels(const TDesC& aSection); - void DoCmdPixelsToTwips(const TDesC& aSection); - void DoCmdReleaseFontL(const TDesC& aSection); - void DoCmdTwipsToPixels(const TDesC& aSection); - void DoCmdVerticalPixelsToTwips(const TDesC& aSection); - void DoCmdVerticalTwipsToPixels(const TDesC& aSection); - -private: - TPoint iTwipsToPixelsPoint; - TRect iTwipsToPixelsRect; - TPoint iPixelsToTwipsPoint; - TRect iPixelsToTwipsRect; - }; - -#endif /* __T_DATA_GRAPHICS_DEVICE_MAP_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/gdi/inc/T_DataMeasureTextInput.h --- a/graphicsapitest/graphicssvs/gdi/inc/T_DataMeasureTextInput.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,75 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataMeasureTextInput -*/ - -#if (!defined __T_DATA_MEASURE_TEXT_INPUT_H__) -#define __T_DATA_MEASURE_TEXT_INPUT_H__ - -// User Includes -#include "DataWrapperBase.h" -// EPOC includes -#include -#include - -class CT_DataMeasureTextInput : public CDataWrapperBase - { -public: - static CT_DataMeasureTextInput* NewL(); - - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - - - ~CT_DataMeasureTextInput(); - - virtual TAny* GetObject(); - -protected: - CT_DataMeasureTextInput(); - void ConstructL(); - -private: - void DoCmdNew(); - void DoCmdDestructor(); - void DoCmdSetCharJustExcess(const TDesC& aSection); - void DoCmdSetCharJustNum(const TDesC& aSection); - void DoCmdSetDirection(const TDesC& aSection); - void DoCmdSetEndInputChar(const TDesC& aSection); - void DoCmdSetFlags(const TDesC& aSection); - void DoCmdSetMaxAdvance(const TDesC& aSection); - void DoCmdSetMaxBounds(const TDesC& aSection); - void DoCmdSetStartInputChar(const TDesC& aSection); - void DoCmdSetWordJustExcess(const TDesC& aSection); - void DoCmdSetWordJustNum(const TDesC& aSection); - - /// Helpers - TBool GetValueFromConfig(const TDesC& aSection, TInt& aValue); - TBool ReadFlags(const TDesC& aSection, TUint16& aFlags); - void DestroyData(); - -private: - - /** TMeasureTextInput class instance to work with*/ - CFont::TMeasureTextInput* iMeasureTextInput; - }; - -#endif /* __T_DATA_MEASURE_TEXT_INPUT_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/gdi/inc/T_DataMeasureTextOutput.h --- a/graphicsapitest/graphicssvs/gdi/inc/T_DataMeasureTextOutput.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,68 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataMeasureTextOutput -*/ - -#if (!defined __T_DATA_MEASURE_TEXT_OUTPUT_H__) -#define __T_DATA_MEASURE_TEXT_OUTPUT_H__ - -// User Includes -#include "DataWrapperBase.h" -// EPOC includes -#include -#include - -class CT_DataMeasureTextOutput : public CDataWrapperBase - { -public: - - static CT_DataMeasureTextOutput* NewL(); - - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - - - ~CT_DataMeasureTextOutput(); - - virtual TAny* GetObject(); - -protected: - CT_DataMeasureTextOutput(); - void ConstructL(); - -private: - void DestroyData(); - void DoCmdNew(); - void DoCmdSetBounds(const TDesC& aSection); - void DoCmdSetChars(const TDesC& aSection); - void DoCmdSetGlyphs(const TDesC& aSection); - void DoCmdSetGroups(const TDesC& aSection); - void DoCmdSetMaxGlyphSize(const TDesC& aSection); - void DoCmdSetSpaces(const TDesC& aSection); - - static TBool CT_DataMeasureTextOutput::GetValueFromConfig(CDataWrapper& iInputStep, const TDesC& aSection, TInt& aValue); - -private: - /** TMeasureTextOutput class instance to work with*/ - CFont::TMeasureTextOutput* iMeasureTextOutput; - }; - -#endif /* __T_DATA_MEASURE_TEXT_OUTPUT_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/gdi/inc/T_DataPalette.h --- a/graphicsapitest/graphicssvs/gdi/inc/T_DataPalette.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,62 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataPalette -*/ - -#if (!defined __T_DATA_PALETTE_H__) -#define __T_DATA_PALETTE_H__ - -// User Includes -#include "DataWrapperBase.h" - -// EPOC includes -#include -#include - -class CT_DataPalette : public CDataWrapperBase - { -public: - - static CT_DataPalette* NewL(); - - ~CT_DataPalette(); - - virtual TAny* GetObject(); - - void DestroyData(); - - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - -protected: - CT_DataPalette(); - void ConstructL(); - -private: - void DoCmdNew(const TDesC& aSection); - void DoCmdNewDefault(const TDesC& aSection); - -private: - /** CPalette class instance to work with*/ - CPalette* iPalette; - }; - -#endif /* __T_DATA_PALETTE_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/gdi/inc/T_DataTypefaceStore.h --- a/graphicsapitest/graphicssvs/gdi/inc/T_DataTypefaceStore.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,57 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataTypefaceStore -*/ - -#if (!defined __T_DATA_TYPEFACE_STORE_H__) -#define __T_DATA_TYPEFACE_STORE_H__ - -// User Includes -#include "DataWrapperBase.h" -#include "T_DataFont.h" - -// epoc32 includes -#include - -class CT_DataTypefaceStore : public CDataWrapperBase - { -public: - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - CT_DataTypefaceStore(); - -protected: - - virtual CTypefaceStore* GetTypefaceStore() const = 0; - CT_DataFont* GetFontDataObjectFromParameterL(const TDesC& aParameterName, const TDesC& aSection); - void SetFontDataObjectIfPassedAsParameterL(CFont* font, const TDesC& aSection); - -private: - void DoCmdGetNearestFontInTwipsL(const TDesC& aSection); - void DoCmdGetNearestFontToDesignHeightInTwipsL(const TDesC& aSection); - void DoCmdGetNearestFontToMaxHeightInTwipsL(const TDesC& aSection); - void DoCmdNumTypefaces(const TDesC& aSection); - void DoCmdTypefaceSupport(const TDesC& aSection); - void DoCmdFontHeightInTwips(const TDesC& aSection); - void DoCmdReleaseFontL(const TDesC& aSection); - }; - -#endif /* __T_DATA_TYPEFACE_STORE_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/gdi/src/T_DataBitmapContext.cpp --- a/graphicsapitest/graphicssvs/gdi/src/T_DataBitmapContext.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,384 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataGraphicsContext -*/ - -#include "T_DataBitmapContext.h" -#include "T_GraphicsUtil.h" - -/*@{*/ -/// Commands -_LIT(KCmdAlphaBlendBitmaps, "AlphaBlendBitmaps"); -_LIT(KCmdBitBlt, "BitBlt"); -_LIT(KCmdBitBltMasked, "BitBltMasked"); -_LIT(KCmdClear, "Clear"); -_LIT(KCmdCopyRect, "CopyRect"); -_LIT(KCmdSetFaded, "SetFaded"); -_LIT(KCmdSetFadingParameters, "SetFadingParameters"); - -/// Fields -_LIT(KFldAlphaBmp, "alphabmp"); -_LIT(KFldAlphaPt, "alphapt"); -_LIT(KFldBitmap, "bitmap"); -_LIT(KFldBlackMap, "blackmap"); -_LIT(KFldDestination, "destination"); -_LIT(KFldDestPt, "destpt"); -_LIT(KFldFaded, "faded"); -_LIT(KFldInvertMask, "invertmask"); -_LIT(KFldMaskBitmap, "maskbitmap"); -_LIT(KFldOffset, "offset"); -_LIT(KFldPoint, "point"); -_LIT(KFldRect, "rect"); -_LIT(KFldSource, "source"); -_LIT(KFldSourceRect, "sourcerect"); -_LIT(KFldSrcBmp, "srcbmp"); -_LIT(KFldSrcRect, "srcrect"); -_LIT(KFldSrcWsBmp, "srcwsbmp"); -_LIT(KFldWhiteMap, "whitemap"); - -/// Logging -_LIT(KLogError, "Error=%d"); -_LIT(KLogMissingParameter, "Missing parameter '%S'"); -/*@}*/ - -/** -* Constructor. First phase construction -*/ -CT_DataBitmapContext::CT_DataBitmapContext() -: CT_DataGraphicsContext() - { - } - -/** -* Process a command read from the ini file -* -* @param aDataWrapper test step requiring command to be processed -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* -* @return ETrue if the command is processed -*/ -TBool CT_DataBitmapContext::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex) - { - TBool ret=ETrue; - if ( aCommand==KCmdAlphaBlendBitmaps ) - { - DoCmdAlphaBlendBitmapsL(aSection); - } - else if ( aCommand==KCmdBitBlt ) - { - DoCmdBitBltL(aSection); - } - else if ( aCommand==KCmdBitBltMasked ) - { - DoCmdBitBltMaskedL(aSection); - } - else if ( aCommand==KCmdClear ) - { - DoCmdClear(aSection); - } - else if ( aCommand==KCmdCopyRect ) - { - DoCmdCopyRect(aSection); - } - else if ( aCommand==KCmdSetFaded ) - { - DoCmdSetFaded(aSection); - } - else if ( aCommand==KCmdSetFadingParameters ) - { - DoCmdSetFadingParameters(aSection); - } - else - { - ret=CT_DataGraphicsContext::DoCommandL(aCommand, aSection, aAsyncErrorIndex); - } - - return ret; - } - -void CT_DataBitmapContext::DoCmdAlphaBlendBitmapsL(const TDesC& aSection) - { - TBool dataOk=ETrue; - - TPoint destinationPoint; - if ( !GetPointFromConfig(aSection, KFldDestPt, destinationPoint) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldDestPt()); - SetBlockResult(EFail); - } - - TRect sourceRect; - if ( !GetRectFromConfig(aSection, KFldSrcRect, sourceRect) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldSrcRect()); - SetBlockResult(EFail); - } - - TPoint alphaPoint; - if ( !GetPointFromConfig(aSection, KFldAlphaPt, alphaPoint) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldAlphaPt()); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - TInt err=KErrNone; - - CWsBitmap* wsBitmap=NULL; - if ( CT_GraphicsUtil::GetWsBitmapL(*this, aSection, KFldSrcWsBmp, wsBitmap) ) - { - CWsBitmap* alphaBitmap=NULL; - if ( !CT_GraphicsUtil::GetWsBitmapL(*this, aSection, KFldAlphaBmp, alphaBitmap) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldAlphaBmp()); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("execute AlphaBlendBitmaps(TPoint, CWsBitmap*, TRect, CWsBitmap*, TPoint)")); - err=GetBitmapContext()->AlphaBlendBitmaps(destinationPoint, wsBitmap, sourceRect, alphaBitmap, alphaPoint); - } - } - else - { - CFbsBitmap* fbsBitmap=NULL; - if ( CT_GraphicsUtil::GetFbsBitmapL(*this, aSection, KFldSrcBmp, fbsBitmap) ) - { - CFbsBitmap* alphaBitmap=NULL; - if ( !CT_GraphicsUtil::GetFbsBitmapL(*this, aSection, KFldAlphaBmp, alphaBitmap) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldAlphaBmp()); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("execute AlphaBlendBitmaps(TPoint, CFbsBitmap*, TRect, CFbsBitmap*, TPoint)")); - err=GetBitmapContext()->AlphaBlendBitmaps(destinationPoint, fbsBitmap, sourceRect, alphaBitmap, alphaPoint); - } - } - else - { - ERR_PRINTF2(KLogMissingParameter, &KFldSrcWsBmp()); - ERR_PRINTF2(KLogMissingParameter, &KFldSrcBmp()); - SetBlockResult(EFail); - } - } - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - } - } - -void CT_DataBitmapContext::DoCmdBitBltL(const TDesC& aSection) - { - TBool dataOk=ETrue; - - CFbsBitmap* bitmap=NULL; - if ( !CT_GraphicsUtil::GetFbsBitmapL(*this, aSection, KFldBitmap, bitmap) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldBitmap()); - SetBlockResult(EFail); - } - - TPoint point; - if ( GetPointFromConfig(aSection, KFldPoint, point) ) - { - if ( dataOk ) - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute BitBlt(TPoint, CFbsBitmap*)")); - GetBitmapContext()->BitBlt(point, bitmap); - } - } - else - { - TPoint destination; - if ( !GetPointFromConfig(aSection, KFldDestination, destination) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldDestination()); - SetBlockResult(EFail); - } - - TRect source; - if ( !GetRectFromConfig(aSection, KFldSource, source) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldSource()); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute BitBlt(TRect, CFbsBitmap*, TRect)")); - GetBitmapContext()->BitBlt(destination, bitmap, source); - } - } - } - -void CT_DataBitmapContext::DoCmdBitBltMaskedL(const TDesC& aSection) - { - TBool dataOk=ETrue; - - // Get test data for command input parameter(s) - TPoint point; - if ( !GetPointFromConfig(aSection, KFldPoint, point) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldPoint()); - SetBlockResult(EFail); - } - - TRect sourceRect; - if ( !GetRectFromConfig(aSection, KFldSourceRect, sourceRect) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldSourceRect()); - SetBlockResult(EFail); - } - - TBool invertMask; - if ( !GetBoolFromConfig(aSection, KFldInvertMask, invertMask) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldInvertMask()); - SetBlockResult(EFail); - } - - CFbsBitmap* bitmap=NULL; - if ( !CT_GraphicsUtil::GetFbsBitmapL(*this, aSection, KFldBitmap, bitmap) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldBitmap()); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - CFbsBitmap* maskBitmap=NULL; - CT_GraphicsUtil::GetFbsBitmapL(*this, aSection, KFldMaskBitmap, maskBitmap); - - // Execute command and log parameters - INFO_PRINTF1(_L("execute BitBltMasked(TPoint, CFbsBitmap*, TRect, CFbsBitmap*, TBool)")); - GetBitmapContext()->BitBltMasked(point, bitmap, sourceRect, maskBitmap, invertMask); - } - } - -void CT_DataBitmapContext::DoCmdClear(const TDesC& aSection) - { - // Get test data for command input parameter(s) - TRect rect; - if ( GetRectFromConfig(aSection, KFldRect, rect) ) - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute Clear(TRect)")); - GetBitmapContext()->Clear(rect); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute Clear()")); - GetBitmapContext()->Clear(); - } - } - -void CT_DataBitmapContext::DoCmdCopyRect(const TDesC& aSection) - { - TBool dataOk=ETrue; - - // Get test data for command input parameter(s) - TPoint offset; - if ( !GetPointFromConfig(aSection, KFldOffset, offset) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldOffset()); - SetBlockResult(EFail); - } - - TRect rect; - if ( !GetRectFromConfig(aSection, KFldRect, rect) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldRect()); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute CopyRect(TPoint, TRect)")); - GetBitmapContext()->CopyRect(offset, rect); - } - } - -void CT_DataBitmapContext::DoCmdSetFaded(const TDesC& aSection) - { - TBool faded=ETrue; - if( !GetBoolFromConfig(aSection, KFldFaded(), faded)) - { - ERR_PRINTF2(KLogMissingParameter, &KFldFaded()); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute SetFaded(TBool)")); - GetBitmapContext()->SetFaded(faded); - } - } - -void CT_DataBitmapContext::DoCmdSetFadingParameters(const TDesC& aSection) - { - TBool dataOk=ETrue; - - TInt blackMap=0; - if( !GetIntFromConfig(aSection, KFldBlackMap(), blackMap) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldBlackMap()); - SetBlockResult(EFail); - } - - TInt whiteMap=255; - if( !GetIntFromConfig(aSection, KFldWhiteMap(), whiteMap) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldWhiteMap()); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute SetFadingParameters(TUint8, TUint8)")); - GetBitmapContext()->SetFadingParameters((TUint8)blackMap, (TUint8)whiteMap); - } - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/gdi/src/T_DataBitmapDevice.cpp --- a/graphicsapitest/graphicssvs/gdi/src/T_DataBitmapDevice.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,641 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataGraphicsDevice -*/ - -#include "T_DataBitmapDevice.h" -#include "T_GraphicsUtil.h" - -/*@{*/ -/// Commands -_LIT(KCmdAddFile, "AddFile"); -_LIT(KCmdCreateBitmapContext, "CreateBitmapContext"); -_LIT(KCmdFontHeightInPixels, "FontHeightInPixels"); -_LIT(KCmdGetNearestFontInPixels, "GetNearestFontInPixels"); -_LIT(KCmdGetNearestFontToDesignHeightInPixels, "GetNearestFontToDesignHeightInPixels"); -_LIT(KCmdGetNearestFontToMaxHeightInPixels, "GetNearestFontToMaxHeightInPixels"); -_LIT(KCmdGetPixel, "GetPixel"); -_LIT(KCmdGetScanLine, "GetScanLine"); -_LIT(KCmdRemoveFile, "RemoveFile"); - -/// Fields -_LIT(KFldBitmapContext, "bitmap_context"); -_LIT(KFldBuffLength, "buff_length"); -_LIT(KFldCheckScanLine, "checkScanLine"); -_LIT(KFldScanLineBufferLength, "scanLineBufferLength"); -_LIT(KFldDisplayMode, "displaymode"); -_LIT(KFldExpected, "expected"); -_LIT(KFldFile, "file"); -_LIT(KFldFont, "font"); -_LIT(KFldHeightIndex, "height_index"); -_LIT(KFldId, "id"); -_LIT(KFldLength, "length"); -_LIT(KFldMaxHeight, "maxheight"); -_LIT(KFldPoint, "point"); -_LIT(KFldSize, "size"); -_LIT(KFldTypefaceIndex, "typeface_index"); -_LIT(KFldPointNum, "checkPointNum"); -_LIT(KFldPointXN, "point%d_x"); -_LIT(KFldPointRGBN, "expected_point%d"); -_LIT(KFldScanlineY, "scanline_y"); - -/// Logging -_LIT(KLogColor, "Color Red=%d Green=%d Blue=%d Alpha=%d"); -_LIT(KLogError, "Error=%d"); -_LIT(KLogHeight, "Height=%d"); -_LIT(KLogMissingFilename, "File '%S' not found in array"); -_LIT(KLogMissingParameter, "Missing parameter '%S'"); -_LIT(KLogMissingWrapper, "Missing wrapper for '%S'"); -_LIT(KLogNotExpectedValue, "Not expected value"); -_LIT(KLogDoNotCheckScanLine, "Will not check scanline."); -_LIT(KLogDoCheckScanLine, "Will check scanline is correct."); -_LIT(KLogCheckScanLineResult, "ScanLine checked, expected length is %d, actual length is %d."); -_LIT(KLogColorExpected, "Expected Color Red=%d Green=%d Blue=%d Alpha=%d"); -_LIT(KLogColorActual, "Actual Color Red=%d Green=%d Blue=%d Alpha=%d"); -_LIT(KLogPoint, "Point X=%d Y=%d"); -/*@}*/ - - -/** -* Constructor. First phase construction -*/ -CT_DataBitmapDevice::CT_DataBitmapDevice() -: CT_DataGraphicsDevice() - { - } - -CT_DataBitmapDevice::~CT_DataBitmapDevice() - { - iFile.Reset(); - iFile.Close(); - iId.Reset(); - iId.Close(); - } - -/** -* Process a command read from the ini file -* -* @param aDataWrapper test step requiring command to be processed -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* -* @return ETrue if the command is processed -*/ -TBool CT_DataBitmapDevice::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex) - { - TBool ret=ETrue; - if ( aCommand==KCmdAddFile ) - { - DoCmdAddFileL(aSection); - } - else if ( aCommand==KCmdCreateBitmapContext ) - { - DoCmdCreateBitmapContextL(aSection); - } - else if ( aCommand==KCmdFontHeightInPixels ) - { - DoCmdFontHeightInPixels(aSection); - } - else if ( aCommand==KCmdGetNearestFontInPixels ) - { - DoCmdGetNearestFontInPixelsL(aSection); - } - else if ( aCommand==KCmdGetNearestFontToDesignHeightInPixels ) - { - DoCmdGetNearestFontToDesignHeightInPixelsL(aSection); - } - else if ( aCommand==KCmdGetNearestFontToMaxHeightInPixels ) - { - DoCmdGetNearestFontToMaxHeightInPixelsL(aSection); - } - else if ( aCommand==KCmdGetPixel ) - { - DoCmdGetPixel(aSection); - } - else if ( aCommand==KCmdGetScanLine ) - { - DoCmdGetScanLineL(aSection); - } - else if ( aCommand==KCmdRemoveFile ) - { - DoCmdRemoveFile(aSection); - } - else - { - ret=CT_DataGraphicsDevice::DoCommandL(aCommand, aSection, aAsyncErrorIndex); - } - - /* Another work package will implement this */ - return ret; - } - -void CT_DataBitmapDevice::DoCmdAddFileL(const TDesC& aSection) - { - // get typeface index from parameters - TPtrC file; - if ( !GetStringFromConfig(aSection, KFldFile(), file) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldFile()); - SetBlockResult(EFail); - } - else - { - TInt id; - INFO_PRINTF1(_L("execute AddFile(const TDesC&, TInt&)")); - TInt err=GetBitmapDevice()->AddFile(file, id); - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - else - { - // Append filename and id - iFile.AppendL(file); - iId.AppendL(id); - } - } - } - -void CT_DataBitmapDevice::DoCmdCreateBitmapContextL(const TDesC& aSection) - { - TPtrC wrapperName; - if ( !GetStringFromConfig(aSection, KFldBitmapContext, wrapperName) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldBitmapContext()); - SetBlockResult(EFail); - } - else - { - CDataWrapper* wrapper=GetDataWrapperL(wrapperName); - if ( wrapper==NULL ) - { - ERR_PRINTF2(KLogMissingWrapper, &wrapperName); - SetBlockResult(EFail); - } - else - { - CBitmapContext* bitmapContext=NULL; - INFO_PRINTF1(_L("execute CreateBitmapContext(CBitmapContext*&)")); - TInt err=GetBitmapDevice()->CreateBitmapContext(bitmapContext); - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - else - { - wrapper->SetObjectL(bitmapContext); - } - } - } - } - -void CT_DataBitmapDevice::DoCmdFontHeightInPixels(const TDesC& aSection) - { - TBool dataOk=ETrue; - - // get typeface index from parameters - TInt typefaceIndex; - if ( !GetIntFromConfig(aSection, KFldTypefaceIndex(), typefaceIndex) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldTypefaceIndex()); - SetBlockResult(EFail); - } - - // get height index from parameters - TInt heightIndex; - if ( !GetIntFromConfig(aSection, KFldHeightIndex(), heightIndex) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldHeightIndex()); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - INFO_PRINTF1(_L("execute FontHeightInPixels(TInt, TInt)")); - TInt height=GetBitmapDevice()->FontHeightInPixels(typefaceIndex, heightIndex); - INFO_PRINTF2(KLogHeight, height); - - TInt expected; - if ( GetIntFromConfig(aSection, KFldExpected, expected) ) - { - if ( expected!=height ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - } - -void CT_DataBitmapDevice::DoCmdGetNearestFontInPixelsL(const TDesC& aSection) - { - TBool dataOk=ETrue; - - TFontSpec fontSpec; - if ( !GetFontSpecFromConfig(aSection, KFldFont, fontSpec) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldFont()); - SetBlockResult(EFail); - } - - TPtrC wrapperName; - if ( !GetStringFromConfig(aSection, KFldFont, wrapperName) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldFont()); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - CDataWrapper* wrapper=GetDataWrapperL(wrapperName); - if ( wrapper==NULL ) - { - ERR_PRINTF2(KLogMissingWrapper, &wrapperName); - SetBlockResult(EFail); - } - else - { - CFont* font=NULL; - INFO_PRINTF1(_L("execute GetNearestFontInPixels(CFont*&, TFontSpec)")); - TInt err=GetBitmapDevice()->GetNearestFontInPixels(font, fontSpec); - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - else - { - wrapper->SetObjectL(font); - } - } - } - } - -void CT_DataBitmapDevice::DoCmdGetNearestFontToDesignHeightInPixelsL(const TDesC& aSection) - { - TBool dataOk=ETrue; - - TFontSpec fontSpec; - if ( !GetFontSpecFromConfig(aSection, KFldFont, fontSpec) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldFont()); - SetBlockResult(EFail); - } - - TPtrC wrapperName; - // get BitmapUtilData object from parameters - if ( !GetStringFromConfig(aSection, KFldFont, wrapperName) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldFont()); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - CDataWrapper* wrapper=GetDataWrapperL(wrapperName); - if ( wrapper==NULL ) - { - ERR_PRINTF2(KLogMissingWrapper, &wrapperName); - SetBlockResult(EFail); - } - else - { - CFont* font=NULL; - INFO_PRINTF1(_L("execute GetNearestFontToDesignHeightInPixels(CFont*&, TFontSpec)")); - TInt err=GetBitmapDevice()->GetNearestFontToDesignHeightInPixels(font, fontSpec); - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - else - { - wrapper->SetObjectL(font); - } - } - } - } - -void CT_DataBitmapDevice::DoCmdGetNearestFontToMaxHeightInPixelsL(const TDesC& aSection) - { - TBool dataOk=ETrue; - - TFontSpec fontSpec; - if ( !GetFontSpecFromConfig(aSection, KFldFont, fontSpec) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldFont()); - SetBlockResult(EFail); - } - - TInt maxHeight; - if ( !GetIntFromConfig(aSection, KFldMaxHeight, maxHeight) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldMaxHeight()); - SetBlockResult(EFail); - } - - TPtrC wrapperName; - // get BitmapUtilData object from parameters - if ( !GetStringFromConfig(aSection, KFldFont, wrapperName) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldFont()); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - CDataWrapper* wrapper=GetDataWrapperL(wrapperName); - if ( wrapper==NULL ) - { - ERR_PRINTF2(KLogMissingWrapper, &wrapperName); - SetBlockResult(EFail); - } - else - { - CFont* font=NULL; - INFO_PRINTF1(_L("execute GetNearestFontToMaxHeightInPixels(CFont*&, TFontSpec, TInt)")); - TInt err=GetBitmapDevice()->GetNearestFontToMaxHeightInPixels(font, fontSpec, maxHeight); - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - else - { - wrapper->SetObjectL(font); - } - } - } - } - -void CT_DataBitmapDevice::DoCmdGetPixel(const TDesC& aSection) - { - // get typeface index from parameters - TPoint point; - if ( !GetPointFromConfig(aSection, KFldPoint(), point) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldPoint()); - SetBlockResult(EFail); - } - else - { - TRgb color; - INFO_PRINTF1(_L("execute GetPixel(TRgb&, const TPoint&)")); - GetBitmapDevice()->GetPixel(color, point); - INFO_PRINTF5(KLogColor, color.Red(), color.Green(), color.Blue(), color.Alpha()); - - TRgb expected; - if ( GetRgbFromConfig(aSection, KFldExpected, expected) ) - { - if ( expected!=color ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - } - -void CT_DataBitmapDevice::DoCmdGetScanLineL(const TDesC& aSection) - { - TBool dataOk=ETrue; - - // get point x coordinate from parameters - TPoint point; - if ( !GetPointFromConfig(aSection, KFldPoint(), point) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldPoint()); - SetBlockResult(EFail); - } - - // get length from parameters - TInt length = 0; - if ( !GetIntFromConfig(aSection, KFldLength(), length) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldLength()); - SetBlockResult(EFail); - } - - // get buffer length from parameters - TInt buffLength = 0; - if ( !GetIntFromConfig(aSection, KFldBuffLength(), buffLength) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldBuffLength()); - SetBlockResult(EFail); - } - - // get display mode from parameters - TDisplayMode displayMode; - if ( !CT_GraphicsUtil::ReadDisplayMode(*this, aSection, KFldDisplayMode(), displayMode) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldDisplayMode()); - SetBlockResult(EFail); - dataOk=EFalse; - } - - if ( dataOk ) - { - // call GetScanLine() - TUint8* buffer = new (ELeave) TUint8[buffLength]; - TPtr8 scanline(buffer, buffLength, buffLength); - - INFO_PRINTF1(_L("execute GetScanLine(TDes8&, const TPoint&, TInt, TDisplayMode)")); - GetBitmapDevice()->GetScanLine(scanline, point, length, displayMode); - - // Check ScanLine. - TBool checkScanLine = EFalse; - if ( !GetBoolFromConfig(aSection, KFldCheckScanLine(), checkScanLine) ) - { - INFO_PRINTF1(KLogDoNotCheckScanLine); - } - else - { - if(!checkScanLine) - { - INFO_PRINTF1(KLogDoNotCheckScanLine); - } - else - { - INFO_PRINTF1(KLogDoCheckScanLine); - - // get length of returned scanline - TInt expectedscanLineBufferLength = 0; - if ( GetIntFromConfig(aSection, KFldScanLineBufferLength, expectedscanLineBufferLength) ) - { - TInt scanlineLen = scanline.Length(); - INFO_PRINTF3(KLogCheckScanLineResult,expectedscanLineBufferLength,scanlineLen); - if(expectedscanLineBufferLength != scanlineLen) - { - ERR_PRINTF3(KLogCheckScanLineResult,expectedscanLineBufferLength,scanlineLen); - SetBlockResult(EFail); - } - } - else - { - //check the scanline got correctlly. - CheckScanLine(aSection,scanline); - } - - } - } - delete [] buffer; - } - } - -void CT_DataBitmapDevice::DoCmdRemoveFile(const TDesC& aSection) - { - TBool dataOk = ETrue; - TInt id; - if ( !GetIntFromConfig(aSection, KFldId(), id) ) - { - TPtrC file; - if ( !GetStringFromConfig(aSection, KFldFile(), file) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldId()); - ERR_PRINTF2(KLogMissingParameter, &KFldFile()); - SetBlockResult(EFail); - } - else - { - TBool found=EFalse; // Filename found in array - for ( TInt index=iFile.Count(); (index>0) && (!found); ) - { - if ( iFile[--index]==file ) - { - id=iId[index]; - iFile.Remove(index); - iId.Remove(index); - found=ETrue; - } - } - if ( !found ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingFilename, &file); - SetBlockResult(EFail); - } - } - } - - if ( dataOk ) - { - INFO_PRINTF1(_L("execute RemoveFile(TInt)")); - GetBitmapDevice()->RemoveFile(id); - } - } - -void CT_DataBitmapDevice::CheckScanLine(const TDesC& aSection,TDes8 &aBuf) - { - INFO_PRINTF1(KLogDoCheckScanLine); - - TBool appendCheckDataOK = ETrue; - TSize bitmapSize; - if ( !GetSizeFromConfig(aSection, KFldSize, bitmapSize) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldSize); - SetBlockResult(EFail); - appendCheckDataOK = EFalse; - } - - TDisplayMode displayMode; - if ( !CT_GraphicsUtil::ReadDisplayMode(*this, aSection, KFldDisplayMode(), displayMode) ) - { - ERR_PRINTF1(_L("No display mode")); - SetBlockResult(EFail); - appendCheckDataOK = EFalse; - } - - TInt pointNum; - if ( !GetIntFromConfig(aSection, KFldPointNum(), pointNum) ) - { - ERR_PRINTF1(_L("No check point num")); - SetBlockResult(EFail); - appendCheckDataOK = EFalse; - } - - TInt scanlineY; - if ( !GetIntFromConfig(aSection, KFldScanlineY, scanlineY) ) - { - ERR_PRINTF1(_L("No check scan line Y")); - SetBlockResult(EFail); - appendCheckDataOK = EFalse; - } - - if (appendCheckDataOK) - { - CFbsBitmap* fbsbitmap = new(ELeave) CFbsBitmap(); - fbsbitmap->Create(bitmapSize,displayMode); - fbsbitmap->SetScanLine(aBuf,scanlineY); - - TBuf tempStore; - - for (TInt i=1;i<=pointNum;i++) - { - TInt x; - tempStore.Format(KFldPointXN, i); - if ( !GetIntFromConfig(aSection, tempStore, x) ) - { - ERR_PRINTF2(KLogMissingParameter, &tempStore); - SetBlockResult(EFail); - appendCheckDataOK=EFalse; - } - TRgb expected; - tempStore.Format(KFldPointRGBN, i); - if ( !GetRgbFromConfig(aSection, tempStore, expected) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldExpected()); - SetBlockResult(EFail); - appendCheckDataOK=EFalse; - } - if(appendCheckDataOK) - { - TRgb actual; - TPoint pixelPoint(x,scanlineY); - fbsbitmap->GetPixel(actual,pixelPoint); - if(actual != expected) - { - ERR_PRINTF3(KLogPoint, x,scanlineY); - ERR_PRINTF5(KLogColorActual, actual.Red(), actual.Green(), actual.Blue(), actual.Alpha()); - ERR_PRINTF5(KLogColorExpected, expected.Red(), expected.Green(), expected.Blue(), expected.Alpha()); - SetBlockResult(EFail); - } - } - } - - delete fbsbitmap; - } - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/gdi/src/T_DataDrawTextExtendedParam.cpp --- a/graphicsapitest/graphicssvs/gdi/src/T_DataDrawTextExtendedParam.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,140 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataDrawTextExtendedParam -*/ - -// User includes -#include "T_DataDrawTextExtendedParam.h" - -/*@{*/ -/// Commands -_LIT(KCmd_new, "new"); -_LIT(KCmd_destructor, "~"); -_LIT(KCmd_iParRightToLeft, "iParRightToLeft"); - -/// Parameters -_LIT(KFldValue, "value"); - -/// Logging -_LIT(KLogError, "Error=%d"); -/*@}*/ - -/** -* Constructor. First phase construction -*/ -CT_DataDrawTextExtendedParam::CT_DataDrawTextExtendedParam() -: CT_DataDrawTextParam() -, iDrawTextExtendedParam(NULL) - { - } - -/** -* Constructor. First phase construction -*/ -CT_DataDrawTextExtendedParam::~CT_DataDrawTextExtendedParam() - { - DestroyData(); - } - -void CT_DataDrawTextExtendedParam::DestroyData() - { - delete iDrawTextExtendedParam; - iDrawTextExtendedParam=NULL; - } - -TAny* CT_DataDrawTextExtendedParam::GetObject() - { - return iDrawTextExtendedParam; - } - -void CT_DataDrawTextExtendedParam::SetObjectL(TAny* aAny) - { - DestroyData(); - iDrawTextExtendedParam=static_cast(aAny); - } - -void CT_DataDrawTextExtendedParam::DisownObjectL() - { - iDrawTextExtendedParam=NULL; - } - -CGraphicsContext::TDrawTextParam* CT_DataDrawTextExtendedParam::GetDrawTextParam() const - { - return iDrawTextExtendedParam; - } - -/** -* Process a command read from the ini file -* -* @param aDataWrapper test step requiring command to be processed -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* -* @return ETrue if the command is processed -*/ -TBool CT_DataDrawTextExtendedParam::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex) - { - TBool ret=ETrue; - if ( aCommand==KCmd_new ) - { - DoCmd_new(); - } - else if ( aCommand==KCmd_destructor ) - { - DoCmd_destructor(); - } - else if ( aCommand==KCmd_iParRightToLeft ) - { - DoCmd_iParRightToLeft(aSection); - } - else - { - ret=CT_DataDrawTextParam::DoCommandL(aCommand, aSection, aAsyncErrorIndex); - } - - return ret; - } - -void CT_DataDrawTextExtendedParam::DoCmd_new() - { - DestroyData(); - TRAPD(err, iDrawTextExtendedParam = new (ELeave) CGraphicsContext::TDrawTextExtendedParam()); - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - } - -void CT_DataDrawTextExtendedParam::DoCmd_destructor() - { - DestroyData(); - CT_DataDrawTextParam::DoCmd_destructor(); - } - -void CT_DataDrawTextExtendedParam::DoCmd_iParRightToLeft(const TDesC& aSection) - { - if ( !GetBoolFromConfig(aSection, KFldValue(), iDrawTextExtendedParam->iParRightToLeft) ) - { - INFO_PRINTF2(_L("iParRightToLeft=%d"), iDrawTextExtendedParam->iParRightToLeft); - } - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/gdi/src/T_DataDrawTextParam.cpp --- a/graphicsapitest/graphicssvs/gdi/src/T_DataDrawTextParam.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,202 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataDrawTextParam -*/ - -// User includes -#include "T_DataDrawTextParam.h" -#include "T_GraphicsUtil.h" - -/*@{*/ -/// Commands -_LIT(KCmd_new, "new"); -_LIT(KCmd_destructor, "~"); -_LIT(KCmd_iDirection, "iDirection"); -_LIT(KCmd_iCharJustNum, "iCharJustNum"); -_LIT(KCmd_iCharJustExcess, "iCharJustExcess"); -_LIT(KCmd_iWordJustNum, "iWordJustNum"); -_LIT(KCmd_iWordJustExcess, "iWordJustExcess"); - -/// Parameters -_LIT(KFldValue, "value"); - -/// Logging -_LIT(KLogError, "Error=%d"); -/*@}*/ - -/** -* Constructor. First phase construction -*/ -CT_DataDrawTextParam::CT_DataDrawTextParam() -: CDataWrapperBase() -, iDrawTextParam(NULL) - { - } - -/** -* Constructor. First phase construction -*/ -CT_DataDrawTextParam::~CT_DataDrawTextParam() - { - DestroyData(); - } - -void CT_DataDrawTextParam::DestroyData() - { - delete iDrawTextParam; - iDrawTextParam=NULL; - } - -TAny* CT_DataDrawTextParam::GetObject() - { - return iDrawTextParam; - } - -void CT_DataDrawTextParam::SetObjectL(TAny* aAny) - { - DestroyData(); - iDrawTextParam=static_cast(aAny); - } - -void CT_DataDrawTextParam::DisownObjectL() - { - iDrawTextParam=NULL; - } - -CGraphicsContext::TDrawTextParam* CT_DataDrawTextParam::GetDrawTextParam() const - { - return iDrawTextParam; - } - -/** -* Process a command read from the ini file -* -* @param aDataWrapper test step requiring command to be processed -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* -* @return ETrue if the command is processed -*/ -TBool CT_DataDrawTextParam::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt /*aAsyncErrorIndex*/) - { - TBool ret=ETrue; - if ( aCommand==KCmd_new ) - { - DoCmd_new(); - } - else if ( aCommand==KCmd_destructor ) - { - DoCmd_destructor(); - } - else if ( aCommand==KCmd_iDirection ) - { - DoCmd_iDirection(aSection); - } - else if ( aCommand==KCmd_iCharJustNum ) - { - DoCmd_iCharJustNum(aSection); - } - else if ( aCommand==KCmd_iCharJustExcess ) - { - DoCmd_iCharJustExcess(aSection); - } - else if ( aCommand==KCmd_iWordJustNum ) - { - DoCmd_iWordJustNum(aSection); - } - else if ( aCommand==KCmd_iWordJustExcess ) - { - DoCmd_iWordJustExcess(aSection); - } - else - { - ret=EFalse; - } - - return ret; - } - -void CT_DataDrawTextParam::DoCmd_new() - { - DestroyData(); - TRAPD(err, iDrawTextParam = new (ELeave) CGraphicsContext::TDrawTextParam()); - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - } - -void CT_DataDrawTextParam::DoCmd_destructor() - { - DestroyData(); - } - -void CT_DataDrawTextParam::DoCmd_iDirection(const TDesC& aSection) - { - CGraphicsContext::TDrawTextParam* textParam=GetDrawTextParam(); - TPtrC deviceName; - if ( !CT_GraphicsUtil::ReadTextDirection(*this, aSection, KFldValue(), textParam->iDirection) ) - { - INFO_PRINTF2(_L("iDirection=%d"), textParam->iDirection); - } - } - -void CT_DataDrawTextParam::DoCmd_iCharJustNum(const TDesC& aSection) - { - CGraphicsContext::TDrawTextParam* textParam=GetDrawTextParam(); - TPtrC deviceName; - if ( !GetIntFromConfig(aSection, KFldValue(), textParam->iCharJustNum) ) - { - INFO_PRINTF2(_L("iCharJustNum=%d"), textParam->iCharJustNum); - } - } - -void CT_DataDrawTextParam::DoCmd_iCharJustExcess(const TDesC& aSection) - { - CGraphicsContext::TDrawTextParam* textParam=GetDrawTextParam(); - TPtrC deviceName; - if ( !GetIntFromConfig(aSection, KFldValue(), textParam->iCharJustExcess) ) - { - INFO_PRINTF2(_L("iCharJustExcess=%d"), textParam->iCharJustExcess); - } - } - -void CT_DataDrawTextParam::DoCmd_iWordJustNum(const TDesC& aSection) - { - CGraphicsContext::TDrawTextParam* textParam=GetDrawTextParam(); - TPtrC deviceName; - if ( !GetIntFromConfig(aSection, KFldValue(), textParam->iWordJustNum) ) - { - INFO_PRINTF2(_L("iWordJustNum=%d"), textParam->iWordJustNum); - } - } - -void CT_DataDrawTextParam::DoCmd_iWordJustExcess(const TDesC& aSection) - { - CGraphicsContext::TDrawTextParam* textParam=GetDrawTextParam(); - TPtrC deviceName; - if ( !GetIntFromConfig(aSection, KFldValue(), textParam->iWordJustExcess) ) - { - INFO_PRINTF2(_L("iWordJustExcess=%d"), textParam->iWordJustExcess); - } - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/gdi/src/T_DataFont.cpp --- a/graphicsapitest/graphicssvs/gdi/src/T_DataFont.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,721 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataFont -*/ - -// User includes -#include "T_DataFont.h" - -// Epoc includes -#include - -/*@{*/ -/// Parameters -_LIT(KText, "text"); -_LIT(KWidthAvailable, "width_available"); -_LIT(KCalculateExcess, "calculate_excess"); -_LIT(KExpectedExcess, "expected_excess"); -_LIT(KExpectedResult, "expected_result"); -_LIT(KExpectedFont, "expected_font"); -_LIT(KCharCode, "char_code"); -_LIT(KUid, "uid"); -_LIT(KMeasureTextOutput, "measure_text_output"); -_LIT(KMeasureTextInput, "measure_text_input"); - -/// Commands -_LIT(KCmdFontCapitalAscent, "FontCapitalAscent"); -_LIT(KCmdFontMaxAscent, "FontMaxAscent"); -_LIT(KCmdFontStandardDescent, "FontStandardDescent"); -_LIT(KCmdFontMaxDescent, "FontMaxDescent"); -_LIT(KCmdFontLineGap, "FontLineGap"); -_LIT(KCmdFontMaxHeight, "FontMaxHeight"); -_LIT(KCmdTypeUid, "TypeUid"); -_LIT(KCmdHeightInPixels, "HeightInPixels"); -_LIT(KCmdAscentInPixels, "AscentInPixels"); -_LIT(KCmdDescentInPixels, "DescentInPixels"); -_LIT(KCmdCharWidthInPixels, "CharWidthInPixels"); -_LIT(KCmdTextCount, "TextCount"); -_LIT(KCmdMaxCharWidthInPixels, "MaxCharWidthInPixels"); -_LIT(KCmdMaxNormalCharWidthInPixels, "MaxNormalCharWidthInPixels"); -_LIT(KCmdFontSpecInTwips, "FontSpecInTwips"); -_LIT(KCmdWidthZeroInPixels, "WidthZeroInPixels"); -_LIT(KCmdBaselineOffsetInPixels, "BaselineOffsetInPixels"); -_LIT(KCmdGetCharacterData, "GetCharacterData"); -_LIT(KCmdMeasureText, "MeasureText"); -_LIT(KCmdExtendedFunction, "ExtendedFunction"); -_LIT(KCmdTextWidthInPixels, "TextWidthInPixels"); -/*@}*/ - -/** -* Constructor. First phase construction -*/ -CT_DataFont::CT_DataFont() -: CDataWrapperBase() - { - } - -/** -* Process a command read from the ini file -* -* @param aDataWrapper test step requiring command to be processed -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* -* @return ETrue if the command is processed -*/ -TBool CT_DataFont::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt /*aAsyncErrorIndex*/) - { - TBool ret=ETrue; - - if (aCommand == KCmdFontCapitalAscent) - { - DoCmdFontCapitalAscent(aSection); - } - else if (aCommand == KCmdFontMaxAscent) - { - DoCmdFontMaxAscent(aSection); - } - else if (aCommand == KCmdFontStandardDescent) - { - DoCmdFontStandardDescent(aSection); - } - else if (aCommand == KCmdFontMaxDescent) - { - DoCmdFontMaxDescent(aSection); - } - else if (aCommand == KCmdFontLineGap) - { - DoCmdFontLineGap(aSection); - } - else if (aCommand == KCmdFontMaxHeight) - { - DoCmdFontMaxHeight(aSection); - } - else if (aCommand == KCmdTypeUid) - { - DoCmdTypeUid(aSection); - } - else if (aCommand == KCmdHeightInPixels) - { - DoCmdHeightInPixels(aSection); - } - else if (aCommand == KCmdAscentInPixels) - { - DoCmdAscentInPixels(aSection); - } - else if (aCommand == KCmdDescentInPixels) - { - DoCmdDescentInPixels(aSection); - } - else if (aCommand == KCmdCharWidthInPixels) - { - DoCmdCharWidthInPixels(aSection); - } - else if (aCommand == KCmdTextCount) - { - DoCmdTextCount(aSection); - } - else if (aCommand == KCmdMaxCharWidthInPixels) - { - DoCmdMaxCharWidthInPixels(aSection); - } - else if (aCommand == KCmdMaxNormalCharWidthInPixels) - { - DoCmdMaxNormalCharWidthInPixels(aSection); - } - else if (aCommand == KCmdFontSpecInTwips) - { - DoCmdFontSpecInTwips(aSection); - } - else if (aCommand == KCmdWidthZeroInPixels) - { - DoCmdWidthZeroInPixels(aSection); - } - else if (aCommand == KCmdBaselineOffsetInPixels) - { - DoCmdBaselineOffsetInPixels(aSection); - } - else if (aCommand == KCmdGetCharacterData) - { - DoCmdGetCharacterData(aSection); - } - else if (aCommand == KCmdMeasureText) - { - DoCmdMeasureTextL(aSection); - } - else if (aCommand == KCmdExtendedFunction) - { - DoCmdExtendedFunction(aSection); - } - else if (aCommand == KCmdTextWidthInPixels) - { - DoCmdTextWidthInPixels(aSection); - } - else - { - ret=EFalse; - } - - return ret; - } - - -////////////////// COMMANDS IMPLEMENTATION //////////////////////// - - -/** Calls CFont::TextCount() */ -void CT_DataFont::DoCmdTextCount(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CFont::TextCount()")); - // get text from parameters - TPtrC text; - if ( !GetStringFromConfig(aSection, KText(), text) ) - { - ERR_PRINTF2(_L("No %S"), &KText()); - SetBlockResult(EFail); - } - - // get available width from parameters - TInt widthAvailable = 0; - if(!GetIntFromConfig(aSection, KWidthAvailable(), widthAvailable)) - { - ERR_PRINTF2(_L("No %S"), &KWidthAvailable()); - SetBlockResult(EFail); - } - - // get if to use version of TextCount() that calculates excess from parameters - TBool calculateExcess = EFalse; - GetBoolFromConfig(aSection, KCalculateExcess(), calculateExcess); - - // call TextCount() - TInt result = KErrNone; - if ( calculateExcess ) - { - TInt excess = 0; - result = GetFont()->TextCount(text, widthAvailable, excess); - - // get expected excess from parameters - TInt expectedExcess = 0; - if ( GetIntFromConfig(aSection, KExpectedExcess(), expectedExcess) ) - { - ERR_PRINTF1(_L("An expected excess should not be provided if calculate excess is set to false.")); - SetBlockResult(EFail); - } - } - else - { - result = GetFont()->TextCount(text, widthAvailable); - } - - // get expected result from parameters - TInt expectedResult = 0; - if ( GetIntFromConfig(aSection, KExpectedResult(), expectedResult) ) - { - if (result != expectedResult) - { - ERR_PRINTF3(_L("The result is not as expected! expected: %d, actual: %d"), expectedResult, result); - SetBlockResult(EFail); - } - } - } - - -/** Calls CFont::TextWidthInPixels() */ -void CT_DataFont::DoCmdTextWidthInPixels(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CFont::TextWidthInPixels()")); - // get text from parameters - TPtrC text; - if (!GetStringFromConfig(aSection, KText(), text)) - { - ERR_PRINTF2(_L("No %S"), &KText()); - SetBlockResult(EFail); - } - - // call TextWidthInPixels() - TInt result = GetFont()->TextWidthInPixels(text); - - // get expected result from parameters - TInt expectedResult = 0; - if(GetIntFromConfig(aSection, KExpectedResult(), expectedResult)) - { - if (result != expectedResult) - { - ERR_PRINTF3(_L("The result is not as expected! expected: %d, actual: %d"), expectedResult, result); - SetBlockResult(EFail); - } - } - } - - -/** Calls CFont::CharWidthInPixels() */ -void CT_DataFont::DoCmdCharWidthInPixels(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CFont::CharWidthInPixels()")); - // get character code from parameters - TInt charCode = 0; - if(!GetIntFromConfig(aSection, KCharCode(), charCode)) - { - ERR_PRINTF2(_L("No %S"), &KCharCode()); - SetBlockResult(EFail); - } - - // call CharWidthInPixels() - TInt result = GetFont()->CharWidthInPixels(charCode); - - // get expected result from parameters - TInt expectedResult = 0; - if ( GetIntFromConfig(aSection, KExpectedResult(), expectedResult) ) - { - if (result != expectedResult) - { - ERR_PRINTF3(_L("The result is not as expected! expected: %d, actual: %d"), expectedResult, result); - SetBlockResult(EFail); - } - } - } - - -/** Calls CFont::FontCapitalAscent() */ -void CT_DataFont::DoCmdFontCapitalAscent(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CFont::FontCapitalAscent()")); - // call FontCapitalAscent() - TInt result = GetFont()->FontCapitalAscent(); - - // get expected result from parameters - TInt expectedResult = 0; - if ( GetIntFromConfig(aSection, KExpectedResult(), expectedResult) ) - { - if (result != expectedResult) - { - ERR_PRINTF3(_L("The result is not as expected! expected: %d, actual: %d"), expectedResult, result); - SetBlockResult(EFail); - } - } - } - - -/** Calls CFont::FontMaxAscent() */ -void CT_DataFont::DoCmdFontMaxAscent(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CFont::FontMaxAscent()")); - // call FontMaxAscent() - TInt result = GetFont()->FontMaxAscent(); - - // get expected result from parameters - TInt expectedResult = 0; - if ( GetIntFromConfig(aSection, KExpectedResult(), expectedResult) ) - { - if (result != expectedResult) - { - ERR_PRINTF3(_L("The result is not as expected! expected: %d, actual: %d"), expectedResult, result); - SetBlockResult(EFail); - } - } - } - - -/** Calls CFont::FontStandardDescent() */ -void CT_DataFont::DoCmdFontStandardDescent(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CFont::FontStandardDescent()")); - // call FontStandardDescent() - TInt result = GetFont()->FontStandardDescent(); - - // get expected result from parameters - TInt expectedResult = 0; - if(GetIntFromConfig(aSection, KExpectedResult(), expectedResult)) - { - if (result != expectedResult) - { - ERR_PRINTF3(_L("The result is not as expected! expected: %d, actual: %d"), expectedResult, result); - SetBlockResult(EFail); - } - } - } - - -/** Calls CFont::FontMaxDescent() */ -void CT_DataFont::DoCmdFontMaxDescent(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CFont::FontMaxDescent()")); - // call FontMaxDescent() - TInt result = GetFont()->FontMaxDescent(); - - // get expected result from parameters - TInt expectedResult = 0; - if(GetIntFromConfig(aSection, KExpectedResult(), expectedResult)) - { - if (result != expectedResult) - { - ERR_PRINTF3(_L("The result is not as expected! expected: %d, actual: %d"), expectedResult, result); - SetBlockResult(EFail); - } - } - } - - -/** Calls CFont::FontLineGap() */ -void CT_DataFont::DoCmdFontLineGap(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CFont::FontLineGap()")); - // call FontLineGap() - TInt result = GetFont()->FontLineGap(); - - // get expected result from parameters - TInt expectedResult = 0; - if(GetIntFromConfig(aSection, KExpectedResult(), expectedResult)) - { - if (result != expectedResult) - { - ERR_PRINTF3(_L("The result is not as expected! expected: %d, actual: %d"), expectedResult, result); - SetBlockResult(EFail); - } - } - } - - -/** Calls CFont::FontMaxHeight() */ -void CT_DataFont::DoCmdFontMaxHeight(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CFont::FontMaxHeight()")); - // call FontMaxHeight() - TInt result = GetFont()->FontMaxHeight(); - - // get expected result from parameters - TInt expectedResult = 0; - if(GetIntFromConfig(aSection, KExpectedResult(), expectedResult)) - { - if (result != expectedResult) - { - ERR_PRINTF3(_L("The result is not as expected! expected: %d, actual: %d"), expectedResult, result); - SetBlockResult(EFail); - } - } - } - - -/** Calls CFont::TypeUid() */ -void CT_DataFont::DoCmdTypeUid(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CFont::TypeUid()")); - // call TypeUid() - TUid result = GetFont()->TypeUid(); - - // get expected result from parameters - TInt expectedResult = 0; - if(GetIntFromConfig(aSection, KExpectedResult(), expectedResult)) - { - if (result != TUid::Uid(expectedResult)) - { - ERR_PRINTF3(_L("The result is not as expected! expected: %d, actual: %d"), expectedResult, result.iUid); - SetBlockResult(EFail); - } - } - } - - -/** Calls CFont::HeightInPixels() */ -void CT_DataFont::DoCmdHeightInPixels(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CFont::HeightInPixels()")); - // call HeightInPixels() - TInt result = GetFont()->HeightInPixels(); - - // get expected result from parameters - TInt expectedResult = 0; - if(GetIntFromConfig(aSection, KExpectedResult(), expectedResult)) - { - if (result != expectedResult) - { - ERR_PRINTF3(_L("The result is not as expected! expected: %d, actual: %d"), expectedResult, result); - SetBlockResult(EFail); - } - } - } - - -/** Calls CFont::AscentInPixels() */ -void CT_DataFont::DoCmdAscentInPixels(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CFont::AscentInPixels()")); - // call AscentInPixels() - TInt result = GetFont()->AscentInPixels(); - - // get expected result from parameters - TInt expectedResult = 0; - if(GetIntFromConfig(aSection, KExpectedResult(), expectedResult)) - { - if (result != expectedResult) - { - ERR_PRINTF3(_L("The result is not as expected! expected: %d, actual: %d"), expectedResult, result); - SetBlockResult(EFail); - } - } - } - - -/** Calls CFont::DescentInPixels() */ -void CT_DataFont::DoCmdDescentInPixels(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CFont::DescentInPixels()")); - // call DescentInPixels() - TInt result = GetFont()->DescentInPixels(); - - // get expected result from parameters - TInt expectedResult = 0; - if(GetIntFromConfig(aSection, KExpectedResult(), expectedResult)) - { - if (result != expectedResult) - { - ERR_PRINTF3(_L("The result is not as expected! expected: %d, actual: %d"), expectedResult, result); - SetBlockResult(EFail); - } - } - } - - -/** Calls CFont::MaxCharWidthInPixels() */ -void CT_DataFont::DoCmdMaxCharWidthInPixels(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CFont::MaxCharWidthInPixels()")); - // call MaxCharWidthInPixels() - TInt result = GetFont()->MaxCharWidthInPixels(); - - // get expected result from parameters - TInt expectedResult = 0; - if(GetIntFromConfig(aSection, KExpectedResult(), expectedResult)) - { - if (result != expectedResult) - { - ERR_PRINTF3(_L("The result is not as expected! expected: %d, actual: %d"), expectedResult, result); - SetBlockResult(EFail); - } - } - } - - -/** Calls CFont::MaxNormalCharWidthInPixels() */ -void CT_DataFont::DoCmdMaxNormalCharWidthInPixels(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CFont::MaxNormalCharWidthInPixels()")); - // call MaxNormalCharWidthInPixels() - TInt result = GetFont()->MaxNormalCharWidthInPixels(); - - // get expected result from parameters - TInt expectedResult = 0; - if(GetIntFromConfig(aSection, KExpectedResult(), expectedResult)) - { - if (result != expectedResult) - { - ERR_PRINTF3(_L("The result is not as expected! expected: %d, actual: %d"), expectedResult, result); - SetBlockResult(EFail); - } - } - } - - -/** Calls CFont::FontSpecInTwips() */ -void CT_DataFont::DoCmdFontSpecInTwips(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CFont::FontSpecInTwips()")); - - // call FontSpecInTwips() - TFontSpec fontSpec=GetFont()->FontSpecInTwips(); - INFO_PRINTF3(_L("iName %S, iHeight %d"), &fontSpec.iTypeface.iName,fontSpec.iHeight); - - TFontSpec expectedFontSpec; - if(GetFontSpecFromConfig(aSection, KExpectedFont(), expectedFontSpec)) - { - // just check font name - if( fontSpec.iTypeface.iName!=expectedFontSpec.iTypeface.iName) - { - ERR_PRINTF3(_L("The result is not as expected! expected font: %S, actual font: %S"), - &expectedFontSpec.iTypeface.iName, &fontSpec.iTypeface.iName); - SetError(-1); - } - } - } - - -/** Calls CFont::WidthZeroInPixels() */ -void CT_DataFont::DoCmdWidthZeroInPixels(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CFont::WidthZeroInPixels()")); - // call WidthZeroInPixels() - TInt result = GetFont()->WidthZeroInPixels(); - - // get expected result from parameters - TInt expectedResult = 0; - if(GetIntFromConfig(aSection, KExpectedResult(), expectedResult)) - { - if (result != expectedResult) - { - ERR_PRINTF3(_L("The result is not as expected! expected: %d, actual: %d"), expectedResult, result); - SetBlockResult(EFail); - } - } - } - - -/** Calls CFont::BaselineOffsetInPixels() */ -void CT_DataFont::DoCmdBaselineOffsetInPixels(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CFont::BaselineOffsetInPixels()")); - // call BaselineOffsetInPixels() - TInt result = GetFont()->BaselineOffsetInPixels(); - - // get expected result from parameters - TInt expectedResult = 0; - if(GetIntFromConfig(aSection, KExpectedResult(), expectedResult)) - { - if (result != expectedResult) - { - ERR_PRINTF3(_L("The result is not as expected! expected: %d, actual: %d"), expectedResult, result); - SetBlockResult(EFail); - } - } - } - - -/** Calls CFont::GetCharacterData() */ -void CT_DataFont::DoCmdGetCharacterData(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CFont::GetCharacterData()")); - // get character code from parameters - TInt charCode = 0; - if(!GetIntFromConfig(aSection, KCharCode(), charCode)) - { - ERR_PRINTF2(_L("No %S"), &KCharCode()); - SetBlockResult(EFail); - } - - // call GetCharacterData() - TUint code = charCode; - TOpenFontCharMetrics metrics; - const TUint8* bitmapPointer; - TSize bitmapSize; - CFont::TCharacterDataAvailability ret=GetFont()->GetCharacterData(code, metrics, bitmapPointer, bitmapSize); - INFO_PRINTF2(_L("CharacterDataAvailability %d"), ret); - INFO_PRINTF2(_L("Height %d"), bitmapSize.iHeight); - INFO_PRINTF2(_L("Width %d"), bitmapSize.iWidth); - } - - -/** Calls CFont::ExtendedFunction() */ -void CT_DataFont::DoCmdExtendedFunction(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CFont::ExtendedFunction()")); - // get function UID from parameters - TInt uidInt = 0; - if(!GetHexFromConfig(aSection, KUid(), uidInt)) - { - ERR_PRINTF2(_L("No %S"), &KUid()); - SetBlockResult(EFail); - } - - // call ExtendedFunction() - TInt result=GetFont()->ExtendedFunction(TUid::Uid(uidInt), NULL); - - // get expected result from parameters - TInt expectedResult = 0; - if ( GetIntFromConfig(aSection, KExpectedResult(), expectedResult) ) - { - if (result != expectedResult) - { - ERR_PRINTF3(_L("The result is not as expected! expected: %d, actual: %d"), expectedResult, result); - SetBlockResult(EFail); - } - } - } - - -/** Calls CFbsFont::MeasureText() */ -void CT_DataFont::DoCmdMeasureTextL(const TDesC& aSection) - { - CFont::TMeasureTextInput* measureTextInputPointer = NULL; - GetMeasureTextInputL(*this, KMeasureTextInput(), aSection, measureTextInputPointer); - if ( measureTextInputPointer==NULL ) - { - INFO_PRINTF1(_L("measureTextInputPointer NULL")); - } - - CFont::TMeasureTextOutput* measureTextOutputPointer = NULL; - GetMeasureTextOutputL(*this, KMeasureTextOutput(), aSection, measureTextOutputPointer); - if ( measureTextOutputPointer==NULL ) - { - INFO_PRINTF1(_L("measureTextOutputPointer NULL")); - } - - // get text from parameters - TPtrC text; - if (!GetStringFromConfig(aSection, KText(), text)) - { - ERR_PRINTF2(_L("No %S"), &KText()); - SetBlockResult(EFail); - } - else - { - TInt width=GetFont()->MeasureText(text, measureTextInputPointer, measureTextOutputPointer); - INFO_PRINTF2(_L("MeasureText %d"), width); - } - } - - -////////////////// UTIL METHODS //////////////////////// - - -/** -* Utility method that fetches TMeasureTextInput pointer by command parameter name from INI-file. -*/ -TBool CT_DataFont::GetMeasureTextInputL(CDataWrapper& aDataWrapper, const TDesC& aParameterName, const TDesC& aSection, CFont::TMeasureTextInput*& aMeasureTextInput) - { - // get MeasureTextInputData object from parameters - TPtrC measureTextInputDataObjectName; - TBool ret=aDataWrapper.GetStringFromConfig(aSection, aParameterName, measureTextInputDataObjectName); - if ( ret ) - { - // check that the data object was found - aMeasureTextInput=static_cast(aDataWrapper.GetDataObjectL(measureTextInputDataObjectName)); - } - - return ret; - } - - -/** -* Utility method that fetches TMeasureTextOutput pointer by command parameter name from INI-file. -*/ -TBool CT_DataFont::GetMeasureTextOutputL(CDataWrapper& aDataWrapper, const TDesC& aParameterName, const TDesC& aSection, CFont::TMeasureTextOutput*& aMeasureTextOutput) - { - // get MeasureTextOutputData object from parameters - TPtrC measureTextOutputDataObjectName; - TBool ret=aDataWrapper.GetStringFromConfig(aSection, aParameterName, measureTextOutputDataObjectName); - if ( ret ) - { - // check that the data object was found - aMeasureTextOutput=static_cast(aDataWrapper.GetDataObjectL(measureTextOutputDataObjectName)); - } - - return ret; - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/gdi/src/T_DataGraphicsContext.cpp --- a/graphicsapitest/graphicssvs/gdi/src/T_DataGraphicsContext.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1463 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataGraphicsContext -*/ - -// User includes -#include "T_DataGraphicsContext.h" -#include "T_GraphicsUtil.h" - -/*@{*/ -/// Commands -_LIT(KCmdCancelClippingRect, "CancelClippingRect"); -_LIT(KCmdCancelClippingRegion, "CancelClippingRegion"); -_LIT(KCmdDevice, "Device"); -_LIT(KCmdDiscardBrushPattern, "DiscardBrushPattern"); -_LIT(KCmdDiscardFont, "DiscardFont"); -_LIT(KCmdDrawArc, "DrawArc"); -_LIT(KCmdDrawBitmap, "DrawBitmap"); -_LIT(KCmdDrawBitmapMasked, "DrawBitmapMasked"); -_LIT(KCmdDrawEllipse, "DrawEllipse"); -_LIT(KCmdDrawLine, "DrawLine"); -_LIT(KCmdDrawLineBy, "DrawLineBy"); -_LIT(KCmdDrawLineTo, "DrawLineTo"); -_LIT(KCmdDrawPie, "DrawPie"); -_LIT(KCmdDrawPolygon, "DrawPolygon"); -_LIT(KCmdDrawPolyLine, "DrawPolyLine"); -_LIT(KCmdDrawRect, "DrawRect"); -_LIT(KCmdDrawRoundRect, "DrawRoundRect"); -_LIT(KCmdDrawText, "DrawText"); -_LIT(KCmdDrawTextExtended, "DrawTextExtended"); -_LIT(KCmdDrawTextVertical, "DrawTextVertical"); -_LIT(KCmdGetShadowColor, "GetShadowColor"); -_LIT(KCmdGetUnderlineMetrics, "GetUnderlineMetrics"); -_LIT(KCmdJustificationInPixels, "JustificationInPixels"); -_LIT(KCmdMapColors, "MapColors"); -_LIT(KCmdMoveBy, "MoveBy"); -_LIT(KCmdMoveTo, "MoveTo"); -_LIT(KCmdPlot, "Plot"); -_LIT(KCmdReserved, "Reserved"); -_LIT(KCmdReset, "Reset"); -_LIT(KCmdSetBrushColor, "SetBrushColor"); -_LIT(KCmdSetBrushOrigin, "SetBrushOrigin"); -_LIT(KCmdSetBrushStyle, "SetBrushStyle"); -_LIT(KCmdSetClippingRegion, "SetClippingRegion"); -_LIT(KCmdSetCharJustification, "SetCharJustification"); -_LIT(KCmdSetClippingRect, "SetClippingRect"); -_LIT(KCmdSetDrawMode, "SetDrawMode"); -_LIT(KCmdSetOrigin, "SetOrigin"); -_LIT(KCmdSetPenColor, "SetPenColor"); -_LIT(KCmdSetPenSize, "SetPenSize"); -_LIT(KCmdSetPenStyle, "SetPenStyle"); -_LIT(KCmdSetShadowColor, "SetShadowColor"); -_LIT(KCmdSetStrikethroughStyle, "SetStrikethroughStyle"); -_LIT(KCmdSetUnderlineStyle, "SetUnderlineStyle"); -_LIT(KCmdSetWordJustification, "SetWordJustification"); -_LIT(KCmdUseBrushPattern, "UseBrushPattern"); -_LIT(KCmdUseFont, "UseFont"); - -/// Parameters -_LIT(KFldBaselineOffset, "baselineoffset"); -_LIT(KFldBitmap, "bitmap"); -_LIT(KFldBottom, "bottom"); -_LIT(KFldBrushStyle, "brushstyle"); -_LIT(KFldColor, "color"); -_LIT(KFldDestRect, "destrect"); -_LIT(KFldDevice, "device"); -_LIT(KFldDrawMode, "drawmode"); -_LIT(KFldExcessPixels, "excessPixels"); -_LIT(KFldExcessWidth, "excesswidth"); -_LIT(KFldExpected, "expected"); -_LIT(KFldFillRule, "fillrule"); -_LIT(KFldFirstUnit, "firstUnit"); -_LIT(KFldFont, "font"); -_LIT(KFldFontStrikethrough, "fontstrikethrough"); -_LIT(KFldFontUnderline, "fontunderline"); -_LIT(KFldEnd, "end"); -_LIT(KFldInvertMask, "invertmask"); -_LIT(KFldLeftMargin, "leftmargin"); -_LIT(KFldMapForwards, "mapforwards"); -_LIT(KFldMaskBitmap, "maskbitmap"); -_LIT(KFldNumChars, "numchars"); -_LIT(KFldNumColors, "numcolors"); -_LIT(KFldNumGaps, "numgaps"); -_LIT(KFldNumPoints, "numpoints"); -_LIT(KFldNumUnits, "numunits"); -_LIT(KFldPenStyle, "penstyle"); -_LIT(KFldPoint, "point"); -_LIT(KFldPoint1, "point1"); -_LIT(KFldPoint2, "point2"); -_LIT(KFldPointList, "pointlist"); -_LIT(KFldRect, "rect"); -_LIT(KFldRegion, "region"); -_LIT(KFldRgb, "rgb"); -_LIT(KFldRgbList, "rgblist"); -_LIT(KFldSourceRect, "sourcerect"); -_LIT(KFldSize, "size"); -_LIT(KFldStart, "start"); -_LIT(KFldText, "text"); -_LIT(KFldTextAlign, "textalign"); -_LIT(KFldTextExtendedParam, "textextendedparam"); -_LIT(KFldTop, "top"); -_LIT(KFldTopLeft, "topleft"); -_LIT(KFldTotalUnits, "totalUnits"); -_LIT(KFldUp, "up"); -_LIT(KFldWsBitmap, "wsbitmap"); - -/// Logging -_LIT(KLogColor, "Color Red=%d Green=%d Blue=%d Alpha=%d"); -_LIT(KLogError, "Error=%d"); -_LIT(KLogMetrics, "Top=%d Bottom=%d"); -_LIT(KLogMissingParameter, "Missing parameter '%S'"); -_LIT(KLogNotExpectedValue, "Not expected value"); -/*@}*/ - -/** -* Constructor. First phase construction -*/ -CT_DataGraphicsContext::CT_DataGraphicsContext() -: CDataWrapperBase() - { - } - -/** -* Process a command read from the ini file -* -* @param aDataWrapper test step requiring command to be processed -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* -* @return ETrue if the command is processed -*/ -TBool CT_DataGraphicsContext::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt /*aAsyncErrorIndex*/) - { - TBool ret=ETrue; - if ( aCommand==KCmdCancelClippingRect ) - { - DoCmdCancelClippingRect(); - } - else if ( aCommand==KCmdCancelClippingRegion ) - { - DoCmdCancelClippingRegion(); - } - else if ( aCommand==KCmdDevice ) - { - DoCmdDeviceL(aSection); - } - else if ( aCommand==KCmdDiscardBrushPattern ) - { - DoCmdDiscardBrushPattern(); - } - else if ( aCommand==KCmdDiscardFont ) - { - DoCmdDiscardFont(); - } - else if ( aCommand==KCmdDrawArc ) - { - DoCmdDrawArc(aSection); - } - else if ( aCommand==KCmdDrawBitmap ) - { - DoCmdDrawBitmapL(aSection); - } - else if ( aCommand==KCmdDrawBitmapMasked ) - { - DoCmdDrawBitmapMaskedL(aSection); - } - else if ( aCommand==KCmdDrawEllipse ) - { - DoCmdDrawEllipse(aSection); - } - else if ( aCommand==KCmdDrawLine ) - { - DoCmdDrawLine(aSection); - } - else if ( aCommand==KCmdDrawLineBy ) - { - DoCmdDrawLineBy(aSection); - } - else if ( aCommand==KCmdDrawLineTo ) - { - DoCmdDrawLineTo(aSection); - } - else if ( aCommand==KCmdDrawPie ) - { - DoCmdDrawPie(aSection); - } - else if ( aCommand==KCmdDrawPolygon ) - { - DoCmdDrawPolygonL(aSection); - } - else if ( aCommand==KCmdDrawPolyLine ) - { - DoCmdDrawPolyLineL(aSection); - } - else if ( aCommand==KCmdDrawRect ) - { - DoCmdDrawRect(aSection); - } - else if ( aCommand==KCmdDrawRoundRect ) - { - DoCmdDrawRoundRect(aSection); - } - else if ( aCommand==KCmdDrawText ) - { - DoCmdDrawText(aSection); - } - else if ( aCommand==KCmdDrawTextExtended ) - { - DoCmdDrawTextExtendedL(aSection); - } - else if ( aCommand==KCmdDrawTextVertical ) - { - DoCmdDrawTextVertical(aSection); - } - else if ( aCommand==KCmdGetShadowColor ) - { - DoCmdGetShadowColor(aSection); - } - else if ( aCommand==KCmdGetUnderlineMetrics ) - { - DoCmdGetUnderlineMetrics(aSection); - } - else if ( aCommand==KCmdJustificationInPixels ) - { - DoCmdJustificationInPixels(aSection); - } - else if ( aCommand==KCmdMapColors ) - { - DoCmdMapColorsL(aSection); - } - else if ( aCommand==KCmdMoveBy ) - { - DoCmdMoveBy(aSection); - } - else if ( aCommand==KCmdMoveTo ) - { - DoCmdMoveTo(aSection); - } - else if ( aCommand==KCmdPlot ) - { - DoCmdPlot(aSection); - } - else if ( aCommand==KCmdReserved ) - { - DoCmdReserved(); - } - else if ( aCommand==KCmdReset ) - { - DoCmdReset(); - } - else if ( aCommand==KCmdSetBrushColor ) - { - DoCmdSetBrushColor(aSection); - } - else if ( aCommand==KCmdSetBrushOrigin ) - { - DoCmdSetBrushOrigin(aSection); - } - else if ( aCommand==KCmdSetBrushStyle ) - { - DoCmdSetBrushStyle(aSection); - } - else if ( aCommand==KCmdSetClippingRegion ) - { - DoCmdSetClippingRegion(aSection); - } - else if ( aCommand==KCmdSetCharJustification ) - { - DoCmdSetCharJustification(aSection); - } - else if ( aCommand==KCmdSetClippingRect ) - { - DoCmdSetClippingRect(aSection); - } - else if ( aCommand==KCmdSetDrawMode ) - { - DoCmdSetDrawMode(aSection); - } - else if ( aCommand==KCmdSetOrigin ) - { - DoCmdSetOrigin(aSection); - } - else if ( aCommand==KCmdSetPenColor ) - { - DoCmdSetPenColor(aSection); - } - else if ( aCommand==KCmdSetPenSize ) - { - DoCmdSetPenSize(aSection); - } - else if ( aCommand==KCmdSetPenStyle ) - { - DoCmdSetPenStyle(aSection); - } - else if ( aCommand==KCmdSetShadowColor ) - { - DoCmdSetShadowColor(aSection); - } - else if ( aCommand==KCmdSetStrikethroughStyle ) - { - DoCmdSetStrikethroughStyle(aSection); - } - else if ( aCommand==KCmdSetUnderlineStyle ) - { - DoCmdSetUnderlineStyle(aSection); - } - else if ( aCommand==KCmdSetWordJustification ) - { - DoCmdSetWordJustification(aSection); - } - else if ( aCommand==KCmdUseBrushPattern ) - { - DoCmdUseBrushPatternL(aSection); - } - else if ( aCommand==KCmdUseFont ) - { - DoCmdUseFontL(aSection); - } - else - { - ret=EFalse; - } - - return ret; - } - -void CT_DataGraphicsContext::DoCmdCancelClippingRect() - { - INFO_PRINTF1(_L("execute CancelClippingRect()")); - GetGraphicsContext()->CancelClippingRect(); - } - -void CT_DataGraphicsContext::DoCmdCancelClippingRegion() - { - INFO_PRINTF1(_L("execute CancelClippingRegion()")); - GetGraphicsContext()->CancelClippingRegion(); - } - -void CT_DataGraphicsContext::DoCmdDeviceL(const TDesC& aSection) - { - INFO_PRINTF1(_L("execute Device()")); - CGraphicsDevice* device = GetGraphicsContext()->Device(); - TPtrC deviceName; - if ( GetStringFromConfig(aSection, KFldDevice(), deviceName) ) - { - // check that the data object was found - CDataWrapper* dataWrapper=GetDataWrapperL(deviceName); - dataWrapper->SetObjectL(device); - } - } - -void CT_DataGraphicsContext::DoCmdDiscardBrushPattern() - { - INFO_PRINTF1(_L("execute DiscardBrushPattern()")); - GetGraphicsContext()->DiscardBrushPattern(); - } - -void CT_DataGraphicsContext::DoCmdDiscardFont() - { - INFO_PRINTF1(_L("execute DiscardFont()")); - GetGraphicsContext()->DiscardFont(); - } - -void CT_DataGraphicsContext::DoCmdDrawArc(const TDesC& aSection) - { - TBool dataOk=ETrue; - - // Get test data for command input parameter(s) - TRect datRect; - if ( !GetRectFromConfig(aSection, KFldRect, datRect) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldRect()); - SetBlockResult(EFail); - } - - TPoint datStart; - if ( !GetPointFromConfig(aSection, KFldStart, datStart) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldStart()); - SetBlockResult(EFail); - } - - TPoint datEnd; - if ( !GetPointFromConfig(aSection, KFldEnd, datEnd) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldEnd()); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - INFO_PRINTF1(_L("execute DrawArc(TRect, TPoint, TPoint)")); - GetGraphicsContext()->DrawArc(datRect, datStart, datEnd); - } - } - -void CT_DataGraphicsContext::DoCmdDrawBitmapL(const TDesC& aSection) - { - TBool dataOk=ETrue; - - CFbsBitmap* bitmap=NULL; - if ( !CT_GraphicsUtil::GetFbsBitmapL(*this, aSection, KFldBitmap, bitmap) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldBitmap()); - SetBlockResult(EFail); - } - - TPoint datTopLeft; - if ( GetPointFromConfig(aSection, KFldTopLeft, datTopLeft) ) - { - if ( dataOk ) - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute DrawBitmap(TPoint, CFbsBitmap*)")); - GetGraphicsContext()->DrawBitmap(datTopLeft, bitmap); - } - } - else - { - TRect datDestRect; - if ( !GetRectFromConfig(aSection, KFldDestRect, datDestRect) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldDestRect()); - SetBlockResult(EFail); - } - - TRect datSourceRect; - if ( GetRectFromConfig(aSection, KFldSourceRect, datSourceRect) ) - { - if ( dataOk ) - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute DrawBitmap(TRect, CFbsBitmap*, TRect)")); - GetGraphicsContext()->DrawBitmap(datDestRect, bitmap, datSourceRect); - } - } - else - { - if ( dataOk ) - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute DrawBitmap(TRect, CFbsBitmap*)")); - GetGraphicsContext()->DrawBitmap(datDestRect, bitmap); - } - } - } - } - -void CT_DataGraphicsContext::DoCmdDrawBitmapMaskedL(const TDesC& aSection) - { - TBool dataOk=ETrue; - - // Get test data for command input parameter(s) - TRect datDestRect; - if ( !GetRectFromConfig(aSection, KFldDestRect, datDestRect) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldDestRect()); - SetBlockResult(EFail); - } - - TRect datSourceRect; - if ( !GetRectFromConfig(aSection, KFldSourceRect, datSourceRect) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldSourceRect()); - SetBlockResult(EFail); - } - - TBool datInvertMask; - if ( !GetBoolFromConfig(aSection, KFldInvertMask, datInvertMask) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldInvertMask()); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - CWsBitmap* wsBitmap = NULL; - if ( CT_GraphicsUtil::GetWsBitmapL(*this, aSection, KFldWsBitmap, wsBitmap) ) - { - CWsBitmap* mask=NULL; - CT_GraphicsUtil::GetWsBitmapL(*this, aSection, KFldMaskBitmap, mask); - - // Execute command and log parameters - INFO_PRINTF1(_L("execute DrawBitmapMasked(TRect, CWsBitmap*, TRect, CWsBitmap*, TBool)")); - GetGraphicsContext()->DrawBitmapMasked(datDestRect, wsBitmap, datSourceRect, mask, datInvertMask); - } - else - { - CFbsBitmap* fbsBitmap = NULL; - if ( CT_GraphicsUtil::GetFbsBitmapL(*this, aSection, KFldBitmap, fbsBitmap) ) - { - CFbsBitmap* mask=NULL; - CT_GraphicsUtil::GetFbsBitmapL(*this, aSection, KFldMaskBitmap, mask); - - // Execute command and log parameters - INFO_PRINTF1(_L("execute DrawBitmapMasked(TRect, CFbsBitmap*, TRect, CFbsBitmap*, TBool)")); - GetGraphicsContext()->DrawBitmapMasked(datDestRect, fbsBitmap, datSourceRect, mask, datInvertMask); - } - else - { - ERR_PRINTF2(KLogMissingParameter, &KFldWsBitmap()); - ERR_PRINTF2(KLogMissingParameter, &KFldBitmap()); - SetBlockResult(EFail); - } - } - } - } - -void CT_DataGraphicsContext::DoCmdDrawEllipse(const TDesC& aSection) - { - // Get test data for command input parameter(s) - TRect datRect; - if ( !GetRectFromConfig(aSection, KFldRect, datRect) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldRect()); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("execute DrawEllipse(TRect)")); - GetGraphicsContext()->DrawEllipse(datRect); - } - } - -void CT_DataGraphicsContext::DoCmdDrawLine(const TDesC& aSection) - { - TBool dataOk=ETrue; - - // Get test data for command input parameter(s) - TPoint datPoint1; - if ( !GetPointFromConfig(aSection, KFldPoint1, datPoint1) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldPoint1()); - SetBlockResult(EFail); - } - - TPoint datPoint2; - if ( !GetPointFromConfig(aSection, KFldPoint2, datPoint2) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldPoint2()); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute DrawLine(TPoint, TPoint)")); - GetGraphicsContext()->DrawLine(datPoint1, datPoint2); - } - } - -void CT_DataGraphicsContext::DoCmdDrawLineBy(const TDesC& aSection) - { - // Get test data for command input parameter(s) - TPoint datPoint; - if ( !GetPointFromConfig(aSection, KFldPoint, datPoint) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldPoint()); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute DrawLineBy(TPoint)")); - GetGraphicsContext()->DrawLineBy(datPoint); - } - } - -void CT_DataGraphicsContext::DoCmdDrawLineTo(const TDesC& aSection) - { - // Get test data for command input parameter(s) - TPoint datPoint; - if ( !GetPointFromConfig(aSection, KFldPoint, datPoint) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldPoint()); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute DrawLineTo(TPoint)")); - GetGraphicsContext()->DrawLineTo(datPoint); - } - } - -void CT_DataGraphicsContext::DoCmdDrawPie(const TDesC& aSection) - { - TBool dataOk=ETrue; - - // Get test data for command input parameter(s) - TRect datRect; - if ( !GetRectFromConfig(aSection, KFldRect, datRect) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldRect()); - SetBlockResult(EFail); - } - - TPoint datStart; - if ( !GetPointFromConfig(aSection, KFldStart, datStart) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldStart()); - SetBlockResult(EFail); - } - - TPoint datEnd; - if ( !GetPointFromConfig(aSection, KFldEnd, datEnd) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldEnd()); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute DrawPie(TRect, TPoint, TPoint)")); - GetGraphicsContext()->DrawPie(datRect, datStart, datEnd); - } - } - -void CT_DataGraphicsContext::DoCmdDrawPolygonL(const TDesC& aSection) - { - TInt err=KErrNone; - - // Get test data for command input parameter(s) - CGraphicsContext::TFillRule datFillRule=CGraphicsContext::EAlternate; - CT_GraphicsUtil::ReadFillRule(*this, aSection, KFldFillRule, datFillRule); - - TInt datNumPoints; - if ( GetIntFromConfig(aSection, KFldNumPoints, datNumPoints) ) - { - TPoint* points=new (ELeave) TPoint[datNumPoints]; - CleanupArrayDeletePushL(points); - - if ( !GetPointListFromConfig(aSection, KFldPointList, datNumPoints, points) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldPointList()); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute DrawPolygon(TPoint*, TInt, TFillRule)")); - err=GetGraphicsContext()->DrawPolygon(points, datNumPoints, datFillRule); - } - CleanupStack::PopAndDestroy(points); - } - else - { - CArrayFix* points=new (ELeave) CArrayFixFlat(1); - CleanupStack::PushL(points); - TBool hasPointList=GetPointListFromConfigL(aSection, KFldPointList, *points); - - if ( !hasPointList ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldPointList()); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute DrawPolygon(CArrayFix*, TFillRule)")); - err=GetGraphicsContext()->DrawPolygon(points, datFillRule); - } - CleanupStack::PopAndDestroy(points); - } - - // Check the command return code, if !=KErrNone then stop this command - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - } - -void CT_DataGraphicsContext::DoCmdDrawPolyLineL(const TDesC& aSection) - { - // Get test data for command input parameter(s) - TInt numPoints; - if ( GetIntFromConfig(aSection, KFldNumPoints, numPoints) ) - { - TPoint* points=new (ELeave) TPoint[numPoints]; - CleanupArrayDeletePushL(points); - - if ( !GetPointListFromConfig(aSection, KFldPointList, numPoints, points) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldPointList()); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute DrawPolyLine(TPoint*, TInt)")); - GetGraphicsContext()->DrawPolyLine(points, numPoints); - } - CleanupStack::PopAndDestroy(points); - } - else - { - CArrayFix* points=new (ELeave) CArrayFixFlat(1); - CleanupStack::PushL(points); - TBool hasPointList=GetPointListFromConfigL(aSection, KFldPointList, *points); - - if ( !hasPointList ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldPointList()); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute DrawPolyLine(CArrayFix*)")); - GetGraphicsContext()->DrawPolyLine(points); - } - CleanupStack::PopAndDestroy(points); - } - } - -void CT_DataGraphicsContext::DoCmdDrawRect(const TDesC& aSection) - { - // Get test data for command input parameter(s) - TRect rect; - if ( !GetRectFromConfig(aSection, KFldRect, rect) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldRect()); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute DrawRect(TRect)")); - GetGraphicsContext()->DrawRect(rect); - } - } - -void CT_DataGraphicsContext::DoCmdDrawRoundRect(const TDesC& aSection) - { - TBool dataOk=ETrue; - - // Get test data for command input parameter(s) - TRect rect; - if ( !GetRectFromConfig(aSection, KFldRect, rect) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldRect()); - SetBlockResult(EFail); - } - - TSize size; - if ( !GetSizeFromConfig(aSection, KFldSize, size) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldSize()); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute DrawRoundRect(TRect, TSize)")); - GetGraphicsContext()->DrawRoundRect(rect, size); - } - } - -void CT_DataGraphicsContext::DoCmdDrawText(const TDesC& aSection) - { - TBool dataOk=ETrue; - TPtrC text; - if( !GetStringFromConfig(aSection, KFldText(), text) ) - { - dataOk=EFalse; - ERR_PRINTF2(_L("Missing parameter %S"), &KFldText()); - SetBlockResult(EFail); - } - - TPoint point; - if( GetPointFromConfig(aSection, KFldPoint(), point)) - { - if ( dataOk ) - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute DrawText(const TDesC&, const TPoint &)")); - GetGraphicsContext()->DrawText(text, point); - } - } - else - { - TRect rect; - if ( GetRectFromConfig(aSection, KFldRect(), rect) ) - { - TInt baselineOffset=0; - if ( !GetIntFromConfig(aSection, KFldBaselineOffset(), baselineOffset)) - { - dataOk=EFalse; - ERR_PRINTF2(_L("Missing parameter %S"), &KFldBaselineOffset()); - SetBlockResult(EFail); - } - - CGraphicsContext::TTextAlign textAlign=CGraphicsContext::ELeft; - CT_GraphicsUtil::ReadTextAlign(*this, aSection, KFldTextAlign, textAlign); - - TInt leftMargin=0; - GetIntFromConfig(aSection, KFldLeftMargin(), leftMargin); - if( dataOk ) - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute DrawText(const TDesC&, const TRect&, TInt, TTextAlign, TInt)")); - GetGraphicsContext()->DrawText(text, rect, baselineOffset, textAlign, leftMargin); - } - } - else - { - dataOk=EFalse; - ERR_PRINTF2(_L("Missing parameter %S"), &KFldRect()); - SetBlockResult(EFail); - } - } - } - -void CT_DataGraphicsContext::DoCmdDrawTextExtendedL(const TDesC& aSection) - { - TBool dataOk=ETrue; - TPtrC text; - if( !GetStringFromConfig(aSection, KFldText(), text) ) - { - dataOk=EFalse; - ERR_PRINTF2(_L("Missing parameter %S"), &KFldText()); - SetBlockResult(EFail); - } - - TPoint point; - if( !GetPointFromConfig(aSection, KFldPoint(), point)) - { - dataOk=EFalse; - ERR_PRINTF2(_L("Missing parameter %S"), &KFldPoint()); - SetBlockResult(EFail); - } - - CGraphicsContext::TDrawTextExtendedParam* drawTextExtendedParam=NULL; - if ( !CT_GraphicsUtil::GetDrawTextExtendedParamL(*this, aSection, KFldTextExtendedParam(), drawTextExtendedParam) ) - { - dataOk=EFalse; - ERR_PRINTF2(_L("Missing parameter %S"), &KFldTextExtendedParam()); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - INFO_PRINTF1(_L("execute DrawTextExtended(const TDesC&, TPoint, CGraphicsContext::TDrawTextExtendedParam)")); - TInt err=GetGraphicsContext()->DrawTextExtended(text, point, *drawTextExtendedParam); - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - } - } - -void CT_DataGraphicsContext::DoCmdDrawTextVertical(const TDesC& aSection) - { - TBool dataOk=ETrue; - TPtrC text; - if( !GetStringFromConfig(aSection, KFldText(), text) ) - { - dataOk=EFalse; - ERR_PRINTF2(_L("Missing parameter %S"), &KFldText()); - SetBlockResult(EFail); - } - - TBool up=EFalse; - if( !GetBoolFromConfig(aSection, KFldUp(), up)) - { - dataOk=EFalse; - ERR_PRINTF2(_L("Missing parameter %S"), &KFldUp()); - SetBlockResult(EFail); - } - - TPoint point; - if( GetPointFromConfig(aSection, KFldPoint(), point)) - { - if ( dataOk ) - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute DrawTextVertical(const TDesC&, const TPoint &, TBool)")); - GetGraphicsContext()->DrawTextVertical(text, point, up); - } - } - else - { - // Another overload DrawTextVertical function - TRect rect; - if( !GetRectFromConfig(aSection, KFldRect(), rect) ) - { - dataOk=EFalse; - ERR_PRINTF2(_L("Missing parameter %S"), &KFldRect()); - SetBlockResult(EFail); - } - - TInt baselineOffset=0; - if ( !GetIntFromConfig(aSection, KFldBaselineOffset(), baselineOffset)) - { - dataOk=EFalse; - ERR_PRINTF2(_L("Missing parameter %S"), &KFldBaselineOffset()); - SetBlockResult(EFail); - } - - CGraphicsContext::TTextAlign textAlign=CGraphicsContext::ELeft; - CT_GraphicsUtil::ReadTextAlign(*this, aSection, KFldTextAlign, textAlign); - - TInt leftMargin=0; - GetIntFromConfig(aSection, KFldLeftMargin(), leftMargin); - - if ( dataOk ) - { - INFO_PRINTF1(_L("execute DrawTextVertical(const TDesC&, const TRect&, TInt, TBool, TTextAlign, TInt)")); - GetGraphicsContext()->DrawTextVertical(text, rect, baselineOffset, up, textAlign, leftMargin); - } - } - } - -void CT_DataGraphicsContext::DoCmdGetShadowColor(const TDesC& aSection) - { - TRgb color; - INFO_PRINTF1(_L("execute GetShadowColor(TRgb)")); - TInt err=GetGraphicsContext()->GetShadowColor(color); - INFO_PRINTF5(KLogColor, color.Red(), color.Green(), color.Blue(), color.Alpha()); - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - else - { - TRgb expected; - if ( GetRgbFromConfig(aSection, KFldRgb(), expected) ) - { - if ( color!=expected ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - } - -void CT_DataGraphicsContext::DoCmdGetUnderlineMetrics(const TDesC& aSection) - { - TInt top; - TInt bottom; - INFO_PRINTF1(_L("execute GetUnderlineMetrics(TInt, TInt)")); - TInt err=GetGraphicsContext()->GetUnderlineMetrics(top, bottom); - INFO_PRINTF3(KLogMetrics, top, bottom); - - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - else - { - TInt expected; - if ( GetIntFromConfig(aSection, KFldTop(), expected) ) - { - if ( top!=expected ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - if ( GetIntFromConfig(aSection, KFldBottom(), expected) ) - { - if ( bottom!=expected ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - } - -void CT_DataGraphicsContext::DoCmdJustificationInPixels(const TDesC& aSection) - { - TBool dataOk=ETrue; - - TInt excessPixels; - if( !GetIntFromConfig(aSection, KFldExcessPixels(), excessPixels) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldExcessPixels()); - SetBlockResult(EFail); - } - - TInt totalUnits; - if( !GetIntFromConfig(aSection, KFldTotalUnits(), totalUnits) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldTotalUnits()); - SetBlockResult(EFail); - } - - TInt firstUnit; - if( !GetIntFromConfig(aSection, KFldFirstUnit(), firstUnit) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldFirstUnit()); - SetBlockResult(EFail); - } - - TInt numUnits; - if( !GetIntFromConfig(aSection, KFldNumUnits(), numUnits) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldNumUnits()); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - INFO_PRINTF1(_L("execute JustificationInPixels(TInt, TInt, TInt, TInt)")); - TInt actual=GetGraphicsContext()->JustificationInPixels(excessPixels, totalUnits, firstUnit, numUnits); - INFO_PRINTF2(_L("JustificationInPixels=%d"), actual); - - TInt expected; - if ( GetIntFromConfig(aSection, KFldExpected(), expected) ) - { - if ( actual!=expected ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - } - -void CT_DataGraphicsContext::DoCmdMapColorsL(const TDesC& aSection) - { - TBool dataOk=ETrue; - - TRect rect; - if( !GetRectFromConfig(aSection, KFldRect(), rect) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldRect()); - SetBlockResult(EFail); - } - - TInt numColors; - if ( !GetIntFromConfig(aSection, KFldNumColors, numColors) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldNumColors()); - SetBlockResult(EFail); - } - - TBool mapForwards=EFalse; - if( !GetBoolFromConfig(aSection, KFldMapForwards(), mapForwards)) - { - dataOk=EFalse; - ERR_PRINTF2(_L("Missing parameter %S"), &KFldMapForwards()); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - TRgb* colors=new (ELeave) TRgb[numColors]; - CleanupArrayDeletePushL(colors); - - if ( !GetRgbListFromConfig(aSection, KFldRgbList, numColors, colors) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldRgbList()); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute MapColors(const TRect&, const TRgb*, TInt, TBool)")); - GetGraphicsContext()->MapColors(rect, colors, numColors, mapForwards); - } - CleanupStack::PopAndDestroy(colors); - } - } - -void CT_DataGraphicsContext::DoCmdMoveBy(const TDesC& aSection) - { - TPoint point; - if ( !GetPointFromConfig(aSection, KFldPoint, point) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldPoint()); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute MoveBy(TPoint)")); - GetGraphicsContext()->MoveBy(point); - } - } - -void CT_DataGraphicsContext::DoCmdMoveTo(const TDesC& aSection) - { - TPoint point; - if ( !GetPointFromConfig(aSection, KFldPoint, point) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldPoint()); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute MoveTo(TPoint)")); - GetGraphicsContext()->MoveTo(point); - } - } - -void CT_DataGraphicsContext::DoCmdPlot(const TDesC& aSection) - { - TPoint point; - if ( !GetPointFromConfig(aSection, KFldPoint, point) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldPoint()); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute Plot(TPoint)")); - GetGraphicsContext()->Plot(point); - } - } - -void CT_DataGraphicsContext::DoCmdReserved() - { - INFO_PRINTF1(_L("execute Reserved()")); - GetGraphicsContext()->Reserved(); - } - -void CT_DataGraphicsContext::DoCmdReset() - { - INFO_PRINTF1(_L("execute Reset()")); - GetGraphicsContext()->Reset(); - } - -void CT_DataGraphicsContext::DoCmdSetBrushColor(const TDesC& aSection) - { - TRgb rgb; - if( !GetRgbFromConfig(aSection, KFldColor(), rgb)) - { - ERR_PRINTF2(KLogMissingParameter, &KFldColor()); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("execute SetBrushColor(TRgb)")); - GetGraphicsContext()->SetBrushColor(rgb); - } - } - -void CT_DataGraphicsContext::DoCmdSetBrushOrigin(const TDesC& aSection) - { - TPoint point; - if ( !GetPointFromConfig(aSection, KFldPoint, point) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldPoint()); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute SetBrushOrigin(TPoint)")); - GetGraphicsContext()->SetBrushOrigin(point); - } - } - -void CT_DataGraphicsContext::DoCmdSetBrushStyle(const TDesC& aSection) - { - CGraphicsContext::TBrushStyle brushStyle; - if( !CT_GraphicsUtil::ReadBrushStyle(*this, aSection, KFldBrushStyle(), brushStyle)) - { - ERR_PRINTF2(KLogMissingParameter, &KFldBrushStyle()); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute SetBrushStyle(CGraphicsContext::TBrushStyle)")); - GetGraphicsContext()->SetBrushStyle(brushStyle); - } - } - -void CT_DataGraphicsContext::DoCmdSetClippingRegion(const TDesC& aSection) - { - RRegion region; - CleanupClosePushL(region); - if ( !GetRegionFromConfig(aSection, KFldRegion, region) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldRegion()); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute SetClippingRegion(TRegion)")); - TInt err=GetGraphicsContext()->SetClippingRegion(region); - - // Check the command return code, if !=KErrNone then stop this command - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - } - CleanupStack::PopAndDestroy(®ion); - } - -void CT_DataGraphicsContext::DoCmdSetCharJustification(const TDesC& aSection) - { - TBool dataOk=ETrue; - - TInt excessWidth=0; - if( !GetIntFromConfig(aSection, KFldExcessWidth(), excessWidth) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldExcessWidth()); - SetBlockResult(EFail); - } - - TInt numChars=0; - if( !GetIntFromConfig(aSection, KFldNumChars(), numChars) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldNumChars()); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - INFO_PRINTF1(_L("execute SetCharJustification(TInt, TInt)")); - GetGraphicsContext()->SetCharJustification(excessWidth, numChars); - } - } - -void CT_DataGraphicsContext::DoCmdSetClippingRect(const TDesC& aSection) - { - TRect rect; - if ( !GetRectFromConfig(aSection, KFldRect, rect) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldRect()); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("execute SetClippingRect(TRect)")); - GetGraphicsContext()->SetClippingRect(rect); - } - } - -void CT_DataGraphicsContext::DoCmdSetDrawMode(const TDesC& aSection) - { - CGraphicsContext::TDrawMode drawMode; - if( !CT_GraphicsUtil::ReadDrawMode(*this, aSection, KFldDrawMode(), drawMode) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldDrawMode()); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("execute SetDrawMode(CGraphicsContext::TDrawMode)")); - GetGraphicsContext()->SetDrawMode(drawMode); - } - } - -void CT_DataGraphicsContext::DoCmdSetOrigin(const TDesC& aSection) - { - TPoint point; - if ( !GetPointFromConfig(aSection, KFldPoint, point) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldPoint()); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute SetOrigin(TPoint)")); - GetGraphicsContext()->SetOrigin(point); - } - } - -void CT_DataGraphicsContext::DoCmdSetPenColor(const TDesC& aSection) - { - TRgb rgb; - if( !GetRgbFromConfig(aSection, KFldColor(), rgb)) - { - ERR_PRINTF2(KLogMissingParameter, &KFldColor()); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("execute SetPenColor(TRgb)")); - GetGraphicsContext()->SetPenColor(rgb); - } - } - -void CT_DataGraphicsContext::DoCmdSetPenSize(const TDesC& aSection) - { - TSize size; - if( !GetSizeFromConfig(aSection, KFldSize(), size)) - { - ERR_PRINTF2(KLogMissingParameter, &KFldSize()); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("execute SetPenSize(TSize)")); - GetGraphicsContext()->SetPenSize(size); - } - } - -void CT_DataGraphicsContext::DoCmdSetPenStyle(const TDesC& aSection) - { - CGraphicsContext::TPenStyle penStyle; - if( !CT_GraphicsUtil::ReadPenStyle(*this, aSection, KFldPenStyle(), penStyle)) - { - ERR_PRINTF2(KLogMissingParameter, &KFldPenStyle()); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("execute SetPenStyle(CGraphicsContext::TPenStyle)")); - GetGraphicsContext()->SetPenStyle(penStyle); - } - } - -void CT_DataGraphicsContext::DoCmdSetShadowColor(const TDesC& aSection) - { - TRgb color; - if ( !GetRgbFromConfig(aSection, KFldRgb(), color) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldRgb()); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("execute SetShadowColor(TRgb)")); - TInt err=GetGraphicsContext()->SetShadowColor(color); - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - } - } - -void CT_DataGraphicsContext::DoCmdSetStrikethroughStyle(const TDesC& aSection) - { - TFontStrikethrough fontStrikethrough; - if( !CT_GraphicsUtil::ReadFontStrikethrough(*this, aSection, KFldFontStrikethrough(), fontStrikethrough) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldFontStrikethrough()); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("execute SetStrikethroughStyle(TFontStrikethrough)")); - GetGraphicsContext()->SetStrikethroughStyle(fontStrikethrough); - } - } - -void CT_DataGraphicsContext::DoCmdSetUnderlineStyle(const TDesC& aSection) - { - TFontUnderline fontUnderline; - if( !CT_GraphicsUtil::ReadFontUnderline(*this, aSection, KFldFontUnderline(), fontUnderline) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldFontUnderline()); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("execute SetUnderlineStyle(TFontUnderline)")); - GetGraphicsContext()->SetUnderlineStyle(fontUnderline); - } - } - -void CT_DataGraphicsContext::DoCmdSetWordJustification(const TDesC& aSection) - { - TBool dataOk=ETrue; - - TInt excessWidth=0; - if( !GetIntFromConfig(aSection, KFldExcessWidth(), excessWidth)) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldExcessWidth()); - SetBlockResult(EFail); - } - - TInt numGaps=0; - if( !GetIntFromConfig(aSection, KFldNumGaps(), numGaps)) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldNumGaps()); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - INFO_PRINTF1(_L("execute SetWordJustification(TInt, TInt)")); - GetGraphicsContext()->SetWordJustification(excessWidth, numGaps); - } - } - -void CT_DataGraphicsContext::DoCmdUseBrushPatternL(const TDesC& aSection) - { - CFbsBitmap* bitmap=NULL; - if ( !CT_GraphicsUtil::GetFbsBitmapL(*this, aSection, KFldBitmap, bitmap) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldBitmap()); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("execute UseBrushPattern(CFbsBitmap*)")); - GetGraphicsContext()->UseBrushPattern(bitmap); - } - } - -void CT_DataGraphicsContext::DoCmdUseFontL(const TDesC& aSection) - { - CFont* font=NULL; - - CT_GraphicsUtil::GetFontL(*this, aSection, KFldFont, font); - INFO_PRINTF1(_L("execute UseFont(CFont*)")); - GetGraphicsContext()->UseFont(font); - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/gdi/src/T_DataGraphicsDevice.cpp --- a/graphicsapitest/graphicssvs/gdi/src/T_DataGraphicsDevice.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,380 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataGraphicsDevice -*/ - -#include "T_DataGraphicsDevice.h" -#include "T_GraphicsUtil.h" - -/*@{*/ -/// Commands -_LIT(KCmdCreateContext, "CreateContext"); -_LIT(KCmdDisplayMode, "DisplayMode"); -_LIT(KCmdFontHeightInTwips, "FontHeightInTwips"); -_LIT(KCmdGetPalette, "GetPalette"); -_LIT(KCmdNumTypefaces, "NumTypefaces"); -_LIT(KCmdPaletteAttributes, "PaletteAttributes"); -_LIT(KCmdSetPalette, "SetPalette"); -_LIT(KCmdSizeInPixels, "SizeInPixels"); -_LIT(KCmdSizeInTwips, "SizeInTwips"); -_LIT(KCmdTypefaceSupport, "TypefaceSupport"); - -/// Fields -_LIT(KFldContext, "context"); -_LIT(KFldDisplayMode, "displaymode"); -_LIT(KFldExpected, "expected"); -_LIT(KFldExpectedEntries, "expected_entries"); -_LIT(KFldExpectedModifiable, "expected_modifiable"); -_LIT(KFldHeightIndex, "height_index"); -_LIT(KFldIndex, "index"); -_LIT(KFldPalette, "palette"); -_LIT(KFldTypefaceIndex, "typeface_index"); - -/// Logging -_LIT(KLogError, "Error=%d"); -_LIT(KLogMissingParameter, "Missing parameter '%S'"); -_LIT(KLogMissingWrapper, "Missing wrapper for '%S'"); -_LIT(KLogNotExpectedValue, "Not expected value"); -/*@}*/ - - -/** -* Constructor. First phase construction -*/ -CT_DataGraphicsDevice::CT_DataGraphicsDevice() -: CT_DataGraphicsDeviceMap() -, iDisplayMode(ENone) - { - } - -/** -* Process a command read from the ini file -* -* @param aDataWrapper test step requiring command to be processed -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* -* @return ETrue if the command is processed -*/ -TBool CT_DataGraphicsDevice::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex) - { - TBool ret=ETrue; - if ( aCommand==KCmdCreateContext ) - { - DoCmdCreateContextL(aSection); - } - else if ( aCommand==KCmdDisplayMode ) - { - DoCmdDisplayMode(aSection); - } - else if ( aCommand==KCmdFontHeightInTwips ) - { - DoCmdFontHeightInTwips(aSection); - } - else if ( aCommand==KCmdGetPalette ) - { - DoCmdGetPaletteL(aSection); - } - else if ( aCommand==KCmdNumTypefaces ) - { - DoCmdNumTypefaces(aSection); - } - else if ( aCommand==KCmdPaletteAttributes ) - { - DoCmdPaletteAttributes(aSection); - } - else if ( aCommand==KCmdSetPalette ) - { - DoCmdSetPaletteL(aSection); - } - else if ( aCommand==KCmdSizeInPixels ) - { - DoCmdSizeInPixels(aSection); - } - else if ( aCommand==KCmdSizeInTwips ) - { - DoCmdSizeInTwips(aSection); - } - else if ( aCommand==KCmdTypefaceSupport ) - { - DoCmdTypefaceSupport(aSection); - } - else - { - ret=CT_DataGraphicsDeviceMap::DoCommandL(aCommand, aSection, aAsyncErrorIndex); - } - - return ret; - } - -void CT_DataGraphicsDevice::DoCmdCreateContextL(const TDesC& aSection) - { - TPtrC wrapperName; - // get BitmapUtilData object from parameters - if ( !GetStringFromConfig(aSection, KFldContext, wrapperName) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldContext()); - SetBlockResult(EFail); - } - else - { - CDataWrapper* wrapper=GetDataWrapperL(wrapperName); - if ( wrapper==NULL ) - { - ERR_PRINTF2(KLogMissingWrapper, &wrapperName); - SetBlockResult(EFail); - } - else - { - CGraphicsContext* context=NULL; - INFO_PRINTF1(_L("execute CreateContext(CGraphicsContext*&)")); - TInt err=GetGraphicsDevice()->CreateContext(context); - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - else - { - wrapper->SetObjectL(context); - } - } - } - } - -void CT_DataGraphicsDevice::DoCmdDisplayMode(const TDesC& aSection) - { - INFO_PRINTF1(_L("execute DisplayMode()")); - iDisplayMode=GetGraphicsDevice()->DisplayMode(); - INFO_PRINTF2(_L("Display Mode %d"), iDisplayMode); - - // get display mode from parameters - TDisplayMode expectedValue; - if ( CT_GraphicsUtil::ReadDisplayMode(*this, aSection, KFldDisplayMode(), expectedValue) ) - { - // check value against NULL - if ( iDisplayMode!=expectedValue ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - -void CT_DataGraphicsDevice::DoCmdFontHeightInTwips(const TDesC& aSection) - { - TBool dataOk=ETrue; - - // get typeface index from parameters - TInt typefaceIndex; - if ( !GetIntFromConfig(aSection, KFldTypefaceIndex(), typefaceIndex) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldTypefaceIndex()); - SetBlockResult(EFail); - } - - // get height index from parameters - TInt heightIndex; - if ( !GetIntFromConfig(aSection, KFldHeightIndex(), heightIndex) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldHeightIndex()); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - INFO_PRINTF1(_L("execute FontHeightInTwips(TInt, TInt)")); - TInt height=GetGraphicsDevice()->FontHeightInTwips(typefaceIndex, heightIndex); - INFO_PRINTF2(_L("Height %d"), height); - - // get positive height check flag from parameters - TInt expected; - if ( GetIntFromConfig(aSection, KFldExpected(), expected) ) - { - if ( height!=expected ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - } - -void CT_DataGraphicsDevice::DoCmdGetPaletteL(const TDesC& aSection) - { - CPalette* pallet=NULL; - INFO_PRINTF1(_L("execute GetPalette(CPalette*&)")); - TInt err=GetGraphicsDevice()->GetPalette(pallet); - - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - else - { - CPalette* expected=NULL; - if ( CT_GraphicsUtil::GetPaletteL(*this, aSection, KFldPalette(), expected) ) - { - if ( pallet!=expected ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - } - -void CT_DataGraphicsDevice::DoCmdNumTypefaces(const TDesC& aSection) - { - INFO_PRINTF1(_L("execute NumTypefaces()")); - TInt actual=GetGraphicsDevice()->NumTypefaces(); - INFO_PRINTF2(_L("NumTypefaces=%d"), actual); - - TInt expected; - if ( GetIntFromConfig(aSection, KFldExpected(), expected) ) - { - if ( actual!=expected ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - -void CT_DataGraphicsDevice::DoCmdPaletteAttributes(const TDesC& aSection) - { - INFO_PRINTF1(_L("execute PaletteAttributes(TBool&, TInt&)")); - TBool modifiable; - TInt entries; - GetGraphicsDevice()->PaletteAttributes(modifiable, entries); - INFO_PRINTF2(_L("modifiable %d"), modifiable); - INFO_PRINTF2(_L("entries %d"), entries); - - TBool expectedModifiable; - if ( GetBoolFromConfig(aSection, KFldExpectedModifiable(), expectedModifiable) ) - { - if ( modifiable!=expectedModifiable ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - - TInt expectedEntries; - if ( GetIntFromConfig(aSection, KFldExpectedEntries(), expectedEntries) ) - { - if ( entries!=expectedEntries ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - -void CT_DataGraphicsDevice::DoCmdSetPaletteL(const TDesC& aSection) - { - CPalette* pallet=NULL; - if ( !CT_GraphicsUtil::GetPaletteL(*this, aSection, KFldPalette(), pallet) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldPalette()); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("execute SetPalette(CPalette*)")); - GetGraphicsDevice()->SetPalette(pallet); - } - } - -void CT_DataGraphicsDevice::DoCmdSizeInPixels(const TDesC& aSection) - { - INFO_PRINTF1(_L("execute SizeInPixels()")); - iSizeInPixels=GetGraphicsDevice()->SizeInPixels(); - INFO_PRINTF3(_L("CGraphicsDevice::SizeInPixels() height %d, width %d"), iSizeInPixels.iHeight, iSizeInPixels.iWidth); - - TSize expected; - if ( GetSizeFromConfig(aSection, KFldExpected(), expected) ) - { - if ( iSizeInPixels!=expected ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - -void CT_DataGraphicsDevice::DoCmdSizeInTwips(const TDesC& aSection) - { - INFO_PRINTF1(_L("execute SizeInTwips()")); - iSizeInTwips=GetGraphicsDevice()->SizeInTwips(); - INFO_PRINTF3(_L("CGraphicsDevice::SizeInTwips() height %d, width %d"), iSizeInTwips.iHeight, iSizeInTwips.iWidth); - - TSize expected; - if ( GetSizeFromConfig(aSection, KFldExpected(), expected) ) - { - if ( iSizeInTwips!=expected ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - -void CT_DataGraphicsDevice::DoCmdTypefaceSupport(const TDesC& aSection) - { - TBool dataOk=ETrue; - - // get typeface index from parameters - TInt index; - if ( !GetIntFromConfig(aSection, KFldIndex(), index) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldIndex()); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - INFO_PRINTF1(_L("execute TypefaceSupport(TTypefaceSupport&, TInt)")); - GetGraphicsDevice()->TypefaceSupport(iTypefaceSupport, index); - INFO_PRINTF2(_L("iIsScalable %d"), iTypefaceSupport.iIsScalable); - INFO_PRINTF2(_L("iMaxHeightInTwips %d"), iTypefaceSupport.iMaxHeightInTwips); - INFO_PRINTF2(_L("iMinHeightInTwips %d"), iTypefaceSupport.iMinHeightInTwips); - INFO_PRINTF2(_L("iNumHeights %d"), iTypefaceSupport.iNumHeights); - - TTypefaceSupport expectedTypeface; - if (CT_GraphicsUtil::ReadTypefaceSupport(*this, aSection, KFldExpected(),expectedTypeface )) - { - // just check font name - if (expectedTypeface.iTypeface.iName!=iTypefaceSupport.iTypeface.iName ) - { - ERR_PRINTF3(_L("DoCmdTypefaceSupport expected=%S actual=%S"), - &expectedTypeface.iTypeface.iName,&iTypefaceSupport.iTypeface.iName); - SetBlockResult(EFail); - } - - } - } - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/gdi/src/T_DataGraphicsDeviceMap.cpp --- a/graphicsapitest/graphicssvs/gdi/src/T_DataGraphicsDeviceMap.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,493 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataGraphicsDeviceMap -*/ - -#include "T_DataGraphicsDeviceMap.h" -#include "T_DataFont.h" - -/*@{*/ -/// Commands -_LIT(KCmdGetNearestFontInTwips, "GetNearestFontInTwips"); -_LIT(KCmdGetNearestFontToDesignHeightInTwips, "GetNearestFontToDesignHeightInTwips"); -_LIT(KCmdGetNearestFontToMaxHeightInTwips, "GetNearestFontToMaxHeightInTwips"); -_LIT(KCmdHorizontalPixelsToTwips, "HorizontalPixelsToTwips"); -_LIT(KCmdHorizontalTwipsToPixels, "HorizontalTwipsToPixels"); -_LIT(KCmdPixelsToTwips, "PixelsToTwips"); -_LIT(KCmdReleaseFont, "ReleaseFont"); -_LIT(KCmdTwipsToPixels, "TwipsToPixels"); -_LIT(KCmdVerticalPixelsToTwips, "VerticalPixelsToTwips"); -_LIT(KCmdVerticalTwipsToPixels, "VerticalTwipsToPixels"); - -/// Fields -_LIT(KFldExpected, "expected"); -_LIT(KFldFont, "font"); -_LIT(KFldMaxHeight, "maxheight"); -_LIT(KFldPixels, "pixels"); -_LIT(KFldPoint, "point"); -_LIT(KFldRect, "rect"); -_LIT(KFldTwips, "twips"); -_LIT(KFldDisown, "disown"); - -/// Logging -_LIT(KLogError, "Error=%d"); -_LIT(KLogMissingParameter, "Missing parameter '%S'"); -_LIT(KLogMissingWrapper, "Missing wrapper for '%S'"); -_LIT(KLogNotExpectedValue, "Not expected value"); -/*@}*/ - -/** -* Constructor. First phase construction -*/ -CT_DataGraphicsDeviceMap::CT_DataGraphicsDeviceMap() -: CDataWrapperBase() - { - } - -/** -* Process a command read from the ini file -* -* @param aDataWrapper test step requiring command to be processed -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* -* @return ETrue if the command is processed -*/ -TBool CT_DataGraphicsDeviceMap::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt /*aAsyncErrorIndex*/) - { - TBool ret=ETrue; - if ( aCommand==KCmdGetNearestFontInTwips ) - { - DoCmdGetNearestFontInTwipsL(aSection); - } - else if ( aCommand==KCmdGetNearestFontToDesignHeightInTwips ) - { - DoCmdGetNearestFontToDesignHeightInTwipsL(aSection); - } - else if ( aCommand==KCmdGetNearestFontToMaxHeightInTwips ) - { - DoCmdGetNearestFontToMaxHeightInTwipsL(aSection); - } - else if ( aCommand==KCmdHorizontalPixelsToTwips ) - { - DoCmdHorizontalPixelsToTwips(aSection); - } - else if ( aCommand==KCmdHorizontalTwipsToPixels ) - { - DoCmdHorizontalTwipsToPixels(aSection); - } - else if ( aCommand==KCmdPixelsToTwips ) - { - DoCmdPixelsToTwips(aSection); - } - else if ( aCommand==KCmdReleaseFont ) - { - DoCmdReleaseFontL(aSection); - } - else if ( aCommand==KCmdTwipsToPixels ) - { - DoCmdTwipsToPixels(aSection); - } - else if ( aCommand==KCmdVerticalPixelsToTwips ) - { - DoCmdVerticalPixelsToTwips(aSection); - } - else if ( aCommand==KCmdVerticalTwipsToPixels ) - { - DoCmdVerticalTwipsToPixels(aSection); - } - else - { - ret=EFalse; - } - return ret; - } - -void CT_DataGraphicsDeviceMap::DoCmdGetNearestFontInTwipsL(const TDesC& aSection) - { - TBool dataOk=ETrue; - - TFontSpec fontSpec; - if ( !GetFontSpecFromConfig(aSection, KFldFont, fontSpec) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldFont()); - SetBlockResult(EFail); - } - - TPtrC wrapperName; - // get BitmapUtilData object from parameters - if ( !GetStringFromConfig(aSection, KFldFont, wrapperName) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldFont()); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - CDataWrapper* wrapper=GetDataWrapperL(wrapperName); - if ( wrapper==NULL ) - { - ERR_PRINTF2(KLogMissingWrapper, &wrapperName); - SetBlockResult(EFail); - } - else - { - CFont* font=NULL; - INFO_PRINTF1(_L("execute GetNearestFontInTwips(CFont*&, TFontSpec)")); - TInt err=GetGraphicsDeviceMap()->GetNearestFontInTwips(font, fontSpec); - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - else - { - wrapper->SetObjectL(font); - } - } - } - } - -void CT_DataGraphicsDeviceMap::DoCmdGetNearestFontToDesignHeightInTwipsL(const TDesC& aSection) - { - TBool dataOk=ETrue; - - TFontSpec fontSpec; - if ( !GetFontSpecFromConfig(aSection, KFldFont, fontSpec) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldFont()); - SetBlockResult(EFail); - } - - TPtrC wrapperName; - // get BitmapUtilData object from parameters - if ( !GetStringFromConfig(aSection, KFldFont, wrapperName) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldFont()); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - CDataWrapper* wrapper=GetDataWrapperL(wrapperName); - if ( wrapper==NULL ) - { - ERR_PRINTF2(KLogMissingWrapper, &wrapperName); - SetBlockResult(EFail); - } - else - { - CFont* font=NULL; - INFO_PRINTF1(_L("execute GetNearestFontToDesignHeightInTwips(CFont*&, TFontSpec)")); - TInt err=GetGraphicsDeviceMap()->GetNearestFontToDesignHeightInTwips(font, fontSpec); - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - else - { - wrapper->SetObjectL(font); - } - } - } - } - -void CT_DataGraphicsDeviceMap::DoCmdGetNearestFontToMaxHeightInTwipsL(const TDesC& aSection) - { - TBool dataOk=ETrue; - - TFontSpec fontSpec; - if ( !GetFontSpecFromConfig(aSection, KFldFont, fontSpec) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldFont()); - SetBlockResult(EFail); - } - - TInt maxHeight; - if ( !GetIntFromConfig(aSection, KFldMaxHeight, maxHeight) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldMaxHeight()); - SetBlockResult(EFail); - } - - TPtrC wrapperName; - // get BitmapUtilData object from parameters - if ( !GetStringFromConfig(aSection, KFldFont, wrapperName) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldFont()); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - CDataWrapper* wrapper=GetDataWrapperL(wrapperName); - if ( wrapper==NULL ) - { - ERR_PRINTF2(KLogMissingWrapper, &wrapperName); - SetBlockResult(EFail); - } - else - { - CFont* font=NULL; - INFO_PRINTF1(_L("execute GetNearestFontToMaxHeightInTwips(CFont*&, TFontSpec, TInt)")); - TInt err=GetGraphicsDeviceMap()->GetNearestFontToMaxHeightInTwips(font, fontSpec, maxHeight); - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - else - { - wrapper->SetObjectL(font); - } - } - } - } - -void CT_DataGraphicsDeviceMap::DoCmdHorizontalPixelsToTwips(const TDesC& aSection) - { - TInt value; - if ( !GetIntFromConfig(aSection, KFldPixels, value) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldPixels()); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("execute HorizontalPixelsToTwips(TInt)")); - TInt pixels=GetGraphicsDeviceMap()->HorizontalPixelsToTwips(value); - INFO_PRINTF2(_L("HorizontalPixelsToTwips=%d"), pixels); - - if ( GetIntFromConfig(aSection, KFldExpected, value) ) - { - if ( value!=pixels ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - } - -void CT_DataGraphicsDeviceMap::DoCmdHorizontalTwipsToPixels(const TDesC& aSection) - { - TInt value; - if ( !GetIntFromConfig(aSection, KFldTwips, value) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldTwips()); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("execute HorizontalTwipsToPixels(TInt)")); - TInt pixels=GetGraphicsDeviceMap()->HorizontalTwipsToPixels(value); - INFO_PRINTF2(_L("HorizontalTwipsToPixels=%d"), pixels); - - if ( GetIntFromConfig(aSection, KFldExpected, value) ) - { - if ( value!=pixels ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - } - -void CT_DataGraphicsDeviceMap::DoCmdPixelsToTwips(const TDesC& aSection) - { - TPoint point; - if ( GetPointFromConfig(aSection, KFldPoint, point) ) - { - INFO_PRINTF1(_L("execute PixelsToTwips(const TPoint&)")); - iPixelsToTwipsPoint=GetGraphicsDeviceMap()->PixelsToTwips(point); - INFO_PRINTF3(_L("PixelsToTwips x=%d y=%d"), iPixelsToTwipsPoint.iX, iPixelsToTwipsPoint.iY); - - if ( GetPointFromConfig(aSection, KFldExpected, point) ) - { - if ( point!=iPixelsToTwipsPoint ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - else - { - TRect rect; - if ( GetRectFromConfig(aSection, KFldRect, rect) ) - { - INFO_PRINTF1(_L("execute PixelsToTwips(const TRect&)")); - iPixelsToTwipsRect=GetGraphicsDeviceMap()->PixelsToTwips(rect); - LogRect(_L("PixelsToTwips(TRect)"), iPixelsToTwipsRect); - if ( GetRectFromConfig(aSection, KFldExpected, rect) ) - { - if ( rect!=iPixelsToTwipsRect ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - else - { - ERR_PRINTF2(KLogMissingParameter, &KFldPoint()); - ERR_PRINTF2(KLogMissingParameter, &KFldRect()); - SetBlockResult(EFail); - } - } - } - -void CT_DataGraphicsDeviceMap::DoCmdReleaseFontL(const TDesC& aSection) - { - TPtrC wrapperName; - // get BitmapUtilData object from parameters - if ( !GetStringFromConfig(aSection, KFldFont, wrapperName) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldFont()); - SetBlockResult(EFail); - } - else - { - CT_DataFont* wrapper=static_cast(GetDataWrapperL(wrapperName)); - if ( wrapper==NULL ) - { - ERR_PRINTF2(KLogMissingWrapper, &wrapperName); - SetBlockResult(EFail); - } - else - { - CFont* font=wrapper->GetFont(); - INFO_PRINTF1(_L("execute ReleaseFont(CFont*)")); - GetGraphicsDeviceMap()->ReleaseFont(font); - - // check if we need to disown object - TBool disOwn=ETrue, Own; - if ( GetBoolFromConfig(aSection, KFldDisown, Own)) - disOwn=Own; - if (disOwn) - wrapper->DisownObjectL(); - } - } - } - -void CT_DataGraphicsDeviceMap::DoCmdTwipsToPixels(const TDesC& aSection) - { - TPoint point; - if ( GetPointFromConfig(aSection, KFldPoint, point) ) - { - INFO_PRINTF1(_L("execute TwipsToPixels(const TPoint&)")); - iTwipsToPixelsPoint=GetGraphicsDeviceMap()->TwipsToPixels(point); - INFO_PRINTF3(_L("TwipsToPixels x=%d y=%d"), iTwipsToPixelsPoint.iX, iTwipsToPixelsPoint.iY); - - if ( GetPointFromConfig(aSection, KFldExpected, point) ) - { - if ( point!=iTwipsToPixelsPoint ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - else - { - TRect rect; - if ( GetRectFromConfig(aSection, KFldRect, rect) ) - { - INFO_PRINTF1(_L("execute TwipsToPixels(const TRect&)")); - iTwipsToPixelsRect=GetGraphicsDeviceMap()->TwipsToPixels(rect); - LogRect(_L("TwipsToPixels(const TRect&)"), iTwipsToPixelsRect); - if ( GetRectFromConfig(aSection, KFldExpected, rect) ) - { - if ( rect!=iTwipsToPixelsRect ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - else - { - ERR_PRINTF2(KLogMissingParameter, &KFldPoint()); - ERR_PRINTF2(KLogMissingParameter, &KFldRect()); - SetBlockResult(EFail); - } - } - } - -void CT_DataGraphicsDeviceMap::DoCmdVerticalPixelsToTwips(const TDesC& aSection) - { - TInt value; - if ( !GetIntFromConfig(aSection, KFldPixels, value) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldPixels()); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("execute VerticalPixelsToTwips(TInt)")); - TInt pixels=GetGraphicsDeviceMap()->VerticalPixelsToTwips(value); - INFO_PRINTF2(_L("VerticalPixelsToTwips=%d"), pixels); - - if ( GetIntFromConfig(aSection, KFldExpected, value) ) - { - if ( value!=pixels ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - } - -void CT_DataGraphicsDeviceMap::DoCmdVerticalTwipsToPixels(const TDesC& aSection) - { - TInt value; - if ( !GetIntFromConfig(aSection, KFldTwips, value) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldTwips()); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("execute VerticalTwipsToPixels(TInt)")); - TInt pixels=GetGraphicsDeviceMap()->VerticalTwipsToPixels(value); - INFO_PRINTF2(_L("VerticalTwipsToPixels=%d"), pixels); - - if ( GetIntFromConfig(aSection, KFldExpected, value) ) - { - if ( value!=pixels ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/gdi/src/T_DataMeasureTextInput.cpp --- a/graphicsapitest/graphicssvs/gdi/src/T_DataMeasureTextInput.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,426 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataMeasureTextInput -*/ - -#include "T_DataMeasureTextInput.h" - - -/*@{*/ -/// Parameters -_LIT(KValue, "value"); -_LIT(KFlag, "flag%d"); - -/// CFont::TMeasureTextInput::TFlags -_LIT(KEFVisualOrder, "EFVisualOrder"); -_LIT(KEFVisualOrderRightToLeft, "EFVisualOrderRightToLeft"); -_LIT(KEFIncludePenPositionInBoundsCheck, "EFIncludePenPositionInBoundsCheck"); - -/// Commands -_LIT(KCmdNew, "new"); -_LIT(KCmdDestructor, "~"); -_LIT(KCmdSetCharJustExcess, "iCharJustExcess"); -_LIT(KCmdSetCharJustNum, "iCharJustNum"); -_LIT(KCmdSetDirection, "iDirection"); -_LIT(KCmdSetEndInputChar, "iEndInputChar"); -_LIT(KCmdSetFlags, "iFlags"); -_LIT(KCmdSetMaxAdvance, "iMaxAdvance"); -_LIT(KCmdSetMaxBounds, "iMaxBounds"); -_LIT(KCmdSetStartInputChar, "iStartInputChar"); -_LIT(KCmdSetWordJustExcess, "iWordJustExcess"); -_LIT(KCmdSetWordJustNum, "iWordJustNum"); -/*@}*/ - - -/** -* Two phase constructor -*/ -CT_DataMeasureTextInput* CT_DataMeasureTextInput::NewL() - { - CT_DataMeasureTextInput* ret = new (ELeave) CT_DataMeasureTextInput(); - CleanupStack::PushL(ret); - ret->ConstructL(); - CleanupStack::Pop(ret); - return ret; - } - - -/** -* Protected constructor. First phase construction -*/ -CT_DataMeasureTextInput::CT_DataMeasureTextInput() -: CDataWrapperBase() -, iMeasureTextInput(NULL) - { - } - - -/** -* Protected second phase construction -*/ -void CT_DataMeasureTextInput::ConstructL() - { - } - - -/** -* Destructor. -*/ -CT_DataMeasureTextInput::~CT_DataMeasureTextInput() - { - DestroyData(); - } - - -/** -* cleanup implementation. -*/ -void CT_DataMeasureTextInput::DestroyData() - { - delete iMeasureTextInput; - iMeasureTextInput = NULL; - } - - -/** -* Return a pointer to the object that the data wraps -* -* @return pointer to the object that the data wraps -*/ -TAny* CT_DataMeasureTextInput::GetObject() - { - return iMeasureTextInput; - } - - -/** -* Process a command read from the ini file -* -* @param aDataWrapper test step requiring command to be processed -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* -* @return ETrue if the command is processed -*/ -TBool CT_DataMeasureTextInput::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt /*aAsyncErrorIndex*/) - { - TBool retVal = ETrue; - - if (aCommand == KCmdNew) - { - DoCmdNew(); - } - else if (aCommand == KCmdDestructor) - { - DoCmdDestructor(); - } - else if (aCommand == KCmdSetCharJustExcess) - { - DoCmdSetCharJustExcess(aSection); - } - else if (aCommand == KCmdSetCharJustNum) - { - DoCmdSetCharJustNum(aSection); - } - else if (aCommand == KCmdSetDirection) - { - DoCmdSetDirection(aSection); - } - else if (aCommand == KCmdSetEndInputChar) - { - DoCmdSetEndInputChar(aSection); - } - else if (aCommand == KCmdSetFlags) - { - DoCmdSetFlags(aSection); - } - else if (aCommand == KCmdSetMaxAdvance) - { - DoCmdSetMaxAdvance(aSection); - } - else if (aCommand == KCmdSetMaxBounds) - { - DoCmdSetMaxBounds(aSection); - } - else if (aCommand == KCmdSetStartInputChar) - { - DoCmdSetStartInputChar(aSection); - } - else if (aCommand == KCmdSetWordJustExcess) - { - DoCmdSetWordJustExcess(aSection); - } - else if (aCommand == KCmdSetWordJustNum) - { - DoCmdSetWordJustNum(aSection); - } - else - { - retVal=EFalse; - } - - return retVal; - } - - -////////////////// COMMANDS IMPLEMENTATION //////////////////////// - -/** Creates an instance of TMeasureTextInput structure */ -void CT_DataMeasureTextInput::DoCmdNew() - { - INFO_PRINTF1(_L("Creates an instance of TMeasureTextInput structure")); - - // cleanup if any - delete iMeasureTextInput; - iMeasureTextInput = NULL; - - // call new operator - TRAPD(err, iMeasureTextInput = new (ELeave) CFont::TMeasureTextInput()); - - // check error code - if (err != KErrNone) - { - ERR_PRINTF2(_L("Error creating an instance: %d"), err); - SetError(err); - } - } - - -/** Destructor */ -void CT_DataMeasureTextInput::DoCmdDestructor() - { - DestroyData(); - } - -/** Sets TMeasureTextInputData::iStartInputChar */ -void CT_DataMeasureTextInput::DoCmdSetStartInputChar(const TDesC& aSection) - { - INFO_PRINTF1(_L("Sets TMeasureTextInputData::iStartInputChar")); - - // get value from parameters - TInt value; - if (GetValueFromConfig(aSection, value)) - { - iMeasureTextInput->iStartInputChar = value; - } - } - - -/** Sets TMeasureTextInputData::iEndInputChar */ -void CT_DataMeasureTextInput::DoCmdSetEndInputChar(const TDesC& aSection) - { - INFO_PRINTF2(_L("Sets TMeasureTextInputData::iEndInputChar %S"), &aSection); - - // get value from parameters - TInt value; - if (GetValueFromConfig(aSection, value)) - { - iMeasureTextInput->iEndInputChar = value; - } - } - - -/** Sets TMeasureTextInputData::iDirection */ -void CT_DataMeasureTextInput::DoCmdSetDirection(const TDesC& aSection) - { - INFO_PRINTF1(_L("Sets TMeasureTextInputData::iDirection")); - - // get value from parameters - TInt value; - if (GetValueFromConfig(aSection, value)) - { - iMeasureTextInput->iDirection = value; - } - } - - -/** Sets TMeasureTextInputData::iFlags */ -void CT_DataMeasureTextInput::DoCmdSetFlags(const TDesC& aSection) - { - INFO_PRINTF1(_L("Sets TMeasureTextInputData::iFlags")); - - // get value from parameters - if ( !ReadFlags(aSection, iMeasureTextInput->iFlags) ) - { - ERR_PRINTF2(_L("No %S"), &aSection); - SetBlockResult(EFail); - } - } - - -/** Sets TMeasureTextInputData::iMaxAdvance */ -void CT_DataMeasureTextInput::DoCmdSetMaxAdvance(const TDesC& aSection) - { - INFO_PRINTF1(_L("Sets TMeasureTextInputData::iMaxAdvance")); - - // get value from parameters - TInt value; - if (GetValueFromConfig(aSection, value)) - { - iMeasureTextInput->iMaxAdvance = value; - } - } - - -/** Sets TMeasureTextInputData::iMaxBounds */ -void CT_DataMeasureTextInput::DoCmdSetMaxBounds(const TDesC& aSection) - { - INFO_PRINTF1(_L("Sets TMeasureTextInputData::iMaxBounds")); - - // get value from parameters - TInt value; - if (GetValueFromConfig(aSection, value)) - { - iMeasureTextInput->iMaxBounds = value; - } - } - - -/** Sets TMeasureTextInputData::iCharJustNum */ -void CT_DataMeasureTextInput::DoCmdSetCharJustNum(const TDesC& aSection) - { - INFO_PRINTF1(_L("Sets TMeasureTextInputData::iCharJustNum")); - - // get value from parameters - TInt value; - if (GetValueFromConfig(aSection, value)) - { - iMeasureTextInput->iCharJustNum = value; - } - } - - -/** Sets TMeasureTextInputData::iCharJustExcess */ -void CT_DataMeasureTextInput::DoCmdSetCharJustExcess(const TDesC& aSection) - { - INFO_PRINTF1(_L("Sets TMeasureTextInputData::iCharJustExcess")); - - // get value from parameters - TInt value; - if (GetValueFromConfig(aSection, value)) - { - iMeasureTextInput->iCharJustExcess = value; - } - } - - -/** Sets TMeasureTextInputData::iWordJustNum */ -void CT_DataMeasureTextInput::DoCmdSetWordJustNum(const TDesC& aSection) - { - INFO_PRINTF1(_L("Sets TMeasureTextInputData::iWordJustNum")); - - // get value from parameters - TInt value; - if (GetValueFromConfig(aSection, value)) - { - iMeasureTextInput->iWordJustNum = value; - } - } - - -/** Sets TMeasureTextInputData::iWordJustExcess */ -void CT_DataMeasureTextInput::DoCmdSetWordJustExcess(const TDesC& aSection) - { - INFO_PRINTF1(_L("Sets TMeasureTextInputData::iWordJustExcess")); - - // get value from parameters - TInt value; - if (GetValueFromConfig(aSection, value)) - { - iMeasureTextInput->iWordJustExcess = value; - } - } - - -///////////////////////////////// UTIL METHODS ////////////////////////////////////// - - -/** -* Utility method that fetches a int value from parameters -*/ -TBool CT_DataMeasureTextInput::GetValueFromConfig(const TDesC& aSection, TInt& aValue) - { - TBool ret=GetIntFromConfig(aSection, KValue(), aValue); - if ( !ret ) - { - ERR_PRINTF2(_L("No %S"), &KValue()); - SetBlockResult(EFail); - } - - return ret; - } - -/** - ReadFlags - read in bitwise measeure text input flags - @internalComponent - @param aSection - main entry in .ini file - @param aFlags - bitwise flags output - @return ETrue if data is valid in the ini file - @pre None - @post 2nd stage construction complete -*/ -TBool CT_DataMeasureTextInput::ReadFlags(const TDesC& aSection, TUint16& aFlags) - { - TBuf tempStore; - TInt index=0; - TBool moreData=ETrue; - TPtrC flagString; - TBool ret=ETrue; - - aFlags=0; - while ( moreData && ret ) - { - tempStore.Format(KFlag(), &aSection, ++index); - if ( GetStringFromConfig(aSection, tempStore, flagString) ) - { - TInt flag=0; - - if ( flagString==KEFVisualOrder ) - { - flag=CFont::TMeasureTextInput::EFVisualOrder; - } - else if ( flagString==KEFVisualOrderRightToLeft ) - { - flag=CFont::TMeasureTextInput::EFVisualOrderRightToLeft; - } - else if ( flagString==KEFIncludePenPositionInBoundsCheck ) - { - flag=CFont::TMeasureTextInput::EFIncludePenPositionInBoundsCheck; - } - else - { - ret=GetIntFromConfig(aSection, tempStore, flag); - } - - if ( ret ) - { - aFlags |= flag; - } - } - else - { - moreData=EFalse; - } - } - - return ret; - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/gdi/src/T_DataMeasureTextOutput.cpp --- a/graphicsapitest/graphicssvs/gdi/src/T_DataMeasureTextOutput.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,348 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataMeasureTextOutput -*/ - -#include "T_DataMeasureTextOutput.h" - - -/*@{*/ -/// Parameters -_LIT(KValue, "value"); -_LIT(KRectAx, "rect_ax"); -_LIT(KRectAy, "rect_ay"); -_LIT(KRectBx, "rect_bx"); -_LIT(KRectBy, "rect_by"); -_LIT(KWidth, "width"); -_LIT(KHeight, "height"); - -/// Commands -_LIT(KCmdNew, "new"); -_LIT(KCmdSetBounds, "iBounds"); -_LIT(KCmdSetChars, "iChars"); -_LIT(KCmdSetGlyphs, "iGlyphs"); -_LIT(KCmdSetGroups, "iGroups"); -_LIT(KCmdSetMaxGlyphSize, "iMaxGlyphSize"); -_LIT(KCmdSetSpaces, "iSpaces"); -_LIT(KCmdDestructor, "~"); - - - -/*@}*/ - - -/** -* Two phase constructor -*/ -CT_DataMeasureTextOutput* CT_DataMeasureTextOutput::NewL() - { - CT_DataMeasureTextOutput* ret = new (ELeave) CT_DataMeasureTextOutput(); - CleanupStack::PushL(ret); - ret->ConstructL(); - CleanupStack::Pop(ret); - return ret; - } - - -/** -* Protected constructor. First phase construction -*/ -CT_DataMeasureTextOutput::CT_DataMeasureTextOutput() -: CDataWrapperBase() -, iMeasureTextOutput(NULL) - { - } - - -/** -* Protected second phase construction -*/ -void CT_DataMeasureTextOutput::ConstructL() - { - } - - -/** -* Destructor. -*/ -CT_DataMeasureTextOutput::~CT_DataMeasureTextOutput() - { - DestroyData(); - } - - -/** -* cleanup implementation. -*/ -void CT_DataMeasureTextOutput::DestroyData() - { - delete iMeasureTextOutput; - iMeasureTextOutput = NULL; - } - - -/** -* Return a pointer to the object that the data wraps -* -* @return pointer to the object that the data wraps -*/ -TAny* CT_DataMeasureTextOutput::GetObject() - { - return iMeasureTextOutput; - } - - -/** -* Process a command read from the ini file -* -* @param aDataWrapper test step requiring command to be processed -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* -* @return ETrue if the command is processed -*/ -TBool CT_DataMeasureTextOutput::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt /*aAsyncErrorIndex*/) - { - TBool retVal = ETrue; - - if (aCommand == KCmdNew) - { - DoCmdNew(); - } - else if (aCommand == KCmdSetBounds) - { - DoCmdSetBounds(aSection); - } - else if (aCommand == KCmdSetChars) - { - DoCmdSetChars(aSection); - } - else if (aCommand == KCmdSetGlyphs) - { - DoCmdSetGlyphs(aSection); - } - else if (aCommand == KCmdSetGroups) - { - DoCmdSetGroups(aSection); - } - else if (aCommand == KCmdSetMaxGlyphSize) - { - DoCmdSetMaxGlyphSize(aSection); - } - else if (aCommand == KCmdSetSpaces) - { - DoCmdSetSpaces(aSection); - } - else if (aCommand == KCmdDestructor) - { - DestroyData(); - } - else - { - retVal=EFalse; - } - - return retVal; - } - - -////////////////// COMMANDS IMPLEMENTATION //////////////////////// - -/** Creates an instance of TMeasureTextOutput structure */ -void CT_DataMeasureTextOutput::DoCmdNew() - { - INFO_PRINTF1(_L("Creates an instance of TMeasureTextOutput structure")); - - // cleanup if any - DestroyData(); - - // call new operator - TRAPD(err, iMeasureTextOutput = new (ELeave) CFont::TMeasureTextOutput()); - - // check error code - if (err != KErrNone) - { - ERR_PRINTF2(_L("Error creating an instance: %d"), err); - SetError(err); - } - } - - -/** Sets TMeasureTextOutputData::iChars */ -void CT_DataMeasureTextOutput::DoCmdSetChars(const TDesC& aSection) - { - INFO_PRINTF1(_L("Sets TMeasureTextOutputData::iChars")); - - // get value from parameters - TInt value; - if (GetValueFromConfig(*this,aSection, value)) - { - iMeasureTextOutput->iChars = value; - } - } - - -/** Sets TMeasureTextOutputData::iGlyphs */ -void CT_DataMeasureTextOutput::DoCmdSetGlyphs(const TDesC& aSection) - { - INFO_PRINTF1(_L("Sets TMeasureTextOutputData::iGlyphs")); - - // get value from parameters - TInt value; - if (GetValueFromConfig(*this, aSection, value)) - { - iMeasureTextOutput->iGlyphs = value; - } - } - - -/** Sets TMeasureTextOutputData::iGroups */ -void CT_DataMeasureTextOutput::DoCmdSetGroups(const TDesC& aSection) - { - INFO_PRINTF1(_L("Sets TMeasureTextOutputData::iGroups")); - - // get value from parameters - TInt value; - if (GetValueFromConfig(*this, aSection, value)) - { - iMeasureTextOutput->iGroups = value; - } - } - - -/** Sets TMeasureTextOutputData::iSpaces */ -void CT_DataMeasureTextOutput::DoCmdSetSpaces(const TDesC& aSection) - { - INFO_PRINTF1(_L("Sets TMeasureTextOutputData::iSpaces")); - - // get value from parameters - TInt value; - if (GetValueFromConfig(*this, aSection, value)) - { - iMeasureTextOutput->iSpaces = value; - } - } - - -/** Sets TMeasureTextOutputData::iBounds */ -void CT_DataMeasureTextOutput::DoCmdSetBounds(const TDesC& aSection) - { - INFO_PRINTF1(_L("Sets TMeasureTextOutputData::iBounds")); - - TBool dataOk = ETrue; - - // get rect Ax from parameters - TInt rectAx; - if(!GetIntFromConfig(aSection, KRectAx(), rectAx)) - { - ERR_PRINTF2(_L("No %S"), &KRectAx()); - SetBlockResult(EFail); - dataOk = EFalse; - } - - // get rect Ay from parameters - TInt rectAy; - if(!GetIntFromConfig(aSection, KRectAy(), rectAy)) - { - ERR_PRINTF2(_L("No %S"), &KRectAy()); - SetBlockResult(EFail); - dataOk = EFalse; - } - - // get rect Bx from parameters - TInt rectBx; - if(!GetIntFromConfig(aSection, KRectBx(), rectBx)) - { - ERR_PRINTF2(_L("No %S"), &KRectBx()); - SetBlockResult(EFail); - dataOk = EFalse; - } - - // get rect By from parameters - TInt rectBy; - if(!GetIntFromConfig(aSection, KRectBy(), rectBy)) - { - ERR_PRINTF2(_L("No %S"), &KRectBy()); - SetBlockResult(EFail); - dataOk = EFalse; - } - - // set the field - if (dataOk) - { - iMeasureTextOutput->iBounds.SetRect(rectAx, rectAy, rectBx, rectBy); - } - } - - -/** Sets TMeasureTextOutputData::iMaxGlyphSize */ -void CT_DataMeasureTextOutput::DoCmdSetMaxGlyphSize(const TDesC& aSection) - { - INFO_PRINTF1(_L("Sets TMeasureTextOutputData::iMaxGlyphSize")); - - TBool dataOk = ETrue; - - // get width from parameters - TInt width; - if(!GetIntFromConfig(aSection, KWidth(), width)) - { - ERR_PRINTF2(_L("No %S"), &KWidth()); - SetBlockResult(EFail); - dataOk = EFalse; - } - - // get height from parameters - TInt height; - if(!GetIntFromConfig(aSection, KHeight(), height)) - { - ERR_PRINTF2(_L("No %S"), &KHeight()); - SetBlockResult(EFail); - dataOk = EFalse; - } - - // set the field - if (dataOk) - { - iMeasureTextOutput->iMaxGlyphSize.iWidth = width; - iMeasureTextOutput->iMaxGlyphSize.iHeight = height; - } - } - - - -///////////////////////////////// UTIL METHODS ////////////////////////////////////// - - -/** -* Utility method that fetches a int value from parameters -*/ -TBool CT_DataMeasureTextOutput::GetValueFromConfig(CDataWrapper& iInputStep, const TDesC& aSection, TInt& aValue) - { - TBool ret=iInputStep.GetIntFromConfig(aSection, KValue(), aValue); - if (!ret) - { - iInputStep.ERR_PRINTF2(_L("No %S"), &KValue()); - iInputStep.SetBlockResult(EFail); - } - - return ret; - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/gdi/src/T_DataPalette.cpp --- a/graphicsapitest/graphicssvs/gdi/src/T_DataPalette.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,196 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataPalette -*/ - -#include "T_DataPalette.h" -#include "T_GraphicsUtil.h" - - -/*@{*/ -/// Parameters -_LIT(KNumberOfColors, "number_of_colors"); -_LIT(KDisplayMode, "displaymode"); - -/// Commands -_LIT(KCmdNewL, "NewL"); -_LIT(KCmdNewDefaultL, "NewDefaultL"); -_LIT(KCleanup, "~"); -/*@}*/ - - -/** -* Two phase constructor -*/ -CT_DataPalette* CT_DataPalette::NewL() - { - CT_DataPalette* ret = new (ELeave) CT_DataPalette(); - CleanupStack::PushL(ret); - ret->ConstructL(); - CleanupStack::Pop(ret); - return ret; - } - - -/** -* Protected constructor. First phase construction -*/ -CT_DataPalette::CT_DataPalette() -: CDataWrapperBase() -, iPalette(NULL) - { - } - - -/** -* Protected second phase construction -*/ -void CT_DataPalette::ConstructL() - { - } - - -/** -* Destructor. -*/ -CT_DataPalette::~CT_DataPalette() - { - DestroyData(); - } - - -/** -* cleanup implementation. -*/ -void CT_DataPalette::DestroyData() - { - delete iPalette; - iPalette = NULL; - } - - -/** -* Return a pointer to the object that the data wraps -* -* @return pointer to the object that the data wraps -*/ -TAny* CT_DataPalette::GetObject() - { - return iPalette; - } - - -/** -* Process a command read from the ini file -* -* @param aDataWrapper test step requiring command to be processed -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* -* @return ETrue if the command is processed -*/ -TBool CT_DataPalette::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt /*aAsyncErrorIndex*/) - { - TBool retVal = ETrue; - - if (aCommand == KCmdNewL) - { - DoCmdNew(aSection); - } - else if (aCommand == KCmdNewDefaultL) - { - DoCmdNewDefault(aSection); - } - else if (aCommand == KCleanup) - { - DestroyData(); - } - else - { - retVal=EFalse; - } - - return retVal; - } - - -////////////////// COMMANDS IMPLEMENTATION //////////////////////// - -/** Creates a default palette for the display mode specified */ -void CT_DataPalette::DoCmdNew(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CPalette::NewL() creates a new palette with a given number of colors")); - // cleanup if any - delete iPalette; - iPalette = NULL; - - // get number of colors from parameters - TInt numberOfColors; - if(!GetIntFromConfig(aSection, KNumberOfColors(), numberOfColors)) - { - ERR_PRINTF2(_L("No %S"), &KNumberOfColors()); - SetBlockResult(EFail); - } - else - { - // create new palette - TRAPD(err, iPalette = CPalette::NewL(numberOfColors)); - - // check error code - if (err != KErrNone) - { - ERR_PRINTF2(_L("CPalette::NewL error: %d"), err); - SetBlockResult(EFail); - } - } - } - - -/** Creates a default palette for the display mode specified */ -void CT_DataPalette::DoCmdNewDefault(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CPalette::NewDefaultL() creating a default palette for the display mode specified")); - - // cleanup if any - delete iPalette; - iPalette = NULL; - - // get display mode from parameters - TDisplayMode displayMode; - if ( !CT_GraphicsUtil::ReadDisplayMode(*this, aSection, KDisplayMode(), displayMode) ) - { - ERR_PRINTF1(_L("No display mode")); - SetBlockResult(EFail); - } - else - { - // create new palette - TRAPD(err, iPalette = CPalette::NewDefaultL(displayMode)); - - // check error code - if (err != KErrNone) - { - ERR_PRINTF2(_L("CPalette::NewDefaultL error: %d"), err); - SetBlockResult(EFail); - } - } - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/gdi/src/T_DataTypefaceStore.cpp --- a/graphicsapitest/graphicssvs/gdi/src/T_DataTypefaceStore.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,368 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataTypefaceStore -*/ - -#include "T_DataTypefaceStore.h" - -/*@{*/ -/// Parameters -_LIT(KFont, "font"); -_LIT(KFontDataObjectName, "font_data_object_name"); -_LIT(KFontMaxHeight, "font_max_height"); -_LIT(KTypefaceIndex, "typeface_index"); -_LIT(KHeightIndex, "height_index"); -_LIT(KTypefaces, "typefaces"); -_LIT(KCheckHeightPositive, "check_height_positive"); - -/// Commands -_LIT(KCmdFontHeightInTwips, "FontHeightInTwips"); -_LIT(KCmdGetNearestFontInTwips, "GetNearestFontInTwips"); -_LIT(KCmdGetNearestFontToDesignHeightInTwips, "GetNearestFontToDesignHeightInTwips"); -_LIT(KCmdGetNearestFontToMaxHeightInTwips, "GetNearestFontToMaxHeightInTwips"); -_LIT(KCmdNumTypefaces, "NumTypefaces"); -_LIT(KCmdReleaseFont, "ReleaseFont"); -_LIT(KCmdTypefaceSupport, "TypefaceSupport"); - -/// Logging -_LIT(KLogError, "Error=%d"); -_LIT(KLogMissingParameter, "Missing parameter '%S'"); -/*@}*/ - -/** -* Constructor. First phase construction -*/ -CT_DataTypefaceStore::CT_DataTypefaceStore() -: CDataWrapperBase() - { - } - - -/** -* Process a command read from the ini file -* -* @param aDataWrapper test step requiring command to be processed -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* -* @return ETrue if the command is processed -*/ -TBool CT_DataTypefaceStore::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt /*aAsyncErrorIndex*/) - { - TBool retVal = ETrue; - - if (aCommand == KCmdGetNearestFontInTwips) - { - DoCmdGetNearestFontInTwipsL(aSection); - } - else if (aCommand == KCmdGetNearestFontToMaxHeightInTwips) - { - DoCmdGetNearestFontToMaxHeightInTwipsL(aSection); - } - else if (aCommand == KCmdNumTypefaces) - { - DoCmdNumTypefaces(aSection); - } - else if (aCommand == KCmdTypefaceSupport) - { - DoCmdTypefaceSupport(aSection); - } - else if (aCommand == KCmdFontHeightInTwips) - { - DoCmdFontHeightInTwips(aSection); - } - else if (aCommand == KCmdGetNearestFontToDesignHeightInTwips) - { - DoCmdGetNearestFontToDesignHeightInTwipsL(aSection); - } - else if (aCommand == KCmdReleaseFont) - { - DoCmdReleaseFontL(aSection); - } - else - { - retVal = EFalse; - } - - return retVal; - } - - -////////////////// COMMANDS IMPLEMENTATION //////////////////////// - - -/** Call CTypefaceStore::GetNearestFontInTwips() */ -void CT_DataTypefaceStore::DoCmdGetNearestFontInTwipsL(const TDesC& aSection) - { - INFO_PRINTF1(_L("Call CTypefaceStore::GetNearestFontInTwips()")); - - TFontSpec fontSpec; - if ( !GetFontSpecFromConfig(aSection, KFont, fontSpec) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFont()); - SetBlockResult(EFail); - } - else - { - // call CTypefaceStore::GetNearestFontInTwips() - CFont* font = NULL; - TInt err = GetTypefaceStore()->GetNearestFontInTwips(font, fontSpec); - - // check error code - if (err != KErrNone) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - else - { - // set font data object of provided - SetFontDataObjectIfPassedAsParameterL(font, aSection); - } - } - } - - -/** Call CTypefaceStore::GetNearestFontToDesignHeightInTwips() */ -void CT_DataTypefaceStore::DoCmdGetNearestFontToDesignHeightInTwipsL(const TDesC& aSection) - { - INFO_PRINTF1(_L("Call CTypefaceStore::GetNearestFontToDesignHeightInTwips()")); - - TFontSpec fontSpec; - if ( !GetFontSpecFromConfig(aSection, KFont, fontSpec) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFont()); - SetBlockResult(EFail); - } - else - { - // call CTypefaceStore::GetNearestFontToDesignHeightInTwips() - CFont* font = NULL; - TInt err = GetTypefaceStore()->GetNearestFontToDesignHeightInTwips(font, fontSpec); - - // check error code - if (err != KErrNone) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - else - { - // set font data object of provided - SetFontDataObjectIfPassedAsParameterL(font, aSection); - } - } - } - - -/** Call CTypefaceStore::GetNearestFontToMaxHeightInTwips() */ -void CT_DataTypefaceStore::DoCmdGetNearestFontToMaxHeightInTwipsL(const TDesC& aSection) - { - INFO_PRINTF1(_L("Call CTypefaceStore::GetNearestFontToMaxHeightInTwips()")); - - TBool dataOk=ETrue; - - TFontSpec fontSpec; - if ( !GetFontSpecFromConfig(aSection, KFont, fontSpec) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFont()); - SetBlockResult(EFail); - } - - // get font maximum height from parameters - TInt fontMaxHeight; - if(!GetIntFromConfig(aSection, KFontMaxHeight(), fontMaxHeight)) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFontMaxHeight()); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - // call CTypefaceStore::GetNearestFontToMaxHeightInTwips() - CFont* font = NULL; - TInt err = GetTypefaceStore()->GetNearestFontToMaxHeightInTwips(font, fontSpec, fontMaxHeight); - - // check error code - if (err != KErrNone) - { - ERR_PRINTF2(_L("Get nearest font to max height in twips error: %d"), err); - SetError(err); - } - else - { - // set font data object of provided - SetFontDataObjectIfPassedAsParameterL(font, aSection); - - // check that the height of the returned font is not greater that the maximum specified - TFontSpec fontSpecInTwips = font->FontSpecInTwips(); - TInt actualHeight = fontSpecInTwips.iHeight; - if (actualHeight > fontMaxHeight) - { - ERR_PRINTF3(_L("Font doesn't match in maximum specified, height: %d, maximum: %d"), actualHeight, fontMaxHeight); - SetBlockResult(EFail); - } - } - } - } - - -/** Call CTypefaceStore::NumTypefaces() */ -void CT_DataTypefaceStore::DoCmdNumTypefaces(const TDesC& aSection) - { - TInt actual=GetTypefaceStore()->NumTypefaces(); - INFO_PRINTF2(_L("Call CTypefaceStore::NumTypefaces() %d"), actual); - TInt expected; - if ( GetIntFromConfig(aSection, KTypefaces(), expected) ) - { - if ( actual != expected ) - { - ERR_PRINTF3(_L("Actual typfaces %d does not match expected %d"), actual, expected); - SetBlockResult(EFail); - } - } - } - - -/** Call CTypefaceStore::TypefaceSupport() for the given index */ -void CT_DataTypefaceStore::DoCmdTypefaceSupport(const TDesC& aSection) - { - INFO_PRINTF1(_L("Call CTypefaceStore::TypefaceSupport() for the given index")); - // get typeface index from parameters - TInt typefaceIndex; - if(!GetIntFromConfig(aSection, KTypefaceIndex(), typefaceIndex)) - { - ERR_PRINTF2(_L("No %S"), &KTypefaceIndex()); - SetBlockResult(EFail); - } - else - { - // call TypefaceSupport() - TTypefaceSupport typefaceSupport; - GetTypefaceStore()->TypefaceSupport(typefaceSupport, typefaceIndex); - INFO_PRINTF2(_L("iIsScalable %d"), typefaceSupport.iIsScalable); - INFO_PRINTF2(_L("iMaxHeightInTwips %d"), typefaceSupport.iMaxHeightInTwips); - INFO_PRINTF2(_L("iMinHeightInTwips %d"), typefaceSupport.iMinHeightInTwips); - INFO_PRINTF2(_L("iNumHeights %d"), typefaceSupport.iNumHeights); - } - } - - -/** Call CTypefaceStore::FontHeightInTwips() */ -void CT_DataTypefaceStore::DoCmdFontHeightInTwips(const TDesC& aSection) - { - INFO_PRINTF1(_L("Call CTypefaceStore::FontHeightInTwips()")); - TBool dataOk=ETrue; - - // get typeface index from parameters - TInt typefaceIndex; - if(!GetIntFromConfig(aSection, KTypefaceIndex(), typefaceIndex)) - { - ERR_PRINTF2(_L("No %S"), &KTypefaceIndex()); - SetBlockResult(EFail); - dataOk=EFalse; - } - - // get height index from parameters - TInt heightIndex; - if(!GetIntFromConfig(aSection, KHeightIndex(), heightIndex)) - { - ERR_PRINTF2(_L("No %S"), &KHeightIndex()); - SetBlockResult(EFail); - dataOk=EFalse; - } - - if ( dataOk ) - { - TInt typefaceHeight = GetTypefaceStore()->FontHeightInTwips(typefaceIndex, heightIndex); - INFO_PRINTF2(_L("Typeface height %d"), typefaceHeight); - - // get positive height check flag from parameters - TBool checkHeightPositive = EFalse; - GetBoolFromConfig(aSection, KCheckHeightPositive(), checkHeightPositive); - - // check that typeface height is positive - if ( checkHeightPositive && (typefaceHeight<=0) ) - { - ERR_PRINTF2(_L("Typeface height is not greater than 0, height: %d"), typefaceHeight); - SetBlockResult(EFail); - } - } - } - - -/** CTypefaceStore::ReleaseFont() call */ -void CT_DataTypefaceStore::DoCmdReleaseFontL(const TDesC& aSection) - { - INFO_PRINTF1(_L("CTypefaceStore::ReleaseFont() call")); - - CT_DataFont* fontDataObject=GetFontDataObjectFromParameterL(KFontDataObjectName(), aSection); - - if (fontDataObject == NULL) - { - ERR_PRINTF1(_L("Font data wrapper was not found")); - SetBlockResult(EFail); - } - else - { - GetTypefaceStore()->ReleaseFont(static_cast(fontDataObject->GetObject())); - } - } - - -///////////////////////////////// UTIL METHODS ////////////////////////////////////// - - -/** -* Utility method that sets CT_DataFont with a new font if the name of the data object was passed as a parameter from INI-file. -*/ -void CT_DataTypefaceStore::SetFontDataObjectIfPassedAsParameterL(CFont* aFont, const TDesC& aSection) - { - // fetch data object - CT_DataFont* fontDataObject = GetFontDataObjectFromParameterL(KFontDataObjectName(), aSection); - if ( fontDataObject != NULL ) - { - // set obtained font for the data object - fontDataObject->SetObjectL(aFont); - } - } - - -/** -* Utility method that fetches CT_DataFont pointer by command parameter name from INI-file. -*/ -CT_DataFont* CT_DataTypefaceStore::GetFontDataObjectFromParameterL(const TDesC& aParameterName, const TDesC& aSection) - { - CT_DataFont* ret = NULL; - - // get FontData object from parameters - TPtrC fontDataObjectName; - if ( GetStringFromConfig(aSection, aParameterName, fontDataObjectName) ) - { - // check that the data object was found - ret = static_cast(GetDataWrapperL(fontDataObjectName)); - } - - return ret; - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/group/bld.inf --- a/graphicsapitest/graphicssvs/group/bld.inf Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,41 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// - -#include "../testsuites/group/bld.inf" -#include "../fbserv/group/bld.inf" -#include "../wserv/group/bld.inf" -#include "../bitgdi/group/bld.inf" -#include "../fntstore/group/bld.inf" -PRJ_TESTEXPORTS -t_graphics.oby /epoc32/rom/include/t_graphics.oby -td_graphics.oby /epoc32/rom/include/td_graphics.oby -makesisfiles.bat /epoc32/pkg/makesisfiles.bat - -../scripts/setup_t_graphics.script z:/graphics/setup_t_graphics.script - -../scripts/t_graphics.script z:/graphics/t_graphics.script -../scripts/t_graphics.script /epoc32/pkg/t_graphics.script - -../config/t_graphics.tcs z:/graphics/t_graphics.tcs -../config/t_graphics.tcs /epoc32/pkg/t_graphics.tcs - -../config/t_graphics_panic.tcs z:/graphics/t_graphics_panic.tcs -../config/t_graphics_panic.tcs /epoc32/pkg/t_graphics_panic.tcs - -../testdata/winscw/t_graphics.ini z:/graphics/t_graphics.ini -../testdata/winscw/t_graphics.ini z:/graphics/winscw/t_graphics.ini -../testdata/armv5/t_graphics.ini z:/graphics/armv5/t_graphics.ini -../testdata/armv5/t_graphics.ini /epoc32/pkg/t_graphics.ini diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/group/graphicssvs.mrp --- a/graphicsapitest/graphicssvs/group/graphicssvs.mrp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,4 +0,0 @@ -component graphicssvs -source \sf\os\graphics\graphicsapitest\graphicssvs -notes_source \sf\os\graphics\graphicsapitest\graphicssvs\group\release.txt -ipr T diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/group/makerom.bat --- a/graphicsapitest/graphicssvs/group/makerom.bat Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -@rem -@rem Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -@rem All rights reserved. -@rem This component and the accompanying materials are made available -@rem under the terms of "Eclipse Public License v1.0" -@rem which accompanies this distribution, and is available -@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". -@rem -@rem Initial Contributors: -@rem Nokia Corporation - initial contribution. -@rem -@rem Contributors: -@rem -@rem Description: -@rem -if "%1" == "" GOTO ERR -buildrom -D_STARTUPMODE2 -D_EABI=ARMV5 -DRVCT -DUSE_STRONG_CRYPTOGRAPHY %1 techview_statapi platsec t_graphics -GOTO EXIT - -:ERR -REM target parameter missing - -:EXIT diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/group/makesisfiles.bat --- a/graphicsapitest/graphicssvs/group/makesisfiles.bat Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,57 +0,0 @@ -@rem -@rem Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -@rem All rights reserved. -@rem This component and the accompanying materials are made available -@rem under the terms of "Eclipse Public License v1.0" -@rem which accompanies this distribution, and is available -@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". -@rem -@rem Initial Contributors: -@rem Nokia Corporation - initial contribution. -@rem -@rem Contributors: -@rem -@rem Description: -@rem - -copy ..\release\armv5\urel\t_fbservapi.exe . -copy ..\release\armv5\urel\t_graphicswservapi.exe . -copy ..\release\armv5\urel\t_graphicsbitgdiapi.exe . -copy ..\release\armv5\urel\t_graphicsfntstoreapi.exe . -copy ..\release\armv5\urel\t_animplugin.dll . -copy ..\release\armv5\urel\TWsGraphicShare.exe . -copy ..\release\armv5\urel\TWsGraphicUnshare.exe . - -md t_fbservapi -copy ..\data\z\graphics\t_fbservapi\empty_file.txt .\t_fbservapi -copy ..\data\z\graphics\t_fbservapi\testfontfb.gdr .\t_fbservapi -copy ..\data\z\graphics\t_fbservapi\test_bitmap.mbm .\t_fbservapi -copy ..\data\z\graphics\t_fbservapi\test_bitmap_offset8.mbm .\t_fbservapi -copy ..\data\z\graphics\t_fbservapi\scaniline_10bytes.txt .\t_fbservapi -copy ..\data\z\graphics\t_fbservapi\test_bitmap_24bit_400x300.mbm .\t_fbservapi -copy ..\data\z\graphics\t_fbservapi\test_bitmap_32x8.mbm .\t_fbservapi -copy ..\data\z\graphics\t_fbservapi\test_bitmap_rom.rbm .\t_fbservapi - -md wserv -copy ..\data\z\graphics\wserv\test_alpha.mbm .\wserv -copy ..\data\z\graphics\wserv\test_board.mbm .\wserv -copy ..\data\z\graphics\wserv\test_mask.mbm .\wserv - -md bitgdi -copy ..\data\z\graphics\bitgdi\test_rwssprite_bitmap.mbm .\bitgdi - -md fntstore -copy ..\data\z\graphics\fntstore\dummy .\fntstore -copy ..\data\z\graphics\fntstore\dummy_2 .\fntstore -copy ..\data\z\graphics\fntstore\testfontws.gdr .\fntstore - -call makesis t_fbservapi.pkg t_fbservapi.sis -call makesis t_wservapi.pkg t_wservapi.sis -call makesis t_bitgdiapi.pkg t_bitgdiapi.sis -call makesis t_fntstoreapi.pkg t_fntstoreapi.sis - -call signsis -s t_fbservapi.sis t_fbservapi.sis zeus.cer SymbianACS.key caforstat -call signsis -s t_wservapi.sis t_wservapi.sis zeus.cer SymbianACS.key caforstat -call signsis -s t_bitgdiapi.sis t_bitgdiapi.sis zeus.cer SymbianACS.key caforstat -call signsis -s t_fntstoreapi.sis t_fntstoreapi.sis zeus.cer SymbianACS.key caforstat - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/group/readme.txt --- a/graphicsapitest/graphicssvs/group/readme.txt Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,11 +0,0 @@ -Brief description of the helper/setup files - -makerom.bat Batch file to create a rom rather than doing it manually from - a commandline - -makesisfiles.bat Batch file copied to \epoc32\pkg\makesisfiles.bat in order to - make it easy to create a sis file with \epoc32\pkg as the - current directory - -testdriversetup.bat Uses testdriversetup.pl to correctly install testdriver in the - system diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/group/release.txt --- a/graphicsapitest/graphicssvs/group/release.txt Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,5 +0,0 @@ -NOTESRC_RELEASER -Nokia Corporation - -NOTESRC_RELEASE_REASON -Graphics SVS diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/group/t_graphics.oby --- a/graphicsapitest/graphicssvs/group/t_graphics.oby Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,30 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// - -#if (!defined __T_GRAPHICS_OBY__) -#define __T_GRAPHICS_OBY__ - -#include -#include -#include -#include - -data=EPOCROOT##Epoc32\data\z\graphics\t_graphics.ini graphics\t_graphics.ini -data=EPOCROOT##Epoc32\data\z\graphics\setup_t_graphics.script graphics\setup_t_graphics.script -data=EPOCROOT##Epoc32\data\z\graphics\t_graphics.script graphics\t_graphics.script -data=EPOCROOT##Epoc32\data\z\graphics\t_graphics.tcs graphics\t_graphics.tcs -data=EPOCROOT##Epoc32\data\z\graphics\t_graphics_panic.tcs graphics\t_graphics_panic.tcs -#endif diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/group/td_graphics.oby --- a/graphicsapitest/graphicssvs/group/td_graphics.oby Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,22 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// - -#if (!defined __TD_GRAPHICS_OBY__) -#define __TD_GRAPHICS_OBY__ - -#include - -#endif diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/group/testdriversetup.bat --- a/graphicsapitest/graphicssvs/group/testdriversetup.bat Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,17 +0,0 @@ -@rem -@rem Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -@rem All rights reserved. -@rem This component and the accompanying materials are made available -@rem under the terms of "Eclipse Public License v1.0" -@rem which accompanies this distribution, and is available -@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". -@rem -@rem Initial Contributors: -@rem Nokia Corporation - initial contribution. -@rem -@rem Contributors: -@rem -@rem Description: -@rem -testdriversetup.pl - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/group/testdriversetup.pl --- a/graphicsapitest/graphicssvs/group/testdriversetup.pl Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,45 +0,0 @@ -# -# Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -# All rights reserved. -# This component and the accompanying materials are made available -# under the terms of "Eclipse Public License v1.0" -# which accompanies this distribution, and is available -# at the URL "http://www.eclipse.org/legal/epl-v10.html". -# -# Initial Contributors: -# Nokia Corporation - initial contribution. -# -# Contributors: -# -# Description: -# -use Cwd; - -my $theEpocRoot=$ENV{EPOCROOT}; -my $epoc32Location="$theEpocRoot.\\epoc32"; - -my $currentDirectory=cwd; -$currentDirectory =~ s/Group//i; -$currentDirectory =~ s/\//\\/g; - -my $currentDrive = substr($currentDirectory,0,2); - -my $cmd="TestDriver config"; -my $suite="file:/$currentDrive$epoc32Location\\testdriver\\testproduct\\graphics.driver#graphics"; -$suite =~ s.\\./.g; -$suite =~ s\/./\/\g; - -$cmd .= " --bldclean OFF"; -$cmd .= " --bldmake OFF"; -$cmd .= " -e $currentDrive$theEpocRoot"; -$cmd .= " -x $currentDrive$epoc32Location\\testdriver\\testproduct"; -$cmd .= " --repos $currentDrive$epoc32Location\\testdriver\\Repository"; -$cmd .= " -c $currentDrive$epoc32Location\\testdriver\\Results"; -$cmd .= " -i $currentDirectory"; -$cmd .= " -s $suite"; -$cmd .= " --source $currentDirectory"; -$cmd .= " --tp $currentDirectory"; -$cmd .= " --platsec ON"; -$cmd .= " --testexec ON"; -$cmd .= " --commdb overwrite"; -system("$cmd"); diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/scripts/setup_t_graphics.script --- a/graphicsapitest/graphicssvs/scripts/setup_t_graphics.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,31 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// - -RUN_UTILS MkDir ${SYSDRIVE}\graphics\ - -RUN_UTILS CopyFile z:\graphics\t_graphics.ini ${SYSDRIVE}\graphics\t_graphics.ini -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\t_graphics.ini -RUN_UTILS CopyFile z:\graphics\t_graphics.script ${SYSDRIVE}\graphics\t_graphics.script -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\t_graphics.script -RUN_UTILS CopyFile z:\graphics\t_graphics.tcs ${SYSDRIVE}\graphics\t_graphics.tcs -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\t_graphics.tcs -RUN_UTILS CopyFile z:\graphics\t_graphics_panic.tcs ${SYSDRIVE}\graphics\t_graphics_panic.tcs -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\t_graphics_panic.tcs - -RUN_SCRIPT z:\graphics\setup-T-GRAPHICS-WSERV-PublicApi.script -RUN_SCRIPT z:\graphics\setup-GRAPHICS-FBSERV-PublicApi.script -RUN_SCRIPT z:\graphics\setup-T-GRAPHICS-BITGDI-PublicApi.script -RUN_SCRIPT z:\graphics\setup-T-GRAPHICS-FNTSTORE-PublicApi.script diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/scripts/t_graphics.script --- a/graphicsapitest/graphicssvs/scripts/t_graphics.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,21 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// - -RUN_SCRIPT ${SYSDRIVE}\graphics\GRAPHICS-WSERV-PublicApi.script -RUN_SCRIPT ${SYSDRIVE}\graphics\GRAPHICS-FBSERV-PublicApi.script -RUN_SCRIPT ${SYSDRIVE}\graphics\GRAPHICS-BITGDI-PublicApi.script -RUN_SCRIPT ${SYSDRIVE}\graphics\GRAPHICS-FNTSTORE-PublicApi.script - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/testdata/armv5/t_graphics.ini --- a/graphicsapitest/graphicssvs/testdata/armv5/t_graphics.ini Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,278 +0,0 @@ -[default_bitgdi] -displaymode =EColor64K -screennumber =0 - -#largest font height in pixels -large_fontheight_pixels = 73439 - -#maximum height in pixels of the font nearest to 30 -nearest_to_30pixels = 42 - -#maximum height in pixels of the font nearest to 0 -nearest_to_0pixels = 2 - -#maximum height in pixels of the font nearest to -1 -nearest_to_-1pixels = 82015 - - -#largest font height in twips -large_fontheight_twips = 169651 - -#height in twips of the font nearest to 500 -nearest_to_500twips = 494 - -#height in twips of the font nearest to 0 -nearest_to_0twips = 13 - -#height in wips of the font nearest to -1 -nearest_to_-1twips = 13 - - -#maximum height in pixels of the font whose max heigth is 30 -maxheight_30pixels =29 - -#maximum height in pixels of the font whose max heigth is 0 -maxheight_0pixels = 1 - -#maximum height in pixels of the font whose max heigth is -1 -maxheight_-1pixels = 82015 - - -#maximum height in pixels of the font whose max heigth is 30 -maxheight_500twips =393 - -#maximum height in pixels of the font whose max heigth is 0 -maxheight_0twips = 13 - -#maximum height in pixels of the font whose max heigth is -1 -maxheight_-1twips = 13 - - -#font height in pixels with TypefaceIndex(0) and HeightIndex(0) -height_pixels_0_0 = 11 - -#font height in pixels with TypefaceIndex(0) and large HeightIndex -height_pixels_0_large = 16 - -#font height in twips with TypefaceIndex(0) and HeightIndex(0) -height_twips_0_0 = 140 - -#font height in pixels with TypefaceIndex(0) and large HeightIndex -height_twips_0_large = 203 - -#number of typefaces -num_typefaces = 8 - -#numbaer of typefaces after add file -num_typefaces_after_add_file = 16 - -#typeface name at TypefaceIndex 6 -typeface_name_6 = DejaVu Sans Mono - -#number of heights at TypefaceIndex 6 -typeface_num_heights_6 = 40 - -#typeface scalable at TypefaceIndex 6 -typeface_is_scalable_6 = 1 - -#typeface max height in twips at TypefaceIndex 6 -typeface_max_height_in_twips = 2880 - -#typeface min height in twips at TypefaceIndex 6 -typeface_min_height_in_twips = 102 - -#top of draw rectangle -draw_rect_top = 0 - -#left of draw rectangle -draw_rect_left = 0 - -#bottom of draw rectangle -draw_rect_bottom = 320 - -#right of draw rectangle -draw_rect_right = 240 - -#top of scaled draw rectangle -draw_rect_top_scaled = -1 - -#left of scaled draw rectangle -draw_rect_left_scaled = -1 - -#bottom of scaled draw rectangle -draw_rect_bottom_scaled = 24 - -#right of scaled draw rectangle -draw_rect_right_scaled = 32 - - -[default_fbserv] -#Set to the default display mode of the device. -displaymode =EColor256 - -#The default bitmap file used for executing the various FbsBitMap API tests. -file_name =\graphics\t_fbservapi\test_bitmap.mbm - -#Set to the default font height. -font_height =12 - -#Set to the default font typeface. -font_name =Arial - -#Set to one of the alternate font typeface. Used to check that multiple typefaces can be used. -alternate_font_name1 =Swiss - -#Set to another alternate font typeface. Used to check that multiple typefaces can be used. -alternate_font_name2 =DejaVu Sans Condensed - -#Set to the width of a large bitmap. -large_width =1000 - -#Set to the height of a large bitmap. -large_height =2000 - -#Set to the number of screens supported on the device. -screen_number =0 - -#Set to default display mode of screen. -display_mode =EColor256 - -[default_wserv] -#Set to the number of screens supported on the device -screens =1 - -#Set to index of screen (0 start) to run tests off of -screen =0 - -#Set to default pointer cursor -pointercursor =0 - -pointercursormode =EPointerCursorNone - -#Set to modifier state at start of session -modifierstate =EModifierLeftCtrl - -#Set to the default width of the device in twips. -scr_twips_width =3685 - -#Set to the default height of the device in twips. -scr_twips_height =5056 - -#Set to the default width of the device. -scr_width =240 - -#Set to the default height of the device. -scr_height =320 - -#Set to the default rotation of the device. -scr_rotation = EGraphicsOrientationNormal - -#Set to default display mode of screen -display_mode =EColor64K - -#Set to the number of colours in the richest supported colour mode -max_colors =65536 - -#Set to the number of grays in the richest supported colour mode -max_grays =0 - -#Set to display mode nearest to EColor16MA -nearest_to_color16ma =EColor64K - -#Set to display mode nearest to EColor256 -nearest_to_color256 =EColor64K - -#Largest display mode value (nearest to 10000) -large_displaymode =EColor64K - -#Pointer rect area -pointer_rect_left =0 -pointer_rect_top =0 -pointer_rect_right =240 -pointer_rect_bottom =320 - -#Num of typefaces -typefaces =8 - -#font heights -font_height =174 - -#font height for case 0194 -font_height_case0194=253 - -#font height in pixels for the font typeface_index=10 height_index=10 -font_height_10_10=0 - -#default soundplugin dll -defSoundPlugin=keyclickref.dll -defSoundPluginUid=270483700 - -#default animplugin dll -def_anim_plugin=t_animplugin.dll -#max height font name -font_maxheight=DejaVu Sans Mono - -#min height font name -font_minheight=DejaVu Sans Mono - - -[default_wserv] -#height with typeface index 0 and height index 0. -height_with_index_0_0 = 9 - -#height with typeface index 0 and height index 9999. -height_with_index_0_9999 = 227 - - -[device_map] -#Map the entries of displaymode -entries=65536 -modifiable=EFalse - -#Map between twips and pixels on horizontal dimension. -#For WsScreenDevice -horizontal_twips_1=762000000 -horizontal_pixels_1=49628223 -horizontal_twips_2=-762000000 -horizontal_pixels_2=-49628222 -horizontal_twips_3=982666667 -horizontal_pixels_3=64000000 -horizontal_twips_4=-982666666 -horizontal_pixels_4=-64000000 -#For FbsScreenDevice -horizontal_twips_5=460620000 -horizontal_pixels_5=30000000 -horizontal_twips_6=-460619999 -horizontal_pixels_6=-30000000 -horizontal_twips_7=1768172 -horizontal_pixels_7=115160 -horizontal_twips_8=-1768171 -horizontal_pixels_8=-115159 - -#Map between twips and pixels on vertical dimension. -#For WsScreenDevice -vertical_twips_1=285800000 -vertical_pixels_1=18088608 -vertical_twips_2=-285800000 -vertical_pixels_2=-18088607 -vertical_twips_3=379200000 -vertical_pixels_3=24000000 -vertical_twips_4=-379199999 -vertical_pixels_4=-24000000 -#For FbsScreenDevice -vertical_twips_5=474000 -vertical_pixels_5=30000 -vertical_twips_6=-473999 -vertical_pixels_6=-30000 -vertical_twips_7=380100 -vertical_pixels_7=24057 -vertical_twips_8=-380099 -vertical_pixels_8=-24056 - -[Drives] -# A ROM drive in the environment. -# Defines the character of the drive, the default value is 'Z'. -ROMDriveChar = Z - -# Defines the drive's index. -ROMDrive = EDrive{Drives, ROMDriveChar} diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/testdata/winscw/t_graphics.ini --- a/graphicsapitest/graphicssvs/testdata/winscw/t_graphics.ini Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,282 +0,0 @@ -[default_bitgdi] -displaymode =EColor256 -screennumber =0 - -#largest font height in pixels -large_fontheight_pixels = 73439 - -#maximum height in pixels of the font nearest to 30 -nearest_to_30pixels = 42 - -#maximum height in pixels of the font nearest to 0 -nearest_to_0pixels = 2 - -#maximum height in pixels of the font nearest to -1 -nearest_to_-1pixels = 82015 - - -#largest font height in twips -large_fontheight_twips = 219596 - -#height in twips of the font nearest to 500 -nearest_to_500twips = 500 - -#height in twips of the font nearest to 0 -nearest_to_0twips = 12 - -#height in wips of the font nearest to -1 -nearest_to_-1twips = 12 - - -#maximum height in pixels of the font whose max heigth is 30 -maxheight_30pixels =29 - -#maximum height in pixels of the font whose max heigth is 0 -maxheight_0pixels = 1 - -#maximum height in pixels of the font whose max heigth is -1 -maxheight_-1pixels = 82015 - - -#maximum height in pixels of the font whose max heigth is 30 -maxheight_500twips =393 - -#maximum height in pixels of the font whose max heigth is 0 -maxheight_0twips = 12 - -#maximum height in pixels of the font whose max heigth is -1 -maxheight_-1twips = 12 - - -#font height in pixels with TypefaceIndex(0) and HeightIndex(0) -height_pixels_0_0 = 11 - -#font height in pixels with TypefaceIndex(0) and large HeightIndex -height_pixels_0_large = 16 - -#font height in twips with TypefaceIndex(0) and HeightIndex(0) -height_twips_0_0 = 131 - -#font height in pixels with TypefaceIndex(0) and large HeightIndex -height_twips_0_large = 191 - -#number of typefaces -num_typefaces = 12 - -#numbaer of typefaces after add file -num_typefaces_after_add_file = 20 - -#typeface name at TypefaceIndex 6 -typeface_name_6 = DejaVu Sans Condensed - -#number of heights at TypefaceIndex 6 -typeface_num_heights_6 = 41 - -#typeface scalable at TypefaceIndex 6 -typeface_is_scalable_6 = 1 - -#typeface max height in twips at TypefaceIndex 6 -typeface_max_height_in_twips = 2880 - -#typeface min height in twips at TypefaceIndex 6 -typeface_min_height_in_twips = 95 - -#top of draw rectangle -draw_rect_top = 0 - -#left of draw rectangle -draw_rect_left = 0 - -#bottom of draw rectangle -draw_rect_bottom = 240 - -#right of draw rectangle -draw_rect_right = 640 - -#top of scaled draw rectangle -draw_rect_top_scaled = -1 - -#left of scaled draw rectangle -draw_rect_left_scaled = -1 - -#bottom of scaled draw rectangle -draw_rect_bottom_scaled = 24 - -#right of scaled draw rectangle -draw_rect_right_scaled = 64 - - -[default_fbserv] -#Set to the default display mode of the device. -displaymode =EColor256 - -#The default bitmap file used for executing the various FbsBitMap API tests. -file_name =\graphics\t_fbservapi\test_bitmap.mbm - -#Set to the default font height. -font_height =12 - -#Set to the default font typeface. -font_name =Arial - -#Set to one of the alternate font typeface. Used to check that multiple typefaces can be used. -alternate_font_name1 =Swiss - -#Set to another alternate font typeface. Used to check that multiple typefaces can be used. -alternate_font_name2 =DejaVu Sans Condensed - -#Set to the width of a large bitmap. -large_width =1000 - -#Set to the height of a large bitmap. -large_height =2000 - -#Set to the number of screens supported on the device. -screen_number =0 - -#Set to default display mode of screen. -display_mode =EColor256 - -[default_wserv] -#Set to the number of screens supported on the device -screens =1 - -#Set to index of screen (0 start) to run tests off of -screen =0 - -#Set to default pointer cursor -pointercursor =0 - -pointercursormode =EPointerCursorNone - -#Set to modifier state at start of session -modifierstate =EModifierLeftCtrl - -#Set to the default width of the device in twips. -scr_twips_width =7620 - -#Set to the default height of the device in twips. -scr_twips_height =2858 - -#Set to the default width of the device. -scr_width =640 - -#Set to the default height of the device. -scr_height =240 - -#Set to the default rotation of the device. -scr_rotation = EGraphicsOrientationNormal - -#Set to default display mode of screen -display_mode =EColor64K - -#Set to the number of colours in the richest supported colour mode -max_colors =65536 - -#Set to the number of grays in the richest supported colour mode -max_grays =0 - -#Set to display mode nearest to EColor16MA -nearest_to_color16ma =EColor16MA - -#Set to display mode nearest to EColor256 -nearest_to_color256 =EColor64K - -#Largest display mode value (nearest to 10000) -large_displaymode =EColor64K - -#Set to index of screen (0 start) to run tests off of -screen_negative =-9999 - -#Pointer rect area -pointer_rect_left =-90 -pointer_rect_top =-51 -pointer_rect_right =696 -pointer_rect_bottom =312 - -#Num of typefaces -typefaces =12 - -#font heights -font_height =131 - -#font height for case 0194 -font_height_case0194=191 - -#font height in pixels for the font typeface_index=10 height_index=10 -font_height_10_10=25 - -#default soundplugin dll -defSoundPlugin=keyclickref.dll -defSoundPluginUid=270483700 - -#default animplugin dll -def_anim_plugin=t_animplugin.dll -#max height font name -font_maxheight=DejaVu Sans Mono - -#min height font name -font_minheight=DejaVu Sans Mono - - -[default_wserv] -#height with typeface index 0 and height index 0. -height_with_index_0_0 = 8 - -#height with typeface index 0 and height index 9999. -height_with_index_0_9999 = 242 - - -[device_map] -#Map the entries of displaymode -entries=256 -modifiable=ETrue - -#Map between twips and pixels on horizontal dimension. -#For WsScreenDevice -horizontal_twips_1=762000000 -horizontal_pixels_1=64000000 -horizontal_twips_2=-762000000 -horizontal_pixels_2=-63999999 -horizontal_twips_3=762000000 -horizontal_pixels_3=64000000 -horizontal_twips_4=-761999999 -horizontal_pixels_4=-64000000 -#For FbsScreenDevice -horizontal_twips_5=761984000 -horizontal_pixels_5=64000000 -horizontal_twips_6=-761983999 -horizontal_pixels_6=-64000000 -horizontal_twips_7=761984000 -horizontal_pixels_7=64000000 -horizontal_twips_8=-761984000 -horizontal_pixels_8=-63999999 - - -#Map between twips and pixels on vertical dimension. -#For WsScreenDevice -vertical_twips_1=285800000 -vertical_pixels_1=24000000 -vertical_twips_2=-285800000 -vertical_pixels_2=-23999999 -vertical_twips_3=285800000 -vertical_pixels_3=24000000 -vertical_twips_4=-285799999 -vertical_pixels_4=-24000000 -#For FbsScreenDevice -vertical_twips_5=14289600 -vertical_pixels_5=1200000 -vertical_twips_6=-14289599 -vertical_pixels_6=-1200000 -vertical_twips_7=14289600 -vertical_pixels_7=1200000 -vertical_twips_8=-14289600 -vertical_pixels_8=-1199999 - -[Drives] -# A ROM drive in the environment. -# Defines the character of the drive, the default value is 'Z'. -ROMDriveChar = Z - -# Defines the drive's index. -ROMDrive = EDrive{Drives, ROMDriveChar} diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/testsuites/graphics/graphics.driver --- a/graphicsapitest/graphicssvs/testsuites/graphics/graphics.driver Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1094 +0,0 @@ - - - - - - - - - t_graphicswservapi - t_animplugin - t_prompt - TWsGraphicShare - TWsGraphicUnshare - - - t_fbservapi - - - t_graphicsbitgdiapi - - - t_graphicsfntstoreapi - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/testsuites/group/bld.inf --- a/graphicsapitest/graphicssvs/testsuites/group/bld.inf Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,18 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// - -PRJ_TESTEXPORTS -../graphics/graphics.driver /epoc32/testdriver/testproduct/graphics.driver diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/AnimPlugin/group/T_AnimPlugin.mmp --- a/graphicsapitest/graphicssvs/wserv/AnimPlugin/group/T_AnimPlugin.mmp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,45 +0,0 @@ -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// - -TARGET t_animplugin.dll -TARGETTYPE ANI -UID 268450594 0x100048F2 - -USERINCLUDE ../inc -SYSTEMINCLUDE /epoc32/include - - - -//By default, the build tools look for the WINSCW def file in a BWINS directory -//(at the same level as the directory containing the mmp file), -//the GCC ARM def file in a BMARM directory, and the ARMV5 def file in a EABI directory. -//If def files are stored in these locations, the project files does not need to specify -//the location of the def files explicitly. If you want to store the def files in some other -//location, you will need to specify in the project file where the .def files are using -//the deffile keyword. - - -LIBRARY euser.lib efsrv.lib bitgdi.lib bafl.lib gdi.lib - - -SOURCEPATH ../src -SOURCE T_TestAnimDll.cpp T_TWinAnim.cpp T_log.cpp T_AnimProc.cpp T_TSpriteAnim.cpp T_TFreeTimerWinAnim.cpp - -NOEXPORTLIBRARY -NOSTRICTDEF - -CAPABILITY PowerMgmt ProtServ ReadDeviceData WriteDeviceData - -SMPSAFE diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/AnimPlugin/group/bld.inf --- a/graphicsapitest/graphicssvs/wserv/AnimPlugin/group/bld.inf Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// - -PRJ_PLATFORMS -DEFAULT - -PRJ_EXPORTS - -PRJ_MMPFILES -T_AnimPlugin.mmp diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/AnimPlugin/inc/T_AnimDef.h --- a/graphicsapitest/graphicssvs/wserv/AnimPlugin/inc/T_AnimDef.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,96 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ -#ifndef ANIMDEF_H_ -#define ANIMDEF_H_ - - -//Anim type -#define EKWindowAnim 1 -#define EKSpriteAnim 2 -#define EKFreeTimerWindowAnim 3 - - -//command for RAnim::Command -#define ECmdSync 1 - -#define ECmdTestWithoutPara 100 -#define ECmdTestWithPara 101 -#define ECmdGetLast 102 -#define ECmdGetAnimInterval 103 - -enum TCommandsForAnimMClass - { - ECmdNone = 150, - ECmdRetrieveResult, - ECmdGeneralAnimate, - ECmdGeneralSetSync, - ECmdGeneralSync, - ECmdGeneralSystemTime, - ECmdGeneralSetInterval, - ECmdGeneralSetNextInterval, - ECmdGeneralClient, - ECmdGeneralScreenDevice, - ECmdGeneralEventExtension, - ECmdGeneralWindowExtension, - ECmdGeneralExtendedInterface, - ECmdGeneralNumOfExtInterfaces, - ECmdGeneralPanic, - ECmdGeneralReplyBuf, - ECmdGeneralFlashStateOn, - ECmdGeneralDuplicateBitmapL, - ECmdGeneralDuplicateFontL, - ECmdGeneralCloseFont, - ECmdGeneralGetRawEvents, - ECmdGeneralPostKeyEvent, - ECmdGeneralPostRawEvent, - ECmdGeneralMessage, - ECmdGeneralRegisterForNotis, - ECmdSpriteGetSpriteMember, - ECmdSpriteUpdateMember, - ECmdSpriteActivate, - ECmdSpriteSpriteCanBeSeen, - ECmdSpriteSizeChangedL, - ECmdSpriteSetPosition, - ECmdGfweFocusScreens, - ECmdGfweScreens, - ECmdGfweSetFocusScreen, - ECmdGfweSetOrdinalPosition, - ECmdGfweWindowGroupInfo, - ECmdGfweWindowGroupName, - ECmdGfweWindowGroups, - ECmdGfweIsFocusable, - ECmdGfweWindowConfig, - ECmdWindowActivateGc, - ECmdWindowInvalidate, - ECmdWindowParameters, - ECmdWindowIsHidden, - ECmdWindowSetRect, - ECmdWindowSetVisible, - ECmdWindowVisibleRegion, - ECmdWindowWindowSize, - ECmdFreeTimerWinDeactivateGc, - ECmdFreeTimerWinUpdate, - ECmdWindowIsStarted, - ECmdReceiveResult, - ECmdGeneralReplyBuf8, - ECmdGeneralReplyBuf16, - - ECmdUtilEatupMemory, - ECmdUtilFreeEatenMemory -}; - -#endif /*ANIMDEF_H_*/ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/AnimPlugin/inc/T_AnimProc.h --- a/graphicsapitest/graphicssvs/wserv/AnimPlugin/inc/T_AnimProc.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,92 +0,0 @@ -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// - -#ifndef ANIMPROC_H -#define ANIMPROC_H - -// INCLUDES -#include -#include -#include "T_TestAnimDll.h" -#include "badesca.h" -#include "e32cmn.h" - -// CLASS DECLARATION -#define KAnimTimeSize 3 - - - -typedef RArray RIntArray; - -/** -* CAnimProc -* -*/ -class CAnimProc -{ -public: // Constructors and destructor - - CAnimProc(CTestAnimDll* aDll,TInt aType); - virtual ~CAnimProc(); - - TInt CmdReply(MAnimGeneralFunctions* pFunc, TInt aOpcode, TAny *aArgs); - - - TInt ConstructWinL(TAny *aArgs,MAnimGeneralFunctions* pFunc); - - TInt WriteLog(const TDesC& aInfo); - TInt WriteLog(const TDesC8& aInfo); -protected: - - CDesCArray* ProcParamLC(const TDesC8& param); - void ConvertParam(TDes8& buf,TAny *aArgs); - TInt GetIntFromStr(const TDesC& str,RIntArray& ary); - - void RecordAnimTime(); - - void RecordLastCmd(TInt cmd); - void RecordLastCmd(TInt cmd,const TDesC8& str); - void RecordLastCmd(const TDesC8& str); - - TInt64 iAnimTime[KAnimTimeSize]; // last time of Animate - - - TPoint iNewPoint; // The square's current position - TPoint iLastPoint; // The square's last position - - TInt iStepX; // move step of x-coordinate - TInt iStepY; // move step of y-coordinate - - TSize iSize; // The square's size - - TRect iScreenSize; // The screen size - - TInt iDrawType; // draw type - - TSize iPenSize; // pen size - - TBool iDrawn; // Has the animation been drawn - - TRgb iColor; // draw color - - CTestAnimDll* iDll; // anim dll - - RBuf iLastCommand; // store last command & parameter - - TInt iAnimType; // animation type -}; - -#endif // ANIMPROC_H - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/AnimPlugin/inc/T_TFreeTimerWinAnim.h --- a/graphicsapitest/graphicssvs/wserv/AnimPlugin/inc/T_TFreeTimerWinAnim.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,55 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -#ifndef CFREETIMERWINANIM_H -#define CFREETIMERWINANIM_H - -// INCLUDES -#include -#include -#include -// CLASS DECLARATION - -/** - * CTFreeTimerWinAnim - * - */ -class CTFreeTimerWinAnim : public CFreeTimerWindowAnim - { -public: - CTFreeTimerWinAnim(); - ~CTFreeTimerWinAnim(); - - //from CAnim - virtual TInt CommandReplyL(TInt aOpcode, TAny *aArgs); - virtual void Command(TInt aOpcode, TAny *aArgs); - virtual void Animate(TDateTime *aDateTime); - //from MEventHandler - virtual TBool OfferRawEvent(const TRawEvent &aRawEvent); - //from CWindowAnim - virtual void ConstructL(TAny *aArgs, TBool aHasFocus); - virtual void Redraw(); - virtual void FocusChanged(TBool aState); - -private: - TBool iResult; - TInt iCurrentCommand; - TRect iScreenSize; // The screen size - }; // class CTFreeTimerWinAnim - -#endif // CFREETIMERWINANIM_H diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/AnimPlugin/inc/T_TSpriteAnim.h --- a/graphicsapitest/graphicssvs/wserv/AnimPlugin/inc/T_TSpriteAnim.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,77 +0,0 @@ -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// - -#ifndef SPRITEANIM_H -#define SPRITEANIM_H - -// INCLUDES -#include -#include -#include "w32adll.h" -#include "w32std.h" - - - - -// CLASS DECLARATION - -/** -* CWinAnim -* -*/ - -class CTestAnimDll; -class CAnimProc; - -class CTSpriteAnim: public CSpriteAnim, CAnimProc -{ -public: // Constructors and destructor - - /** - * Destructor. - */ - ~CTSpriteAnim(); - - /** - * Constructor for performing 1st stage construction - */ - CTSpriteAnim(CTestAnimDll* aDll, TInt aType); - - virtual void ConstructL(TAny *aArgs); - virtual void Redraw(); - virtual void FocusChanged(TBool aState); - virtual TInt CommandReplyL(TInt aOpcode, TAny *aArgs); - virtual void Command(TInt aOpcode, TAny *aArgs); - virtual void Animate(TDateTime *aDateTime); - virtual TBool OfferRawEvent(const TRawEvent &aRawEvent); - -private: - void Draw(); - void Compare(); - - TInt DoCmdGetSpriteMemberL(); - TInt DoCmdActiveL(); - TInt DoCmdSetPositionL(); - TInt DoCmdSpriteCanBeSeen(); - TInt DoCmdUpdateMemberL(); - TInt DoCmdSizeChangeL(); - -protected: - - -}; - -#endif // WINANIM_H - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/AnimPlugin/inc/T_TWinAnim.h --- a/graphicsapitest/graphicssvs/wserv/AnimPlugin/inc/T_TWinAnim.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,173 +0,0 @@ -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// - -#ifndef WINANIM_H -#define WINANIM_H - -// INCLUDES -#include -#include -#include "w32adll.h" -#include "w32std.h" -#include "T_AnimProc.h" - - -// CLASS DECLARATION - -/** -* MTimeoutNotify -* -*/ -class MTimeoutNotify - { - public: - - /** - * TimedOut - * Handle the event when a time out occurs. - */ - virtual void TimedOut() = 0; - }; - -/** -* CTimeOutTimer -*/ -class CTimeOutTimer : public CTimer - { - public: // Constructors and destructor - - static CTimeOutTimer* NewL( const TInt aPriority, - MTimeoutNotify& aTimeOutNotify ); - virtual ~CTimeOutTimer(); - - public: // From CTimer - void RunL(); - - protected: // Constructor - CTimeOutTimer( const TInt aPriority, MTimeoutNotify& aTimeOutNotify ); - - protected: // Constructor - void ConstructL(); - - private: - MTimeoutNotify& iNotify; - }; - -/** -* CWinAnim -* -*/ - -const TInt KBufMessage = 200; - -class CTestAnimDll; - -class CTWinAnim : public CWindowAnim, CAnimProc , public MTimeoutNotify -{ -public: // Constructors and destructor - - /** - * Destructor. - */ - ~CTWinAnim(); - - /** - * Constructor for performing 1st stage construction - */ - CTWinAnim(CTestAnimDll* aDll, TInt aType); - - virtual void ConstructL(TAny *aArgs, TBool aHasFocus); - virtual void Redraw(); - virtual void FocusChanged(TBool aState); - virtual TInt CommandReplyL(TInt aOpcode, TAny *aArgs); - virtual void Command(TInt aOpcode, TAny *aArgs); - virtual void Animate(TDateTime *aDateTime); - virtual TBool OfferRawEvent(const TRawEvent &aRawEvent); - virtual void HandleNotification(const TWsEvent &aEvent); -public: - virtual void TimedOut(); - -private: - void Draw(); - void Compare(); - -//for M class testing -private: - //for MAnimWindowFunctions - TInt DoCmdSetRect(); - TInt DoCmdWindowSize(); - TInt DoCmdSetVisible(); - TInt DoCmdInvalidate(); - TInt DoCmdParameters(); - TInt DoCmdVisibleRegion(); - //for MAnimGeneralFunctionsWindowExtension - TInt DoCmdSetFocusScreen(); - TInt DoCmdWindowGroups(); - TBool DoCmdWindowGroupInfo(); - TBool DoCmdWindowGroupName(); - TInt DoCmdSetOrdinalPosition(); - TBool DoCmdIsFocusable(); - TBool DoCmdWindowConfig(); - //for MAnimGeneralFunctions - TInt DoCmdDuplicateBitmapL(); - TInt DoCmdDuplicateFontL(); - TInt DoCmdCloseFontL(); - TInt DoCmdSetIntervalL(); - TInt DoCmdSetNextIntervalL(); - TInt DoCmdSystemTimeL(); - TInt DoCmdRegisterForNotisL(); - TInt DoCmdMessageL(); - TInt DoCmdAnimateL(); - TInt DoCmdFlashStateOn(); - TInt DoCmdPanic(); - TInt DoCmdScreenDevice(); - TInt DoCmdWindowExtension(); - TInt DoCmdEventExtension(); - TInt DoCmdExtendedInterfaceL(); - TInt DoCmdNumOfExtInterfaces(); - TInt DoCmdSetSyncL(); - TInt DoCmdSync(); - TInt DoCmdGetRawEventsL(); - TInt DoCmdPostRawEventL(); - TInt DoCmdPostKeyEventL(); - TInt DoCmdClient(); - TInt DoCmdGeneralReplyBuf8L(); - TInt DoCmdGeneralReplyBuf16L(); - - //Util - TInt DoCmdEatupMemory(); - TInt DoCmdFreeEatenMemory(); - void FreeMemory(); - -private: - CTimeOutTimer* iServerTimer; - MAnimGeneralFunctions::TAnimSync iSyncMode; - TInt iCurrentCommand; - CFbsBitmap* iDuplicateBitmap; - CFbsFont* iDuplicateFont; - TDateTime iDateTime; - TInt iResult; - TDateTime iAnimateTime; - TInt64* iIntervalTimeStamp; - TInt iInterval; - TInt iNextInterval; - TEventCode iExpectEventCode; - TInt iAvaiableSpace; - TInt iBiggestBlock; - RPointerArray < TAny > iMemArray; -}; - -#endif // WINANIM_H - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/AnimPlugin/inc/T_TestAnimDll.h --- a/graphicsapitest/graphicssvs/wserv/AnimPlugin/inc/T_TestAnimDll.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,74 +0,0 @@ -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// - -#ifndef TESTANIMDLL_H -#define TESTANIMDLL_H - -// INCLUDES -#include -#include -#include "w32adll.h" -#include "T_log.h" - -// CLASS DECLARATION - -/** -* CTestAnimDll -* -*/ -class CTestAnimDll : public CAnimDll -{ -public: // Constructors and destructor - - /** - * Destructor. - */ - ~CTestAnimDll(); - - /** - * Two-phased constructor. - */ - static CTestAnimDll* NewL(); - - /** - * Two-phased constructor. - */ - static CTestAnimDll* NewLC(); - - virtual CAnim *CreateInstanceL(TInt aType); - - TInt WriteLog(const TDesC& aInfo); - TInt WriteLog(const TDesC8& aInfo); - -protected: - CLog* iLog; - RFs iFs; - -private: - - /** - * Constructor for performing 1st stage construction - */ - CTestAnimDll(); - - /** - * EPOC default constructor for performing 2nd stage construction - */ - void ConstructL(); - -}; - -#endif // TESTANIMDLL_H - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/AnimPlugin/inc/T_log.h --- a/graphicsapitest/graphicssvs/wserv/AnimPlugin/inc/T_log.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,47 +0,0 @@ -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// - -#ifndef LOG_H_ -#define LOG_H_ - -#include -#include -#include - - -class CLog : public CBase -{ -public: // Constructors and destructor - ~CLog(); - static CLog* NewL(RFs &aFs, const TDesC &aFileName); - static CLog* NewLC(RFs &aFs, const TDesC &aFileName); - - //write log - TInt WriteLog(const TDesC& aInfo); - TInt WriteLog(const TDesC8& aInfo); -private: - //Constructor for performing 1st stage construction - CLog(); - - //EPOC default constructor for performing 2nd stage construction - void ConstructL(RFs &aFs, const TDesC &aFileName); - - RFile iFile; //log file object - TFileText iText; - RBuf8 iBuf; -}; - - -#endif /*LOG_H_*/ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/AnimPlugin/src/T_AnimProc.cpp --- a/graphicsapitest/graphicssvs/wserv/AnimPlugin/src/T_AnimProc.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,428 +0,0 @@ -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// - -#include "T_AnimProc.h" -#include "T_AnimDef.h" - -#define KMaxBufSize 250 - -_LIT(KLim1,";"); -_LIT(KLim2,","); - -_LIT8(KSyncSecond,"ESyncSecond"); -_LIT8(KSyncMinute,"ESyncMinute"); -_LIT8(KSyncFlash,"ESyncFlash"); -_LIT8(KSyncNone,"ESyncNone"); - - -CAnimProc::CAnimProc(CTestAnimDll* aDll,TInt aType) - { - for (TInt i=0;iWriteLog(aInfo); - } -TInt CAnimProc::WriteLog(const TDesC8& aInfo) - { - return iDll->WriteLog(aInfo); - } - - - -void CAnimProc::ConvertParam(TDes8& buf, TAny *aArgs) - { - if ( aArgs) - { - buf.Zero(); - - TUint8* p=STATIC_CAST(TUint8*,aArgs); - TInt len=p[0]; - - if ( len>0) - buf.Copy (p+1, len); - } - } - -void CAnimProc::RecordLastCmd(TInt cmd) - { - iLastCommand.Format(_L("%d"),cmd); - } -void CAnimProc::RecordLastCmd(TInt cmd,const TDesC8& str) - { - TBuf buf; - buf.Copy(str); - iLastCommand.Format(_L("%d %S"),cmd,&buf); - } -void CAnimProc::RecordLastCmd(const TDesC8& str) - { - iLastCommand.Copy(str); - } -TInt CAnimProc::CmdReply(MAnimGeneralFunctions* pFunc , TInt aOpcode, - TAny *aArgs) - { - TBuf logbuf; - TBuf msgbuf; - logbuf.Format (_L("CAnimProc::CmdReplyL %d"),aOpcode); - WriteLog(logbuf); - - TBuf8 arg; - - TInt ret,slot; - TBool msgexist=EFalse,argexist=ETrue,userpanic=EFalse; - - // check is msg exist - const RMessagePtr2 *msg=pFunc->Message(); - if ( msg && !msg->IsNull()) - { - for (TInt i=1;i<4;i++) - { - ret=msg->Read (i, msgbuf); - if ( ret==KErrNone) - { - slot=i; - msgexist=ETrue; - break; - } - } - } - - switch (aOpcode) - { - case ECmdTestWithoutPara: - { - argexist=EFalse; - if (msgexist) - { - RecordLastCmd (aOpcode); - ret=msg->Write(slot,iLastCommand); - // this function should only used for AsyncCommandReply, otherwise emulator will crash. - msg->Complete(KErrNone); - } - break; - } - case ECmdTestWithPara: - { - ConvertParam(arg, aArgs); - WriteLog(arg); - if (msgexist) - { - RecordLastCmd (aOpcode, arg); - msg->Write(slot,iLastCommand); - } - break; - } - case ECmdGetLast: - { - argexist=EFalse; - if (msgexist) - { - logbuf.Format (_L("send last command %S"),&iLastCommand); - WriteLog(logbuf); - msg->Write(slot,iLastCommand); - } - else - userpanic=ETrue; - break; - } - case ECmdSync: - { - ConvertParam(arg, aArgs); - WriteLog(arg); - MAnimGeneralFunctions::TAnimSync sync; - if (arg.Compare(KSyncSecond)==0) - sync=MAnimGeneralFunctions::ESyncSecond; - else if (arg.Compare(KSyncNone)==0) - sync=MAnimGeneralFunctions::ESyncNone; - else if (arg.Compare(KSyncFlash)==0) - sync=MAnimGeneralFunctions::ESyncFlash; - else if (arg.Compare(KSyncMinute)==0) - sync=MAnimGeneralFunctions::ESyncMinute; - else - { - userpanic=ETrue; - break; - } - - pFunc->SetSync(sync); - break; - } - case ECmdGetAnimInterval: - { - argexist=EFalse; - if (msgexist) - { - TInt i1,i2; - i1=(iAnimTime[1]-iAnimTime[0])/1000; - i2=(iAnimTime[2]-iAnimTime[1])/1000; - if (i1>i2) - { - TInt tmp; - tmp=i1; - i1=i2; - i2=tmp; - } - msgbuf.Format(_L("%d %d"),i1,i2); - msg->Write(slot,msgbuf); - } - else - userpanic=ETrue; - break; - } - default: - { - userpanic=ETrue; - break; - } - } - - if ( userpanic) - pFunc->Panic (); - else - { - if ( argexist) - RecordLastCmd (aOpcode, arg); - else - RecordLastCmd (aOpcode); - - - } - return KErrNone ; - } - -CDesCArray* CAnimProc::ProcParamLC(const TDesC8& param) - { - CDesCArrayFlat * ary= new (ELeave) CDesCArrayFlat(2); - CleanupStack::PushL(ary); - if ( param.Length ()>0) - { - TBuf buf; - TBuf tmp; - buf.Copy(param); - - TInt idx; - - do - { - idx=buf.Find(KLim1); - if (idx!=KErrNotFound ) - { - - tmp.Copy(buf.Ptr(),idx); - ary->AppendL(tmp); - buf.Delete(0,idx+1); - } - } - - while (idx!=KErrNotFound); - - if (buf.Length()>0) - ary->AppendL(buf); - } - return ary; - } -TInt CAnimProc::GetIntFromStr(const TDesC& str,RIntArray& ary) - { - ary.Reset(); - TInt val; - - if ( str.Length ()>0) - { - TBuf buf; - TBuf tmp; - buf.Copy(str); - - TInt idx; - do - { - idx=buf.Find(KLim2); - if (idx!=KErrNotFound ) - { - tmp.Copy(buf.Ptr(),idx); - TLex lex(tmp); - lex.Val(val); - ary.Append(val); - buf.Delete(0,idx+1); - } - } - - while (idx!=KErrNotFound); - - if (buf.Length()>0) - { - TLex lex(buf); - lex.Val(val); - ary.Append(val); - } - } - - return KErrNone; - } -void CAnimProc::RecordAnimTime() - { - TTime currentTime; - currentTime.HomeTime(); - - for (TInt i=0;i param; - ConvertParam(param, aArgs); - WriteLog(param); - - RecordLastCmd(iAnimType,param); - - TBuf buf; - - CDesCArray* ary=ProcParamLC(param); - TInt len=ary->Count(); - - RIntArray intary; - CleanupClosePushL(intary); - - - for (TInt i=0;iMessage(); - if ( msg && !msg->IsNull()) - { - TBuf msgbuf; - ret=msg->Read (1, msgbuf); - if ( ret==KErrNone) - { - msg->Write(1,iLastCommand); - } - } - - return ret; - } - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/AnimPlugin/src/T_TFreeTimerWinAnim.cpp --- a/graphicsapitest/graphicssvs/wserv/AnimPlugin/src/T_TFreeTimerWinAnim.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,112 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -#include "T_AnimDef.h" - -#include "T_TFreeTimerWinAnim.h" - -CTFreeTimerWinAnim::CTFreeTimerWinAnim() - { - iResult=EFalse; - iCurrentCommand=ECmdNone; - } - -CTFreeTimerWinAnim::~CTFreeTimerWinAnim() - { - } - -//from CWindowAnim -void CTFreeTimerWinAnim::ConstructL(TAny */*aArgs*/, TBool /*aHasFocus*/) - { - // Store the screen size - iScreenSize = iWindowFunctions->WindowSize(); - - // Set the screen visible - iWindowFunctions->SetVisible( ETrue ); - //just for start heartbeat - iWindowFunctions->SetRect(TRect(0,0,1,1)); - } - -void CTFreeTimerWinAnim::Redraw() - { - if(iCurrentCommand==ECmdFreeTimerWinUpdate) - { - iResult=ETrue; - } - } - -void CTFreeTimerWinAnim::FocusChanged(TBool /*aState*/) - { - - } - -//from CAnim -TInt CTFreeTimerWinAnim::CommandReplyL(TInt aOpcode, TAny */*aArgs*/) - { - iCurrentCommand=aOpcode; - TInt nReturn=KErrNone; - switch(aOpcode) - { - case ECmdFreeTimerWinDeactivateGc: - { - TRect rect(10,10,20,20); - TInt err; - iWindowFunctions->ActivateGc(); - TRAP(err,iGc->DrawRect(rect)); - if(KErrNone == err) - { - WindowFunctions()->DeactivateGc(); - TRAP(err,iGc->DrawRect(rect)); - if(KErrGeneral != err) - { - nReturn = err; - } - } - else - { - nReturn = err; - } - } - break; - case ECmdFreeTimerWinUpdate: - { - iResult=EFalse; - WindowFunctions()->Update(); - } - break; - case ECmdRetrieveResult: - nReturn=iResult; - break; - } - return nReturn; - } - -void CTFreeTimerWinAnim::Command(TInt /*aOpcode*/, TAny */*aArgs*/) - { - - } -void CTFreeTimerWinAnim::Animate(TDateTime */*aDateTime*/) - { - - } - -//from MEventHandler -TBool CTFreeTimerWinAnim::OfferRawEvent(const TRawEvent &/*aRawEvent*/) - { - return EFalse; - } - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/AnimPlugin/src/T_TSpriteAnim.cpp --- a/graphicsapitest/graphicssvs/wserv/AnimPlugin/src/T_TSpriteAnim.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,241 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -#include "txtfrmat.h" -#include "bitdev.h" -#include "T_AnimProc.h" -#include "T_TSpriteAnim.h" -#include "T_TestAnimDll.h" -#include "w32std.h" -#include "T_AnimDef.h" - -CTSpriteAnim::CTSpriteAnim(CTestAnimDll* aDll, TInt aType) : - CAnimProc(aDll, aType) - { - // No implementation required - - } - -CTSpriteAnim::~CTSpriteAnim() - { - WriteLog(_L("~CTSpriteAnim")); - } - -void CTSpriteAnim::ConstructL(TAny *aArgs) - { - WriteLog(_L("CTSpriteAnim::ConstructL")); - ConstructWinL(aArgs, iFunctions); - - // screen size - iFunctions->ScreenDevice()->GetDrawRect(iScreenSize); - } -void CTSpriteAnim::Redraw() - { - WriteLog(_L("CTSpriteAnim::Redraw")); - Draw(); - } - -void CTSpriteAnim::Draw() - { - // signal that the current position has been drawn - iDrawn = ETrue; - } -void CTSpriteAnim::FocusChanged(TBool /*aState*/) - { - - } -TInt CTSpriteAnim::CommandReplyL(TInt aOpcode, TAny *aArgs) - { - switch (aOpcode) - { - case ECmdSpriteGetSpriteMember: - return DoCmdGetSpriteMemberL(); - case ECmdSpriteUpdateMember: - return DoCmdUpdateMemberL(); - case ECmdSpriteActivate: - return DoCmdActiveL(); - case ECmdSpriteSpriteCanBeSeen: - return DoCmdSpriteCanBeSeen(); - case ECmdSpriteSizeChangedL: - return DoCmdSizeChangeL(); - case ECmdSpriteSetPosition: - return DoCmdSetPositionL(); - default: - break; - } - return CmdReply(iFunctions, aOpcode, aArgs); - } -void CTSpriteAnim::Command(TInt aOpcode, TAny *aArgs) - { - CmdReply(iFunctions, aOpcode, aArgs); - } -void CTSpriteAnim::Animate(TDateTime* /*aDateTime*/) - { - iLastPoint = iNewPoint; - - TInt nextpoint=iNewPoint.iX + iStepX; - TInt right=iNewPoint.iX + iSize.iWidth; - - if (right> iScreenSize.iBr.iX ||nextpoint >= iScreenSize.iBr.iX - ||iNewPoint.iX iScreenSize.iBr.iY ||nexty >= iScreenSize.iBr.iY ||iNewPoint.iY - SetPosition(iNewPoint); - - RecordAnimTime(); - - TInt interval=(iAnimTime[KAnimTimeSize-1]-iAnimTime[KAnimTimeSize-2])/1000; - - TBuf<100> buf; - buf.Format(_L("CTSpriteAnim::Animate interval=%d x=%d y=%d"), - interval,iNewPoint.iX,iNewPoint.iY); - - WriteLog(buf); - } - -void CTSpriteAnim::Compare() - { - // compare - const CFbsScreenDevice* scdev=iFunctions->ScreenDevice(); - - TBool compare=scdev->RectCompare(TRect(iNewPoint, iSize), *scdev, TRect( - TPoint(0, 0), iSize)); - TBuf<50> buf; - buf.Format(_L("CTSpriteAnim::Compare res %d"), - compare); - WriteLog(buf); - } -TBool CTSpriteAnim::OfferRawEvent(const TRawEvent& /*aRawEvent*/) - { - return ETrue; - } - -TInt CTSpriteAnim::DoCmdGetSpriteMemberL() - { - TInt result = 0; - TInt aMember; - TPtr8 ptr1((TUint8*)&aMember, sizeof(TInt)); - const RMessagePtr2 *msg=iFunctions->Message(); - - if(msg && !msg->IsNull()) - { - msg->ReadL(1,ptr1); - TSpriteMember* member = iSpriteFunctions->GetSpriteMember(aMember); - TPoint point = member->iOffset; - TPtr8 ptr2((TUint8*)&point, sizeof(TPoint), sizeof(TPoint)); - msg->Write(2, ptr2); - - } - else - { - result = -1; - } - return result; - - } - -TInt CTSpriteAnim::DoCmdActiveL() - { - TInt result = 0; - TBool aState; - TPtr8 ptr3((TUint8*)&aState, sizeof(TBool)); - const RMessagePtr2 *msg=iFunctions->Message(); - - if(msg && !msg->IsNull()) - { - msg->ReadL(1,ptr3); - iSpriteFunctions->Activate(aState); - } - else - { - result = -1; - } - return result; - } - -TInt CTSpriteAnim::DoCmdSetPositionL() - { - TInt result = 0; - TPoint aPoint; - TPtr8 ptr6((TUint8*)&aPoint, sizeof(TPoint)); - const RMessagePtr2 *msg=iFunctions->Message(); - - if(msg && !msg->IsNull()) - { - msg->ReadL(1,ptr6); - iSpriteFunctions->SetPosition(aPoint); - } - else - { - result = -1; - } - return result; - } - -TInt CTSpriteAnim::DoCmdSpriteCanBeSeen() - { - TBool visible = iSpriteFunctions->SpriteCanBeSeen(); - TPtr8 ptr((TUint8*)&visible, sizeof(TBool), sizeof(TBool)); - iFunctions->Message()->Write(1, ptr); - return 0; - } - -TInt CTSpriteAnim::DoCmdUpdateMemberL() - { - //TInt aMember, const TRect &aRect, TBool aFullUpdate - TInt result = 0; - TInt aMember; - TPtr8 ptr1((TUint8*)&aMember, sizeof(TInt)); - - TRect aRect; - TPtr8 ptr2((TUint8*)&aRect, sizeof(TRect)); - - TBool aFullUpdate; - TPtr8 ptr3((TUint8*)&aFullUpdate, sizeof(TInt)); - - const RMessagePtr2 *msg=iFunctions->Message(); - - if(msg && !msg->IsNull()) - { - msg->ReadL(1,ptr1); - msg->ReadL(2,ptr2); - msg->ReadL(3,ptr3); - iSpriteFunctions->UpdateMember(aMember, aRect, aFullUpdate); - } - else - { - result = -1; - } - return result; - } - -TInt CTSpriteAnim::DoCmdSizeChangeL() - { - iSpriteFunctions->SizeChangedL(); - return 0; - } - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/AnimPlugin/src/T_TWinAnim.cpp --- a/graphicsapitest/graphicssvs/wserv/AnimPlugin/src/T_TWinAnim.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1246 +0,0 @@ -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// - -#include "T_TWinAnim.h" -#include "T_TestAnimDll.h" -#include "txtfrmat.h" -#include "bitdev.h" -#include "T_AnimDef.h" -#include "w32adll.h" - -// Implementation of CTimeoutTimer. -CTimeOutTimer::CTimeOutTimer(const TInt aPriority, - MTimeoutNotify& aTimeOutNotify) : - CTimer(aPriority), iNotify(aTimeOutNotify) - { - // No implementation required - } - -CTimeOutTimer* CTimeOutTimer::NewL(const TInt aPriority, - MTimeoutNotify& aTimeOutNotify) - { - CTimeOutTimer *self = new ( ELeave ) CTimeOutTimer( aPriority, aTimeOutNotify ); - CleanupStack::PushL(self); - self->ConstructL(); - CleanupStack::Pop(); - return self; - } - -CTimeOutTimer::~CTimeOutTimer() - { - Cancel(); - } - -void CTimeOutTimer::ConstructL() - { - CTimer::ConstructL(); - CActiveScheduler::Add( this); - } - -void CTimeOutTimer::RunL() - { - iNotify.TimedOut(); - } - -//Implementation of CTWinAnim -CTWinAnim::CTWinAnim(CTestAnimDll* aDll, TInt aType) : - CAnimProc(aDll, aType) - { - // No implementation required - } - -CTWinAnim::~CTWinAnim() - { - WriteLog(_L("~CTWinAnim")); - if (iServerTimer) - { - iServerTimer->Cancel(); - } - - // Then delete the timer object - delete iServerTimer; - iServerTimer = NULL; - - if (iIntervalTimeStamp) - delete [] iIntervalTimeStamp; - - if (iDuplicateBitmap) - delete iDuplicateBitmap; - - if (iMemArray.Count() > 0) - FreeMemory(); - } - -void CTWinAnim::ConstructL(TAny *aArgs, TBool /*aHasFocus*/) - { - WriteLog(_L("CTWinAnim::ConstructL")); - ConstructWinL(aArgs, iFunctions); - - // Store the screen size - iScreenSize = iWindowFunctions->WindowSize(); - - TBuf<50> buf; - buf.Format(_L("Screen width=%d height=%d"),iScreenSize.Width(),iScreenSize.Height()); - WriteLog(buf); - - // Set the screen visible - iWindowFunctions->SetVisible(ETrue); - //just for start heartbeat - iWindowFunctions->SetRect(TRect(0, 0, 1, 1)); - iServerTimer = CTimeOutTimer::NewL(EPriorityHigh, *this); - } - -void CTWinAnim::Redraw() - { - WriteLog(_L("CTWinAnim::Redraw")); - iResult=ETrue; - - Draw(); - } - -void CTWinAnim::Draw() - { - // get the background colour - TLogicalRgb backgroundColour(TLogicalRgb::ESystemBackgroundColor); - - // Clear the old image. - iGc->SetPenSize(iPenSize); - iGc->SetPenColor(backgroundColour); - iGc->DrawRect(TRect(iLastPoint, iSize) ); - - // Draw a shape at the new position - iGc->SetPenSize(iPenSize); - iGc->SetPenColor(iColor); - iGc->DrawRect(TRect(iNewPoint, iSize) ); - - if (iDuplicateBitmap) - { - TRect rect; - rect.SetRect(0, 0, 200, 200); - iGc->DrawBitmap(rect, iDuplicateBitmap); - } - - // signal that the current position has been drawn - iDrawn = ETrue; - } - -void CTWinAnim::HandleNotification(const TWsEvent &aEvent) - { - if (aEvent.Type() == iExpectEventCode) - { - iResult = ETrue; - } - } - -void CTWinAnim::FocusChanged(TBool /*aState*/) - { - - } - -void CTWinAnim::TimedOut() - { - switch (iCurrentCommand) - { - case ECmdGeneralSetInterval: - { - TInt64 interval=iIntervalTimeStamp[1]-iIntervalTimeStamp[0]; - TInt expectInterval=0; - if(iInterval>0) - expectInterval = iInterval * 1000000 / 2; - - if (interval == expectInterval) - iResult=ETrue; - else - iResult=EFalse; - - break; - } - - case ECmdGeneralSetNextInterval: - { - TInt64 interval1=iIntervalTimeStamp[1]-iIntervalTimeStamp[0]; - TInt64 interval2=iIntervalTimeStamp[2]-iIntervalTimeStamp[1]; - TInt expectInterval = iInterval * 1000000 / 2; - TInt expectNextInterval = 0; - - //If the value is less than 1, it automatically gets set to 1. - if(iNextInterval > 0) - { - expectNextInterval = iNextInterval * 1000000 / 2; - } - else - { - expectNextInterval = 1000000 / 2; - } - - if ((expectNextInterval*5/12)<=interval1 && interval1<=1000000 - && interval2==expectInterval) - iResult=ETrue; - else - iResult=EFalse; - break; - } - } - } - -TInt CTWinAnim::CommandReplyL(TInt aOpcode, TAny *aArgs) - { - if (aOpcode != ECmdRetrieveResult) - { - iCurrentCommand=aOpcode; - } - TInt nReturn=KErrNone; - switch (aOpcode) - { - case ECmdWindowActivateGc: - iWindowFunctions->ActivateGc(); - break; - case ECmdWindowSetRect: - nReturn=DoCmdSetRect(); - break; - case ECmdWindowIsStarted: - iResult=EFalse; - iSyncMode=iFunctions->Sync(); - iFunctions->SetSync(MAnimGeneralFunctions::ESyncFlash); - break; - case ECmdRetrieveResult: - nReturn=iResult; - break; - case ECmdWindowWindowSize: - nReturn=DoCmdWindowSize(); - break; - case ECmdWindowIsHidden: - nReturn=iWindowFunctions->IsHidden(); - break; - case ECmdWindowSetVisible: - nReturn=DoCmdSetVisible(); - break; - case ECmdWindowInvalidate: - nReturn=DoCmdInvalidate(); - break; - case ECmdWindowParameters: - nReturn=DoCmdParameters(); - break; - case ECmdWindowVisibleRegion: - nReturn=DoCmdVisibleRegion(); - break; - - case ECmdGfweScreens: - nReturn=iFunctions->WindowExtension()->Screens(); - break; - case ECmdGfweFocusScreens: - nReturn=iFunctions->WindowExtension()->FocusScreens(); - break; - case ECmdGfweSetFocusScreen: - nReturn=DoCmdSetFocusScreen(); - break; - case ECmdGfweWindowGroups: - nReturn=DoCmdWindowGroups(); - break; - case ECmdGfweWindowGroupInfo: - nReturn=DoCmdWindowGroupInfo(); - break; - case ECmdGfweWindowGroupName: - nReturn=DoCmdWindowGroupName(); - break; - case ECmdGfweSetOrdinalPosition: - nReturn=DoCmdSetOrdinalPosition(); - break; - case ECmdGfweIsFocusable: - nReturn=DoCmdIsFocusable(); - break; - case ECmdGfweWindowConfig: - nReturn=DoCmdWindowConfig(); - break; - - case ECmdGeneralDuplicateBitmapL: - nReturn = DoCmdDuplicateBitmapL(); - break; - case ECmdGeneralDuplicateFontL: - nReturn = DoCmdDuplicateFontL(); - break; - case ECmdGeneralCloseFont: - nReturn = DoCmdCloseFontL(); - break; - case ECmdGeneralSetInterval: - nReturn = DoCmdSetIntervalL(); - break; - case ECmdGeneralSetNextInterval: - nReturn = DoCmdSetNextIntervalL(); - break; - case ECmdGeneralSystemTime: - nReturn = DoCmdSystemTimeL(); - break; - case ECmdGeneralRegisterForNotis: - nReturn = DoCmdRegisterForNotisL(); - break; - case ECmdGeneralMessage: - nReturn = DoCmdMessageL(); - break; - case ECmdGeneralAnimate: - nReturn = DoCmdAnimateL(); - break; - case ECmdGeneralFlashStateOn: - nReturn = DoCmdFlashStateOn(); - break; - case ECmdGeneralPanic: - nReturn = DoCmdPanic(); - break; - case ECmdGeneralScreenDevice: - nReturn = DoCmdScreenDevice(); - break; - case ECmdGeneralWindowExtension: - nReturn = DoCmdWindowExtension(); - break; - case ECmdGeneralEventExtension: - nReturn = DoCmdEventExtension(); - break; - case ECmdGeneralExtendedInterface: - nReturn = DoCmdExtendedInterfaceL(); - break; - case ECmdGeneralNumOfExtInterfaces: - nReturn = DoCmdNumOfExtInterfaces(); - break; - case ECmdGeneralSetSync: - nReturn = DoCmdSetSyncL(); - break; - case ECmdGeneralSync: - nReturn = DoCmdSync(); - break; - case ECmdGeneralGetRawEvents: - nReturn = DoCmdGetRawEventsL(); - break; - case ECmdGeneralPostRawEvent: - nReturn = DoCmdPostRawEventL(); - break; - case ECmdGeneralPostKeyEvent: - nReturn = DoCmdPostKeyEventL(); - break; - case ECmdGeneralClient: - nReturn = DoCmdClient(); - break; - case ECmdGeneralReplyBuf8: - nReturn = DoCmdGeneralReplyBuf8L(); - break; - case ECmdGeneralReplyBuf16: - nReturn = DoCmdGeneralReplyBuf16L(); - break; - case ECmdUtilEatupMemory: - nReturn = DoCmdEatupMemory(); - break; - case ECmdUtilFreeEatenMemory: - nReturn = DoCmdFreeEatenMemory(); - break; - default: - nReturn=CmdReply(iFunctions, aOpcode, aArgs); - } - - return nReturn; - } - -void CTWinAnim::Command(TInt aOpcode, TAny *aArgs) - { - CmdReply(iFunctions, aOpcode, aArgs); - } - -void CTWinAnim::Animate(TDateTime *aDateTime) - { - //Set iAnimateTime. - TTime now; - now.HomeTime(); - iAnimateTime = now.DateTime(); - - switch (iCurrentCommand) - { - case ECmdGeneralAnimate: - iDateTime = *aDateTime; - break; - case ECmdGeneralSetInterval: - { - if (iIntervalTimeStamp[0]==0) - { - iIntervalTimeStamp[0]=now.Int64(); - } - else - if (iIntervalTimeStamp[1]==0) - { - iIntervalTimeStamp[1]=now.Int64(); - } - break; - } - - case ECmdGeneralSetNextInterval: - { - if (iIntervalTimeStamp[1]==0) - { - iIntervalTimeStamp[1]=now.Int64(); - } - else - if (iIntervalTimeStamp[2]==0) - { - iIntervalTimeStamp[2]=now.Int64(); - } - break; - } - } - - iResult=ETrue; - //if MAnimGeneralFunctions::Sync() not equal to CWindowAnim::iSyncMode then call CWindowAnim::SetSync(CWindowAnim::iSyncMode) - if (iFunctions->Sync()!=iSyncMode && iCurrentCommand==ECmdWindowIsStarted) - { - iFunctions->SetSync(iSyncMode); - } - // if the last position has been drawn, update the position - if (iDrawn) - { - // this position has not been drawn, so clear the flag - iDrawn = EFalse; - - if (iLastPoint != iNewPoint) - Compare(); - - // Save the current position, so we can rub it out later - iLastPoint = iNewPoint; - - TInt nextpoint=iNewPoint.iX + iStepX; - TInt right=iNewPoint.iX + iSize.iWidth; - - if (right> iScreenSize.iBr.iX ||nextpoint >= iScreenSize.iBr.iX - ||iNewPoint.iX iScreenSize.iBr.iY ||nexty >= iScreenSize.iBr.iY - ||iNewPoint.iYInvalidate(iScreenSize); - } - - RecordAnimTime(); - - TInt interval=(iAnimTime[KAnimTimeSize-1]-iAnimTime[KAnimTimeSize-2])/1000; - - TBuf<100> buf; - buf.Format(_L("CTWinAnim::Animate interval=%d x=%d y=%d"), - interval,iNewPoint.iX,iNewPoint.iY); - - WriteLog(buf); - } - -void CTWinAnim::Compare() - { - // compare - const CFbsScreenDevice* scdev=iFunctions->ScreenDevice(); - - TBool compare=scdev->RectCompare(TRect(iNewPoint, iSize), *scdev, TRect( - TPoint(0, 0), iSize)); - TBuf<50> buf; - buf.Format(_L("CTWinAnim::Compare res %d"), - compare); - iDll->WriteLog(buf); - } -TBool CTWinAnim::OfferRawEvent(const TRawEvent& aRawEvent) - { - WriteLog(_L("CTWinAnim::OfferRawEvent has been called")); - TBuf<10> event; - event.AppendNum(aRawEvent.Type()); - WriteLog(event); - iResult = ETrue; - return ETrue; - } - -//for MAnimWindowFunctions -TInt CTWinAnim::DoCmdSetRect() - { - const RMessagePtr2 *msg=iFunctions->Message(); - TPckgBuf arg; - TRect rect(0, 0, 0, 0); - TInt nReturn=KErrNotFound; - - if (msg && !msg->IsNull()) - { - nReturn=msg->Read(1, arg); - if (KErrNone==nReturn) - { - rect=arg(); - iWindowFunctions->SetRect(rect); - } - } - return nReturn; - } - -TInt CTWinAnim::DoCmdWindowSize() - { - TSize size=iWindowFunctions->WindowSize(); - TPckgBuf pckg(size); - TInt nReturn=KErrNone; - const RMessagePtr2 *msg=iFunctions->Message(); - - if (msg) - { - nReturn=msg->Write(1, pckg); - } - - return nReturn; - } - -TInt CTWinAnim::DoCmdSetVisible() - { - TInt nReturn=KErrNotFound; - TPckgBuf arg; - const RMessagePtr2 *msg=iFunctions->Message(); - - if (msg) - { - nReturn=msg->Read(1, arg); - if (KErrNone==nReturn) - { - iWindowFunctions->SetVisible(arg()); - } - } - - return nReturn; - } - -TInt CTWinAnim::DoCmdInvalidate() - { - const RMessagePtr2 *msg=iFunctions->Message(); - TPckgBuf arg; - TRect rect(0, 0, 0, 0); - TInt nReturn=KErrNotFound; - - if (msg && !msg->IsNull()) - { - nReturn=msg->Read(1, arg); - if (KErrNone==nReturn) - { - rect=arg(); - iResult=EFalse; - iWindowFunctions->Invalidate(rect); - iWindowFunctions->ActivateGc(); - iGc->DrawRect(rect); - } - } - return nReturn; - } - -TInt CTWinAnim::DoCmdParameters() - { - TWindowInfo data; - iWindowFunctions->Parameters(data); - - TPckgBuf pckgScreenPos(data.iScreenPos); - TPckgBuf pckgMode((TInt)data.iMode); - - TInt nReturn=KErrNone; - const RMessagePtr2 *msg=iFunctions->Message(); - - if (msg) - { - nReturn=msg->Write(1, pckgScreenPos); - nReturn=msg->Write(2, pckgMode); - } - - return nReturn; - } - -TInt CTWinAnim::DoCmdVisibleRegion() - { - RRegion region; - iWindowFunctions->VisibleRegion(region); - return region.Count(); - } - -//for MAnimGeneralFunctionsWindowExtension -TInt CTWinAnim::DoCmdSetFocusScreen() - { - const RMessagePtr2 *msg=iFunctions->Message(); - TPckgBuf arg; - TInt nReturn=KErrNotFound; - - if (msg && !msg->IsNull()) - { - nReturn=msg->Read(1, arg); - if (KErrNone==nReturn) - { - iFunctions->WindowExtension()->SetFocusScreen(arg()); - } - } - return nReturn; - } - -TInt CTWinAnim::DoCmdWindowGroups() - { - const RMessagePtr2 *msg=iFunctions->Message(); - TPckgBuf arg; - TInt nReturn=KErrNotFound; - - if (msg && !msg->IsNull()) - { - nReturn=msg->Read(1, arg); - if (KErrNone==nReturn) - { - nReturn=iFunctions->WindowExtension()->WindowGroups(arg()); - } - } - return nReturn; - } - -TBool CTWinAnim::DoCmdWindowGroupInfo() - { - const RMessagePtr2 *msg=iFunctions->Message(); - TPckgBuf argScrNumber; - TPckgBuf argPosition; - - TBool nReturn=EFalse; - MAnimGeneralFunctionsWindowExtension::TWindowGroupInfo aInfo; - - if (msg && !msg->IsNull()) - { - if (KErrNone==msg->Read(1, argScrNumber) && KErrNone==msg->Read(2, argPosition)) - { - nReturn=iFunctions->WindowExtension()->WindowGroupInfo(aInfo, argScrNumber(), argPosition()); - - if (nReturn) - { - TPckgBuf pckgInfo(aInfo.iId); - msg->Write(3, pckgInfo); - } - } - } - return nReturn; - } - -TBool CTWinAnim::DoCmdWindowGroupName() - { - const RMessagePtr2 *msg=iFunctions->Message(); - TPckgBuf argScrNumber; - TPckgBuf argPosition; - - TBool nReturn=EFalse; - - if (msg && !msg->IsNull()) - { - if (KErrNone==msg->Read(1, argScrNumber) && KErrNone==msg->Read(2, argPosition)) - { - TPtrC name; - nReturn=iFunctions->WindowExtension()->WindowGroupName(name, argScrNumber(), argPosition()); - if (nReturn) - { - msg->Write(3, name); - } - } - } - - return nReturn; - } - -TInt CTWinAnim::DoCmdSetOrdinalPosition() - { - const RMessagePtr2 *msg=iFunctions->Message(); - TPckgBuf argGroupId; - TPckgBuf argPosition; - TPckgBuf argPriority; - - TInt nReturn=KErrNotFound; - - if (msg && !msg->IsNull()) - { - if (KErrNone==msg->Read(1, argGroupId) && KErrNone==msg->Read(2, argPosition) - && KErrNone==msg->Read(3, argPriority)) - { - nReturn=iFunctions->WindowExtension()->SetOrdinalPosition(argGroupId(), argPosition(), - argPriority()); - } - } - - return nReturn; - } - -TBool CTWinAnim::DoCmdIsFocusable() - { - const RMessagePtr2 *msg=iFunctions->Message(); - TPckgBuf argScrNumber; - TPckgBuf argPosition; - - TBool nReturn=EFalse; - MAnimGeneralFunctionsWindowExtension::TWindowGroupInfo aInfo; - - if (msg && !msg->IsNull()) - { - if (KErrNone==msg->Read(1, argScrNumber) && KErrNone==msg->Read(2, argPosition)) - { - if (iFunctions->WindowExtension()->WindowGroupInfo(aInfo, argScrNumber(), argPosition())) - { - nReturn=aInfo.IsFocusable(); - } - } - } - return nReturn; - } - -TBool CTWinAnim::DoCmdWindowConfig() - { - TWindowConfig config; - iFunctions->WindowExtension()->WindowConfig(config); - return config.iFlags & TWindowConfig::ETransparencyEnabled; - } - -TInt CTWinAnim::DoCmdDuplicateBitmapL() - { - TInt result = 0; - TInt handle; - TPtr8 ptr1((TUint8*)&handle, sizeof(TInt)); - const RMessagePtr2 *msg=iFunctions->Message(); - - if(msg && !msg->IsNull()) - { - msg->ReadL(1,ptr1); - iDuplicateBitmap = iFunctions->DuplicateBitmapL(handle); - if (iDuplicateBitmap) - { - TRect rect; - iWindowFunctions->ActivateGc(); - rect.SetRect(0, 0, 200, 200); - iGc->DrawBitmap(rect, iDuplicateBitmap); - } - } - else - { - result = -1; - } - return result; - } - -TInt CTWinAnim::DoCmdDuplicateFontL() - { - TInt result = 0; - TInt handle; - TPtr8 ptr1((TUint8*)&handle, sizeof(TInt)); - const RMessagePtr2 *msg=iFunctions->Message(); - - if(msg && !msg->IsNull()) - { - msg->ReadL(1,ptr1); - iDuplicateFont = iFunctions->DuplicateFontL(handle); - TInt id =0; - if (iDuplicateFont) - { - id = iDuplicateFont->TypeUid().iUid; - TPtr8 ptr2((TUint8*)&id, sizeof(TInt), sizeof(TInt)); - msg->Write(2, ptr2); - } - } - else - { - return -1; - } - - return result; - } - -TInt CTWinAnim::DoCmdCloseFontL() - { - DoCmdDuplicateFontL(); - iFunctions->CloseFont(iDuplicateFont); - return 0; - } - -TInt CTWinAnim::DoCmdSetIntervalL() - { - TInt result = 0; - TPtr8 ptr1((TUint8*)&iInterval, sizeof(TInt)); - const RMessagePtr2 *msg=iFunctions->Message(); - - if(msg && !msg->IsNull()) - { - msg->ReadL(1,ptr1); - if (iIntervalTimeStamp) - delete [] iIntervalTimeStamp; - iIntervalTimeStamp=new (ELeave) TInt64[3]; - iIntervalTimeStamp[0]=0; - iIntervalTimeStamp[1]=0; - iIntervalTimeStamp[2]=0; - iFunctions->SetInterval(iInterval); - iServerTimer->After( 5000000); // delay 5 second - } - else - { - result = -1; - } - - return result; - } - -TInt CTWinAnim::DoCmdSetNextIntervalL() - { - TInt result = 0; - TPtr8 ptr1((TUint8*)&iInterval, sizeof(TInt)); - TPtr8 ptr2((TUint8*)&iNextInterval, sizeof(TInt)); - const RMessagePtr2 *msg=iFunctions->Message(); - - if(msg && !msg->IsNull()) - { - msg->ReadL(1,ptr1); - msg->ReadL(2,ptr2); - if (iIntervalTimeStamp) - delete [] iIntervalTimeStamp; - - iIntervalTimeStamp=new (ELeave) TInt64[3]; - iIntervalTimeStamp[0]=0; - iIntervalTimeStamp[1]=0; - iIntervalTimeStamp[2]=0; - iFunctions->SetInterval(iInterval); - iFunctions->SetNextInterval(iNextInterval);//2 flash = 1 second - if (iIntervalTimeStamp[0]==0) - { - TTime now; - now.HomeTime(); - iIntervalTimeStamp[0]=now.Int64(); - } - - iServerTimer->After( 5000000); //delay 5 second - } - else - { - result = -1; - } - - return result; - } - -TInt CTWinAnim::DoCmdSystemTimeL() - { - TBool result = DoCmdSetSyncL(); - if (result) - { - return result; - } - iFunctions->Animate(NULL); - - TDateTime time = iFunctions->SystemTime(); - MAnimGeneralFunctions::TAnimSync syncType = iFunctions->Sync(); - switch (syncType) - { - case MAnimGeneralFunctions::ESyncDay: - if (time.Day() == iAnimateTime.Day()) - { - result = ETrue; - } - else - { - result = EFalse; - } - break; - case MAnimGeneralFunctions::ESyncMinute: - if (time.Minute() == iAnimateTime.Minute() && time.Day() - == iAnimateTime.Day()) - { - result = ETrue; - } - else - { - result = EFalse; - } - break; - case MAnimGeneralFunctions::ESyncFlash: - case MAnimGeneralFunctions::ESyncNone: - case MAnimGeneralFunctions::ESyncSecond: - if (time.Day() == iAnimateTime.Day() && time.Minute() - == iAnimateTime.Minute() && time.Second() - == iAnimateTime.Second()) - { - result = ETrue; - } - else - { - result = EFalse; - } - break; - } - return result; - } - -TInt CTWinAnim::DoCmdRegisterForNotisL() - { - iResult = EFalse; - TUint32 notice; - TInt result = 0; - TPtr8 ptr1((TUint8*)¬ice, sizeof(TUint32)); - TPtr8 ptr2((TUint8*)&iExpectEventCode, sizeof(TEventCode)); - const RMessagePtr2 *msg=iFunctions->Message(); - - if(msg && !msg->IsNull()) - { - msg->ReadL(1, ptr1); - msg->ReadL(2, ptr2); - iFunctions->RegisterForNotifications(notice); - } - else - { - return -1; - } - - return result; - } - -TInt CTWinAnim::DoCmdMessageL() - { - TInt result; - TBuf message; - const RMessagePtr2 *msg=iFunctions->Message(); - - if(msg && !msg->IsNull()) - { - msg->ReadL(1,message); - msg->Write(2, message); - } - else - { - result = -1; - } - - return result; - } - -TInt CTWinAnim::DoCmdAnimateL() - { - TInt result = 0; - TDateTime time; - TPtr8 ptr1((TUint8*)&time, sizeof(TDateTime)); - const RMessagePtr2 *msg=iFunctions->Message(); - - if(msg && !msg->IsNull()) - { - msg->ReadL(1,ptr1); - iResult = EFalse; - iFunctions->Animate(&time); - if (iDateTime.MicroSecond() == time.MicroSecond() && iDateTime.Minute() - == time.Minute() && iDateTime.Second() == time.Second()) - { - iResult = ETrue; - } - else - { - iResult = EFalse; - } - - } - - return iResult; - } - - -TInt CTWinAnim::DoCmdFlashStateOn() - { - TBool status = EFalse; - TTime time; - time.HomeTime(); - TBool result = iFunctions->FlashStateOn(); - TInt ms = time.DateTime().MicroSecond(); - TInt H1Limit = 16000; //0.016 * 100000 = 1/64 * 1000000; - TInt H2Limit = 567000; // (7/12 - 1/64) * 1000000; - TInt H3Limit = 599000; // (7/12 + 1/64) * 1000000; - TInt H4Limit = 984000; // (1 - 0.016) * 1000000; - - if(ms < H1Limit || - (ms > H2Limit && ms < H3Limit) || - ms > H4Limit) - { - return -1; - } - - if (time.DateTime().MicroSecond() < 1000000 * 7/12) - { - status = ETrue; - } - else - { - status = EFalse; - } - - if (result == status) - { - status = ETrue; - } - else - { - status = EFalse; - } - - return status; - } - -TInt CTWinAnim::DoCmdPanic() - { - iFunctions->Panic(); - return 0; - } - -TInt CTWinAnim::DoCmdScreenDevice() - { - TDisplayMode mode = iFunctions->ScreenDevice()->DisplayMode(); - return 0; - } - -TInt CTWinAnim::DoCmdWindowExtension() - { - MAnimGeneralFunctionsWindowExtension* ext = iFunctions->WindowExtension(); - TInt screen = ext->FocusScreens(); - return 0; - } - -TInt CTWinAnim::DoCmdEventExtension() - { - MAnimGeneralFunctionsEventExtension* ext = iFunctions->EventExtension(); - TKeyEvent event; - event.iCode = EEventKeyDown; - ext->PostKeyEvent(event, 1); - return 0; - } - -TInt CTWinAnim::DoCmdExtendedInterfaceL() - { - TInt result = 0; - TInt interface; - TPtr8 ptr1((TUint8*)&interface, sizeof(TInt)); - const RMessagePtr2 *msg=iFunctions->Message(); - - if(msg && !msg->IsNull()) - { - msg->ReadL(1,ptr1); - TAny* any = iFunctions->ExtendedInterface(interface); - if (interface == 0) - { - //Zhang Yue modified.for the return result is a Int value, not a pointer address. - result = (TInt)any; - } - else - { - if (interface == 1) - { - ((MAnimGeneralFunctionsWindowExtension*) any)->FocusScreens(); - } - else - { - if (interface == 2) - { - TKeyEvent event; - event.iCode = EEventKeyDown; - ((MAnimGeneralFunctionsEventExtension*) any)->PostKeyEvent( - event, 1); - } - else - { - if (any) - { - result = -1; - } - else - { - result = 0; - }//end if (any) - }//end if(interface 2) - }//end if(interface) - }//end if(interface) - - } //end if(msg) - else - { - result = -1; - } - - return result; - } - -TInt CTWinAnim::DoCmdNumOfExtInterfaces() - { - return iFunctions->NumberOfExtendedInterfaces(); - } - -TInt CTWinAnim::DoCmdSetSyncL() - { - TInt result = 0; - MAnimGeneralFunctions::TAnimSync mode; - TPtr8 ptr1((TUint8*)&mode, sizeof(MAnimGeneralFunctions::TAnimSync)); - const RMessagePtr2 *msg=iFunctions->Message(); - if(msg && !msg->IsNull()) - { - msg->ReadL(1,ptr1); - iFunctions->SetSync(mode); - } - else - { - return -1; - } - return result; - } - -TInt CTWinAnim::DoCmdSync() - { - MAnimGeneralFunctions::TAnimSync mode = iFunctions->Sync(); - return mode; - } - -TInt CTWinAnim::DoCmdGetRawEventsL() - { - TInt result = 0; - TBool getevent; - TPtr8 ptr1((TUint8*)&getevent, sizeof(TBool)); - const RMessagePtr2 *msg=iFunctions->Message(); - if(msg && !msg->IsNull()) - { - msg->ReadL(1,ptr1); - iFunctions->GetRawEvents(getevent); - - } - else - { - return -1; - } - - return result; - } - -TInt CTWinAnim::DoCmdPostRawEventL() - { - iResult = EFalse; - TInt result = 0; - TRawEvent event; - TPtr8 ptr1((TUint8*)&event, sizeof(TRawEvent)); - const RMessagePtr2 *msg=iFunctions->Message(); - - if(msg && !msg->IsNull()) - { - msg->ReadL(1,ptr1); - iFunctions->PostRawEvent(event); - } - else - { - return -1; - } - - return result; - } - -TInt CTWinAnim::DoCmdPostKeyEventL() - { - iResult = EFalse; - TInt result = 0; - TKeyEvent event; - TPtr8 ptr1((TUint8*)&event, sizeof(TKeyEvent)); - const RMessagePtr2 *msg=iFunctions->Message(); - - if(msg && !msg->IsNull()) - { - msg->ReadL(1,ptr1); - iFunctions->PostKeyEvent(event); - } - else - { - result = -1; - } - return result; - } - -TInt CTWinAnim::DoCmdClient() - { - return iFunctions->Client().Id(); - } - -TInt CTWinAnim::DoCmdGeneralReplyBuf8L() - { - TInt result; - TBuf8 message; - const RMessagePtr2 *msg=iFunctions->Message(); - if(msg && !msg->IsNull()) - { - msg->ReadL(3,message); - iFunctions->ReplyBuf(message); - } - else - { - result = -1; - } - - return result; - } - -TInt CTWinAnim::DoCmdGeneralReplyBuf16L() - { - TInt result; - TBuf message; - const RMessagePtr2 *msg=iFunctions->Message(); - if(msg && !msg->IsNull()) - { - msg->ReadL(3,message); - iFunctions->ReplyBuf(message); - } - else - { - result = -1; - } - return result; - } - -TInt CTWinAnim::DoCmdEatupMemory() - { - TInt leftsize=20; - - // eat memory until fail to avaiable memory is less than is left size - TInt nTotalSize=User::Heap().Size(); - TAny* mem=User::AllocZ(nTotalSize); - - if (mem) - iMemArray.Append(mem); - - do - { - mem=User::AllocZ(leftsize); - if (mem) - { - iMemArray.Append(mem); - } - } - while (mem); - - iAvaiableSpace=User::Available(iBiggestBlock); - return 0; - } - -TInt CTWinAnim::DoCmdFreeEatenMemory() - { - FreeMemory(); - return 0; - } - -void CTWinAnim::FreeMemory() - { - for (TInt i=0; iConstructL(); - return self; -} - -CTestAnimDll* CTestAnimDll::NewL() -{ - CTestAnimDll* self=CTestAnimDll::NewLC(); - CleanupStack::Pop(); // self; - return self; -} - -void CTestAnimDll::ConstructL() -{ - User::LeaveIfError(iFs.Connect()); - _LIT(KFileName,"c:\\anim.txt"); - iLog=CLog::NewL(iFs,KFileName); - -} - -EXPORT_C CAnimDll* CreateCAnimDllL() -{ - return CTestAnimDll::NewL(); -} - -TInt CTestAnimDll::WriteLog(const TDesC& aInfo) - { - return iLog->WriteLog((aInfo)); - } -TInt CTestAnimDll::WriteLog(const TDesC8& aInfo) - { - return iLog->WriteLog((aInfo)); - } - -CAnim* CTestAnimDll::CreateInstanceL(TInt aType) - { - TBuf<50> buf; - buf.Format(_L("CTestAnimDll::CreateInstanceL %d"),aType); - WriteLog(buf); - - CAnim* anim=NULL; - switch (aType) - { - case EKWindowAnim: - { - anim=new (ELeave)CTWinAnim(this,aType); - break; - } - case EKSpriteAnim: - { - anim=new (ELeave)CTSpriteAnim(this,aType); - break; - } - case EKFreeTimerWindowAnim: - { - anim=new (ELeave) CTFreeTimerWinAnim(); - break; - } - default: - { -// iFunctions->Panic(); - break; - } - - } - - return anim; - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/AnimPlugin/src/T_log.cpp --- a/graphicsapitest/graphicssvs/wserv/AnimPlugin/src/T_log.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,94 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -#include "T_log.h" - -#define DES_AS_8_BIT(str) (TPtrC8((TText8*)((str).Ptr()), (str).Size())) -_LIT8(KLimit,"\r\n"); -_LIT8(KTimeFormat, "%2d:%2d:%3d "); - -CLog::CLog() - { - - } - -CLog::~CLog() - { - iFile.Close(); - - iBuf.Close(); - } - -CLog* CLog::NewLC(RFs &aFs, const TDesC &aFileName) - { - CLog* self = new (ELeave)CLog(); - CleanupStack::PushL(self); - self->ConstructL(aFs,aFileName); - return self; - } - -CLog* CLog::NewL(RFs &aFs, const TDesC &aFileName) - { - CLog* self=CLog::NewLC(aFs, aFileName); - CleanupStack::Pop(); // self; - return self; - } - -void CLog::ConstructL(RFs &aFs, const TDesC &aFileName) - { - User::LeaveIfError(iFile.Replace(aFs,aFileName,EFileWrite|EFileShareAny)); - - iText.Set(iFile); - iBuf.Create(1024); - - } -//write log -//input: aInfo, text msg; -//return: KErrNone, ok; other, fail; -TInt CLog::WriteLog(const TDesC& aInfo) - { - TTime currentTime; - currentTime.HomeTime(); - TDateTime time=currentTime.DateTime(); - - iBuf.Format(KTimeFormat,time.Minute(),time.Second(),time.MicroSecond()); - iBuf.Append(aInfo); - - iFile.Write(iBuf); - iFile.Write(KLimit); - - return 0; - } - -//write log -//input: aInfo, text msg; -//return: KErrNone, ok; other, fail; -TInt CLog::WriteLog(const TDesC8& aInfo) - { - TTime currentTime; - currentTime.HomeTime(); - TDateTime time=currentTime.DateTime(); - - iBuf.Format(KTimeFormat,time.Minute(),time.Second(),time.MicroSecond()); - iBuf.Append(aInfo); - - iFile.Write(iBuf); - iFile.Write(KLimit); - - return 0; - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/TWsGraphicShare/TWsGraphicShare.cpp --- a/graphicsapitest/graphicssvs/wserv/TWsGraphicShare/TWsGraphicShare.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,163 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -// Include Files - -#include "TWsGraphicShare.h" -#include -#include -#include - -// Local Functions - -LOCAL_C void DrawSharedGraphicL(const TDesC& aSemName, TInt aScrNum, const TWsGraphicId& aId, const TRect& aDestRect, const TDesC8& aData) - { - // Construct & Initiate - RWsSession ws; - User::LeaveIfError(ws.Connect()); - CleanupClosePushL(ws); - - CWsScreenDevice* screenDevice = new(ELeave) CWsScreenDevice(ws); - CleanupStack::PushL(screenDevice); - User::LeaveIfError(screenDevice->Construct(aScrNum)); - - TSize screenSize = screenDevice->SizeInPixels(); - - CWindowGc* gc = new(ELeave) CWindowGc(screenDevice); - CleanupStack::PushL(gc); - User::LeaveIfError(gc->Construct()); - - RWindowGroup winGroup(ws); - CleanupClosePushL(winGroup); - User::LeaveIfError(winGroup.Construct(1)); - - RWindow win(ws); - CleanupClosePushL(win); - TUint32 handle = 0x0F00; - User::LeaveIfError(win.Construct(winGroup, handle)); - win.SetBackgroundColor(TRgb(255, 255, 255)); - win.SetPosition(TPoint(aDestRect.iTl.iX, aDestRect.iTl.iY)); - win.SetSize(aDestRect.Size()); - win.Activate(); - - // Draw - gc->Activate(win); - win.Invalidate(); - win.BeginRedraw(); - ws.Flush(); - gc->DrawWsGraphic(aId, TRect(0,0,aDestRect.Width(),aDestRect.Height()), aData ); - gc->Deactivate(); - win.EndRedraw(); - ws.Flush(); - - // Synchronize with master process - RSemaphore semaphore; - CleanupClosePushL(semaphore); - User::LeaveIfError(semaphore.OpenGlobal(aSemName)); - semaphore.Signal(); - semaphore.Wait(); - semaphore.Close(); - - // Deconstruct - CleanupStack::PopAndDestroy(6); - } - -LOCAL_C void MainL ( ) - { - TBuf<128> commandLine; - TLex lex; - TBuf<32> semName; - TInt screenNumber = 0; - TInt graphId; - TInt left, top, right, bottom; - - // Read arguments from the command line - // There is a space between two adjacent parameters - // Commandline's format looks like that: - // 'screenNumber' 'graphId' 'left' 'top' 'right' 'bottom' - User::CommandLine(commandLine); - commandLine.TrimLeft(); - - _LIT(KSpace, " "); - TInt pos; - // Get process name - pos = commandLine.Find(KSpace); - semName = commandLine.Left(pos); - commandLine = commandLine.Mid(pos+1); - - // Get screen number - pos = commandLine.Find(KSpace); - lex = commandLine.Left(pos); - lex.Val(screenNumber); - commandLine = commandLine.Mid(pos+1); - - // Get gragaphic id - pos = commandLine.Find(KSpace); - lex = commandLine.Left(pos); - lex.Val(graphId); - commandLine = commandLine.Mid(pos+1); - - // Get coordinates - pos = commandLine.Find(KSpace); - lex = commandLine.Left(pos); - lex.Val(left); - commandLine = commandLine.Mid(pos+1); - - pos = commandLine.Find(KSpace); - lex = commandLine.Left(pos); - lex.Val(top); - commandLine = commandLine.Mid(pos+1); - - pos = commandLine.Find(KSpace); - lex = commandLine.Left(pos); - lex.Val(right); - commandLine = commandLine.Mid(pos+1); - - pos = commandLine.Find(KSpace); - lex = commandLine.Left(pos); - lex.Val(bottom); - commandLine = commandLine.Mid(pos+1); - - // Get data - TBuf8<32> data; - data.Copy(commandLine); - - TWsGraphicId id(TUid::Uid(graphId)); - TRect destRect(left, top, right, bottom); - - // Draw the graphic - DrawSharedGraphicL(semName, screenNumber, id, destRect, data); - } - -// Global Functions - -GLDEF_C TInt E32Main() - { - // Create cleanup stack - __UHEAP_MARK; - CTrapCleanup* cleanup = CTrapCleanup::New(); - - // Run application code inside TRAP harness, wait keypress when terminated - TRAPD(error, MainL()); - _LIT(KWsGraphicShareError, "WsGraphicShareError"); - __ASSERT_ALWAYS(!error,User::Panic(KWsGraphicShareError,error)); - - delete cleanup; - __UHEAP_MARKEND; - return KErrNone; - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/TWsGraphicShare/TWsGraphicShare.h --- a/graphicsapitest/graphicssvs/wserv/TWsGraphicShare/TWsGraphicShare.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,31 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -#ifndef __TWSGRAPHICSHARE_H__ -#define __TWSGRAPHICSHARE_H__ - -// Include Files - -#include - -// Function Prototypes - -GLDEF_C TInt E32Main(); - -#endif // __TWSGRAPHICSHARE_H__ - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/TWsGraphicShare/TWsGraphicShare.mmp --- a/graphicsapitest/graphicssvs/wserv/TWsGraphicShare/TWsGraphicShare.mmp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -TARGET twsgraphicshare.exe -TARGETTYPE exe -UID 0 0xE0A688F9 - -USERINCLUDE . -SYSTEMINCLUDE /epoc32/include - -SOURCEPATH . -SOURCE TWsGraphicShare.cpp - -LIBRARY euser.lib -LIBRARY ws32.lib - -SMPSAFE diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/TWsGraphicShare/TWsGraphicUnshare.mmp --- a/graphicsapitest/graphicssvs/wserv/TWsGraphicShare/TWsGraphicUnshare.mmp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,33 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -TARGET twsgraphicunshare.exe -TARGETTYPE exe -UID 0 0xE0A688F8 - - -USERINCLUDE . -SYSTEMINCLUDE /epoc32/include - -SOURCEPATH . -SOURCE TWsGraphicShare.cpp - -LIBRARY euser.lib -LIBRARY ws32.lib - -SMPSAFE diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/TWsGraphicShare/bld.inf --- a/graphicsapitest/graphicssvs/wserv/TWsGraphicShare/bld.inf Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,22 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// - - -PRJ_PLATFORMS -DEFAULT - -PRJ_MMPFILES -TWsGraphicShare.mmp diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/group/T_GraphicsWservAPI.mmp --- a/graphicsapitest/graphicssvs/wserv/group/T_GraphicsWservAPI.mmp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,137 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -TARGET t_graphicswservapi.exe -TARGETTYPE exe -UID 0x1000007B 0x20003721 -VENDORID 0x70000001 - -CAPABILITY SwEvent WriteDeviceData Powermgmt ProtServ - -SOURCEPATH ../src - -SOURCE ../../common/src/TestServerBase.cpp -SOURCE ../../common/src/UtilityClearPanicDlg.cpp -SOURCE ../../common/src/DataWrapperBase.cpp -SOURCE ../../common/src/T_GraphicsUtil.cpp -SOURCE ../../common/src/DataWrapperActive.cpp - -SOURCE T_GraphicsWservAPIServer.cpp -SOURCE T_DataWsClientClass.cpp -SOURCE T_DataWsSession.cpp -SOURCE T_DataWindowTreeNode.cpp -SOURCE T_DataWindowGroup.cpp -SOURCE T_DataWindowBase.cpp -SOURCE T_DataBlankWindow.cpp -SOURCE T_DataDrawableWindow.cpp -SOURCE T_DataWindow.cpp -SOURCE T_DataBackedUpWindow.cpp -SOURCE T_DataWindowGc.cpp -SOURCE T_DataWsBitmap.cpp -SOURCE T_DataWsGraphic.cpp -SOURCE T_DataWsGraphicBitmap.cpp -SOURCE T_DataWsGraphicMsgBuf.cpp -SOURCE T_DataWsEvent.cpp -SOURCE T_DataWsPriorityKeyEvent.cpp -SOURCE T_DataWsRedrawEvent.cpp -SOURCE T_DataWindowInfo.cpp -SOURCE T_DataWsScreenDevice.cpp -SOURCE T_DataWsGraphicAnimation.cpp -SOURCE T_DataWsGraphicFrameRate.cpp -SOURCE T_DataWsGraphicMsgFixedBase.cpp -SOURCE T_DataDsaSession.cpp -SOURCE T_DataDirectScreenAccess.cpp -SOURCE T_DataSoundPlugIn.cpp -SOURCE T_DataWsGraphicBitmapAnimation.cpp -SOURCE T_DataFrame.cpp -SOURCE T_DataAnimDll.cpp -SOURCE T_DataAnimForMClass.cpp - - -SOURCE T_DataWsSpriteBase.cpp -SOURCE T_DataWsSprite.cpp -SOURCE T_DataWsPointerCursor.cpp - -//from gdi -SOURCE ../../gdi/src/T_DataBitmapContext.cpp -SOURCE ../../gdi/src/T_DataBitmapDevice.cpp -SOURCE ../../gdi/src/T_DataDrawTextExtendedParam.cpp -SOURCE ../../gdi/src/T_DataDrawTextParam.cpp -SOURCE ../../gdi/src/T_DataFont.cpp -SOURCE ../../gdi/src/T_DataGraphicsContext.cpp -SOURCE ../../gdi/src/T_DataGraphicsDevice.cpp -SOURCE ../../gdi/src/T_DataGraphicsDeviceMap.cpp -SOURCE ../../gdi/src/T_DataMeasureTextInput.cpp -SOURCE ../../gdi/src/T_DataMeasureTextOutput.cpp -SOURCE ../../gdi/src/T_DataPalette.cpp -SOURCE ../../gdi/src/T_DataTypefaceStore.cpp - -//from bitgdi -SOURCE ../../bitgdi/src/T_DataFbsBitGc.cpp -SOURCE ../../bitgdi/src/T_DataFbsBitmapDevice.cpp -SOURCE ../../bitgdi/src/T_DataFbsDevice.cpp -SOURCE ../../bitgdi/src/T_DataFbsScreenDevice.cpp - -//from fntstore -SOURCE ../../fntstore/src/T_DataAlgStyle.cpp - -//from fbserv -SOURCE ../../fbserv/src/T_DataBitmapUtil.cpp -SOURCE ../../fbserv/src/T_DataFbsBitmap.cpp -SOURCE ../../fbserv/src/T_DataFbsColor256BitmapUtil.cpp -SOURCE ../../fbserv/src/T_DataFbsFont.cpp -SOURCE ../../fbserv/src/T_DataFbsSession.cpp -SOURCE ../../fbserv/src/T_DataFbsTypefaceStore.cpp T_DataAnim.cpp T_RAnimChild.cpp - -USERINCLUDE ../inc -USERINCLUDE ../../common/inc -USERINCLUDE ../../gdi/inc -USERINCLUDE ../../bitgdi/inc -USERINCLUDE ../../fntstore/inc -USERINCLUDE ../../fbserv/inc - -MW_LAYER_SYSTEMINCLUDE_SYMBIAN -OS_LAYER_SYSTEMINCLUDE_SYMBIAN - -LIBRARY euser.lib -LIBRARY efsrv.lib -LIBRARY esock.lib -LIBRARY testexecuteutils.lib -LIBRARY testexecutelogclient.lib -LIBRARY charconv.lib -LIBRARY fbscli.lib -LIBRARY ws32.lib -LIBRARY gdi.lib -LIBRARY bafl.lib -LIBRARY c32.lib -LIBRARY c32root.lib -LIBRARY hal.lib -LIBRARY w32stdgraphic.lib - -LIBRARY fntstr.lib -LIBRARY estor.lib -LIBRARY bitgdi.lib -LIBRARY eikcore.lib -LIBRARY cone.lib -LIBRARY apgrfx.lib -LIBRARY iniparser.lib -LIBRARY imageconversion.lib - -USERINCLUDE ../AnimPlugin/inc - -SMPSAFE diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/group/bld.inf --- a/graphicsapitest/graphicssvs/wserv/group/bld.inf Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,192 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// - -PRJ_TESTEXPORTS -t_wservapi.iby /epoc32/rom/include/t_wservapi.iby -t_wservapi_binaries.iby /epoc32/rom/include/t_wservapi_binaries.iby -t_wservapi_testdata.iby /epoc32/rom/include/t_wservapi_testdata.iby - -// to pkg -../pkg/t_wservapi.pkg /epoc32/pkg/t_wservapi.pkg -../pkg/twservapi.bat /epoc32/pkg/twservapi.bat - -../scripts/setup-T-GRAPHICS-WSERV-PublicApi.script z:/graphics/setup-t-graphics-wserv-publicapi.script - -../scripts/GRAPHICS-WSERV-PublicApi.script /epoc32/pkg/graphics-wserv-publicapi.script -../scripts/GRAPHICS-WSERV-PublicApi.script z:/graphics/graphics-wserv-publicapi.script - -// T_DataWsSession -../scripts/GRAPHICS-WSERV-Session-PublicApi.script /epoc32/pkg/graphics-wserv-session-publicapi.script -../testdata/GRAPHICS-WSERV-Session-PublicApi.ini /epoc32/pkg/graphics-wserv-session-publicapi.ini -../scripts/GRAPHICS-WSERV-Session-PublicApi.script z:/graphics/graphics-wserv-session-publicapi.script -../testdata/GRAPHICS-WSERV-Session-PublicApi.ini z:/graphics/graphics-wserv-session-publicapi.ini - -// T_DataWindowGroup -../scripts/GRAPHICS-WSERV-WindowGroup-PublicApi.script /epoc32/pkg/graphics-wserv-windowgroup-publicapi.script -../testdata/GRAPHICS-WSERV-WindowGroup-PublicApi.ini /epoc32/pkg/graphics-wserv-windowgroup-publicapi.ini -../scripts/GRAPHICS-WSERV-WindowGroup-PublicApi.script z:/graphics/graphics-wserv-windowgroup-publicapi.script -../testdata/GRAPHICS-WSERV-WindowGroup-PublicApi.ini z:/graphics/graphics-wserv-windowgroup-publicapi.ini - -// T_DataBlankWindow -../scripts/GRAPHICS-WSERV-BlankWindow-PublicApi.script /epoc32/pkg/graphics-wserv-blankwindow-publicapi.script -../testdata/GRAPHICS-WSERV-BlankWindow-PublicApi.ini /epoc32/pkg/graphics-wserv-blankwindow-publicapi.ini -../scripts/GRAPHICS-WSERV-BlankWindow-PublicApi.script z:/graphics/graphics-wserv-blankwindow-publicapi.script -../testdata/GRAPHICS-WSERV-BlankWindow-PublicApi.ini z:/graphics/graphics-wserv-blankwindow-publicapi.ini - -// T_DataWindow -../scripts/GRAPHICS-WSERV-Window-PublicApi.script /epoc32/pkg/graphics-wserv-window-publicapi.script -../testdata/GRAPHICS-WSERV-Window-PublicApi.ini /epoc32/pkg/graphics-wserv-window-publicapi.ini -../scripts/GRAPHICS-WSERV-Window-PublicApi.script z:/graphics/graphics-wserv-window-publicapi.script -../testdata/GRAPHICS-WSERV-Window-PublicApi.ini z:/graphics/graphics-wserv-window-publicapi.ini - -// T_DataBackedUpWindow -../scripts/GRAPHICS-WSERV-BackedUpWindow-PublicApi.script /epoc32/pkg/graphics-wserv-backedupwindow-publicapi.script -../testdata/GRAPHICS-WSERV-BackedUpWindow-PublicApi.ini /epoc32/pkg/graphics-wserv-backedupwindow-publicapi.ini -../scripts/GRAPHICS-WSERV-BackedUpWindow-PublicApi.script z:/graphics/graphics-wserv-backedupwindow-publicapi.script -../testdata/GRAPHICS-WSERV-BackedUpWindow-PublicApi.ini z:/graphics/graphics-wserv-backedupwindow-publicapi.ini - -// T_DataWindowGc -../scripts/GRAPHICS-WSERV-WindowGc-PublicApi.script /epoc32/pkg/graphics-wserv-windowgc-publicapi.script -../testdata/GRAPHICS-WSERV-WindowGc-PublicApi.ini /epoc32/pkg/graphics-wserv-windowgc-publicapi.ini -../scripts/GRAPHICS-WSERV-WindowGc-PublicApi.script z:/graphics/graphics-wserv-windowgc-publicapi.script -../testdata/GRAPHICS-WSERV-WindowGc-PublicApi.ini z:/graphics/graphics-wserv-windowgc-publicapi.ini - -// T_DataBitmap -../scripts/GRAPHICS-WSERV-WsBitmap-PublicApi.script /epoc32/pkg/graphics-wserv-wsbitmap-publicapi.script -../testdata/GRAPHICS-WSERV-WsBitmap-PublicApi.ini /epoc32/pkg/graphics-wserv-wsbitmap-publicapi.ini -../scripts/GRAPHICS-WSERV-WsBitmap-PublicApi.script z:/graphics/graphics-wserv-wsbitmap-publicapi.script -../testdata/GRAPHICS-WSERV-WsBitmap-PublicApi.ini z:/graphics/graphics-wserv-wsbitmap-publicapi.ini - -// T_DataWsGraphicBitmap -../scripts/GRAPHICS-WSERV-WsGraphicBitmap-PublicApi.script /epoc32/pkg/graphics-wserv-wsgraphicbitmap-publicapi.script -../testdata/GRAPHICS-WSERV-WsGraphicBitmap-PublicApi.ini /epoc32/pkg/graphics-wserv-wsgraphicbitmap-publicapi.ini -../scripts/GRAPHICS-WSERV-WsGraphicBitmap-PublicApi.script z:/graphics/graphics-wserv-wsgraphicbitmap-publicapi.script -../testdata/GRAPHICS-WSERV-WsGraphicBitmap-PublicApi.ini z:/graphics/graphics-wserv-wsgraphicbitmap-publicapi.ini - -// T_DataGraphicMsgBuf -../scripts/GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.script /epoc32/pkg/graphics-wserv-wsgraphicmsgbuf-publicapi.script -../testdata/GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.ini /epoc32/pkg/graphics-wserv-wsgraphicmsgbuf-publicapi.ini -../scripts/GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.script z:/graphics/graphics-wserv-wsgraphicmsgbuf-publicapi.script -../testdata/GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.ini z:/graphics/graphics-wserv-wsgraphicmsgbuf-publicapi.ini - -// T_DataWsEvent T_DataWsPriorityKeyEvent T_DataWsRedrawEvent -../scripts/GRAPHICS-WSERV-Events-PublicApi.script /epoc32/pkg/graphics-wserv-events-publicapi.script -../testdata/GRAPHICS-WSERV-Events-PublicApi.ini /epoc32/pkg/graphics-wserv-events-publicapi.ini -../scripts/GRAPHICS-WSERV-Events-PublicApi.script z:/graphics/graphics-wserv-events-publicapi.script -../testdata/GRAPHICS-WSERV-Events-PublicApi.ini z:/graphics/graphics-wserv-events-publicapi.ini - -// T_DataSoundPlugIn -../scripts/GRAPHICS-WSERV-SoundPlugin-PublicAPI.script /epoc32/pkg/graphics-wserv-soundplugin-publicapi.script -../testdata/GRAPHICS-WSERV-SoundPlugin-PublicAPI.ini /epoc32/pkg/graphics-wserv-soundplugin-publicapi.ini -../scripts/GRAPHICS-WSERV-SoundPlugin-PublicAPI.script z:/graphics/graphics-wserv-soundplugin-publicapi.script -../testdata/GRAPHICS-WSERV-SoundPlugin-PublicAPI.ini z:/graphics/graphics-wserv-soundplugin-publicapi.ini - -// T_DataWsScreenDevice -../scripts/GRAPHICS-WSERV-WsScreenDevice-PublicAPI.script /epoc32/pkg/graphics-wserv-wsscreendevice-publicapi.script -../testdata/GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini /epoc32/pkg/graphics-wserv-wsscreendevice-publicapi.ini -../scripts/GRAPHICS-WSERV-WsScreenDevice-PublicAPI.script z:/graphics/graphics-wserv-wsscreendevice-publicapi.script -../testdata/GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini z:/graphics/graphics-wserv-wsscreendevice-publicapi.ini - -// GRAPHICS-WSERV-DsaSession -../scripts/GRAPHICS-WSERV-DsaSession-PublicApi.script /epoc32/pkg/graphics-wserv-dsasession-publicapi.script -../testdata/GRAPHICS-WSERV-DsaSession-PublicApi.ini /epoc32/pkg/graphics-wserv-dsasession-publicapi.ini -../scripts/GRAPHICS-WSERV-DsaSession-PublicApi.script z:/graphics/graphics-wserv-dsasession-publicapi.script -../testdata/GRAPHICS-WSERV-DsaSession-PublicApi.ini z:/graphics/graphics-wserv-dsasession-publicapi.ini - -// GRAPHICS-WSERV-DirectScreenAccess -../scripts/GRAPHICS-WSERV-DirectScreenAccess-PublicApi.script /epoc32/pkg/graphics-wserv-directscreenaccess-publicapi.script -../testdata/GRAPHICS-WSERV-DirectScreenAccess-PublicApi.ini /epoc32/pkg/graphics-wserv-directscreenaccess-publicapi.ini -../scripts/GRAPHICS-WSERV-DirectScreenAccess-PublicApi.script z:/graphics/graphics-wserv-directscreenaccess-publicapi.script -../testdata/GRAPHICS-WSERV-DirectScreenAccess-PublicApi.ini z:/graphics/graphics-wserv-directscreenaccess-publicapi.ini - -// T_DataWsSprite -../scripts/GRAPHICS-WSERV-WsSprite-PublicApi.script /epoc32/pkg/graphics-wserv-wssprite-publicapi.script -../testdata/GRAPHICS-WSERV-WsSprite-PublicApi.ini /epoc32/pkg/graphics-wserv-wssprite-publicapi.ini -../scripts/GRAPHICS-WSERV-WsSprite-PublicApi.script z:/graphics/graphics-wserv-wssprite-publicapi.script -../testdata/GRAPHICS-WSERV-WsSprite-PublicApi.ini z:/graphics/graphics-wserv-wssprite-publicapi.ini - -// T_DataWsPointerCursor -../scripts/GRAPHICS-WSERV-WsPointerCursor-PublicApi.script /epoc32/pkg/graphics-wserv-wspointercursor-publicapi.script -../testdata/GRAPHICS-WSERV-WsPointerCursor-PublicApi.ini /epoc32/pkg/graphics-wserv-wspointercursor-publicapi.ini -../scripts/GRAPHICS-WSERV-WsPointerCursor-PublicApi.script z:/graphics/graphics-wserv-wspointercursor-publicapi.script -../testdata/GRAPHICS-WSERV-WsPointerCursor-PublicApi.ini z:/graphics/graphics-wserv-wspointercursor-publicapi.ini - -// T_DataWsGraphicBitmapAnimation -../scripts/GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi.script /epoc32/pkg/graphics-wserv-wsgraphicbitmapanimation-publicapi.script -../testdata/GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi.ini /epoc32/pkg/graphics-wserv-wsgraphicbitmapanimation-publicapi.ini -../scripts/GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi.script z:/graphics/graphics-wserv-wsgraphicbitmapanimation-publicapi.script -../testdata/GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi.ini z:/graphics/graphics-wserv-wsgraphicbitmapanimation-publicapi.ini - -// T_DataFrame -../scripts/GRAPHICS-WSERV-Frame-PublicAPI.script /epoc32/pkg/graphics-wserv-frame-publicapi.script -../testdata/GRAPHICS-WSERV-Frame-PublicApi.ini /epoc32/pkg/graphics-wserv-frame-publicapi.ini -../scripts/GRAPHICS-WSERV-Frame-PublicAPI.script z:/graphics/graphics-wserv-frame-publicapi.script -../testdata/GRAPHICS-WSERV-Frame-PublicApi.ini z:/graphics/graphics-wserv-frame-publicapi.ini - -// T_DataAnim -../scripts/GRAPHICS-WSERV-Anim-PublicAPI.script /epoc32/pkg/graphics-wserv-anim-publicapi.script -../testdata/GRAPHICS-WSERV-Anim-PublicAPI.ini /epoc32/pkg/graphics-wserv-anim-publicapi.ini -../scripts/GRAPHICS-WSERV-Anim-PublicAPI.script z:/graphics/graphics-wserv-anim-publicapi.script -../testdata/GRAPHICS-WSERV-Anim-PublicAPI.ini z:/graphics/graphics-wserv-anim-publicapi.ini - -// T_DataAnimDll -../scripts/GRAPHICS-WSERV-AnimDll-PublicAPI.script /epoc32/pkg/graphics-wserv-animdll-publicapi.script -../testdata/GRAPHICS-WSERV-AnimDll-PublicAPI.ini /epoc32/pkg/graphics-wserv-animdll-publicapi.ini -../scripts/GRAPHICS-WSERV-AnimDll-PublicAPI.script z:/graphics/graphics-wserv-animdll-publicapi.script -../testdata/GRAPHICS-WSERV-AnimDll-PublicAPI.ini z:/graphics/graphics-wserv-animdll-publicapi.ini - -// T_DataAnimForMClass -../scripts/GRAPHICS-WSERV-AnimGfwe-PublicAPI.script /epoc32/pkg/graphics-wserv-animgfwe-publicapi.script -../testdata/GRAPHICS-WSERV-AnimGfwe-PublicAPI.ini /epoc32/pkg/graphics-wserv-animgfwe-publicapi.ini -../scripts/GRAPHICS-WSERV-AnimGfwe-PublicAPI.script z:/graphics/graphics-wserv-animgfwe-publicapi.script -../testdata/GRAPHICS-WSERV-AnimGfwe-PublicAPI.ini z:/graphics/graphics-wserv-animgfwe-publicapi.ini - -../scripts/GRAPHICS-WSERV-AnimWindowFunctions-PublicApi.script /epoc32/pkg/graphics-wserv-animwindowfunctions-publicapi.script -../testdata/GRAPHICS-WSERV-AnimWindowFunctions-PublicApi.ini /epoc32/pkg/graphics-wserv-animwindowfunctions-publicapi.ini -../scripts/GRAPHICS-WSERV-AnimWindowFunctions-PublicApi.script z:/graphics/graphics-wserv-animwindowfunctions-publicapi.script -../testdata/GRAPHICS-WSERV-AnimWindowFunctions-PublicApi.ini z:/graphics/graphics-wserv-animwindowfunctions-publicapi.ini - -../scripts/GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.script /epoc32/pkg/graphics-wserv-animgeneralfunctions-publicapi.script -../testdata/GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini /epoc32/pkg/graphics-wserv-animgeneralfunctions-publicapi.ini -../scripts/GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.script z:/graphics/graphics-wserv-animgeneralfunctions-publicapi.script -../testdata/GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini z:/graphics/graphics-wserv-animgeneralfunctions-publicapi.ini - -../scripts/GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi.script /epoc32/pkg/graphics-wserv-animspritefunctions-publicapi.script -../testdata/GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi.ini /epoc32/pkg/graphics-wserv-animspritefunctions-publicapi.ini -../scripts/GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi.script z:/graphics/graphics-wserv-animspritefunctions-publicapi.script -../testdata/GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi.ini z:/graphics/graphics-wserv-animspritefunctions-publicapi.ini - -// Generic test date -../testdata/datafile/test_board.mbm /epoc32/pkg/wserv/test_board.mbm -../testdata/datafile/test_board.mbm z:/graphics/wserv/test_board.mbm -../testdata/datafile/test_mask.mbm /epoc32/pkg/wserv/test_mask.mbm -../testdata/datafile/test_mask.mbm z:/graphics/wserv/test_mask.mbm -../testdata/datafile/test_alpha.mbm /epoc32/pkg/wserv/test_alpha.mbm -../testdata/datafile/test_alpha.mbm z:/graphics/wserv/test_alpha.mbm -../testdata/datafile/test_rwssprite_bitmap.mbm /epoc32/pkg/wserv/test_rwssprite_bitmap.mbm -../testdata/datafile/test_rwssprite_bitmap.mbm z:/graphics/wserv/test_rwssprite_bitmap.mbm -../testdata/datafile/WsGraphicBitmapAnimation.mbm /epoc32/pkg/wserv/wsgraphicbitmapanimation.mbm -../testdata/datafile/WsGraphicBitmapAnimation.mbm z:/graphics/wserv/wsgraphicbitmapanimation.mbm -../testdata/datafile/testfontws.gdr /epoc32/pkg/wserv/testfontws.gdr -../testdata/datafile/testfontws.gdr z:/graphics/wserv/testfontws.gdr - - -PRJ_TESTMMPFILES -T_GraphicsWservAPI.mmp - -../AnimPlugin/group/T_AnimPlugin.mmp -../TWsGraphicShare/TWsGraphicShare.mmp -../TWsGraphicShare/TWsGraphicUnshare.mmp diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/group/t_wservapi.iby --- a/graphicsapitest/graphicssvs/wserv/group/t_wservapi.iby Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// - -#if (!defined __T_WSERV_API_IBY__) -#define __T_WSERV_API_IBY__ - -#include -#include - -#endif diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/group/t_wservapi_binaries.iby --- a/graphicsapitest/graphicssvs/wserv/group/t_wservapi_binaries.iby Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,36 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// - -#if (!defined __T_WSERV_API_BINARIES_IBY__) -#define __T_WSERV_API_BINARIES_IBY__ - -#include - -#if (!defined EKA2) -file=ABI_DIR\BUILD_DIR\T_GraphicsWservAPI.exe system\libs\T_GraphicsWservAPI.exe -file=ABI_DIR\BUILD_DIR\TWsGraphicShare.exe system\libs\TWsGraphicShare.exe -file=ABI_DIR\BUILD_DIR\TWsGraphicUnshare.exe system\libs\TWsGraphicUnshare.exe - -file=ABI_DIR\BUILD_DIR\t_animplugin.dll system\libs\t_animplugin.dll -#else -file=ABI_DIR\BUILD_DIR\T_GraphicsWservAPI.exe system\bin\T_GraphicsWservAPI.exe -file=ABI_DIR\BUILD_DIR\TWsGraphicShare.exe system\bin\TWsGraphicShare.exe -file=ABI_DIR\BUILD_DIR\TWsGraphicUnshare.exe system\bin\TWsGraphicUnshare.exe - -file=ABI_DIR\BUILD_DIR\t_animplugin.dll system\bin\t_animplugin.dll -#endif - -#endif diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/group/t_wservapi_testdata.iby --- a/graphicsapitest/graphicssvs/wserv/group/t_wservapi_testdata.iby Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,80 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// - -#if (!defined __T_WSERV_API_TESTDATA_IBY__) -#define __T_WSERV_API_TESTDATA_IBY__ - -data=EPOCROOT##Epoc32\data\z\graphics\setup-t-graphics-wserv-publicapi.script graphics\setup-t-graphics-wserv-publicapi.script - -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-WSERV-BackedUpWindow-PublicApi.script graphics\GRAPHICS-WSERV-BackedUpWindow-PublicApi.script -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-WSERV-BlankWindow-PublicApi.script graphics\GRAPHICS-WSERV-BlankWindow-PublicApi.script -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-WSERV-DirectScreenAccess-PublicApi.script graphics\GRAPHICS-WSERV-DirectScreenAccess-PublicApi.script -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-WSERV-DsaSession-PublicApi.script graphics\GRAPHICS-WSERV-DsaSession-PublicApi.script -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-WSERV-Events-PublicApi.script graphics\GRAPHICS-WSERV-Events-PublicApi.script -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-WSERV-PublicApi.script graphics\GRAPHICS-WSERV-PublicApi.script -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-WSERV-Session-PublicApi.script graphics\GRAPHICS-WSERV-Session-PublicApi.script -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-WSERV-SoundPlugin-PublicAPI.script graphics\GRAPHICS-WSERV-SoundPlugin-PublicAPI.script -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-WSERV-WindowGc-PublicApi.script graphics\GRAPHICS-WSERV-WindowGc-PublicApi.script -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.script graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.script -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-WSERV-Window-PublicApi.script graphics\GRAPHICS-WSERV-Window-PublicApi.script -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-WSERV-WsBitmap-PublicApi.script graphics\GRAPHICS-WSERV-WsBitmap-PublicApi.script -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-WSERV-WsGraphicBitmap-PublicApi.script graphics\GRAPHICS-WSERV-WsGraphicBitmap-PublicApi.script -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.script graphics\GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.script -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-WSERV-WsScreenDevice-PublicApi.script graphics\GRAPHICS-WSERV-WsScreenDevice-PublicApi.script -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-WSERV-WsSprite-PublicApi.script graphics\GRAPHICS-WSERV-WsSprite-PublicApi.script -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-WSERV-WsPointerCursor-PublicApi.script graphics\GRAPHICS-WSERV-WsPointerCursor-PublicApi.script -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi.script graphics\GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi.script -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-WSERV-Frame-PublicApi.script graphics\GRAPHICS-WSERV-Frame-PublicApi.script -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-WSERV-Anim-PublicApi.script graphics\GRAPHICS-WSERV-Anim-PublicApi.script -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-WSERV-AnimDll-PublicApi.script graphics\GRAPHICS-WSERV-AnimDll-PublicApi.script -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-WSERV-AnimGfwe-PublicApi.script graphics\GRAPHICS-WSERV-AnimGfwe-PublicApi.script -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-WSERV-AnimWindowFunctions-PublicApi.script graphics\GRAPHICS-WSERV-AnimWindowFunctions-PublicApi.script -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.script graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.script -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi.script graphics\GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi.script - -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-WSERV-BackedUpWindow-PublicApi.ini graphics\GRAPHICS-WSERV-BackedUpWindow-PublicApi.ini -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-WSERV-BlankWindow-PublicApi.ini graphics\GRAPHICS-WSERV-BlankWindow-PublicApi.ini -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-WSERV-DirectScreenAccess-PublicApi.ini graphics\GRAPHICS-WSERV-DirectScreenAccess-PublicApi.ini -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-WSERV-DsaSession-PublicApi.ini graphics\GRAPHICS-WSERV-DsaSession-PublicApi.ini -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-WSERV-Events-PublicApi.ini graphics\GRAPHICS-WSERV-Events-PublicApi.ini -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-WSERV-Session-PublicApi.ini graphics\GRAPHICS-WSERV-Session-PublicApi.ini -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-WSERV-SoundPlugin-PublicAPI.ini graphics\GRAPHICS-WSERV-SoundPlugin-PublicAPI.ini -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-WSERV-Window-PublicApi.ini graphics\GRAPHICS-WSERV-Window-PublicApi.ini -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-WSERV-WsBitmap-PublicApi.ini graphics\GRAPHICS-WSERV-WsBitmap-PublicApi.ini -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-WSERV-WsGraphicBitmap-PublicApi.ini graphics\GRAPHICS-WSERV-WsGraphicBitmap-PublicApi.ini -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.ini graphics\GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.ini -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-WSERV-WsScreenDevice-PublicApi.ini graphics\GRAPHICS-WSERV-WsScreenDevice-PublicApi.ini -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-WSERV-WsPointerCursor-PublicApi.ini graphics\GRAPHICS-WSERV-WsPointerCursor-PublicApi.ini -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi.ini graphics\GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi.ini -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-WSERV-Frame-PublicApi.ini graphics\GRAPHICS-WSERV-Frame-PublicApi.ini -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-WSERV-Anim-PublicApi.ini graphics\GRAPHICS-WSERV-Anim-PublicApi.ini -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-WSERV-AnimDll-PublicApi.ini graphics\GRAPHICS-WSERV-AnimDll-PublicApi.ini -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi.ini graphics\GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi.ini -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-WSERV-AnimGfwe-PublicApi.ini graphics\GRAPHICS-WSERV-AnimGfwe-PublicApi.ini -data=EPOCROOT##Epoc32\data\z\graphics\GRAPHICS-WSERV-AnimWindowFunctions-PublicApi.ini graphics\GRAPHICS-WSERV-AnimWindowFunctions-PublicApi.ini - -data=EPOCROOT##Epoc32\data\z\graphics\wserv\test_alpha.mbm graphics\wserv\test_alpha.mbm -data=EPOCROOT##Epoc32\data\z\graphics\wserv\test_board.mbm graphics\wserv\test_board.mbm -data=EPOCROOT##Epoc32\data\z\graphics\wserv\test_mask.mbm graphics\wserv\test_mask.mbm -data=EPOCROOT##Epoc32\data\z\graphics\wserv\test_rwssprite_bitmap.mbm graphics\wserv\test_rwssprite_bitmap.mbm -data=EPOCROOT##Epoc32\data\z\graphics\wserv\WsGraphicBitmapAnimation.mbm graphics\wserv\WsGraphicBitmapAnimation.mbm -data=EPOCROOT##Epoc32\data\z\graphics\wserv\testfontws.gdr graphics\wserv\testfontws.gdr - -#endif diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/inc/T_DataAnim.h --- a/graphicsapitest/graphicssvs/wserv/inc/T_DataAnim.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,78 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -#if (!defined __T_GRAPHICS_WSERV_TESTANIM_H__) -#define __T_GRAPHICS_WSERV_TESTANIM_H__ - -#include "T_RAnimChild.h" -#include "DataWrapperBase.h" - -#define KIpcArgNum 3 - -class CT_DataAnim : public CDataWrapperBase - { -public: - static CT_DataAnim* NewL(); - - ~CT_DataAnim(); - - virtual TAny* GetObject(); - virtual void SetObjectL(TAny* aAny); - virtual void DisownObjectL(); - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - void RunL(CActive* aActive, TInt aIndex); - -protected: - CT_DataAnim(); - void ConstructL(); - -private: - void DestroyData(); - - void DoCmdnewL(const TDesC& aSection); - void DoCmdConstructL(const TDesC& aSection); - void DoCmdCommandReply(const TDesC& aSection); - void DoCmdCommand(const TDesC& aSection); - void DoCmdAsyncCommandReply(const TDesC& aSection, const TInt aAsyncErrorIndex); - void DoCmdClose(); - void DoCmdDestroy(); - void DoCmdDestructor(); - - TDesC8& CopyToSendBuf(const TDesC& buf); - - TBool GetIpcArg(const TDesC& aSection); - - TBool CheckIpcArg(const TDesC& aSection); - TBool CheckAnimateInterval(const TDesC& aSection); - - TBool ReadAnimCommand(const TDesC& aSectName, const TDesC& aKeyName, TInt& aCommand); - TBool ReadAnimType(const TDesC& aSectName, const TDesC& aKeyName, TInt& aType); -private: - CActiveCallback* iActiveCallback; - T_RAnimChild* iAnim; - - TIpcArgs iIpcArgs; - - RBuf8 iSendBuf; - RBuf iIpcBuf[KIpcArgNum]; - - TBuf<200> iAsyncCmdSection; - }; - - -#endif /* __T_GRAPHICS_WSERV_TESTANIM_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/inc/T_DataAnimDll.h --- a/graphicsapitest/graphicssvs/wserv/inc/T_DataAnimDll.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,57 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -#if (!defined __T_GRAPHICS_WSERV_ANIMDLL_H__) -#define __T_GRAPHICS_WSERV_ANIMDLL_H__ - -// User Includes -#include "T_DataWsClientClass.h" - -class CT_DataAnimDll : public CDataWrapperBase, public CT_DataWsClientClass - { -public: - static CT_DataAnimDll* NewL(); - - ~CT_DataAnimDll(); - - virtual TAny* GetObject(); - virtual void SetObjectL(TAny* aAny); - - virtual void DisownObjectL(); - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - -protected: - CT_DataAnimDll(); - void ConstructL(); - - virtual MWsClientClass* GetClientClass() const; - -private: - void DestroyData(); - - void DoCmdnewL(const TDesC& aSection); - void DoCmdLoad(const TDesC& aSection); - void DoCmdClose(); - void DoCmdDestroy(); - void DoCmdDestructor(); - -private: - RAnimDll* iAnimDll; - }; - -#endif /* __T_GRAPHICS_WSERV_ANIMDLL_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/inc/T_DataAnimForMClass.h --- a/graphicsapitest/graphicssvs/wserv/inc/T_DataAnimForMClass.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,140 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -#if (!defined __T_GRAPHICS_WSERV_ANIM_FOR_MCLASS_H__) -#define __T_GRAPHICS_WSERV_ANIM_FOR_MCLASS_H__ - -#include "T_RAnimChild.h" -#include "DataWrapperBase.h" - -#define KIpcArgNum 3 - -class CT_DataAnimForMClass : public CDataWrapperBase - { -public: - static CT_DataAnimForMClass* NewL(); - - ~CT_DataAnimForMClass(); - - virtual TAny* GetObject(); - virtual void SetObjectL(TAny* aAny); - virtual void DisownObjectL(); - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection,const TInt); - //void RunL(CActive* aActive, TInt aIndex); - -protected: - CT_DataAnimForMClass(); - void ConstructL(); - -private: - void DestroyData(); - - void DoCmdnewL(const TDesC& aSection); - void DoCmdConstructL(const TDesC& aSection); - void DoCmdCommandReplyL(const TDesC& aSection); - void DoCmdCommand(const TDesC& aSection); - void DoCmdAsyncCommandReply(const TDesC& aSection, const TInt aAsyncErrorIndex); - void DoCmdClose(); - void DoCmdDestroy(); - void DoCmdDestructor(); - - TDesC8& CopyToSendBuf(const TDesC& buf); - - TBool GetIpcArg(const TDesC& aSection); - - TBool CheckIpcArg(const TDesC& aSection); - TBool CheckAnimateInterval(const TDesC& aSection); - void ResetIpcArg(); - //MAnimGeneralFunctions - void DoCmdRetrieveResult(const TDesC& aSectName , const TInt& datOpcode); - - void DoCmdGeneralAnimate(const TDesC& aSectName , const TInt& datOpcode); - void DoCmdGeneralClient(const TDesC& aSectName , const TInt& datOpcode ); - void DoCmdGeneralFlashStateOn(const TDesC& aSectName , const TInt& datOpcode); - void DoCmdGeneralPanic(const TDesC& aSectName, const TInt& datOpcode); - void DoCmdGeneralScreenDevice(const TDesC& aSectName , const TInt& datOpcode); - void DoCmdGeneralWindowExtension(const TDesC& aSectName , const TInt& datOpcode); - void DoCmdGeneralEventExtension(const TDesC& aSectName , const TInt& datOpcode); - void DoCmdGeneralExtendedInterface(const TDesC& aSectName , const TInt& datOpcode); - void DoCmdGeneralNumOfExtInterfaces(const TDesC& aSectName , const TInt& datOpcode); - void DoCmdGeneralGetRawEvents(const TDesC& aSectName , const TInt& datOpcode); - void DoCmdGeneralPostRawEvent(const TDesC& aSectName , const TInt& datOpcode); - void DoCmdGeneralPostKeyEventL(const TDesC& aSectName , const TInt& datOpcode); - void DoCmdGeneralSetSync(const TDesC& aSectName , const TInt& datOpcode); - void DoCmdGeneralSync(const TDesC& aSectName , const TInt& datOpcode); - void DoCmdGeneralSetInterval(const TDesC& aSectName, const TInt& datOpcode); - void DoCmdGeneralSetNextInterval(const TDesC& aSectName, const TInt& datOpcode); - void DoCmdGeneralSystemTime(const TDesC& aSectName, const TInt& datOpcode); - void DoCmdGeneralRegisterForNotis(const TDesC& aSectName , const TInt& datOpcode); - void DoCmdGeneralMessage(const TDesC& aSectName , const TInt& datOpcode); - void DoCmdGeneralDuplicateBitmapL(const TDesC& aSectName , const TInt& datOpcode); - void DoCmdGeneralDuplicateFontL(const TDesC& aSectName, const TInt& datOpcode); - void DoCmdGeneralCloseFontL(const TDesC& aSectName , const TInt& datOpcode); - void DoCmdGeneralReplyBuf8(const TDesC& aSectName, const TInt& datOpcode); - void DoCmdGeneralReplyBuf16(const TDesC& aSectName, const TInt& datOpcode); - - void DoCmdSpriteGetSpriteMember(const TDesC& aSectName , const TInt& datOpcode); - void DoCmdSpriteUpdateMember(const TDesC& aSectName, const TInt& datOpcode); - void DoCmdSpriteActivate(const TDesC& aSectName , const TInt& datOpcode); - void DoCmdSpriteSpriteCanBeSeen(const TDesC& aSectName , const TInt& datOpcode); - void DoCmdSpriteSizeChangedL(const TDesC& aSectName , const TInt& datOpcode); - void DoCmdSpriteSetPosition(const TDesC& aSectName , const TInt& datOpcode); - - //MAnimWindowFunctions - void DoWindowActivateGc(TInt aOpcode); - void DoWindowSetRect(TInt aOpcode,const TDesC& aSection); - void DoWindowWindowSizeL(TInt aOpcode,const TDesC& aSection); - void DoWindowIsHidden(TInt aOpcode,const TDesC& aSection); - void DoWindowSetVisible(TInt aOpcode,const TDesC& aSection); - void DoWindowInvalidate(TInt aOpcode,const TDesC& aSection); - void DoWindowParametersL(TInt aOpcode,const TDesC& aSection); - void DoWindowVisibleRegion(TInt aOpcode,const TDesC& aSection); - void GetWindowRetrieveResult(TInt aOpcode,const TDesC& aSection); - - //MAnimGeneralFunctionsWindowExtension - void DoGeneralExtScreensL(TInt aOpcode,const TDesC& aSection); - void DoGeneralExtFocusScreensL(TInt aOpcode,const TDesC& aSection); - void DoGeneralExtSetFocusScreen(TInt aOpcode,const TDesC& aSection); - void DoGeneralExtWindowGroupsL(TInt aOpcode,const TDesC& aSection); - void DoGeneralExtWindowGroupInfoL(TInt aOpcode,const TDesC& aSection); - void DoGeneralExtWindowGroupNameL(TInt aOpcode,const TDesC& aSection); - void DoGeneralExtSetOrdinalPositionL(TInt aOpcode,const TDesC& aSection); - void DoGeneralExtIsFocusableL(TInt aOpcode,const TDesC& aSection); - void DoGeneralExtWindowConfigL(TInt aOpcode,const TDesC& aSection); - - //MAnimFreeTimerWindowFunctions - void DoFreeTimerWinDeactivateGc(TInt aOpcode); - void DoFreeTimerWinUpdate(TInt aOpcode); - - //Common Util - void DoCmdEatupMemory(const TInt& datOpcode); - void DoCmdFreeEatenMemory(const TInt& datOpcode); -private: - CActiveCallback* iActiveCallback; - T_RAnimChild* iAnim; - - TIpcArgs iIpcArgs; - - RBuf8 iSendBuf; - RBuf iIpcBuf[KIpcArgNum]; - - TBuf<200> iAsyncCmdSection; - }; - - -#endif /* __T_GRAPHICS_WSERV_TESTANIM_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/inc/T_DataBackedUpWindow.h --- a/graphicsapitest/graphicssvs/wserv/inc/T_DataBackedUpWindow.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,94 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -#if (!defined __T_GRAPHICS_WSERV_BACKEDUPWINDOW_H__) -#define __T_GRAPHICS_WSERV_BACKEDUPWINDOW_H__ - -// User Includes -#include "T_DataDrawableWindow.h" - -/** - * Test Active Notification class - * - */ -class CT_DataBackedUpWindow : public CT_DataDrawableWindow - { -public: - /** - * Two phase constructor - */ - static CT_DataBackedUpWindow* NewL(); - - /** - * Public destructor - */ - ~CT_DataBackedUpWindow(); - - /** - * Return a pointer to the object that the data wraps - * - * @return pointer to the object that the data wraps - */ - virtual TAny* GetObject() { return iBackedUpWindow; } - - /** - * Set the object that the data wraps - * - * @param aObject object that the wrapper is testing - * - */ - virtual void SetObjectL(TAny* aAny); - - /** - * The object will no longer be owned by this - * - * @leave KErrNotSupported if the the function is not supported - */ - virtual void DisownObjectL(); - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - -protected: - /** - * Protected constructor. First phase construction - */ - CT_DataBackedUpWindow(); - - /** - * Second phase construction - */ - void ConstructL(); - - virtual RDrawableWindow* GetDrawableWindow() const; - -private: - /** - * Helper methods - */ - void DestroyData(); - void DoCmdnewL(const TDesC& aSection); - void DoCmdConstructL(const TDesC& aSection); - void DoCmdBitmapHandle(); - void DoCmdUpdateScreenL(const TDesC& aSection); - void DoCmdUpdateBackupBitmap(); - void DoCmdMaintainBackup(); - -private: - RBackedUpWindow* iBackedUpWindow; - }; - -#endif /* __T_GRAPHICS_WSERV_BACKEDUPWINDOW_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/inc/T_DataBlankWindow.h --- a/graphicsapitest/graphicssvs/wserv/inc/T_DataBlankWindow.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,93 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -#if (!defined __T_GRAPHICS_WSERV_BLANKWINDOW_H__) -#define __T_GRAPHICS_WSERV_BLANKWINDOW_H__ - -// User Includes -#include "T_DataWindowBase.h" - -/** - * Test Active Notification class - * - */ -class CT_DataBlankWindow : public CT_DataWindowBase - { -public: - /** - * Two phase constructor - */ - static CT_DataBlankWindow* NewL(); - - /** - * Public destructor - */ - ~CT_DataBlankWindow(); - - /** - * Return a pointer to the object that the data wraps - * - * @return pointer to the object that the data wraps - */ - virtual TAny* GetObject() { return iBlankWindow; } - - /** - * Set the object that the data wraps - * - * @param aObject object that the wrapper is testing - * - */ - virtual void SetObjectL(TAny* aAny); - - /** - * The object will no longer be owned by this - * - * @leave KErrNotSupported if the the function is not supported - */ - virtual void DisownObjectL(); - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - -protected: - /** - * Protected constructor. First phase construction - */ - CT_DataBlankWindow(); - - /** - * Second phase construction - */ - void ConstructL(); - - virtual RWindowBase* GetWindowBase() const; - -private: - /** - * Helper methods - */ - void DestroyData(); - void DoCmdnewL(const TDesC& aSection); - void DoCmdConstructL(const TDesC& aSection); - void DoCmdSetColor(const TDesC& aSection); - void DoCmdSetSize(const TDesC& aSection); - void DoCmdSetExtent(const TDesC& aSection); - -private: - RBlankWindow* iBlankWindow; - }; - -#endif /* __T_GRAPHICS_WSERV_BLANKWINDOW_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/inc/T_DataDirectScreenAccess.h --- a/graphicsapitest/graphicssvs/wserv/inc/T_DataDirectScreenAccess.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,76 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -#ifndef T_DATADIRECTSCREENACCESS_H_ -#define T_DATADIRECTSCREENACCESS_H_ - -#include -#include "DataWrapperActive.h" - - -class CT_DataDirectScreenAccess : public CDataWrapperActive - , public MDirectScreenAccess -{ -public: - static CT_DataDirectScreenAccess* NewL(); - ~CT_DataDirectScreenAccess(); - virtual TAny* GetObject() {return iDirectScreenAccess; } - virtual void SetObjectL(TAny* aAny); - virtual void DisownObjectL(); - virtual TBool DoCommandL(const TTEFFunction& aCommand, const - TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - //implement the CDataWrapperActive - virtual CActive* GetActive() {return iDirectScreenAccess; } - -protected: - CT_DataDirectScreenAccess(); - void ConstructL(); - -private: //functions to be tested - void DoCmdnewL(const TDesC& aSection); - void DoCmdStartL(const TDesC& aSection); - void DoCmdGcL(const TDesC& aSection); - void DoCmdScreenDeviceL(const TDesC& aSection); - void DoCmdDrawRegion(const TDesC& aSection); - void DoCmdSetPriority(const TDesC& aSection); - void DoCmdBringAppFgL(const TDesC& aSection); - void DoCmdDestructor(); - -private: - //implement the MDirectScreenAccess - void Restart(RDirectScreenAccess::TTerminationReasons aReason); - void AbortNow(RDirectScreenAccess::TTerminationReasons aReason); - - //Helper function - void DestroyData(); - RWsSession* GetRWSessionL(const TDesC& aSection); - CWsScreenDevice* GetDevicesL(const TDesC& aSection); - RWindow* GetWindowL(const TDesC& aSection); - -private: - //Wrapped Object - CDirectScreenAccess* iDirectScreenAccess; - RDirectScreenAccess::TTerminationReasons iWantedReason; - - - -}; - - - -#endif /*T_DATADIRECTSCREENACCESS_H_*/ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/inc/T_DataDrawableWindow.h --- a/graphicsapitest/graphicssvs/wserv/inc/T_DataDrawableWindow.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,52 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -#if (!defined __T_GRAPHICS_WSERV_DRAWABLEWINDOW_H__) -#define __T_GRAPHICS_WSERV_DRAWABLEWINDOW_H__ - -// User Includes -#include "T_DataWindowBase.h" - - -/** - * Test Active Notification class - * - */ -class CT_DataDrawableWindow : public CT_DataWindowBase - { -public: - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - -protected: - /** - * Protected constructor. First phase construction - */ - CT_DataDrawableWindow(); - - virtual RDrawableWindow* GetDrawableWindow() const=0; - virtual RWindowBase* GetWindowBase() const; - -private: - /** - * Helper methods - */ - void DoCmdScroll(const TDesC& aEntry); - void DoCmdGetDrawRect(const TDesC& aEntry); - }; - - #endif /* __T_GRAPHICS_WSERV_DRAWABLEWINDOW_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/inc/T_DataDsaSession.h --- a/graphicsapitest/graphicssvs/wserv/inc/T_DataDsaSession.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,70 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -#ifndef T_DATADSASESSION_H_ -#define T_DATADSASESSION_H_ - -#include -#include "DataWrapperBase.h" -#include "T_DataWsClientClass.h" - -class CT_DataDsaSession : public CDataWrapperBase, public CT_DataWsClientClass -{ -public: - static CT_DataDsaSession* NewL(); - ~CT_DataDsaSession(); - virtual TAny* GetObject() {return iDsaSession;} - virtual void SetObjectL(TAny* aAny); - virtual void DisownObjectL(); - virtual TBool DoCommandL(const TTEFFunction& aCommand, const - TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - -protected: - CT_DataDsaSession(); - void ConstructL(); - void RunL(CActive* aActive, TInt aIndex); - void DoCancel(CActive* aActive, TInt aIndex); - virtual MWsClientClass* GetClientClass() const; - -private://functions used to test. - void DoCmdnewL(const TDesC& aSection); - void DoCmdConstruct(); - void DoCmdClose(); - void DoCmdRequestL(const TDesC& aSection, const TInt aAsyncErrorIndex); - void DoCmdCompleted(); - void DoCmdCancel(); - - void DoCmdEatupMemory(const TDesC& aSection); - void DoCmdFreeEatenMemory(); -private: - //helper functions - void DestroyData(); - //Helper class - RWsSession* GetRWSessionL(const TDesC& aSection); - - //used in ActiveCallback - void RunRequestReady( const TInt aIndex); - -private: - RDirectScreenAccess* iDsaSession; - //ActiveCallback objects - CActiveCallback* iActiveRequestReady; -}; - - -#endif /*T_DATADSASESSION_H_*/ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/inc/T_DataFrame.h --- a/graphicsapitest/graphicssvs/wserv/inc/T_DataFrame.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,88 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -#if (!defined __T_GRAPHICS_WSERV_FRAME_H__) -#define __T_GRAPHICS_WSERV_FRAME_H__ - -#include - -/** - * Test Active Notification class - * - */ -class CT_DataFrame : public CDataWrapperBase - { -public: - /** - * Two phase constructor - */ - static CT_DataFrame* NewL(); - - /** - * Public destructor - */ - ~CT_DataFrame(); - - /** - * Return a pointer to the object that the data wraps - * - * \return pointer to the object that the data wraps - */ - virtual TAny* GetObject() { return iFrame; } - - /** - * Set the object that the data wraps - * - * @param aObject object that the wrapper is testing - * - */ - virtual void SetObjectL(TAny* aAny); - - /** - * The object will no longer be owned by this - * - * @leave KErrNotSupported if the the function is not supported - */ - virtual void DisownObjectL(); - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - -protected: - /** - * Protected constructor. First phase construction - */ - CT_DataFrame(); - - /** - * Second phase construction - */ - void ConstructL(); - -private: - void DoCmdDestroy(); - void DoCmdNewL(); - void DoCmdFrameInfo(const TDesC& aSection); - void DoCmdSetFrameInfo(const TDesC& aSection); - void DoCmdBitmapL(const TDesC& aSection); - void DoCmdSetBitmapL(const TDesC& aSection); - void DoCmdMaskL(const TDesC& aSection); - void DoCmdSetMaskL(const TDesC& aSection); -private: - CWsGraphicBitmapAnimation::CFrame* iFrame; - }; - -#endif /* __T_GRAPHICS_WSERV_FRAME_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/inc/T_DataSoundPlugIn.h --- a/graphicsapitest/graphicssvs/wserv/inc/T_DataSoundPlugIn.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,74 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataSoundPlugIn -*/ - -#if (!defined __T_WSSOUNDPLUGIN_DATA_H__) -#define __T_WSSOUNDPLUGIN_DATA_H__ - -// EPOC includes -#include -#include -// User Includes -#include "DataWrapperBase.h" -#include "T_DataWsClientClass.h" - - -class CT_DataSoundPlugIn : public CDataWrapperBase , public CT_DataWsClientClass - { -public: - static CT_DataSoundPlugIn* NewL(); - - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - - - ~CT_DataSoundPlugIn(); - - virtual TAny* GetObject(); - -protected: - CT_DataSoundPlugIn(); - void ConstructL(); - - virtual MWsClientClass* GetClientClass() const; - -private: - void Cleanup(); - - // Commands - void DoCmdNewL(const TDesC& aSection); - void DoCmdConstruct(const TDesC& aSection); - void DoCmdClose(); - void DoCmdDestroy(); - void DoCmdIsLoaded(const TDesC& aSection); - void DoCmdUnload(); - void DoCmdLoad(const TDesC& aSection); - void DoCmdSetKeyClick(const TDesC& aSection); - void DoCmdSetPenClick(const TDesC& aSection); - void DoCmdKeyClickEnabled(const TDesC& aSection); - void DoCmdPenClickEnabled(const TDesC& aSection); - void DoCmdCommandReply(const TDesC& aSection); -private: - RSoundPlugIn* iSoundPlugIn; - }; - -#endif /* __T_WSSOUNDPLUGIN_DATA_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/inc/T_DataWindow.h --- a/graphicsapitest/graphicssvs/wserv/inc/T_DataWindow.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,109 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -#if (!defined __T_GRAPHICS_WSERV_WINDOW_H__) -#define __T_GRAPHICS_WSERV_WINDOW_H__ - -// User Includes -#include "T_DataDrawableWindow.h" - - -/** - * Test Active Notification class - * - */ -class CT_DataWindow : public CT_DataDrawableWindow - { -public: - /** - * Two phase constructor - */ - static CT_DataWindow* NewL(); - - /** - * Public destructor - */ - ~CT_DataWindow(); - - /** - * Return a pointer to the object that the data wraps - * - * \return pointer to the object that the data wraps - */ - virtual TAny* GetObject() { return iWindow; } - - /** - * Set the object that the data wraps - * - * @param aObject object that the wrapper is testing - * - */ - virtual void SetObjectL(TAny* aAny); - - /** - * The object will no longer be owned by this - * - * @leave KErrNotSupported if the the function is not supported - */ - virtual void DisownObjectL(); - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - -protected: - /** - * Protected constructor. First phase construction - */ - CT_DataWindow(); - - - /** - * Second phase construction - */ - void ConstructL(); - - virtual RDrawableWindow* GetDrawableWindow() const; - -private: - /** - * Helper methods - */ - void DestroyData(); - void DoCmdnewL(const TDesC& aSection); - void DoCmdConstructL(const TDesC& aSection); - void DoCmdBeginRedraw(const TDesC& aSection); - void DoCmdEndRedraw(); - void DoCmdInvalidate(const TDesC& aSection); - void DoCmdGetInvalidRegionL(const TDesC& aSection); - void DoCmdSetBackgroundColor(const TDesC& aSection); - void DoCmdSetSize(const TDesC& aSection); - void DoCmdSetExtent(const TDesC& aSection); - void DoCmdHandleTransparencyUpdate(); - void DoCmdSetTransparencyFactor(const TDesC& aSection); - void DoCmdSetTransparencyBitmapL(const TDesC& aSection); - void DoCmdSetTransparencyWsBitmapL(const TDesC& aSection); - void DoCmdSetNonTransparent(); - void DoCmdEnableRedrawStore(const TDesC& aSection); - void DoCmdSetTransparencyAlphaChannel(); - void DoCmdSetTransparentRegionL(const TDesC& aSection); - void DoCmdSetTransparencyPolicy(const TDesC& aSection); - void DoCmdIsRedrawStoreEnabled(const TDesC& aSection); - void DoCmdEnableOSB(const TDesC& aSection); - -private: - RWindow* iWindow; - }; -#endif /* __T_GRAPHICS_WSERV_WINDOW_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/inc/T_DataWindowBase.h --- a/graphicsapitest/graphicssvs/wserv/inc/T_DataWindowBase.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,86 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -#if (!defined __T_GRAPHICS_WSERV_WINDOWBASE_H__) -#define __T_GRAPHICS_WSERV_WINDOWBASE_H__ - -// User Includes -#include "T_DataWindowTreeNode.h" - -/** - * Test Active Notification class - * - */ -class CT_DataWindowBase : public CT_DataWindowTreeNode - { -public: - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - -protected: - /** - * Protected constructor. First phase construction - */ - CT_DataWindowBase(); - - virtual RWindowBase* GetWindowBase() const=0; - virtual RWindowTreeNode* GetWindowTreeNode() const; - -private: - /** - * Helper methods - */ - void DoCmdActivate(); - void DoCmdSetPosition(const TDesC& aSection); - void DoCmdSetSizeErr(const TDesC& aSection); - void DoCmdSetExtentErr(const TDesC& aSection); - void DoCmdSize(const TDesC& aSection); - void DoCmdInquireOffsetL(const TDesC& aSection); - void DoCmdPointerFilter(const TDesC& aSection); - void DoCmdSetPointerGrab(const TDesC& aSection); - void DoCmdClaimPointerGrab(const TDesC& aSection); - void DoCmdSetPointerCapture(const TDesC& aSection); - void DoCmdSetPointerCapturePriority(const TDesC& aSection); - void DoCmdGetPointerCapturePriority(const TDesC& aSection); - void DoCmdSetVisible(const TDesC& aSection); - void DoCmdSetShadowHeight(const TDesC& aSection); - void DoCmdSetShadowDisabled(const TDesC& aSection); - void DoCmdPosition(const TDesC& aSection); - void DoCmdAbsPosition(const TDesC& aSection); - void DoCmdSetCornerType(const TDesC& aSection); - void DoCmdSetShapeL(const TDesC& aSection); - void DoCmdSetRequiredDisplayMode(const TDesC& aSection); - void DoCmdDisplayMode(const TDesC& aSection); - void DoCmdEnableBackup(const TDesC& aSection); - void DoCmdRequestPointerRepeatEvent(const TDesC& aSection); - void DoCmdCancelPointerRepeatEventRequest(); - void DoCmdAllocPointerMoveBuffer(const TDesC& aSection); - void DoCmdFreePointerMoveBuffer(); - void DoCmdEnablePointerMoveBuffer(); - void DoCmdDisablePointerMoveBuffer(); - void DoCmdRetrievePointerMoveBufferL(const TDesC& aSection); - void DoCmdDiscardPointerMoveBuffer(); - void DoCmdAddKeyRect(const TDesC& aSection); - void DoCmdRemoveAllKeyRects(); - void DoCmdPasswordWindow(const TDesC& aSection); - void DoCmdFadeBehind(const TDesC& aSection); - void DoCmdIsFaded(const TDesC& aSection); - void DoCmdIsNonFading(const TDesC& aSection); - void DoCmdMoveToGroupL(const TDesC& aSection); - }; - -#endif /* __T_GRAPHICS_WSERV_WINDOWBASE_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/inc/T_DataWindowGc.h --- a/graphicsapitest/graphicssvs/wserv/inc/T_DataWindowGc.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,108 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -#if (!defined __T_GRAPHICS_WSERV_WINDOWGC_H__) -#define __T_GRAPHICS_WSERV_WINDOWGC_H__ - -// User Includes -#include "DataWrapperBase.h" -#include "T_DataBitmapContext.h" -#include "T_DataWsClientClass.h" - -// EPOC Includes -#include - - -/** - * Test Active Notification class - * - */ -class CT_DataWindowGc : public CT_DataBitmapContext, public CT_DataWsClientClass - { - -public: - /** - * Two phase constructor - */ - static CT_DataWindowGc* NewL(); - - /** - * Public destructor - */ - ~CT_DataWindowGc(); - - /** - * Return a pointer to the object that the data wraps - * - * \return pointer to the object that the data wraps - */ - virtual TAny* GetObject() { return iWindowGc; } - - /** - * Set the object that the data wraps - * - * @param aObject object that the wrapper is testing - * - */ - virtual void SetObjectL(TAny* aAny); - - /** - * The object will no longer be owned by this - * - * @leave KErrNotSupported if the the function is not supported - */ - virtual void DisownObjectL(); - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - -protected: - /** - * Protected constructor. First phase construction - */ - CT_DataWindowGc(); - - /** - * Second phase construction - */ - void ConstructL(); - - virtual MWsClientClass* GetClientClass() const; - virtual CGraphicsContext* GetGraphicsContext() const; - virtual CBitmapContext* GetBitmapContext() const; - - -private: - /** - * Helper methods - */ - void DestroyData(); - void DoCmdnewL(const TDesC& aSection); - void DoCmdDestructor(); - void DoCmdConstruct(); - void DoCmdActivateL(const TDesC& aSection); - void DoCmdDeactivate(); - void DoCmdBitBltL(const TDesC& aCommand, const TDesC& aSection, const TInt aAsyncErrorIndex); - void DoCmdBitBltMaskedL(const TDesC& aCommand, const TDesC& aSection, const TInt aAsyncErrorIndex); - void DoCmdSetDitherOrigin(const TDesC& aSection); - void DoCmdSetOpaque(const TDesC& aSection); - void DoCmdDrawWsGraphicL(const TDesC& aSection); - -private: - CWindowGc* iWindowGc; - }; - -#endif /* __T_GRAPHICS_WSERV_WINDOWGC_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/inc/T_DataWindowGroup.h --- a/graphicsapitest/graphicssvs/wserv/inc/T_DataWindowGroup.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,122 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -#if (!defined __T_GRAPHICS_WSERV_WINDOWGROUP_H__) -#define __T_GRAPHICS_WSERV_WINDOWGROUP_H__ - -// User Includes -#include "T_DataWindowTreeNode.h" - - -/** - * Test Active Notification class - * - */ -class CT_DataWindowGroup : public CT_DataWindowTreeNode - { -public: - /** - * Two phase constructor - */ - static CT_DataWindowGroup* NewL(); - - /** - * Public destructor - */ - ~CT_DataWindowGroup(); - - /** - * Return a pointer to the object that the data wraps - * - * \return pointer to the object that the data wraps - */ - virtual TAny* GetObject() { return iWindowGroup; } - - /** - * Set the object that the data wraps - * - * @param aObject object that the wrapper is testing - * - */ - virtual void SetObjectL(TAny* aAny); - - /** - * The object will no longer be owned by this - * - * @leave KErrNotSupported if the the function is not supported - */ - virtual void DisownObjectL(); - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - -protected: - /** - * Protected constructor. First phase construction - */ - CT_DataWindowGroup(); - - - /** - * Second phase construction - */ - void ConstructL(); - - virtual RWindowTreeNode* GetWindowTreeNode() const; - - -private: - /** - * Helper methods - */ - void DestroyData(); - void DoCmdnewL(const TDesC& aSection); - void DoCmdDestructor(); - void DoCmdConstructL(const TDesC& aSection); - void DoCmdConstructChildAppL(const TDesC& aSection); - void DoCmdAllowProcessToCreateChildWindowGroups(const TDesC& aSection); - void DoCmdEnableReceiptOfFocus(const TDesC& aSection); - void DoCmdAutoForeground(const TDesC& aSection); - void DoCmdSetOrdinalPriorityAdjust(const TDesC& aSection); - void DoCmdSetOrdinalPositionErr(const TDesC& aSection); - void DoCmdCaptureKey(const TDesC& aSection); - void DoCmdCancelCaptureKey(const TDesC& aSection); - void DoCmdCaptureKeyUpAndDowns(const TDesC& aSection); - void DoCmdCancelCaptureKeyUpAndDowns(const TDesC& aSection); - void DoCmdCaptureLongKey(const TDesC& aSection); - void DoCmdCancelCaptureLongKey(const TDesC& aSection); - void DoCmdAddPriorityKey(const TDesC& aSection); - void DoCmdRemovePriorityKey(const TDesC& aSection); - void DoCmdSetTextCursorL(const TDesC& aSection); - void DoCmdCancelTextCursor(); - void DoCmdSetOwningWindowGroupL(const TDesC& aSection); - void DoCmdDefaultOwningWindow(); - void DoCmdSetName(const TDesC& aSection); - void DoCmdName(const TDesC& aSection); - void DoCmdIdentifier(); - void DoCmdDisableKeyClick(const TDesC& aSection); - void DoCmdEnableScreenChangeEvents(); - void DoCmdDisableScreenChangeEvents(); - void DoCmdSimulatePointerEvent(const TDesC& aSection); - void DoCmdSetChildGroupL(const TDesC& aSection); - void DoCmdClearChildGroup(); - -private: - RWindowGroup* iWindowGroup; - TInt32 iCaptureKeyHandle; - }; - -#endif /* __T_GRAPHICS_WSERV_WINDOWGROUP_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/inc/T_DataWindowInfo.h --- a/graphicsapitest/graphicssvs/wserv/inc/T_DataWindowInfo.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,65 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -#if (!defined __T_GRAPHICS_WSERV_WINDOWINFO_H__) -#define __T_GRAPHICS_WSERV_WINDOWINFO_H__ - -// User Includes -#include "DataWrapperBase.h" - -// EPOC Includes -#include -#include - -/** - * Test Active Notification class - * - */ -class CT_DataWindowInfo : public CDataWrapperBase - { - -public: - static CT_DataWindowInfo* NewL(); - - ~CT_DataWindowInfo(); - - virtual TAny* GetObject(); - virtual void SetObjectL(TAny* aAny); - virtual void DisownObjectL(); - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - -protected: - CT_DataWindowInfo(); - void ConstructL(); - -private: - /** - * Helper methods - */ - void DestroyData(); - void DoCmdnew(); - void DoCmdDestructor(); - void DoCmdGetRedrawRegionAndRedrawShadowRegion(const TDesC& aEntry); - -private: - TWindowInfo* iWindowInfo; - const TRegion* iRedrawRegion; - const TRegion* iRedrawShadowRegion; - }; - -#endif /* __T_GRAPHICS_WSERV_WINDOWINFO_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/inc/T_DataWindowTreeNode.h --- a/graphicsapitest/graphicssvs/wserv/inc/T_DataWindowTreeNode.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,85 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -#if (!defined __T_GRAPHICS_WSERV_WINDOWTREENODE_H__) -#define __T_GRAPHICS_WSERV_WINDOWTREENODE_H__ - -// User Includes -#include "T_DataWsClientClass.h" -#include "DataWrapperBase.h" -#include "T_GraphicsUtil.h" - -// EPOC includes -#include -#include - -/** - * Test Active Notification class - * - */ -class CT_DataWindowTreeNode : public CDataWrapperBase, public CT_DataWsClientClass - { -public: - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - -protected: - /** - * Protected constructor. First phase construction - */ - CT_DataWindowTreeNode(); - - virtual MWsClientClass* GetClientClass() const; - virtual RWindowTreeNode* GetWindowTreeNode() const=0; - -private: - /** - * Helper methods - */ - void DoCmdClose(); - void DoCmdDestroyL(); - void DoCmdParent(const TDesC& aSection); - void DoCmdPrevSibling(const TDesC& aSection); - void DoCmdNextSibling(const TDesC& aSection); - void DoCmdChild(const TDesC& aSection); - void DoCmdOrdinalPriority(const TDesC& aSection); - void DoCmdOrdinalPosition(const TDesC& aSection); - void DoCmdFullOrdinalPosition(const TDesC& aSection); - void DoCmdSetOrdinalPosition(const TDesC& aSection); - void DoCmdWindowGroupId(); - void DoCmdSetPointerCursor(const TDesC& aSection); - void DoCmdSetCustomPointerCursorL(const TDesC& aSection); - void DoCmdEnableOnEvents(const TDesC& aSection); - void DoCmdDisableOnEvents(); - void DoCmdEnableGroupChangeEvents(); - void DoCmdDisableGroupChangeEvents(); - void DoCmdEnableFocusChangeEvents(); - void DoCmdDisableFocusChangeEvents(); - void DoCmdEnableGroupListChangeEvents(); - void DoCmdDisableGroupListChangeEvents(); - void DoCmdEnableVisibilityChangeEvents(); - void DoCmdDisableVisibilityChangeEvents(); - void DoCmdEnableErrorMessages(const TDesC& aSection); - void DoCmdDisableErrorMessages(); - void DoCmdEnableModifierChangedEvents(const TDesC& aSection); - void DoCmdDisableModifierChangedEvents(); - void DoCmdSetNonFading(const TDesC& aSection); - void DoCmdSetFaded(const TDesC& aSection); - void DoCmdClearPointerCursor(); - }; - -#endif /* __T_GRAPHICS_WSERV_WINDOWTREENODE_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/inc/T_DataWsBitmap.h --- a/graphicsapitest/graphicssvs/wserv/inc/T_DataWsBitmap.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,99 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -#if (!defined __T_GRAPHICS_WSERV_WSBITMAP_H__) -#define __T_GRAPHICS_WSERV_WSBITMAP_H__ - -// User Includes -#include "T_DataWsClientClass.h" -#include "T_DataFbsBitmap.h" - - -/** - * Test Active Notification class - * - */ -class CT_DataWsBitmap : public CT_DataFbsBitmap, public CT_DataWsClientClass - { - -public: - /** - * Two phase constructor - */ - static CT_DataWsBitmap* NewL(); - - /** - * Public destructor - */ - ~CT_DataWsBitmap(); - - /** - * Return a pointer to the object that the data wraps - * - * \return pointer to the object that the data wraps - */ - virtual TAny* GetObject() { return iWsBitmap; } - - /** - * Set the object that the data wraps - * - * @param aObject object that the wrapper is testing - * - */ - virtual void SetObjectL(TAny* aAny); - - /** - * The object will no longer be owned by this - * - * @leave KErrNotSupported if the the function is not supported - */ - virtual void DisownObjectL(); - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - -protected: - /** - * Protected constructor. First phase construction - */ - CT_DataWsBitmap(); - - - /** - * Second phase construction - */ - void ConstructL(); - - virtual MWsClientClass* GetClientClass() const; - -private: - /** - * Helper methods - */ - void DestroyData(); - void DoCmdnewL(const TDesC& aEntry); - void DoCmdDestructor(); - void DoCmdCreate(const TDesC& aEntry); - void DoCmdDuplicateL(const TDesC& aEntry); - void DoCmdLoad(const TDesC& aEntry); - void DoCmdInternalizeL(const TDesC& aEntry); - void DoCmdReset(); - -private: - CWsBitmap* iWsBitmap; - }; - -#endif /* __T_GRAPHICS_WSERV_WSBITMAP_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/inc/T_DataWsClientClass.h --- a/graphicsapitest/graphicssvs/wserv/inc/T_DataWsClientClass.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,47 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -#if (!defined __T_GRAPHICS_WSERV_CLIENTCLASS_H__) -#define __T_GRAPHICS_WSERV_CLIENTCLASS_H__ - -// User Includes -#include "DataWrapperBase.h" - -// EPOC Includes -#include - -/** - * Test Active Notification class - * - */ -class CT_DataWsClientClass - { -public: - virtual TBool DoCommandL(CDataWrapperBase& aDataWrapper, const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - -protected: - virtual MWsClientClass* GetClientClass() const=0; - -private: - /** - * Helper methods - */ - void DoCmdWsHandle(CDataWrapperBase& aDataWrapper, const TDesC& aSection); - }; - -#endif /* __T_GRAPHICS_WSERV_CLIENTCLASS_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/inc/T_DataWsEvent.h --- a/graphicsapitest/graphicssvs/wserv/inc/T_DataWsEvent.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,68 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -#if (!defined __T_GRAPHICS_WSERV_EVENT_H__) -#define __T_GRAPHICS_WSERV_EVENT_H__ - -// User Includes -#include "DataWrapperBase.h" - -// EPOC Includes -#include - -class CT_DataWsEvent : public CDataWrapperBase - { -public: - static CT_DataWsEvent* NewL(); - - ~CT_DataWsEvent(); - - virtual TAny* GetObject(); - virtual void SetObjectL(TAny* aAny); - virtual void DisownObjectL(); - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - -protected: - CT_DataWsEvent(); - void ConstructL(); - -private: - /** - * Helper methods - */ - void DestroyData(); - void DoCmdnew(); - void DoCmdErrorMessage(const TDesC& aSection); - void DoCmdEventData(const TDesC& aSection); - void DoCmdHandle(const TDesC& aSection); - void DoCmdInt(const TDesC& aSection); - void DoCmdKey(const TDesC& aSection); - void DoCmdModifiersChanged(const TDesC& aSection); - void DoCmdPointer(const TDesC& aSection); - void DoCmdSetHandle(const TDesC& aSection); - void DoCmdSetTimeNow(); - void DoCmdSetType(const TDesC& aSection); - void DoCmdTime(); - void DoCmdType(const TDesC& aSection); - void DoCmdVisibilityChanged(const TDesC& aSection); - -private: - TWsEvent* iWsEvent; - }; - -#endif /* __T_GRAPHICS_WSERV_EVENT_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/inc/T_DataWsGraphic.h --- a/graphicsapitest/graphicssvs/wserv/inc/T_DataWsGraphic.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,61 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -#if (!defined __T_GRAPHICS_WSERV_WSGRAPHIC_H__) -#define __T_GRAPHICS_WSERV_WSGRAPHIC_H__ - -// User Includes -#include "DataWrapperBase.h" - -// EPOC Includes -#include - -/** - * Test Active Notification class - * - */ -class CT_DataWsGraphic : public CDataWrapperBase - { -public: - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - -protected: - /** - * Protected constructor. First phase construction - */ - CT_DataWsGraphic(); - - virtual CWsGraphic* GetWsGraphic() const = 0; - virtual TInt Share(TSecureId aClientId) = 0; - virtual TInt ShareGlobally() = 0; - virtual TInt UnShare(TSecureId aClientId) = 0; - virtual TInt UnShareGlobally() = 0; - -private: - // Helper methods - void DoCmdDestructorL(); - void DoCmdDestroy(); - void DoCmdIdL(const TDesC& aEntry); - void DoCmdIsActive(const TDesC& aEntry); - void DoCmdShareGlobally(); - void DoCmdShare(const TDesC& aEntry); - void DoCmdUnShare(const TDesC& aEntry); - void DoCmdUnShareGlobally(); - }; - -#endif /* __T_GRAPHICS_WSERV_WSGRAPHIC_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/inc/T_DataWsGraphicAnimation.h --- a/graphicsapitest/graphicssvs/wserv/inc/T_DataWsGraphicAnimation.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,65 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -#if (!defined __T_DATA_WS_GRAPHIC_ANNIMATION_H__) -#define __T_DATA_WS_GRAPHIC_ANNIMATION_H__ - -// User Includes -#include "T_DataWsGraphicMsgFixedBase.h" - -// EPOC Includes -#include - -/** - * Test Active Notification class - * - */ -class CT_DataWsGraphicAnimation : public CT_DataWsGraphicMsgFixedBase - { -public: - CT_DataWsGraphicAnimation(); - ~CT_DataWsGraphicAnimation(); - - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - - virtual TAny* GetObject(); - -protected: - // CT_DataWsGraphicMsgFixedBase implementation - virtual TWsGraphicMsgFixedBase* GetWsGraphicMsgFixedBase() const; - -private: - /** - * Helper methods - */ - void DestroyData(); - void DoCmdnew(); - void DoCmdIsPaused(const TDesC& aSection); - void DoCmdIsPlaying(const TDesC& aSection); - void DoCmdIsStopped(const TDesC& aSection); - void DoCmdIsStopping(const TDesC& aSection); - void DoCmdLoops(const TDesC& aSection); - void DoCmdPause(); - void DoCmdPlay(const TDesC& aSection); - void DoCmdStop(const TDesC& aSection); - -private: - TWsGraphicAnimation* iWsGraphicAnimation; - }; - -#endif /* __T_DATA_WS_GRAPHIC_ANNIMATION_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/inc/T_DataWsGraphicBitmap.h --- a/graphicsapitest/graphicssvs/wserv/inc/T_DataWsGraphicBitmap.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,101 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -#if (!defined __T_GRAPHICS_WSERV_WSGRAPHICBITMAP_H__) -#define __T_GRAPHICS_WSERV_WSGRAPHICBITMAP_H__ - -// User Includes -#include "T_DataWsGraphic.h" - - -// EPOC includes -#include - - -/** - * Test Active Notification class - * - */ -class CT_DataWsGraphicBitmap : public CT_DataWsGraphic - { - -public: - /** - * Two phase constructor - */ - static CT_DataWsGraphicBitmap* NewL(); - - /** - * Public destructor - */ - ~CT_DataWsGraphicBitmap(); - - /** - * Return a pointer to the object that the data wraps - * - * \return pointer to the object that the data wraps - */ - virtual TAny* GetObject() { return iWsGraphicBitmap; } - - /** - * Set the object that the data wraps - * - * @param aObject object that the wrapper is testing - * - */ - virtual void SetObjectL(TAny* aAny); - - /** - * The object will no longer be owned by this - * - * @leave KErrNotSupported if the the function is not supported - */ - virtual void DisownObjectL(); - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - -protected: - /** - * Protected constructor. First phase construction - */ - CT_DataWsGraphicBitmap(); - - /** - * Second phase construction - */ - void ConstructL(); - - // CT_DataWsGraphic Implementation - virtual CWsGraphic* GetWsGraphic() const; - virtual TInt Share(TSecureId aClientId); - virtual TInt ShareGlobally(); - virtual TInt UnShare(TSecureId aClientId); - virtual TInt UnShareGlobally(); - -private: - /** - * Helper methods - */ - void DestroyData(); - void DoCmdNewL(const TDesC& aEntry); - void DoCmdDestructor(); - -private: - CWsGraphicBitmap* iWsGraphicBitmap; - - }; -#endif /* __T_GRAPHICS_WSERV_WSGRAPHICBITMAP_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/inc/T_DataWsGraphicBitmapAnimation.h --- a/graphicsapitest/graphicssvs/wserv/inc/T_DataWsGraphicBitmapAnimation.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,92 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -#if (!defined __T_GRAPHICS_WSERV_WSGRAPHICBITMAPANIMATION_H__) -#define __T_GRAPHICS_WSERV_WSGRAPHICBITMAPANIMATION_H__ - -#include -#include "T_DataWsGraphic.h" -/** - * Test Active Notification class - * - */ -class CT_DataWsGraphicBitmapAnimation : public CT_DataWsGraphic - { -public: - /** - * Two phase constructor - */ - static CT_DataWsGraphicBitmapAnimation* NewL(); - - /** - * Public destructor - */ - ~CT_DataWsGraphicBitmapAnimation(); - - /** - * Return a pointer to the object that the data wraps - * - * \return pointer to the object that the data wraps - */ - virtual TAny* GetObject() { return iWsGraphicBitmapAnimation; } - - /** - * Set the object that the data wraps - * - * @param aObject object that the wrapper is testing - * - */ - virtual void SetObjectL(TAny* aAny); - - /** - * The object will no longer be owned by this - * - * @leave KErrNotSupported if the the function is not supported - */ - virtual void DisownObjectL(); - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - -protected: - /** - * Protected constructor. First phase construction - */ - CT_DataWsGraphicBitmapAnimation(); - - /** - * Second phase construction - */ - void ConstructL(); - - //from CT_DataWsGraphic - CWsGraphic* GetWsGraphic() const {return iWsGraphicBitmapAnimation;}; - TInt Share(TSecureId aClientId); - TInt ShareGlobally(); - TInt UnShare(TSecureId aClientId); - TInt UnShareGlobally(); - -private: - void DoCmdDestroy(); - void DoCmdNewL(const TDesC& aSection); - void Util_StartAnimTesterClientL(const TDesC& aSection); - void Util_CloseAnimTesterClientL(const TDesC& aSection); - -private: - CWsGraphicBitmapAnimation* iWsGraphicBitmapAnimation; - }; - -#endif /* __T_GRAPHICS_WSERV_WSGRAPHICBITMAPANIMATION_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/inc/T_DataWsGraphicFrameRate.h --- a/graphicsapitest/graphicssvs/wserv/inc/T_DataWsGraphicFrameRate.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,57 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -#if (!defined __T_DATA_WS_GRAPHIC_FRAME_RATE_H__) -#define __T_DATA_WS_GRAPHIC_FRAME_RATE_H__ - -// User Includes -#include "T_DataWsGraphicMsgFixedBase.h" - -// EPOC Includes -#include - -/** - * Test Active Notification class - * - */ -class CT_DataWsGraphicFrameRate : public CT_DataWsGraphicMsgFixedBase - { -public: - CT_DataWsGraphicFrameRate(); - ~CT_DataWsGraphicFrameRate(); - - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - - virtual TAny* GetObject(); - -protected: - // CT_DataWsGraphicMsgFixedBase implementation - virtual TWsGraphicMsgFixedBase* GetWsGraphicMsgFixedBase() const; - -private: - /** - * Helper methods - */ - void DestroyData(); - void DoCmdnew(); - -private: - TWsGraphicFrameRate* iWsGraphicFrameRate; - }; - -#endif /* __T_DATA_WS_GRAPHIC_FRAME_RATE_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/inc/T_DataWsGraphicMsgBuf.h --- a/graphicsapitest/graphicssvs/wserv/inc/T_DataWsGraphicMsgBuf.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,101 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -#if (!defined __T_GRAPHICS_WSERV_WSGRAPHICMSGBUF_H__) -#define __T_GRAPHICS_WSERV_WSGRAPHICMSGBUF_H__ - -// User Includes -#include "DataWrapperBase.h" - -// EPOC Includes -#include -#include - -/** - * Test Active Notification class - * - */ -class CT_DataWsGraphicMsgBuf : public CDataWrapperBase - { - -public: - /** - * Two phase constructor - */ - static CT_DataWsGraphicMsgBuf* NewL(); - - /** - * Public destructor - */ - ~CT_DataWsGraphicMsgBuf(); - - /** - * Return a pointer to the object that the data wraps - * - * \return pointer to the object that the data wraps - */ - virtual TAny* GetObject() { return iWsGraphicMsgBuf; } - - /** - * Set the object that the data wraps - * - * @param aObject object that the wrapper is testing - * - */ - virtual void SetObjectL(TAny* aAny); - - /** - * The object will no longer be owned by this - * - * @leave KErrNotSupported if the the function is not supported - */ - virtual void DisownObjectL(); - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - -protected: - /** - * Protected constructor. First phase construction - */ - CT_DataWsGraphicMsgBuf(); - - /** - * Second phase construction - */ - void ConstructL(); - -private: - /** - * Helper methods - */ - void DestroyData(); - void DoCmdnew(); - void DoCmdClose(); - void DoCmdCleanupClosePushL(); - void DoCmdAppendL(const TDesC& aSection); - void DoCmdRemove(const TDesC& aSection); - void DoCmdCount(const TDesC& aSection); - void DoCmdTypeId(const TDesC& aSection); - void DoCmdDataL(const TDesC& aSection); - void DoCmdGetFixedMsg(const TDesC& aSection); - void DoCmdPckg(); - -private: - RWsGraphicMsgBuf* iWsGraphicMsgBuf; - }; - -#endif /* __T_GRAPHICS_WSERV_WSGRAPHICMSGBUF_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/inc/T_DataWsGraphicMsgFixedBase.h --- a/graphicsapitest/graphicssvs/wserv/inc/T_DataWsGraphicMsgFixedBase.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,54 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -#if (!defined __T_DATA_WS_GRAPHIC_MSG_FIXED_BASE_H__) -#define __T_DATA_WS_GRAPHIC_MSG_FIXED_BASE_H__ - -// User Includes -#include "DataWrapperBase.h" - -/** - * Test Active Notification class - * - */ -class CT_DataWsGraphicMsgFixedBase : public CDataWrapperBase - { -public: - ~CT_DataWsGraphicMsgFixedBase(); - - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - TPtrC8 GetPckg(); - -protected: - CT_DataWsGraphicMsgFixedBase(); - - virtual TWsGraphicMsgFixedBase* GetWsGraphicMsgFixedBase() const = 0; - -private: - /** - * Helper methods - */ - void DoCmdPckg(); - void DoCmdSize(const TDesC& aSection); - void DoCmdTypeId(const TDesC& aSection); - -private: - TPtrC8 iPckg; - }; - -#endif /* __T_DATA_WS_GRAPHIC_MSG_FIXED_BASE_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/inc/T_DataWsPointerCursor.h --- a/graphicsapitest/graphicssvs/wserv/inc/T_DataWsPointerCursor.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,86 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -#if (!defined __T_GRAPHICS_WSERV_WSPOINTERCURSOR_H__) -#define __T_GRAPHICS_WSERV_WSPOINTERCURSOR_H__ - -// User Includes -#include "T_DataWsSpriteBase.h" - -/** - * Test Active Notification class - * - */ -class CT_DataWsPointerCursor : public CT_DataWsSpriteBase - { -public: - /** - * Two phase constructor - */ - static CT_DataWsPointerCursor* NewL(); - - /** - * Public destructor - */ - ~CT_DataWsPointerCursor(); - - /** - * Return a pointer to the object that the data wraps - * - * \return pointer to the object that the data wraps - */ - virtual TAny* GetObject() { return iWsPointerCursor; } - - /** - * Set the object that the data wraps - * - * @param aObject object that the wrapper is testing - * - */ - virtual void SetObjectL(TAny* aAny); - - /** - * The object will no longer be owned by this - * - * @leave KErrNotSupported if the the function is not supported - */ - virtual void DisownObjectL(); - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - -protected: - /** - * Protected constructor. First phase construction - */ - CT_DataWsPointerCursor(); - - /** - * Second phase construction - */ - void ConstructL(); - - virtual RWsSpriteBase* GetWsSpriteBase() const{return iWsPointerCursor;} -private: - void DestroyData(); - void DoCmdNewL(const TDesC& aSection); - void DoCmdConstructL(const TDesC& aSection); - -private: - RWsPointerCursor* iWsPointerCursor; - }; - -#endif /* __T_GRAPHICS_WSERV_WSPOINTERCURSOR_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/inc/T_DataWsPriorityKeyEvent.h --- a/graphicsapitest/graphicssvs/wserv/inc/T_DataWsPriorityKeyEvent.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,94 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -#if (!defined __T_GRAPHICS_WSERV_PRIORITYKEYEVENT_H__) -#define __T_GRAPHICS_WSERV_PRIORITYKEYEVENT_H__ - -// User Includes -#include "DataWrapperBase.h" - -// EPOC Includes -#include - -/** - * Test Active Notification class - * - */ -class CT_DataWsPriorityKeyEvent : public CDataWrapperBase - { -public: - /** - * Two phase constructor - */ - static CT_DataWsPriorityKeyEvent* NewL(); - - /** - * Public destructor - */ - ~CT_DataWsPriorityKeyEvent(); - - /** - * Return a pointer to the object that the data wraps - * - * \return pointer to the object that the data wraps - */ - virtual TAny* GetObject() { return iWsPriorityKeyEvent; } - - /** - * Set the object that the data wraps - * - * @param aObject object that the wrapper is testing - * - */ - virtual void SetObjectL(TAny* aAny); - - /** - * The object will no longer be owned by this - * - * @leave KErrNotSupported if the the function is not supported - */ - virtual void DisownObjectL(); - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - -protected: - /** - * Protected constructor. First phase construction - */ - CT_DataWsPriorityKeyEvent(); - - /** - * Second phase construction - */ - void ConstructL(); - -private: - /** - * Helper methods - */ - void DestroyData(); - - void DoCmdnew(); - void DoCmdHandle(const TDesC& aEntry); - void DoCmdKey(const TDesC& aEntry); - void DoCmdSetHandle(const TDesC& aEntry); - -private: - TWsPriorityKeyEvent* iWsPriorityKeyEvent; - }; - -#endif /* __T_GRAPHICS_WSERV_PRIORITYKEYEVENT_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/inc/T_DataWsRedrawEvent.h --- a/graphicsapitest/graphicssvs/wserv/inc/T_DataWsRedrawEvent.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,93 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -#if (!defined __T_GRAPHICS_WSERV_REDRAWEVENT_H__) -#define __T_GRAPHICS_WSERV_REDRAWEVENT_H__ - -// User Includes -#include "DataWrapperBase.h" - -// EPOC Includes -#include - -/** - * Test Active Notification class - * - */ -class CT_DataWsRedrawEvent : public CDataWrapperBase - { -public: - /** - * Two phase constructor - */ - static CT_DataWsRedrawEvent* NewL(); - - /** - * Public destructor - */ - ~CT_DataWsRedrawEvent(); - - /** - * Return a pointer to the object that the data wraps - * - * @return pointer to the object that the data wraps - */ - virtual TAny* GetObject() { return iWsRedrawEvent; } - - /** - * Set the object that the data wraps - * - * @param aObject object that the wrapper is testing - * - */ - virtual void SetObjectL(TAny* aAny); - - /** - * The object will no longer be owned by this - * - * @leave KErrNotSupported if the the function is not supported - */ - virtual void DisownObjectL(); - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - -protected: - /** - * Protected constructor. First phase construction - */ - CT_DataWsRedrawEvent(); - - /** - * Second phase construction - */ - void ConstructL(); - -private: - /** - * Helper methods - */ - void DestroyData(); - - void DoCmdnew(); - void DoCmdHandle(const TDesC& aEntry); - void DoCmdRect(const TDesC& aEntry); - -private: - TWsRedrawEvent* iWsRedrawEvent; - }; - -#endif /* __T_GRAPHICS_WSERV_REDRAWEVENT_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/inc/T_DataWsScreenDevice.h --- a/graphicsapitest/graphicssvs/wserv/inc/T_DataWsScreenDevice.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,94 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -#if (!defined __T_GRAPHICS_WSERV_SCREENDEVICE_H__) -#define __T_GRAPHICS_WSERV_SCREENDEVICE_H__ - -// User Includes -#include "T_DataBitmapDevice.h" -#include "T_DataWsClientClass.h" - - -/** - * Test Active Notification class - * - */ -class CT_DataWsScreenDevice : public CT_DataBitmapDevice, public CT_DataWsClientClass - { -public: - static CT_DataWsScreenDevice* NewL(); - - ~CT_DataWsScreenDevice(); - - virtual TAny* GetObject(); - virtual void SetObjectL(TAny* aAny); - - virtual void DisownObjectL(); - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - -protected: - CT_DataWsScreenDevice(); - void ConstructL(); - - virtual MWsClientClass* GetClientClass() const; - virtual MGraphicsDeviceMap* GetGraphicsDeviceMap() const; - virtual CGraphicsDevice* GetGraphicsDevice() const; - virtual CBitmapDevice* GetBitmapDevice() const; - -private: - /** - * Helper methods - */ - void DestroyData(); - void DoCmdnewL(const TDesC& aSection); - void DoCmdDestructor(); - void DoCmdConstruct(const TDesC& aSection); - void DoCmdCopyScreenToBitmapL(const TDesC& aSection); - void DoCmdCreateContextL(const TDesC& aSection); - void DoCmdCurrentScreenMode(const TDesC& aSection); - void DoCmdGetCurrentScreenModeScale(const TDesC& aSection); - void DoCmdGetCurrentScreenModeScaledOrigin(const TDesC& aSection); - void DoCmdGetDefaultScreenModeOrigin(const TDesC& aSection); - void DoCmdGetDefaultScreenSizeAndRotation(const TDesC& aSection); - void DoCmdGetFontByIdL(const TDesC& aSection); - void DoCmdGetRotationsListL(const TDesC& aSection); - void DoCmdGetScreenModeDisplayMode(const TDesC& aSection); - void DoCmdGetScreenModeOrigin(const TDesC& aSection); - void DoCmdGetScreenModeScale(const TDesC& aSection); - void DoCmdGetScreenModeScaledOrigin(const TDesC& aSection); - void DoCmdGetScreenModeSizeAndRotation(const TDesC& aSection); - void DoCmdGetScreenNumber(const TDesC& aSection); - void DoCmdGetScreenSizeModeListL(const TDesC& aSection); - void DoCmdNumScreenModes(const TDesC& aSection); - void DoCmdPointerRect(const TDesC& aSection); - void DoCmdRectCompare(const TDesC& aSection); - void DoCmdScreenModeEnforcement(const TDesC& aSection); - void DoCmdSetAppScreenMode(const TDesC& aSection); - void DoCmdSetBackLight(const TDesC& aSection); - void DoCmdSetCustomPaletteL(const TDesC& aSection); - void DoCmdSetScreenSizeAndRotation(const TDesC& aSection); - - void DoCmdcheckPixels(const TDesC& aSection); - void DoCmdcheckLineColor(const TDesC& aSection); - void DoCmdcheckRectColor(const TDesC& aSection); - -private: - CWsScreenDevice* iWsScreenDevice; - }; - -#endif /* __T_GRAPHICS_WSERV_SCREENDEVICE_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/inc/T_DataWsSession.h --- a/graphicsapitest/graphicssvs/wserv/inc/T_DataWsSession.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,168 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -#if (!defined __T_GRAPHICS_WSERV_SESSION_H__) -#define __T_GRAPHICS_WSERV_SESSION_H__ - -// User Includes -#include "DataWrapperBase.h" -#include "T_DataWsClientClass.h" - -/** - * Test Active Notification class - * - */ -class CT_DataWsSession : public CDataWrapperBase, public CT_DataWsClientClass - { -public: - static CT_DataWsSession* NewL(); - - ~CT_DataWsSession(); - - virtual TAny* GetObject() { return iWsSession; } - - virtual void SetObjectL(TAny* aAny); - - virtual void DisownObjectL(); - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - -protected: - CT_DataWsSession(); - - void ConstructL(); - - void RunL(CActive* aActive, TInt aIndex); - void DoCancel(CActive* aActive, TInt aIndex); - - virtual MWsClientClass* GetClientClass() const; - -private: - /** - * Helper methods - */ - void DestroyData(); - void DoCmdnew(); - void DoCmdConnectL(const TDesC& aSection); - void DoCmdClose(); - void DoCmdVersion(const TDesC& aSection); - void DoCmdSetHotKey(const TDesC& aSection); - void DoCmdClearHotKeys(const TDesC& aSection); - void DoCmdRestoreDefaultHotKey(const TDesC& aSection); - void DoCmdEventReady(const TDesC& aSection, TInt aAsyncErrorIndex); - void DoCmdEventReadyCancel(); - void DoCmdGetEventL(const TDesC& aSection); - void DoCmdPurgePointerEvents(); - void DoCmdRedrawReady(const TDesC& aSection, TInt aAsyncErrorIndex); - void DoCmdRedrawReadyCancel(); - void DoCmdGetRedrawL(const TDesC& aSection); - void DoCmdPriorityKeyReady(const TDesC& aSection, TInt aAsyncErrorIndex); - void DoCmdPriorityKeyReadyCancel(); - void DoCmdGetPriorityKeyL(const TDesC& aSection); - void DoCmdFlush(); - void DoCmdSetAutoFlush(const TDesC& aSection); - void DoCmdSetKeyboardRepeatRate(const TDesC& aSection); - void DoCmdGetKeyboardRepeatRate(const TDesC& aSection); - void DoCmdGetDoubleClickSettings(const TDesC& aSection); - void DoCmdSetDoubleClick(const TDesC& aSection); - void DoCmdNumWindowGroups(const TDesC& aSection); - void DoCmdWindowGroupListL(const TDesC& aSection); - void DoCmdGetFocusWindowGroup(const TDesC& aSection); - void DoCmdGetDefaultOwningWindow(const TDesC& aSection); - void DoCmdSetWindowGroupOrdinalPosition(const TDesC& aSection); - void DoCmdGetWindowGroupClientThreadId(const TDesC& aSection); - void DoCmdGetWindowGroupHandle(const TDesC& aSection); - void DoCmdGetWindowGroupOrdinalPriority(const TDesC& aSection); - void DoCmdGetWindowGroupNameFromIdentifier(const TDesC& aSection); - void DoCmdFindWindowGroupIdentifier(const TDesC& aSection); - void DoCmdFetchMessage(const TDesC& aSection); - void DoCmdSetShadowVector(const TDesC& aSection); - void DoCmdShadowVector(const TDesC& aSection); - void DoCmdSetBackgroundColor(const TDesC& aSection); - void DoCmdGetBackgroundColor(const TDesC& aSection); - void DoCmdSetSystemPointerCursor(const TDesC& aSection); - void DoCmdClearSystemPointerCursor(const TDesC& aSection); - void DoCmdClaimSystemPointerCursorList(); - void DoCmdFreeSystemPointerCursorList(); - void DoCmdSetCustomTextCursorL(const TDesC& aSection); - void DoCmdResourceCount(const TDesC& aSection); - void DoCmdPasswordEntered(); - void DoCmdComputeMode(const TDesC& aSection); - void DoCmdHeapCount(const TDesC& aSection); - void DoCmdSetModifierState(const TDesC& aSection); - void DoCmdGetModifierState(const TDesC& aSection); - void DoCmdRequestOffEventsL(const TDesC& aSection); - void DoCmdGetDefModeMaxNumColors(const TDesC& aSection); - void DoCmdGetColorModeListL(const TDesC& aSection); - void DoCmdSetPointerCursorArea(const TDesC& aSection); - void DoCmdPointerCursorArea(const TDesC& aSection); - void DoCmdSetPointerCursorMode(const TDesC& aSection); - void DoCmdSetClientCursorMode(const TDesC& aSection); - void DoCmdPointerCursorMode(const TDesC& aSection); - void DoCmdSetDefaultSystemPointerCursor(const TDesC& aSection); - void DoCmdClearDefaultSystemPointerCursor(); - void DoCmdSetPointerCursorPosition(const TDesC& aSection); - void DoCmdPointerCursorPosition(const TDesC& aSection); - void DoCmdSetDefaultFadingParameters(const TDesC& aSection); - void DoCmdPrepareForSwitchOff(); - void DoCmdSetBufferSizeL(const TDesC& aSection); - void DoCmdSetMaxBufferSizeL(const TDesC& aSection); - void DoCmdSetSystemFaded(const TDesC& aSection); - void DoCmdSetFocusScreen(const TDesC& aSection); - void DoCmdGetFocusScreen(const TDesC& aSection); - void DoCmdClearAllRedrawStores(); - void DoCmdLogCommand(const TDesC& aSection); - void DoCmdLogMessage(const TDesC& aSection); - void DoCmdNumberOfScreens(const TDesC& aSection); - void DoCmdSimulateRawEvent(const TDesC& aSection); - void DoCmdSimulateKeyEvent(const TDesC& aSection); - - // CActiveCallback support - void RunEventReady(const TInt aIndex); - void DoCancelEventReady(const TInt aIndex); - - void RunPriorityKeyReady(const TInt aIndex); - void DoCancelPriorityKeyReady(const TInt aIndex); - - void RunRedrawReady(const TInt aIndex); - void DoCancelRedrawReady(const TInt aIndex); - -private: - RWsSession* iWsSession; - /** vaiable that temporarily stores value of server resource count that is set - * by iSession->ResourceCount() - */ - TInt iResourceCount; - TInt iNumWinGroup; - TInt iColorModeCount; - TInt iWindowGroupIdentifier; - - /** Active object for EventReady async operation */ - CActiveCallback* iActiveEventReady; - - /** Active object for PriorityKeyReady async operation */ - CActiveCallback* iActivePriorityKeyReady; - - /** Active object for RedrawReady async operation */ - CActiveCallback* iActiveRedrawReady; - - /** Keyboard repeat rate data */ - TTimeIntervalMicroSeconds32 iKeyboardRepeateRateInitialTime; - TTimeIntervalMicroSeconds32 iKeyboardRepeateRateTime; - }; - -#endif /* __T_GRAPHICS_WSERV_SESSION_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/inc/T_DataWsSprite.h --- a/graphicsapitest/graphicssvs/wserv/inc/T_DataWsSprite.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,86 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -#if (!defined __T_GRAPHICS_WSERV_WSSPRITE_H__) -#define __T_GRAPHICS_WSERV_WSSPRITE_H__ - -// User Includes -#include "T_DataWsSpriteBase.h" -/** - * Test Active Notification class - * - */ -class CT_DataWsSprite : public CT_DataWsSpriteBase - { -public: - /** - * Two phase constructor - */ - static CT_DataWsSprite* NewL(); - - /** - * Public destructor - */ - ~CT_DataWsSprite(); - - /** - * Return a pointer to the object that the data wraps - * - * \return pointer to the object that the data wraps - */ - virtual TAny* GetObject() { return iWsSprite; } - - /** - * Set the object that the data wraps - * - * @param aObject object that the wrapper is testing - * - */ - virtual void SetObjectL(TAny* aAny); - - /** - * The object will no longer be owned by this - * - * @leave KErrNotSupported if the the function is not supported - */ - virtual void DisownObjectL(); - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - -protected: - /** - * Protected constructor. First phase construction - */ - CT_DataWsSprite(); - - /** - * Second phase construction - */ - void ConstructL(); - - virtual RWsSpriteBase* GetWsSpriteBase() const{return iWsSprite;} -private: - void DestroyData(); - void DoCmdNewL(const TDesC& aSection); - void DoCmdConstructL(const TDesC& aSection); - void DoCmdSetPosition(const TDesC& aSection); - -private: - RWsSprite* iWsSprite; - }; - -#endif /* __T_GRAPHICS_WSERV_WSSPRITE_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/inc/T_DataWsSpriteBase.h --- a/graphicsapitest/graphicssvs/wserv/inc/T_DataWsSpriteBase.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,54 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -#if (!defined __T_GRAPHICS_WSERV_WSSPRITEBASE_H__) -#define __T_GRAPHICS_WSERV_WSSPRITEBASE_H__ - -// User Includes -#include "DataWrapperBase.h" -#include "T_DataWsClientClass.h" -/** - * Test Active Notification class - * - */ -class CT_DataWsSpriteBase : public CDataWrapperBase, public CT_DataWsClientClass - { -public: - virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); - -protected: - /** - * Protected constructor. First phase construction - */ - CT_DataWsSpriteBase(); - - virtual MWsClientClass* GetClientClass() const; - virtual RWsSpriteBase* GetWsSpriteBase() const=0; -private: - /** - * Helper methods - */ - void DoCmdActivate(); - void DoCmdAppendMemberL(const TDesC& aSection); - void DoCmdUpdateMemberL(const TDesC& aSection); - void DoCmdClose(); - - - }; - -#endif /* __T_GRAPHICS_WSERV_WSSPRITEBASE_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/inc/T_GraphicsWservAPIServer.h --- a/graphicsapitest/graphicssvs/wserv/inc/T_GraphicsWservAPIServer.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,48 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -#if (!defined __T_GRAPHICS_WSERV_API_SERVER_H__) -#define __T_GRAPHICS_WSERV_API_SERVER_H__ - -// User Include -#include "TestServerBase.h" - -class CT_GraphicsWservAPIServer : public CTestServerBase - { -private: - class CT_GraphicsWservAPIBlock : public CTestBlockController - { - public: - inline CT_GraphicsWservAPIBlock(); - inline ~CT_GraphicsWservAPIBlock(); - - CDataWrapper* CreateDataL(const TDesC& aData); - }; - -public: - inline CT_GraphicsWservAPIServer(); - inline ~CT_GraphicsWservAPIServer(); - - static CT_GraphicsWservAPIServer* NewL(); - - inline CTestBlockController* CreateTestBlock(); - }; - -#include "T_GraphicsWservAPIServer.inl" - -#endif /* __T_GRAPHICS_WSERV_API_SERVER_H__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/inc/T_GraphicsWservAPIServer.inl --- a/graphicsapitest/graphicssvs/wserv/inc/T_GraphicsWservAPIServer.inl Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,48 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_GraphicsWservAPIServer inline functions -*/ - - -/*@{*/ -/*@}*/ - -inline CT_GraphicsWservAPIServer::CT_GraphicsWservAPIBlock::CT_GraphicsWservAPIBlock() - { - } - -inline CT_GraphicsWservAPIServer::CT_GraphicsWservAPIBlock::~CT_GraphicsWservAPIBlock() - { - } - -inline CT_GraphicsWservAPIServer::CT_GraphicsWservAPIServer() - { - } - -inline CT_GraphicsWservAPIServer::~CT_GraphicsWservAPIServer() - { - } - -inline CTestBlockController* CT_GraphicsWservAPIServer::CreateTestBlock() - { - return new CT_GraphicsWservAPIBlock(); - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/inc/T_RAnimChild.h --- a/graphicsapitest/graphicssvs/wserv/inc/T_RAnimChild.h Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,53 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -#ifndef TESTANIM_H -#define TESTANIM_H - -// INCLUDES -#include -#include -#include "w32std.h" - -// CLASS DECLARATION - -/** -* CTestAnim -* -*/ -class T_RAnimChild : public RAnim -{ -public: // Constructors and destructor - T_RAnimChild(); - T_RAnimChild(RAnimDll &aDll); - virtual ~T_RAnimChild(); - - TInt Construct(const RWindowBase &aDevice, TInt aType, const TDesC8 &aParams); - TInt Construct(const RWindowBase &aDevice, TInt aType, const TDesC8 &aParams, const TIpcArgs& aIpcArgs); - TInt Construct(const RWsSprite &aDevice, TInt aType, const TDesC8 &aParams); - TInt Construct(const RWsSprite &aDevice, TInt aType, const TDesC8 &aParams, const TIpcArgs& aIpcArgs); - TInt CommandReply(TInt aOpcode); - TInt CommandReply(TInt aOpcode, const TPtrC8 &aArgs); - TInt CommandReply(TInt aOpcode, const TDesC8& aArgs, const TIpcArgs& aIpcArgs); - void Command(TInt aOpcode, const TPtrC8 &aArgs); - void Command(TInt aOpcode); - void AsyncCommandReply(TRequestStatus& aRequestStatus,TInt aOpcode, const TIpcArgs& aIpcArgs); -}; - -#endif // TESTANIM_H - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/pkg/t_wservapi.pkg --- a/graphicsapitest/graphicssvs/wserv/pkg/t_wservapi.pkg Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,111 +0,0 @@ -; -; Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -; All rights reserved. -; This component and the accompanying materials are made available -; under the terms of "Eclipse Public License v1.0" -; which accompanies this distribution, and is available -; at the URL "http://www.eclipse.org/legal/epl-v10.html". -; -; Initial Contributors: -; Nokia Corporation - initial contribution. -; -; Contributors: -; -; Description: -; -; -; Install file for T_FBServAPI.exe -; - -; Languages - -&EN - -; Installation header -; UID is the app's UID -#{"T_WServAPI"},(0x20003721),1,0,0 - -;%{"Vendor-EN"} -;:"Symbian" - -; Localised Vendor name -%{"Nokia"} - -; Unique Vendor name -:"Nokia" - - -"T_GraphicsWServAPI.exe"-"!:\sys\bin\T_GraphicsWServAPI.exe" - -"t_animplugin.dll"-"!:\sys\bin\t_animplugin.dll" -"TWsGraphicShare.exe"-"!:\sys\bin\TWsGraphicShare.exe" -"TWsGraphicUnshare.exe"-"!:\sys\bin\TWsGraphicUnshare.exe" - -"t_graphics.ini"-"!:\graphics\t_graphics.ini" -"twservapi.bat"-"!:\graphics\twservapi.bat" -"t_graphics.tcs"-"!:\graphics\t_graphics.tcs" -"t_graphics_panic.tcs"-"!:\graphics\t_graphics_panic.tcs" -"graphics-wserv-publicapi.script"-"!:\graphics\graphics-wserv-publicapi.script" -"graphics-wserv-backedupwindow-publicapi.script"-"!:\graphics\graphics-wserv-backedupwindow-publicapi.script" -"graphics-wserv-blankwindow-publicapi.script"-"!:\graphics\graphics-wserv-blankwindow-publicapi.script" - -"GRAPHICS-WSERV-DirectScreenAccess-PublicApi.script"-"!:\graphics\GRAPHICS-WSERV-DirectScreenAccess-PublicApi.script" -"GRAPHICS-WSERV-DsaSession-PublicApi.script"-"!:\graphics\GRAPHICS-WSERV-DsaSession-PublicApi.script" -"graphics-wserv-events-publicapi.script"-"!:\graphics\graphics-wserv-events-publicapi.script" -"graphics-wserv-session-publicapi.script"-"!:\graphics\graphics-wserv-session-publicapi.script" -"graphics-wserv-soundplugin-publicapi.script"-"!:\graphics\graphics-wserv-soundplugin-publicapi.script" -"graphics-wserv-window-publicapi.script"-"!:\graphics\graphics-wserv-window-publicapi.script" -"graphics-wserv-windowgc-publicapi.script"-"!:\graphics\graphics-wserv-windowgc-publicapi.script" -"graphics-wserv-windowgroup-publicapi.script"-"!:\graphics\graphics-wserv-windowgroup-publicapi.script" -"graphics-wserv-wsbitmap-publicapi.script"-"!:\graphics\graphics-wserv-wsbitmap-publicapi.script" -"graphics-wserv-wsgraphicbitmap-publicapi.script"-"!:\graphics\graphics-wserv-wsgraphicbitmap-publicapi.script" -"graphics-wserv-wsgraphicmsgbuf-publicapi.script"-"!:\graphics\graphics-wserv-wsgraphicmsgbuf-publicapi.script" -"graphics-wserv-wsscreendevice-publicapi.script"-"!:\graphics\graphics-wserv-wsscreendevice-publicapi.script" -"graphics-wserv-wssprite-publicapi.script"-"!:\graphics\graphics-wserv-wssprite-publicapi.script" -"graphics-wserv-wspointercursor-publicapi.script"-"!:\graphics\graphics-wserv-wspointercursor-publicapi.script" -"graphics-wserv-wsgraphicbitmapanimation-publicapi.script"-"!:\graphics\graphics-wserv-wsgraphicbitmapanimation-publicapi.script" -"graphics-wserv-frame-publicapi.script"-"!:\graphics\graphics-wserv-frame-publicapi.script" -"graphics-wserv-anim-publicapi.script"-"!:\graphics\graphics-wserv-anim-publicapi.script" -"graphics-wserv-animdll-publicapi.script"-"!:\graphics\graphics-wserv-animdll-publicapi.script" -"graphics-wserv-animgeneralfunctions-publicapi.script"-"!:\graphics\graphics-wserv-animgeneralfunctions-publicapi.script" -"graphics-wserv-animspritefunctions-publicapi.script"-"!:\graphics\graphics-wserv-animspritefunctions-publicapi.script" -"graphics-wserv-animgfwe-publicapi.script"-"!:\graphics\graphics-wserv-animgfwe-publicapi.script" -"graphics-wserv-animwindowfunctions-publicapi.script"-"!:\graphics\graphics-wserv-animwindowfunctions-publicapi.script" - -"graphics-wserv-backedupwindow-publicapi.ini"-"!:\graphics\graphics-wserv-backedupwindow-publicapi.ini" -"graphics-wserv-blankwindow-publicapi.ini"-"!:\graphics\graphics-wserv-blankwindow-publicapi.ini" - -"GRAPHICS-WSERV-DirectScreenAccess-PublicApi.ini"-"!:\graphics\GRAPHICS-WSERV-DirectScreenAccess-PublicApi.ini" -"GRAPHICS-WSERV-DsaSession-PublicApi.ini"-"!:\graphics\GRAPHICS-WSERV-DsaSession-PublicApi.ini" -"graphics-wserv-events-publicapi.ini"-"!:\graphics\graphics-wserv-events-publicapi.ini" -"graphics-wserv-session-publicapi.ini"-"!:\graphics\graphics-wserv-session-publicapi.ini" -"graphics-wserv-soundplugin-publicapi.ini"-"!:\graphics\graphics-wserv-soundplugin-publicapi.ini" -"graphics-wserv-window-publicapi.ini"-"!:\graphics\graphics-wserv-window-publicapi.ini" -"graphics-wserv-windowgc-publicapi.ini"-"!:\graphics\graphics-wserv-windowgc-publicapi.ini" -"graphics-wserv-windowgroup-publicapi.ini"-"!:\graphics\graphics-wserv-windowgroup-publicapi.ini" -"graphics-wserv-wsbitmap-publicapi.ini"-"!:\graphics\graphics-wserv-wsbitmap-publicapi.ini" -"graphics-wserv-wsgraphicbitmap-publicapi.ini"-"!:\graphics\graphics-wserv-wsgraphicbitmap-publicapi.ini" -"graphics-wserv-wsgraphicmsgbuf-publicapi.ini"-"!:\graphics\graphics-wserv-wsgraphicmsgbuf-publicapi.ini" -"graphics-wserv-wsscreendevice-publicapi.ini"-"!:\graphics\graphics-wserv-wsscreendevice-publicapi.ini" -"graphics-wserv-wssprite-publicapi.ini"-"!:\graphics\graphics-wserv-wssprite-publicapi.ini" -"graphics-wserv-wspointercursor-publicapi.ini"-"!:\graphics\graphics-wserv-wspointercursor-publicapi.ini" -"graphics-wserv-wsgraphicbitmapanimation-publicapi.ini"-"!:\graphics\graphics-wserv-wsgraphicbitmapanimation-publicapi.ini" -"graphics-wserv-frame-publicapi.ini"-"!:\graphics\graphics-wserv-frame-publicapi.ini" -"graphics-wserv-anim-publicapi.ini"-"!:\graphics\graphics-wserv-anim-publicapi.ini" -"graphics-wserv-animdll-publicapi.ini"-"!:\graphics\graphics-wserv-animdll-publicapi.ini" -"graphics-wserv-animgeneralfunctions-publicapi.ini"-"!:\graphics\graphics-wserv-animgeneralfunctions-publicapi.ini" -"graphics-wserv-animspritefunctions-publicapi.ini"-"!:\graphics\graphics-wserv-animspritefunctions-publicapi.ini" -"graphics-wserv-animgfwe-publicapi.ini"-"!:\graphics\graphics-wserv-animgfwe-publicapi.ini" -"graphics-wserv-animwindowfunctions-publicapi.ini"-"!:\graphics\graphics-wserv-animwindowfunctions-publicapi.ini" - -"wserv\test_board.mbm"-"!:\graphics\wserv\test_board.mbm" -"wserv\test_mask.mbm"-"!:\graphics\wserv\test_mask.mbm" -"wserv\test_alpha.mbm"-"!:\graphics\wserv\test_alpha.mbm" -"wserv\test_rwssprite_bitmap.mbm"-"!:\graphics\wserv\test_rwssprite_bitmap.mbm" -"wserv\WsGraphicBitmapAnimation.mbm"-"!:\graphics\wserv\WsGraphicBitmapAnimation.mbm" -"wserv\testfontws.gdr"-"!:\graphics\wserv\testfontws.gdr" - -; Required files -; None - -; Component .sis files -; None diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/pkg/twservapi.bat --- a/graphicsapitest/graphicssvs/wserv/pkg/twservapi.bat Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,17 +0,0 @@ -@rem -@rem Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -@rem All rights reserved. -@rem This component and the accompanying materials are made available -@rem under the terms of "Eclipse Public License v1.0" -@rem which accompanies this distribution, and is available -@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". -@rem -@rem Initial Contributors: -@rem Nokia Corporation - initial contribution. -@rem -@rem Contributors: -@rem -@rem Description: -@rem - -testexecute \graphics\graphics-wserv-publicapi diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-Anim-PublicAPI.script --- a/graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-Anim-PublicAPI.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,798 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// -//! @file -//! @SYMTestSuiteName GRAPHICS-WSERV-Anim-PublicApi -//! @SYMScriptTestEnvironment This test script requires a basic ROM. - -// **************************************************************************** -// T_RAnimChild (Inherited to test protected members of RAnim) -// **************************************************************************** -///////////////////////////////////////////////////////////////////// -// GRAPHICS-WSERV-Anim-PublicAPI.script -// -// Tests all public elements of the RAnim -// classes as a means of confidence that the APIs work as expected. - - -// -// The purpose is to provide a regression test suite of PublishedAll APIs for RAnim -// The tests are fully automated. -///////////////////////////////////////////////////////////////////// - -LOAD_SUITE T_GraphicsWservAPI -DELAY 1000 - -///////////////////////////////////////////////////////////////////// -// RAnim class -///////////////////////////////////////////////////////////////////// - -START_TESTCASE GRAPHICS-WSERV-Anim-PublicAPI-0001 -//! @SYMTestCaseID GRAPHICS-WSERV-Anim-PublicAPI-0001 -//! @SYMAPI RAnim::RAnim() -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 21-04-2008 -//! @SYMTestCaseDesc Create a RAnim object by default constructor. -//! @SYMTestActions 1. Create RAnim by default constructor. -//! 2. Close RAnim. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults RAnim object was created without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Anim-PublicAPI.ini - CREATE_OBJECT RAnim anim - COMMAND anim new - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Anim-PublicAPI-0001 - -START_TESTCASE GRAPHICS-WSERV-Anim-PublicAPI-0002 -//! @SYMTestCaseID GRAPHICS-WSERV-Anim-PublicAPI-0002 -//! @SYMAPI RAnim::RAnim(RAnimDll{ref}) -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 21-04-2008 -//! @SYMTestCaseDesc Create a RAnim object from a given animation DLL. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create RAnimDll and Load an animation DLL. -//! 3. Create RAnim from this animation DLL. -//! 5. Destroy RAnimDll. -//! 6. Close RWsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults RAnim object was created without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Anim-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - COMMAND ws new - COMMAND ws Connect - COMMAND animdll new GRAPHICS-WSERV-Anim-PublicAPI-0002-0001-new_Command03 - COMMAND animdll Load GRAPHICS-WSERV-Anim-PublicAPI-0002-0001-Load_Command04 - COMMAND anim new GRAPHICS-WSERV-Anim-PublicAPI-0002-0001-new_Command05 - COMMAND animdll Destroy - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Anim-PublicAPI-0002 - -START_TESTCASE GRAPHICS-WSERV-Anim-PublicAPI-0003 -//! @SYMTestCaseID GRAPHICS-WSERV-Anim-PublicAPI-0003 -//! @SYMAPI RAnim::RAnim(); -//! RAnim::Close() -//! @SYMAuthor Niandong Qiao -//! @SYMCreationDate 10-03-2008 -//! @SYMTestCaseDesc Create a RAnim object by default constructor, and then close it. -//! @SYMTestActions 1. Create RAnim by default constructor. -//! 2. Close RAnim. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults RAnim object was created and closed without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Anim-PublicAPI.ini - CREATE_OBJECT RAnim anim - COMMAND anim new - COMMAND anim Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Anim-PublicAPI-0003 - -START_TESTCASE GRAPHICS-WSERV-Anim-PublicAPI-0004 -//! @SYMTestCaseID GRAPHICS-WSERV-Anim-PublicAPI-0004 -//! @SYMAPI RAnim::RAnim(); -//! RAnim::Destroy() -//! @SYMAuthor Niandong Qiao -//! @SYMCreationDate 10-03-2008 -//! @SYMTestCaseDesc Create a RAnim object by default constructor, and then destroy it. -//! @SYMTestActions 1. Create RAnim by default constructor. -//! 2. Destroy RAnim. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults RAnim object was created and destroyed without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Anim-PublicAPI.ini - CREATE_OBJECT RAnim anim - COMMAND anim new - COMMAND anim Destroy - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Anim-PublicAPI-0004 - -START_TESTCASE GRAPHICS-WSERV-Anim-PublicAPI-0005 -//! @SYMTestCaseID GRAPHICS-WSERV-Anim-PublicAPI-0005 -//! @SYMAPI RAnim::RAnim(RAnimDll{ref}); -//! RAnim::Close() -//! @SYMAuthor Niandong Qiao -//! @SYMCreationDate 10-03-2008 -//! @SYMTestCaseDesc Create a RAnim object from a given animation DLL, and then close it. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create RAnimDll and Load an animation DLL. -//! 3. Create RAnim from this animation DLL. -//! 4. Close RAnim. -//! 5. Destroy RAnimDll. -//! 6. Close RWsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults RAnim object was created and closed without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Anim-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - COMMAND ws new - COMMAND ws Connect - COMMAND animdll new GRAPHICS-WSERV-Anim-PublicAPI-0005-0001-new_Command03 - COMMAND animdll Load GRAPHICS-WSERV-Anim-PublicAPI-0005-0001-Load_Command04 - COMMAND anim new GRAPHICS-WSERV-Anim-PublicAPI-0005-0001-new_Command05 - COMMAND anim Close - COMMAND animdll Destroy - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Anim-PublicAPI-0005 - -START_TESTCASE GRAPHICS-WSERV-Anim-PublicAPI-0006 -//! @SYMTestCaseID GRAPHICS-WSERV-Anim-PublicAPI-0006 -//! @SYMAPI RAnim::RAnim(RAnimDll{ref}); -//! RAnim::Destroy() -//! @SYMAuthor Niandong Qiao -//! @SYMCreationDate 10-03-2008 -//! @SYMTestCaseDesc Create a RAnim object from a given animation DLL, and then destroy it. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create RAnimDll and Load an animation DLL. -//! 3. Create RAnim from this animation DLL. -//! 4. Destroy RAnim. -//! 5. Destroy RAnimDll. -//! 6. Close RWsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults RAnim object was created and destroyed without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Anim-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - COMMAND ws new - COMMAND ws Connect - COMMAND animdll new GRAPHICS-WSERV-Anim-PublicAPI-0006-0001-new_Command03 - COMMAND animdll Load GRAPHICS-WSERV-Anim-PublicAPI-0006-0001-Load_Command04 - COMMAND anim new GRAPHICS-WSERV-Anim-PublicAPI-0006-0001-new_Command05 - COMMAND anim Destroy - COMMAND animdll Destroy - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Anim-PublicAPI-0006 - -START_TESTCASE GRAPHICS-WSERV-Anim-PublicAPI-0007 -//! @SYMTestCaseID GRAPHICS-WSERV-Anim-PublicAPI-0007 -//! @SYMAPI RAnim::Construct(const RWindowBase{ref}, TInt, const TDesC8{ref}); -//! RAnim::Close() -//! @SYMAuthor Niandong Qiao -//! @SYMCreationDate 10-03-2008 -//! @SYMTestCaseDesc Construct a RAnim object based on a window device, and then close it. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Activate the RWindow. -//! 4. SetAutoFlush to TRUE for the RWsSession. -//! 5. Create a RAnimDll and Load an animation DLL. -//! 6. Create a RAnim from this animation DLL. -//! 7. Complete construction of the RAnim based on created RWindow. -//! 8. Retrieve last command. -//! 8.1 Send ECmdGetLast to plugin with CommandReply. -//! 8.2 Plugin send the parameters(Type,Params) of Construct to client through IPC package of CommandReply. -//! 8.3 Verify is the received IPC package is same with Construct, same Type, same Params. -//! 9. Close RAnim. -//! 10. Destroy RAnimDll. -//! 11. Close RWsSession ,RWindowGroup and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. RAnim Construct returns KErrNone. -//! 2. CommandReply received parameters are same with the parameters that used for Construct RAnim. -//! 3. RAnim object was closed without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Anim-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Anim-PublicAPI-0007-0001-new_command03 - COMMAND wingrp Construct GRAPHICS-WSERV-Anim-PublicAPI-0007-0001-Construct_command04 - COMMAND win new GRAPHICS-WSERV-Anim-PublicAPI-0007-0001-new_command05 - COMMAND win Construct GRAPHICS-WSERV-Anim-PublicAPI-0007-0001-Construct_command06 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-Anim-PublicAPI-0007-0001-SetAutoFlush_command08 - COMMAND animdll new GRAPHICS-WSERV-Anim-PublicAPI-0007-0001-new_Command09 - COMMAND animdll Load GRAPHICS-WSERV-Anim-PublicAPI-0007-0001-Load_Command10 - - COMMAND anim new GRAPHICS-WSERV-Anim-PublicAPI-0007-0001-new_Command11 - COMMAND anim Construct GRAPHICS-WSERV-Anim-PublicAPI-0007-0001-Construct_Command12 - COMMAND anim CommandReply GRAPHICS-WSERV-Anim-PublicAPI-0007-0001-CommandReply_Command13 - COMMAND anim Close - - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Anim-PublicAPI-0007 - -START_TESTCASE GRAPHICS-WSERV-Anim-PublicAPI-0008 -//! @SYMTestCaseID GRAPHICS-WSERV-Anim-PublicAPI-0008 -//! @SYMAPI RAnim::Construct(const RWindowBase{ref}, TInt, const TDesC8{ref}, const TIpcArgs{ref}); -//! RAnim::Destroy() -//! @SYMAuthor Niandong Qiao -//! @SYMCreationDate 10-03-2008 -//! @SYMTestCaseDesc Construct a RAnim object with IPC arguments based on a window device and destroy server side animation object which created by CAnimDll::CreateInstanceL(). -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Activate the RWindow. -//! 4. SetAutoFlush to TRUE for the RWsSession. -//! 5. Create a RAnimDll and Load an animation DLL. -//! 6. Create a RAnim from this animation DLL. -//! 7. Construct RAnim. -//! 7.1 Complete construction of the RAnim with parameters(Type,Params) based on created RWindow object. -//! 7.2 Plugin send the parameters(Type,Params) of Construct back to client through IPC package. -//! 7.3 Verify is the received IPC package is same with the parameters(Type,Params) of Construct. -//! 8. Destroy RAnim. -//! 9. Destroy RAnimDll. -//! 10. Close RWsSession ,RWindowGroup and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. RAnim Construct returns KErrNone. -//! 2. Construct received parameters are same with the parameters that sent to plugin. -//! 3. RAnim object was destroyed without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Anim-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Anim-PublicAPI-0008-0001-new_command03 - COMMAND wingrp Construct GRAPHICS-WSERV-Anim-PublicAPI-0008-0001-Construct_command04 - COMMAND win new GRAPHICS-WSERV-Anim-PublicAPI-0008-0001-new_command05 - COMMAND win Construct GRAPHICS-WSERV-Anim-PublicAPI-0008-0001-Construct_command06 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-Anim-PublicAPI-0008-0001-SetAutoFlush_command08 - COMMAND animdll new GRAPHICS-WSERV-Anim-PublicAPI-0008-0001-new_Command09 - COMMAND animdll Load GRAPHICS-WSERV-Anim-PublicAPI-0008-0001-Load_Command10 - - COMMAND anim new GRAPHICS-WSERV-Anim-PublicAPI-0008-0001-new_Command11 - COMMAND anim Construct GRAPHICS-WSERV-Anim-PublicAPI-0008-0001-Construct_Command12 - COMMAND anim Destroy - - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Anim-PublicAPI-0008 - -START_TESTCASE GRAPHICS-WSERV-Anim-PublicAPI-0009 -//! @SYMTestCaseID GRAPHICS-WSERV-Anim-PublicAPI-0009 -//! @SYMAPI RAnim::Construct(const RWsSprite{ref}, TInt, const TDesC8{ref}) -//! @SYMAuthor Niandong Qiao -//! @SYMCreationDate 10-03-2008 -//! @SYMTestCaseDesc Construct a RAnim object based on a sprite. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Activate the RWindow. -//! 4. SetAutoFlush to TRUE for the RWsSession. -//! 5. Create a RWsSprite with a window server session. -//! 6. Construct the RWsSprite. -//! 7. Create 4 CFbsBitmaps and load bitmaps. -//! 8. Append these CFbsBitmaps to the RWsSprite. -//! 9. Set RWsSprites's position. -//! 10. Activate the RWsSprite. -//! 11. Create a RAnimDll and Load an animation DLL. -//! 12. Create a RAnim from this animation DLL. -//! 13. Complete construction of the RAnim based on created RWsSprite. -//! 14. Retrieve last command. -//! 14.1 Send ECmdGetLast to plugin with CommandReply. -//! 14.2 Plugin send the parameters(Type,Params) of Construct to client through IPC package of CommandReply. -//! 14.3 Verify is the received IPC package is same with Construct, same Type, same Params. -//! 15. Destroy RAnim. -//! 16. Destroy RAnimDll. -//! 17. Delete 4 CFbsBitmaps. -//! 18. Close RWsSprite. -//! 19. Close RWsSession ,RWindowGroup and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. RAnim Construct returns KErrNone. -//! 2. CommandReply received parameters are same with the parameters that used for Construct RAnim. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Anim-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT CFbsBitmap mask1 - CREATE_OBJECT CFbsBitmap bitmap1 - CREATE_OBJECT CFbsBitmap bitmap2 - CREATE_OBJECT CFbsBitmap bitmap3 - CREATE_OBJECT RWsSprite sprite - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-new_command03 - COMMAND wingrp Construct GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-Construct_command04 - COMMAND win new GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-new_command05 - COMMAND win Construct GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-Construct_command06 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-SetAutoFlush_command08 - COMMAND sprite new GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-new_command09 - COMMAND sprite Construct GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-Construct_command10 - COMMAND mask1 new - COMMAND mask1 Load GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-Load_command12 - COMMAND bitmap1 new - COMMAND bitmap1 Load GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-Load_command14 - COMMAND sprite AppendMember GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-AppendMember_command15 - COMMAND bitmap2 new - COMMAND bitmap2 Load GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-Load_command17 - COMMAND sprite AppendMember GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-AppendMember_command18 - COMMAND bitmap3 new - COMMAND bitmap3 Load GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-Load_command20 - COMMAND sprite AppendMember GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-AppendMember_command21 - COMMAND sprite SetPosition GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-SetPosition_command22 - COMMAND sprite Activate - COMMAND animdll new GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-new_Command24 - COMMAND animdll Load GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-Load_Command25 - - COMMAND anim new GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-new_Command26 - COMMAND anim Construct GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-Construct_Command27 - COMMAND anim CommandReply GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-CommandReply_Command28 - COMMAND anim Destroy - - COMMAND animdll Destroy - COMMAND sprite Close - COMMAND mask1 ~ - COMMAND bitmap1 ~ - COMMAND bitmap2 ~ - COMMAND bitmap3 ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Anim-PublicAPI-0009 - -START_TESTCASE GRAPHICS-WSERV-Anim-PublicAPI-0010 -//! @SYMTestCaseID GRAPHICS-WSERV-Anim-PublicAPI-0010 -//! @SYMAPI RAnim::Construct(const RWsSprite{ref}, TInt, const TDesC8{ref}, const TIpcArgs{ref}) -//! @SYMAuthor Niandong Qiao -//! @SYMCreationDate 10-03-2008 -//! @SYMTestCaseDesc Construct a RAnim object with IPC arguments based on a sprite. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Activate the RWindow. -//! 4. SetAutoFlush to TRUE for the RWsSession. -//! 5. Create a RWsSprite with a window server session. -//! 6. Construct the RWsSprite. -//! 7. Create 4 CFbsBitmaps and load bitmaps. -//! 8. Append these CFbsBitmaps to the RWsSprite. -//! 9. Set RWsSprites's position. -//! 10. Activate the RWsSprite. -//! 11. Create a RAnimDll and Load an animation DLL. -//! 12. Create a RAnim from this animation DLL. -//! 13. Construct RAnim. -//! 13.1 Complete construction of the RAnim with parameters(Type,Params) based on created RWsSprite object. -//! 13.2 Plugin send the parameters(Type,Params) of Construct back to client through IPC package. -//! 13.3 Verify is the received IPC package is same with the parameters(Type,Params) of Construct. -//! 14. Destroy RAnim. -//! 15. Destroy RAnimDll. -//! 16. Delete 4 CFbsBitmaps. -//! 17. Close RWsSprite. -//! 18. Close RWsSession ,RWindowGroup and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. RAnim Construct returns KErrNone. -//! 2. Construct received parameters are same with the parameters that sent to plugin. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Anim-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT CFbsBitmap mask1 - CREATE_OBJECT CFbsBitmap bitmap1 - CREATE_OBJECT CFbsBitmap bitmap2 - CREATE_OBJECT CFbsBitmap bitmap3 - CREATE_OBJECT RWsSprite sprite - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-new_command03 - COMMAND wingrp Construct GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-Construct_command04 - COMMAND win new GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-new_command05 - COMMAND win Construct GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-Construct_command06 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-SetAutoFlush_command08 - COMMAND sprite new GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-new_command09 - COMMAND sprite Construct GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-Construct_command10 - COMMAND mask1 new - COMMAND mask1 Load GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-Load_command12 - COMMAND bitmap1 new - COMMAND bitmap1 Load GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-Load_command14 - COMMAND sprite AppendMember GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-AppendMember_command15 - COMMAND bitmap2 new - COMMAND bitmap2 Load GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-Load_command17 - COMMAND sprite AppendMember GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-AppendMember_command18 - COMMAND bitmap3 new - COMMAND bitmap3 Load GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-Load_command20 - COMMAND sprite AppendMember GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-AppendMember_command21 - COMMAND sprite SetPosition GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-SetPosition_command22 - COMMAND sprite Activate - COMMAND animdll new GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-new_Command24 - COMMAND animdll Load GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-Load_Command25 - - COMMAND anim new GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-new_Command26 - COMMAND anim Construct GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-Construct_Command27 - COMMAND anim Destroy - - COMMAND animdll Destroy - COMMAND sprite Close - COMMAND mask1 ~ - COMMAND bitmap1 ~ - COMMAND bitmap2 ~ - COMMAND bitmap3 ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Anim-PublicAPI-0010 - -START_TESTCASE GRAPHICS-WSERV-Anim-PublicAPI-0011 -//! @SYMTestCaseID GRAPHICS-WSERV-Anim-PublicAPI-0011 -//! @SYMAPI RAnim::CommandReply(TInt) -//! @SYMAuthor Niandong Qiao -//! @SYMCreationDate 10-03-2008 -//! @SYMTestCaseDesc Send command to plugin, then get the last received command from plugin, to verify they are same command. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Activate the RWindow. -//! 4. SetAutoFlush to TRUE for the RWsSession. -//! 5. Create a RAnimDll and Load an animation DLL. -//! 6. Create a RAnim from this animation DLL. -//! 7. Complete construction of the RAnim based on created RWindow. -//! 8. Send ECmdTestWithoutPara to plugin by CommandReply. -//! 9. Send ECmdGetLast to plugin by CommandReply with ipc, and verify is the received ipc package is same with ECmdTestWithoutPara. -//! 10. Destroy RAnim. -//! 11. Destroy RAnimDll. -//! 12. Close RWsSession ,RWindowGroup and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CommandReply returns KErrNone. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Anim-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Anim-PublicAPI-0011-0001-new_command03 - COMMAND wingrp Construct GRAPHICS-WSERV-Anim-PublicAPI-0011-0001-Construct_command04 - COMMAND win new GRAPHICS-WSERV-Anim-PublicAPI-0011-0001-new_command05 - COMMAND win Construct GRAPHICS-WSERV-Anim-PublicAPI-0011-0001-Construct_command06 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-Anim-PublicAPI-0011-0001-SetAutoFlush_command08 - COMMAND animdll new GRAPHICS-WSERV-Anim-PublicAPI-0011-0001-new_Command09 - COMMAND animdll Load GRAPHICS-WSERV-Anim-PublicAPI-0011-0001-Load_Command10 - - COMMAND anim new GRAPHICS-WSERV-Anim-PublicAPI-0011-0001-new_Command11 - COMMAND anim Construct GRAPHICS-WSERV-Anim-PublicAPI-0011-0001-Construct_Command12 - COMMAND anim CommandReply GRAPHICS-WSERV-Anim-PublicAPI-0011-0001-CommandReply_Command13 - COMMAND anim CommandReply GRAPHICS-WSERV-Anim-PublicAPI-0011-0001-CommandReply_Command14 - COMMAND anim Destroy - - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Anim-PublicAPI-0011 - -START_TESTCASE GRAPHICS-WSERV-Anim-PublicAPI-0012 -//! @SYMTestCaseID GRAPHICS-WSERV-Anim-PublicAPI-0012 -//! @SYMAPI RAnim::CommandReply(TInt, const TPtrC8{ref}) -//! @SYMAuthor Niandong Qiao -//! @SYMCreationDate 10-03-2008 -//! @SYMTestCaseDesc Send a command and its arguments to plugin, then get the last received parameters from plugin, to verify they are same parameters. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Activate the RWindow. -//! 4. SetAutoFlush to TRUE for the RWsSession. -//! 5. Create a RAnimDll and Load an animation DLL. -//! 6. Create a RAnim from this animation DLL. -//! 7. Complete construction of the RAnim based on created RWindow. -//! 8. Send ECmdTestWithPara and its arguments to plugin by CommandReply, and wait for a response. -//! 9. Retrieve last command. -//! 9.1 Send ECmdGetLast to plugin with CommandReply. -//! 9.2 Plugin send the parameters(Opcode,Args) of first CommandReply to client through IPC package of this CommandReply. -//! 9.3 Verify is the received IPC package is same with the parameters(Opcode,Args) of first CommandReply. -//! 10. Destroy RAnim. -//! 11. Destroy RAnimDll. -//! 12. Close RWsSession ,RWindowGroup and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. First CommandReply returns KErrNone. -//! 2. Second CommandReply received parameters are same with the parameters that used for first CommandReply. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Anim-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Anim-PublicAPI-0012-0001-new_command03 - COMMAND wingrp Construct GRAPHICS-WSERV-Anim-PublicAPI-0012-0001-Construct_command04 - COMMAND win new GRAPHICS-WSERV-Anim-PublicAPI-0012-0001-new_command05 - COMMAND win Construct GRAPHICS-WSERV-Anim-PublicAPI-0012-0001-Construct_command06 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-Anim-PublicAPI-0012-0001-SetAutoFlush_command08 - COMMAND animdll new GRAPHICS-WSERV-Anim-PublicAPI-0012-0001-new_Command09 - COMMAND animdll Load GRAPHICS-WSERV-Anim-PublicAPI-0012-0001-Load_Command10 - - COMMAND anim new GRAPHICS-WSERV-Anim-PublicAPI-0012-0001-new_Command11 - COMMAND anim Construct GRAPHICS-WSERV-Anim-PublicAPI-0012-0001-Construct_Command12 - COMMAND anim CommandReply GRAPHICS-WSERV-Anim-PublicAPI-0012-0001-CommandReply_Command13 - COMMAND anim CommandReply GRAPHICS-WSERV-Anim-PublicAPI-0012-0001-CommandReply_Command14 - COMMAND anim Destroy - - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Anim-PublicAPI-0012 - -START_TESTCASE GRAPHICS-WSERV-Anim-PublicAPI-0013 -//! @SYMTestCaseID GRAPHICS-WSERV-Anim-PublicAPI-0013 -//! @SYMAPI RAnim::CommandReply(TInt, const TPtrC8{ref}, const TIpcArgs{ref}) -//! @SYMAuthor Niandong Qiao -//! @SYMCreationDate 10-03-2008 -//! @SYMTestCaseDesc Send a command and its arguments to plugin, then get the last received parameters from plugin, to verify they are same parameters. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Activate the RWindow. -//! 4. SetAutoFlush to TRUE for the RWsSession. -//! 5. Create a RAnimDll and Load an animation DLL. -//! 6. Create a RAnim from this animation DLL. -//! 7. Complete construction of the RAnim based on created RWindow. -//! 8. Send a command. -//! 8.1 Send ECmdTestWithPara and its arguments to plugin by CommandReply. -//! 8.2 Plugin send the parameters(Opcode,Args) of CommandReply to client through IPC package of this CommandReply. -//! 8.3 Verify is the received IPC package is same with the parameters(Opcode,Args) of this CommandReply. -//! 9. Destroy RAnim. -//! 10. Destroy RAnimDll. -//! 11. Close RWsSession ,RWindowGroup and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. CommandReply returns KErrNone. -//! 2. CommandReply received parameters are same with the parameters that sent to plugin. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Anim-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Anim-PublicAPI-0013-0001-new_command03 - COMMAND wingrp Construct GRAPHICS-WSERV-Anim-PublicAPI-0013-0001-Construct_command04 - COMMAND win new GRAPHICS-WSERV-Anim-PublicAPI-0013-0001-new_command05 - COMMAND win Construct GRAPHICS-WSERV-Anim-PublicAPI-0013-0001-Construct_command06 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-Anim-PublicAPI-0013-0001-SetAutoFlush_command08 - COMMAND animdll new GRAPHICS-WSERV-Anim-PublicAPI-0013-0001-new_Command09 - COMMAND animdll Load GRAPHICS-WSERV-Anim-PublicAPI-0013-0001-Load_Command10 - - COMMAND anim new GRAPHICS-WSERV-Anim-PublicAPI-0013-0001-new_Command11 - COMMAND anim Construct GRAPHICS-WSERV-Anim-PublicAPI-0013-0001-Construct_Command12 - COMMAND anim CommandReply GRAPHICS-WSERV-Anim-PublicAPI-0013-0001-CommandReply_Command13 - COMMAND anim Destroy - - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Anim-PublicAPI-0013 - -START_TESTCASE GRAPHICS-WSERV-Anim-PublicAPI-0014 -//! @SYMTestCaseID GRAPHICS-WSERV-Anim-PublicAPI-0014 -//! @SYMAPI RAnim::Command(TInt, const TPtrC8{ref}) -//! @SYMAuthor Niandong Qiao -//! @SYMCreationDate 10-03-2008 -//! @SYMTestCaseDesc Send a command and its arguments to plugin, then get the last received parameters from plugin, to verify they are same parameters. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Activate the RWindow. -//! 4. SetAutoFlush to TRUE for the RWsSession. -//! 5. Create a RAnimDll and Load an animation DLL. -//! 6. Create a RAnim from this animation DLL. -//! 7. Complete construction of the RAnim based on created RWindow. -//! 8. Send ECmdTestWithPara and its arguments to plugin by Command, and returns immediately. -//! 9. Retrieve last command. -//! 9.1 Send ECmdGetLast to plugin by CommandReply. -//! 9.2 Plugin send the parameters(Opcode,Args) of Command to client through IPC package of CommandReply. -//! 9.3 Verify is the received IPC package is same with the parameters(Opcode,Args) of Command. -//! 10. Destroy RAnim. -//! 11. Destroy RAnimDll. -//! 12. Close RWsSession ,RWindowGroup and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Command was sent without panic. -//! 2. CommandReply received parameters are same with the parameters that used for RAnim::Command. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Anim-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Anim-PublicAPI-0014-0001-new_command03 - COMMAND wingrp Construct GRAPHICS-WSERV-Anim-PublicAPI-0014-0001-Construct_command04 - COMMAND win new GRAPHICS-WSERV-Anim-PublicAPI-0014-0001-new_command05 - COMMAND win Construct GRAPHICS-WSERV-Anim-PublicAPI-0014-0001-Construct_command06 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-Anim-PublicAPI-0014-0001-SetAutoFlush_command08 - COMMAND animdll new GRAPHICS-WSERV-Anim-PublicAPI-0014-0001-new_Command09 - COMMAND animdll Load GRAPHICS-WSERV-Anim-PublicAPI-0014-0001-Load_Command10 - - COMMAND anim new GRAPHICS-WSERV-Anim-PublicAPI-0014-0001-new_Command11 - COMMAND anim Construct GRAPHICS-WSERV-Anim-PublicAPI-0014-0001-Construct_Command12 - COMMAND anim Command GRAPHICS-WSERV-Anim-PublicAPI-0014-0001-Command_Command13 - COMMAND anim CommandReply GRAPHICS-WSERV-Anim-PublicAPI-0014-0001-CommandReply_Command14 - COMMAND anim Destroy - - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Anim-PublicAPI-0014 - -START_TESTCASE GRAPHICS-WSERV-Anim-PublicAPI-0015 -//! @SYMTestCaseID GRAPHICS-WSERV-Anim-PublicAPI-0015 -//! @SYMAPI RAnim::Command(TInt) -//! @SYMAuthor Niandong Qiao -//! @SYMCreationDate 10-03-2008 -//! @SYMTestCaseDesc Send a command to plugin, then get the last received command from plugin, to verify they are same command. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Activate the RWindow. -//! 4. SetAutoFlush to TRUE for the RWsSession. -//! 5. Create a RAnimDll and Load an animation DLL. -//! 6. Create a RAnim from this animation DLL. -//! 7. Complete construction of the RAnim based on created RWindow. -//! 8. Send ECmdTestWithoutPara to plugin by Command, and returns immediately. -//! 9. Send ECmdGetLast to plugin by CommandReply with ipc, and verify is the received ipc package is same with ECmdTestWithoutPara. -//! 10. Destroy RAnim. -//! 12. Destroy RAnimDll. -//! 12. Close RWsSession ,RWindowGroup and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Command was sent without panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Anim-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Anim-PublicAPI-0015-0001-new_command03 - COMMAND wingrp Construct GRAPHICS-WSERV-Anim-PublicAPI-0015-0001-Construct_command04 - COMMAND win new GRAPHICS-WSERV-Anim-PublicAPI-0015-0001-new_command05 - COMMAND win Construct GRAPHICS-WSERV-Anim-PublicAPI-0015-0001-Construct_command06 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-Anim-PublicAPI-0015-0001-SetAutoFlush_command08 - COMMAND animdll new GRAPHICS-WSERV-Anim-PublicAPI-0015-0001-new_Command09 - COMMAND animdll Load GRAPHICS-WSERV-Anim-PublicAPI-0015-0001-Load_Command10 - - COMMAND anim new GRAPHICS-WSERV-Anim-PublicAPI-0015-0001-new_Command11 - COMMAND anim Construct GRAPHICS-WSERV-Anim-PublicAPI-0015-0001-Construct_Command12 - COMMAND anim Command GRAPHICS-WSERV-Anim-PublicAPI-0015-0001-Command_Command13 - COMMAND anim CommandReply GRAPHICS-WSERV-Anim-PublicAPI-0015-0001-CommandReply_Command14 - COMMAND anim Destroy - - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Anim-PublicAPI-0015 - -START_TESTCASE GRAPHICS-WSERV-Anim-PublicAPI-0016 -//! @SYMTestCaseID GRAPHICS-WSERV-Anim-PublicAPI-0016 -//! @SYMAPI RAnim::AsyncCommandReply(TRequestStatus{ref}, TInt, const TIpcArgs{ref}) -//! @SYMAuthor Niandong Qiao -//! @SYMCreationDate 10-03-2008 -//! @SYMTestCaseDesc Sends a command and its arguments to plugin asynchronously, then get the last received parameters from plugin, to verify they are same parameters. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Activate the RWindow. -//! 4. SetAutoFlush to TRUE for the RWsSession. -//! 5. Create a RAnimDll and Load an animation DLL. -//! 6. Create a RAnim from this animation DLL. -//! 7. Complete construction of the RAnim based on created RWindow. -//! 8. Send ECmdTestWithoutPara to plugin by AsyncCommandReply with ipc, and verify is the received ipc package is same with ECmdTestWithoutPara. -//! 9. Destroy RAnim. -//! 10. Destroy RAnimDll. -//! 11. Close RWsSession ,RWindowGroup and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Command was sent without panic. -//! 2. AsyncCommandReply received parameter are same with the opcode parameter that sent to plugin. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Anim-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Anim-PublicAPI-0016-0001-new_command03 - COMMAND wingrp Construct GRAPHICS-WSERV-Anim-PublicAPI-0016-0001-Construct_command04 - COMMAND win new GRAPHICS-WSERV-Anim-PublicAPI-0016-0001-new_command05 - COMMAND win Construct GRAPHICS-WSERV-Anim-PublicAPI-0016-0001-Construct_command06 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-Anim-PublicAPI-0016-0001-SetAutoFlush_command08 - COMMAND animdll new GRAPHICS-WSERV-Anim-PublicAPI-0016-0001-new_Command09 - COMMAND animdll Load GRAPHICS-WSERV-Anim-PublicAPI-0016-0001-Load_Command10 - - COMMAND anim new GRAPHICS-WSERV-Anim-PublicAPI-0016-0001-new_Command11 - COMMAND anim Construct GRAPHICS-WSERV-Anim-PublicAPI-0016-0001-Construct_Command12 - COMMAND anim AsyncCommandReply GRAPHICS-WSERV-Anim-PublicAPI-0016-0001-AsyncCommandReply_Command13 - OUTSTANDING - COMMAND anim Destroy - - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Anim-PublicAPI-0016 - - - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-AnimDll-PublicAPI.script --- a/graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-AnimDll-PublicAPI.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,400 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// -//! @file -//! @SYMTestSuiteName GRAPHICS-WSERV-AnimDll-PublicApi -//! @SYMScriptTestEnvironment This test script requires a basic ROM. - -///////////////////////////////////////////////////////////////////// -// GRAPHICS-WSERV-AnimDll-PublicAPI.script -// -// Tests all public elements of the RAnimDll -// classes as a means of confidence that the APIs work as expected. -// -// The purpose is to provide a regression test suite of PublishedAll APIs for RAnimDll -// The tests are fully automated. -///////////////////////////////////////////////////////////////////// - -LOAD_SUITE T_GraphicsWservAPI -DELAY 1000 - - -///////////////////////////////////////////////////////////////////// -// RAnimDll class -///////////////////////////////////////////////////////////////////// - -START_TESTCASE GRAPHICS-WSERV-AnimDll-PublicAPI-0001 -//! @SYMTestCaseID GRAPHICS-WSERV-AnimDll-PublicAPI-0001 -//! @SYMAPI RAnimDll::RAnimDll() -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 21-04-2008 -//! @SYMTestCaseDesc Create a RAnimDll object by default constructor. -//! @SYMTestActions 1. Create RAnimDll object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults RAnimDll object was created without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI c:\graphics\GRAPHICS-WSERV-AnimDll-PublicAPI.ini - CREATE_OBJECT RAnimDll animdll - COMMAND animdll new - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimDll-PublicAPI-0001 - -START_TESTCASE GRAPHICS-WSERV-AnimDll-PublicAPI-0002 -//! @SYMTestCaseID GRAPHICS-WSERV-AnimDll-PublicAPI-0002 -//! @SYMAPI RAnimDll::RAnimDll(RWsSession {ref}) -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 21-04-2008 -//! @SYMTestCaseDesc Create a RAnimDll object within the specified RWsSession. -//! @SYMTestActions 1.Create and connect a RWsSession. -//! 2.Create a RAnimDll with RWsSession. -//! 3.Close RWsSession object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults RAnimDll object was created without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI c:\graphics\GRAPHICS-WSERV-AnimDll-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RAnimDll animdll - COMMAND ws new - COMMAND ws Connect - COMMAND animdll new GRAPHICS-WSERV-AnimDll-PublicAPI-0002-0001-new_Command001 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimDll-PublicAPI-0002 - -START_TESTCASE GRAPHICS-WSERV-AnimDll-PublicAPI-0003 -//! @SYMTestCaseID GRAPHICS-WSERV-AnimDll-PublicAPI-0003 -//! @SYMAPI RAnimDll::RAnimDll(); -//! RAnimDll::Close() -//! @SYMAuthor Dorothy Zhang -//! @SYMCreationDate 10-03-2008 -//! @SYMTestCaseDesc Create a RAnimDll object by Default constructor and end with Close -//! @SYMTestActions 1. Create RAnimDll object. -//! 2. Close the object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults RAnimDll object was created and closed without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI c:\graphics\GRAPHICS-WSERV-AnimDll-PublicAPI.ini - CREATE_OBJECT RAnimDll animdll - COMMAND animdll new - COMMAND animdll Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimDll-PublicAPI-0003 - -START_TESTCASE GRAPHICS-WSERV-AnimDll-PublicAPI-0004 -//! @SYMTestCaseID GRAPHICS-WSERV-AnimDll-PublicAPI-0004 -//! @SYMAPI RAnimDll::RAnimDll(); -//! RAnimDll::Destroy() -//! @SYMAuthor Dorothy Zhang -//! @SYMCreationDate 10-03-2008 -//! @SYMTestCaseDesc Create a RAnimDll object by Default constructor and end with Destroy() -//! @SYMTestActions 1. Create RAnimDll object. -//! 2. Destory the object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults RAnimDll object was created and destroyed without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI c:\graphics\GRAPHICS-WSERV-AnimDll-PublicAPI.ini - CREATE_OBJECT RAnimDll animdll - COMMAND animdll new - COMMAND animdll Destroy - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimDll-PublicAPI-0004 - -START_TESTCASE GRAPHICS-WSERV-AnimDll-PublicAPI-0005 -//! @SYMTestCaseID GRAPHICS-WSERV-AnimDll-PublicAPI-0005 -//! @SYMAPI RAnimDll::RAnimDll(RWsSession {ref}); -//! RAnimDll::Close() -//! @SYMAuthor Dorothy Zhang -//! @SYMCreationDate 10-03-2008 -//! @SYMTestCaseDesc Create a RAnimDll object within the specified RWsSession and end with Close. -//! @SYMTestActions 1.Create and connect a RWsSession. -//! 2.Create a RAnimDll with RWsSession. -//! 3.Close all used objects -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults RAnimDll object was created without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI c:\graphics\GRAPHICS-WSERV-AnimDll-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RAnimDll animdll - COMMAND ws new - COMMAND ws Connect - COMMAND animdll new GRAPHICS-WSERV-AnimDll-PublicAPI-0005-001-new_Command01 - COMMAND animdll Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimDll-PublicAPI-0005 - -START_TESTCASE GRAPHICS-WSERV-AnimDll-PublicAPI-0006 -//! @SYMTestCaseID GRAPHICS-WSERV-AnimDll-PublicAPI-0006 -//! @SYMAPI RAnimDll::RAnimDll(RWsSession {ref}); -//! RAnimDll::Destroy() -//! @SYMAuthor Dorothy Zhang -//! @SYMCreationDate 10-03-2008 -//! @SYMTestCaseDesc Create a RAnimDll object within the specified RWsSession and end with Destroy. -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a RAnimDll with RWsSession -//! 3. Destroy RAnimDll -//! 4. Close RWsSession -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults RAnimDll object was created and destroyed without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI c:\graphics\GRAPHICS-WSERV-AnimDll-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RAnimDll animdll - COMMAND ws new - COMMAND ws Connect - COMMAND animdll new GRAPHICS-WSERV-AnimDll-PublicAPI-0006-001-new_Command01 - COMMAND animdll Destroy - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimDll-PublicAPI-0006 - -START_TESTCASE GRAPHICS-WSERV-AnimDll-PublicAPI-0007 -//! @SYMTestCaseID GRAPHICS-WSERV-AnimDll-PublicAPI-0007 -//! @SYMAPI RAnimDll::Load(const TDesC {ref}); -//! RAnimDll::Close() -//! @SYMAuthor Dorothy Zhang -//! @SYMCreationDate 10-03-2008 -//! @SYMTestCaseDesc Load an animation Dll file, close the loaded dll and re-load it -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a RAnimDll with RWsSession -//! 3. Load a animation Dll file(t_animplugin.dll) -//! 4. Close RAnimDll -//! 5. Re-load the animation Dll file(t_animplugin.dll) -//! 6. Destory the RAnimDll -//! 7. Close RWsSession -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. The Dll is loaded and closed without causing panic -//! 2. Re-load the closed dll without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI c:\graphics\GRAPHICS-WSERV-AnimDll-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RAnimDll animdll - COMMAND ws new - COMMAND ws Connect - COMMAND animdll new GRAPHICS-WSERV-AnimDll-PublicAPI-0007-001-new_Command01 - COMMAND animdll Load GRAPHICS-WSERV-AnimDll-PublicAPI-0007-001-Load_Command02 - COMMAND animdll Close - COMMAND animdll Load GRAPHICS-WSERV-AnimDll-PublicAPI-0007-001-Load_Command04 - COMMAND animdll Destroy - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimDll-PublicAPI-0007 - -START_TESTCASE GRAPHICS-WSERV-AnimDll-PublicAPI-0008 -//! @SYMTestCaseID GRAPHICS-WSERV-AnimDll-PublicAPI-0008 -//! @SYMAPI RAnimDll::Load(const TDesC {ref}) -//! @SYMAuthor Dorothy Zhang -//! @SYMCreationDate 11-03-2008 -//! @SYMTestCaseDesc Load a non-exist Dll file -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a RAnimDll with RWsSession -//! 3. Load a non-exist Dll file -//! 4. Destroy RAnimDll -//! 5. Close RWsSession -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The call Load() returns KErrNotFound -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI c:\graphics\GRAPHICS-WSERV-AnimDll-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RAnimDll animdll - COMMAND ws new - COMMAND ws Connect - COMMAND animdll new GRAPHICS-WSERV-AnimDll-PublicAPI-0008-001-new_Command01 - COMMAND !Error=-1 animdll Load GRAPHICS-WSERV-AnimDll-PublicAPI-0008-001-Load_Command02 - COMMAND animdll Destroy - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimDll-PublicAPI-0008 - -START_TESTCASE GRAPHICS-WSERV-AnimDll-PublicAPI-0009 -//! @SYMTestCaseID GRAPHICS-WSERV-AnimDll-PublicAPI-0009 -//! @SYMAPI RAnimDll::Load(const TDesC {ref}) -//! @SYMAuthor Dorothy Zhang -//! @SYMCreationDate 11-03-2008 -//! @SYMTestCaseDesc Load a not supported Dll file -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a RAnimDll with RWsSession -//! 3. Load a not supported Dll file -//! 4. Destroy RAnimDll -//! 5. Close RWsSession -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The call Load() returns KErrNotSupported -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI c:\graphics\GRAPHICS-WSERV-AnimDll-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RAnimDll animdll - COMMAND ws new - COMMAND ws Connect - COMMAND animdll new GRAPHICS-WSERV-AnimDll-PublicAPI-0009-001-new_Command01 - COMMAND !Error=-5 animdll Load GRAPHICS-WSERV-AnimDll-PublicAPI-0009-001-Load_Command02 - COMMAND animdll Destroy - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimDll-PublicAPI-0009 - -START_TESTCASE GRAPHICS-WSERV-AnimDll-PublicAPI-0011 -//! @SYMTestCaseID GRAPHICS-WSERV-AnimDll-PublicAPI-0011 -//! @SYMAPI RAnimDll::Load(const TDesC {ref}); -//! RAnimDll::Close() -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 21-04-2008 -//! @SYMTestCaseDesc Load an animation Dll file and the close the loaded dll. -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a RAnimDll with RWsSession -//! 3. Load a animation Dll file(t_animplugin.dll) -//! 4. Close RAnimDll -//! 5. Close RWsSession -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The Dll is loaded and closed without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI c:\graphics\GRAPHICS-WSERV-AnimDll-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RAnimDll animdll - COMMAND ws new - COMMAND ws Connect - COMMAND animdll new GRAPHICS-WSERV-AnimDll-PublicAPI-0011-0001-new_Command003 - COMMAND animdll Load GRAPHICS-WSERV-AnimDll-PublicAPI-0011-0001-Load_Command004 - COMMAND animdll Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimDll-PublicAPI-0011 - -START_TESTCASE GRAPHICS-WSERV-AnimDll-PublicAPI-0012 -//! @SYMTestCaseID GRAPHICS-WSERV-AnimDll-PublicAPI-0012 -//! @SYMAPI RAnimDll::Load(const TDesC {ref}); -//! RAnimDll::Destroy() -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 21-04-2008 -//! @SYMTestCaseDesc Load an animation Dll file and then destory the loaded object. -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a RAnimDll with RWsSession -//! 3. Load a animation Dll file(t_animplugin.dll) -//! 4. Destory RAnimDll object. -//! 5. Close RWsSession -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The Dll is loaded and closed without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI c:\graphics\GRAPHICS-WSERV-AnimDll-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RAnimDll animdll - COMMAND ws new - COMMAND ws Connect - COMMAND animdll new GRAPHICS-WSERV-AnimDll-PublicAPI-0012-0001-new_Command003 - COMMAND animdll Load GRAPHICS-WSERV-AnimDll-PublicAPI-0012-0001-Load_Command004 - COMMAND animdll Destroy - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimDll-PublicAPI-0012 - -START_TESTCASE GRAPHICS-WSERV-AnimDll-PublicAPI-0013 -//! @SYMTestCaseID GRAPHICS-WSERV-AnimDll-PublicAPI-0013 -//! @SYMAPI RAnimDll::Load(const TDesC {ref}); -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 21-04-2008 -//! @SYMTestCaseDesc Load an animation Dll file twice and then destory the loaded object. -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a RAnimDll with RWsSession -//! 3. Load a animation Dll file(t_animplugin.dll) -//! 4. Load the animation Dll file again. -//! 4. Destory RAnimDll object. -//! 5. Close RWsSession -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The Dll is loaded and closed without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI c:\graphics\GRAPHICS-WSERV-AnimDll-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RAnimDll animdll - COMMAND ws new - COMMAND ws Connect - COMMAND animdll new GRAPHICS-WSERV-AnimDll-PublicAPI-0013-0001-new_Command003 - COMMAND animdll Load GRAPHICS-WSERV-AnimDll-PublicAPI-0013-0001-Load_Command004 - COMMAND animdll Load GRAPHICS-WSERV-AnimDll-PublicAPI-0013-0001-Load_Command005 - COMMAND animdll Destroy - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimDll-PublicAPI-0013 - -START_TESTCASE GRAPHICS-WSERV-AnimDll-PublicAPI-0014 -//! @SYMTestCaseID GRAPHICS-WSERV-AnimDll-PublicAPI-0014 -//! @SYMAPI RAnimDll::Load(const TDesC {ref}); -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 21-04-2008 -//! @SYMTestCaseDesc Load two different animation Dll files and then destory the loaded objects. -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a RAnimDll with RWsSession -//! 3. Load a animation Dll file(t_animplugin.dll) -//! 4. Load another system animation Dll file(BMPANSRV.DLL). -//! 4. Destory RAnimDll object. -//! 5. Close RWsSession -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The two Dll files are loaded and closed without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI c:\graphics\GRAPHICS-WSERV-AnimDll-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RAnimDll animdll - COMMAND ws new - COMMAND ws Connect - COMMAND animdll new GRAPHICS-WSERV-AnimDll-PublicAPI-0014-0001-new_Command003 - COMMAND animdll Load GRAPHICS-WSERV-AnimDll-PublicAPI-0014-0001-Load_Command004 - COMMAND animdll Load GRAPHICS-WSERV-AnimDll-PublicAPI-0014-0001-Load_Command005 - COMMAND animdll Destroy - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimDll-PublicAPI-0014 - -START_TESTCASE GRAPHICS-WSERV-AnimDll-PublicAPI-0015 -//! @SYMTestCaseID GRAPHICS-WSERV-AnimDll-PublicAPI-0015 -//! @SYMAPI RAnimDll::Load(const TDesC {ref}); -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 21-04-2008 -//! @SYMTestCaseDesc Create two RAnimDll object and load the same animation Dll file. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create two RAnimDll with RWsSession. -//! 3. Load animation Dll file(t_animplugin.dll) with the first RAnimDll object. -//! 4. Load animation Dll file(t_animplugin.dll) with the second RAnimDll object. -//! 4. Destory all RAnimDll objects. -//! 5. Close RWsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The two RAnimDll object load animation Dll file without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI c:\graphics\GRAPHICS-WSERV-AnimDll-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnimDll animdll2 - COMMAND ws new - COMMAND ws Connect - COMMAND animdll new GRAPHICS-WSERV-AnimDll-PublicAPI-0015-0001-new_Command003 - COMMAND animdll2 new GRAPHICS-WSERV-AnimDll-PublicAPI-0015-0001-new_Command004 - COMMAND animdll Load GRAPHICS-WSERV-AnimDll-PublicAPI-0015-0001-Load_Command005 - COMMAND animdll2 Load GRAPHICS-WSERV-AnimDll-PublicAPI-0015-0001-Load_Command006 - COMMAND animdll Destroy - COMMAND animdll2 Destroy - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimDll-PublicAPI-0015 diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.script --- a/graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,2518 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// -//! @file -//! @SYMTestSuiteName GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi -//! @SYMScriptTestEnvironment This test script requires a basic ROM. - -/////////////////////////////////////////////////////////////////////////////// -// GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.script -// -// Tests all public elements of the MAnimGeneralFunctions class -// as a means of confidence that the API works as expected. -// -// The purpose is to provide a regression test suite of PublishedAll APIs for -// MAnimGeneralFunctions related classes. -// Negative caseing is performed to confirm that correct errors are returned -// when incorrect parameters are given. -// -// The tests are fully automated. -/////////////////////////////////////////////////////////////////////////////// - -LOAD_SUITE T_GraphicsWservAPI -DELAY 1000 - - -// **************************************************************************** -// MAnimGeneralFunctions -// **************************************************************************** - - - -START_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0001 -//!@SYMTestCaseID GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0001 -//!@SYMAPI MAnimGeneralFunctions::Animate(TDateTime {ptr}) -//!@SYMAuthor Cherry Song -//!@SYMCreationDate 10-04-2008 -//!@SYMTestCaseDesc The client sends command ECmdGeneralAnimate to animation DLL by CommandReply to start animation , and then check -//! if the returned result is the expected one. -//!@SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Activate the RWindow. -//! 4. SetAutoFlush to TRUE for the RWsSession. -//! 5. Create a RAnimDll and Load an animation DLL. -//! 6. Create a RAnim by using RAnimDll object. -//! 7. Create an instance of RAnimForMClass . -//! 8. Complete construction of the RAnim based on the created RWindow. -//! 9. Send ECmdGeneralAnimate with a specified TDateTime parameter to animation DLL by CommandReply. -//! 9.1 The wrapper check the returned result from step 8 is correct(1) or not. -//! 10. Destroy RAnim and RAnimForMClass. -//! 11. Destroy RAnimDll. -//! 12. Close RWsSession ,RWindowGroup and RWindow. -//!@SYMTestStatus Implemented -//!@SYMTestPriority High -//!@SYMTestExpectedResults CommandReply returns 1(stands for True). -//!@SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingp new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0001-0001-new_Command03 - COMMAND wingp Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0001-0001-Construct_Command04 - COMMAND win new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0001-0001-new_Command05 - COMMAND win Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0001-0001-Construct_Command06 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND ws SetAutoFlush GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0001-0001-SetAutoFlush_Command08 - COMMAND animdll new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0001-0001-new_Command09 - COMMAND animdll Load GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0001-0001-Load_Command10 - COMMAND anim new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0001-0001-new_Command11 - COMMAND animformc new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0001-0001-new_Command12 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0001-0001-Construct_Command13 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0001-0001-CommandReply_Command14 - COMMAND anim Destroy - COMMAND animformc Destroy - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0001 - - -START_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0002 -//!@SYMTestCaseID GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0002 -//!@SYMAPI MAnimGeneralFunctions::Client() -//!@SYMAuthor Cherry Song -//!@SYMCreationDate 10-04-2008 -//!@SYMTestCaseDesc The client sends command ECmdGeneralClient to animation DLL by CommandReply to get a reference to the calling client's thread , -//! and then check if the returned threadId is the expected one. -//!@SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Activate the RWindow. -//! 4. SetAutoFlush to TRUE for the RWsSession. -//! 5. Create a RAnimDll and Load an animation DLL. -//! 6. Create a RAnim by using RAnimDll object. -//! 7. Create an instance of RAnimForMClass . -//! 8. Complete construction of the RAnim based on the created RWindow. -//! 9. Send ECmdGeneralClient with client thread id to animation DLL by CommandReply. -//! 9.1 Plugin gets a reference to the calling client's thread and return to client. -//! 9.2 The wrapper check if the threadId equals to the client one. If not, set this case fail. -//! 10. Destroy RAnim and RAnimForMClass -//! 11. Destroy RAnimDll. -//! 12. Close RWsSession ,RWindowGroup and RWindow. -//!@SYMTestStatus Implemented -//!@SYMTestPriority High -//!@SYMTestExpectedResults CommandReply returns the client thread id properly. -//!@SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingp new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0002-0001-new_Command03 - COMMAND wingp Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0002-0001-Construct_Command04 - COMMAND win new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0002-0001-new_Command05 - COMMAND win Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0002-0001-Construct_Command06 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND ws SetAutoFlush GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0002-0001-SetAutoFlush_Command08 - COMMAND animdll new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0002-0001-new_Command09 - COMMAND animdll Load GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0002-0001-Load_Command10 - COMMAND anim new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0002-0001-new_Command11 - COMMAND animformc new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0002-0001-new_Command12 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0002-0001-Construct_Command13 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0002-0001-CommandReply_Command14 - COMMAND animformc Destroy - COMMAND anim Destroy - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0002 - - -START_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0003 -//!@SYMTestCaseID GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0003 -//!@SYMAPI MAnimGeneralFunctions::FlashStateOn() -//!@SYMAuthor Cherry Song -//!@SYMCreationDate 10-04-2008 -//!@SYMTestCaseDesc The client sends command ECmdGeneralFlashStateOn to animation DLL by CommandReply to get the current flash cycle state, -//! the plugin will verify if the state's correct and return the result to client. -//!@SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Activate the RWindow. -//! 4. SetAutoFlush to TRUE for the RWsSession. -//! 5. Create a RAnimDll and Load an animation DLL. -//! 6. Create a RAnim by using RAnimDll object. -//! 7. Create an instance of RAnimForMClass . -//! 8. Complete construction of the RAnim based on the created RWindow. -//! 9. Send ECmdGeneralFlashStateOn to animation DLL by CommandReply. -//! 9.1 Plugin check if the FlashStateOn function execute expectedly. If does, return 1, else return 0. -//! 9.2 The wrapper check the returned value is 1 or not. If 0, set this case fail. -//! 10. Destroy RAnim and RAnimForMClass -//! 11. Destroy RAnimDll. -//! 12. Close RWsSession ,RWindowGroup and RWindow. -//!@SYMTestStatus Implemented -//!@SYMTestPriority High -//!@SYMTestExpectedResults CommandReply returns 1(stands for True). -//!@SYMTestType CIT - START_TEST_BLOCK 20 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingp new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0003-0001-new_Command03 - COMMAND wingp Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0003-0001-Construct_Command04 - COMMAND win new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0003-0001-new_Command05 - COMMAND win Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0003-0001-Construct_Command06 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND ws SetAutoFlush GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0003-0001-SetAutoFlush_Command08 - COMMAND animdll new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0003-0001-new_Command09 - COMMAND animdll Load GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0003-0001-Load_Command10 - COMMAND anim new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0003-0001-new_Command11 - COMMAND animformc new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0003-0001-new_Command12 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0003-0001-Construct_Command13 - DELAY 2000000 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0003-0001-CommandReply_Command14 - COMMAND anim Destroy - COMMAND animformc Destroy - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0003 - - -START_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0004 -//!@SYMTestCaseID GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0004 -//!@SYMAPI MAnimGeneralFunctions::Panic() -//!@SYMAuthor Cherry Song -//!@SYMCreationDate 10-04-2008 -//!@SYMTestCaseDesc The client sends command ECmdGeneralPanic to animation DLL by CommandReply to execute the MAnimGeneralFunctions::Panic(), and then see if the client is panicked. -//!@SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Activate the RWindow. -//! 4. SetAutoFlush to TRUE for the RWsSession. -//! 5. Create a RAnimDll and Load an animation DLL. -//! 6. Create a RAnim by using RAnimDll object. -//! 7. Create an instance of RAnimForMClass . -//! 8. Complete construction of the RAnim based on the created RWindow. -//! 9. Send ECmdGeneralPanic to animation DLL by CommandReply. -//!@SYMTestStatus Implemented -//!@SYMTestPriority High -//!@SYMTestExpectedResults Client is panic with WSERV:22. -//!@SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingp new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0004-0001-new_Command03 - COMMAND wingp Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0004-0001-Construct_Command04 - COMMAND win new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0004-0001-new_Command05 - COMMAND win Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0004-0001-Construct_Command06 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND ws SetAutoFlush GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0004-0001-SetAutoFlush_Command08 - COMMAND animdll new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0004-0001-new_Command09 - COMMAND animdll Load GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0004-0001-Load_Command10 - COMMAND anim new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0004-0001-new_Command11 - COMMAND animformc new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0004-0001-new_Command12 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0004-0001-Construct_Command13 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0004-0001-CommandReply_Command14 - END_TEST_BLOCK !PanicString=WSERV !PanicCode=22 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg - -END_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0004 - - -START_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0005 -//!@SYMTestCaseID GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0005 -//!@SYMAPI MAnimGeneralFunctions::ScreenDevice() -//!@SYMAuthor Cherry Song -//!@SYMCreationDate 10-04-2008 -//!@SYMTestCaseDesc The client sends command ECmdGeneralScreenDevice to animation DLL by CommandReply to get a pointer to the screen device, -//! then the plugin will execute one CFbsScreenDevice function and return 0 to client if execute successfully. -//!@SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Activate the RWindow. -//! 4. SetAutoFlush to TRUE for the RWsSession. -//! 5. Create a RAnimDll and Load an animation DLL. -//! 6. Create a RAnim by using RAnimDll object. -//! 7. Create an instance of RAnimForMClass . -//! 8. Complete construction of the RAnim based on the created RWindow. -//! 9. Send ECmdGeneralScreenDevice to animation DLL by CommandReply. -//! 9.1 Plugin invoke one CFbsScreenDevice function to verify if the CFbsScreenDevice pointer which is returned by MAnimGeneralFunctions::ScreenDevice() works or not . -//! If it works, return 0 to client. -//! 9.2 The wrapper check if the return code is 0. If not, set this case failed. -//! 10. Destroy RAnim and RAnimForMClass. -//! 11. Destroy RAnimDll. -//! 12. Close RWsSession ,RWindowGroup and RWindow. -//!@SYMTestStatus Implemented -//!@SYMTestPriority High -//!@SYMTestExpectedResults The CommandReply return 0 to client in step 9, which means the Plugin has executed one CFbsScreenDevice function successfully. -//!@SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingp new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0005-0001-new_Command03 - COMMAND wingp Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0005-0001-Construct_Command04 - COMMAND win new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0005-0001-new_Command05 - COMMAND win Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0005-0001-Construct_Command06 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND ws SetAutoFlush GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0005-0001-SetAutoFlush_Command08 - COMMAND animdll new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0005-0001-new_Command09 - COMMAND animdll Load GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0005-0001-Load_Command10 - COMMAND anim new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0005-0001-new_Command11 - COMMAND animformc new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0005-0001-new_Command12 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0005-0001-Construct_Command13 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0005-0001-CommandReply_Command14 - COMMAND anim Destroy - COMMAND animformc Destroy - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0005 - - -START_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0006 -//!@SYMTestCaseID GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0006 -//!@SYMAPI MAnimGeneralFunctions::ExtendedInterface(TInt) -//!@SYMAuthor Cherry Song -//!@SYMCreationDate 10-04-2008 -//!@SYMTestCaseDesc The client sends command ECmdGeneralExtendedInterface with parameter 0(ENumberOfExtendedInterfaces) -//! to animation DLL to get the number of extended interfaces, and then check if the returned result is the expected one. -//!@SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Activate the RWindow. -//! 4. SetAutoFlush to TRUE for the RWsSession. -//! 5. Create a RAnimDll and Load an animation DLL. -//! 6. Create a RAnim by using RAnimDll object. -//! 7. Create an instance of RAnimForMClass . -//! 8. Complete construction of the RAnim based on the created RWindow. -//! 9. Send ECmdGeneralExtendedInterface with parameter equals to 0 to animation DLL by CommandReply. -//! 9.1 Plugin invoke the MAnimGeneralFunctions::ExtendedInterface(0) and return the result. -//! 9.2 The wrapper check if the value equals to the expected value.If not, set this case fail. -//! 10. Destroy RAnim and RAnimForMClass. -//! 11. Destroy RAnimDll. -//! 12. Close RWsSession ,RWindowGroup and RWindow. -//!@SYMTestStatus Implemented -//!@SYMTestPriority High -//!@SYMTestExpectedResults CommandReply returns the number of extended interface(currently, it is 2). -//!@SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingp new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0006-0001-new_Command03 - COMMAND wingp Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0006-0001-Construct_Command04 - COMMAND win new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0006-0001-new_Command05 - COMMAND win Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0006-0001-Construct_Command06 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND ws SetAutoFlush GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0006-0001-SetAutoFlush_Command08 - COMMAND animdll new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0006-0001-new_Command09 - COMMAND animdll Load GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0006-0001-Load_Command10 - COMMAND anim new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0006-0001-new_Command11 - COMMAND animformc new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0006-0001-new_Command12 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0006-0001-Construct_Command13 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0006-0001-CommandReply_Command14 - COMMAND anim Destroy - COMMAND animformc Destroy - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0006 - - -START_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0007 -//!@SYMTestCaseID GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0007 -//!@SYMAPI MAnimGeneralFunctions::ExtendedInterface(TInt) -//!@SYMAuthor Cherry Song -//!@SYMCreationDate 10-04-2008 -//!@SYMTestCaseDesc The client sends command ECmdGeneralExtendedInterface with parameter 1(EWindowExtensionInterface) to animation DLL -//! to get a pointer to the window extension interface, check if it works or not, and return the result to client. -//!@SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Activate the RWindow. -//! 4. SetAutoFlush to TRUE for the RWsSession. -//! 5. Create a RAnimDll and Load an animation DLL. -//! 6. Create a RAnim by using RAnimDll object. -//! 7. Create an instance of RAnimForMClass . -//! 8. Complete construction of the RAnim based on the created RWindow. -//! 9. Send ECmdGeneralExtendedInterface with parameter equals to 1 to animation DLL by CommandReply -//! 9.1 Plugin invoke one MAnimGeneralFunctionsWindowExtension member function to verify if the pointer which is returned by MAnimGeneralFunctions::ExtendedInterface(1) works or not . -//! If works, Plugin return 0 to client. -//! 9.2 The wrapper check the returned value is 0.If not 0, set this case fail. -//! 10. Destroy RAnim and RAnimForMClass. -//! 11. Destroy RAnimDll. -//! 12. Close RWsSession ,RWindowGroup and RWindow. -//!@SYMTestStatus Implemented -//!@SYMTestPriority High -//!@SYMTestExpectedResults CommandReply returns 0 in step 9. -//!@SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingp new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0007-0001-new_Command03 - COMMAND wingp Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0007-0001-Construct_Command04 - COMMAND win new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0007-0001-new_Command05 - COMMAND win Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0007-0001-Construct_Command06 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND ws SetAutoFlush GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0007-0001-SetAutoFlush_Command08 - COMMAND animdll new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0007-0001-new_Command09 - COMMAND animdll Load GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0007-0001-Load_Command10 - COMMAND anim new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0007-0001-new_Command11 - COMMAND animformc new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0007-0001-new_Command12 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0007-0001-Construct_Command13 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0007-0001-CommandReply_Command14 - COMMAND anim Destroy - COMMAND animformc Destroy - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0007 - - -START_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0008 -//!@SYMTestCaseID GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0008 -//!@SYMAPI MAnimGeneralFunctions::ExtendedInterface(TInt) -//!@SYMAuthor Cherry Song -//!@SYMCreationDate 10-04-2008 -//!@SYMTestCaseDesc The client sends command ECmdGeneralExtendedInterface with parameter 2(EEventExtentionInterface) to animation DLL -//! to get a pointer to the event extension interface, check if it works or not, and return the result to client. -//!@SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Activate the RWindow. -//! 4. SetAutoFlush to TRUE for the RWsSession. -//! 5. Create a RAnimDll and Load an animation DLL. -//! 6. Create a RAnim by using RAnimDll object. -//! 7. Create an instance of RAnimForMClass . -//! 8. Complete construction of the RAnim based on the created RWindow. -//! 9. Send ECmdGeneralExtendedInterface with parameter equals to 2 to animation DLL by CommandReply. -//! 9.1 Plugin invoke one MAnimGeneralFunctionsEventExtension member function to verify if the pointer which is returned by MAnimGeneralFunctions::ExtendedInterface(2) works or not. -//! If it works, Plugin return 0 to client. -//! 9.2 The wrapper check the returned value is 0. If not 0, set this case fail. -//! 10. Destroy RAnim and RAnimForMClass. -//! 11. Destroy RAnimDll. -//! 12. Close RWsSession ,RWindowGroup and RWindow. -//!@SYMTestStatus Implemented -//!@SYMTestPriority High -//!@SYMTestExpectedResults CommandReply returns 0 in step 9. -//!@SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingp new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0008-0001-new_Command03 - COMMAND wingp Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0008-0001-Construct_Command04 - COMMAND win new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0008-0001-new_Command05 - COMMAND win Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0008-0001-Construct_Command06 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND ws SetAutoFlush GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0008-0001-SetAutoFlush_Command08 - COMMAND animdll new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0008-0001-new_Command09 - COMMAND animdll Load GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0008-0001-Load_Command10 - COMMAND anim new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0008-0001-new_Command11 - COMMAND animformc new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0008-0001-new_Command12 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0008-0001-Construct_Command13 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0008-0001-CommandReply_Command14 - COMMAND anim Destroy - COMMAND animformc Destroy - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0008 - - -START_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0009 -//!@SYMTestCaseID GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0009 -//!@SYMAPI MAnimGeneralFunctions::ExtendedInterface(TInt) -//!@SYMAuthor Cherry Song -//!@SYMCreationDate 07-05-2008 -//!@SYMTestCaseDesc The client sends command ECmdGeneralExtendedInterface with parameter 4(an unexisted interface number) -//! to animation DLL, and then check if the returned result is a NULL pointer. -//!@SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Activate the RWindow. -//! 4. SetAutoFlush to TRUE for the RWsSession. -//! 5. Create a RAnimDll and Load an animation DLL. -//! 6. Create a RAnim by using RAnimDll object. -//! 7. Create an instance of RAnimForMClass . -//! 8. Complete construction of the RAnim based on the created RWindow. -//! 9. Send ECmdGeneralExtendedInterface with parameter equals to 4 to animation DLL by CommandReply. -//! 9.1 Plugin invoke the MAnimGeneralFunctions::ExtendedInterface(4) and return the result. -//! 9.2 The wrapper check if the returned pointer is NULL. If not, set this case fail. -//! 10. Destroy RAnim and RAnimForMClass. -//! 11. Destroy RAnimDll. -//! 12. Close RWsSession ,RWindowGroup and RWindow. -//!@SYMTestStatus Implemented -//!@SYMTestPriority High -//!@SYMTestExpectedResults CommandReply returns a NULL pointer. -//!@SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingp new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0009-0001-new_Command03 - COMMAND wingp Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0009-0001-Construct_Command04 - COMMAND win new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0009-0001-new_Command05 - COMMAND win Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0009-0001-Construct_Command06 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND ws SetAutoFlush GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0009-0001-SetAutoFlush_Command08 - COMMAND animdll new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0009-0001-new_Command09 - COMMAND animdll Load GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0009-0001-Load_Command10 - COMMAND anim new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0009-0001-new_Command11 - COMMAND animformc new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0009-0001-new_Command12 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0009-0001-Construct_Command13 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0009-0001-CommandReply_Command14 - COMMAND anim Destroy - COMMAND animformc Destroy - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0009 - - -START_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0010 -//!@SYMTestCaseID GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0010 -//!@SYMAPI MAnimGeneralFunctions::WindowExtension() -//!@SYMAuthor Cherry Song -//!@SYMCreationDate 10-04-2008 -//!@SYMTestCaseDesc The client sends command ECmdGeneralWindowExtension to animation DLL to get one pointer to the MAnimGeneralFunctionsWindowExtension, -//! and check if it works and return the result to client. -//!@SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Activate the RWindow. -//! 4. SetAutoFlush to TRUE for the RWsSession. -//! 5. Create a RAnimDll and Load an animation DLL. -//! 6. Create a RAnim by using RAnimDll object. -//! 7. Create an instance of RAnimForMClass . -//! 8. Complete construction of the RAnim based on the created RWindow. -//! 9. Send ECmdGeneralWindowExtension to animation DLL by CommandReply. -//! 9.1 Plugin invoke one MAnimGeneralFunctionsWindowExtension member function to verify if the pointer which is returned by MAnimGeneralFunctions::WindowExtension() works or not. -//! If it works, Plugin return 0 to client . -//! 9.2 The wrapper check the returned value is 0. If not 0, set this case fail. -//! 10. Destroy RAnim and RAnimForMClass. -//! 11. Destroy RAnimDll. -//! 12. Close RWsSession ,RWindowGroup and RWindow. -//!@SYMTestStatus Implemented -//!@SYMTestPriority High -//!@SYMTestExpectedResults CommandReply returns 0 in step 9. -//!@SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingp new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0010-0001-new_Command03 - COMMAND wingp Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0010-0001-Construct_Command04 - COMMAND win new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0010-0001-new_Command05 - COMMAND win Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0010-0001-Construct_Command06 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND ws SetAutoFlush GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0010-0001-SetAutoFlush_Command08 - COMMAND animdll new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0010-0001-new_Command09 - COMMAND animdll Load GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0010-0001-Load_Command10 - COMMAND anim new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0010-0001-new_Command11 - COMMAND animformc new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0010-0001-new_Command12 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0010-0001-Construct_Command13 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0010-0001-CommandReply_Command14 - COMMAND anim Destroy - COMMAND animformc Destroy - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0010 - - -START_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0011 -//!@SYMTestCaseID GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0011 -//!@SYMAPI MAnimGeneralFunctions::NumberofExtendedInterfaces() -//!@SYMAuthor Cherry Song -//!@SYMCreationDate 10-04-2008 -//!@SYMTestCaseDesc The client sends command ECmdGeneralNumofExtInterfaces to animation DLL to get the number of extended interfaces . -//!@SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Activate the RWindow. -//! 4. SetAutoFlush to TRUE for the RWsSession. -//! 5. Create a RAnimDll and Load an animation DLL. -//! 6. Create a RAnim by using RAnimDll object. -//! 7. Create an instance of RAnimForMClass . -//! 8. Complete construction of the RAnim based on the created RWindow. -//! 9. Send ECmdGeneralNumofExtInterfaces to animation DLL by CommandReply. -//! 9.1 Plugin get the number of extended interface and return it to client. -//! 9.2 The wrapper check if the number equals to the expected one. it not,set this case fail. -//! 10. Destroy RAnim and RAnimForMClass. -//! 11. Destroy RAnimDll. -//! 12. Close RWsSession ,RWindowGroup and RWindow. -//!@SYMTestStatus Implemented -//!@SYMTestPriority High -//!@SYMTestExpectedResults CommandReply returns the number of extended interfaces(currently it is 2 ) -//!@SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingp new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0011-0001-new_Command03 - COMMAND wingp Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0011-0001-Construct_Command04 - COMMAND win new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0011-0001-new_Command05 - COMMAND win Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0011-0001-Construct_Command06 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND ws SetAutoFlush GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0011-0001-SetAutoFlush_Command08 - COMMAND animdll new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0011-0001-new_Command09 - COMMAND animdll Load GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0011-0001-Load_Command10 - COMMAND anim new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0011-0001-new_Command11 - COMMAND animformc new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0011-0001-new_Command12 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0011-0001-Construct_Command13 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0011-0001-CommandReply_Command14 - COMMAND anim Destroy - COMMAND animformc Destroy - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0011 - - -START_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0012 -//!@SYMTestCaseID GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0012 -//!@SYMAPI MAnimGeneralFunctions::EventExtension() -//!@SYMAuthor Cherry Song -//!@SYMCreationDate 10-04-2008 -//!@SYMTestCaseDesc The client sends command ECmdGeneralEventExtension to animation DLL to -//! get one pointer to the MAnimGeneralFunctionsEventExtension object. -//!@SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Activate the RWindow. -//! 4. SetAutoFlush to TRUE for the RWsSession. -//! 5. Create a RAnimDll and Load an animation DLL. -//! 6. Create a RAnim by using RAnimDll object. -//! 7. Create an instance of RAnimForMClass . -//! 8. Complete construction of the RAnim based on the created RWindow. -//! 9. Send ECmdGeneralEventExtension to animation DLL by CommandReply. -//! 9.1 Plugin invoke one MAnimGeneralFunctionsEventExtension member function to verify if the pointer which is returned by MAnimGeneralFunctions::EventExtension() works or not. -//! If it works, the Plugin return 0 to client. -//! 9.2 The wrapper check the returned value is 0. If not 0, set this case fail. -//! 10. Destroy RAnim and RAnimForMClass. -//! 11. Destroy RAnimDll. -//! 12. Close RWsSession ,RWindowGroup and RWindow. -//!@SYMTestStatus Implemented -//!@SYMTestPriority High -//!@SYMTestExpectedResults CommandReply returns 0 in step 9. -//!@SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingp new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0012-0001-new_Command03 - COMMAND wingp Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0012-0001-Construct_Command04 - COMMAND win new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0012-0001-new_Command05 - COMMAND win Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0012-0001-Construct_Command06 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND ws SetAutoFlush GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0012-0001-SetAutoFlush_Command08 - COMMAND animdll new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0012-0001-new_Command09 - COMMAND animdll Load GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0012-0001-Load_Command10 - COMMAND anim new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0012-0001-new_Command11 - COMMAND animformc new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0012-0001-new_Command12 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0012-0001-Construct_Command13 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0012-0001-CommandReply_Command14 - COMMAND anim Destroy - COMMAND animformc Destroy - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0012 - - -START_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0013 -//!@SYMTestCaseID GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0013 -//!@SYMAPI MAnimGeneralFunctions::GetRawEvents(TBool) -//!@SYMAuthor Albert Wu -//!@SYMCreationDate 10-04-2008 -//!@SYMTestCaseDesc The client sends command ECmdGeneralGetRawEvents with ETrue/EFalse parameter to animation DLL by CommandReply -//! to switch the animation raw event handling on/off. -//!@SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Activate the RWindow. -//! 4. SetAutoFlush to TRUE for the RWsSession. -//! 5. Create a RAnimDll and Load an animation DLL. -//! 6. Create a RAnim by using RAnimDll object. -//! 7. Create an instance of RAnimForMClass . -//! 8. Complete construction of the RAnim based on the created RWindow. -//! 9. Send ECmdGeneralGetRawEvents with ETrue parameter to animation DLL by CommandReply. -//! 9.1 The plugin invoke the GetRawEvents of MAnimGeneralFunctions class. If execute successfully, return 0. -//! 9.2 The wrapper check if the return code is 0 (it means successfully) -//! 10. Send ECmdGeneralGetRawEvents with EFalse parameter to animation DLL by CommandReply. -//! 10.1 The plugin invoke the GetRawEvents of MAnimGeneralFunctions class. If execute successfully, return 0. -//! 10.2 The wrapper check if the return code is 0 ( it means successfully) -//! 11. Destroy RAnim and RAnimForMClass. -//! 12. Destroy RAnimDll. -//! 13. Close RWsSession ,RWindowGroup and RWindow. -//!@SYMTestStatus Implemented -//!@SYMTestPriority High -//!@SYMTestExpectedResults The return results of CommandReply are 0(it means MAnimGeneralFunctions::GetRawEvent executed successfully); -//!@SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingp new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0013-0001-new_Command03 - COMMAND wingp Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0013-0001-Construct_Command04 - COMMAND win new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0013-0001-new_Command05 - COMMAND win Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0013-0001-Construct_Command06 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND ws SetAutoFlush GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0013-0001-SetAutoFlush_Command08 - COMMAND animdll new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0013-0001-new_Command09 - COMMAND animdll Load GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0013-0001-Load_Command10 - COMMAND anim new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0013-0001-new_Command11 - COMMAND animformc new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0013-0001-new_Command12 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0013-0001-Construct_Command13 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0013-0001-CommandReply_Command14 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0013-0001-CommandReply_Command15 - COMMAND anim Destroy - COMMAND animformc Destroy - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0013 - - -START_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0014 -//!@SYMTestCaseID GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0014 -//!@SYMAPI MAnimGeneralFunctions::PostRawEvent(const TRawEvent {ref}) -//!@SYMAuthor Cherry Song -//!@SYMCreationDate 10-04-2008 -//!@SYMTestCaseDesc The first phase :the client sends command ECmdGeneralGetRawEvents to animation DLL by CommandReply to switch the raw event handling on, -//! then send command ECmdGeneralPostRawEvent to animation DLL to post some raw event,after a short interval check if the event has been received. -//! The second phase : the client sends command ECmdGeneralGetRawEvents to animation DLL by CommandReply to switch the raw event handling off, -//! then send command ECmdGeneralPostRawEvent to animation DLL to post some raw event,after a short interval check if the event has not been received. -//!@SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Activate the RWindow. -//! 4. SetAutoFlush to TRUE for the RWsSession. -//! 5. Create a RAnimDll and Load an animation DLL. -//! 6. Create a RAnim by using RAnimDll object. -//! 7. Create an instance of RAnimForMClass . -//! 8. Complete construction of the RAnim based on the created RWindow. -//! 9. Send ECmdGeneralGetRawEvents with ETrue parameter to animation DLL by CommandReply. -//! 10. Send ECmdGeneralPostRawEvent with TRawEvent parameter to animation DLL by CommandReply. -//! 11. Delay 1 second. -//! 12. Send ECmdRetrieveResult animation DLL by CommandReply. -//! 12.1 The wrapper check if the return code equals to the expected one(ETure). If not, set this case failed. -//! 13. Send ECmdGeneralGetRawEvents with EFalse parameter to animation DLL by CommandReply. -//! 14. Send ECmdGeneralPostRawEvent with TRawEvent parameter to animation DLL by CommandReply. -//! 15. Delay 1 second. -//! 16. Send ECmdRetrieveResult animation DLL by CommandReply. -//! 16.1 The wrapper check if the return code equals to the expected one(EFalse). If not, set this case failed. -//! 17. Destroy RAnim and RAnimForMClass. -//! 18. Destroy RAnimDll. -//! 19. Close RWsSession ,RWindowGroup and RWindow. -//!@SYMTestStatus Implemented -//!@SYMTestPriority High -//!@SYMTestExpectedResults 1.The first CommandReply with ECmdRetrieveResult operation code return 1(it means the raw event has been posted to the plugin dll). -//! 2.The second CommandReply with ECmdRetrieveResult operation code return 0(it means the raw event has not been posted to the plugin dll). -//!@SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingp new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0014-0001-new_Command03 - COMMAND wingp Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0014-0001-Construct_Command04 - COMMAND win new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0014-0001-new_Command05 - COMMAND win Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0014-0001-Construct_Command06 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND ws SetAutoFlush GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0014-0001-SetAutoFlush_Command08 - COMMAND animdll new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0014-0001-new_Command09 - COMMAND animdll Load GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0014-0001-Load_Command10 - COMMAND anim new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0014-0001-new_Command11 - COMMAND animformc new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0014-0001-new_Command12 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0014-0001-Construct_Command13 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0014-0001-CommandReply_Command14 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0014-0001-CommandReply_Command15 - DELAY 1000000 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0014-0001-CommandReply_Command17 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0014-0001-CommandReply_Command18 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0014-0001-CommandReply_Command19 - DELAY 1000000 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0014-0001-CommandReply_Command21 - COMMAND anim Destroy - COMMAND animformc Destroy - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0014 - - -START_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0015 -//!@SYMTestCaseID GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0015 -//!@SYMAPI MAnimGeneralFunctions::PostKeyEvent(const TKeyEvent {ref}) -//!@SYMAuthor Cherry Song -//!@SYMCreationDate 10-04-2008 -//!@SYMTestCaseDesc The client sends command ECmdGeneralPostKeyEvent with a certain key to animation DLL to post key event, then check if the keyevent post equals to the key input just now. -//!@SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Activate the RWindow. -//! 4. SetAutoFlush to TRUE for the RWsSession. -//! 5. Create a RAnimDll and Load an animation DLL. -//! 6. Create a RAnim by using RAnimDll object. -//! 7. Create an instance of RAnimForMClass . -//! 8. Complete construction of the RAnim based on the created RWindow. -//! 9. Send ECmdGeneralPostKeyEvent with an TKeyEvent object to animation DLL by CommandReply. -//! 9.1 Using Windowgroup to capture a certain key event. -//! 9.2 Send ECmdGeneralPostKeyEvent with a certain key to animation Dll. -//! 9.3 Plugin Dll will send a key event using the method PostKeyEvent. -//! 9.4 Client wait for the notification of the WsSession. -//! 9.5 The WindowGroup capture the key event and compare to the certain event type. -//! 10. Wrapper check if the return code equals to the expected one(ETure). If not, set this case failed. -//! 11. Destroy RAnim and RAnimForMClass. -//! 12. Destroy RAnimDll. -//! 13. Close RWsSession,RWindowGroup and RWindow. -//!@SYMTestStatus Implemented -//!@SYMTestPriority High -//!@SYMTestExpectedResults Step 9.5 capture the correct key event which is posted by animation DLL previously. -//!@SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingp new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0015-0001-new_Command03 - COMMAND wingp Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0015-0001-Construct_Command04 - COMMAND win new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0015-0001-new_Command05 - COMMAND win Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0015-0001-Construct_Command06 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND ws SetAutoFlush GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0015-0001-SetAutoFlush_Command08 - COMMAND animdll new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0015-0001-new_Command09 - COMMAND animdll Load GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0015-0001-Load_Command10 - COMMAND anim new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0015-0001-new_Command11 - COMMAND animformc new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0015-0001-new_Command12 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0015-0001-Construct_Command13 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0015-0001-CommandReply_Command14 - COMMAND anim Destroy - COMMAND animformc Destroy - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0015 - - -START_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0016 -//!@SYMTestCaseID GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0016 -//!@SYMAPI MAnimGeneralFunctions::Sync() -//!@SYMAuthor Albert Wu -//!@SYMCreationDate 10-04-2008 -//!@SYMTestCaseDesc The client sends command ECmdGeneralSync to animation DLL by CommandReply to get the current sync mode. -//!@SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Activate the RWindow. -//! 4. SetAutoFlush to TRUE for the RWsSession. -//! 5. Create a RAnimDll and Load an animation DLL. -//! 6. Create a RAnim by using RAnimDll object. -//! 7. Create an instance of RAnimForMClass . -//! 8. Complete construction of the RAnim based on the created RWindow. -//! 9. Send ECmdGeneralSync to animation DLL by CommandReply. -//! 9.1 The plugin return the current synchronisation mode . -//! 9.2 The wrapper check the returned result is correct. -//! 10. Destroy RAnim and RAnimForMClass. -//! 11. Destroy RAnimDll. -//! 12. Close RWsSession ,RWindowGroup and RWindow. -//!@SYMTestStatus Implemented -//!@SYMTestPriority High -//!@SYMTestExpectedResults In step 9, CommandReply returns ESyncNone (No explicit sync mode set, so the returned sync mode here is ESyncNone). -//!@SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingp new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0016-0001-new_Command03 - COMMAND wingp Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0016-0001-Construct_Command04 - COMMAND win new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0016-0001-new_Command05 - COMMAND win Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0016-0001-Construct_Command06 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND ws SetAutoFlush GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0016-0001-SetAutoFlush_Command08 - COMMAND animdll new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0016-0001-new_Command09 - COMMAND animdll Load GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0016-0001-Load_Command10 - COMMAND anim new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0016-0001-new_Command11 - COMMAND animformc new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0016-0001-new_Command12 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0016-0001-Construct_Command13 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0016-0001-CommandReply_Command14 - COMMAND anim Destroy - COMMAND animformc Destroy - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0016 - - -START_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017 -//!@SYMTestCaseID GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017 -//!@SYMAPI MAnimGeneralFunctions::SetSync(TAnimSync) -//!@SYMAuthor Cherry Song -//!@SYMCreationDate 10-04-2008 -//!@SYMTestCaseDesc The client sends command ECmdGeneralSetSync to animation DLL by CommandReply to set sync mode as client asked, then check if it is the expected one via sending -//! command ECmdGeneralSync to animation DLL to get the current sync mode. -//!@SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Activate the RWindow. -//! 4. SetAutoFlush to TRUE for the RWsSession. -//! 5. Create a RAnimDll and Load an animation DLL. -//! 6. Create a RAnim by using RAnimDll object. -//! 7. Create an instance of RAnimForMClass . -//! 8. Complete construction of the RAnim based on the created RWindow. -//! 9. Send ECmdGeneralSetSync with ESyncNone to animation DLL by CommandReply. -//! 10. Send ECmdGeneralSync to animation DLL by CommandReply. -//! 10.1 The wrapper check the returned result is ESyncNone. -//! 11. Send ECmdGeneralSetSync with ESyncFlash to animation DLL by CommandReply. -//! 12. Send ECmdGeneralSync to animation DLL by CommandReply. -//! 12.1 The wrapper check the returned result is ESyncFlash. -//! 13. Send ECmdGeneralSetSync with ESyncSecond to animation DLL by CommandReply. -//! 14. Send ECmdGeneralSync to animation DLL by CommandReply. -//! 14.1 The wrapper check the returned result is ESyncSecond. -//! 15. Send ECmdGeneralSetSync with ESyncMinute to animation DLL by CommandReply. -//! 16. Send ECmdGeneralSync to animation DLL by CommandReply. -//! 16.1 The wrapper check the returned result is ESyncMinute. -//! 17. Send ECmdGeneralSetSync with ESyncDay to animation DLL by CommandReply. -//! 18. Send ECmdGeneralSync to animation DLL by CommandReply. -//! 18.1 The wrapper check the returned result is ESyncDay. -//! 19. Destroy RAnim and RAnimForMClass. -//! 20. Destroy RAnimDll. -//! 21. Close RWsSession ,RWindowGroup and RWindow. -//!@SYMTestStatus Implemented -//!@SYMTestPriority High -//!@SYMTestExpectedResults 1.In step 10, CommandReply returns ESyncNone. -//! 2.In step 12, CommandReply returns ESyncFlash. -//! 3.In step 14, CommandReply returns ESyncSecond. -//! 4.In step 16, CommandReply returns ESyncMinute. -//! 4.In step 18, CommandReply returns ESyncDay. -//!@SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingp new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-new_Command03 - COMMAND wingp Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-Construct_Command04 - COMMAND win new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-new_Command05 - COMMAND win Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-Construct_Command06 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND ws SetAutoFlush GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-SetAutoFlush_Command08 - COMMAND animdll new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-new_Command09 - COMMAND animdll Load GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-Load_Command10 - COMMAND anim new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-new_Command11 - COMMAND animformc new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-new_Command12 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-Construct_Command13 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-CommandReply_Command14 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-CommandReply_Command15 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-CommandReply_Command16 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-CommandReply_Command17 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-CommandReply_Command18 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-CommandReply_Command19 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-CommandReply_Command20 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-CommandReply_Command21 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-CommandReply_Command22 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-CommandReply_Command23 - COMMAND anim Destroy - COMMAND animformc Destroy - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017 - - -START_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0018 -//!@SYMTestCaseID GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0018 -//!@SYMAPI MAnimGeneralFunctions::SetInterval(TInt) -//!@SYMAuthor Jason Lin -//!@SYMCreationDate 10-04-2008 -//!@SYMTestCaseDesc The client sends command to animation DLL to set the synchronisation mode as TAnimSync::ESyncNone and desired animation interval, -//! then the Animate() function is called at the defined interval. -//!@SYMTestActions 1.Create and connect a RWsSession. -//! 2.Create and construct RWindowGroup and RWindow. -//! 3.Activate the RWindow. -//! 4.SetAutoFlush to TRUE for the RWsSession. -//! 5.Create a RAnimDll object and Load an animation DLL. -//! 6.Create a RAnim object by using RAnimDll object. -//! 7.Create an instance of RAnimForMClass . -//! 8.Complete construction of the RAnim based on the created RWindow. -//! 9.Send command ECmdGeneralSetSync to set the synchronisation mode with TAnimSync::ESyncNone. -//! 10.Send command ECmdGeneralSetInterval with 4 flash ticks to animation DLL by CommandReply . -//! 10.1 Plugin calculate and verify the interval has been set to 4 flash ticks. -//! 11.Delay 8 seconds. -//! 12.Send command ECmdReceiveResult to animation DLL by CommandReply. -//! 12.1 The wrapper check if the return code equals to the expected code(1 stands for success). -//! 13.Send command ECmdGeneralSetInterval with 1 flash tick to animation DLL by CommandReply. -//! 13.1 Plugin calculate and verify the interval has been set to 1 flash tick. -//! 14.Delay 2 seconds. -//! 15.Send command ECmdReceiveResult to animation DLL by CommandReply . -//! 15.1 The wrapper check if the return code equals to the expected code(1 stands for success). -//! 16.Destroy RAnim and RAnimForMClass. -//! 17.Destroy RAnimDll. -//! 18.Close RWsSession ,RWindowGroup and RWindow. -//!@SYMTestStatus Implemented -//!@SYMTestPriority High -//!@SYMTestExpectedResults All CommandReply with ECmdRetrieveResult operation code return 1. -//!@SYMTestType CIT - START_TEST_BLOCK 200 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingp new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0018-0001-new_Command03 - COMMAND wingp Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0018-0001-Construct_Command04 - COMMAND win new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0018-0001-new_Command05 - COMMAND win Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0018-0001-Construct_Command06 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND ws SetAutoFlush GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0018-0001-SetAutoFlush_Command08 - COMMAND animdll new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0018-0001-new_Command09 - COMMAND animdll Load GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0018-0001-Load_Command10 - COMMAND anim new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0018-0001-new_Command11 - COMMAND animformc new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0018-0001-new_Command12 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0018-0001-Construct_Command13 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0018-0001-CommandReply_Command14 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0018-0001-CommandReply_Command15 - DELAY 8000000 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0018-0001-CommandReply_Command17 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0018-0001-CommandReply_Command18 - DELAY 2000000 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0018-0001-CommandReply_Command20 - COMMAND anim Destroy - COMMAND animformc Destroy - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0018 - - -START_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0019 -//!@SYMTestCaseID GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0019 -//!@SYMAPI MAnimGeneralFunctions::SetInterval(TInt) -//!@SYMAuthor Jason Lin -//!@SYMCreationDate 10-04-2008 -//!@SYMTestCaseDesc The client sends command to animation DLL to set interval to 0, the countdown stops and the Animate() function is no longer called. -//!@SYMTestActions 1.Create and connect a RWsSession. -//! 2.Create and construct RWindowGroup and RWindow. -//! 3.Activate the RWindow. -//! 4.SetAutoFlush to TRUE for the RWsSession. -//! 5.Create a RAnimDll object and Load an animation DLL. -//! 6.Create a RAnim object by using RAnimDll object. -//! 7.Create an instance of RAnimForMClass . -//! 8.Complete construction of the RAnim based on the created RWindow. -//! 9.Send command ECmdGeneralSetSync to set the synchronisation mode with TAnimSync::ESyncNone. -//! 10.Send command ECmdGeneralSetInterval with 4 flash ticks to animation DLL by CommandReply. -//! 10.1 Plugin calculate and verify the interval has been set to 4 flash ticks. -//! 11.Delay 8 seconds. -//! 12.Send command ECmdReceiveResult to animation DLL . -//! 12.1 The wrapper check if the return code equals to the expected code(1 stands for success). -//! 13.Send command ECmdGeneralSetInterval with 0 flash tick to animation DLL by CommandReply. -//! 13.1 Plugin calculate and verify the interval has been set to 0 flash tick. -//! 14.Delay 2 seconds. -//! 15.Send command ECmdReceiveResult to animation DLL . -//! 15.1 The wrapper check if the return code equals to the expected code(1 stands for success). -//! 16.Destroy RAnim and RAnimForMClass. -//! 17.Destroy RAnimDll. -//! 18.Close RWsSession ,RWindowGroup and RWindow. -//!@SYMTestStatus Implemented -//!@SYMTestPriority High -//!@SYMTestExpectedResults CommandReply with ECmdRetrieveResult operation code return 1. -//!@SYMTestType CIT - START_TEST_BLOCK 200 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingp new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0019-0001-new_Command03 - COMMAND wingp Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0019-0001-Construct_Command04 - COMMAND win new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0019-0001-new_Command05 - COMMAND win Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0019-0001-Construct_Command06 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND ws SetAutoFlush GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0019-0001-SetAutoFlush_Command08 - COMMAND animdll new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0019-0001-new_Command09 - COMMAND animdll Load GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0019-0001-Load_Command10 - COMMAND anim new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0019-0001-new_Command11 - COMMAND animformc new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0019-0001-new_Command12 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0019-0001-Construct_Command13 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0019-0001-CommandReply_Command14 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0019-0001-CommandReply_Command15 - DELAY 8000000 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0019-0001-CommandReply_Command17 - DELAY 2000000 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0019-0001-CommandReply_Command19 - COMMAND anim Destroy - COMMAND animformc Destroy - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0019 - - -START_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0020 -//!@SYMTestCaseID GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0020 -//!@SYMAPI MAnimGeneralFunctions::SetInterval(TInt) -//!@SYMAuthor Jason Lin -//!@SYMCreationDate 10-04-2008 -//!@SYMTestCaseDesc Negative case. The client sends command to set the synchronisation mode as TAnimSync::ESyncNone, -//! then send command to set the interval with a negative number. -//!@SYMTestActions 1.Create and connect a RWsSession. -//! 2.Create and construct RWindowGroup and RWindow. -//! 3.Activate the RWindow. -//! 4.SetAutoFlush to TRUE for the RWsSession. -//! 5.Create a RAnimDll object and Load an animation DLL. -//! 6.Create a RAnim object by using RAnimDll object. -//! 7.Create an instance of RAnimForMClass . -//! 8.Complete construction of the RAnim based on the created RWindow. -//! 9.Send command ECmdGeneralSetSync to set the synchronisation mode with TAnimSync::ESyncNone. -//! 10.Send command ECmdGeneralSetInterval with 4 flash ticks to animation DLL by CommandReply. -//! 10.1 Plugin calculate and verify the interval has been set to 4 flash ticks. -//! 11.Delay 8 seconds. -//! 12.Send command ECmdRetrieveResult to animation DLL . -//! 12.1 The wrapper check if the return code equals to the expected code(1 stands for success). -//! 13.Send command ECmdGeneralSetInterval with -4 flash ticks to animation DLL by CommandReply(OutStanding after this command). -//! 13.1 Plugin calculate and verify the interval has been set to 0 flash tick. -//! 14.Delay 8 seconds. -//! 15.Send command ECmdRetrieveResult to animation DLL . -//! 15.1 The wrapper check if the return code equals to the expected code(1 stands for success). -//! 16.Destroy RAnim and RAnimForMClass. -//! 17.Destroy RAnimDll. -//! 18.Close RWsSession ,RWindowGroup and RWindow. -//!@SYMTestStatus Implemented -//!@SYMTestPriority High -//!@SYMTestExpectedResults All CommandReply with ECmdRetrieveResult operation code return 1. -//!@SYMTestType CIT - START_TEST_BLOCK 200 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingp new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0020-0001-new_Command03 - COMMAND wingp Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0020-0001-Construct_Command04 - COMMAND win new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0020-0001-new_Command05 - COMMAND win Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0020-0001-Construct_Command06 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND ws SetAutoFlush GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0020-0001-SetAutoFlush_Command08 - COMMAND animdll new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0020-0001-new_Command09 - COMMAND animdll Load GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0020-0001-Load_Command10 - COMMAND anim new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0020-0001-new_Command11 - COMMAND animformc new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0020-0001-new_Command12 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0020-0001-Construct_Command13 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0020-0001-CommandReply_Command14 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0020-0001-CommandReply_Command15 - DELAY 8000000 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0020-0001-CommandReply_Command17 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0020-0001-CommandReply_Command18 - DELAY 8000000 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0020-0001-CommandReply_Command20 - COMMAND anim Destroy - COMMAND animformc Destroy - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0020 - - -START_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0021 -//!@SYMTestCaseID GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0021 -//!@SYMAPI MAnimGeneralFunctions::SetInterval(TInt) -//!@SYMAuthor Jason Lin -//!@SYMCreationDate 10-04-2008 -//!@SYMTestCaseDesc Negative case, the client sends command to animation DLL to set the synchronization mode as TAnimSync::ESyncFlash, -//! then send command to set the animation interval,the window server should panics the client. -//!@SYMTestActions 1.Create and connect a RWsSession. -//! 2.Create and construct RWindowGroup and RWindow. -//! 3.Activate the RWindow. -//! 4.SetAutoFlush to TRUE for the RWsSession. -//! 5.Create a RAnimDll object and Load an animation DLL. -//! 6.Create a RAnim object by using RAnimDll object. -//! 7.Create an instance of RAnimForMClass . -//! 8.Complete construction of the RAnim based on the created RWindow. -//! 9.Send command ECmdGeneralSetSync to set the synchronisation mode with TAnimSync::ESyncFlash. -//! 10.Send command ECmdGeneralSetInterval with 1 flash tick to animation DLL by CommandReply. -//!@SYMTestStatus Implemented -//!@SYMTestPriority High -//!@SYMTestExpectedResults The window server return Panic 22( WServ Panic number ) at step 9. -//!@SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingp new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0021-0001-new_Command03 - COMMAND wingp Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0021-0001-Construct_Command04 - COMMAND win new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0021-0001-new_Command05 - COMMAND win Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0021-0001-Construct_Command06 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND ws SetAutoFlush GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0021-0001-SetAutoFlush_Command08 - COMMAND animdll new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0021-0001-new_Command09 - COMMAND animdll Load GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0021-0001-Load_Command10 - COMMAND anim new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0021-0001-new_Command11 - COMMAND animformc new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0021-0001-new_Command12 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0021-0001-Construct_Command13 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0021-0001-CommandReply_Command14 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0021-0001-CommandReply_Command15 - END_TEST_BLOCK !PanicString=WSERV !PanicCode=22 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg - -END_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0021 - - - -START_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0025 -//!@SYMTestCaseID GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0025 -//!@SYMAPI MAnimGeneralFunctions::SetNextInterval(TInt) -//!@SYMAuthor Jason Lin -//!@SYMCreationDate 10-04-2008 -//!@SYMTestCaseDesc The client sends command ECmdGeneralSetNextInterval to animation DLL to reset the current countdown to the specified number of flash ticks, -//! irrespective of its current value. After the countdown expires, the interval should return to its usual rate. -//!@SYMTestActions 1.Create and connect a RWsSession. -//! 2.Create and construct RWindowGroup and RWindow. -//! 3.Activate the RWindow. -//! 4.SetAutoFlush to TRUE for the RWsSession. -//! 5.Create a RAnimDll object and Load an animation DLL. -//! 6.Create a RAnim object by using RAnimDll object. -//! 7.Create an instance of RAnimForMClass . -//! 8.Complete construction of the RAnim based on the created RWindow. -//! 9.Send command ECmdGeneralSetSync to set the synchronisation mode with TAnimSync::ESyncNone. -//! 10.Send command ECmdGeneralSetNextInterval with 4 flash ticks to animation DLL by CommandReply . -//! 10.1 Plugin calculate and verify the interval has been changed or not. And will return the result asychronously. -//! 11.Delay 8 seconds. -//! 12.Send the CommandReply with ECmdReceiveResult opcode to animation DLL . -//! 12.1 The wrapper check if the return code equals to the expected code(1 stands for success). -//! 13.Destroy RAnim and RAnimForMClass. -//! 14.Destroy RAnimDll. -//! 15.Close RWsSession ,RWindowGroup and RWindow. -//!@SYMTestStatus Implemented -//!@SYMTestPriority High -//!@SYMTestExpectedResults The CommandReply with ECmdRetrieveResult operation code return 1. -//!@SYMTestType CIT - START_TEST_BLOCK 1000 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingp new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0025-0001-new_Command03 - COMMAND wingp Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0025-0001-Construct_Command04 - COMMAND win new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0025-0001-new_Command05 - COMMAND win Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0025-0001-Construct_Command06 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND ws SetAutoFlush GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0025-0001-SetAutoFlush_Command08 - COMMAND animdll new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0025-0001-new_Command09 - COMMAND animdll Load GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0025-0001-Load_Command10 - COMMAND anim new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0025-0001-new_Command11 - COMMAND animformc new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0025-0001-new_Command12 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0025-0001-Construct_Command13 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0025-0001-CommandReply_Command14 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0025-0001-CommandReply_Command15 - DELAY 8000000 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0025-0001-CommandReply_Command17 - COMMAND anim Destroy - COMMAND animformc Destroy - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0025 - - -START_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0026 -//!@SYMTestCaseID GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0026 -//!@SYMAPI MAnimGeneralFunctions::SetNextInterval(TInt) -//!@SYMAuthor Jason Lin -//!@SYMCreationDate 10-04-2008 -//!@SYMTestCaseDesc Negative case, the client sends command to animation DLL to set the synchronization mode as TAnimSync::ESyncFlash, -//! then send command ECmdGeneralSetNextInterval to set the animation next interval,the window server should panics the client. -//!@SYMTestActions 1.Create and connect a RWsSession. -//! 2.Create and construct RWindowGroup and RWindow. -//! 3.Activate the RWindow. -//! 4.SetAutoFlush to TRUE for the RWsSession. -//! 5.Create a RAnimDll object and Load an animation DLL. -//! 6.Create a RAnim object by using RAnimDll object. -//! 7.Create an instance of RAnimForMClass . -//! 8.Complete construction of the RAnim based on the created RWindow. -//! 9.Send command ECmdGeneralSetSync to set the synchronisation mode with TAnimSync::ESyncFlash. -//! 10.Send command ECmdGeneralSetNextInterval with 1 flash tick to animation DLL by CommandReply. -//!@SYMTestStatus Implemented -//!@SYMTestPriority High -//!@SYMTestExpectedResults The window server return Panic 22( WServ Panic number ) at step 10. -//!@SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingp new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0026-0001-new_Command03 - COMMAND wingp Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0026-0001-Construct_Command04 - COMMAND win new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0026-0001-new_Command05 - COMMAND win Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0026-0001-Construct_Command06 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND ws SetAutoFlush GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0026-0001-SetAutoFlush_Command08 - COMMAND animdll new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0026-0001-new_Command09 - COMMAND animdll Load GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0026-0001-Load_Command10 - COMMAND anim new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0026-0001-new_Command11 - COMMAND animformc new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0026-0001-new_Command12 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0026-0001-Construct_Command13 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0026-0001-CommandReply_Command14 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0026-0001-CommandReply_Command15 - END_TEST_BLOCK !PanicString=WSERV !PanicCode=22 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg - -END_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0026 - - - -START_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0030 -//!@SYMTestCaseID GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0030 -//!@SYMAPI MAnimGeneralFunctions::SetNextInterval(TInt) -//!@SYMAuthor Jason Lin -//!@SYMCreationDate 10-04-2008 -//!@SYMTestCaseDesc The client sends command to animation DLL to set the synchronization mode as TAnimSync::ESyncNone, -//! then sends command ECmdGeneralSetNextInterval to set the animation next interval to 0, at last sends command ECmdGeneralSetNextInterval to set the next interval to a negative value. -//!@SYMTestActions 1.Create and connect a RWsSession. -//! 2.Create and construct RWindowGroup and RWindow. -//! 3.Activate the RWindow. -//! 4.SetAutoFlush to TRUE for the RWsSession. -//! 5.Create a RAnimDll object and Load an animation DLL. -//! 6.Create a RAnim object by using RAnimDll object. -//! 7.Create an instance of RAnimForMClass . -//! 8.Complete construction of the RAnim based on the created RWindow. -//! 9.Send command ECmdGeneralSetSync to set the synchronisation mode with TAnimSync::ESyncNone. -//! 10.Send command ECmdGeneralSetInterval with 4 flash ticks to animation DLL by CommandReply . -//! 10.1 Plugin calculate and verify the interval has been changed or not. And will return the result asychronously. -//! 11.Delay 8 seconds. -//! 11.1 Wrapper check if the return code equals to the expected code(1 stands for success). -//! 12.Send command ECmdGeneralSetNextInterval with -2 flash ticks to animation DLL by CommandReply . -//! 13.1 Plugin calculate and verify the interval has been changed or not. And will return the result asychronously. -//! 14.Delay 1 second. -//! 15.Send the CommandReply with ECmdRetrieveResult opcode to animation DLL. -//! 15.1 Wrapper check if the return code equals to the expected code (1 stands for success). -//! 16.Destroy RAnim and RAnimForMClass. -//! 17.Destroy RAnimDll. -//! 18.Close RWsSession ,RWindowGroup and RWindow. -//!@SYMTestStatus Implemented -//!@SYMTestPriority High -//!@SYMTestExpectedResults All the CommandReply with ECmdRetrieveResult operation code return 1. -//!@SYMTestType CIT - START_TEST_BLOCK 200 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingp new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0030-0001-new_Command03 - COMMAND wingp Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0030-0001-Construct_Command04 - COMMAND win new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0030-0001-new_Command05 - COMMAND win Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0030-0001-Construct_Command06 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND ws SetAutoFlush GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0030-0001-SetAutoFlush_Command08 - COMMAND animdll new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0030-0001-new_Command09 - COMMAND animdll Load GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0030-0001-Load_Command10 - COMMAND anim new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0030-0001-new_Command11 - COMMAND animformc new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0030-0001-new_Command12 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0030-0001-Construct_Command13 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0030-0001-CommandReply_Command14 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0030-0001-CommandReply_Command15 - DELAY 8000000 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0030-0001-CommandReply_Command17 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0030-0001-CommandReply_Command18 - DELAY 1000000 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0030-0001-CommandReply_Command20 - COMMAND anim Destroy - COMMAND animformc Destroy - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0030 - - -START_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0031 -//!@SYMTestCaseID GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0031 -//!@SYMAPI MAnimGeneralFunctions::RegisterForNotifications(TUint32) -//!@SYMAuthor Jason Lin -//!@SYMCreationDate 10-04-2008 -//!@SYMTestCaseDesc Register to receive DSA notifications. The client sends command ECmdGeneralRegisterForNotifications to animation DLL via the CommandReply -//! with parameter as 1 to register to receive DSA notifications. Then the client call StartL() of CDirectScreenAccess object to trigger EDirectScreenAccess event, -//! the DLL will trap this event and then return the result to client. -//!@SYMTestActions 1.Create and connect a RWsSession. -//! 2.Create and construct RWindowGroup and RWindow. -//! 3.Activate the RWindow. -//! 4.SetAutoFlush to TRUE for the RWsSession. -//! 5.Create a RAnimDll object and Load an animation DLL. -//! 6.Create a RAnim object by using RAnimDll object. -//! 7.Create an instance of RAnimForMClass . -//! 8.Complete construction of the RAnim based on the created RWindow. -//! 9.Send command ECmdGeneralRegisterForNotifications with 1 to animation DLL by CommandReply. -//! 10.Create and construct CWsScreenDevice. -//! 11.Create and construct CWsScreenDevice with the created RWsSession. -//! 12.Create CDirectScreenAccess object with the created RWsSession,RWindow,CWsScreenDevice. -//! 13.Call StartL() of CDirectScreenAccess object to trigger EDirectScreenAccess event. -//! 14.Send the CommandReply with ECmdRetrieveResult opcode to animation DLL . -//! 15.Send command ECmdGeneralRegisterForNotifications with 0 to animation DLL by CommandReply(To prevent the panic). -//! 16.Destroy CDirectScreenAccess. -//! 17.Destroy CWsScreenDevice. -//! 18.Close RWsSession. -//! 19.Destroy RAnim and RAnimForMClass. -//! 20.Destroy RAnimDll. -//! 21.Close RWsSession ,RWindowGroup and RWindow. -//!@SYMTestStatus Implemented -//!@SYMTestPriority High -//!@SYMTestExpectedResults Step 15 return true -//!@SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CDirectScreenAccess dsa - COMMAND ws new - COMMAND ws Connect - COMMAND wingp new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0031-0001-new_Command03 - COMMAND wingp Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0031-0001-Construct_Command04 - COMMAND win new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0031-0001-new_Command05 - COMMAND win Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0031-0001-Construct_Command06 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND ws SetAutoFlush GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0031-0001-SetAutoFlush_Command08 - COMMAND animdll new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0031-0001-new_Command09 - COMMAND animdll Load GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0031-0001-Load_Command10 - COMMAND anim new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0031-0001-new_Command11 - COMMAND animformc new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0031-0001-new_Command12 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0031-0001-Construct_Command13 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0031-0001-CommandReply_Command14 - COMMAND scrdev new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0031-0001-new_Command15 - COMMAND scrdev Construct - COMMAND dsa NewL GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0031-0001-NewL_Command17 - COMMAND dsa StartL GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0031-0001-StartL_Command18 - COMMAND dsa Cancel - COMMAND dsa ~ - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0031-0001-CommandReply_Command21 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0031-0001-CommandReply_Command22 - COMMAND scrdev ~ - COMMAND anim Destroy - COMMAND animformc Destroy - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0031 - - -START_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0034 -//!@SYMTestCaseID GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0034 -//!@SYMAPI MAnimGeneralFunctions::Message() -//!@SYMAuthor Jason Lin -//!@SYMCreationDate 11-04-2008 -//!@SYMTestCaseDesc The client sends the command ECmdGeneralMessage to the animation DLL by the CommandReply to get the address of RMessagePtr2 object. -//!@SYMTestActions 1.Create and connect a RWsSession. -//! 2.Create and construct RWindowGroup and RWindow. -//! 3.Activate the RWindow. -//! 4.SetAutoFlush to TRUE for the RWsSession. -//! 5.Create a RAnimDll object and Load an animation DLL. -//! 6.Create a RAnim object by using RAnimDll object. -//! 7.Create an instance of RAnimForMClass . -//! 8.Complete construction of the RAnim based on the created RWindow. -//! 9.Client Send command ECmdGeneralMessage with a string "Send message" to animation DLL by CommandReply. -//! 9.1 Plugin return the same string to client via another slot. -//! 9.2 The wrapper compare the returned string and the original one , to check if it is same. If not, set this case failed. -//! 10.Destroy RAnim and RAnimForMClass. -//! 11.Destroy RAnimDll. -//! 12.Close RWsSession ,RWindowGroup and RWindow. -//!@SYMTestStatus Implemented -//!@SYMTestPriority High -//!@SYMTestExpectedResults The return result of step 9 is the same string "Send message". -//!@SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingp new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0034-0001-new_Command03 - COMMAND wingp Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0034-0001-Construct_Command04 - COMMAND win new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0034-0001-new_Command05 - COMMAND win Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0034-0001-Construct_Command06 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND ws SetAutoFlush GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0034-0001-SetAutoFlush_Command08 - COMMAND animdll new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0034-0001-new_Command09 - COMMAND animdll Load GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0034-0001-Load_Command10 - COMMAND anim new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0034-0001-new_Command11 - COMMAND animformc new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0034-0001-new_Command12 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0034-0001-Construct_Command13 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0034-0001-CommandReply_Command14 - COMMAND anim Destroy - COMMAND animformc Destroy - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0034 - - -START_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0035 -//!@SYMTestCaseID GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0035 -//!@SYMAPI MAnimGeneralFunctions::DuplicateBitmapL(TInt) -//!@SYMAuthor Yue Zhang -//!@SYMCreationDate 11-04-2008 -//!@SYMTestCaseDesc Send command and a bitmap handle to animation DLL to call DuplicateBitmap function, and then try to draw the bitmap. -//!@SYMTestActions 1.Create and connect a RWsSession. -//! 2.Create and construct RWindowGroup and RWindow. -//! 3.Activate the RWindow. -//! 4.SetAutoFlush to TRUE for the RWsSession. -//! 5.Create a RAnimDll object and Load an animation DLL. -//! 6.Create a RAnim object by using RAnimDll object. -//! 7.Create an instance of RAnimForMClass . -//! 8.Complete construction of the RAnim based on the created RWindow. -//! 9.Create CWsScreenDevice object and construct it. -//! 10.Set required display mode of RWindow object. -//! 11.Set background color of RWindow object. -//! 12.Construct CWindowAnim object by RWindow. -//! 13.Create a CFbsBitmap object and load bitmap. -//! 14.Send ECmdAnimDuplicateBitmap command to plugin Dll with the handle. -//! 14.1 Plugin draw the duplicated bitmap . -//! 15.Use ScreenDevice object to compare the bitmap rectangle with a blank rectangle. -//! 16.Close and destroy all the related objects. -//!@SYMTestStatus Implemented -//!@SYMTestPriority High -//!@SYMTestExpectedResults In step 15, the compare result should not be same because the bitmap should be drawn. -//!@SYMTestType CIT - START_TEST_BLOCK 1000 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CFbsBitmap bitmap - COMMAND ws new - COMMAND ws Connect - COMMAND wingp new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0035-0001-new_Command03 - COMMAND wingp Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0035-0001-Construct_Command04 - COMMAND win new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0035-0001-new_Command05 - COMMAND win Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0035-0001-Construct_Command06 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0035-0001-SetAutoFlush_Command07 - COMMAND animdll new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0035-0001-new_Command08 - COMMAND animdll Load GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0035-0001-Load_Command09 - COMMAND anim new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0035-0001-new_Command10 - COMMAND animformc new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0035-0001-new_Command11 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0035-0001-Construct_Command12 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0035-0001-SetRequiredDisplayMode_Command13 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0035-0001-SetBackgroundColor_Command14 - COMMAND scrdev new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0035-0001-new_Command15 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND scrdev Construct - COMMAND bitmap new - COMMAND bitmap Load GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0035-0001-Load_Command21 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0035-0001-CommandReply_Command22 - COMMAND scrdev RectCompare GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0035-0001-RectCompare_Command23 - COMMAND bitmap ~ - COMMAND scrdev ~ - COMMAND anim Destroy - COMMAND animformc Destroy - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0035 - - -START_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0036 -//!@SYMTestCaseID GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0036 -//!@SYMAPI MAnimGeneralFunctions::DuplicateBitmapL(TInt) -//!@SYMAuthor Yue Zhang -//!@SYMCreationDate 11-04-2008 -//!@SYMTestCaseDesc Negative case, the client sends command and an invalid bitmap handle to animation DLL to call DuplicateBitmap function. -//!@SYMTestActions 1.Create and connect a RWsSession. -//! 2.Create and construct RWindowGroup and RWindow. -//! 3.Activate the RWindow. -//! 4.SetAutoFlush to TRUE for the RWsSession. -//! 5.Create a RAnimDll object and Load an animation DLL. -//! 6.Create a RAnim object by using RAnimDll object. -//! 7.Create an instance of RAnimForMClass . -//! 8.Complete construction of the RAnim based on the created RWindow. -//! 9.Set required display mode of RWindow object. -//! 10.Set background color of RWindow object. -//! 11.Create a CFbsBitmap object and load bitmap. -//! 12.Send ECmdAnimDuplicateBitmap command to plugin Dll with the no-existing handle. -//!@SYMTestStatus Implemented -//!@SYMTestPriority High -//!@SYMTestExpectedResults In step 12, will get a WServ-7 panic. -//!@SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - CREATE_OBJECT CFbsBitmap bitmap - COMMAND ws new - COMMAND ws Connect - COMMAND wingp new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0036-0001-new_Command03 - COMMAND wingp Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0036-0001-Construct_Command04 - COMMAND win new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0036-0001-new_Command05 - COMMAND win Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0036-0001-Construct_Command06 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND ws SetAutoFlush GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0036-0001-SetAutoFlush_Command08 - COMMAND animdll new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0036-0001-new_Command09 - COMMAND animdll Load GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0036-0001-Load_Command10 - COMMAND anim new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0036-0001-new_Command11 - COMMAND animformc new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0036-0001-new_Command12 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0036-0001-Construct_Command13 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0036-0001-SetRequiredDisplayMode_Command14 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0036-0001-SetBackgroundColor_Command15 - COMMAND bitmap new - COMMAND bitmap Load GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0036-0001-Load_Command17 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0036-0001-CommandReply_Command18 - END_TEST_BLOCK !PanicString=WSERV !PanicCode=7 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg - -END_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0036 - - -START_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037 -//!@SYMTestCaseID GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037 -//!@SYMAPI MAnimGeneralFunctions::DuplicateBitmapL(TInt) -//!@SYMAuthor Yue Zhang -//!@SYMCreationDate 11-04-2008 -//!@SYMTestCaseDesc The client sends command and a bitmap handle to animation DLL to call DuplicateBitmap function in the situation of memory leak. -//!@SYMTestActions 1.Create and connect a RWsSession. -//! 2.Create and construct RWindowGroup and RWindow. -//! 3.Activate the RWindow. -//! 4.SetAutoFlush to TRUE for the RWsSession. -//! 5.Create a RAnimDll object and Load an animation DLL. -//! 6.Create a RAnim object by using RAnimDll object. -//! 7.Create an instance of RAnimForMClass . -//! 8.Complete construction of the RAnim based on the created RWindow. -//! 9.Create CWsScreenDevice object and construct it. -//! 10.Set required display mode of RWindow object. -//! 11.Set background color of RWindow object. -//! 12.Construct CWindowAnim object by RWindow. -//! 13.Create a CFbsBitmap object and load bitmap. -//! 14.Send ECmdUtilEatupMemory command to plugin Dll, the plugin dll will eatup the memory to cause the memory leak. -//! 15.Send ECmdAnimDuplicateBitmap command to plugin Dll with the handle. -//! 16.Send ECmdUtilFreeEatenMemory command to plugin Dll, the plugin dll will release the eaten memory. -//! 17.Use ScreenDevice object to compare the bitmap rectangle with a blank rectangle. -//! 18.Close and destroy all the related objects. -//!@SYMTestStatus Implemented -//!@SYMTestPriority High -//!@SYMTestExpectedResults In step 17, the compare result should be same because the bitmap should not be drawn. -//!@SYMTestType CIT - START_TEST_BLOCK 1000 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CFbsBitmap bitmap - COMMAND ws new - COMMAND ws Connect - COMMAND wingp new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037-0001-new_Command03 - COMMAND wingp Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037-0001-Construct_Command04 - COMMAND win new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037-0001-new_Command05 - COMMAND win Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037-0001-Construct_Command06 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037-0001-SetAutoFlush_Command07 - COMMAND animdll new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037-0001-new_Command08 - COMMAND animdll Load GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037-0001-Load_Command09 - COMMAND anim new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037-0001-new_Command10 - COMMAND animformc new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037-0001-new_Command11 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037-0001-Construct_Command12 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037-0001-SetRequiredDisplayMode_Command13 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037-0001-SetBackgroundColor_Command14 - COMMAND scrdev new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037-0001-new_Command15 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND scrdev Construct - COMMAND bitmap new - COMMAND bitmap Load GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037-0001-Load_Command21 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037-0001-CommandReply_Command22 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037-0001-CommandReply_Command23 - //COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037-0001-CommandReply_Command24 - //!COMMAND scrdev RectCompare GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037-0001-RectCompare_Command25 - COMMAND bitmap ~ - COMMAND scrdev ~ - COMMAND anim Destroy - COMMAND animformc Destroy - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037 - - -START_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0038 -//!@SYMTestCaseID GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0038 -//!@SYMAPI MAnimGeneralFunctions::DuplicateFontL(TInt) -//!@SYMAuthor Yue Zhang -//!@SYMCreationDate 11-04-2008 -//!@SYMTestCaseDesc The client sends command and a font handle to animation DLL to call DuplicateFont function, and then try to draw the font. -//!@SYMTestActions 1.Create and connect a RWsSession. -//! 2.Create and construct RWindowGroup and RWindow. -//! 3.Activate the RWindow. -//! 4.SetAutoFlush to TRUE for the RWsSession. -//! 5.Create a RAnimDll object and Load an animation DLL. -//! 6.Create a RAnim object by using RAnimDll object. -//! 7.Create an instance of RAnimForMClass . -//! 8.Complete construction of the RAnim based on the created RWindow. -//! 9.Create CWsScreenDevice object and construct it. -//! 10.Set required display mode of RWindow object. -//! 11.Set background color of RWindow object. -//! 12.Create a TFontSpec object with the proper font name and height. -//! 13.Create a CFont object using GetNearestFontInTwips of CWsScreenDevice object. -//! 14.Send ECmdAnimDuplicateFont command to plugin Dll with the font's handle. -//! 14.1 Plugin get the duplicated font's ID and return it to the client. -//! 14.2 Wrapper verify it with the original font on the client side. If it's the same , set this case failed. -//! 15.Close and destroy all the related objects. -//!@SYMTestStatus Implemented -//!@SYMTestPriority High -//!@SYMTestExpectedResults In step 14, the compare result should not be same because the bitmap should be drawn. -//!@SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CFbsFont font - COMMAND ws new - COMMAND ws Connect - COMMAND wingp new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0038-0001-new_Command03 - COMMAND wingp Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0038-0001-Construct_Command04 - COMMAND win new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0038-0001-new_Command05 - COMMAND win Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0038-0001-Construct_Command06 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0038-0001-SetAutoFlush_Command07 - COMMAND animdll new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0038-0001-new_Command08 - COMMAND animdll Load GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0038-0001-Load_Command09 - COMMAND anim new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0038-0001-new_Command10 - COMMAND animformc new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0038-0001-new_Command11 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0038-0001-Construct_Command12 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0038-0001-SetRequiredDisplayMode_Command13 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0038-0001-SetBackgroundColor_Command14 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND scrdev new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0038-0001-new_Command18 - COMMAND scrdev Construct - COMMAND scrdev GetNearestFontToDesignHeightInTwips GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0038-0001-GetNearestFontToDesignHeightInTwips_Command20 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0038-0001-CommandReply_Command21 - COMMAND scrdev ~ - COMMAND anim Destroy - COMMAND animformc Destroy - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0038 - - -START_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0039 -//!@SYMTestCaseID GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0039 -//!@SYMAPI MAnimGeneralFunctions::DuplicateFontL(TInt) -//!@SYMAuthor Yue Zhang -//!@SYMCreationDate 11-04-2008 -//!@SYMTestCaseDesc Negative case, the client sends command and one invalid font handle to animation DLL to call DuplicateFont function, and then try to draw the font. -//!@SYMTestActions 1.Create and connect a RWsSession. -//! 2.Create and construct RWindowGroup and RWindow. -//! 3.Activate the RWindow. -//! 4.SetAutoFlush to TRUE for the RWsSession. -//! 5.Create a RAnimDll object and Load an animation DLL. -//! 6.Create a RAnim object by using RAnimDll object. -//! 7.Create an instance of RAnimForMClass . -//! 8.Complete construction of the RAnim based on the created RWindow. -//! 9.Set required display mode of RWindow object. -//! 10.Set background color of RWindow object. -//! 11.Send ECmdAnimDuplicateFont command to plugin Dll with a invalid font's handle. -//!@SYMTestStatus Implemented -//!@SYMTestPriority High -//!@SYMTestExpectedResults In step 11, will get a WServ-13 panic. -//!@SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingp new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0039-0001-new_Command03 - COMMAND wingp Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0039-0001-Construct_Command04 - COMMAND win new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0039-0001-new_Command05 - COMMAND win Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0039-0001-Construct_Command06 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND ws SetAutoFlush GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0039-0001-SetAutoFlush_Command08 - COMMAND animdll new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0039-0001-new_Command09 - COMMAND animdll Load GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0039-0001-Load_Command10 - COMMAND anim new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0039-0001-new_Command11 - COMMAND animformc new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0039-0001-new_Command12 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0039-0001-Construct_Command13 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0039-0001-SetRequiredDisplayMode_Command14 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0039-0001-SetBackgroundColor_Command15 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0039-0001-CommandReply_Command16 - END_TEST_BLOCK !PanicString=WSERV !PanicCode=13 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg - -END_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0039 - - -START_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040 -//!@SYMTestCaseID GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040 -//!@SYMAPI MAnimGeneralFunctions::DuplicateFontL(TInt) -//!@SYMAuthor Yue Zhang -//!@SYMCreationDate 11-04-2008 -//!@SYMTestCaseDesc The client sends command and a font handle to animation DLL to call DuplicateFont function, and then try to draw the font. -//!@SYMTestActions 1.Create and connect a RWsSession. -//! 2.Create and construct RWindowGroup and RWindow. -//! 3.Activate the RWindow. -//! 4.SetAutoFlush to TRUE for the RWsSession. -//! 5.Create a RAnimDll object and Load an animation DLL. -//! 6.Create a RAnim object by using RAnimDll object. -//! 7.Create an instance of RAnimForMClass . -//! 8.Complete construction of the RAnim based on the created RWindow. -//! 9.Create CWsScreenDevice object and construct it. -//! 10.Set required display mode of RWindow object. -//! 11.Set background color of RWindow object. -//! 12.Create a TFontSpec object with the proper font name and height. -//! 13.Create a CFont object using GetNearestFontInTwips of CWsScreenDevice object. -//! 14.Send ECmdUtilEatupMemory command to plugin Dll, the plugin dll will eatup the memory to cause the memory leak. -//! 15.Send ECmdAnimDuplicateFont command to plugin Dll with the font's handle. -//! 15.1 Plugin can not get the duplicated font's ID and return zero to the client. -//! 15.2 Wrapper verify the result. If it's zero, set this case failed and set the error -4(KErrNoMemory). -//! 16.Send ECmdUtilFreeEatenMemory command to plugin Dll, the plugin dll will release the eaten memory. -//! 17.Close and destroy all the related objects. -//!@SYMTestStatus Implemented -//!@SYMTestPriority High -//!@SYMTestExpectedResults In step 15, client get zero value and the the error code to -4(KErrNoMemory). -//!@SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CFbsFont font - COMMAND ws new - COMMAND ws Connect - COMMAND wingp new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040-0001-new_Command03 - COMMAND wingp Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040-0001-Construct_Command04 - COMMAND win new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040-0001-new_Command05 - COMMAND win Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040-0001-Construct_Command06 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040-0001-SetAutoFlush_Command07 - COMMAND animdll new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040-0001-new_Command08 - COMMAND animdll Load GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040-0001-Load_Command09 - COMMAND anim new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040-0001-new_Command10 - COMMAND animformc new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040-0001-new_Command11 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040-0001-Construct_Command12 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040-0001-SetRequiredDisplayMode_Command13 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040-0001-SetBackgroundColor_Command14 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND scrdev new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040-0001-new_Command18 - COMMAND scrdev Construct - COMMAND scrdev GetNearestFontToDesignHeightInTwips GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040-0001-GetNearestFontToDesignHeightInTwips_Command20 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040-0001-CommandReply_Command21 - COMMAND !Error=-4 animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040-0001-CommandReply_Command22 - //COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040-0001-CommandReply_Command23 - COMMAND scrdev ~ - COMMAND anim Destroy - COMMAND animformc Destroy - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040 - - -START_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0041 -//!@SYMTestCaseID GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0041 -//!@SYMAPI MAnimGeneralFunctions::CloseFont(CFbsFont ptr) -//!@SYMAuthor Yue Zhang -//!@SYMCreationDate 11-04-2008 -//!@SYMTestCaseDesc The client sends command and a font handle to animation DLL to call DuplicateFont function, and then try to draw the font,after that, close the font. -//!@SYMTestActions 1.Create and connect a RWsSession. -//! 2.Create and construct RWindowGroup and RWindow. -//! 3.Activate the RWindow. -//! 4.SetAutoFlush to TRUE for the RWsSession. -//! 5.Create a RAnimDll object and Load an animation DLL. -//! 6.Create a RAnim object by using RAnimDll object. -//! 7.Create an instance of RAnimForMClass . -//! 8.Complete construction of the RAnim based on the created RWindow. -//! 9.Create CWsScreenDevice object and construct it. -//! 10.Create CWindowGc of CWsScreenDevice. -//! 11.Set required display mode of RWindow object. -//! 12.Set background color of RWindow object. -//! 13.Create a TFontSpec object with the proper font name and height. -//! 14.Create a CFont object using GetNearestFontInTwips of CWsScreenDevice object. -//! 15.Send ECmdAnimCloseFont command to plugin Dll with the font's handle. -//! 16.Close and destroy all the related objects. -//!@SYMTestStatus Implemented -//!@SYMTestPriority High -//!@SYMTestExpectedResults In step 15,CloseFont function should be executed successfully. -//!@SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT CFbsFont font - COMMAND ws new - COMMAND ws Connect - COMMAND wingp new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0041-0001-new_Command03 - COMMAND wingp Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0041-0001-Construct_Command04 - COMMAND win new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0041-0001-new_Command05 - COMMAND win Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0041-0001-Construct_Command06 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND ws SetAutoFlush GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0041-0001-SetAutoFlush_Command08 - COMMAND animdll new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0041-0001-new_Command09 - COMMAND animdll Load GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0041-0001-Load_Command10 - COMMAND anim new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0041-0001-new_Command11 - COMMAND animformc new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0041-0001-new_Command12 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0041-0001-Construct_Command13 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0041-0001-SetRequiredDisplayMode_Command14 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0041-0001-SetBackgroundColor_Command15 - COMMAND scrdev new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0041-0001-new_Command16 - COMMAND scrdev Construct - COMMAND scrdev GetNearestFontToDesignHeightInTwips GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0041-0001-GetNearestFontToDesignHeightInTwips_Command18 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0041-0001-CommandReply_Command19 - COMMAND scrdev ~ - COMMAND anim Destroy - COMMAND animformc Destroy - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0041 - - -START_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0042 -//!@SYMTestCaseID GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0042 -//!@SYMAPI MAnimGeneralFunctions::ReplyBuf(const TDesC8 {ref}) -//!@SYMAuthor Cherry Song -//!@SYMCreationDate 23-04-2008 -//!@SYMTestCaseDesc The client sends command ECmdGeneralReplyBuf8 to animation DLL by CommandReply, and then check if the returned result is the expected one. -//!@SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Activate the RWindow. -//! 4. SetAutoFlush to TRUE for the RWsSession. -//! 5. Create a RAnimDll and Load an animation DLL. -//! 6. Create a RAnim by using RAnimDll object. -//! 7. Create an instance of RAnimForMClass . -//! 8. Complete construction of the RAnim based on the created RWindow. -//! 9. Send ECmdGeneralReplyBuf8 with the descriptor usded by ReplyBuf() to animation DLL by CommandReply. -//! 9.1 In wrapper,set the slot 1 and slot 2 of IpcArgs associated with different TBuf8 descriptor. -//! 9.2 The wrapper check the slot 1 of IpcArgs is the same with the descriptor sent to animation DLL, and the one in slot 2 of the IpcArgs does not change. -//! 10. Destroy RAnim and RAnimForMClass. -//! 11. Destroy RAnimDll. -//! 12. Close RWsSession ,RWindowGroup and RWindow. -//!@SYMTestStatus Implemented -//!@SYMTestPriority High -//!@SYMTestExpectedResults After calling CommandReply(),the descriptor in IpcArgs slot 1 is the same with the descriptor sent to animation DLL and the one in IpcArgs slot 2 does not change. -//!@SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingp new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0042-0001-new_Command03 - COMMAND wingp Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0042-0001-Construct_Command04 - COMMAND win new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0042-0001-new_Command05 - COMMAND win Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0042-0001-Construct_Command06 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND ws SetAutoFlush GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0042-0001-SetAutoFlush_Command08 - COMMAND animdll new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0042-0001-new_Command09 - COMMAND animdll Load GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0042-0001-Load_Command10 - COMMAND anim new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0042-0001-new_Command11 - COMMAND animformc new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0042-0001-new_Command12 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0042-0001-Construct_Command13 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0042-0001-CommandReply_Command14 - COMMAND anim Destroy - COMMAND animformc Destroy - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0042 - - -START_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0043 -//!@SYMTestCaseID GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0043 -//!@SYMAPI MAnimGeneralFunctions::ReplyBuf(const TDesC16 {ref}) -//!@SYMAuthor Cherry Song -//!@SYMCreationDate 23-04-2008 -//!@SYMTestCaseDesc The client sends command ECmdGeneralReplyBuf16 to animation DLL by CommandReply, and then check if the returned result is the expected one. -//!@SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Activate the RWindow. -//! 4. SetAutoFlush to TRUE for the RWsSession. -//! 5. Create a RAnimDll and Load an animation DLL. -//! 6. Create a RAnim by using RAnimDll object. -//! 7. Create an instance of RAnimForMClass . -//! 8. Complete construction of the RAnim based on the created RWindow. -//! 9. Send ECmdGeneralReplyBuf16 with the descriptor usded by ReplyBuf() to animation DLL by CommandReply. -//! 9.1 In wrapper,set the slot 1 and slot 2 of IpcArgs associated with different TBuf16 descriptor. -//! 9.2 The wrapper check the descriptor in IpcArgs slot 1 is the same with the descriptor sent to animation DLL,and the one in slot 2 of the IpcArgs does not change. -//! 10. Destroy RAnim and RAnimForMClass. -//! 11. Destroy RAnimDll. -//! 12. Close RWsSession ,RWindowGroup and RWindow. -//!@SYMTestStatus Implemented -//!@SYMTestPriority High -//!@SYMTestExpectedResults After calling CommandReply(),the descriptor in IpcArgs slot 1 is the same with the descriptor sent to animation DLL and the one in IpcArgs slot 2 does not change. -//!@SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingp new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0043-0001-new_Command03 - COMMAND wingp Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0043-0001-Construct_Command04 - COMMAND win new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0043-0001-new_Command05 - COMMAND win Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0043-0001-Construct_Command06 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND ws SetAutoFlush GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0043-0001-SetAutoFlush_Command08 - COMMAND animdll new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0043-0001-new_Command09 - COMMAND animdll Load GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0043-0001-Load_Command10 - COMMAND anim new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0043-0001-new_Command11 - COMMAND animformc new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0043-0001-new_Command12 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0043-0001-Construct_Command13 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0043-0001-CommandReply_Command14 - COMMAND anim Destroy - COMMAND animformc Destroy - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0043 - - -START_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0044 -//!@SYMTestCaseID GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0044 -//!@SYMAPI MAnimGeneralFunctions::SystemTime() -//!@SYMAuthor Cherry Song -//!@SYMCreationDate 24/04/2008 -//!@SYMTestCaseDesc Set syncmode to ESyncDay, get the system time as it was when Animate() was last called. -//!@SYMTestActions 1.Create and connect a RWsSession. -//! 2.Create and construct RWindowGroup and RWindow. -//! 3.Activate the RWindow. -//! 4.SetAutoFlush to TRUE for the RWsSession. -//! 5.Create a RAnimDll object and Load an animation DLL. -//! 6.Create a RAnim object by using RAnimDll object. -//! 7.Create an instance of RAnimForMClass . -//! 8.Complete construction of the RAnim based on the created RWindow. -//! 9.Send command ECmdGeneralSystemTime with ESyncDay to animation DLL by CommandReply. -//! 9.1 Animation DLL verifies the behavior of API. -//! 9.2 Wrapper checks the return value of step 10 is 1 or not. -//! 10.Destroy RAnim and RAnimForMClass. -//! 11.Destroy RAnimDll. -//! 12.Close RWsSession ,RWindowGroup and RWindow. -//!@SYMTestStatus Implemented -//!@SYMTestPriority High -//!@SYMTestExpectedResults Step 9 return 1 -//!@SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingp new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0044-0001-new_Command03 - COMMAND wingp Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0044-0001-Construct_Command04 - COMMAND win new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0044-0001-new_Command05 - COMMAND win Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0044-0001-Construct_Command06 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND ws SetAutoFlush GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0044-0001-SetAutoFlush_Command08 - COMMAND animdll new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0044-0001-new_Command09 - COMMAND animdll Load GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0044-0001-Load_Command10 - COMMAND anim new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0044-0001-new_Command11 - COMMAND animformc new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0044-0001-new_Command12 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0044-0001-Construct_Command13 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0044-0001-CommandReply_Command14 - COMMAND anim Destroy - COMMAND animformc Destroy - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0044 - - -START_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0045 -//!@SYMTestCaseID GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0045 -//!@SYMAPI MAnimGeneralFunctions::SystemTime() -//!@SYMAuthor Cherry Song -//!@SYMCreationDate 24/04/2008 -//!@SYMTestCaseDesc Set syncmode to ESyncMinute, get the system time as it was when Animate() was last called. -//!@SYMTestActions 1.Create and connect a RWsSession. -//! 2.Create and construct RWindowGroup and RWindow. -//! 3.Activate the RWindow. -//! 4.SetAutoFlush to TRUE for the RWsSession. -//! 5.Create a RAnimDll object and Load an animation DLL. -//! 6.Create a RAnim object by using RAnimDll object. -//! 7.Create an instance of RAnimForMClass . -//! 8.Complete construction of the RAnim based on the created RWindow. -//! 9.Send command ECmdGeneralSystemTime with ESyncMinute to animation DLL by CommandReply. -//! 9.1 Animation DLL verifies the behavior of API. -//! 9.2 Wrapper checks the return value of step 10 is 1 or not. -//! 10.Destroy RAnim and RAnimForMClass. -//! 11.Destroy RAnimDll. -//! 12.Close RWsSession ,RWindowGroup and RWindow. -//!@SYMTestStatus Implemented -//!@SYMTestPriority High -//!@SYMTestExpectedResults Step 9 return 1 -//!@SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingp new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0045-0001-new_Command03 - COMMAND wingp Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0045-0001-Construct_Command04 - COMMAND win new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0045-0001-new_Command05 - COMMAND win Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0045-0001-Construct_Command06 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND ws SetAutoFlush GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0045-0001-SetAutoFlush_Command08 - COMMAND animdll new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0045-0001-new_Command09 - COMMAND animdll Load GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0045-0001-Load_Command10 - COMMAND anim new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0045-0001-new_Command11 - COMMAND animformc new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0045-0001-new_Command12 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0045-0001-Construct_Command13 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0045-0001-CommandReply_Command14 - COMMAND anim Destroy - COMMAND animformc Destroy - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0045 - - -START_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0046 -//!@SYMTestCaseID GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0046 -//!@SYMAPI MAnimGeneralFunctions::SystemTime() -//!@SYMAuthor Cherry Song -//!@SYMCreationDate 24/04/2008 -//!@SYMTestCaseDesc Set syncmode to ESyncSecond, get the system time as it was when Animate() was last called. -//!@SYMTestActions 1.Create and connect a RWsSession. -//! 2.Create and construct RWindowGroup and RWindow. -//! 3.Activate the RWindow. -//! 4.SetAutoFlush to TRUE for the RWsSession. -//! 5.Create a RAnimDll object and Load an animation DLL. -//! 6.Create a RAnim object by using RAnimDll object. -//! 7.Create an instance of RAnimForMClass . -//! 8.Complete construction of the RAnim based on the created RWindow. -//! 9.Send command ECmdGeneralSystemTime with ESyncSecond to animation DLL by CommandReply. -//! 9.1 Animation DLL verifies the behavior of API. -//! 9.2 Wrapper checks the return value of step 10 is 1 or not. -//! 10.Destroy RAnim and RAnimForMClass. -//! 11.Destroy RAnimDll. -//! 12.Close RWsSession ,RWindowGroup and RWindow. -//!@SYMTestStatus Implemented -//!@SYMTestPriority High -//!@SYMTestExpectedResults Step 9 return 1 -//!@SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingp new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0046-0001-new_Command03 - COMMAND wingp Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0046-0001-Construct_Command04 - COMMAND win new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0046-0001-new_Command05 - COMMAND win Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0046-0001-Construct_Command06 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND ws SetAutoFlush GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0046-0001-SetAutoFlush_Command08 - COMMAND animdll new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0046-0001-new_Command09 - COMMAND animdll Load GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0046-0001-Load_Command10 - COMMAND anim new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0046-0001-new_Command11 - COMMAND animformc new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0046-0001-new_Command12 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0046-0001-Construct_Command13 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0046-0001-CommandReply_Command14 - COMMAND anim Destroy - COMMAND animformc Destroy - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0046 - - -START_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0047 -//!@SYMTestCaseID GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0047 -//!@SYMAPI MAnimGeneralFunctions::SystemTime() -//!@SYMAuthor Cherry Song -//!@SYMCreationDate 24/04/2008 -//!@SYMTestCaseDesc Set syncmode to ESyncFlash, get the system time as it was when Animate() was last called. -//!@SYMTestActions 1.Create and connect a RWsSession. -//! 2.Create and construct RWindowGroup and RWindow. -//! 3.Activate the RWindow. -//! 4.SetAutoFlush to TRUE for the RWsSession. -//! 5.Create a RAnimDll object and Load an animation DLL. -//! 6.Create a RAnim object by using RAnimDll object. -//! 7.Create an instance of RAnimForMClass . -//! 8.Complete construction of the RAnim based on the created RWindow. -//! 9.Send command ECmdGeneralSystemTime with ESyncFlash to animation DLL by CommandReply. -//! 9.1 Animation DLL verifies the behavior of API. -//! 9.2 Wrapper checks the return value of step 10 is 1 or not. -//! 10.Destroy RAnim and RAnimForMClass. -//! 11.Destroy RAnimDll. -//! 12.Close RWsSession ,RWindowGroup and RWindow. -//!@SYMTestStatus Implemented -//!@SYMTestPriority High -//!@SYMTestExpectedResults Step 9 return 1 -//!@SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingp new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0047-0001-new_Command03 - COMMAND wingp Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0047-0001-Construct_Command04 - COMMAND win new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0047-0001-new_Command05 - COMMAND win Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0047-0001-Construct_Command06 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND ws SetAutoFlush GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0047-0001-SetAutoFlush_Command08 - COMMAND animdll new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0047-0001-new_Command09 - COMMAND animdll Load GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0047-0001-Load_Command10 - COMMAND anim new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0047-0001-new_Command11 - COMMAND animformc new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0047-0001-new_Command12 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0047-0001-Construct_Command13 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0047-0001-CommandReply_Command14 - COMMAND anim Destroy - COMMAND animformc Destroy - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0047 - - -START_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0048 -//!@SYMTestCaseID GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0048 -//!@SYMAPI MAnimGeneralFunctions::SystemTime() -//!@SYMAuthor Cherry Song -//!@SYMCreationDate 24/04/2008 -//!@SYMTestCaseDesc Set syncmode to ESyncNone and setinterval to 4, get the system time as it was when Animate() was last called. -//!@SYMTestActions 1.Create and connect a RWsSession. -//! 2.Create and construct RWindowGroup and RWindow. -//! 3.Activate the RWindow. -//! 4.SetAutoFlush to TRUE for the RWsSession. -//! 5.Create a RAnimDll object and Load an animation DLL. -//! 6.Create a RAnim object by using RAnimDll object. -//! 7.Create an instance of RAnimForMClass . -//! 8.Complete construction of the RAnim based on the created RWindow. -//! 9.Send command ECmdGeneralSystemTime with ESyncNone to animation DLL by CommandReply. -//! 9.1 Animation DLL verifies the behavior of API. -//! 9.2 Wrapper checks the return value of step 10 is 1 or not. -//! 10.Destroy RAnim and RAnimForMClass. -//! 11.Destroy RAnimDll. -//! 12.Close RWsSession ,RWindowGroup and RWindow. -//!@SYMTestStatus Implemented -//!@SYMTestPriority High -//!@SYMTestExpectedResults Step 9 return 1 -//!@SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingp new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0048-0001-new_Command03 - COMMAND wingp Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0048-0001-Construct_Command04 - COMMAND win new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0048-0001-new_Command05 - COMMAND win Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0048-0001-Construct_Command06 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND ws SetAutoFlush GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0048-0001-SetAutoFlush_Command08 - COMMAND animdll new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0048-0001-new_Command09 - COMMAND animdll Load GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0048-0001-Load_Command10 - COMMAND anim new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0048-0001-new_Command11 - COMMAND animformc new GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0048-0001-new_Command12 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0048-0001-Construct_Command13 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0048-0001-CommandReply_Command14 - COMMAND anim Destroy - COMMAND animformc Destroy - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0048 - - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-AnimGfwe-PublicAPI.script --- a/graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-AnimGfwe-PublicAPI.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1004 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// -//! @file -//! @SYMTestSuiteName GRAPHICS-WSERV-AnimGfwe-PublicApi -//! @SYMScriptTestEnvironment This test script requires a basic ROM. - -/////////////////////////////////////////////////////////////////////////////// -// GRAPHICS-WSERV-AnimGfwe-PublicApi.script -// -// Tests all public elements of the CFrame class -// as a means of confidence that the API works as expected. -// -// The purpose is to provide a regression test suite of PublishedAll APIs for -// MAnimGeneralFunctionsWindowExtension related classes. -// Negative testing is performed to confirm that correct errors are returned -// when incorrect parameters are given. -// -// The tests are fully automated. -/////////////////////////////////////////////////////////////////////////////// - - -LOAD_SUITE T_GraphicsWservAPI - -// **************************************************************************** -// MAnimGeneralFunctionsWindowExtension -// **************************************************************************** - -START_TESTCASE GRAPHICS-WSERV-AnimGfwe-PublicApi-0001 -//! @SYMTestCaseID GRAPHICS-WSERV-AnimGfwe-PublicApi-0001 -//! @SYMAPI MAnimGeneralFunctionsWindowExtension::Screens() -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 10-04-2008 -//! @SYMTestCaseDesc Create animation client object and send command to plugin to get total number of screens. -//! @SYMTestActions 1.Create and connect a RWsSession. -//! 2.Create and construct RWindowGroup and RWindow. -//! 3.Activate the RWindow. -//! 4.Create a RAnimDll object and load the animation plugin DLL. -//! 5.Create a RAnim object by using RAnimDll object. -//! 6.Create a RAnimForMClass object and get wrapped object from RAnim. -//! 7.Completes construction of the object based on a window device, and creates the server-side animation system. -//! 8.Send ECmdGfweScreens to then animation plugin by CommandReply to get total number of screens. -//! 8.1 Plugin get total number of screens and return it. -//! 8.2 Wrapper check number of screens by RWsSession::NumberOfScreens(). -//! 9.Close RAnimForMClass. -//! 10.Close RAnim. -//! 11.Destroy RAnimDll. -//! 12.Close RWsSession, RWindowGroup and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Screens function returns right numbers of screens. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGfwe-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-AnimGfwe-PublicApi-0001-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-AnimGfwe-PublicApi-0001-0001-Construct_command004 - COMMAND win new GRAPHICS-WSERV-AnimGfwe-PublicApi-0001-0001-new_command005 - COMMAND win Construct GRAPHICS-WSERV-AnimGfwe-PublicApi-0001-0001-Construct_command006 - COMMAND win Activate - COMMAND animdll new GRAPHICS-WSERV-AnimGfwe-PublicApi-0001-0001-new_command008 - COMMAND animdll Load GRAPHICS-WSERV-AnimGfwe-PublicApi-0001-0001-Load_command009 - COMMAND anim new GRAPHICS-WSERV-AnimGfwe-PublicApi-0001-0001-new_command010 - COMMAND animformc new GRAPHICS-WSERV-AnimGfwe-PublicApi-0001-0001-new_command011 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGfwe-PublicApi-0001-0001-Construct_command012 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGfwe-PublicApi-0001-0001-CommandReply_command013 - COMMAND animformc Close - COMMAND anim Close - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimGfwe-PublicApi-0001 - - -START_TESTCASE GRAPHICS-WSERV-AnimGfwe-PublicApi-0002 -//! @SYMTestCaseID GRAPHICS-WSERV-AnimGfwe-PublicApi-0002 -//! @SYMAPI MAnimGeneralFunctionsWindowExtension::FocusScreens() -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 10-04-2008 -//! @SYMTestCaseDesc Create animation client object and send command to plugin to get the number of the screen which is currently in focus. -//! @SYMTestActions 1.Create and connect a RWsSession. -//! 2.Create and construct RWindowGroup and RWindow. -//! 3.Activate the RWindow. -//! 4.Create a RAnimDll object and load the animation plugin DLL. -//! 5.Create a RAnim object by using RAnimDll object. -//! 6.Create a RAnimForMClass object and get wrapped object from RAnim. -//! 7.Completes construction of the object based on a window device, and creates the server-side animation system. -//! 8.Send ECmdGfweFocusScreens to the animaion plugin by CommandReply to get focused screen number. -//! 8.1 Plugin get focused screen number and return it. -//! 8.2 Wrapper check focused screen number by RWsSession::GetFocusScreen(). -//! 9.Close RAnimForMClass. -//! 11.Close RAnim. -//! 12.Destroy RAnimDll. -//! 13.Close RWsSession, RWindowGroup and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get focused screen as expected. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGfwe-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-AnimGfwe-PublicApi-0002-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-AnimGfwe-PublicApi-0002-0001-Construct_command004 - COMMAND win new GRAPHICS-WSERV-AnimGfwe-PublicApi-0002-0001-new_command005 - COMMAND win Construct GRAPHICS-WSERV-AnimGfwe-PublicApi-0002-0001-Construct_command006 - COMMAND win Activate - COMMAND animdll new GRAPHICS-WSERV-AnimGfwe-PublicApi-0002-0001-new_command008 - COMMAND animdll Load GRAPHICS-WSERV-AnimGfwe-PublicApi-0002-0001-Load_command009 - COMMAND anim new GRAPHICS-WSERV-AnimGfwe-PublicApi-0002-0001-new_command010 - COMMAND animformc new GRAPHICS-WSERV-AnimGfwe-PublicApi-0002-0001-new_command011 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGfwe-PublicApi-0002-0001-Construct_command012 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGfwe-PublicApi-0002-0001-CommandReply_command013 - COMMAND animformc Close - COMMAND anim Close - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimGfwe-PublicApi-0002 - - -START_TESTCASE GRAPHICS-WSERV-AnimGfwe-PublicApi-0003 -//! @SYMTestCaseID GRAPHICS-WSERV-AnimGfwe-PublicApi-0003 -//! @SYMAPI MAnimGeneralFunctionsWindowExtension::SetFocusScreen(TInt) -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 10-04-2008 -//! @SYMTestCaseDesc Create animation client object and send command to plugin to changes the focused screen. -//! @SYMTestActions 1.Create and connect a RWsSession. -//! 2.Create and construct RWindowGroup and RWindow. -//! 3.Activate the RWindow. -//! 4.Create a RAnimDll object and load the animation plugin DLL. -//! 5.Create a RAnim object by using RAnimDll object. -//! 6.Create a RAnimForMClass object and get wrapped object from RAnim. -//! 7.Completes construction of the object based on a window device, and creates the server-side animation system. -//! 8.Send ECmdGfweSetFocusScreen to the animaion plugin by CommandReply to set focused screen. -//! 9.Send ECmdGfweFocusScreens to the animaion plugin by CommandReply to get focused screen number. -//! 9.1 Plugin get focused screen number and return it. -//! 9.2 Wrapper check what CommandReply return is set screen number or not. -//! 10.Close RAnimForMClass. -//! 11.Close RAnim. -//! 12.Destroy RAnimDll. -//! 13.Close RWsSession, RWindowGroup and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Set focused screen as expected. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGfwe-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-AnimGfwe-PublicApi-0003-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-AnimGfwe-PublicApi-0003-0001-Construct_command004 - COMMAND win new GRAPHICS-WSERV-AnimGfwe-PublicApi-0003-0001-new_command005 - COMMAND win Construct GRAPHICS-WSERV-AnimGfwe-PublicApi-0003-0001-Construct_command006 - COMMAND win Activate - COMMAND animdll new GRAPHICS-WSERV-AnimGfwe-PublicApi-0003-0001-new_command008 - COMMAND animdll Load GRAPHICS-WSERV-AnimGfwe-PublicApi-0003-0001-Load_command009 - COMMAND anim new GRAPHICS-WSERV-AnimGfwe-PublicApi-0003-0001-new_command010 - COMMAND animformc new GRAPHICS-WSERV-AnimGfwe-PublicApi-0003-0001-new_command011 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGfwe-PublicApi-0003-0001-Construct_command012 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGfwe-PublicApi-0003-0001-CommandReply_command013 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGfwe-PublicApi-0003-0001-CommandReply_command014 - COMMAND animformc Close - COMMAND anim Close - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimGfwe-PublicApi-0003 - - -START_TESTCASE GRAPHICS-WSERV-AnimGfwe-PublicApi-0004 -//! @SYMTestCaseID GRAPHICS-WSERV-AnimGfwe-PublicApi-0004 -//! @SYMAPI MAnimGeneralFunctionsWindowExtension::WindowGroups(TInt) -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 10-04-2008 -//! @SYMTestCaseDesc Create animation client object and send command to plugin to get the number of window groups available for the specified screen. -//! @SYMTestActions 1.Create and connect a RWsSession. -//! 2.Create and construct RWindowGroup and RWindow. -//! 3.Activate the RWindow. -//! 4.Create a RAnimDll object and load the animation plugin DLL. -//! 5.Create a RAnim object by using RAnimDll object. -//! 6.Create a RAnimForMClass object and get wrapped object from RAnim. -//! 7.Completes construction of the object based on a window device, and creates the server-side animation system. -//! 8.Send ECmdGfweWindowGroups to the animaion plugin by CommandReply to get the number of window groups. -//! 8.1 Plugin get the number of window groups and return it. -//! 8.2 Wrapper check the number of window groups by RWsSession::NumWindowGroups(). -//! 9.Close RAnimForMClass. -//! 11.Close RAnim. -//! 12.Destroy RAnimDll. -//! 13.Close RWsSession, RWindowGroup and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults WindowGroups function get the right number of window groups. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGfwe-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-AnimGfwe-PublicApi-0004-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-AnimGfwe-PublicApi-0004-0001-Construct_command004 - COMMAND win new GRAPHICS-WSERV-AnimGfwe-PublicApi-0004-0001-new_command005 - COMMAND win Construct GRAPHICS-WSERV-AnimGfwe-PublicApi-0004-0001-Construct_command006 - COMMAND win Activate - COMMAND animdll new GRAPHICS-WSERV-AnimGfwe-PublicApi-0004-0001-new_command008 - COMMAND animdll Load GRAPHICS-WSERV-AnimGfwe-PublicApi-0004-0001-Load_command009 - COMMAND anim new GRAPHICS-WSERV-AnimGfwe-PublicApi-0004-0001-new_command010 - COMMAND animformc new GRAPHICS-WSERV-AnimGfwe-PublicApi-0004-0001-new_command011 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGfwe-PublicApi-0004-0001-Construct_command012 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGfwe-PublicApi-0004-0001-CommandReply_command013 - COMMAND animformc Close - COMMAND anim Close - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimGfwe-PublicApi-0004 - - -START_TESTCASE GRAPHICS-WSERV-AnimGfwe-PublicApi-0005 -//! @SYMTestCaseID GRAPHICS-WSERV-AnimGfwe-PublicApi-0005 -//! @SYMAPI MAnimGeneralFunctionsWindowExtension::WindowGroupInfo(TWindowGroupInfo{ref},TInt, TInt) -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 10-04-2008 -//! @SYMTestCaseDesc Create animation client object and send command to plugin to get window group id. -//! @SYMTestActions 1.Create and connect a RWsSession. -//! 2.Create and construct RWindowGroup and RWindow. -//! 3.Activate the RWindow. -//! 4.Create a RAnimDll object and load the animation plugin DLL. -//! 5.Create a RAnim object by using RAnimDll object. -//! 6.Create a RAnimForMClass object and get wrapped object from RAnim. -//! 7.Completes construction of the object based on a window device, and creates the server-side animation system. -//! 8.Send ECmdGfweWindowGroupInfo to the animaion plugin by CommandReply to get window group id. -//! 8.1 Plugin get window group information and return id. -//! 8.2 Wrapper check window group id by RWindowGroup::Identifier(). -//! 9.Close RAnimForMClass. -//! 10. Close RAnim. -//! 11.Destroy RAnimDll. -//! 12.Close RWsSession, RWindowGroup and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults WindowGroupInfo returns true. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGfwe-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-AnimGfwe-PublicApi-0005-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-AnimGfwe-PublicApi-0005-0001-Construct_command004 - COMMAND win new GRAPHICS-WSERV-AnimGfwe-PublicApi-0005-0001-new_command005 - COMMAND win Construct GRAPHICS-WSERV-AnimGfwe-PublicApi-0005-0001-Construct_command006 - COMMAND win Activate - COMMAND animdll new GRAPHICS-WSERV-AnimGfwe-PublicApi-0005-0001-new_command008 - COMMAND animdll Load GRAPHICS-WSERV-AnimGfwe-PublicApi-0005-0001-Load_command009 - COMMAND anim new GRAPHICS-WSERV-AnimGfwe-PublicApi-0005-0001-new_command010 - COMMAND animformc new GRAPHICS-WSERV-AnimGfwe-PublicApi-0005-0001-new_command011 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGfwe-PublicApi-0005-0001-Construct_command012 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGfwe-PublicApi-0005-0001-CommandReply_command013 COMMAND animformc Close - COMMAND anim Close - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimGfwe-PublicApi-0005 - - -START_TESTCASE GRAPHICS-WSERV-AnimGfwe-PublicApi-0006 -//! @SYMTestCaseID GRAPHICS-WSERV-AnimGfwe-PublicApi-0006 -//! @SYMAPI MAnimGeneralFunctionsWindowExtension::WindowGroupInfo(TWindowGroupInfo{ref},TInt, TInt) -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 10-04-2008 -//! @SYMTestCaseDesc Create animation client object whose corresponding RWindowGroup can't receive focus and has a name. -//! Then send command to plugin to get window group id. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct a parent RWindowGroup. -//! 3. Create and construct a RWindowGroup as child window group. -//! 4. Disable receipt of focus on the child RWindowGroup. -//! 5. Set the child RWindowGroup's name. -//! 6. Create and construct a RWindow as the child of the second RWindowGroup. -//! 7. Activate the RWindow. -//! 8. Create a RAnimDll object and load the animation plugin DLL. -//! 9. Create a RAnim object by using RAnimDll object. -//! 10. Create a RAnimForMClass object and get wrapped object from RAnim. -//! 11. Completes construction of the object based on a window device, and creates the server-side animation system. -//! 12. Send ECmdGfweWindowGroupInfo to the animaion plugin by CommandReply to get window group id. -//! 12.1 Plugin get window group information and return id. -//! 12.2 Wrapper check window group id by RWindowGroup::Identifier(). -//! 13. Close RAnimForMClass. -//! 14. Close RAnim. -//! 15. Destroy RAnimDll. -//! 16. Close RWsSession, two RWindowGroup and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults WindowGroupInfo returns true. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGfwe-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindowGroup wingrp1 - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-AnimGfwe-PublicApi-0006-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-AnimGfwe-PublicApi-0006-0001-Construct_command004 - COMMAND wingrp1 new GRAPHICS-WSERV-AnimGfwe-PublicApi-0006-0001-new_command005 - COMMAND wingrp1 ConstructChildApp GRAPHICS-WSERV-AnimGfwe-PublicApi-0006-0001-ConstructChildApp_command006 - COMMAND wingrp1 EnableReceiptOfFocus GRAPHICS-WSERV-AnimGfwe-PublicApi-0006-0001-EnableReceiptOfFocus_command007 - COMMAND wingrp1 SetName GRAPHICS-WSERV-AnimGfwe-PublicApi-0006-0001-SetName_command008 - COMMAND win new GRAPHICS-WSERV-AnimGfwe-PublicApi-0006-0001-new_command009 - COMMAND win Construct GRAPHICS-WSERV-AnimGfwe-PublicApi-0006-0001-Construct_command010 - COMMAND win Activate - COMMAND animdll new GRAPHICS-WSERV-AnimGfwe-PublicApi-0006-0001-new_command012 - COMMAND animdll Load GRAPHICS-WSERV-AnimGfwe-PublicApi-0006-0001-Load_command013 - COMMAND anim new GRAPHICS-WSERV-AnimGfwe-PublicApi-0006-0001-new_command014 - COMMAND animformc new GRAPHICS-WSERV-AnimGfwe-PublicApi-0006-0001-new_command015 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGfwe-PublicApi-0006-0001-Construct_command016 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGfwe-PublicApi-0006-0001-CommandReply_command017 - COMMAND animformc Close - COMMAND anim Close - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingrp1 Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimGfwe-PublicApi-0006 - - -START_TESTCASE GRAPHICS-WSERV-AnimGfwe-PublicApi-0007 -//! @SYMTestCaseID GRAPHICS-WSERV-AnimGfwe-PublicApi-0007 -//! @SYMAPI MAnimGeneralFunctionsWindowExtension::WindowGroupInfo(TWindowGroupInfo{ref},TInt, TInt) -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 10-04-2008 -//! @SYMTestCaseDesc Create animation client object and send command to plugin with non-exist ordinal position to get window group information. -//! @SYMTestActions 1.Create and connect a RWsSession. -//! 2.Create and construct RWindowGroup and RWindow. -//! 3.Activate the RWindow. -//! 4.Create a RAnimDll object and load the animation plugin DLL. -//! 5.Create a RAnim object by using RAnimDll object. -//! 6.Create a RAnimForMClass object and get wrapped object from RAnim. -//! 7.Completes construction of the object based on a window device, and creates the server-side animation system. -//! 8.Send ECmdGfweWindowGroupInfo to the animaion plugin by CommandReply with non-exist ordinal position to get window group information. -//! 8.1 Wrapper check CommandReply return false or not. -//! 9.Close RAnimForMClass. -//! 10. Close RAnim. -//! 11.Destroy RAnimDll. -//! 12.Close RWsSession, RWindowGroup and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults WindowGroupInfo returns false. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGfwe-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-AnimGfwe-PublicApi-0007-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-AnimGfwe-PublicApi-0007-0001-Construct_command004 - COMMAND win new GRAPHICS-WSERV-AnimGfwe-PublicApi-0007-0001-new_command005 - COMMAND win Construct GRAPHICS-WSERV-AnimGfwe-PublicApi-0007-0001-Construct_command006 - COMMAND win Activate - COMMAND animdll new GRAPHICS-WSERV-AnimGfwe-PublicApi-0007-0001-new_command008 - COMMAND animdll Load GRAPHICS-WSERV-AnimGfwe-PublicApi-0007-0001-Load_command009 - COMMAND anim new GRAPHICS-WSERV-AnimGfwe-PublicApi-0007-0001-new_command010 - COMMAND animformc new GRAPHICS-WSERV-AnimGfwe-PublicApi-0007-0001-new_command011 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGfwe-PublicApi-0007-0001-Construct_command012 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGfwe-PublicApi-0007-0001-CommandReply_command013 - COMMAND animformc Close - COMMAND anim Close - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK - -END_TESTCASE GRAPHICS-WSERV-AnimGfwe-PublicApi-0007 - - -START_TESTCASE GRAPHICS-WSERV-AnimGfwe-PublicApi-0008 -//! @SYMTestCaseID GRAPHICS-WSERV-AnimGfwe-PublicApi-0008 -//! @SYMAPI MAnimGeneralFunctionsWindowExtension::WindowGroupName(TPtrC{ref}, TInt, TInt) -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 10-04-2008 -//! @SYMTestCaseDesc Create animation client object and send command to plugin to get window group name. -//! @SYMTestActions 1.Create and connect a RWsSession. -//! 2.Create and construct RWindowGroup and RWindow. -//! 3.Activate the RWindow. -//! 4.Create a RAnimDll object and load the animation plugin DLL. -//! 5.Create a RAnim object by using RAnimDll object. -//! 6.Create a RAnimForMClass object and get wrapped object from RAnim. -//! 7.Completes construction of the object based on a window device, and creates the server-side animation system. -//! 8.Send ECmdGfweWindowGroupName to the animaion plugin by CommandReply to get window group name. -//! 8.1 Plugin get window group name and return it by IPC slot 3. -//! 8.2 Wrapper check window group name by RWindowGroup::Name(). -//! 9.Close RAnimForMClass. -//! 10. Close RAnim. -//! 11.Destroy RAnimDll. -//! 10.Close RWsSession, RWindowGroup and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults WindowGroupName returns correct window group name. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGfwe-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-AnimGfwe-PublicApi-0008-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-AnimGfwe-PublicApi-0008-0001-Construct_command004 - COMMAND win new GRAPHICS-WSERV-AnimGfwe-PublicApi-0008-0001-new_command005 - COMMAND win Construct GRAPHICS-WSERV-AnimGfwe-PublicApi-0008-0001-Construct_command006 - COMMAND win Activate - COMMAND animdll new GRAPHICS-WSERV-AnimGfwe-PublicApi-0008-0001-new_command008 - COMMAND animdll Load GRAPHICS-WSERV-AnimGfwe-PublicApi-0008-0001-Load_command009 - COMMAND anim new GRAPHICS-WSERV-AnimGfwe-PublicApi-0008-0001-new_command010 - COMMAND animformc new GRAPHICS-WSERV-AnimGfwe-PublicApi-0008-0001-new_command011 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGfwe-PublicApi-0008-0001-Construct_command012 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGfwe-PublicApi-0008-0001-CommandReply_command013 - COMMAND animformc Close - COMMAND anim Close - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimGfwe-PublicApi-0008 - - -START_TESTCASE GRAPHICS-WSERV-AnimGfwe-PublicApi-0009 -//! @SYMTestCaseID GRAPHICS-WSERV-AnimGfwe-PublicApi-0009 -//! @SYMAPI MAnimGeneralFunctionsWindowExtension::WindowGroupName(TPtrC{ref}, TInt, TInt) -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 10-04-2008 -//! @SYMTestCaseDesc Create animation client object whose corresponding RWindowGroup has a name. -//! Then send command to plugin to get window group name. -//! @SYMTestActions 1.Create and connect a RWsSession. -//! 2.Create and construct RWindowGroup and RWindow. -//! 3.Activate the RWindow. -//! 4.Create a RAnimDll object and load the animation plugin DLL. -//! 5.Create a RAnim object by using RAnimDll object. -//! 6.Create a RAnimForMClass object and get wrapped object from RAnim. -//! 7.Completes construction of the object based on a window device, and creates the server-side animation system. -//! 8.Set the window group's name. -//! 9.Send ECmdGfweWindowGroupName to the animaion plugin by CommandReply to get window group name. -//! 9.1 Plugin get window group name and return it by IPC slot 3. -//! 9.2 Wrapper check window group name by RWindowGroup::Name(). -//! 10.Close RAnimForMClass. -//! 11.Close RAnim. -//! 12.Destroy RAnimDll. -//! 13.Close RWsSession, RWindowGroup and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults WindowGroupName returns correct window group name. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGfwe-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-AnimGfwe-PublicApi-0009-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-AnimGfwe-PublicApi-0009-0001-Construct_command004 - COMMAND wingrp SetName GRAPHICS-WSERV-AnimGfwe-PublicApi-0009-0001-SetName_command005 - COMMAND win new GRAPHICS-WSERV-AnimGfwe-PublicApi-0009-0001-new_command006 - COMMAND win Construct GRAPHICS-WSERV-AnimGfwe-PublicApi-0009-0001-Construct_command007 - COMMAND win Activate - COMMAND animdll new GRAPHICS-WSERV-AnimGfwe-PublicApi-0009-0001-new_command009 - COMMAND animdll Load GRAPHICS-WSERV-AnimGfwe-PublicApi-0009-0001-Load_command010 - COMMAND anim new GRAPHICS-WSERV-AnimGfwe-PublicApi-0009-0001-new_command011 - COMMAND animformc new GRAPHICS-WSERV-AnimGfwe-PublicApi-0009-0001-new_command012 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGfwe-PublicApi-0009-0001-Construct_command013 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGfwe-PublicApi-0009-0001-CommandReply_command014 - COMMAND animformc Close - COMMAND anim Close - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimGfwe-PublicApi-0009 - - -START_TESTCASE GRAPHICS-WSERV-AnimGfwe-PublicApi-0010 -//! @SYMTestCaseID GRAPHICS-WSERV-AnimGfwe-PublicApi-0010 -//! @SYMAPI MAnimGeneralFunctionsWindowExtension::WindowGroupName(TPtrC{ref}, TInt, TInt) -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 10-04-2008 -//! @SYMTestCaseDesc Create animation client object and send command to plugin with non-exist ordinal position to get window group name. -//! @SYMTestActions 1.Create and connect a RWsSession. -//! 2.Create and construct RWindowGroup and RWindow. -//! 3.Activate the RWindow. -//! 4.Create a RAnimDll object and load the animation plugin DLL. -//! 5.Create a RAnim object by using RAnimDll object. -//! 6.Create a RAnimForMClass object and get wrapped object from RAnim. -//! 7.Completes construction of the object based on a window device, and creates the server-side animation system. -//! 8.Send ECmdGfweWindowGroupName to the animaion plugin by CommandReply with non-exist screen number to get window group name. -//! 8.1 Wrapper check CommandReply return false or not. -//! 9.Close RAnimForMClass. -//! 10. Close RAnim. -//! 11.Destroy RAnimDll. -//! 12.Close RWsSession, RWindowGroup and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults WindowGroupName returns false. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGfwe-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-AnimGfwe-PublicApi-0010-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-AnimGfwe-PublicApi-0010-0001-Construct_command004 - COMMAND win new GRAPHICS-WSERV-AnimGfwe-PublicApi-0010-0001-new_command005 - COMMAND win Construct GRAPHICS-WSERV-AnimGfwe-PublicApi-0010-0001-Construct_command006 - COMMAND win Activate - COMMAND animdll new GRAPHICS-WSERV-AnimGfwe-PublicApi-0010-0001-new_command008 - COMMAND animdll Load GRAPHICS-WSERV-AnimGfwe-PublicApi-0010-0001-Load_command009 - COMMAND anim new GRAPHICS-WSERV-AnimGfwe-PublicApi-0010-0001-new_command010 - COMMAND animformc new GRAPHICS-WSERV-AnimGfwe-PublicApi-0010-0001-new_command011 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGfwe-PublicApi-0010-0001-Construct_command012 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGfwe-PublicApi-0010-0001-CommandReply_command013 - COMMAND animformc Close - COMMAND anim Close - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK - -END_TESTCASE GRAPHICS-WSERV-AnimGfwe-PublicApi-0010 - - -START_TESTCASE GRAPHICS-WSERV-AnimGfwe-PublicApi-0011 -//! @SYMTestCaseID GRAPHICS-WSERV-AnimGfwe-PublicApi-0011 -//! @SYMAPI MAnimGeneralFunctionsWindowExtension::SetOrdinalPosition(TInt, TInt, TInt) -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 10-04-2008 -//! @SYMTestCaseDesc Create animation client object and send command to plugin to change the ordinal priority of the window group. -//! @SYMTestActions 1.Create and connect a RWsSession. -//! 2.Create and construct RWindowGroup and RWindow. -//! 3.Activate the RWindow. -//! 4.Create a RAnimDll object and load the animation plugin DLL. -//! 5.Create a RAnim object by using RAnimDll object. -//! 6.Create a RAnimForMClass object and get wrapped object from RAnim. -//! 7.Completes construction of the object based on a window device, and creates the server-side animation system. -//! 8.Send ECmdGfweSetOrdinalPosition to the animaion plugin by CommandReply to change the ordinal priority of the window group. -//! 8.1 Plugin change the ordinal position and priority of the window group. -//! 8.2 Wrapper check ordinal priority by RWindowTreeNode::OrdinalPriority(). -//! 9.Close RAnimForMClass. -//! 10.Close RAnim. -//! 11.Destroy RAnimDll. -//! 12.Close RWsSession, RWindowGroup and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults SetOrdinalPosition returns KErrNone. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGfwe-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-AnimGfwe-PublicApi-0011-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-AnimGfwe-PublicApi-0011-0001-Construct_command004 - COMMAND win new GRAPHICS-WSERV-AnimGfwe-PublicApi-0011-0001-new_command005 - COMMAND win Construct GRAPHICS-WSERV-AnimGfwe-PublicApi-0011-0001-Construct_command006 - COMMAND win Activate - COMMAND animdll new GRAPHICS-WSERV-AnimGfwe-PublicApi-0011-0001-new_command008 - COMMAND animdll Load GRAPHICS-WSERV-AnimGfwe-PublicApi-0011-0001-Load_command009 - COMMAND anim new GRAPHICS-WSERV-AnimGfwe-PublicApi-0011-0001-new_command010 - COMMAND animformc new GRAPHICS-WSERV-AnimGfwe-PublicApi-0011-0001-new_command011 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGfwe-PublicApi-0011-0001-Construct_command012 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGfwe-PublicApi-0011-0001-CommandReply_command013 - COMMAND animformc Close - COMMAND anim Close - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK - -END_TESTCASE GRAPHICS-WSERV-AnimGfwe-PublicApi-0011 - - -START_TESTCASE GRAPHICS-WSERV-AnimGfwe-PublicApi-0012 -//! @SYMTestCaseID GRAPHICS-WSERV-AnimGfwe-PublicApi-0012 -//! @SYMAPI MAnimGeneralFunctionsWindowExtension::SetOrdinalPosition(TInt, TInt, TInt) -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 19-05-2008 -//! @SYMTestCaseDesc Create animation client object and send command to plugin to change the ordinal position of the window group with identical priority. -//! @SYMTestActions 1.Create and connect a RWsSession. -//! 2.Create and construct two RWindowGroup. -//! 3.Create and construct a RWindow by using the second RWindowGroup. -//! 4.Activate the RWindow. -//! 5.Create a RAnimDll object and load the animation plugin DLL. -//! 6.Create a RAnim object by using RAnimDll object. -//! 7.Create a RAnimForMClass object and get wrapped object from RAnim. -//! 8.Completes construction of the object based on a window device, and creates the server-side animation system. -//! 9.Get window ordinal position and send ECmdGfweSetOrdinalPosition to the animaion plugin by CommandReply to change the ordinal position of the window group. -//! 9.1 Plugin change the ordinal position and priority of the window group. -//! 9.2 Wrapper check ordinal position by RWindowTreeNode::OrdinalPosition(). -//! 10.Close RAnimForMClass. -//! 11.Close RAnim. -//! 12.Destroy RAnimDll. -//! 13.Close RWsSession, two RWindowGroup and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults SetOrdinalPosition returns KErrNone. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGfwe-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindowGroup wingrp1 - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-AnimGfwe-PublicApi-0012-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-AnimGfwe-PublicApi-0012-0001-Construct_command004 - COMMAND wingrp1 new GRAPHICS-WSERV-AnimGfwe-PublicApi-0012-0001-new_command005 - COMMAND wingrp1 Construct GRAPHICS-WSERV-AnimGfwe-PublicApi-0012-0001-Construct_command006 - COMMAND win new GRAPHICS-WSERV-AnimGfwe-PublicApi-0012-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-AnimGfwe-PublicApi-0012-0001-Construct_command008 - COMMAND win Activate - COMMAND animdll new GRAPHICS-WSERV-AnimGfwe-PublicApi-0012-0001-new_command010 - COMMAND animdll Load GRAPHICS-WSERV-AnimGfwe-PublicApi-0012-0001-Load_command011 - COMMAND anim new GRAPHICS-WSERV-AnimGfwe-PublicApi-0012-0001-new_command012 - COMMAND animformc new GRAPHICS-WSERV-AnimGfwe-PublicApi-0012-0001-new_command013 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGfwe-PublicApi-0012-0001-Construct_command014 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGfwe-PublicApi-0012-0001-CommandReply_command015 - COMMAND animformc Close - COMMAND anim Close - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingrp1 Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK - -END_TESTCASE GRAPHICS-WSERV-AnimGfwe-PublicApi-0012 - - -START_TESTCASE GRAPHICS-WSERV-AnimGfwe-PublicApi-0013 -//! @SYMTestCaseID GRAPHICS-WSERV-AnimGfwe-PublicApi-0013 -//! @SYMAPI MAnimGeneralFunctionsWindowExtension::SetOrdinalPosition(TInt, TInt, TInt) -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 10-04-2008 -//! @SYMTestCaseDesc Negative case,Create animation client object and send command to plugin with non-exist group id to change the ordinal position and priority of the window group. -//! @SYMTestActions 1.Create and connect a RWsSession. -//! 2.Create and construct RWindowGroup and RWindow. -//! 3.Activate the RWindow. -//! 4.Create a RAnimDll object and load the animation plugin DLL. -//! 5.Create a RAnim object by using RAnimDll object. -//! 6.Create a RAnimForMClass object and get wrapped object from RAnim. -//! 7.Completes construction of the object based on a window device, and creates the server-side animation system. -//! 8.Send ECmdGfweSetOrdinalPosition to the animaion plugin by CommandReply with non-exist group id to change the ordinal position and priority of the window group. -//! 9.Close RAnimForMClass. -//! 10.Close RAnim. -//! 11.Destroy RAnimDll. -//! 12.Close RWsSession, RWindowGroup and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults SetOrdinalPosition returns KErrNotFound. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGfwe-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-AnimGfwe-PublicApi-0013-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-AnimGfwe-PublicApi-0013-0001-Construct_command004 - COMMAND win new GRAPHICS-WSERV-AnimGfwe-PublicApi-0013-0001-new_command005 - COMMAND win Construct GRAPHICS-WSERV-AnimGfwe-PublicApi-0013-0001-Construct_command006 - COMMAND win Activate - COMMAND animdll new GRAPHICS-WSERV-AnimGfwe-PublicApi-0013-0001-new_command008 - COMMAND animdll Load GRAPHICS-WSERV-AnimGfwe-PublicApi-0013-0001-Load_command009 - COMMAND anim new GRAPHICS-WSERV-AnimGfwe-PublicApi-0013-0001-new_command010 - COMMAND animformc new GRAPHICS-WSERV-AnimGfwe-PublicApi-0013-0001-new_command011 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGfwe-PublicApi-0013-0001-Construct_command012 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGfwe-PublicApi-0013-0001-CommandReply_command013 - COMMAND animformc Close - COMMAND anim Close - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK - -END_TESTCASE GRAPHICS-WSERV-AnimGfwe-PublicApi-0013 - - -START_TESTCASE GRAPHICS-WSERV-AnimGfwe-PublicApi-0014 -//! @SYMTestCaseID GRAPHICS-WSERV-AnimGfwe-PublicApi-0014 -//! @SYMAPI TWindowGroupInfo::IsFocusable() -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 10-04-2008 -//! @SYMTestCaseDesc Create animation client object and send command to plugin to check the window group's focusability. -//! @SYMTestActions 1.Create and connect a RWsSession. -//! 2.Create and construct RWindowGroup and RWindow. -//! 3.Activate the RWindow. -//! 4.Create a RAnimDll object and load the animation plugin DLL. -//! 5.Create a RAnim object by using RAnimDll object. -//! 6.Create a RAnimForMClass object and get wrapped object from RAnim. -//! 7.Completes construction of the object based on a window device, and creates the server-side animation system. -//! 8.Send ECmdGfweIsFocusable to the animaion plugin by CommandReply to check the window group's focusability. -//! 8.1 Wrapper check CommandReply return true or not. -//! 9.Close RAnimForMClass. -//! 10.Close RAnim. -//! 11.Destroy RAnimDll. -//! 12.Close RWsSession, RWindowGroup and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults IsFocusable returns true. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGfwe-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-AnimGfwe-PublicApi-0014-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-AnimGfwe-PublicApi-0014-0001-Construct_command004 - COMMAND win new GRAPHICS-WSERV-AnimGfwe-PublicApi-0014-0001-new_command005 - COMMAND win Construct GRAPHICS-WSERV-AnimGfwe-PublicApi-0014-0001-Construct_command006 - COMMAND win Activate - COMMAND animdll new GRAPHICS-WSERV-AnimGfwe-PublicApi-0014-0001-new_command008 - COMMAND animdll Load GRAPHICS-WSERV-AnimGfwe-PublicApi-0014-0001-Load_command009 - COMMAND anim new GRAPHICS-WSERV-AnimGfwe-PublicApi-0014-0001-new_command010 - COMMAND animformc new GRAPHICS-WSERV-AnimGfwe-PublicApi-0014-0001-new_command011 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGfwe-PublicApi-0014-0001-Construct_command012 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGfwe-PublicApi-0014-0001-CommandReply_command013 - COMMAND animformc Close - COMMAND anim Close - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK - -END_TESTCASE GRAPHICS-WSERV-AnimGfwe-PublicApi-0014 - - -START_TESTCASE GRAPHICS-WSERV-AnimGfwe-PublicApi-0015 -//! @SYMTestCaseID GRAPHICS-WSERV-AnimGfwe-PublicApi-0015 -//! @SYMAPI TWindowGroupInfo::IsFocusable() -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 10-04-2008 -//! @SYMTestCaseDesc Create animation client object and create new window cover animation window, send command to plugin to check the window group's focusability. -//! @SYMTestActions 1.Create and connect a RWsSession. -//! 2.Create and construct RWindowGroup and RWindow. -//! 3.Set the window size to (100,100). -//! 4.Set the window position to (50,50). -//! 5.Activate the RWindow. -//! 6.Create a RAnimDll object and load the animation plugin DLL. -//! 7.Create a RAnim object by using RAnimDll object. -//! 8.Create a RAnimForMClass object and get wrapped object from RAnim. -//! 9.Completes construction of the object based on a window device, and creates the server-side animation system. -//! 10.Create a new fullscreen window which cover the animation window. -//! 11.Send ECmdGfweIsFocusable to the animaion plugin by CommandReply to check the window group's focusability. -//! 11.1 Wrapper check CommandReply return false or not. -//! 12.Close RAnimForMClass. -//! 13.Close RAnim. -//! 14.Destroy RAnimDll. -//! 15.Close RWsSession, RWindowGroup and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults IsFocusable returns false. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGfwe-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RWindow win1 - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-AnimGfwe-PublicApi-0015-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-AnimGfwe-PublicApi-0015-0001-Construct_command004 - COMMAND win new GRAPHICS-WSERV-AnimGfwe-PublicApi-0015-0001-new_command005 - COMMAND win Construct GRAPHICS-WSERV-AnimGfwe-PublicApi-0015-0001-Construct_command006 - COMMAND win SetExtent GRAPHICS-WSERV-AnimGfwe-PublicApi-0015-0001-SetExtent_command007 - COMMAND win Activate - COMMAND animdll new GRAPHICS-WSERV-AnimGfwe-PublicApi-0015-0001-new_command009 - COMMAND animdll Load GRAPHICS-WSERV-AnimGfwe-PublicApi-0015-0001-Load_command010 - COMMAND anim new GRAPHICS-WSERV-AnimGfwe-PublicApi-0015-0001-new_command011 - COMMAND animformc new GRAPHICS-WSERV-AnimGfwe-PublicApi-0015-0001-new_command012 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGfwe-PublicApi-0015-0001-Construct_command013 - COMMAND win1 new GRAPHICS-WSERV-AnimGfwe-PublicApi-0015-0001-new_command014 - COMMAND win1 Construct GRAPHICS-WSERV-AnimGfwe-PublicApi-0015-0001-Construct_command015 - COMMAND win1 Activate - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGfwe-PublicApi-0015-0001-CommandReply_command017 - COMMAND animformc Close - COMMAND anim Close - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK - -END_TESTCASE GRAPHICS-WSERV-AnimGfwe-PublicApi-0015 - - -START_TESTCASE GRAPHICS-WSERV-AnimGfwe-PublicApi-0016 -//! @SYMTestCaseID GRAPHICS-WSERV-AnimGfwe-PublicApi-0016 -//! @SYMAPI MAnimGeneralFunctionsWindowExtension::WindowConfig() -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 20-05-2008 -//! @SYMTestCaseDesc Create animation client object with a nontransparent animation window and send command to plugin to get transparency state of the window. -//! @SYMTestActions 1.Create and connect a RWsSession. -//! 2.Create and construct RWindowGroup and RWindow. -//! 3.Activate the RWindow. -//! 4.Create a RAnimDll object and load the animation plugin DLL. -//! 5.Create a RAnim object by using RAnimDll object. -//! 6.Create a RAnimForMClass object and get wrapped object from RAnim. -//! 7.Completes construction of the object based on a window device, and creates the server-side animation system. -//! 8.Send ECmdGfweFocusScreens to the animaion plugin by CommandReply to get transparency state of the window. -//! 8.1 Plugin get window config and return transparency state. -//! 8.2 Wrapper check transparency state is false or not . -//! 9.Close RAnimForMClass. -//! 11.Close RAnim. -//! 12.Destroy RAnimDll. -//! 13.Close RWsSession, RWindowGroup and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CommandReply returns false. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGfwe-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-AnimGfwe-PublicApi-0016-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-AnimGfwe-PublicApi-0016-0001-Construct_command004 - COMMAND win new GRAPHICS-WSERV-AnimGfwe-PublicApi-0016-0001-new_command005 - COMMAND win Construct GRAPHICS-WSERV-AnimGfwe-PublicApi-0016-0001-Construct_command006 - COMMAND win Activate - COMMAND animdll new GRAPHICS-WSERV-AnimGfwe-PublicApi-0016-0001-new_command008 - COMMAND animdll Load GRAPHICS-WSERV-AnimGfwe-PublicApi-0016-0001-Load_command009 - COMMAND anim new GRAPHICS-WSERV-AnimGfwe-PublicApi-0016-0001-new_command010 - COMMAND animformc new GRAPHICS-WSERV-AnimGfwe-PublicApi-0016-0001-new_command011 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGfwe-PublicApi-0016-0001-Construct_command012 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGfwe-PublicApi-0016-0001-CommandReply_command013 - COMMAND animformc Close - COMMAND anim Close - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimGfwe-PublicApi-0016 - - -START_TESTCASE GRAPHICS-WSERV-AnimGfwe-PublicApi-0017 -//! @SYMTestCaseID GRAPHICS-WSERV-AnimGfwe-PublicApi-0017 -//! @SYMAPI MAnimGeneralFunctionsWindowExtension::WindowConfig() -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 20-05-2008 -//! @SYMTestCaseDesc Create animation client object with a transparent animation window and send command to plugin to get transparency state of the window. -//! @SYMTestActions 1.Create and connect a RWsSession. -//! 2.Create and construct RWindowGroup and RWindow. -//! 3.Activate the RWindow. -//! 4.Create a RAnimDll object and load the animation plugin DLL. -//! 5.Create a RAnim object by using RAnimDll object. -//! 6.Create a RAnimForMClass object and get wrapped object from RAnim. -//! 7.Completes construction of the object based on a window device, and creates the server-side animation system. -//! 8.Send ECmdGfweFocusScreens to the animaion plugin by CommandReply to get transparency state of the window. -//! 8.1 Plugin get window config and return transparency state. -//! 8.2 Wrapper check transparency state is true or not . -//! 9.Close RAnimForMClass. -//! 11.Close RAnim. -//! 12.Destroy RAnimDll. -//! 13.Close RWsSession, RWindowGroup and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CommandReply returns true. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimGfwe-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-AnimGfwe-PublicApi-0017-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-AnimGfwe-PublicApi-0017-0001-Construct_command004 - COMMAND win new GRAPHICS-WSERV-AnimGfwe-PublicApi-0017-0001-new_command005 - COMMAND win Construct GRAPHICS-WSERV-AnimGfwe-PublicApi-0017-0001-Construct_command006 - COMMAND win SetTransparencyAlphaChannel - COMMAND win Activate - COMMAND animdll new GRAPHICS-WSERV-AnimGfwe-PublicApi-0017-0001-new_command009 - COMMAND animdll Load GRAPHICS-WSERV-AnimGfwe-PublicApi-0017-0001-Load_command010 - COMMAND anim new GRAPHICS-WSERV-AnimGfwe-PublicApi-0017-0001-new_command011 - COMMAND animformc new GRAPHICS-WSERV-AnimGfwe-PublicApi-0017-0001-new_command012 - COMMAND animformc Construct GRAPHICS-WSERV-AnimGfwe-PublicApi-0017-0001-Construct_command013 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimGfwe-PublicApi-0017-0001-CommandReply_command014 - COMMAND animformc Close - COMMAND anim Close - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimGfwe-PublicApi-0017 - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi.script --- a/graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,800 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// -//! @file -//! @SYMTestSuiteName GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi -//! @SYMScriptTestEnvironment This test script requires a basic ROM. - -/////////////////////////////////////////////////////////////////////////////// -// GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi.script -// -// Tests all public elements of the MAnimSpriteFunctions class -// as a means of confidence that the API works as expected. -// -// The purpose is to provide a regression test suite of PublishedAll APIs for -// MAnimSpriteFunctions related classes. -// Negative caseing is performed to confirm that correct errors are returned -// when incorrect parameters are given. -// -// The tests are fully automated. -/////////////////////////////////////////////////////////////////////////////// - - - -LOAD_SUITE T_GraphicsWservAPI -DELAY 1000 - -START_TESTCASE GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001 -//!@SYMTestCaseID GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001 -//!@SYMAPI MAnimSpriteFunctions::GetSpriteMember(TInt) -//!@SYMAuthor Yue Zhang -//!@SYMCreationDate 11-04-2008 -//!@SYMTestCaseDesc Send command to animation DLL to call GetSpriteMember function, and then check if the spritenumber is the -//! sending one. -//!@SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct RWindowGroup and RWindow. -//! 8. Create RWsSprite with RWsSession. -//! 9. Construct RWsSprite. -//! 10. Create a CFbsBitmap object as mask. -//! 11. Create 2 CFbsBitmap object and load bitmap. -//! 12. Append these CFbsBitmaps to the RWsSprite. -//! 13. Set RWsSprites's position. -//! 14. Activate the RWsSprite. -//! 15. Create and load the animation DLL. -//! 16. Create RAnim and RAnimForMClass object and construct RAnimForMClass. -//! 17. Send ECmdSpriteGetSpriteMember command to plugin Dll with a given index number via CommandReply. -//! 17.1 Plugin Dll return the given number's offset. -//! 17.2 Wrapper check if the returned offset value equals to the sending one . -//! 18. Close and destroy all the related objects. -//!@SYMTestStatus Implemented -//!@SYMTestPriority High -//!@SYMTestExpectedResults the returned offset value in step 17 should be same as the given value in the step 6. -//!@SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingp - CREATE_OBJECT RWindow win - CREATE_OBJECT RWsSprite sprite - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - CREATE_OBJECT CFbsBitmap mask1 - CREATE_OBJECT CFbsBitmap bitmap1 - CREATE_OBJECT CFbsBitmap bitmap2 - COMMAND ws new - COMMAND ws Connect - COMMAND wingp new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001-0001-new_Command03 - COMMAND wingp Construct GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001-0001-Construct_Command04 - COMMAND win new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001-0001-new_Command05 - COMMAND win Construct GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001-0001-Construct_Command06 - COMMAND sprite new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001-0001-new_Command07 - COMMAND sprite Construct GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001-0001-Construct_Command08 - COMMAND mask1 new - COMMAND mask1 Load GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001-0001-Load_Command10 - COMMAND bitmap1 new - COMMAND bitmap1 Load GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001-0001-Load_Command12 - COMMAND sprite AppendMember GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001-0001-AppendMember_Command13 - COMMAND bitmap2 new - COMMAND bitmap2 Load GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001-0001-Load_Command15 - COMMAND sprite AppendMember GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001-0001-AppendMember_Command16 - COMMAND sprite SetPosition GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001-0001-SetPosition_Command17 - COMMAND sprite Activate - COMMAND animdll new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001-0001-new_Command19 - COMMAND animdll Load GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001-0001-Load_Command20 - COMMAND anim new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001-0001-new_Command21 - COMMAND animformc new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001-0001-new_Command22 - COMMAND animformc Construct GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001-0001-Construct_Command23 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001-0001-CommandReply_Command24 - COMMAND animformc Destroy - COMMAND anim Destroy - COMMAND sprite Close - COMMAND mask1 ~ - COMMAND bitmap1 ~ - COMMAND bitmap2 ~ - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001 - - -START_TESTCASE GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002 -//!@SYMTestCaseID GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002 -//!@SYMAPI MAnimSpriteFunctions::Activate(TBool) -//!@SYMAuthor Yue Zhang -//!@SYMCreationDate 11-04-2008 -//!@SYMTestCaseDesc Send command to animation DLL to call Active() to turn a sprite on , then send the command with turn off paramter. -//!@SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Set required display mode of RWindow object; -//! 4. Create CWsScreenDevice object and construct it; -//! 5. Set background color of RWindow object. -//! 6. Active the RWindow object. -//! 7. Redraw the RWindow object. -//! 8. Create RWsSprite with RWsSession. -//! 9. Construct RWsSprite. -//! 10. Create a CFbsBitmap object as mask. -//! 11. Create a CFbsBitmap object and load bitmap. -//! 12. Append the CFbsBitmaps to the RWsSprite. -//! 13. Set RWsSprites's position. -//! 14. Activate the RWsSprite. -//! 15. Create and load the animation DLL. -//! 16. Create RAnim and RAnimForMClass object and construct RAnimForMClass. -//! 17.Send command ECmdSpriteActivate with EFalse to plugin Dll via CommandReply. -//! 18.Use ScreenDevice object to compare the sprite rectangle with a blank rectangle. -//! 19.Send command ECmdSpriteActivate with ETrue to plugin Dll via CommandReply. -//! 20.Use ScreenDevice object to compare the sprite rectangle with a blank rectangle. -//! 21.Close and destroy all the related objects. -//!@SYMTestStatus Implemented -//!@SYMTestPriority High -//!@SYMTestExpectedResults 1.In step 18, the compare result should be same because the sprite object has been turn off. -//! 2.In step 20, the compare result should not be same because the sprite object has been turn on. -//!@SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingp - CREATE_OBJECT RWindow win - CREATE_OBJECT RWsSprite sprite - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CFbsBitmap mask1 - CREATE_OBJECT CFbsBitmap bitmap1 - COMMAND ws new - COMMAND ws Connect - COMMAND wingp new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-new_Command03 - COMMAND wingp Construct GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-Construct_Command04 - COMMAND win new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-new_Command05 - COMMAND win Construct GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-Construct_Command06 - COMMAND scrdev new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-new_Command07 - COMMAND scrdev Construct - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-SetRequiredDisplayMode_Command09 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-SetBackgroundColor_Command10 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND sprite new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-new_Command14 - COMMAND sprite Construct GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-Construct_Command15 - COMMAND mask1 new - COMMAND mask1 Load GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-Load_Command17 - COMMAND bitmap1 new - COMMAND bitmap1 Load GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-Load_Command19 - COMMAND sprite AppendMember GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-AppendMember_Command20 - COMMAND sprite SetPosition GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-SetPosition_Command21 - COMMAND sprite Activate - COMMAND animdll new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-new_Command23 - COMMAND animdll Load GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-Load_Command24 - COMMAND anim new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-new_Command25 - COMMAND animformc new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-new_Command26 - COMMAND animformc Construct GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-Construct_Command27 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-CommandReply_Command28 - //!COMMAND scrdev RectCompare GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-RectCompare_Command29 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-CommandReply_Command30 - //!COMMAND scrdev RectCompare GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-RectCompare_Command31 - COMMAND animformc Destroy - COMMAND anim Destroy - COMMAND sprite Close - COMMAND mask1 ~ - COMMAND bitmap1 ~ - COMMAND animdll Destroy - COMMAND scrdev ~ - COMMAND win Close - COMMAND wingp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002 - - -START_TESTCASE GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003 -//!@SYMTestCaseID GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003 -//!@SYMAPI MAnimSpriteFunctions::SetPosition(const TPoint) -//!@SYMAuthor Yue Zhangy -//!@SYMCreationDate 11-04-2008 -//!@SYMTestCaseDesc Send command to animation DLL to call SetPosition to move the sprite object. -//!@SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Set required display mode of RWindow object; -//! 4. Create CWsScreenDevice object and construct it; -//! 5. Set background color of RWindow object. -//! 6. Active the RWindow object. -//! 7. Redraw the RWindow object. -//! 8. Create RWsSprite with RWsSession. -//! 9. Construct RWsSprite. -//! 10. Create a CFbsBitmap object as mask. -//! 11. Create a CFbsBitmap object and load bitmap. -//! 12. Append the CFbsBitmaps to the RWsSprite. -//! 13. Set RWsSprites's position. -//! 14. Activate the RWsSprite. -//! 15. Create and load the animation DLL. -//! 16. Create RAnim and RAnimForMClass object and construct RAnimForMClass. -//! 17. Use ScreenDevice object to compare the sprite rectangle with a blank rectangle. -//! 18. Send ECmdSpriteSetPosition command to plugin Dll with a given position via CommandReply. -//! 19. Use ScreenDevice object to compare the previous position with a blank rectangle. -//! 20. Use ScreenDevice object to compare the new position with a blank rectangle. -//! 21. Close and destroy all the related objects. -//!@SYMTestStatus Implemented -//!@SYMTestPriority High -//!@SYMTestExpectedResults 1. In step 17, the compare result should not be same because the sprite object has been drawn. -//! 2. In step 19, the compare result should be same because the sprite object has been moved to other place. -//! 3. In step 20, the compare result should not be same because the sprite object has been moved here. -//!@SYMTestType CIT - START_TEST_BLOCK 200 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingp - CREATE_OBJECT RWindow win - CREATE_OBJECT RWsSprite sprite - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CFbsBitmap mask1 - CREATE_OBJECT CFbsBitmap bitmap1 - COMMAND ws new - COMMAND ws Connect - COMMAND wingp new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-new_Command03 - COMMAND wingp Construct GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-Construct_Command04 - COMMAND win new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-new_Command05 - COMMAND win Construct GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-Construct_Command06 - COMMAND scrdev new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-new_Command07 - COMMAND scrdev Construct - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-SetRequiredDisplayMode_Command09 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-SetBackgroundColor_Command10 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND sprite new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-new_Command14 - COMMAND sprite Construct GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-Construct_Command15 - COMMAND mask1 new - COMMAND mask1 Load GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-Load_Command17 - COMMAND bitmap1 new - COMMAND bitmap1 Load GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-Load_Command19 - COMMAND sprite AppendMember GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-AppendMember_Command20 - COMMAND sprite SetPosition GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-SetPosition_Command21 - COMMAND sprite Activate - COMMAND animdll new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-new_Command23 - COMMAND animdll Load GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-Load_Command24 - COMMAND anim new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-new_Command25 - COMMAND animformc new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-new_Command26 - COMMAND animformc Construct GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-Construct_Command27 - //!COMMAND scrdev RectCompare GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-RectCompare_Command28 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-CommandReply_Command29 - //!COMMAND scrdev RectCompare GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-RectCompare_Command30 - //!COMMAND scrdev RectCompare GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-RectCompare_Command31 - COMMAND animformc Destroy - COMMAND anim Destroy - COMMAND sprite Close - COMMAND mask1 ~ - COMMAND bitmap1 ~ - COMMAND animdll Destroy - COMMAND scrdev ~ - COMMAND win Close - COMMAND wingp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003 - - -START_TESTCASE GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004 -//!@SYMTestCaseID GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004 -//!@SYMAPI MAnimSpriteFunctions::SpriteCanBeSeen() -//!@SYMAuthor Yue Zhang -//!@SYMCreationDate 11-04-2008 -//!@SYMTestCaseDesc Send command to animation DLL to call SpriteCanBeSeen() to check the function. -//!@SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Set required display mode of RWindow object; -//! 4. Create CWsScreenDevice object and construct it; -//! 5. Set background color of RWindow object. -//! 6. Active the RWindow object. -//! 7. Redraw the RWindow object. -//! 8. Create RWsSprite with RWsSession. -//! 9. Construct RWsSprite. -//! 10. Create a CFbsBitmap object as mask. -//! 11. Create a CFbsBitmap object and load bitmap. -//! 12. Append the CFbsBitmaps to the RWsSprite. -//! 13. Set RWsSprites's position. -//! 14. Activate the RWsSprite. -//! 15. Create and load the animation DLL. -//! 16. Create RAnim and RAnimForMClass object and construct RAnimForMClass. -//! 17. Send ECmdSpriteActive command with EFalse to plugin Dll via CommandReply. -//! 18. Use ScreenDevice object to compare the sprite rectangle with a blank rectangle. -//! 19. Send ECmdSpriteCanBeSeen command to plugin Dll via CommandReply. -//! 19.1 The Wrapper check if the result equals to the expected (False) .If not ,set this case failed. -//! 20. Send ECmdSpriteActive command with ETrue to plugin Dll via CommandReply. -//! 21. Use ScreenDevice object to compare the sprite rectangle with a blank rectangle. -//! 22. Send ECmdSpriteCanBeSeen commmand to plugin Dll via CommandReply. -//! 22.1 The Wrapper check if the result equals to the expected(ETrue). If not ,set this case failed. -//! 23. Close and destroy all the related objects. -//!@SYMTestStatus Implemented -//!@SYMTestPriority High -//!@SYMTestExpectedResults 1. In step 18, the compare result should be same because the sprite object has been turn off. -//! 2. In step 19, return value should be false because the sprite object has been turn off. -//! 3. In step 21, the compare result should not be same because the sprite object has been turn on. -//! 4. In step 22, eturn value should be true because the sprite object has been turn on. -//!@SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingp - CREATE_OBJECT RWindow win - CREATE_OBJECT RWsSprite sprite - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CFbsBitmap mask1 - CREATE_OBJECT CFbsBitmap bitmap1 - COMMAND ws new - COMMAND ws Connect - COMMAND wingp new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-new_Command03 - COMMAND wingp Construct GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-Construct_Command04 - COMMAND win new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-new_Command05 - COMMAND win Construct GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-Construct_Command06 - COMMAND scrdev new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-new_Command07 - COMMAND scrdev Construct - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-SetRequiredDisplayMode_Command09 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-SetBackgroundColor_Command10 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND sprite new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-new_Command14 - COMMAND sprite Construct GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-Construct_Command15 - COMMAND mask1 new - COMMAND mask1 Load GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-Load_Command17 - COMMAND bitmap1 new - COMMAND bitmap1 Load GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-Load_Command19 - COMMAND sprite AppendMember GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-AppendMember_Command20 - COMMAND sprite SetPosition GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-SetPosition_Command21 - COMMAND sprite Activate - COMMAND animdll new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-new_Command23 - COMMAND animdll Load GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-Load_Command24 - COMMAND anim new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-new_Command25 - COMMAND animformc new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-new_Command26 - COMMAND animformc Construct GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-Construct_Command27 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-CommandReply_Command28 - //!COMMAND scrdev RectCompare GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-RectCompare_Command29 - //!COMMAND animformc CommandReply GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-CommandReply_Command30 - //!COMMAND animformc CommandReply GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-CommandReply_Command31 - //!COMMAND scrdev RectCompare GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-RectCompare_Command32 - //!COMMAND animformc CommandReply GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-CommandReply_Command33 - COMMAND animformc Destroy - COMMAND anim Destroy - COMMAND sprite Close - COMMAND mask1 ~ - COMMAND bitmap1 ~ - COMMAND animdll Destroy - COMMAND scrdev ~ - COMMAND win Close - COMMAND wingp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004 - - -START_TESTCASE GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005 -//!@SYMTestCaseID GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005 -//!@SYMAPI MAnimSpriteFunctions::SpriteCanBeSeen() -//!@SYMAuthor Yue Zhang -//!@SYMCreationDate 11-04-2008 -//!@SYMTestCaseDesc Using a RWindow to cover the sprite object, check the return value of SpriteCanBeSeen(). -//!@SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Set required display mode of RWindow object; -//! 4. Set background color of RWindow object. -//! 5. Active the RWindow object. -//! 6. Redraw the RWindow object. -//! 7. Create RWsSprite with RWsSession. -//! 8. Construct RWsSprite. -//! 9. Create a CFbsBitmap object as mask. -//! 10. Create a CFbsBitmap object and load bitmap. -//! 11. Append these CFbsBitmaps to the RWsSprite. -//! 12. Set RWsSprites's position. -//! 13. Activate the RWsSprite. -//! 14. Create and load the animation DLL. -//! 15. Create RAnim and RAnimForMClass object and construct RAnimForMClass. -//! 16. Send ECmdSpriteCanBeSeen command to plugin Dll via CommandReply. -//! 16.1 The Wrapper check if the result equals to the expected (True) .If not ,set this case failed. -//! 17. Create another RWindow object. -//! 18. Set required display mode of the 2nd RWindow object; -//! 19. Set background color of the 2nd RWindow object. -//! 20. Active the 2nd RWindow object. -//! 21. Redraw the 2nd RWindow object. -//! 22. Send ECmdSpriteCanBeSeen command to plugin Dll via CommandReply. -//! 22.1 The Wrapper check if the result equals to the expected (False) .If not ,set this case failed. -//! 23. Close and destroy all the related objects. -//!@SYMTestStatus Implemented -//!@SYMTestPriority High -//!@SYMTestExpectedResults 1. In step 16, return value should be true because the sprite object has been shown. -//! 2. In step 22, return value should be false because the sprite object has been covered. -//!@SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingp - CREATE_OBJECT RWindow win - CREATE_OBJECT RWindow win2 - CREATE_OBJECT RWsSprite sprite - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - CREATE_OBJECT CFbsBitmap mask1 - CREATE_OBJECT CFbsBitmap bitmap1 - COMMAND ws new - COMMAND ws Connect - COMMAND wingp new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-new_Command03 - COMMAND wingp Construct GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-Construct_Command04 - COMMAND win new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-new_Command05 - COMMAND win Construct GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-Construct_Command06 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-SetRequiredDisplayMode_Command09 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-SetBackgroundColor_Command10 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND sprite new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-new_Command14 - COMMAND sprite Construct GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-Construct_Command15 - COMMAND mask1 new - COMMAND mask1 Load GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-Load_Command17 - COMMAND bitmap1 new - COMMAND bitmap1 Load GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-Load_Command19 - COMMAND sprite AppendMember GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-AppendMember_Command20 - COMMAND sprite SetPosition GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-SetPosition_Command21 - COMMAND sprite Activate - COMMAND animdll new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-new_Command23 - COMMAND animdll Load GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-Load_Command24 - COMMAND anim new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-new_Command25 - COMMAND animformc new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-new_Command26 - COMMAND animformc Construct GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-Construct_Command27 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-CommandReply_Command28 - COMMAND win2 new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-new_Command29 - COMMAND win2 Construct GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-Construct_Command30 - COMMAND win2 SetRequiredDisplayMode GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-SetRequiredDisplayMode_Command31 - COMMAND win2 SetBackgroundColor GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-SetBackgroundColor_Command32 - COMMAND win2 Activate - COMMAND win2 BeginRedraw - COMMAND win2 EndRedraw - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-CommandReply_Command36 - COMMAND animformc Destroy - COMMAND anim Destroy - COMMAND sprite Close - COMMAND mask1 ~ - COMMAND bitmap1 ~ - COMMAND animdll Destroy - COMMAND win Close - COMMAND win2 Close - COMMAND wingp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005 - - -START_TESTCASE GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006 -//!@SYMTestCaseID GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006 -//!@SYMAPI MAnimSpriteFunctions::UpdateMember(TInt, const TRect, TBool) -//!@SYMAuthor Yue Zhang -//!@SYMCreationDate 11-04-2008 -//!@SYMTestCaseDesc Send command to animation DLL to call Update function. -//!@SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Create RWsSprite with RWsSession. -//! 4. Construct RWsSprite. -//! 5. Create a CFbsBitmap object as mask. -//! 6. Create 2 CFbsBitmap object and load bitmap. -//! 7. Append these CFbsBitmaps to the RWsSprite. -//! 8. Set RWsSprites's position. -//! 9. Activate the RWsSprite. -//! 10. Create and load the animation DLL. -//! 11. Create RAnim and RAnimForMClass object and construct RAnimForMClass. -//! 12. Send ECmdSpriteUpdateMember command to plugin Dll with a given index number and rect via CommandReply. -//! 12.1 Plugin Dll update the given rect at the given member. -//! 13. Close and destroy all the related objects. -//!@SYMTestStatus Implemented -//!@SYMTestPriority High -//!@SYMTestExpectedResults Update is executed successfully. -//!@SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingp - CREATE_OBJECT RWindow win - CREATE_OBJECT RWsSprite sprite - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - CREATE_OBJECT CFbsBitmap mask1 - CREATE_OBJECT CFbsBitmap bitmap1 - CREATE_OBJECT CFbsBitmap bitmap2 - COMMAND ws new - COMMAND ws Connect - COMMAND wingp new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006-0001-new_Command03 - COMMAND wingp Construct GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006-0001-Construct_Command04 - COMMAND win new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006-0001-new_Command05 - COMMAND win Construct GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006-0001-Construct_Command06 - COMMAND sprite new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006-0001-new_Command07 - COMMAND sprite Construct GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006-0001-Construct_Command08 - COMMAND mask1 new - COMMAND mask1 Load GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006-0001-Load_Command10 - COMMAND bitmap1 new - COMMAND bitmap1 Load GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006-0001-Load_Command12 - COMMAND sprite AppendMember GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006-0001-AppendMember_Command13 - COMMAND bitmap2 new - COMMAND bitmap2 Load GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006-0001-Load_Command15 - COMMAND sprite AppendMember GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006-0001-AppendMember_Command16 - COMMAND sprite SetPosition GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006-0001-SetPosition_Command17 - COMMAND sprite Activate - COMMAND animdll new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006-0001-new_Command19 - COMMAND animdll Load GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006-0001-Load_Command20 - COMMAND anim new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006-0001-new_Command21 - COMMAND animformc new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006-0001-new_Command22 - COMMAND animformc Construct GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006-0001-Construct_Command23 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006-0001-CommandReply_Command24 - COMMAND animformc Destroy - COMMAND anim Destroy - COMMAND sprite Close - COMMAND mask1 ~ - COMMAND bitmap1 ~ - COMMAND bitmap2 ~ - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006 - - -START_TESTCASE GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007 -//!@SYMTestCaseID GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007 -//!@SYMAPI MAnimSpriteFunctions::UpdateMember(TInt, const TRect, TBool) -//!@SYMAuthor Yue Zhang -//!@SYMCreationDate 11-04-2008 -//!@SYMTestCaseDesc Send command to animation DLL to call Update function.Each CFbsBitmap was constructed by EDrawModePEN mode and when update the sprite object, set the aFullUpdate as EFalse. -//!@SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Create RWsSprite with RWsSession. -//! 4. Construct RWsSprite. -//! 5. Create a CFbsBitmap object as mask. -//! 6. Create 2 CFbsBitmap object and load bitmap. -//! 7. Append these CFbsBitmaps to the RWsSprite. -//! 8. Set RWsSprites's position. -//! 9. Activate the RWsSprite. -//! 10. Create and load the animation DLL. -//! 11. Create RAnim and RAnimForMClass object and construct RAnimForMClass. -//! 12. Send ECmdSpriteUpdateMember command to plugin Dll with a given index number and rect via CommandReply. -//! 12.1 Plugin Dll update the given rect at the given member. -//! 13. Close and destroy all the related objects. -//!@SYMTestStatus Implemented -//!@SYMTestPriority High -//!@SYMTestExpectedResults Update is executed successfully. -//!@SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingp - CREATE_OBJECT RWindow win - CREATE_OBJECT RWsSprite sprite - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - CREATE_OBJECT CFbsBitmap mask1 - CREATE_OBJECT CFbsBitmap bitmap1 - CREATE_OBJECT CFbsBitmap bitmap2 - COMMAND ws new - COMMAND ws Connect - COMMAND wingp new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007-0001-new_Command03 - COMMAND wingp Construct GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007-0001-Construct_Command04 - COMMAND win new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007-0001-new_Command05 - COMMAND win Construct GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007-0001-Construct_Command06 - COMMAND sprite new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007-0001-new_Command07 - COMMAND sprite Construct GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007-0001-Construct_Command08 - COMMAND mask1 new - COMMAND mask1 Load GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007-0001-Load_Command10 - COMMAND bitmap1 new - COMMAND bitmap1 Load GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007-0001-Load_Command12 - COMMAND sprite AppendMember GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007-0001-AppendMember_Command13 - COMMAND bitmap2 new - COMMAND bitmap2 Load GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007-0001-Load_Command15 - COMMAND sprite AppendMember GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007-0001-AppendMember_Command16 - COMMAND sprite SetPosition GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007-0001-SetPosition_Command17 - COMMAND sprite Activate - COMMAND animdll new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007-0001-new_Command19 - COMMAND animdll Load GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007-0001-Load_Command20 - COMMAND anim new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007-0001-new_Command21 - COMMAND animformc new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007-0001-new_Command22 - COMMAND animformc Construct GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007-0001-Construct_Command23 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007-0001-CommandReply_Command24 - COMMAND animformc Destroy - COMMAND anim Destroy - COMMAND sprite Close - COMMAND mask1 ~ - COMMAND bitmap1 ~ - COMMAND bitmap2 ~ - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007 - - -START_TESTCASE GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008 -//!@SYMTestCaseID GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008 -//!@SYMAPI MAnimSpriteFunctions::SizeChangedL() -//!@SYMAuthor Yue Zhang -//!@SYMCreationDate 11-04-2008 -//!@SYMTestCaseDesc Send command to animation DLL to call SizeChangeL function. After the member enlarge the size, there isn't panic occurs. -//!@SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Create RWsSprite with RWsSession. -//! 4. Construct RWsSprite. -//! 5. Create a CFbsBitmap object as mask. -//! 6. Resize the mask to enlarge it. -//! 7. Create 2 CFbsBitmap object and load bitmap. -//! 8. Append these CFbsBitmaps to the RWsSprite. -//! 9. Set RWsSprites's position. -//! 10. Activate the RWsSprite. -//! 11. Create and load the animation DLL. -//! 12. Create RAnim and RAnimForMClass object and construct RAnimForMClass. -//! 13. resize a CFbsBitmap object to enlarge it. -//! 14. Send ECmdSpriteSizeChange command to plugin Dll via CommandReply. -//! 14.1 plugin Dll call the SizeChangeL function. -//! 15. Close and destroy all the related objects. -//!@SYMTestStatus Implemented -//!@SYMTestPriority High -//!@SYMTestExpectedResults Sizechange function is executed successfully. -//!@SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingp - CREATE_OBJECT RWindow win - CREATE_OBJECT RWsSprite sprite - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - CREATE_OBJECT CFbsBitmap mask1 - CREATE_OBJECT CFbsBitmap bitmap1 - CREATE_OBJECT CFbsBitmap bitmap2 - COMMAND ws new - COMMAND ws Connect - COMMAND wingp new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-new_Command03 - COMMAND wingp Construct GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-Construct_Command04 - COMMAND win new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-new_Command05 - COMMAND win Construct GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-Construct_Command06 - COMMAND sprite new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-new_Command07 - COMMAND sprite Construct GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-Construct_Command08 - COMMAND mask1 new - COMMAND mask1 Load GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-Load_Command10 - COMMAND mask1 Resize GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-Resize_Command11 - COMMAND bitmap1 new - COMMAND bitmap1 Load GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-Load_Command13 - COMMAND sprite AppendMember GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-AppendMember_Command14 - COMMAND bitmap2 new - COMMAND bitmap2 Load GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-Load_Command16 - COMMAND sprite AppendMember GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-AppendMember_Command17 - COMMAND sprite SetPosition GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-SetPosition_Command18 - COMMAND sprite Activate - COMMAND animdll new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-new_Command20 - COMMAND animdll Load GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-Load_Command21 - COMMAND anim new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-new_Command22 - COMMAND animformc new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-new_Command23 - COMMAND animformc Construct GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-Construct_Command24 - COMMAND bitmap1 Resize GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-Resize_Command25 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-CommandReply_Command26 - COMMAND animformc Destroy - COMMAND anim Destroy - COMMAND sprite Close - COMMAND mask1 ~ - COMMAND bitmap1 ~ - COMMAND bitmap2 ~ - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008 - - -START_TESTCASE GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009 -//!@SYMTestCaseID GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009 -//!@SYMAPI MAnimSpriteFunctions::SizeChangedL() -//!@SYMAuthor Yue Zhang -//!@SYMCreationDate 11-04-2008 -//!@SYMTestCaseDesc Send command to animation DLL to call SizeChangeL function. Check if it sets the currently displayed sprite member to zero. -//!@SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Create RWsSprite with RWsSession. -//! 4. Construct RWsSprite. -//! 5. Create a CFbsBitmap object as mask. -//! 6. Create 4 CFbsBitmap object and load bitmap. -//! 7. Append these CFbsBitmaps to the RWsSprite. -//! 8. Set RWsSprites's position. -//! 9. Activate the RWsSprite. -//! 10. Create and load the animation DLL. -//! 11. Create RAnim and RAnimForMClass object and construct RAnimForMClass. -//! 12. Delay 4.5 seconds (just more than 2 member's inteval). -//! 13. Send ECmdSpriteSizeChange command to plugin Dll via CommandReply. -//! 13.1 plugin Dll call the SizeChangeL function. -//! 14. Delay 2.5 seconds (just more than 1 member's inteval). -//! 15. Use ScreenDevice object to compare the 3 member's sprite rectangle area with a blank rectangle. -//! 16. Close and destroy all the related objects. -//!@SYMTestStatus Implemented -//!@SYMTestPriority High -//!@SYMTestExpectedResults In step 15, the compare result should not be same because the 3rd sprite member is current displayed. -//!@SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingp - CREATE_OBJECT RWindow win - CREATE_OBJECT RWsSprite sprite - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CFbsBitmap mask1 - CREATE_OBJECT CFbsBitmap bitmap1 - CREATE_OBJECT CFbsBitmap bitmap2 - CREATE_OBJECT CFbsBitmap bitmap3 - CREATE_OBJECT CFbsBitmap bitmap4 - COMMAND ws new - COMMAND ws Connect - COMMAND wingp new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-new_Command03 - COMMAND wingp Construct GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-Construct_Command04 - COMMAND win new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-new_Command05 - COMMAND win Construct GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-Construct_Command06 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND scrdev new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-new_Command10 - COMMAND scrdev Construct - COMMAND sprite new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-new_Command12 - COMMAND sprite Construct GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-Construct_Command13 - COMMAND mask1 new - COMMAND mask1 Load GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-Load_Command15 - COMMAND bitmap1 new - COMMAND bitmap1 Load GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-Load_Command17 - COMMAND sprite AppendMember GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-AppendMember_Command18 - COMMAND bitmap2 new - COMMAND bitmap2 Load GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-Load_Command20 - COMMAND sprite AppendMember GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-AppendMember_Command21 - COMMAND bitmap3 new - COMMAND bitmap3 Load GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-Load_Command23 - COMMAND sprite AppendMember GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-AppendMember_Command24 - COMMAND bitmap4 new - COMMAND bitmap4 Load GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-Load_Command26 - COMMAND sprite AppendMember GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-AppendMember_Command27 - COMMAND sprite SetPosition GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-SetPosition_Command28 - COMMAND sprite Activate - COMMAND animdll new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-new_Command30 - COMMAND animdll Load GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-Load_Command31 - COMMAND anim new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-new_Command32 - COMMAND animformc new GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-new_Command33 - COMMAND animformc Construct GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-Construct_Command34 - DELAY 4500000 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-CommandReply_Command36 - DELAY 2500000 - //!COMMAND scrdev RectCompare GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-RectCompare_Command38 - COMMAND animformc Destroy - COMMAND anim Destroy - COMMAND sprite Close - COMMAND mask1 ~ - COMMAND bitmap1 ~ - COMMAND bitmap2 ~ - COMMAND bitmap3 ~ - COMMAND bitmap4 ~ - COMMAND animdll Destroy - COMMAND scrdev ~ - COMMAND win Close - COMMAND wingp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009 - - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-AnimWindowFunctions-PublicApi.script --- a/graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-AnimWindowFunctions-PublicApi.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1110 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// -//! @file -//! @SYMTestSuiteName GRAPHICS-WSERV-AnimWindowFunctions-PublicApi -//! @SYMScriptTestEnvironment This test script requires a basic ROM. - -/////////////////////////////////////////////////////////////////////////////// -// GRAPHICS-WSERV-AnimWindowFunctions-PublicApi.script -// -// Tests all public elements of the MAnimWindowFunctions class -// as a means of confidence that the API works as expected. -// -// The purpose is to provide a regression test suite of PublishedAll APIs for -// MAnimWindowFunctions related classes. -// Negative testing is performed to confirm that correct errors are returned -// when incorrect parameters are given. -// -// The tests are fully automated. -/////////////////////////////////////////////////////////////////////////////// - -LOAD_SUITE T_GraphicsWservAPI - -// **************************************************************************** -// MAnimWindowFunctions -// **************************************************************************** - -START_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0001 -//! @SYMTestCaseID GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0001 -//! @SYMAPI MAnimWindowFunctions::ActivateGc() -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 11-04-2008 -//! @SYMTestCaseDesc Create animation client object and send command to plugin to activate graphics context. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Activate the RWindow. -//! 4. Create a RAnimDll and Load an animation plugin DLL. -//! 5. Create a RAnim object by using RAnimDll object. -//! 6. Create a RAnimForMClass object and get wrapped object from RAnim. -//! 7. Complete construction of the RAnimForMClass based on the created RWindow. -//! 8. Send ECmdWindowActivateGc to animation DLL by CommandReply to activate graphics context. -//! 9. Close RAnimForMClass. -//! 10. Close RAnim. -//! 11. Destroy RAnimDll. -//! 12. Close RWsSession, RWindowGroup and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults ActivateGc calls successfully. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimWindowFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0001-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0001-0001-Construct_command004 - COMMAND win new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0001-0001-new_command005 - COMMAND win Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0001-0001-Construct_command006 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND animdll new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0001-0001-new_command008 - COMMAND animdll Load GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0001-0001-Load_command009 - COMMAND anim new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0001-0001-new_command010 - COMMAND animformc new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0001-0001-new_command011 - COMMAND animformc Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0001-0001-Construct_command012 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0001-0001-CommandReply_command013 - COMMAND animformc Close - COMMAND anim Close - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK - -END_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0001 - - -START_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0002 -//! @SYMTestCaseID GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0002 -//! @SYMAPI MAnimWindowFunctions::Parameters(TWindowInfo{ref}) -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 11-04-2008 -//! @SYMTestCaseDesc Create animation client object and send command to plugin to get window position and display mode. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Activate the RWindow. -//! 4. Create a RAnimDll and Load an animation plugin DLL. -//! 5. Create a RAnim object by using RAnimDll object. -//! 6. Create a RAnimForMClass object and get wrapped object from RAnim. -//! 7. Complete construction of the RAnimForMClass based on the created RWindow. -//! 8. Send ECmdWindowParameters to animation DLL by CommandReply to get window position and display mode. -//! 8.1 Plugin get window information then return window position by IPC slot 1 and display mode by IPC slot 2. -//! 8.2 Wrapper check window position by RWindow::Size() and display mode by RWindow::DisplayMode(). -//! 9. Close RAnimForMClass. -//! 10. Close RAnim. -//! 11. Destroy RAnimDll. -//! 10. Close RWsSession, RWindowGroup and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Get window position and display mode as expected. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimWindowFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0002-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0002-0001-Construct_command004 - COMMAND win new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0002-0001-new_command005 - COMMAND win Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0002-0001-Construct_command006 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND animdll new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0002-0001-new_command008 - COMMAND animdll Load GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0002-0001-Load_command009 - COMMAND anim new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0002-0001-new_command010 - COMMAND animformc new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0002-0001-new_command011 - COMMAND animformc Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0002-0001-Construct_command012 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0002-0001-CommandReply_command013 - COMMAND animformc Close - COMMAND anim Close - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK - -END_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0002 - - -START_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0003 -//! @SYMTestCaseID GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0003 -//! @SYMAPI MAnimWindowFunctions::WindowSize() -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 11-04-2008 -//! @SYMTestCaseDesc Create animation client object and send command to plugin to get window size. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Activate the RWindow. -//! 4. Create a RAnimDll and Load an animation plugin DLL. -//! 5. Create a RAnim object by using RAnimDll object. -//! 6. Create a RAnimForMClass object and get wrapped object from RAnim. -//! 7. Complete construction of the RAnimForMClass based on the created RWindow. -//! 8. Send ECmdWindowWindowSize to animation DLL by CommandReply to get window size. -//! 8.1 Plugin get window size then return it by IPC slot1. -//! 8.2 Wrapper check window size by RWindow::Size(). -//! 9. Close RAnimForMClass. -//! 10. Close RAnim. -//! 11. Destroy RAnimDll. -//! 12. Close RWsSession, RWindowGroup and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CommandReply return window size as expected. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimWindowFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0003-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0003-0001-Construct_command004 - COMMAND win new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0003-0001-new_command005 - COMMAND win Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0003-0001-Construct_command006 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND animdll new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0003-0001-new_command008 - COMMAND animdll Load GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0003-0001-Load_command009 - COMMAND anim new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0003-0001-new_command010 - COMMAND animformc new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0003-0001-new_command011 - COMMAND animformc Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0003-0001-Construct_command012 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0003-0001-CommandReply_command013 - COMMAND animformc Close - COMMAND anim Close - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK - -END_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0003 - - -START_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0004 -//! @SYMTestCaseID GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0004 -//! @SYMAPI MAnimWindowFunctions::IsHidden() -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 11-04-2008 -//! @SYMTestCaseDesc Create animation client object and create a new window to cover the window that animation is to draw to. -//! The new window encloses the animation window. -//! Then send command to plugin to get hidden state and visible region count. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Set window size and position. -//! 4. Activate RWindow. -//! 5. Create a RAnimDll and Load an animation plugin DLL. -//! 6. Create a RAnim object by using RAnimDll object. -//! 7. Create a RAnimForMClass object and get wrapped object from RAnim. -//! 8. Complete construction of the RAnimForMClass based on the created RWindow. -//! 9. Create a new window to cover the window that animation is to draw to. -//! 10. Send ECmdWindowIsHidden to animation DLL by CommandReply to get hidden state. -//! 10.1 Plugin get window hidden state then return it. -//! 10.2 Wrapper check CommandReply return true or not. -//! 11. Close RAnimForMClass. -//! 12. Close RAnim. -//! 13. Destroy RAnimDll. -//! 14. Close RWsSession, RWindowGroup and two RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults IsHidden returns true. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimWindowFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RWindow win1 - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0004-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0004-0001-Construct_command004 - COMMAND win new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0004-0001-new_command005 - COMMAND win Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0004-0001-Construct_command006 - COMMAND win SetExtent GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0004-0001-SetExtent_command007 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND animdll new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0004-0001-new_command009 - COMMAND animdll Load GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0004-0001-Load_command010 - COMMAND anim new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0004-0001-new_command011 - COMMAND animformc new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0004-0001-new_command012 - COMMAND animformc Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0004-0001-Construct_command013 - COMMAND win1 new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0004-0001-new_command014 - COMMAND win1 Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0004-0001-Construct_command015 - COMMAND win1 SetExtent GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0004-0001-SetExtent_command016 - COMMAND win1 Activate - COMMAND win1 BeginRedraw - COMMAND win1 EndRedraw - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0004-0001-CommandReply_command018 - COMMAND win1 Close - COMMAND animformc Close - COMMAND anim Close - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK - -END_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0004 - - -START_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0005 -//! @SYMTestCaseID GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0005 -//! @SYMAPI MAnimWindowFunctions::IsHidden() -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 11-04-2008 -//! @SYMTestCaseDesc Create animation client object and create a new window to cover the window that animation is to draw to. -//! The new window has identical size and position with the animation window. -//! Then send command to plugin to get hidden state and visible region count. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Set window size and position. -//! 4. Activate RWindow. -//! 5. Create a RAnimDll and Load an animation plugin DLL. -//! 6. Create a RAnim object by using RAnimDll object. -//! 7. Create a RAnimForMClass object and get wrapped object from RAnim. -//! 8. Complete construction of the RAnimForMClass based on the created RWindow. -//! 9. Create a new window to cover the window that animation is to draw to. -//! 10. Send ECmdWindowIsHidden to animation DLL by CommandReply to get hidden state. -//! 10.1 Plugin get window hidden state then return it. -//! 10.2 Wrapper check CommandReply return true or not. -//! 11. Close RAnimForMClass. -//! 12. Close RAnim. -//! 13. Destroy RAnimDll. -//! 14. Close RWsSession, RWindowGroup and two RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults IsHidden returns true. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimWindowFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RWindow win1 - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0005-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0005-0001-Construct_command004 - COMMAND win new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0005-0001-new_command005 - COMMAND win Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0005-0001-Construct_command006 - COMMAND win SetExtent GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0005-0001-SetExtent_command007 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND animdll new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0005-0001-new_command009 - COMMAND animdll Load GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0005-0001-Load_command010 - COMMAND anim new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0005-0001-new_command011 - COMMAND animformc new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0005-0001-new_command012 - COMMAND animformc Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0005-0001-Construct_command013 - COMMAND win1 new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0005-0001-new_command014 - COMMAND win1 Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0005-0001-Construct_command015 - COMMAND win1 SetExtent GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0005-0001-SetExtent_command016 - COMMAND win1 Activate - COMMAND win1 BeginRedraw - COMMAND win1 EndRedraw - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0005-0001-CommandReply_command018 - COMMAND win1 Close - COMMAND animformc Close - COMMAND anim Close - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK - -END_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0005 - - -START_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0006 -//! @SYMTestCaseID GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0006 -//! @SYMAPI MAnimWindowFunctions::IsHidden() -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 11-04-2008 -//! @SYMTestCaseDesc Create animation client object and create a new window to cover a rectangle cornor of the window that animation is to draw to. -//! Then send command to plugin to get hidden state. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Set window size and position. -//! 4. Activate RWindow. -//! 5. Create a RAnimDll and Load an animation plugin DLL. -//! 6. Create a RAnim object by using RAnimDll object. -//! 7. Create a RAnimForMClass object and get wrapped object from RAnim. -//! 8. Complete construction of the RAnimForMClass based on the created RWindow. -//! 9. Create a new window to cover a a rectangle cornor of the window that animation is to draw to. -//! 10. Send ECmdWindowIsHidden to animation DLL by CommandReply to get hidden state. -//! 10.1 Plugin get window hidden state then return it. -//! 10.2 Wrapper check CommandReply return false or not. -//! 11. Close RAnimForMClass. -//! 12. Close RAnim. -//! 13. Destroy RAnimDll. -//! 14. Close RWsSession, RWindowGroup and two RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults IsHidden returns false. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimWindowFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RWindow win1 - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0006-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0006-0001-Construct_command004 - COMMAND win new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0006-0001-new_command005 - COMMAND win Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0006-0001-Construct_command006 - COMMAND win SetExtent GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0006-0001-SetExtent_command007 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND animdll new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0006-0001-new_command009 - COMMAND animdll Load GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0006-0001-Load_command010 - COMMAND anim new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0006-0001-new_command011 - COMMAND animformc new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0006-0001-new_command012 - COMMAND animformc Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0006-0001-Construct_command013 - COMMAND win1 new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0006-0001-new_command014 - COMMAND win1 Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0006-0001-Construct_command015 - COMMAND win1 SetExtent GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0006-0001-SetExtent_command016 - COMMAND win1 Activate - COMMAND win1 BeginRedraw - COMMAND win1 EndRedraw - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0006-0001-CommandReply_command018 - COMMAND win1 Close - COMMAND animformc Close - COMMAND anim Close - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK - -END_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0006 - - -START_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0007 -//! @SYMTestCaseID GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0007 -//! @SYMAPI MAnimWindowFunctions::VisibleRegion(TRegion{ref}) -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 11-04-2008 -//! @SYMTestCaseDesc Create animation client object and create a new window to cover the window that animation is to draw to. -//! The new window encloses the animation window. -//! Then send command to plugin to get visible region count. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Set window size and position. -//! 4. Activate RWindow. -//! 5. Create a RAnimDll and Load an animation plugin DLL. -//! 6. Create a RAnim object by using RAnimDll object. -//! 7. Create a RAnimForMClass object and get wrapped object from RAnim. -//! 8. Complete construction of the RAnimForMClass based on the created RWindow. -//! 9. Create a new window to cover the window that animation is to draw to. -//! 10. Send ECmdWindowVisibleRegion to animation DLL by CommandReply to get visible region count. -//! 10.1 Plugin get window visible region then return visible region count. -//! 10.2 Wrapper check CommandReply return 0 or not. -//! 11. Close RAnimForMClass. -//! 12. Close RAnim. -//! 13. Destroy RAnimDll. -//! 14. Close RWsSession, RWindowGroup and two RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults IsHidden returns true; -//! Visible region count is 0. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimWindowFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RWindow win1 - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0007-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0007-0001-Construct_command004 - COMMAND win new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0007-0001-new_command005 - COMMAND win Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0007-0001-Construct_command006 - COMMAND win SetExtent GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0007-0001-SetExtent_command007 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND animdll new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0007-0001-new_command009 - COMMAND animdll Load GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0007-0001-Load_command010 - COMMAND anim new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0007-0001-new_command011 - COMMAND animformc new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0007-0001-new_command012 - COMMAND animformc Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0007-0001-Construct_command013 - COMMAND win1 new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0007-0001-new_command014 - COMMAND win1 Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0007-0001-Construct_command015 - COMMAND win1 SetExtent GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0007-0001-SetExtent_command016 - COMMAND win1 Activate - COMMAND win1 BeginRedraw - COMMAND win1 EndRedraw - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0007-0001-CommandReply_command018 - COMMAND win1 Close - COMMAND animformc Close - COMMAND anim Close - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK - -END_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0007 - - -START_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0008 -//! @SYMTestCaseID GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0008 -//! @SYMAPI MAnimWindowFunctions::VisibleRegion(TRegion{ref}) -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 11-04-2008 -//! @SYMTestCaseDesc Create animation client object and create a new window to cover the window that animation is to draw to. -//! The new window has identical size and position with the animation window. -//! Then send command to plugin to get visible region count. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Set window size and position. -//! 4. Activate RWindow. -//! 5. Create a RAnimDll and Load an animation plugin DLL. -//! 6. Create a RAnim object by using RAnimDll object. -//! 7. Create a RAnimForMClass object and get wrapped object from RAnim. -//! 8. Complete construction of the RAnimForMClass based on the created RWindow. -//! 9. Create a new window to cover the window that animation is to draw to. -//! 10. Send ECmdWindowVisibleRegion to animation DLL by CommandReply to get visible region count. -//! 10.1 Plugin get window visible region then return visible region count. -//! 10.2 Wrapper check CommandReply return 0 or not. -//! 11. Close RAnimForMClass. -//! 12. Close RAnim. -//! 13. Destroy RAnimDll. -//! 14. Close RWsSession, RWindowGroup and two RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults IsHidden returns true; -//! Visible region count is 0. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimWindowFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RWindow win1 - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0008-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0008-0001-Construct_command004 - COMMAND win new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0008-0001-new_command005 - COMMAND win Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0008-0001-Construct_command006 - COMMAND win SetExtent GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0008-0001-SetExtent_command007 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND animdll new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0008-0001-new_command009 - COMMAND animdll Load GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0008-0001-Load_command010 - COMMAND anim new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0008-0001-new_command011 - COMMAND animformc new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0008-0001-new_command012 - COMMAND animformc Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0008-0001-Construct_command013 - COMMAND win1 new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0008-0001-new_command014 - COMMAND win1 Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0008-0001-Construct_command015 - COMMAND win1 SetExtent GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0008-0001-SetExtent_command016 - COMMAND win1 Activate - COMMAND win1 BeginRedraw - COMMAND win1 EndRedraw - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0008-0001-CommandReply_command018 - COMMAND win1 Close - COMMAND animformc Close - COMMAND anim Close - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK - -END_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0008 - - -START_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0009 -//! @SYMTestCaseID GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0009 -//! @SYMAPI MAnimWindowFunctions::VisibleRegion(TRegion{ref}) -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 11-04-2008 -//! @SYMTestCaseDesc Create animation client object and create a new window to cover a rectangle cornor of the window that animation is to draw to. -//! Then send command to plugin to get visible region count. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Set window size and position. -//! 4. Activate RWindow. -//! 5. Create a RAnimDll and Load an animation plugin DLL. -//! 6. Create a RAnim object by using RAnimDll object. -//! 7. Create a RAnimForMClass object and get wrapped object from RAnim. -//! 8. Complete construction of the RAnimForMClass based on the created RWindow. -//! 9. Create a new window to cover a a rectangle cornor of the window that animation is to draw to. -//! 10. Send ECmdWindowVisibleRegion to animation DLL by CommandReply to get visible region count. -//! 10.1 Plugin get window visible region then return visible region count. -//! 10.2 Wrapper check CommandReply return 2 or not. -//! 11. Close RAnimForMClass. -//! 12. Close RAnim. -//! 13. Destroy RAnimDll. -//! 14. Close RWsSession, RWindowGroup and two RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Visible region count is 2. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimWindowFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RWindow win1 - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0009-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0009-0001-Construct_command004 - COMMAND win new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0009-0001-new_command005 - COMMAND win Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0009-0001-Construct_command006 - COMMAND win SetExtent GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0009-0001-SetExtent_command007 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND animdll new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0009-0001-new_command009 - COMMAND animdll Load GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0009-0001-Load_command010 - COMMAND anim new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0009-0001-new_command011 - COMMAND animformc new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0009-0001-new_command012 - COMMAND animformc Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0009-0001-Construct_command013 - COMMAND win1 new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0009-0001-new_command014 - COMMAND win1 Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0009-0001-Construct_command015 - COMMAND win1 SetExtent GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0009-0001-SetExtent_command016 - COMMAND win1 Activate - COMMAND win1 BeginRedraw - COMMAND win1 EndRedraw - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0009-0001-CommandReply_command018 - COMMAND win1 Close - COMMAND animformc Close - COMMAND anim Close - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK - -END_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0009 - - -START_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0010 -//! @SYMTestCaseID GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0010 -//! @SYMAPI MAnimWindowFunctions::SetVisible(TBool) -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 11-04-2008 -//! @SYMTestCaseDesc Create animation client object and send command to plugin to set visibility of the window that animation is drawing to. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Activate the RWindow. -//! 4. Create a RAnimDll and Load an animation plugin DLL. -//! 5. Create a RAnim object by using RAnimDll object. -//! 6. Create a RAnimForMClass object and get wrapped object from RAnim. -//! 7. Complete construction of the RAnimForMClass based on the created RWindow. -//! 8. Send ECmdWindowSetVisible to animation DLL by CommandReply to set window invisible. -//! 9. Send ECmdWindowIsHidden to animation DLL by CommandReply to get hidden state. -//! 9.1 Plugin get window hidden state then return it. -//! 9.2 Wrapper check CommandReply return true or not. -//! 10. Send ECmdWindowSetVisible to animation DLL by CommandReply to set window visible. -//! 11. Send ECmdWindowIsHidden to animation DLL by CommandReply to get hidden state. -//! 11.1 Plugin get window hidden state then return it. -//! 11.2 Wrapper check CommandReply return false or not. -//! 12. Close RAnimForMClass. -//! 13. Close RAnim. -//! 14. Destroy RAnimDll. -//! 15. Close RWsSession, RWindowGroup and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Set window visibility as expected. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimWindowFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0010-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0010-0001-Construct_command004 - COMMAND win new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0010-0001-new_command005 - COMMAND win Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0010-0001-Construct_command006 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND animdll new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0010-0001-new_command008 - COMMAND animdll Load GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0010-0001-Load_command009 - COMMAND anim new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0010-0001-new_command010 - COMMAND animformc new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0010-0001-new_command011 - COMMAND animformc Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0010-0001-Construct_command012 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0010-0001-CommandReply_command013 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0010-0001-CommandReply_command014 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0010-0001-CommandReply_command015 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0010-0001-CommandReply_command016 - COMMAND animformc Close - COMMAND anim Close - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK - -END_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0010 - - -START_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0011 -//! @SYMTestCaseID GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0011 -//! @SYMAPI MAnimWindowFunctions::SetRect(TRect{ref}) -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 11-04-2008 -//! @SYMTestCaseDesc Create animation client object and send command to plugin to set rectangle to be drawn to and check that animation is started. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Activate the RWindow. -//! 4. Create a RAnimDll and Load an animation plugin DLL. -//! 5. Create a RAnim object by using RAnimDll object. -//! 6. Create a RAnimForMClass object and get wrapped object from RAnim. -//! 7. Complete construction of the RAnimForMClass based on the created RWindow. -//! 8. Send ECmdWindowSetRect to animation DLL by CommandReply to set rectangle. -//! 9. Send ECmdWindowIsStarted to animation DLL by CommandReply. -//! 10. Delay one second. -//! 11. Send ECmdRetrieveResult to animation DLL by CommandReply to check whether the animation is started. -//! 12. Close RAnimForMClass. -//! 13. Close RAnim. -//! 14. Destroy RAnimDll. -//! 15. Close RWsSession, RWindowGroup and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Retrieved result is true. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimWindowFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RWindow win1 - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0011-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0011-0001-Construct_command004 - COMMAND win new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0011-0001-new_command005 - COMMAND win Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0011-0001-Construct_command006 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND animdll new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0011-0001-new_command008 - COMMAND animdll Load GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0011-0001-Load_command009 - COMMAND anim new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0011-0001-new_command010 - COMMAND animformc new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0011-0001-new_command011 - COMMAND animformc Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0011-0001-Construct_command012 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0011-0001-CommandReply_command013 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0011-0001-CommandReply_command014 - DELAY 1000000 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0011-0001-CommandReply_command016 - COMMAND animformc Close - COMMAND anim Close - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK - -END_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0011 - - -START_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0012 -//! @SYMTestCaseID GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0012 -//! @SYMAPI MAnimWindowFunctions::SetRect(TRect{ref}) -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 11-04-2008 -//! @SYMTestCaseDesc Create animation client object and send command to plugin to set rectangle to be drawn to. -//! Then create a new window whose extension includes this rectangle and check that animation is stopped. -//! Then close the new window and check that animation is started. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Activate the RWindow. -//! 4. Create a RAnimDll and Load an animation plugin DLL. -//! 5. Create a RAnim object by using RAnimDll object. -//! 6. Create a RAnimForMClass object and get wrapped object from RAnim. -//! 7. Complete construction of the RAnimForMClass based on the created RWindow. -//! 8. Send ECmdWindowSetRect to animation DLL by CommandReply to set rectangle. -//! 9. Create a new window to cover the window of that animation is drawing to. -//! 10. Send ECmdWindowIsStarted to animation DLL by CommandReply. -//! 11. Delay one second. -//! 12. Send ECmdRetrieveResult to animation DLL by CommandReply to check whether the animation is started. -//! 13. Close the new window. -//! 14. Send ECmdWindowIsStarted to animation DLL by CommandReply. -//! 15. Delay one second. -//! 16. Send ECmdRetrieveResult to animation DLL by CommandReply to check whether the animation is started. -//! 17. Close RAnimForMClass. -//! 18. Close RAnim. -//! 19. Destroy RAnimDll. -//! 20. Close RWsSession, RWindowGroup and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Return false at test action 12; -//! Return true at test action 16. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimWindowFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RWindow win1 - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0012-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0012-0001-Construct_command004 - COMMAND win new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0012-0001-new_command005 - COMMAND win Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0012-0001-Construct_command006 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND animdll new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0012-0001-new_command008 - COMMAND animdll Load GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0012-0001-Load_command009 - COMMAND anim new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0012-0001-new_command010 - COMMAND animformc new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0012-0001-new_command011 - COMMAND animformc Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0012-0001-Construct_command012 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0012-0001-CommandReply_command013 - COMMAND win1 new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0012-0001-new_command014 - COMMAND win1 Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0012-0001-Construct_command015 - COMMAND win1 Activate - COMMAND win1 BeginRedraw - COMMAND win1 EndRedraw - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0012-0001-CommandReply_command017 - DELAY 1000000 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0012-0001-CommandReply_command019 - COMMAND win1 Close - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0012-0001-CommandReply_command021 - DELAY 1000000 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0012-0001-CommandReply_command023 - COMMAND animformc Close - COMMAND anim Close - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK - -END_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0012 - - -START_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0013 -//! @SYMTestCaseID GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0013 -//! @SYMAPI MAnimWindowFunctions::Invalidate(TRect{ref}) -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 11-04-2008 -//! @SYMTestCaseDesc Create animation client object and send command to plugin to invalidate a rectangular part in which try to draw a rect. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct CWsScreenDevice. -//! 3. Create graphics context(CWindowGc) for CWsScreenDevice. -//! 4. Create and construct RWindowGroup and RWindow. -//! 5. Activate the RWindow. -//! 6. Activate the CWsScreenDevice. -//! 7. Begin redraw. -//! 8. Clear the RWindow. -//! 9. End redraw. -//! 10. Deactivate the CWsScreenDevice. -//! 11. Create a RAnimDll object and Load an animation DLL. -//! 12. Create a RAnim object by using RAnimDll object. -//! 13. Create a RAnimForMClass object and get wrapped object from RAnim. -//! 14. Complete construction of the RAnimForMClass based on the created RWindow. -//! 15. Send command ECmdWindowInvalidate to animation DLL by CommandReply. -//! 15.1 Plugin invalidate a rectangular part of animation window. -//! 15.2 Plugin activate Gc and try to draw a rect in invalid area. -//! 16. Check that plugin draw nothing. -//! 17. Close RAnimForMClass. -//! 18. Close RAnim. -//! 19 Destroy RAnimDll. -//! 20. Destroy CWsScreenDevice and CWindowGc. -//! 21. Close RWsSession, RWindowGroup and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CommandReply return true. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimWindowFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0013-0001-new_command003 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0013-0001-CreateContext_command005 - COMMAND wingrp new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0013-0001-new_command006 - COMMAND wingrp Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0013-0001-Construct_command007 - COMMAND win new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0013-0001-new_command008 - COMMAND win Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0013-0001-Construct_command009 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND wingc Activate GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0013-0001-Activate_command011 - COMMAND win BeginRedraw - COMMAND wingc Clear - COMMAND win EndRedraw - COMMAND wingc Deactivate - COMMAND animdll new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0013-0001-new_command016 - COMMAND animdll Load GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0013-0001-Load_command017 - COMMAND anim new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0013-0001-new_command018 - COMMAND animformc new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0013-0001-new_command019 - COMMAND animformc Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0013-0001-Construct_command020 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0013-0001-CommandReply_command021 - COMMAND scrdev RectCompare GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0013-0001-RectCompare_command022 - COMMAND animformc Close - COMMAND anim Close - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK - -END_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0013 - - -///////////////////////////////////////////////////////// -//MAnimFreeTimerWindowFunctions -///////////////////////////////////////////////////////// - -START_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0014 -//! @SYMTestCaseID GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0014 -//! @SYMAPI MAnimFreeTimerWindowFunctions::Update() -//! @SYMAuthor Jason Lin -//! @SYMCreationDate 04/14/2008 -//! @SYMTestCaseDesc Create animation client object and send command to plugin to force the screen to update. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Activate the RWindow. -//! 4. Create a RAnimDll and Load an animation plugin DLL. -//! 5. Create a RAnim object by using RAnimDll object. -//! 6. Create a RAnimForMClass object and get wrapped object from RAnim. -//! 7. Complete construction of the RAnimForMClass based on the created RWindow. -//! 8. Send ECmdFreeTimerWinUpdate to animation DLL by CommandReply to force the screen to update. -//! 9. Close RAnimForMClass. -//! 10. Close RAnim. -//! 11. Destroy RAnimDll. -//! 12. Close RWsSession, RWindowGroup and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults ActivateGc calls successfully. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimWindowFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0014-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0014-0001-Construct_command004 - COMMAND win new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0014-0001-new_command005 - COMMAND win Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0014-0001-Construct_command006 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND animdll new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0014-0001-new_command008 - COMMAND animdll Load GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0014-0001-Load_command009 - COMMAND anim new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0014-0001-new_command010 - COMMAND animformc new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0014-0001-new_command011 - COMMAND animformc Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0014-0001-Construct_command012 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0014-0001-CommandReply_command013 - COMMAND animformc Close - COMMAND anim Close - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK - -END_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0014 - - -START_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0015 -//! @SYMTestCaseID GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0015 -//! @SYMAPI MAnimFreeTimerWindowFunctions::DeactivateGc() -//! @SYMAuthor Jason Lin -//! @SYMCreationDate 04/14/2008 -//! @SYMTestCaseDesc Create animation client object and send command to plugin to check whether DeactivateGc work or not. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Activate the RWindow. -//! 4. Create a RAnimDll and Load an animation plugin DLL. -//! 5. Create a RAnim object by using RAnimDll object. -//! 6. Create a RAnimForMClass object and get wrapped object from RAnim. -//! 7. Complete construction of the RAnimForMClass based on the created RWindow. -//! 8. Send ECmdFreeTimerWinDeactivateGc to animation DLL by CommandReply. -//! 8.1 plugin check whether DeactivatGc work or not. -//! 9. Close RAnimForMClass. -//! 10. Close RAnim. -//! 11. Destroy RAnimDll. -//! 12. Close RWsSession, RWindowGroup and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CommandReply return KErrNone. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimWindowFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0015-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0015-0001-Construct_command004 - COMMAND win new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0015-0001-new_command005 - COMMAND win Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0015-0001-Construct_command006 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND animdll new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0015-0001-new_command008 - COMMAND animdll Load GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0015-0001-Load_command009 - COMMAND anim new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0015-0001-new_command010 - COMMAND animformc new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0015-0001-new_command011 - COMMAND animformc Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0015-0001-Construct_command012 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0015-0001-CommandReply_command013 - COMMAND animformc Close - COMMAND anim Close - COMMAND animdll Destroy - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK - -END_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0015 - - -START_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0016 -//! @SYMTestCaseID GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0016 -//! @SYMAPI MAnimFreeTimerWindowFunctions::DeactivateGc() -//! @SYMAuthor Forbes Fu -//! @SYMCreationDate 05/06/2008 -//! @SYMTestCaseDesc Create animation client object and send command to plugin to check whether DeactivateGc work or not. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Set RWindow transparent and activate it. -//! 4. Create and construct another RWindow. -//! 5. Set the second RWindow transparent and activate it. -//! 6. Create a RAnimDll and Load an animation plugin DLL. -//! 7. Create a RAnim object by using RAnimDll object. -//! 8. Create a RAnimForMClass object and get wrapped object from RAnim. -//! 9. Complete construction of the RAnimForMClass based on the created RWindow. -//! 10. Send ECmdFreeTimerWinDeactivateGc to animation DLL by CommandReply. -//! 10.1 plugin check whether DeactivatGc work or not. -//! 11. Close RAnimForMClass. -//! 12. Close RAnim. -//! 13. Destroy RAnimDll. -//! 14. Close RWsSession, RWindowGroup and two RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CommandReply return KErrNone. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-AnimWindowFunctions-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RWindow win1 - CREATE_OBJECT RAnimDll animdll - CREATE_OBJECT RAnim anim - CREATE_OBJECT RAnimForMClass animformc - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0016-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0016-0001-Construct_command004 - COMMAND win new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0016-0001-new_command005 - COMMAND win Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0016-0001-Construct_command006 - COMMAND win SetTransparencyAlphaChannel - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND win1 new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0016-0001-new_command009 - COMMAND win1 Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0016-0001-Construct_command010 - COMMAND win1 SetTransparencyAlphaChannel - COMMAND win1 Activate - COMMAND win1 BeginRedraw - COMMAND win1 EndRedraw - COMMAND animdll new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0016-0001-new_command013 - COMMAND animdll Load GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0016-0001-Load_command014 - COMMAND anim new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0016-0001-new_command015 - COMMAND animformc new GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0016-0001-new_command016 - COMMAND animformc Construct GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0016-0001-Construct_command017 - COMMAND animformc CommandReply GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0016-0001-CommandReply_command018 - COMMAND animformc Close - COMMAND anim Close - COMMAND animdll Destroy - COMMAND win1 Close - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK - -END_TESTCASE GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0016 - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-BackedUpWindow-PublicApi.script --- a/graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-BackedUpWindow-PublicApi.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,692 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// -//! @file -//! @SYMTestSuiteName GRAPHICS-WSERV-BackedUpWindow-PublicApi -//! @SYMScriptTestEnvironment This test script requires a basic ROM. - -/////////////////////////////////////////////////////////////////////////////// -// GRAPHICS-WSERV-BackedUpWindow-PublicApi.script -// -// Tests all public elements of the RBackedUpWindow class -// as a means of confidence that the API works as expected. -// -// The purpose is to provide a regression test suite of PublishedAll APIs for -// RBackedUpWindow related classes. -// Negative testing is performed to confirm that correct errors are returned -// when incorrect parameters are given. -// -// The tests are fully automated. -/////////////////////////////////////////////////////////////////////////////// - - -LOAD_SUITE T_GraphicsWservAPI - - -// **************************************************************************** -// RBackedUpWindow -// **************************************************************************** - -START_TESTCASE GRAPHICS-WSERV-BackedUpWindow-PublicApi-0001 -//! @SYMTestCaseID GRAPHICS-WSERV-BackedUpWindow-PublicApi-0001 -//! @SYMAPI RBackedUpWindow -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 01/03/2007 -//! @SYMTestCaseDesc RBackedUpWindow(): create a RBackedUpWindow object by C++ defaut constructor -//! Uses API elements: RBackedUpWindow() -//! @SYMTestActions simply execute new() a RBackedUpWindow to create the object -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults RBackedUpWindow object was created without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-BackedUpWindow-PublicApi.ini - CREATE_OBJECT RBackedUpWindow backupwin - COMMAND backupwin new - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-BackedUpWindow-PublicApi-0001 - - -START_TESTCASE GRAPHICS-WSERV-BackedUpWindow-PublicApi-0002 -//! @SYMTestCaseID GRAPHICS-WSERV-BackedUpWindow-PublicApi-0002 -//! @SYMAPI RBackedUpWindow -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 01/03/2007 -//! @SYMTestCaseDesc RBackedUpWindow(RWsSession &aWs): create a RBackedUpWindow object within the specified RWsSession -//! Uses API elements: RWsSession::Connect, RBackedUpWindow() -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a RBackedUpWindow within the RWsSession -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults RBackedUpWindow object was created without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-BackedUpWindow-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RBackedUpWindow backupwin - COMMAND ws new - COMMAND ws Connect - COMMAND backupwin new GRAPHICS-WSERV-BackedUpWindow-PublicApi-0002-0001-new_command04 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-BackedUpWindow-PublicApi-0002 - - -START_TESTCASE GRAPHICS-WSERV-BackedUpWindow-PublicApi-0003 -//! @SYMTestCaseID GRAPHICS-WSERV-BackedUpWindow-PublicApi-0003 -//! @SYMAPI RBackedUpWindow -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 01/03/2007 -//! @SYMTestCaseDesc Construct(const RWindowTreeNode &parent, TDisplayMode aDisplayMode, TUint32 aHandle): complete construction of a valid RBackedUpWindow handle -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RBackedUpWindow::Construct, MWsClientClass::WsHandle, RWindowBase::AbsPosition & DisplayMode & Size -//! @SYMTestActions 1. Create and connect a RWsSession, and within the RWsSession -//! 2. Create and construct a RWindowGroup (as the parent of RBackedUpWindow to be constructed) -//! 3. Create and construct() the RBackedUpWindow as the child of the RWindowGroup -//! 4. Check if the initial position and size of the RBackedUpWindow as expected -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Construct() method returns KErrNone without causing panic -//! 2. Check the WsHandle of RBackedUpWindow: equal to 0 before constructed, non-zero value after constructed -//! 3. Check the initial value of RBackedUpWindow: position (0,0) and size (width=0 and height=0), and default display mode -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-BackedUpWindow-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RBackedUpWindow backupwin - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-BackedUpWindow-PublicApi-0003-0001-new_command04 - COMMAND wingrp Construct GRAPHICS-WSERV-BackedUpWindow-PublicApi-0003-0001-Construct_command05 - COMMAND backupwin new GRAPHICS-WSERV-BackedUpWindow-PublicApi-0003-0001-new_command07 - COMMAND backupwin WsHandle GRAPHICS-WSERV-BackedUpWindow-PublicApi-0003-0001-WsHandle_command08 - COMMAND backupwin Construct GRAPHICS-WSERV-BackedUpWindow-PublicApi-0003-0001-Construct_command09 - COMMAND backupwin WsHandle GRAPHICS-WSERV-BackedUpWindow-PublicApi-0003-0001-WsHandle_command10 - COMMAND backupwin DisplayMode GRAPHICS-WSERV-BackedUpWindow-PublicApi-0003-0001-DisplayMode_command11 - COMMAND backupwin AbsPosition GRAPHICS-WSERV-BackedUpWindow-PublicApi-0003-0001-AbsPosition_command12 - COMMAND backupwin Size GRAPHICS-WSERV-BackedUpWindow-PublicApi-0003-0001-Size_command13 - COMMAND backupwin Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-BackedUpWindow-PublicApi-0003 - - -START_TESTCASE GRAPHICS-WSERV-BackedUpWindow-PublicApi-0004 -//! @SYMTestCaseID GRAPHICS-WSERV-BackedUpWindow-PublicApi-0004 -//! @SYMAPI RBackedUpWindow -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 05/03/2007 -//! @SYMTestCaseDesc BitmapHandle(): -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RBackedUpWindow::Construct, RWindowBase::SetSizeErr, CFbsBitmap::Duplicate & SizeInPixels & GetPixel -//! @SYMTestActions 1. Create and connect a RWsSession, and within the RWsSession -//! 2. Create and construct a RWindowGroup (as the parent of RBackedUpWindow to be constructed) -//! 3. Create and construct() the RBackedUpWindow as the child of the RWindowGroup -//! 4. Execute BitmapHandle, check and duplicate the returned bitmap handle -//! 5. Check the bitmap size and display mode: should be the same as the initial of RBackedUpWindow -//! 6. Use RWindowBase::SetSizeErr to change the size of the RBackedUpWindow -//! 7. Check the duplicated bitmap size and the color of pixels inside -//! 8. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. BitmapHandle() method calls without causing panic, and returns non-zero handle id -//! 2. Check the duplicate bitmap of the returned handle -//! 2.1 the bitmap size should be the same as the RBackedUpWindow size: size (width=0 and height=0), display mode as specified (EColor4K) -//! 2.2 if change the initial size of RBackedUpWindow, the bitmap size reflects the changed window size -//! 2.3 inside the bitmap, all pixels are the initial color: TRgb(255,255,255) -//! only check samples pixels: (10,10), (50,50), (60,60), (70,70) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-BackedUpWindow-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RBackedUpWindow backupwin - CREATE_OBJECT CFbsBitmap fbsbmp - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-BackedUpWindow-PublicApi-0004-0001-new_command04 - COMMAND wingrp Construct GRAPHICS-WSERV-BackedUpWindow-PublicApi-0004-0001-Construct_command05 - COMMAND backupwin new GRAPHICS-WSERV-BackedUpWindow-PublicApi-0004-0001-new_command07 - COMMAND backupwin Construct GRAPHICS-WSERV-BackedUpWindow-PublicApi-0004-0001-Construct_command08 - COMMAND backupwin MaintainBackup - COMMAND backupwin BitmapHandle - COMMAND fbsbmp new - COMMAND fbsbmp Duplicate GRAPHICS-WSERV-BackedUpWindow-PublicApi-0004-0001-Duplicate_command11 - COMMAND fbsbmp SizeInPixels GRAPHICS-WSERV-BackedUpWindow-PublicApi-0004-0001-SizeInPixels_command12 - COMMAND fbsbmp DisplayMode GRAPHICS-WSERV-BackedUpWindow-PublicApi-0004-0001-DisplayMode_command13 - COMMAND backupwin SetSizeErr GRAPHICS-WSERV-BackedUpWindow-PublicApi-0004-0001-SetSizeErr_command15 - COMMAND fbsbmp SizeInPixels GRAPHICS-WSERV-BackedUpWindow-PublicApi-0004-0001-SizeInPixels_command17 - COMMAND fbsbmp GetPixel GRAPHICS-WSERV-BackedUpWindow-PublicApi-0004-0001-GetPixel_command18 - COMMAND fbsbmp GetPixel GRAPHICS-WSERV-BackedUpWindow-PublicApi-0004-0001-GetPixel_command19 - COMMAND fbsbmp GetPixel GRAPHICS-WSERV-BackedUpWindow-PublicApi-0004-0001-GetPixel_command20 - COMMAND fbsbmp GetPixel GRAPHICS-WSERV-BackedUpWindow-PublicApi-0004-0001-GetPixel_command21 - COMMAND fbsbmp ~ - COMMAND backupwin Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-BackedUpWindow-PublicApi-0004 - - -START_TESTCASE GRAPHICS-WSERV-BackedUpWindow-PublicApi-0005 -//! @SYMTestCaseID GRAPHICS-WSERV-BackedUpWindow-PublicApi-0005 -//! @SYMAPI RBackedUpWindow -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 07/03/2007 -//! @SYMTestCaseDesc UpdateScreen(): copy the backup bitmap's image to the on-screen bitmap -//! Uses API elements: RWsSession::Connect & SetAutoFlush, RWindowGroup::Construct, CWsScreenDevice::Construct & CreateContext, CWindowGc::Activate & SetBrushColor & ESolidBrush -//! RBackedUpWindow::Construct & BitmapHandle, RWindowBase::SetSizeErr & Activte, TBitmapUtil::Begin & End & SetPixel & SetPos -//! @SYMTestActions 1. Create and initiate an active RBackedUpWindow -//! 1.1 Create a RWsSession, RWindowGroup, CWsScreenDevice and CWindowGc -//! 1.2 Create and construct a RBackedUpWindow, with size width 80 and height 80, and activated -//! 1.3 SetAutoFlush=TRUE for the RWsSession, and Activate the CWindowGc for the RBackedUpWindow -//! SetBrushColor to TRgb(255,0,0), SetBrushStyle=ESolidBrush -//! 2. Execute MaintainBackup to tell WSERV to maintain the backup bitmap -//! 3. Call BitmapHandle to get the backup bitmap handle, then duplicate the bitmap -//! 4. New a TBitmapUtil to work on the duplicate backup bitmap -//! 5. Use TBitmapUtil fuctions to change the color of pixels on the backup bitmap -//! 6. Check the drawing of the RBackedUpWindow: should be the initial color -//! 7. Execute UpdateScreen to copy backup bitmap to the screen -//! 8. Check the drawing of the RBackedUpWindow: should reflect the change of backup bitmap -//! 9. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. UpdateScreen() method calls without causing panic -//! 2. Check the drawing of the RBackedUpWindow -//! 2.1 before UpdateScreen executed, RBackedUpWindow keeps initial color TRgb(255,255,255) -//! 2.2 after UpdateScreen executed, RBackedUpWindow reflect the change of backup bitmap -//! (10,10) is TRgb(0,0,255), (10,12) is TRgb(0,255,0), (12,10) is TRgb(255,0,0), (12,12) is TRgb(0,255,255) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-BackedUpWindow-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RBackedUpWindow backupwin - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-new_command04 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-CreateContext_command06 - COMMAND wingrp new GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-new_command08 - COMMAND wingrp Construct GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-Construct_command09 - COMMAND backupwin new GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-new_command11 - COMMAND backupwin Construct GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-Construct_command12 - COMMAND backupwin SetExtentErr GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-SetExtentErr_command13 - COMMAND backupwin Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-SetAutoFlush_command16 - COMMAND wingc Activate GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-Activate_command18 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-SetBrushColor_command19 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-SetBrushStyle_command20 - - CREATE_OBJECT CFbsBitmap fbsbmp - CREATE_OBJECT TBitmapUtil bmputil - COMMAND backupwin MaintainBackup - COMMAND backupwin BitmapHandle - COMMAND fbsbmp new - COMMAND fbsbmp Duplicate GRAPHICS-WSERV-BackedUpWindow-PublicApi-0005-0001-Duplicate_command03 - COMMAND bmputil new GRAPHICS-WSERV-BackedUpWindow-PublicApi-0005-0001-New_command04 - COMMAND bmputil Begin GRAPHICS-WSERV-BackedUpWindow-PublicApi-0005-0001-Begin_command05 - COMMAND bmputil SetPixel GRAPHICS-WSERV-BackedUpWindow-PublicApi-0005-0001-SetPixel_command06 - COMMAND bmputil SetPos GRAPHICS-WSERV-BackedUpWindow-PublicApi-0005-0001-SetPos_command07 - COMMAND bmputil SetPixel GRAPHICS-WSERV-BackedUpWindow-PublicApi-0005-0001-SetPixel_command08 - COMMAND bmputil SetPos GRAPHICS-WSERV-BackedUpWindow-PublicApi-0005-0001-SetPos_command09 - COMMAND bmputil SetPixel GRAPHICS-WSERV-BackedUpWindow-PublicApi-0005-0001-SetPixel_command10 - COMMAND bmputil SetPos GRAPHICS-WSERV-BackedUpWindow-PublicApi-0005-0001-SetPos_command11 - COMMAND bmputil SetPixel GRAPHICS-WSERV-BackedUpWindow-PublicApi-0005-0001-SetPixel_command12 - COMMAND bmputil End - COMMAND scrdev checkPixels GRAPHICS-WSERV-BackedUpWindow-PublicApi-0005-0001-checkPixels_command15 - COMMAND backupwin UpdateScreen - - COMMAND fbsbmp ~ - COMMAND wingc Deactivate - COMMAND backupwin Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-BackedUpWindow-PublicApi-0005 - - -START_TESTCASE GRAPHICS-WSERV-BackedUpWindow-PublicApi-0006 -//! @SYMTestCaseID GRAPHICS-WSERV-BackedUpWindow-PublicApi-0006 -//! @SYMAPI RBackedUpWindow -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 07/03/2007 -//! @SYMTestCaseDesc UpdateScreen(const TRegion &aRegion): copy a part of the backup bitmap to the on-screen bitmap -//! Uses API elements: RWsSession::Connect & SetAutoFlush, RWindowGroup::Construct, CWsScreenDevice::Construct & CreateContext, CWindowGc::Activate & SetBrushColor & ESolidBrush -//! RBackedUpWindow::Construct & BitmapHandle, RWindowBase::SetSizeErr & Activte, TBitmapUtil::Begin & End & SetPixel & SetPos -//! @SYMTestActions 1. Create and initiate an active RBackedUpWindow -//! 1.1 Create a RWsSession, RWindowGroup, CWsScreenDevice and CWindowGc -//! 1.2 Create and construct a RBackedUpWindow, with size width 80 and height 80, and activated -//! 1.3 SetAutoFlush=TRUE for the RWsSession, and Activate the CWindowGc for the RBackedUpWindow -//! SetBrushColor to TRgb(255,0,0), SetBrushStyle=ESolidBrush -//! 2. Execute MaintainBackup to tell WSERV to maintain the backup bitmap -//! 3. Call BitmapHandle to get the backup bitmap handle, then duplicate the bitmap -//! 4. New a TBitmapUtil to work on the duplicate backup bitmap -//! 5. Use TBitmapUtil fuctions to change the color of pixels on the backup bitmap -//! 6. Check the drawing of the RBackedUpWindow: should be the initial color -//! 7. Execute UpdateScreen with region specified -//! 8. Check the drawing of the RBackedUpWindow: only the specified region reflect the change of backup bitmap -//! 9. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. UpdateScreen() method calls without causing panic -//! 2. Check the drawing of the RBackedUpWindow, with specified region ((0,0),(11,11)), ((11,11),(20,20)) -//! 2.1 before UpdateScreen executed, RBackedUpWindow keeps initial color TRgb(255,255,255) -//! 2.2 after UpdateScreen executed, only the specified region of RBackedUpWindow reflect the change of backup bitmap -//! inside the region: (10,10) is TRgb(0,0,255), (12,12) is TRgb(0,255,255) -//! outside the region: (10,12) is TRgb(255,255,255), (12,10) is TRgb(255,255,255) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-BackedUpWindow-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RBackedUpWindow backupwin - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-new_command04 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-CreateContext_command06 - COMMAND wingrp new GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-new_command08 - COMMAND wingrp Construct GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-Construct_command09 - COMMAND backupwin new GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-new_command11 - COMMAND backupwin Construct GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-Construct_command12 - COMMAND backupwin SetExtentErr GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-SetExtentErr_command13 - COMMAND backupwin Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-SetAutoFlush_command16 - COMMAND wingc Activate GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-Activate_command18 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-SetBrushColor_command19 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-SetBrushStyle_command20 - - CREATE_OBJECT CFbsBitmap fbsbmp - CREATE_OBJECT TBitmapUtil bmputil - COMMAND backupwin MaintainBackup - COMMAND backupwin BitmapHandle - COMMAND fbsbmp new - COMMAND fbsbmp Duplicate GRAPHICS-WSERV-BackedUpWindow-PublicApi-0006-0001-Duplicate_command03 - COMMAND bmputil new GRAPHICS-WSERV-BackedUpWindow-PublicApi-0006-0001-New_command04 - COMMAND bmputil Begin GRAPHICS-WSERV-BackedUpWindow-PublicApi-0006-0001-Begin_command05 - COMMAND bmputil SetPixel GRAPHICS-WSERV-BackedUpWindow-PublicApi-0006-0001-SetPixel_command06 - COMMAND bmputil SetPos GRAPHICS-WSERV-BackedUpWindow-PublicApi-0006-0001-SetPos_command07 - COMMAND bmputil SetPixel GRAPHICS-WSERV-BackedUpWindow-PublicApi-0006-0001-SetPixel_command08 - COMMAND bmputil SetPos GRAPHICS-WSERV-BackedUpWindow-PublicApi-0006-0001-SetPos_command09 - COMMAND bmputil SetPixel GRAPHICS-WSERV-BackedUpWindow-PublicApi-0006-0001-SetPixel_command10 - COMMAND bmputil SetPos GRAPHICS-WSERV-BackedUpWindow-PublicApi-0006-0001-SetPos_command11 - COMMAND bmputil SetPixel GRAPHICS-WSERV-BackedUpWindow-PublicApi-0006-0001-SetPixel_command12 - COMMAND bmputil End - COMMAND scrdev checkPixels GRAPHICS-WSERV-BackedUpWindow-PublicApi-0006-0001-checkPixels_command15 - COMMAND backupwin UpdateScreen GRAPHICS-WSERV-BackedUpWindow-PublicApi-0006-0001-UpdateScreen_command17 - - COMMAND fbsbmp ~ - COMMAND wingc Deactivate - COMMAND backupwin Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-BackedUpWindow-PublicApi-0006 - - -START_TESTCASE GRAPHICS-WSERV-BackedUpWindow-PublicApi-0007 -//! @SYMTestCaseID GRAPHICS-WSERV-BackedUpWindow-PublicApi-0007 -//! @SYMAPI RBackedUpWindow -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 08/03/2007 -//! @SYMTestCaseDesc UpdateBackupBitmap(): copy to the backup bitmap any areas of the window which are not currently stored in the bitmap -//! Uses API elements: RWsSession::Connect & SetAutoFlush, RWindowGroup::Construct, CWsScreenDevice::Construct & CreateContext, CWindowGc::Activate & SetBrushColor & ESolidBrush & DrawRect -//! RBackedUpWindow::Construct & BitmapHandle, RWindowBase::SetSizeErr & Activte -//! @SYMTestActions 1. Create and initiate an active RBackedUpWindow -//! 1.1 Create a RWsSession, RWindowGroup, CWsScreenDevice and CWindowGc -//! 1.2 Create and construct a RBackedUpWindow, with size width 80 and height 80, and activated -//! 1.3 SetAutoFlush=TRUE for the RWsSession, and Activate the CWindowGc for the RBackedUpWindow -//! SetBrushColor to TRgb(255,0,0), SetBrushStyle=ESolidBrush -//! 2. Call BitmapHandle to get the backup bitmap handle, then duplicate the bitmap -//! 3. Call CWindowGc::DrawRect ((0,0),(55,55)) to draw on the RBackedUpWindow -//! 4. Check the inital color of the bitmap: all pixels are initial TRgb(255,255,255) -//! 5. Execute UpdateBackupBitmap, the backup bitmap should reflect the drawing of test action 3 -//! 6. Call CWindowGc::DrawRect ((50,50),(65,65)) to draw on the RBackedUpWindow -//! 7. Check the backup bitmap: the drawing of test action 6 is not reflected -//! 8. Execute UpdateBackupBitmap, the backup bitmap should reflect the drawing of test action 6 -//! 9. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. UpdateBackupBitmap() method calls without causing panic -//! 2. The backup bitmap should reflect the content of the RBackedUpWindow after calling UpdateBackupBitmap -//! only check sample pixels of (0,0), (50,50), (60,60), (70,70) -//! 2.1 before test action 5, all pixels keep initially TRgb(255,255,255) -//! 2.2 before test action 8, the backup bitmap reflects the drawing of test action 3 -//! 2.2.1 on the rectangle border is drawn with pen color TRgb(0,0,0): (0,0) -//! 2.2.2 inside the rectangle is drawn with brush color TRgb(255,0,0): (50,50) -//! 2.2.3 outside the rectangle border keeps the default TRgb(255,255,255): (60,60), (70,70) -//! 2.3 after test action 8, the backup bitmap reflects the drawing of test action 3 + 6 (2nd drawing overwrites the 1st one) -//! 2.3.1 on the rectangle border is drawn with pen color TRgb(0,0,0): (0,0), (50,50) -//! 2.3.2 inside the rectangle is drawn with brush color TRgb(255,0,0): (60,60) -//! 2.3.3 outside the rectangle border keeps the default TRgb(255,255,255): (70,70) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-BackedUpWindow-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RBackedUpWindow backupwin - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-new_command04 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-CreateContext_command06 - COMMAND wingrp new GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-new_command08 - COMMAND wingrp Construct GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-Construct_command09 - COMMAND backupwin new GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-new_command11 - COMMAND backupwin Construct GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-Construct_command12 - COMMAND backupwin SetExtentErr GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-SetExtentErr_command13 - COMMAND backupwin Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-SetAutoFlush_command16 - COMMAND wingc Activate GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-Activate_command18 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-SetBrushColor_command19 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-SetBrushStyle_command20 - - CREATE_OBJECT CFbsBitmap fbsbmp - COMMAND backupwin BitmapHandle - COMMAND fbsbmp new - COMMAND fbsbmp Duplicate GRAPHICS-WSERV-BackedUpWindow-PublicApi-0007-0001-Duplicate_command03 - COMMAND wingc DrawRect GRAPHICS-WSERV-BackedUpWindow-PublicApi-0007-0001-DrawRect_command04 - COMMAND fbsbmp GetPixel GRAPHICS-WSERV-BackedUpWindow-PublicApi-0007-0001-GetPixel_command06 - COMMAND fbsbmp GetPixel GRAPHICS-WSERV-BackedUpWindow-PublicApi-0007-0001-GetPixel_command07 - COMMAND fbsbmp GetPixel GRAPHICS-WSERV-BackedUpWindow-PublicApi-0007-0001-GetPixel_command08 - COMMAND fbsbmp GetPixel GRAPHICS-WSERV-BackedUpWindow-PublicApi-0007-0001-GetPixel_command09 - COMMAND backupwin UpdateBackupBitmap - COMMAND fbsbmp GetPixel GRAPHICS-WSERV-BackedUpWindow-PublicApi-0007-0001-GetPixel_command13 - COMMAND fbsbmp GetPixel GRAPHICS-WSERV-BackedUpWindow-PublicApi-0007-0001-GetPixel_command14 - COMMAND fbsbmp GetPixel GRAPHICS-WSERV-BackedUpWindow-PublicApi-0007-0001-GetPixel_command15 - COMMAND fbsbmp GetPixel GRAPHICS-WSERV-BackedUpWindow-PublicApi-0007-0001-GetPixel_command16 - COMMAND wingc DrawRect GRAPHICS-WSERV-BackedUpWindow-PublicApi-0007-0001-DrawRect_command18 - COMMAND fbsbmp GetPixel GRAPHICS-WSERV-BackedUpWindow-PublicApi-0007-0001-GetPixel_command20 - COMMAND fbsbmp GetPixel GRAPHICS-WSERV-BackedUpWindow-PublicApi-0007-0001-GetPixel_command21 - COMMAND fbsbmp GetPixel GRAPHICS-WSERV-BackedUpWindow-PublicApi-0007-0001-GetPixel_command22 - COMMAND fbsbmp GetPixel GRAPHICS-WSERV-BackedUpWindow-PublicApi-0007-0001-GetPixel_command23 - COMMAND backupwin UpdateBackupBitmap - COMMAND fbsbmp GetPixel GRAPHICS-WSERV-BackedUpWindow-PublicApi-0007-0001-GetPixel_command27 - COMMAND fbsbmp GetPixel GRAPHICS-WSERV-BackedUpWindow-PublicApi-0007-0001-GetPixel_command28 - COMMAND fbsbmp GetPixel GRAPHICS-WSERV-BackedUpWindow-PublicApi-0007-0001-GetPixel_command29 - COMMAND fbsbmp GetPixel GRAPHICS-WSERV-BackedUpWindow-PublicApi-0007-0001-GetPixel_command30 - - COMMAND fbsbmp ~ - COMMAND wingc Deactivate - COMMAND backupwin Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-BackedUpWindow-PublicApi-0007 - - -START_TESTCASE GRAPHICS-WSERV-BackedUpWindow-PublicApi-0008 -//! @SYMTestCaseID GRAPHICS-WSERV-BackedUpWindow-PublicApi-0008 -//! @SYMAPI RBackedUpWindow -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 06/03/2007 -//! @SYMTestCaseDesc MaintainBackup(): tell the window server to start maintaining a backup bitmap with the entire window contents -//! Uses API elements: RWsSession::Connect & SetAutoFlush, RWindowGroup::Construct, CWsScreenDevice::Construct & CreateContext, CWindowGc::Activate & SetBrushColor & ESolidBrush & DrawRect -//! RBackedUpWindow::Construct & BitmapHandle, RWindowBase::SetSizeErr & Activte -//! @SYMTestActions 1. Create and initiate an active RBackedUpWindow -//! 1.1 Create a RWsSession, RWindowGroup, CWsScreenDevice and CWindowGc -//! 1.2 Create and construct a RBackedUpWindow, with size width 80 and height 80, and activated -//! 1.3 SetAutoFlush=TRUE for the RWsSession, and Activate the CWindowGc for the RBackedUpWindow -//! SetBrushColor to TRgb(255,0,0), SetBrushStyle=ESolidBrush -//! 2. Execute MaintainBackup to tell WSERV to maintain the backup bitmap -//! 3. Call BitmapHandle to get the backup bitmap handle, then duplicate the bitmap -//! 4. Check the inital color of the bitmap: all pixels are initial TRgb(255,255,255) -//! 5. Call CWindowGc::DrawRect ((0,0),(55,55)) to draw on the RBackedUpWindow -//! 6. Check if the backup bitmap reflect the drawing -//! 7. Call CWindowGc::DrawRect ((50,50),(65,65)) to draw on the RBackedUpWindow -//! 8. Check if the backup bitmap reflect the drawing -//! 9. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. MaintainBackup() method calls without causing panic -//! 2. The backup bitmap should reflect the content of the RBackedUpWindow -//! only check sample pixels of (0,0), (50,50), (60,60), (70,70) -//! 2.1 all pixels are initial TRgb(255,255,255) -//! 2.2 after drawing of test action 5 -//! 2.2.1 on the rectangle border is drawn with pen color TRgb(0,0,0): (0,0) -//! 2.2.2 inside the rectangle is drawn with brush color TRgb(255,0,0): (50,50) -//! 2.2.3 outside the rectangle border keeps the default TRgb(255,255,255): (60,60), (70,70) -//! 2.3 after drawing of test action 7 (2nd drawing overwrites the 1st one) -//! 2.3.1 on the rectangle border is drawn with pen color TRgb(0,0,0): (0,0), (50,50) -//! 2.3.2 inside the rectangle is drawn with brush color TRgb(255,0,0): (60,60) -//! 2.3.3 outside the rectangle border keeps the default TRgb(255,255,255): (70,70) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-BackedUpWindow-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RBackedUpWindow backupwin - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-new_command04 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-CreateContext_command06 - COMMAND wingrp new GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-new_command08 - COMMAND wingrp Construct GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-Construct_command09 - COMMAND backupwin new GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-new_command11 - COMMAND backupwin Construct GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-Construct_command12 - COMMAND backupwin SetExtentErr GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-SetExtentErr_command13 - COMMAND backupwin Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-SetAutoFlush_command16 - COMMAND wingc Activate GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-Activate_command18 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-SetBrushColor_command19 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-SetBrushStyle_command20 - - CREATE_OBJECT CFbsBitmap fbsbmp - COMMAND backupwin MaintainBackup - COMMAND backupwin BitmapHandle - COMMAND fbsbmp new - COMMAND fbsbmp Duplicate GRAPHICS-WSERV-BackedUpWindow-PublicApi-0008-0001-Duplicate_command03 - COMMAND fbsbmp GetPixel GRAPHICS-WSERV-BackedUpWindow-PublicApi-0008-0001-GetPixel_command04 - COMMAND fbsbmp GetPixel GRAPHICS-WSERV-BackedUpWindow-PublicApi-0008-0001-GetPixel_command05 - COMMAND fbsbmp GetPixel GRAPHICS-WSERV-BackedUpWindow-PublicApi-0008-0001-GetPixel_command06 - COMMAND fbsbmp GetPixel GRAPHICS-WSERV-BackedUpWindow-PublicApi-0008-0001-GetPixel_command07 - COMMAND wingc DrawRect GRAPHICS-WSERV-BackedUpWindow-PublicApi-0008-0001-DrawRect_command09 - COMMAND fbsbmp GetPixel GRAPHICS-WSERV-BackedUpWindow-PublicApi-0008-0001-GetPixel_command11 - COMMAND fbsbmp GetPixel GRAPHICS-WSERV-BackedUpWindow-PublicApi-0008-0001-GetPixel_command12 - COMMAND fbsbmp GetPixel GRAPHICS-WSERV-BackedUpWindow-PublicApi-0008-0001-GetPixel_command13 - COMMAND fbsbmp GetPixel GRAPHICS-WSERV-BackedUpWindow-PublicApi-0008-0001-GetPixel_command14 - COMMAND wingc DrawRect GRAPHICS-WSERV-BackedUpWindow-PublicApi-0008-0001-DrawRect_command16 - COMMAND fbsbmp GetPixel GRAPHICS-WSERV-BackedUpWindow-PublicApi-0008-0001-GetPixel_command18 - COMMAND fbsbmp GetPixel GRAPHICS-WSERV-BackedUpWindow-PublicApi-0008-0001-GetPixel_command19 - COMMAND fbsbmp GetPixel GRAPHICS-WSERV-BackedUpWindow-PublicApi-0008-0001-GetPixel_command20 - COMMAND fbsbmp GetPixel GRAPHICS-WSERV-BackedUpWindow-PublicApi-0008-0001-GetPixel_command21 - - COMMAND fbsbmp ~ - COMMAND wingc Deactivate - COMMAND backupwin Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-BackedUpWindow-PublicApi-0008 - -// **************************************************************************** -// Negative testcases of RBackedUpWindow -// **************************************************************************** - - -START_TESTCASE GRAPHICS-WSERV-BackedUpWindow-PublicApi-1004 -//! @SYMTestCaseID GRAPHICS-WSERV-BackedUpWindow-PublicApi-1004 -//! @SYMAPI RBackedUpWindow -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 02/10/2007 -//! @SYMTestCaseDesc Construct(const RWindowTreeNode &parent, TDisplayMode aDisplayMode, TUint32 aHandle): construct the RBackedUpWindow within invalid TDisplayMode (negative value) -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RBackedUpWindow::Construct & BitmapHandle, CFbsBitmap::Duplicate & DisplayMode -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and Construct RWindowGroup within the RWsSession -//! 3. Create RBackedUpWindow within the RWsSession -//! 4. Execute Construct() the RBackedUpWindow as the child of RWindowGroup and with negative TDisplayMode value -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults 1. RBackedUpWindow::Construct should fail with error KErrArgument (-6) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-BackedUpWindow-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RBackedUpWindow backupwin - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-new_command08 - COMMAND wingrp Construct GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-Construct_command09 - COMMAND backupwin new GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-new_command11 - COMMAND !Error=-6 backupwin Construct GRAPHICS-WSERV-BackedUpWindow-PublicApi-1004-0001-Construct_command01 - COMMAND backupwin Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-BackedUpWindow-PublicApi-1004 - - -START_TESTCASE GRAPHICS-WSERV-BackedUpWindow-PublicApi-1005 -//! @SYMTestCaseID GRAPHICS-WSERV-BackedUpWindow-PublicApi-1005 -//! @SYMAPI RBackedUpWindow -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 02/10/2007 -//! @SYMTestCaseDesc Construct(const RWindowTreeNode &parent, TDisplayMode aDisplayMode, TUint32 aHandle): construct the RBackedUpWindow within invalid TDisplayMode (large value exceeds max of TDisplayMode) -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RBackedUpWindow::Construct & BitmapHandle, CFbsBitmap::Duplicate & DisplayMode -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and Construct RWindowGroup within the RWsSession -//! 3. Create RBackedUpWindow within the RWsSession -//! 4. Execute Construct() the RBackedUpWindow as the child of RWindowGroup and with large TDisplayMode value (10000) -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults 1. RBackedUpWindow::Construct should fail with error KErrArgument (-6) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-BackedUpWindow-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RBackedUpWindow backupwin - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-new_command08 - COMMAND wingrp Construct GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-Construct_command09 - COMMAND backupwin new GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-new_command11 - COMMAND !Error=-6 backupwin Construct GRAPHICS-WSERV-BackedUpWindow-PublicApi-1005-0001-Construct_command01 - COMMAND backupwin Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-BackedUpWindow-PublicApi-1005 - - -START_TESTCASE GRAPHICS-WSERV-BackedUpWindow-PublicApi-1006 -//! @SYMTestCaseID GRAPHICS-WSERV-BackedUpWindow-PublicApi-1006 -//! @SYMAPI RBackedUpWindow -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 01/10/2007 -//! @SYMTestCaseDesc Construct(const RWindowTreeNode &parent, TDisplayMode aDisplayMode, TUint32 aHandle): construct the RBackedUpWindow within invalid invalid parent node -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RBackedUpWindow::Construct -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create RWindowGroup within the RWsSession but not Construct() it -//! 3. Create RBackedUpWindow within the RWsSession -//! 4. Execute Construct() the RBackedUpWindow as the child of RWindowGroup and see if it meets expected panic code -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=6 (Invalid window handle) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-BackedUpWindow-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RBackedUpWindow backupwin - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-new_command08 - COMMAND backupwin new GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-new_command11 - COMMAND backupwin Construct GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-Construct_command12 - END_TEST_BLOCK !PanicString=WSERV !PanicCode=6 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-BackedUpWindow-PublicApi-1006 - - -START_TESTCASE GRAPHICS-WSERV-BackedUpWindow-PublicApi-1007 -//! @SYMTestCaseID GRAPHICS-WSERV-BackedUpWindow-PublicApi-1007 -//! @SYMAPI RBackedUpWindow -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 03/10/2007 -//! @SYMTestCaseDesc UpdateScreen(): execute UpdateScreen() before calling MaintainBackup() -//! Uses API elements: RWsSession::Connect & SetAutoFlush, RWindowGroup::Construct, RBackedUpWindow::Construct -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and Construct RWindowGroup within the RWsSession -//! 3. Create and Construct RBackedUpWindow as the child of RWindowGroup and within the RWsSession -//! 4. SetAutoFlush=TRUE for the RWsSession -//! 5. Execute UpdateScreen() before calling MaintainBackup() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults Succesfully without causing any panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-BackedUpWindow-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RBackedUpWindow backupwin - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-new_command08 - COMMAND wingrp Construct GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-Construct_command09 - COMMAND backupwin new GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-new_command11 - COMMAND backupwin Construct GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-Construct_command12 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-SetAutoFlush_command16 - COMMAND backupwin UpdateScreen - COMMAND backupwin Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-BackedUpWindow-PublicApi-1007 - - -START_TESTCASE GRAPHICS-WSERV-BackedUpWindow-PublicApi-1008 -//! @SYMTestCaseID GRAPHICS-WSERV-BackedUpWindow-PublicApi-1008 -//! @SYMAPI RBackedUpWindow -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 03/10/2007 -//! @SYMTestCaseDesc UpdateScreen(const TRegion &aRegion): execute UpdateScreen() for the specified region before calling MaintainBackup() -//! Uses API elements: RWsSession::Connect & SetAutoFlush, RWindowGroup::Construct, RBackedUpWindow::Construct -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and Construct RWindowGroup within the RWsSession -//! 3. Create and Construct RBackedUpWindow as the child of RWindowGroup and within the RWsSession -//! 4. SetAutoFlush=TRUE for the RWsSession -//! 5. Execute UpdateScreen() before calling MaintainBackup() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults Succesfully without causing any panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-BackedUpWindow-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RBackedUpWindow backupwin - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-new_command08 - COMMAND wingrp Construct GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-Construct_command09 - COMMAND backupwin new GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-new_command11 - COMMAND backupwin Construct GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-Construct_command12 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-SetAutoFlush_command16 - COMMAND backupwin UpdateScreen GRAPHICS-WSERV-BackedUpWindow-PublicApi-1008-0001-UpdateScreen_command01 - COMMAND backupwin Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-BackedUpWindow-PublicApi-1008 - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-BlankWindow-PublicApi.script --- a/graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-BlankWindow-PublicApi.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,437 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// -//! @file -//! @SYMTestSuiteName GRAPHICS-WSERV-BlankWindow-PublicApi -//! @SYMScriptTestEnvironment This test script requires a basic ROM. - -/////////////////////////////////////////////////////////////////////////////// -// GRAPHICS-WSERV-BlankWindow-PublicApi.script -// -// Tests all public elements of the RBlankWindow class -// as a means of confidence that the API works as expected. -// -// The purpose is to provide a regression test suite of PublishedAll APIs for -// RBlankWindow related classes. -// Negative testing is performed to confirm that correct errors are returned -// when incorrect parameters are given. -// -// The tests are fully automated. -/////////////////////////////////////////////////////////////////////////////// - - -LOAD_SUITE T_GraphicsWservAPI - - -// **************************************************************************** -// RBlankWindow -// **************************************************************************** - -START_TESTCASE GRAPHICS-WSERV-BlankWindow-PublicApi-0001 -//! @SYMTestCaseID GRAPHICS-WSERV-BlankWindow-PublicApi-0001 -//! @SYMAPI RBlankWindow -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 18/12/2006 -//! @SYMTestCaseDesc RBlankWindow(): create a RBlankWindow object by C++ defaut constructor -//! Uses API elements: RBlankWindow() -//! @SYMTestActions simply execute new() a RBlankWindow to create the object -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults RBlankWindow object was created without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-BlankWindow-PublicApi.ini - CREATE_OBJECT RBlankWindow bnkwin - COMMAND bnkwin new - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-BlankWindow-PublicApi-0001 - - -START_TESTCASE GRAPHICS-WSERV-BlankWindow-PublicApi-0002 -//! @SYMTestCaseID GRAPHICS-WSERV-BlankWindow-PublicApi-0002 -//! @SYMAPI RBlankWindow -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 18/12/2006 -//! @SYMTestCaseDesc RBlankWindow(RWsSession &aWs): create a RBlankWindow object within the specified RWsSession -//! Uses API elements: RWsSession::Connect, RBlankWindow() -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a RBlankWindow within the RWsSession -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults RBlankWindow object was created without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-BlankWindow-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RBlankWindow bnkwin - COMMAND ws new - COMMAND ws Connect - COMMAND bnkwin new GRAPHICS-WSERV-BlankWindow-PublicApi-0002-0001-new_command04 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-BlankWindow-PublicApi-0002 - - -START_TESTCASE GRAPHICS-WSERV-BlankWindow-PublicApi-0003 -//! @SYMTestCaseID GRAPHICS-WSERV-BlankWindow-PublicApi-0003 -//! @SYMAPI RBlankWindow -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc Construct(const RWindowTreeNode &parent, TUint32 aHandle): complete construction of a valid RBlankWindow handle -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RBlankWindow::Construct -//! @SYMTestActions 1. Create and connect a RWsSession, and within the RWsSession -//! 2. Create and construct a RWindowGroup (as the parent of RBlankWindow to be constructed) -//! 3. Create and construct() the RBlankWindow as the child of the RWindowGroup -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Construct() method returns KErrNone without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-BlankWindow-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RBlankWindow bnkwin - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-BlankWindow-PublicApi-0003-0001-new_command04 - COMMAND wingrp Construct GRAPHICS-WSERV-BlankWindow-PublicApi-0003-0001-Construct_command05 - COMMAND bnkwin new GRAPHICS-WSERV-BlankWindow-PublicApi-0003-0001-new_command07 - COMMAND bnkwin Construct GRAPHICS-WSERV-BlankWindow-PublicApi-0003-0001-Construct_command08 - COMMAND bnkwin Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-BlankWindow-PublicApi-0003 - - -START_TESTCASE GRAPHICS-WSERV-BlankWindow-PublicApi-0004 -//! @SYMTestCaseID GRAPHICS-WSERV-BlankWindow-PublicApi-0004 -//! @SYMAPI RBlankWindow -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc SetColor(TRgb aColor): set the background color as specified of a RBlankWindow object -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct -//! RWindowBase::SetRequiredDisplayMode & Activate, RBlankWindow::Construct -//! @SYMTestActions 1. Setup and display a RBlankWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 New and construct a RWindowGroup within the RWsSession -//! 1.4 New and construct a RBlankWindow as the child of the RWindowGroup -//! use RWindowBase::SetRequiredDisplayMode (to EColor4K) for the RWindow and Activate it -//! 1.5 SetAutoFlush to TRUE for the RWsSession -//! 2. Set the background color of RBlankWindow to TRgb(255,0,0) -//! 3. Check the RBlankWindow is displayed on the screen with the specified background color -//! 4. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Set the background color of RBlankWindow without causing panic -//! 2. RBlankWindow should be displayed with the specified background color TRgb(255,0,0) -//! only check the sample rectangles ((0,0),(20,20)), ((180,0),(200,20)), ((0,180),(20,200)), ((180,180),(200,200)) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-BlankWindow-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RBlankWindow bnkwin - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-new_command04 - COMMAND scrdev Construct - COMMAND wingrp new GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-new_command07 - COMMAND wingrp Construct GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-Construct_command08 - COMMAND bnkwin new GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-new_command10 - COMMAND bnkwin Construct GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-Construct_command11 - COMMAND bnkwin SetRequiredDisplayMode GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-SetRequiredDisplayMode_command12 - COMMAND bnkwin Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-SetAutoFlush_command15 - COMMAND bnkwin SetColor GRAPHICS-WSERV-BlankWindow-PublicApi-0004-0001-SetColor_command01 - COMMAND scrdev checkRectColor GRAPHICS-WSERV-BlankWindow-PublicApi-0004-0001-checkRectColor_command03 - COMMAND bnkwin Close - COMMAND wingrp Close - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-BlankWindow-PublicApi-0004 - - -START_TESTCASE GRAPHICS-WSERV-BlankWindow-PublicApi-0005 -//! @SYMTestCaseID GRAPHICS-WSERV-BlankWindow-PublicApi-0005 -//! @SYMAPI RBlankWindow -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc SetColor(): set the background color for cleaning the window of a RBlankWindow object -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, -//! RWindowBase::SetRequiredDisplayMode & Activate, RBlankWindow::Construct -//! @SYMTestActions 1. Setup and display a RBlankWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 New and construct a RWindowGroup within the RWsSession -//! 1.4 New and construct a RBlankWindow as the child of the RWindowGroup -//! use RWindowBase::SetRequiredDisplayMode (to EColor4K) for the RWindow and Activate it -//! 1.5 SetAutoFlush to TRUE for the RWsSession -//! 2. Clean the background color of RBlankWindow, to the default TRgb(255,255,255) -//! 3. Check the RBlankWindow is displayed on the screen with the default background color -//! 4. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Clean the background color of RBlankWindow without causing panic -//! 2. RBlankWindow should be displayed with the default background color TRgb(255,255,255) -//! only check the sample rectangles ((0,0),(20,20)), ((180,0),(200,20)), ((0,180),(20,200)), ((180,180),(200,200)) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-BlankWindow-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RBlankWindow bnkwin - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-new_command04 - COMMAND scrdev Construct - COMMAND wingrp new GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-new_command07 - COMMAND wingrp Construct GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-Construct_command08 - COMMAND bnkwin new GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-new_command10 - COMMAND bnkwin Construct GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-Construct_command11 - COMMAND bnkwin SetRequiredDisplayMode GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-SetRequiredDisplayMode_command12 - COMMAND bnkwin Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-SetAutoFlush_command15 - - COMMAND bnkwin SetColor - COMMAND scrdev checkRectColor GRAPHICS-WSERV-BlankWindow-PublicApi-0005-0001-checkRectColor_command03 - - COMMAND bnkwin Close - COMMAND wingrp Close - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-BlankWindow-PublicApi-0005 - - -START_TESTCASE GRAPHICS-WSERV-BlankWindow-PublicApi-0006 -//! @SYMTestCaseID GRAPHICS-WSERV-BlankWindow-PublicApi-0006 -//! @SYMAPI RBlankWindow -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc SetSize(const TSize &size): set the size of a RBlankWindow object -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, -//! RWindowBase::SetRequiredDisplayMode & Activate & Size, RBlankWindow::Construct & SetColor -//! @SYMTestActions 1. Setup and display a RBlankWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 New and construct a RWindowGroup within the RWsSession -//! 1.4 New and construct a RBlankWindow as the child of the RWindowGroup -//! use RWindowBase::SetRequiredDisplayMode (to EColor4K) for the RWindow and Activate it -//! 1.5 SetAutoFlush to TRUE for the RWsSession -//! 2. Execute SetSize to set the RBlankWindow size to (width 40, height 30) -//! 3. Use RWindowBase::Size to get and check if the window size as specified -//! 4. Set RBlankWindow background color to TRgb(255,0,0) -//! 5. Check if the RBlankWindow is displayed on the screen with the specified background color -//! 6. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Set the size of RBlankWindow without causing panic -//! 2. The specified window size is the same as what get from RWindowBase::Size -//! 3. RBlankWindow (TRect((0,0),(40,30)) on the screen) should be drawn with the specified background color TRgb(255,0,0) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-BlankWindow-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RBlankWindow bnkwin - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-new_command04 - COMMAND scrdev Construct - COMMAND wingrp new GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-new_command07 - COMMAND wingrp Construct GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-Construct_command08 - COMMAND bnkwin new GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-new_command10 - COMMAND bnkwin Construct GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-Construct_command11 - COMMAND bnkwin SetRequiredDisplayMode GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-SetRequiredDisplayMode_command12 - COMMAND bnkwin Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-SetAutoFlush_command15 - - COMMAND bnkwin SetSize GRAPHICS-WSERV-BlankWindow-PublicApi-0006-0001-SetSize_command01 - COMMAND bnkwin Size GRAPHICS-WSERV-BlankWindow-PublicApi-0006-0001-Size_command02 - COMMAND bnkwin SetColor GRAPHICS-WSERV-BlankWindow-PublicApi-0006-0001-SetColor_command03 - COMMAND scrdev checkRectColor GRAPHICS-WSERV-BlankWindow-PublicApi-0006-0001-checkRectColor_command05 - - COMMAND bnkwin Close - COMMAND wingrp Close - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-BlankWindow-PublicApi-0006 - - -START_TESTCASE GRAPHICS-WSERV-BlankWindow-PublicApi-0007 -//! @SYMTestCaseID GRAPHICS-WSERV-BlankWindow-PublicApi-0007 -//! @SYMAPI RBlankWindow -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 18/12/2006 -//! @SYMTestCaseDesc SetExtent(const TPoint &point, const TSize &size): set the extent (position and size) of a RBlankWindow object -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, -//! RWindowBase::SetRequiredDisplayMode & Activate & AbsPosition & Size, RBlankWindow::Construct & SetColor -//! @SYMTestActions 1. Setup and display a RBlankWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 New and construct a RWindowGroup within the RWsSession -//! 1.4 New and construct a RBlankWindow as the child of the RWindowGroup -//! use RWindowBase::SetRequiredDisplayMode (to EColor4K) for the RWindow and Activate it -//! 1.5 SetAutoFlush to TRUE for the RWsSession -//! 2. Execute SetExtent to set the RBlankWindow position to (10,11) and size to (width 30, height 40) -//! 3. Use RWindowBase::AbsPosition to get and check if the window position as specified -//! 4. Use RWindowBase::Size to get and check if the window size as specified -//! 5. Set RBlankWindow background color to TRgb(255,0,0) -//! 6. Check if the RBlankWindow is displayed on the screen with the specified background color -//! 7. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Set the extent of RBlankWindow without causing panic -//! 2. The specified window position (10,11) is the same as what get from RWindowBase::AbsPosition -//! 3. The specified window size (width 30, height 40) is the same as what get from RWindowBase::Size -//! 4. RBlankWindow on the screen) should be drawn with the specified background color TRgb(255,0,0) -//! the RBlankWindow is the rectangle area with the top-left at the specified position (10,11) and bottom-right at (40,51) = (10,11)+(30,40) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-BlankWindow-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RBlankWindow bnkwin - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-new_command04 - COMMAND scrdev Construct - COMMAND wingrp new GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-new_command07 - COMMAND wingrp Construct GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-Construct_command08 - COMMAND bnkwin new GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-new_command10 - COMMAND bnkwin Construct GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-Construct_command11 - COMMAND bnkwin SetRequiredDisplayMode GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-SetRequiredDisplayMode_command12 - COMMAND bnkwin Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-SetAutoFlush_command15 - - COMMAND bnkwin SetExtent GRAPHICS-WSERV-BlankWindow-PublicApi-0007-0001-SetExtent_command01 - COMMAND bnkwin AbsPosition GRAPHICS-WSERV-BlankWindow-PublicApi-0007-0001-AbsPosition_command02 - COMMAND bnkwin Size GRAPHICS-WSERV-BlankWindow-PublicApi-0007-0001-Size_command03 - COMMAND bnkwin SetColor GRAPHICS-WSERV-BlankWindow-PublicApi-0007-0001-SetColor_command04 - COMMAND scrdev checkRectColor GRAPHICS-WSERV-BlankWindow-PublicApi-0007-0001-checkRectColor_command06 - - COMMAND bnkwin Close - COMMAND wingrp Close - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-BlankWindow-PublicApi-0007 - - - - -// **************************************************************************** -// Negative testcases of RBlankWindow -// **************************************************************************** - -START_TESTCASE GRAPHICS-WSERV-BlankWindow-PublicApi-1003 -//! @SYMTestCaseID GRAPHICS-WSERV-BlankWindow-PublicApi-1003 -//! @SYMAPI RBlankWindow -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 23/10/2007 -//! @SYMTestCaseDesc Construct(const RWindowTreeNode &parent, TUint32 aHandle): fail to Construct() a RBlankWindow as a child of a invalid parent RWindowTreeNode -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RBlankWindow::Construct -//! @SYMTestActions 1. new() and Connect() a RWsSession -//! 2. new() a RWindowGroup within the RWsSession but not Construct() it -//! 3. new() a RBlankWindow within the RWsSession -//! 4. Execute Construct() the RBlankWindow as the child of RWindowGroup and see if it meets expected panic code -//! 5. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults get panic WSERV code=6 (Invalid window handle) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-BlankWindow-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RBlankWindow bnkwin - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-new_command07 - COMMAND bnkwin new GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-new_command10 - COMMAND bnkwin Construct GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-Construct_command11 - END_TEST_BLOCK !PanicString=WSERV !PanicCode=6 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-BlankWindow-PublicApi-1003 - - -START_TESTCASE GRAPHICS-WSERV-BlankWindow-PublicApi-1005 -//! @SYMTestCaseID GRAPHICS-WSERV-BlankWindow-PublicApi-1005 -//! @SYMAPI RBlankWindow -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 24/10/2007 -//! @SYMTestCaseDesc SetSize(const TSize &size): set RBlankWindow to invalid size (negative width and height) -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindowBase::Size, RBlankWindow::Construct -//! @SYMTestActions 1. new() and Connect() a RWsSession -//! 2. new() and Construct() a RWindowGroup within the RWsSession -//! 3. new() and Construct() a RBlankWindow as the child of the RWindowGroup -//! 4. Execute SetSize() to set RBlankWindow to invalid size (negative width and height) -//! 5. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults SetSize() to negative width/height would not generate error, but actually set the negative width/height to zero value -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-BlankWindow-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RBlankWindow bnkwin - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-new_command07 - COMMAND wingrp Construct GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-Construct_command08 - COMMAND bnkwin new GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-new_command10 - COMMAND bnkwin Construct GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-Construct_command11 - COMMAND bnkwin SetSize GRAPHICS-WSERV-BlankWindow-PublicApi-1005-0001-SetSize_command01 - COMMAND bnkwin Size GRAPHICS-WSERV-BlankWindow-PublicApi-1005-0001-Size_command02 - COMMAND bnkwin Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-BlankWindow-PublicApi-1005 - - -START_TESTCASE GRAPHICS-WSERV-BlankWindow-PublicApi-1006 -//! @SYMTestCaseID GRAPHICS-WSERV-BlankWindow-PublicApi-1006 -//! @SYMAPI RBlankWindow -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 24/10/2007 -//! @SYMTestCaseDesc SetSize(const TSize &size): set RBlankWindow to invalid size (negative width and height) -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindowBase::Size, RBlankWindow::Construct -//! @SYMTestActions 1. new() and Connect() a RWsSession -//! 2. new() and Construct() a RWindowGroup within the RWsSession -//! 3. new() and Construct() a RBlankWindow as the child of the RWindowGroup -//! 4. Execute SetSize() to set RBlankWindow to invalid size (negative width and height) -//! 5. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults SetSize() to negative width/height would not generate error, but actually set the negative width/height to zero value -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-BlankWindow-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RBlankWindow bnkwin - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-new_command07 - COMMAND wingrp Construct GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-Construct_command08 - COMMAND bnkwin new GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-new_command10 - COMMAND bnkwin Construct GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-Construct_command11 - COMMAND bnkwin SetExtent GRAPHICS-WSERV-BlankWindow-PublicApi-1006-0001-SetExtent_command01 - COMMAND bnkwin Size GRAPHICS-WSERV-BlankWindow-PublicApi-1006-0001-Size_command02 - COMMAND bnkwin Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-BlankWindow-PublicApi-1006 diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-DirectScreenAccess-PublicApi.script --- a/graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-DirectScreenAccess-PublicApi.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,914 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// -//! @file -//! @SYMTestSuiteName GRAPHICS-WSERV-DirectScreenAccess-PublicApi -//! @SYMScriptTestEnvironment This test script requires a basic ROM. - -/////////////////////////////////////////////////////////////////////////////// -// GRAPHICS-WSERV-DirectScreenAccess-PublicApi.script -// -// Tests all public elements of the CDirectScreenAccess class -// as a means of confidence that the API works as expected. -// -// The purpose is to provide a regression test suite of PublishedAll APIs for -// CDirectScreenAccess related classes. -// Negative testing is performed to confirm that correct errors are returned -// when incorrect parameters are given. -// -// The tests are fully automated. -/////////////////////////////////////////////////////////////////////////////// - -LOAD_SUITE T_GraphicsWservAPI - -// **************************************************************************** -// CDirectScreenAccess & MDirectScreenAccess -// **************************************************************************** - -START_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0001 -//! @SYMTestCaseID GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0001 -//! @SYMAPI CDirectScreenAccess::NewL(RWsSession{ref} , CWsScreenDevice{ref}, RWindowBase{ref}, MDirectScreenAccess{ref}) -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 19/12/2007 -//! @SYMTestCaseDesc Creates a DSA object but does not start it. -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a CWsScreenDevice attached to RWsSession. -//! 3. Complete the construction. -//! 4. Create and construct a RWindow -//! 5. Create a CDirectScreenAccess. -//! 6. Destruct and close all created object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CDirectScreenAccess object was created successfully. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-DirectScreenAccess-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT CDirectScreenAccess dsa - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 - COMMAND scrdev Construct - COMMAND wingrp new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-Construct_command006 - COMMAND win new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 - COMMAND win Construct GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-Construct_command008 - COMMAND dsa NewL GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-NewL_command009 - COMMAND dsa ~ - COMMAND scrdev ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0001 - - -START_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0002 -//! @SYMTestCaseID GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0002 -//! @SYMAPI CDirectScreenAccess::StartL() -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 19/12/2007 -//! @SYMTestCaseDesc Informs the window server to start DSA. -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a CWsScreenDevice within the RWsSession -//! 3. Create and construct a RWindow. -//! 4. Create a CDirectScreenAccess -//! 5. Start direct screen access. -//! 6. Destruct and close all created objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults DSA was started successfully. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-DirectScreenAccess-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT CDirectScreenAccess dsa - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 - COMMAND scrdev Construct - COMMAND wingrp new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-Construct_command006 - COMMAND win new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 - COMMAND win Construct GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-Construct_command008 - COMMAND dsa NewL GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-NewL_command009 - COMMAND dsa StartL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0022-0001-StartL_command001 - COMMAND dsa Cancel - OUTSTANDING - COMMAND dsa ~ - COMMAND scrdev ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0002 - - -START_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0003 -//! @SYMTestCaseID GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0003 -//! @SYMAPI CDirectScreenAccess::Gc() -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 19/12/2007 -//! @SYMTestCaseDesc Gets the graphics context for drawing to the screen. -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a CWsScreenDevice within the RWsSession -//! 3. Create and construct a RWindow. -//! 4. Create a CDirectScreenAccess. -//! 5. Start direct screen access. -//! 6. Gets the graphics context for drawing to the screen. -//! 7. Destruct and close all created object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The returned graphics context in DSA is valid. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-DirectScreenAccess-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT CDirectScreenAccess dsa - CREATE_OBJECT CFbsBitGc bgc - CREATE_OBJECT CFbsScreenDevice fbsScreenDevice - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 - COMMAND scrdev Construct - COMMAND wingrp new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-Construct_command006 - COMMAND win new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 - COMMAND win Construct GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-Construct_command008 - COMMAND dsa NewL GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-NewL_command009 - COMMAND dsa StartL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0022-0001-StartL_command001 - COMMAND dsa Gc GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0022-0001-GC_command001 - COMMAND bgc Activate GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0022-0001-GC_command002 - COMMAND dsa Cancel - COMMAND bgc disown - OUTSTANDING - COMMAND dsa ~ - COMMAND scrdev ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0003 - - -START_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0004 -//! @SYMTestCaseID GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0004 -//! @SYMAPI CDirectScreenAccess::ScreenDevice() -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 19/12/2007 -//! @SYMTestCaseDesc Gets the screen device to draw to. -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a CWsScreenDevice within the RWsSession -//! 3. Create and construct a RWindow. -//! 4. Create a CDirectScreenAccess. -//! 5. Gets the screen device to draw to. -//! 6. Destruct and close all created object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The returned screen device in DSA is valid. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-DirectScreenAccess-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT CDirectScreenAccess dsa - CREATE_OBJECT CFbsScreenDevice fbsScreenDevice - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 - COMMAND scrdev Construct - COMMAND wingrp new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-Construct_command006 - COMMAND win new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 - COMMAND win Construct GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-Construct_command008 - COMMAND dsa NewL GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-NewL_command009 - COMMAND dsa StartL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0022-0001-StartL_command001 - COMMAND dsa ScreenDevice GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0022-0001-ScreenDevice_command001 - COMMAND dsa Cancel - OUTSTANDING - COMMAND fbsScreenDevice disown - COMMAND dsa ~ - COMMAND scrdev ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0004 - - -START_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0005 -//! @SYMTestCaseID GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0005 -//! @SYMAPI CDirectScreenAccess::DrawingRegion() -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 19/12/2007 -//! @SYMTestCaseDesc Gets the graphics context for drawing to the screen. -//! -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a CWsScreenDevice within the RWsSession -//! 3. Create and construct a RWindow class. -//! 4. Create a CDirectScreenAccess. -//! 5. Start direct screen access. -//! 6. Get the clipping region to draw to. -//! 7. Destruct and close all created object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The returned clipping region in DSA is valid. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-DirectScreenAccess-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT CDirectScreenAccess dsa - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 - COMMAND scrdev Construct - COMMAND wingrp new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-Construct_command006 - COMMAND win new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 - COMMAND win Construct GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-Construct_command008 - COMMAND dsa NewL GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-NewL_command009 - COMMAND dsa StartL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0022-0001-StartL_command001 - COMMAND dsa DrawingRegion - COMMAND dsa Cancel - OUTSTANDING - COMMAND dsa ~ - COMMAND scrdev ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0005 - - -START_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0006 -//! @SYMTestCaseID GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0006 -//! @SYMAPI CDirectScreenAccess::DrawingRegion() -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 19/12/2007 -//! @SYMTestCaseDesc Gets the graphics context for drawing to the screen,without Starting. -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a CWsScreenDevice within the RWsSession -//! 3. Create and construct a RWindow class. -//! 4. Activate window and notify beginredraw/endredraw. -//! 5. Create a CDirectScreenAccess and start. -//! 6. Get the clipping region to draw to. -//! 7. Destruct and close all created object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1.The returned clipping region in DSA is valid 2. Verify the returned region in DSA and the window shape is same. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-DirectScreenAccess-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT CDirectScreenAccess dsa - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 - COMMAND scrdev Construct - COMMAND wingrp new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-Construct_command006 - COMMAND win new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 - COMMAND win Construct GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-Construct_command008 - COMMAND dsa NewL GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-NewL_command009 - COMMAND win SetShape GRAPHICS-WSERV-DirectScreenAccess-Setup-0006-0001-SetShape_command010 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND dsa StartL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0022-0001-StartL_command001 - COMMAND dsa DrawingRegion GRAPHICS-WSERV-DirectScreenAccess-Setup-0006-0001-SetShape_command010 - COMMAND dsa Cancel - OUTSTANDING - COMMAND dsa ~ - COMMAND scrdev ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0006 - -START_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0007 -//! @SYMTestCaseID GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0007 -//! @SYMAPI CDirectScreenAccess::StartL() -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 19/12/2007 -//! @SYMTestCaseDesc Create two DSA,set the priority of the second DSA to high and check that AbortNow() and Restart() are called. -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a CWsScreenDevice within the RWsSession -//! 3. Create and construct a RWindow class. -//! 4. Create two CDirectScreenAccess. -//! 5. Start the second DSA with heigh priority to check first DSA's AbortNow be called. -//! 6. Cancel the second DSA. -//! 7. Destruct and close all created object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. AbortNow() and Restart() be called sucessfully. 2.Terminate reason is ETerminateRegion. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-DirectScreenAccess-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RWindow win2 - CREATE_OBJECT CDirectScreenAccess dsa - CREATE_OBJECT CDirectScreenAccess dsa2 - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 - COMMAND scrdev Construct - COMMAND wingrp new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-Construct_command006 - COMMAND win new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 - COMMAND win Construct GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-Construct_command008 - COMMAND win2 new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 - COMMAND win2 Construct GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-Construct_command009 - COMMAND dsa NewL GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-NewL_command009 - COMMAND dsa2 NewL GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-NewL_command010 - COMMAND dsa StartL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0022-0001-StartL_command001 - COMMAND win SetShape GRAPHICS-WSERV-DirectScreenAccess-Setup-0006-0001-SetShape_command010 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND dsa2 SetPriority GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0022-0001-SetPriority_command001 - COMMAND dsa2 StartL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0022-0001-StartL_command001 - COMMAND win2 SetShape GRAPHICS-WSERV-DirectScreenAccess-Setup-0006-0001-SetShape_command010 - COMMAND win2 Activate - COMMAND win2 BeginRedraw - COMMAND win2 EndRedraw - COMMAND dsa2 Cancel - COMMAND dsa Cancel - OUTSTANDING - COMMAND dsa2 ~ - COMMAND dsa ~ - COMMAND win Close - COMMAND win2 Close - COMMAND wingrp Close - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0007 - - -START_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0008 -//! @SYMTestCaseID GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0008 -//! @SYMAPI CDirectScreenAccess::StartL() -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 19/12/2007 -//! @SYMTestCaseDesc Bring an app to foreground to check that AbortNow() and Restart() are called. -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a CWsScreenDevice within the RWsSession -//! 3. Create CDirectScreenAccess and start. -//! 4. Bringup an app to check DSA's AbortNow() and Restart() be called. -//! 5. Destruct and close all created object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. AbortNow() and Restart() be called sucessfully. 2.Terminate reason is ETerminateRegion. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-DirectScreenAccess-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT CDirectScreenAccess dsa - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 - COMMAND scrdev Construct - COMMAND wingrp new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-Construct_command006 - COMMAND win new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 - COMMAND win Construct GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-Construct_command008 - COMMAND dsa NewL GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-NewL_command009 - COMMAND dsa StartL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0022-0001-StartL_command001 - COMMAND dsa Util_BringAppFg GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0022-0001-BringAppFg_command011 - OUTSTANDING - COMMAND dsa ~ - COMMAND scrdev ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0008 - -START_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0010 -//! @SYMTestCaseID GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0010 -//! @SYMAPI CDirectScreenAccess::NewL(RWsSession{ref} , CWsScreenDevice{ref}, RWindowBase{ref}, MDirectScreenAccess{ref}) -//! @SYMAuthor Yue Zhang -//! @SYMCreationDate 4/1/2008 -//! @SYMTestCaseDesc negative test, uses a non-constructed CWsScreenDevice while creating CDirectScreenAcess. -//! @SYMTestActions 1. Creates a RWsSession and connect to server. -//! 2. Creates a CWsScreenDevice attached to RWsSession without construction. -//! 3. Completes the construction. -//! 4. Creates and constructs a RWindow. -//! 5. Creates a CDirectScreenAccess. -//! 6. Destructs and closes all created object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults WSERV 3 panic received at Test Action 5. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-DirectScreenAccess-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT CDirectScreenAccess dsa - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0010-0001-new_command003 - COMMAND wingrp new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0010-0001-new_command004 - COMMAND wingrp Construct GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0010-0001-Construct_command005 - COMMAND win new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0010-0001-new_command006 - COMMAND win Construct GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0010-0001-Construct_command007 - COMMAND dsa NewL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0010-0001-NewL_command008 - COMMAND dsa ~ - COMMAND scrdev ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK !PanicString=WSERV !PanicCode=3 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0010 - -START_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0011 -//! @SYMTestCaseID GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0011 -//! @SYMAPI CDirectScreenAccess::NewL(RWsSession{ref} , CWsScreenDevice{ref}, RWindowBase{ref}, MDirectScreenAccess{ref}) -//! @SYMAuthor Yue Zhang -//! @SYMCreationDate 4/1/2008 -//! @SYMTestCaseDesc negative test, uses a non-constructed RWindowBase while creating CDirectScreenAccess. -//! @SYMTestActions 1. Creates a RWsSession and connects to server. -//! 2. Creates a CWsScreenDevice and contructs. -//! 3. Completes the construction. -//! 4. Creates an RWindow -//! 5. Create a CDirectScreenAccess with non-construction RWindowBase. -//! 6. Starts direct screen access. -//! 7. Destructs and closes all created object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. DSA object created and no panic. -//! 2. WSERV 6 panic received at Test Action 6. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-DirectScreenAccess-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT CDirectScreenAccess dsa - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0011-0001-new_command003 - COMMAND scrdev Construct - COMMAND win new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0011-0001-new_command005 - COMMAND dsa NewL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0011-0001-NewL_command006 - COMMAND dsa StartL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0011-0001-StartL_command007 - COMMAND dsa ~ - COMMAND scrdev ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK !PanicString=WSERV !PanicCode=6 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0011 - -START_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0012 -//! @SYMTestCaseID GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0012 -//! @SYMAPI CDirectScreenAccess::~CDirectScreenAccess() -//! @SYMAuthor Yue Zhang -//! @SYMCreationDate 3/1/2008 -//! @SYMTestCaseDesc negative test, destructs CDirectScreenAccess without canceling it. -//! @SYMTestActions 1. Creates and connects a RWsSession -//! 2. Creates and constructs a CWsScreenDevice within the RWsSession -//! 3. Creates and constructs a RWindow. -//! 4. Creates a CDirectScreenAccess -//! 5. Starts direct screen access. -//! 6. Destructs DSA without Cancels. -//! 6. Destructs and closes all the others created objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults DSA was descructed successfully (the DSA should be Cancelled at destruction). -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-DirectScreenAccess-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT CDirectScreenAccess dsa - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0012-0001-new_command003 - COMMAND scrdev Construct - COMMAND wingrp new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0012-0001-new_command005 - COMMAND wingrp Construct GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0012-0001-Construct_command006 - COMMAND win new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0012-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0012-0001-Construct_command008 - COMMAND dsa NewL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0012-0001-NewL_command009 - COMMAND dsa StartL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0012-0001-StartL_command010 - COMMAND dsa ~ - COMMAND scrdev ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0012 - -START_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0013 -//! @SYMTestCaseID GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0013 -//! @SYMAPI CDirectScreenAccess::StartL() -//! @SYMAuthor Yue Zhang -//! @SYMCreationDate 3/1/2008 -//! @SYMTestCaseDesc negative test, starts DSA two times. -//! Informs the window server to start DSA and start again. -//! @SYMTestActions 1. Creates and connects a RWsSession -//! 2. Creates and constructs a CWsScreenDevice within the RWsSession -//! 3. Creates and constructs a RWindow. -//! 4. Creates a CDirectScreenAccess -//! 5. Starts direct screen access. -//! 6. Starts direct screen access again. -//! 7. Destructs and closes all created objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults WSERV 59 panic received at Test Action 6. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-DirectScreenAccess-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT CDirectScreenAccess dsa - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0013-0001-new_command003 - COMMAND scrdev Construct - COMMAND wingrp new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0013-0001-new_command005 - COMMAND wingrp Construct GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0013-0001-Construct_command006 - COMMAND win new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0013-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0013-0001-Construct_command008 - COMMAND dsa NewL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0013-0001-NewL_command009 - COMMAND dsa StartL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0013-0001-StartL_command010 - COMMAND dsa StartL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0013-0001-StartL_command011 - COMMAND dsa Cancel - COMMAND dsa ~ - COMMAND scrdev ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK !PanicString=WSERV !PanicCode=59 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0013 - -START_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0014 -//! @SYMTestCaseID GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0014 -//! @SYMAPI CDirectScreenAccess::ScreenDevice() -//! @SYMAuthor Yue Zhang -//! @SYMCreationDate 4/1/2008 -//! @SYMTestCaseDesc negative test, gets the screen device without starting DSA. -//! @SYMTestActions 1. Creates and connects a RWsSession. -//! 2. Creates and constructs a CWsScreenDevice within the RWsSession -//! 3. Creates and constructs a RWindow. -//! 4. Creates a CDirectScreenAccess. -//! 5. Gets ScreenDevice. -//! 6. Destructs and closes all created objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Error -1 received at Test Action 5. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-DirectScreenAccess-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT CDirectScreenAccess dsa - CREATE_OBJECT CFbsScreenDevice fbsScreenDevice - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0014-0001-new_command003 - COMMAND scrdev Construct - COMMAND wingrp new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0014-0001-new_command005 - COMMAND wingrp Construct GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0014-0001-Construct_command006 - COMMAND win new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0014-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0014-0001-Construct_command008 - COMMAND dsa NewL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0014-0001-NewL_command009 - COMMAND !Error=-1 dsa ScreenDevice GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0014-0001-ScreenDevice_command010 - COMMAND dsa ~ - COMMAND scrdev ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0014 - -START_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0015 -//! @SYMTestCaseID GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0015 -//! @SYMAPI CDirectScreenAccess::Gc() -//! @SYMAuthor Yue Zhang -//! @SYMCreationDate 4/1/2008 -//! @SYMTestCaseDesc negative test, gets the graphic context without starting DSA. -//! Creates the DirectscreenAccess object WITHOUT starts it, gets the Gc and verify it. -//! @SYMTestActions 1. Creates and connects a RWsSession -//! 2. Creates and constructs a CWsScreenDevice within the RWsSession -//! 3. Creates and constructs a RWindow. -//! 4. Creates a CDirectScreenAccess. -//! 5. Gets Gc -//! 7. Destructs and closes all created object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Error -1 received at Test Action 5. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-DirectScreenAccess-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT CDirectScreenAccess dsa - CREATE_OBJECT CFbsBitGc bgc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0015-0001-new_command003 - COMMAND scrdev Construct - COMMAND wingrp new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0015-0001-new_command005 - COMMAND wingrp Construct GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0015-0001-Construct_command006 - COMMAND win new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0015-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0015-0001-Construct_command008 - COMMAND dsa NewL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0015-0001-NewL_command009 - COMMAND !Error=-1 dsa Gc GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0015-0001-Gc_command010 - COMMAND dsa ~ - COMMAND scrdev ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0015 - -START_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0016 -//! @SYMTestCaseID GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0016 -//! @SYMAPI CDirectScreenAccess::ScreenDevice() -//! @SYMAuthor Yue Zhang -//! @SYMCreationDate 2/1/2008 -//! @SYMTestCaseDesc gets the screen device and uses the returned CFbsScreenDevice to get the size of the device area. -//! @SYMTestActions 1. Creates and connects a RWsSession. -//! 2. Creates and constructs a CWsScreenDevice within the RWsSession. -//! 3. Creates and constructs a RWindow. -//! 4. Creates a CDirectScreenAccess and Starts it. -//! 5. Gets the screen device. -//! 6. Checks the Size of Screen Device. -//! 7. Destructs and closes all created object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. The returned screen device is not NULL. -//! 2. The screen size is returned. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-DirectScreenAccess-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT CDirectScreenAccess dsa - CREATE_OBJECT CFbsScreenDevice fbsScreenDevice - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0016-0001-new_command003 - COMMAND scrdev Construct - COMMAND wingrp new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0016-0001-new_command005 - COMMAND wingrp Construct GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0016-0001-Construct_command006 - COMMAND win new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0016-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0016-0001-Construct_command008 - COMMAND dsa NewL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0016-0001-NewL_command009 - COMMAND dsa StartL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0016-0001-StartL_command010 - COMMAND dsa ScreenDevice GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0016-0001-ScreenDevice_command011 - COMMAND fbsScreenDevice SizeInTwips - COMMAND dsa Cancel - OUTSTANDING - COMMAND fbsScreenDevice disown - COMMAND dsa ~ - COMMAND scrdev ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0016 - -START_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0017 -//! @SYMTestCaseID GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0017 -//! @SYMAPI CDirectScreenAccess::Gc() -//! @SYMAuthor Yue Zhang -//! @SYMCreationDate 4/1/2008 -//! @SYMTestCaseDesc gets the graphic context and draw two lines:(25,26)-(50,60),(-10000,-10000)-(500000,600000). -//! @SYMTestActions 1. Creates and connects a RWsSession -//! 2. Creates and constructs a CWsScreenDevice within the RWsSession -//! 3. Creates and constructs a RWindow. -//! 4. Creates a CDirectScreenAccess and Starts it. -//! 5. Gets and actives the Gc from DSA. -//! 6. draws line (25,26)-(50,60). -//! 7. draws line (-10000,-10000)-(500000,600000). -//! 8. Destructs and closes all created object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. The returned Gc is not NULL. -//! 2. The line should be drawn no panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-DirectScreenAccess-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT CDirectScreenAccess dsa - CREATE_OBJECT CFbsBitGc bgc - CREATE_OBJECT CFbsScreenDevice fbsScreenDevice - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0017-0001-new_command003 - COMMAND scrdev Construct - COMMAND wingrp new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0017-0001-new_command005 - COMMAND wingrp Construct GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0017-0001-Construct_command006 - COMMAND win new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0017-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0017-0001-Construct_command008 - COMMAND dsa NewL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0017-0001-NewL_command009 - COMMAND dsa StartL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0017-0001-StartL_command010 - COMMAND dsa ScreenDevice GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0017-0001-ScreenDevice_command011 - COMMAND dsa Gc GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0017-0001-Gc_command012 - COMMAND bgc Activate GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0017-0001-Activate_command013 - COMMAND bgc DrawLine GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0017-0001-DrawLine_command014 - COMMAND bgc DrawLine GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0017-0001-DrawLine_command015 - COMMAND fbsScreenDevice Update - COMMAND dsa Cancel - COMMAND bgc disown - COMMAND fbsScreenDevice disown - OUTSTANDING - COMMAND dsa ~ - COMMAND scrdev ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0017 - -START_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0018 -//! @SYMTestCaseID GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0018 -//! @SYMAPI CDirectScreenAccess::StartL() -//! @SYMAuthor Yue Zhang -//! @SYMCreationDate 8/1/2008 -//! @SYMTestCaseDesc sets a region ,starts the DSA, cancels it, changes the region and starts again. -//! @SYMTestActions 1. Creates and connects a RWsSession -//! 2. Creates and constructs a CWsScreenDevice within the RWsSession -//! 3. Creates and constructs a RWindow. -//£¡ 4. Actives the RWindow. -//! 5. Changes the sharp of the region of RWindow. -//! 6. Creates a CDirectScreenAccess and Starts it. -//! 7. Checks the DrawRegion. -//! 8. Cancels the DSA. -//! 9. Changes the sharp of the region of RWindow to another size. -//! 10. Starts the DSA again. -//! 11. Checks the DrawRegion again. -//! 12. Destructs and closes all created object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. DSA was started successfully at first time. -//! 2. DSA was started successfully at second time. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-DirectScreenAccess-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT CDirectScreenAccess dsa - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0018-0001-new_command003 - COMMAND scrdev Construct - COMMAND wingrp new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0018-0001-new_command005 - COMMAND wingrp Construct GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0018-0001-Construct_command006 - COMMAND win new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0018-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0018-0001-Construct_command008 - COMMAND win Activate - COMMAND win SetShape GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0018-0001-SetShape_command010 - COMMAND dsa NewL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0018-0001-NewL_command011 - COMMAND dsa StartL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0018-0001-StartL_command012 - COMMAND dsa DrawingRegion GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0018-0001-DrawingRegion_command013 - COMMAND dsa Cancel - OUTSTANDING - COMMAND win SetShape GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0018-0001-SetShape_command016 - COMMAND dsa StartL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0018-0001-StartL_command017 - COMMAND dsa DrawingRegion GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0018-0001-DrawingRegion_command018 - COMMAND dsa Cancel - OUTSTANDING - COMMAND dsa ~ - COMMAND scrdev ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0018 - -START_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0019 -//! @SYMTestCaseID GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0019 -//! @SYMAPI CDirectScreenAccess::StartL() -//! @SYMAuthor Yue Zhang -//! @SYMCreationDate 15/1/2008 -//! @SYMTestCaseDesc Starts DSA , Brings an app to foreground , starts DSA again. -//! @SYMTestActions 1. Creates and connects a RWsSession -//! 2. Creates and constructs a CWsScreenDevice within the RWsSession -//! 3. Creates CDirectScreenAccess and start. -//! 4. Brings up an app to check DSA's AbortNow() and Restart() be called. -//! 5. Starts DSA again. -//! 5. Destruct and close all created object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. AbortNow() and Restart() be called sucessfully after the app had been brought to foreground. -//! 2. Terminate reason is ETerminateRegion. -//! 3. DSA was started successfully at second time. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-DirectScreenAccess-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT CDirectScreenAccess dsa - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0019-0001-new_command003 - COMMAND scrdev Construct - COMMAND wingrp new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0019-0001-new_command005 - COMMAND wingrp Construct GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0019-0001-Construct_command006 - COMMAND win new GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0019-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0019-0001-Construct_command008 - COMMAND dsa NewL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0019-0001-NewL_command009 - COMMAND dsa StartL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0019-0001-StartL_command010 - COMMAND dsa Util_BringAppFg GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0019-0001-BringAppFg_command011 - OUTSTANDING - COMMAND dsa StartL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0019-0001-StartL_command013 - COMMAND dsa Cancel - OUTSTANDING - COMMAND dsa ~ - COMMAND scrdev ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0019 - -START_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0020 -//! @SYMTestCaseID GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0020 -//! @SYMAPI CDirectScreenAccess::StartL() -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 16-05-2008 -//! @SYMTestCaseDesc Informs the window server to start DSA and set window displaymode to EColor4K. -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a CWsScreenDevice within the RWsSession -//! 3. Create and construct a RWindow. -//! 4. Create a CDirectScreenAccess. -//! 5. Set the window displaymode to EColor4K. -//! 6. Get the window displaymode to verify. -//! 7. Start direct screen access. -//! 8. Destruct and close all created objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults DSA was started successfully. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-DirectScreenAccess-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT CDirectScreenAccess dsa - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 - COMMAND scrdev Construct - COMMAND wingrp new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-Construct_command006 - COMMAND win new GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003 - COMMAND win Construct GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-Construct_command008 - COMMAND dsa NewL GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-NewL_command009 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0020-0001-SetRequiredDisplayMode_command010 - COMMAND win DisplayMode GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0020-0001-DisplayMode_command011 - COMMAND dsa StartL GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0020-0001-StartL_command012 - COMMAND dsa Cancel - OUTSTANDING - COMMAND dsa ~ - COMMAND scrdev ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0020 diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-DsaSession-PublicApi.script --- a/graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-DsaSession-PublicApi.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,694 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// -//! @file -//! @SYMTestSuiteName GRAPHICS-WSERV-DsaSession-PublicApi -//! @SYMScriptTestEnvironment This test script requires a basic ROM. - -/////////////////////////////////////////////////////////////////////////////// -// GRAPHICS-WSERV-DsaSession-PublicApi.script -// -// Tests all public elements of the RDirectScreenAccess class -// as a means of confidence that the API works as expected. -// -// The purpose is to provide a regression test suite of PublishedAll APIs for -// RDirectScreenAccess related classes. -// Negative testing is performed to confirm that correct errors are returned -// when incorrect parameters are given. -// -// The tests are fully automated. -/////////////////////////////////////////////////////////////////////////////// - -LOAD_SUITE T_GraphicsWservAPI - -// **************************************************************************** -// RDirectScreenAccess -// **************************************************************************** - -START_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0001 -//! @SYMTestCaseID GRAPHICS-WSERV-DsaSession-PublicApi-0001 -//! @SYMAPI RDirectScreenAccess::RDirectScreenAccess() -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 19/12/2007 -//! @SYMTestCaseDesc Create with default constructor but not initialise a RDirectScreenAccess object. -//! @SYMTestActions 1.Create RDirectScreenAccess. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults RDirectScreenAccess object was created without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-DsaSession-PublicApi.ini - CREATE_OBJECT RDirectScreenAccess rdsa - COMMAND rdsa new - COMMAND rdsa Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0001 - - -START_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0002 -//! @SYMTestCaseID GRAPHICS-WSERV-DsaSession-PublicApi-0002 -//! @SYMAPI RDirectScreenAccess::RDirectScreenAccess(RWsSession{ref}) -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 19/12/2007 -//! @SYMTestCaseDesc Create but not initialise a RDirectScreenAccess object attached with RWsSession. -//! @SYMTestActions 1. Create RWsSession. -//! 2. Create RDirectScreenAccess. -//! 3. Close RWsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults RDirectScreenAccess object was created without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-DsaSession-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RDirectScreenAccess rdsa - COMMAND ws new - COMMAND ws Connect - COMMAND rdsa new GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003 - COMMAND rdsa Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0002 - - - -START_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0003 -//! @SYMTestCaseID GRAPHICS-WSERV-DsaSession-PublicApi-0003 -//! @SYMAPI RDirectScreenAccess::Construct() -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 19/12/2007 -//! @SYMTestCaseDesc Create and initialise a RDirectScreenAccess object with construct. -//! @SYMTestActions 1. Create RWsSession. -//! 2. Create RDirectScreenAccess. -//! 3. Construct RDirectScreenAccess. -//! 4. Close RWsSession & RDirectScreenAccess. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults RDirectScreenAccess object was created and constructed without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-DsaSession-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RDirectScreenAccess rdsa - COMMAND ws new - COMMAND ws Connect - COMMAND rdsa new GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003 - COMMAND rdsa Construct - COMMAND rdsa Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0003 - - -START_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0004 -//! @SYMTestCaseID GRAPHICS-WSERV-DsaSession-PublicApi-0004 -//! @SYMAPI RDirectScreenAccess::Request(RRegion{ptr}{ref}, TRequestStatus{ref}, const RWindowBase{ref}) -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 19/12/2007 -//! @SYMTestCaseDesc Create a RDirectScreenAccess object and issue a request. -//! @SYMTestActions 1. Create RWsSession,RWindow,CWindowGc,CWsScreenDevice. -//! 2. Create RDirectScreenAccess. -//! 3. Call CWsScreenDevice::CreateContext() -//! 4. Construct RWindow and call RWindow::SetShape & Activate -//! 5. Create RDirectScreenAccess and call RDirectScreenAccess::Construct(). -//! 6. Call RDirectScreenAccess::Request and outstanding. -//! 7. Destruct and close all object created. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1.RDirectScreenAccess object was created successfully 2. Issue a DSA request successfully. -//! 3. Check all the return value as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-DsaSession-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RDirectScreenAccess rdsa - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-DsaSession-Setup-0004-0001-CreateContext_command005 - COMMAND wingrp new GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-DsaSession-Setup-0004-0001-Construct_command007 - COMMAND win new GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003 - COMMAND win Construct GRAPHICS-WSERV-DsaSession-Setup-0004-0001-Construct_command009 - COMMAND win SetShape GRAPHICS-WSERV-DsaSession-Setup-0004-0001-SetShape_command010 - COMMAND win Activate - COMMAND rdsa new GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003 - COMMAND rdsa Construct - COMMAND !AsyncError=-3 rdsa Request GRAPHICS-WSERV-DsaSession-PublicApi-0004-0001-Request_command014 - COMMAND rdsa Completed - COMMAND rdsa Close - OUTSTANDING - COMMAND wingc ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0004 - - -START_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0005 -//! @SYMTestCaseID GRAPHICS-WSERV-DsaSession-PublicApi-0005 -//! @SYMAPI RDirectScreenAccess::Completed() -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 19/12/2007 -//! @SYMTestCaseDesc Create a RDirectScreenAccess object and request,and complete without panic. -//! @SYMTestActions 1. Create RWsSession,RWindow,CWindowGc,CWsScreenDevice. -//! 2. Create RDirectScreenAccess. -//! 3. Call CWsScreenDevice::CreateContext() -//! 4. Construct RWindow and call RWindow::SetShape & Activate -//! 5. Create RDirectScreenAccess and call RDirectScreenAccess::Construct(). -//! 6. Call RDirectScreenAccess::Request and outstanding. -//! 7. Call CWindowGc::Activate,RWindow::BeginRedraw,CWindowGc::DrawLine,RWindow::EndRedraw,CWindowGc::Deactivate -//! 8. Call RDirectScreenAccess::Completed(). -//! 9. Destruct and close all created object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1.RDirectScreenAccess Completed successfully. 2. Request return value should be KErrCancel(-3). -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-DsaSession-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RDirectScreenAccess rdsa - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-DsaSession-Setup-0004-0001-CreateContext_command005 - COMMAND wingrp new GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-DsaSession-Setup-0004-0001-Construct_command007 - COMMAND win new GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003 - COMMAND win Construct GRAPHICS-WSERV-DsaSession-Setup-0004-0001-Construct_command009 - COMMAND win SetShape GRAPHICS-WSERV-DsaSession-Setup-0004-0001-SetShape_command010 - COMMAND win Activate - COMMAND rdsa new GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003 - COMMAND rdsa Construct - COMMAND !AsyncError=-3 rdsa Request GRAPHICS-WSERV-DsaSession-PublicApi-0004-0001-Request_command014 - COMMAND wingc Activate GRAPHICS-WSERV-DsaSession-Setup-0004-0001-Activate_command015 - COMMAND win BeginRedraw - COMMAND wingc DrawLine GRAPHICS-WSERV-DsaSession-Setup-0004-0001-DrawLine_command017 - COMMAND win EndRedraw - COMMAND wingc Deactivate - COMMAND wingc ~ - COMMAND rdsa Completed - COMMAND rdsa Close - OUTSTANDING - COMMAND win Close - COMMAND wingrp Close - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0005 - - -START_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0006 -//! @SYMTestCaseID GRAPHICS-WSERV-DsaSession-PublicApi-0006 -//! @SYMAPI RDirectScreenAccess::Cancel() -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 19/12/2007 -//! @SYMTestCaseDesc Create a RDirectScreenAccess object and request,and then Cancel without panic. -//! @SYMTestActions 1. Create RWsSession,RWindow,CWindowGc,CWsScreenDevice. -//! 2. Create RDirectScreenAccess. -//! 3. Call CWsScreenDevice::CreateContext() -//! 4. Construct RWindow and call RWindow::SetShape & Activate -//! 5. Create RDirectScreenAccess and call RDirectScreenAccess::Construct(). -//! 6. Call RDirectScreenAccess::Request and outstanding. -//! 7. Call CWindowGc::Activate,RWindow::BeginRedraw,CWindowGc::DrawLine,RWindow::EndRedraw,CWindowGc::Deactivate -//! 8. Call RDirectScreenAccess::Cancel(). -//! 9. Destruct and close all created object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. RDirectScreenAccess object was canceled successfully. 2. Request return value should be KErrCancel(-3) after cancled. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-DsaSession-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RDirectScreenAccess rdsa - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-DsaSession-Setup-0004-0001-CreateContext_command005 - COMMAND wingrp new GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-DsaSession-Setup-0004-0001-Construct_command007 - COMMAND win new GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003 - COMMAND win Construct GRAPHICS-WSERV-DsaSession-Setup-0004-0001-Construct_command009 - COMMAND win SetShape GRAPHICS-WSERV-DsaSession-Setup-0004-0001-SetShape_command010 - COMMAND win Activate - COMMAND rdsa new GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003 - COMMAND rdsa Construct - COMMAND !AsyncError=-3 rdsa Request GRAPHICS-WSERV-DsaSession-PublicApi-0004-0001-Request_command014 - COMMAND wingc Activate GRAPHICS-WSERV-DsaSession-Setup-0004-0001-Activate_command015 - COMMAND win BeginRedraw - COMMAND wingc DrawLine GRAPHICS-WSERV-DsaSession-Setup-0004-0001-DrawLine_command017 - COMMAND win EndRedraw - COMMAND wingc Deactivate - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND rdsa Cancel - OUTSTANDING - COMMAND rdsa Close - COMMAND win Close - COMMAND wingrp Close - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0006 - - -START_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0007 -//! @SYMTestCaseID GRAPHICS-WSERV-DsaSession-PublicApi-0007 -//! @SYMAPI RDirectScreenAccess::Cancel() -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 19/12/2007 -//! @SYMTestCaseDesc Create a RDirectScreenAccess object and request then cancel; after cancel, we request again, negative test. -//! @SYMTestActions 1. Create RWsSession,RWindow,CWindowGc,CWsScreenDevice. -//! 2. Create RDirectScreenAccess. -//! 3. Call CWsScreenDevice::CreateContext() -//! 4. Construct RWindow and call RWindow::SetShape & Activate -//! 5. Create RDirectScreenAccess and call RDirectScreenAccess::Construct(). -//! 6. Call RDirectScreenAccess::Request and outstanding. -//! 7. Call CWindowGc::Activate,RWindow::BeginRedraw,CWindowGc::DrawLine,RWindow::EndRedraw,CWindowGc::Deactivate -//! 8. Call RDirectScreenAccess::Cancel() and Request again,then outstanding. -//! 9. Destruct and close all created object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults RDirectScreenAccess object Request return value should be KErrCancel(-3) after it was canceled. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-DsaSession-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RDirectScreenAccess rdsa - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-DsaSession-Setup-0004-0001-CreateContext_command005 - COMMAND wingrp new GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-DsaSession-Setup-0004-0001-Construct_command007 - COMMAND win new GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003 - COMMAND win Construct GRAPHICS-WSERV-DsaSession-Setup-0004-0001-Construct_command009 - COMMAND win SetShape GRAPHICS-WSERV-DsaSession-Setup-0004-0001-SetShape_command010 - COMMAND win Activate - COMMAND rdsa new GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003 - COMMAND rdsa Construct - COMMAND !AsyncError=-3 rdsa Request GRAPHICS-WSERV-DsaSession-PublicApi-0004-0001-Request_command014 - COMMAND wingc Activate GRAPHICS-WSERV-DsaSession-Setup-0004-0001-Activate_command015 - COMMAND win BeginRedraw - COMMAND wingc DrawLine GRAPHICS-WSERV-DsaSession-Setup-0004-0001-DrawLine_command017 - COMMAND win EndRedraw - COMMAND wingc Deactivate - COMMAND wingc ~ - COMMAND rdsa Cancel - OUTSTANDING - COMMAND rdsa Request GRAPHICS-WSERV-DsaSession-PublicApi-0004-0001-Request_command014 - COMMAND rdsa Completed - COMMAND rdsa Close - COMMAND win Close - COMMAND wingrp Close - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0007 - - -START_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0008 -//! @SYMTestCaseID GRAPHICS-WSERV-DsaSession-PublicApi-0008 -//! @SYMAPI RDirectScreenAccess::Request(RRegion{ptr}{ref}, TRequestStatus{ref}, const RWindowBase{ref}) -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 02/01/2008 -//! @SYMTestCaseDesc Negative test, creates a RDirectScreenAccess object and issues a request on an invisible window. -//! @SYMTestActions 1. Create and connect RWsSession; -//! 2. Create and construct RWindowGroup; -//! 3. Create and Construct RWindow -//! 4. Active RWindow and call SetVisible to make the RWindow object invisible. -//! 5. Create RDirectScreenAccess. -//! 6. Construct RDirectScreenAccess. -//! 7. Issue DSA request. -//! 8. Complete DSA. -//! 9. Destruct and close all object created. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1.RDirectScreenAccess object was created successfully 2. Issue a DSA request and return KErrNotReady(-18). -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-DsaSession-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RDirectScreenAccess rdsa - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-DsaSession-Setup-0004-0001-Construct_command007 - COMMAND win new GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003 - COMMAND win Construct GRAPHICS-WSERV-DsaSession-Setup-0004-0001-Construct_command009 - COMMAND win Activate - COMMAND win SetVisible GRAPHICS-WSERV-DsaSession-PublicApi-0008-0001-SetVisible_command008 - COMMAND rdsa new GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003 - COMMAND rdsa Construct - COMMAND !Error=-18 rdsa Request GRAPHICS-WSERV-DsaSession-PublicApi-0008-0001-Request_command011 - COMMAND rdsa Completed - COMMAND rdsa Close - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0008 - -START_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0009 -//! @SYMTestCaseID GRAPHICS-WSERV-DsaSession-PublicApi-0009 -//! @SYMAPI RDirectScreenAccess::Request(RRegion{ptr}{ref}, TRequestStatus{ref}, const RWindowBase{ref}) -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 02/01/2008 -//! @SYMTestCaseDesc Negative test,create a RDirectScreenAccess object and generate a memory allocate fail when issue request. -//! @SYMTestActions 1. Create RWsSession,RWindowGroup,RWindow. -//! 2. Construct RWindowGroup & RWindow and call RWindow::SetShape & Activate; -//! 3. Create RDirectScreenAccess. -//! 4. Construct RDirectScreenAccess. -//! 5. Eat system memory until lefted memory less thans 20 byte and issue DSA request,it will return KErrNoMemory(-4). -//! 6. Free eaten memory. -//! 7. Destruct and close all object created. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1.RDirectScreenAccess object was created successfully 2. Issue a DSA request and return KErrNoMemory(-4). -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-DsaSession-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RDirectScreenAccess rdsa - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-DsaSession-Setup-0004-0001-Construct_command007 - COMMAND win new GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003 - COMMAND win Construct GRAPHICS-WSERV-DsaSession-Setup-0004-0001-Construct_command009 - COMMAND win SetShape GRAPHICS-WSERV-DsaSession-Setup-0004-0001-SetShape_command010 - COMMAND win Activate - COMMAND rdsa new GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003 - COMMAND rdsa Construct - COMMAND rdsa Util_EatupMemory GRAPHICS-WSERV-DsaSession-PublicApi-0009-0001-Util_EatupMemory_command011 - COMMAND !Error=-4 rdsa Request GRAPHICS-WSERV-DsaSession-PublicApi-0009-0001-Request_command012 - COMMAND rdsa Util_FreeEatenMemory - COMMAND rdsa Close - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0009 - -START_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0010 -//! @SYMTestCaseID GRAPHICS-WSERV-DsaSession-PublicApi-0010 -//! @SYMAPI RDirectScreenAccess::Request(RRegion{ptr}{ref}, TRequestStatus{ref}, const RWindowBase{ref}) -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 02/01/2008 -//! @SYMTestCaseDesc Negative test, creates a RDirectScreenAccess object and issues a request with uninitialized RWindow argument. -//! @SYMTestActions 1. Create and connect RWsSession. -//! 2. Create RWindow; -//! 3. Create RDirectScreenAccess. -//! 4. Construct RDirectScreenAccess. -//! 5. Issue DSA request with uninitialized RWindow object -//! 6. Complete DSA. -//! 7. Destruct and close all object created. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1.RDirectScreenAccess object was created successfully -//! 2.WSERV 6 panic received at Test Action 5. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-DsaSession-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindow win - CREATE_OBJECT RDirectScreenAccess rdsa - COMMAND ws new - COMMAND ws Connect - COMMAND win new GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003 - COMMAND rdsa new GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003 - COMMAND rdsa Construct - COMMAND rdsa Request GRAPHICS-WSERV-DsaSession-PublicApi-0010-0001-Request_command006 - COMMAND rdsa Completed - COMMAND rdsa Close - COMMAND win Close - COMMAND ws Close - END_TEST_BLOCK !PanicString=WSERV !PanicCode=6 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0010 - - -START_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0011 -//! @SYMTestCaseID GRAPHICS-WSERV-DsaSession-PublicApi-0011 -//! @SYMAPI RDirectScreenAccess::Completed() -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 07/01/2008 -//! @SYMTestCaseDesc Negative test, completes DSA without request. -//! @SYMTestActions 1. Create and connect RWsSession. -//! 2. Create RDirectScreenAccess. -//! 3. Construct RDirectScreenAccess. -//! 4. Complete DSA without request. -//! 5. Destruct and close all object created. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults W32 8 panic received at Test Action 4. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-DsaSession-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RDirectScreenAccess rdsa - COMMAND ws new - COMMAND ws Connect - COMMAND rdsa new GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003 - COMMAND rdsa Construct - COMMAND rdsa Completed - COMMAND rdsa Close - COMMAND ws Close - END_TEST_BLOCK !PanicString=W32 !PanicCode=8 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0011 - -//!START_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0012 -//! @SYMTestCaseID GRAPHICS-WSERV-DsaSession-PublicApi-0012 -//! @SYMAPI RDirectScreenAccess::Cancel() -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 07/01/2008 -//! @SYMTestCaseDesc Negative test, calls other function after closing DSA. -//! @SYMTestActions 1. Create and connect RWsSession. -//! 2. Create RDirectScreenAccess. -//! 3. Construct RDirectScreenAccess. -//! 4. Close DSA. -//! 5. Call Cancel() to verify close DSA successfully. -//! 6. Destruct and close all object created. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults KERN-EXEC 3 panic received at Test Action 5. -//! @SYMTestType CIT -//! START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-DsaSession-PublicApi.ini -//! CREATE_OBJECT RWsSession ws -//! CREATE_OBJECT RDirectScreenAccess rdsa -//! COMMAND ws new -//! COMMAND ws Connect -//! COMMAND rdsa new GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003 -//! COMMAND rdsa Construct -//! COMMAND rdsa Close -//! COMMAND rdsa Cancel -//! COMMAND ws Close -//! END_TEST_BLOCK !PanicString=KERN-EXEC !PanicCode=3 -//! RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -//!END_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0012 - -START_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0013 -//! @SYMTestCaseID GRAPHICS-WSERV-DsaSession-PublicApi-0013 -//! @SYMAPI RDirectScreenAccess::Request(RRegion{ptr}{ref}, TRequestStatus{ref}, const RWindowBase{ref}) -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 16/01/2008 -//! @SYMTestCaseDesc Negative test,create two RDirectScreenAccess object and issue request at same window. -//! @SYMTestActions 1. Create RWsSession and connect. -//! 2. Create and construct RWindowGroup,RWindow. -//! 3. Set window shape and activate the window. -//! 4. Create the first RDirectScreenAccess. -//! 5. Construct the first RDirectScreenAccess. -//! 6. Issue a request using first DSA object. -//! 7. Create and construct the second DSA object. -//! 8. Issue a request using the second DSA object at the same window. -//! 9. Destruct and close all object created. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults DSA request will take an AsyncError(-3). -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-DsaSession-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RDirectScreenAccess rdsa - CREATE_OBJECT RDirectScreenAccess rdsa2 - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-DsaSession-Setup-0004-0001-Construct_command007 - COMMAND win new GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003 - COMMAND win Construct GRAPHICS-WSERV-DsaSession-Setup-0004-0001-Construct_command009 - COMMAND win SetShape GRAPHICS-WSERV-DsaSession-Setup-0004-0001-SetShape_command010 - COMMAND win Activate - COMMAND rdsa new GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003 - COMMAND rdsa Construct - COMMAND !AsyncError=-3 rdsa Request GRAPHICS-WSERV-DsaSession-PublicApi-0013-0001-Request_command011 - COMMAND rdsa Cancel - COMMAND rdsa2 new GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003 - COMMAND rdsa2 Construct - COMMAND !AsyncError=-3 rdsa2 Request GRAPHICS-WSERV-DsaSession-PublicApi-0013-0001-Request_command014 - COMMAND rdsa2 Cancel - OUTSTANDING - COMMAND rdsa2 Close - COMMAND rdsa Close - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0013 - -START_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0014 -//! @SYMTestCaseID GRAPHICS-WSERV-DsaSession-PublicApi-0014 -//! @SYMAPI RDirectScreenAccess::Request(RRegion{ptr}{ref}, TRequestStatus{ref}, const RWindowBase{ref}) -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 16/01/2008 -//! @SYMTestCaseDesc Negative test,creates a RDirectScreenAccess object and issues DSA request, then creates another window and draws line on the window where there DSA is taking place. -//! @SYMTestActions 1. Create RWsSession and connect. -//! 2. Create and construct CWsScreenDevice object. -//! 3. Create and construct RWindowGroup,RWindow. -//! 4. Set window shape and activate the window. -//! 5. Create and construct RDirectScreenAccess object. -//! 6. Issue DSA request. -//! 7. Create and construct the second window. -//! 7. Activate the second window. -//! 8. Activate the CWindowGc object which get from CWsScreenDevice::CreateContext. -//! 9. BeginRedraw with the seconde window and draw a line on the window,then EndRedraw. -//! 10. Destruct and close all object created. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults DSA request will be terminated(TerminationReasons:ETerminateRegion 1) when draw line on the second window. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-DsaSession-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RWindow win2 - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RDirectScreenAccess rdsa - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-DsaSession-Setup-0004-0001-CreateContext_command005 - COMMAND wingrp new GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-DsaSession-Setup-0004-0001-Construct_command007 - COMMAND win new GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003 - COMMAND win Construct GRAPHICS-WSERV-DsaSession-Setup-0004-0001-Construct_command009 - COMMAND win SetShape GRAPHICS-WSERV-DsaSession-Setup-0004-0001-SetShape_command010 - COMMAND win Activate - COMMAND rdsa new GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003 - COMMAND rdsa Construct - COMMAND !AsyncError=1 rdsa Request GRAPHICS-WSERV-DsaSession-PublicApi-0014-0001-Request_command014 - COMMAND win2 new GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003 - COMMAND win2 Construct GRAPHICS-WSERV-DsaSession-Setup-0004-0001-Construct_command111 - COMMAND win2 Activate - COMMAND wingc Activate GRAPHICS-WSERV-DsaSession-Setup-0004-0001-Activate_command111 - COMMAND win2 BeginRedraw - COMMAND wingc DrawLine GRAPHICS-WSERV-DsaSession-Setup-0004-0001-DrawLine_command017 - COMMAND win2 EndRedraw - COMMAND wingc Deactivate - COMMAND wingc ~ - OUTSTANDING - COMMAND rdsa Close - COMMAND wingc ~ - COMMAND win Close - COMMAND win2 Close - COMMAND wingrp Close - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0014 - -START_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0015 -//! @SYMTestCaseID GRAPHICS-WSERV-DsaSession-PublicApi-0015 -//! @SYMAPI RDirectScreenAccess::Completed() -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 16-05-2008 -//! @SYMTestCaseDesc Creates a RDirectScreenAccess object and issues a request, then complete twice. -//! @SYMTestActions 1. Create and connect RWsSession. -//! 2. Create RWindow; -//! 3. Create RDirectScreenAccess. -//! 4. Construct RDirectScreenAccess. -//! 5. Issue DSA request. -//! 6. Complete DSA twice. -//! 7. Destruct and close all object created. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults RDirectScreenAccess object was Completed successfully. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-DsaSession-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RDirectScreenAccess rdsa - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-DsaSession-Setup-0004-0001-Construct_command007 - COMMAND win new GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003 - COMMAND win Construct GRAPHICS-WSERV-DsaSession-Setup-0004-0001-Construct_command009 - COMMAND rdsa new GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003 - COMMAND rdsa Construct - COMMAND rdsa Request GRAPHICS-WSERV-DsaSession-PublicApi-0015-0001-Request_command009 - COMMAND rdsa Completed - COMMAND rdsa Completed - END_TEST_BLOCK !PanicString=W32 !PanicCode=8 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0015 - -START_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0016 -//! @SYMTestCaseID GRAPHICS-WSERV-DsaSession-PublicApi-0016 -//! @SYMAPI RDirectScreenAccess::Cancel() -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 16-05-2008 -//! @SYMTestCaseDesc Negative test, cancel DSA without starting. -//! @SYMTestActions 1. Create and connect RWsSession. -//! 2. Create RDirectScreenAccess. -//! 3. Construct RDirectScreenAccess. -//! 4. Cancel DSA. -//! 5. Close all object created. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults RDirectScreenAccess object was canceled successfully. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-DsaSession-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RDirectScreenAccess rdsa - COMMAND ws new - COMMAND ws Connect - COMMAND rdsa new GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003 - COMMAND rdsa Construct - COMMAND rdsa Cancel - COMMAND rdsa Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-DsaSession-PublicApi-0016 diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-Events-PublicApi.script --- a/graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-Events-PublicApi.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,818 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// -//! @file -//! @SYMTestSuiteName GRAPHICS-WSERV-Events-PublicApi -//! @SYMScriptTestEnvironment This test script requires a basic ROM. - -/////////////////////////////////////////////////////////////////////////////// -// GRAPHICS-WSERV-Events-PublicApi.script -// -// Tests all public elements of the RWsSession class -// as a means of confidence that the API works as expected. -// -// The purpose is to provide a regression test suite of PublishedAll APIs for -// RWsSession related classes. -// Negative testing is performed to confirm that correct errors are returned -// when incorrect parameters are given. -// -// The tests are fully automated. -/////////////////////////////////////////////////////////////////////////////// - - -LOAD_SUITE T_GraphicsWservAPI - - -// **************************************************************************** -// RWsEvent -// **************************************************************************** - -START_TESTCASE GRAPHICS-WSERV-Events-PublicApi-0001 -//! @SYMTestCaseID GRAPHICS-WSERV-Events-PublicApi-0001 -//! @SYMAPI TWsEvent -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 18/12/2007 -//! @SYMTestCaseDesc TWsEvent(): create a TWsEvent object by C++ defaut constructor -//! Uses API elements: TWsEvent(),Type() -//! @SYMTestActions 1. use new() to create a RWsSession and TWsEvent object -//! 2. use Connect() to make a connection with window server -//! 3. use new() and Construct() to create a RWindowGroup -//! 4. use EventReady() to request standard events from the window server -//! 5. Wait for an event, A EEventFocusGained event should be triggered from the RWindowGroup::Construct -//! 6. Get the event -//! 7. use Type() to get the type of event that occurred -//! 8. Close the session -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults TWsEvent Type should be EEventFocusGained -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Events-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT TWsEvent we - CREATE_OBJECT RWindowGroup wingrp - COMMAND ws new - COMMAND we new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Events-PublicApi-0001-0001-new_command04 - COMMAND wingrp Construct GRAPHICS-WSERV-Events-PublicApi-0001-0001-Construct_command05 - COMMAND ws EventReady - OUTSTANDING - COMMAND ws GetEvent GRAPHICS-WSERV-Events-PublicApi-0001-0001-GetEvent_command07 - COMMAND we Type GRAPHICS-WSERV-Events-PublicApi-0001-0001-Type_command08 - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Events-PublicApi-0001 - - -START_TESTCASE GRAPHICS-WSERV-Events-PublicApi-0002 -//! @SYMTestCaseID GRAPHICS-WSERV-Events-PublicApi-0002 -//! @SYMAPI TWsEvent -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 17/09/2007 -//! @SYMTestCaseDesc Int(): get the event data as a TInt -//! Uses API elements: TWsEvent::Type & SetType, Int -//! @SYMTestActions 1. use new() to create a TWsEvent object -//! 2. use SetType() to set event type to EEventUser -//! 3. use Type() to get and check the event type = EEventUser -//! 4. execute Int() and set the event data as TInt=100 -//! 5. execute Int() to get and check if the event data is TInt=100 -//! 6. Destruct the TWsEvent object -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults No errors -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Events-PublicApi.ini - CREATE_OBJECT TWsEvent we - COMMAND we new - COMMAND we SetType GRAPHICS-WSERV-Events-PublicApi-0002-0001-SetType_command01 - COMMAND we Type GRAPHICS-WSERV-Events-PublicApi-0002-0001-Type_command02 - COMMAND we Int GRAPHICS-WSERV-Events-PublicApi-0002-0001-Int_command03 - COMMAND we Int GRAPHICS-WSERV-Events-PublicApi-0002-0001-Int_command04 - COMMAND we ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Events-PublicApi-0002 - - -START_TESTCASE GRAPHICS-WSERV-Events-PublicApi-0003 -//! @SYMTestCaseID GRAPHICS-WSERV-Events-PublicApi-0003 -//! @SYMAPI TWsEvent -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 17/09/2007 -//! @SYMTestCaseDesc ErrorMessage(): Gets an error event -//! Uses API elements: TWsEvent::Type & SetType, ErrorMessage -//! @SYMTestActions 1. use new() to create a TWsEvent object -//! 2. use SetType() to set event type to EEventUser -//! 3. use Type() to get and check the event type = EEventUser -//! 4. execute ErrorMessage() and set the error category to 100 and error to 200 -//! 5. execute ErrorMessage() to get and check if the error category and error as expected -//! 6. Destruct the TWsEvent object -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults No errors -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Events-PublicApi.ini - CREATE_OBJECT TWsEvent we - COMMAND we new - COMMAND we SetType GRAPHICS-WSERV-Events-PublicApi-0003-0001-SetType_command01 - COMMAND we Type GRAPHICS-WSERV-Events-PublicApi-0003-0001-Type_command02 - COMMAND we ErrorMessage GRAPHICS-WSERV-Events-PublicApi-0003-0001-ErrorMessage_command03 - COMMAND we ErrorMessage GRAPHICS-WSERV-Events-PublicApi-0003-0001-ErrorMessage_command04 - COMMAND we ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Events-PublicApi-0003 - - -START_TESTCASE GRAPHICS-WSERV-Events-PublicApi-0004 -//! @SYMTestCaseID GRAPHICS-WSERV-Events-PublicApi-0004 -//! @SYMAPI TWsEvent -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 17/09/2007 -//! @SYMTestCaseDesc EventData(): Gets information about the event -//! Uses API elements: TWsEvent::Type & SetType, EventData -//! @SYMTestActions 1. use new() to create a TWsEvent object -//! 2. use SetType() to set event type to EEventUser -//! 3. use Type() to get and check the event type = EEventUser -//! 4. execute EventData() and set the event data of first 3 bytes to 10, 20, 30 -//! 5. execute EventData() to get and check if the event data of the first 3 bytes as expected -//! 6. Destruct the TWsEvent object -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults No errors -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Events-PublicApi.ini - CREATE_OBJECT TWsEvent we - COMMAND we new - COMMAND we SetType GRAPHICS-WSERV-Events-PublicApi-0004-0001-SetType_command01 - COMMAND we Type GRAPHICS-WSERV-Events-PublicApi-0004-0001-Type_command02 - COMMAND we EventData GRAPHICS-WSERV-Events-PublicApi-0004-0001-EventData_command03 - COMMAND we EventData GRAPHICS-WSERV-Events-PublicApi-0004-0001-EventData_command04 - COMMAND we ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Events-PublicApi-0004 - - -START_TESTCASE GRAPHICS-WSERV-Events-PublicApi-0005 -//! @SYMTestCaseID GRAPHICS-WSERV-Events-PublicApi-0005 -//! @SYMAPI TWsEvent -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 18/12/2007 -//! @SYMTestCaseDesc SetHandle(), Handle(): Set and Get the window handle -//! Uses API elements: TWsEvent(),SetHandle(),Handle() -//! @SYMTestActions 1. use new() to create a TWsEvent object -//! 2. use SetHandle() to set the handle -//! 3. use Handle() to get the handle -//! 4. Close the session -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults Handle returned is that set with SetHandle -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Events-PublicApi.ini - CREATE_OBJECT TWsEvent we - COMMAND we new - COMMAND we SetHandle GRAPHICS-WSERV-Events-PublicApi-0005-0001-SetHandle_command02 - COMMAND we Handle GRAPHICS-WSERV-Events-PublicApi-0005-0001-Handle_command03 - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Events-PublicApi-0005 - - -START_TESTCASE GRAPHICS-WSERV-Events-PublicApi-0006 -//! @SYMTestCaseID GRAPHICS-WSERV-Events-PublicApi-0006 -//! @SYMAPI TWsEvent -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 18/12/2007 -//! @SYMTestCaseDesc SetType(), Type(): Set and Get the event type -//! Uses API elements: TWsEvent(),SetType(),Type() -//! @SYMTestActions 1. use new() to create a TWsEvent object -//! 2. use SetType() to set Type -//! 3. use Type() to get the Type -//! 4. Close the session -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults Type returned is that set with SetType -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Events-PublicApi.ini - CREATE_OBJECT TWsEvent we - COMMAND we new - COMMAND we SetType GRAPHICS-WSERV-Events-PublicApi-0006-0001-SetType_command02 - COMMAND we Type GRAPHICS-WSERV-Events-PublicApi-0006-0001-Type_command03 - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Events-PublicApi-0006 - - -START_TESTCASE GRAPHICS-WSERV-Events-PublicApi-0007 -//! @SYMTestCaseID GRAPHICS-WSERV-Events-PublicApi-0007 -//! @SYMAPI TWsEvent -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 13/09/2007 -//! @SYMTestCaseDesc Pointer(): Gets the pointer event -//! Uses API elements: RWsSession::Connect & EventReady & GetEvent & SimulateRawEvent, RWindowGroup::Construct, RWindow::Construct & Activate, TWsEvent::Type & Handle -//! @SYMTestActions 1. use new() to create a RWsSession and TWsEvent object -//! 2. use Connect() to make a connection with window server -//! 3. use new() and Construct() to create a RWindowGroup -//! 4. use EventReady() to request standard events from the window server -//! 5. Wait for an event, A EEventFocusGained event should be triggered from the RWindowGroup::Construct -//! 6. Get the event -//! 7. use Type() to get the type of event that occurred -//! 8. use new() and Construct() to create a RWindow as the child of the RWindowGroup within the RWsSession -//! 9. Activate() the RWindow to make it to receive events -//! 10. use SimulateRawEvent() to trigger a EButton1Down event at (10,15) on default device number 0 -//! 11. use Flush() to send all pending commands to WSERV -//! 12. use EventReady() to request standard events from the window server -//! 13. Wait for an event, the raw event should be wrapped into a EEventPointer event and triggered -//! 14. use Type() to check the received event type should be EEventPointer -//! 15. use Handle() to check the received event handle should be the client handle of RWindow, i.e. 2 -//! 16. execute Pointer() to check the received pointer event with type=EButton1Down and position (10,15) -//! 17. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults Pointer() call without causing panic, and returned TPointerEvent is the same as expected -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Events-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT TWsEvent we - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND we new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Events-PublicApi-0001-0001-new_command04 - COMMAND wingrp Construct GRAPHICS-WSERV-Events-PublicApi-0001-0001-Construct_command05 - COMMAND ws EventReady - OUTSTANDING - COMMAND ws GetEvent GRAPHICS-WSERV-Events-PublicApi-0001-0001-GetEvent_command07 - COMMAND we Type GRAPHICS-WSERV-Events-PublicApi-0001-0001-Type_command08 - - COMMAND win new GRAPHICS-WSERV-Events-PublicApi-0001-0001-new_command04 - COMMAND win Construct GRAPHICS-WSERV-Events-PublicApi-0007-0001-Construct_command01 - COMMAND win Activate - - COMMAND ws SimulateRawEvent GRAPHICS-WSERV-Events-PublicApi-0007-0001-SimulateRawEvent_command02 - COMMAND ws Flush - COMMAND ws EventReady - OUTSTANDING - COMMAND ws GetEvent GRAPHICS-WSERV-Events-PublicApi-0007-0001-GetEvent_command03 - COMMAND we Type GRAPHICS-WSERV-Events-PublicApi-0007-0001-Type_command04 - COMMAND we Handle GRAPHICS-WSERV-Events-PublicApi-0007-0001-Handle_command05 - COMMAND we Pointer GRAPHICS-WSERV-Events-PublicApi-0007-0001-Pointer_command06 - - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Events-PublicApi-0007 - - -START_TESTCASE GRAPHICS-WSERV-Events-PublicApi-0008 -//! @SYMTestCaseID GRAPHICS-WSERV-Events-PublicApi-0008 -//! @SYMAPI TWsEvent -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 13/09/2007 -//! @SYMTestCaseDesc Key(): get the key event -//! Uses API elements: RWsSession::Connect & EventReady & GetEvent & SimulateKeyEvent, RWindowGroup::Construct, TWsEvent::Type & Handle -//! @SYMTestActions 1. use new() to create a RWsSession and TWsEvent object -//! 2. use Connect() to make a connection with window server -//! 3. use new() and Construct() to create a RWindowGroup -//! 4. use EventReady() to request standard events from the window server -//! 5. Wait for an event, A EEventFocusGained event should be triggered from the RWindowGroup::Construct -//! 6. Get the event -//! 7. use Type() to get the type of event that occurred -//! 8. use SimulateKeyEvent() to trigger a key event of keycode=EKeyF1 and modifiers=EModifierCtrl -//! 9. use Flush() to send all pending commands to WSERV -//! 10. use EventReady() to request standard events from the window server -//! 11. Wait for an event, the raw event should be wrapped into a EEventKey event and triggered -//! 12. use Type() to check the received event type should be EEventKey -//! 13. use Handle() to check the received event handle should be the client handle of RWindowGroup, i.e. 1 -//! 14. execute Key() to check the received key event with code=EKeyF1 and modifiers=EModifierCtrl and repeats=0 -//! 15. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults No errors -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Events-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT TWsEvent we - CREATE_OBJECT RWindowGroup wingrp - COMMAND ws new - COMMAND we new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Events-PublicApi-0001-0001-new_command04 - COMMAND wingrp Construct GRAPHICS-WSERV-Events-PublicApi-0001-0001-Construct_command05 - COMMAND ws EventReady - OUTSTANDING - COMMAND ws GetEvent GRAPHICS-WSERV-Events-PublicApi-0001-0001-GetEvent_command07 - COMMAND we Type GRAPHICS-WSERV-Events-PublicApi-0001-0001-Type_command08 - - COMMAND ws SimulateKeyEvent GRAPHICS-WSERV-Events-PublicApi-0008-0001-SimulateKeyEvent_command01 - COMMAND ws Flush - COMMAND ws EventReady - OUTSTANDING - COMMAND ws GetEvent GRAPHICS-WSERV-Events-PublicApi-0008-0001-GetEvent_command02 - COMMAND we Type GRAPHICS-WSERV-Events-PublicApi-0008-0001-Type_command03 - COMMAND we Handle GRAPHICS-WSERV-Events-PublicApi-0008-0001-Handle_command04 - COMMAND we Key GRAPHICS-WSERV-Events-PublicApi-0008-0001-Key_command05 - - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Events-PublicApi-0008 - - -START_TESTCASE GRAPHICS-WSERV-Events-PublicApi-0009 -//! @SYMTestCaseID GRAPHICS-WSERV-Events-PublicApi-0009 -//! @SYMAPI TWsEvent -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 18/12/2007 -//! @SYMTestCaseDesc SetTimeNow(): Sets the event time to the current time -//! Uses API elements: TWsEvent(),SetTimeNow() -//! @SYMTestActions 1. use new() to create a TWsEvent object -//! 2. use SetTimeNow() to set the event time to the current time -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults Event time set -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Events-PublicApi.ini - CREATE_OBJECT TWsEvent we - COMMAND we new - COMMAND we SetTimeNow - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Events-PublicApi-0009 - - -START_TESTCASE GRAPHICS-WSERV-Events-PublicApi-0010 -//! @SYMTestCaseID GRAPHICS-WSERV-Events-PublicApi-0010 -//! @SYMAPI TWsEvent -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 18/12/2007 -//! @SYMTestCaseDesc Time(): Gets the time when the event occurred -//! Uses API elements: TWsEvent(),SetTimeNow(),Time() -//! @SYMTestActions 1. use new() to create a TWsEvent object -//! 2. use SetTimeNow() to set the event time to the current time -//! 3. use Time() to get the time when the event occurred -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults No errors -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Events-PublicApi.ini - CREATE_OBJECT TWsEvent we - COMMAND we new - COMMAND we SetTimeNow - COMMAND we Time - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Events-PublicApi-0010 - - -START_TESTCASE GRAPHICS-WSERV-Events-PublicApi-0011 -//! @SYMTestCaseID GRAPHICS-WSERV-Events-PublicApi-0011 -//! @SYMAPI TWsEvent -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 14/09/2007 -//! @SYMTestCaseDesc ModifiersChanged(): Gets information about the modifier changed event. -//! Uses API elements: RWsSession::Connect & EventReady & GetEvent & SimulateRawEvent, RWindowGroup::Construct & EnableModifierChangedEvents, TWsEvent::Type & Handle -//! @SYMTestActions 1. use new() to create a RWsSession and TWsEvent object -//! 2. use Connect() to make a connection with window server -//! 3. use new() and Construct() to create a RWindowGroup -//! 4. use EventReady() to request standard events from the window server -//! 5. Wait for an event, A EEventFocusGained event should be triggered from the RWindowGroup::Construct -//! 6. Get the event -//! 7. use Type() to get the type of event that occurred -//! 8. use EnableModifierChangedEvents() to request modifier changed event for modifier EModifierCapsLock and to send when EEventControlAlways -//! 9. use SimulateRawEvent() to trigger a raw event of type=EKeyDown and stdscancode=EStdKeyCapsLock -//! 10. use Flush() to send all pending commands to WSERV -//! 10. use EventReady() to request standard events from the window server -//! 11. Wait for an event, the raw event should be wrapped into a EEventModifiersChanged event and triggered -//! 12. use Type() to check the received event type should be EEventModifiersChanged -//! 13. use Handle() to check the received event handle should be the client handle of RWindowGroup, i.e. 1 -//! 14. execute ModifiersChanged() to check the received modifier changed event with changedmodifier=EModifierCapsLock & modifier=EModifierCapsLock -//! 15. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults information about the visibility changed event returned -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Events-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT TWsEvent we - CREATE_OBJECT RWindowGroup wingrp - COMMAND ws new - COMMAND we new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Events-PublicApi-0001-0001-new_command04 - COMMAND wingrp Construct GRAPHICS-WSERV-Events-PublicApi-0001-0001-Construct_command05 - COMMAND ws EventReady - OUTSTANDING - COMMAND ws GetEvent GRAPHICS-WSERV-Events-PublicApi-0001-0001-GetEvent_command07 - COMMAND we Type GRAPHICS-WSERV-Events-PublicApi-0001-0001-Type_command08 - - COMMAND wingrp EnableModifierChangedEvents GRAPHICS-WSERV-Events-PublicApi-0011-0001-EnableModifierChangedEvents_command01 - COMMAND ws SimulateRawEvent GRAPHICS-WSERV-Events-PublicApi-0011-0001-SimulateRawEvent_command02 - COMMAND ws SimulateRawEvent GRAPHICS-WSERV-Events-PublicApi-0011-0001-SimulateRawEvent_command03 - COMMAND ws Flush - COMMAND ws EventReady - OUTSTANDING - COMMAND ws GetEvent GRAPHICS-WSERV-Events-PublicApi-0011-0001-GetEvent_command04 - COMMAND we Type GRAPHICS-WSERV-Events-PublicApi-0011-0001-Type_command05 - COMMAND we Handle GRAPHICS-WSERV-Events-PublicApi-0011-0001-Handle_command06 - COMMAND we ModifiersChanged GRAPHICS-WSERV-Events-PublicApi-0011-0001-ModifiersChanged_command07 - - COMMAND ws SimulateRawEvent GRAPHICS-WSERV-Events-PublicApi-0011-0001-SimulateRawEvent_command08 - COMMAND ws SimulateRawEvent GRAPHICS-WSERV-Events-PublicApi-0011-0001-SimulateRawEvent_command09 - COMMAND ws Flush - COMMAND ws EventReady - OUTSTANDING - COMMAND ws GetEvent GRAPHICS-WSERV-Events-PublicApi-0011-0001-GetEvent_command10 - - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Events-PublicApi-0011 - - -START_TESTCASE GRAPHICS-WSERV-Events-PublicApi-0012 -//! @SYMTestCaseID GRAPHICS-WSERV-Events-PublicApi-0012 -//! @SYMAPI TWsEvent -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 14/09/2007 -//! @SYMTestCaseDesc VisibilityChanged(): Gets information about the visibility changed event. -//! Uses API elements: RWsSession::Connect & EventReady & GetEvent & SimulateRawEvent, RWindowGroup::Construct, RWindow::Construct & EnableVisibilityChangeEvents, TWsEvent::Type & Handle -//! @SYMTestActions 1. use new() to create a RWsSession and TWsEvent object -//! 2. use Connect() to make a connection with window server -//! 3. use new() and Construct() to create a RWindowGroup -//! 4. use EventReady() to request standard events from the window server -//! 5. Wait for an event, A EEventFocusGained event should be triggered from the RWindowGroup::Construct -//! 6. Get the event -//! 7. use Type() to get the type of event that occurred -//! 8. use new() and Construct() to create a RWindow as the child of the RWindowGroup within the RWsSession -//! 9. Activate() the RWindow to display and make it to receive events -//! 10. use EnableVisibilityChangeEvents() to request visibility changed events of RWindow -//! 11. use EventReady() to request standard events from the window server -//! 12. Wait for an event, the raw event should be wrapped into a EEventWindowVisibilityChanged event and triggered -//! 13. use Type() to check the received event type should be EEventModifiersChanged -//! 14. use Handle() to check the received event handle should be the client handle of RWindow, i.e. 2 -//! 15. execute VisibilityChanged() to check the received visibility changed event of ECanBeSeen|EFullyVisible -//! 16. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults information about the visibility changed event returned -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Events-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT TWsEvent we - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND we new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Events-PublicApi-0001-0001-new_command04 - COMMAND wingrp Construct GRAPHICS-WSERV-Events-PublicApi-0001-0001-Construct_command05 - COMMAND ws EventReady - OUTSTANDING - COMMAND ws GetEvent GRAPHICS-WSERV-Events-PublicApi-0001-0001-GetEvent_command07 - COMMAND we Type GRAPHICS-WSERV-Events-PublicApi-0001-0001-Type_command08 - - COMMAND win new GRAPHICS-WSERV-Events-PublicApi-0001-0001-new_command04 - COMMAND win Construct GRAPHICS-WSERV-Events-PublicApi-0012-0001-Construct_command01 - COMMAND win Activate - COMMAND win EnableVisibilityChangeEvents - - COMMAND ws EventReady - OUTSTANDING - COMMAND ws GetEvent GRAPHICS-WSERV-Events-PublicApi-0012-0001-GetEvent_command02 - COMMAND we Type GRAPHICS-WSERV-Events-PublicApi-0012-0001-Type_command03 - COMMAND we Handle GRAPHICS-WSERV-Events-PublicApi-0012-0001-Handle_command04 - COMMAND we VisibilityChanged GRAPHICS-WSERV-Events-PublicApi-0012-0001-VisibilityChanged_command05 - - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Events-PublicApi-0012 - - -START_TESTCASE GRAPHICS-WSERV-Events-PublicApi-0013 -//! @SYMTestCaseID GRAPHICS-WSERV-Events-PublicApi-0013 -//! @SYMAPI TWsEvent -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 14/09/2007 -//! @SYMTestCaseDesc const VisibilityChanged(): Gets information about the visibility changed event. -//! Uses API elements: TWsEvent(),Type(),VisibilityChanged() -//! @SYMTestActions 1. use new() to create a RWsSession and TWsEvent object -//! 2. use Connect() to make a connection with window server -//! 3. use new() and Construct() to create a RWindowGroup -//! 4. use EventReady() to request standard events from the window server -//! 5. Wait for an event, A EEventFocusGained event should be triggered from the RWindowGroup::Construct -//! 6. Get the event -//! 7. use Type() to get the type of event that occurred -//! 8. use new() and Construct() to create a RWindow as the child of the RWindowGroup within the RWsSession -//! 9. Activate() the RWindow to display and make it to receive events -//! 10. use EnableVisibilityChangeEvents() to request visibility changed events of RWindow -//! 11. use EventReady() to request standard events from the window server -//! 12. Wait for an event, the raw event should be wrapped into a EEventWindowVisibilityChanged event and triggered -//! 13. use Type() to check the received event type should be EEventModifiersChanged -//! 14. use Handle() to check the received event handle should be the client handle of RWindow, i.e. 2 -//! 15. execute VisibilityChanged() to get constant and check the received visibility changed event of ECanBeSeen|EFullyVisible -//! 16. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults information about the visibility changed event returned -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Events-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT TWsEvent we - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND we new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Events-PublicApi-0001-0001-new_command04 - COMMAND wingrp Construct GRAPHICS-WSERV-Events-PublicApi-0001-0001-Construct_command05 - COMMAND ws EventReady - OUTSTANDING - COMMAND ws GetEvent GRAPHICS-WSERV-Events-PublicApi-0001-0001-GetEvent_command07 - COMMAND we Type GRAPHICS-WSERV-Events-PublicApi-0001-0001-Type_command08 - - COMMAND win new GRAPHICS-WSERV-Events-PublicApi-0001-0001-new_command04 - COMMAND win Construct GRAPHICS-WSERV-Events-PublicApi-0013-0001-Construct_command01 - COMMAND win Activate - COMMAND win EnableVisibilityChangeEvents - - COMMAND ws EventReady - OUTSTANDING - COMMAND ws GetEvent GRAPHICS-WSERV-Events-PublicApi-0013-0001-GetEvent_command02 - COMMAND we Type GRAPHICS-WSERV-Events-PublicApi-0013-0001-Type_command03 - COMMAND we Handle GRAPHICS-WSERV-Events-PublicApi-0013-0001-Handle_command04 - COMMAND we VisibilityChanged GRAPHICS-WSERV-Events-PublicApi-0013-0001-VisibilityChanged_command05 - - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Events-PublicApi-0013 - - -// **************************************************************************** -// TWsPriorityKeyEvent -// **************************************************************************** - - -START_TESTCASE GRAPHICS-WSERV-Events-PublicApi-0014 -//! @SYMTestCaseID GRAPHICS-WSERV-Events-PublicApi-0014 -//! @SYMAPI TWsPriorityKeyEvent -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 16/08/2007 -//! @SYMTestCaseDesc Key(): get the priority key event. -//! Uses API elements: RWsSession::Connect & PriorityKeyReady & SimulateKeyEvent & GetPriorityKey & Flush, RWindowGroup::Construct & AddPriorityKey -//! @SYMTestActions 1. Create and construct a RWindowGroup to receive the priority key event -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a RWindowGroup within the RWsSession -//! 2. Use AddPriorityKey() to add a priority key of the RWindowGroup, e.g. keycode=EKeyF1 & modifier=EModifierCtrl -//! 3. Use PriorityKeyReady() to request priority key events from WSERV -//! 4. Use SimulateKeyEvent() to simulate a key event (with the same keycode and modifier of the specified priority key) -//! 5. Use Flush() to send all pending commands in the buffer to WSERV -//! 6. Use OUTSTANDING to wait for a priority key event -//! 7. when event obtained or timeouted, use GetPriorityKey to retrieve the priority key event -//! 8. Execute Key() to get and check if the returned key event is the same as expected -//! 9. Close and destruct all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Key() called without causing panic, and the returned key event is the same as the specified priority key, i.e. keycode=EKeyF1 & modifier=EModifierCtrl -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Events-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT TWsPriorityKeyEvent we - - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Events-Setup-0014-0001-new_command001 - COMMAND wingrp Construct GRAPHICS-WSERV-Events-Setup-0014-0001-Construct_command002 - COMMAND we new - - COMMAND wingrp AddPriorityKey GRAPHICS-WSERV-Events-PublicApi-0014-0001-AddPriorityKey_command001 - COMMAND ws PriorityKeyReady - COMMAND ws SimulateKeyEvent GRAPHICS-WSERV-Events-PublicApi-0014-0001-SimulateKeyEvent_command002 - COMMAND ws Flush - OUTSTANDING - COMMAND ws GetPriorityKey GRAPHICS-WSERV-Events-PublicApi-0014-0001-GetPriorityKey_command003 - COMMAND we Key GRAPHICS-WSERV-Events-PublicApi-0014-0001-Key_command004 - - COMMAND we ~ - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Events-PublicApi-0014 - - -START_TESTCASE GRAPHICS-WSERV-Events-PublicApi-0015 -//! @SYMTestCaseID GRAPHICS-WSERV-Events-PublicApi-0015 -//! @SYMAPI TWsPriorityKeyEvent -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 16/08/2007 -//! @SYMTestCaseDesc Handle(): get the handle for the window group which added the priority key. -//! Uses API elements: RWsSession::Connect & PriorityKeyReady & SimulateKeyEvent & GetPriorityKey & Flush, RWindowGroup::Construct & AddPriorityKey -//! @SYMTestActions 1. Create and construct a RWindowGroup to receive the priority key event -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a RWindowGroup within the RWsSession -//! 2. Use AddPriorityKey() to add a priority key of the RWindowGroup, e.g. keycode=EKeyF1 & modifier=EModifierCtrl -//! 3. Use PriorityKeyReady() to request priority key events from WSERV -//! 4. Use SimulateKeyEvent() to simulate a key event (with the same keycode and modifier of the specified priority key) -//! 5. Use Flush() to send all pending commands in the buffer to WSERV -//! 6. Use OUTSTANDING to wait for a priority key event -//! 7. when event obtained or timeouted, use GetPriorityKey to retrieve the priority key event -//! 8. Execute Handle() to get and check if the returned handle is the same as expected -//! 9. Close and destruct all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults Handle() called without causing panic, and the returned handle is the client handle of the RWindowGroup, i.e. 1 (assigned when it constucted) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Events-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT TWsPriorityKeyEvent we - - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Events-Setup-0014-0001-new_command001 - COMMAND wingrp Construct GRAPHICS-WSERV-Events-Setup-0014-0001-Construct_command002 - COMMAND we new - - COMMAND wingrp AddPriorityKey GRAPHICS-WSERV-Events-PublicApi-0015-0001-AddPriorityKey_command001 - COMMAND ws PriorityKeyReady - COMMAND ws SimulateKeyEvent GRAPHICS-WSERV-Events-PublicApi-0015-0001-SimulateKeyEvent_command002 - COMMAND ws Flush - OUTSTANDING - COMMAND ws GetPriorityKey GRAPHICS-WSERV-Events-PublicApi-0015-0001-GetPriorityKey_command003 - COMMAND we Handle GRAPHICS-WSERV-Events-PublicApi-0015-0001-Handle_command004 - - COMMAND we ~ - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Events-PublicApi-0015 - - -START_TESTCASE GRAPHICS-WSERV-Events-PublicApi-0016 -//! @SYMTestCaseID GRAPHICS-WSERV-Events-PublicApi-0016 -//! @SYMAPI TWsPriorityKeyEvent -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 16/08/2007 -//! @SYMTestCaseDesc SetHandle(TUint aHandle): set the window group event handle -//! Uses API elements: TWsPriorityKeyEvent::Handle -//! @SYMTestActions 1. new a TWsPriorityKeyEvent -//! 2. Execute SetHandle() to set the event handle, e.g. 2 -//! 3. Use Handle() to check the event handle is the same as specified -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults 1. SetHandle() called without causing panic -//! 2. After SetHandle() executed, use Handle to check the event handle is the same as specified -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Events-PublicApi.ini - CREATE_OBJECT TWsPriorityKeyEvent we - COMMAND we new - COMMAND we SetHandle GRAPHICS-WSERV-Events-PublicApi-0016-0001-SetHandle_command001 - COMMAND we Handle GRAPHICS-WSERV-Events-PublicApi-0016-0001-Handle_command002 - COMMAND we ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Events-PublicApi-0016 - - -// **************************************************************************** -// TWsRedrawEvent -// **************************************************************************** - - -START_TESTCASE GRAPHICS-WSERV-Events-PublicApi-0017 -//! @SYMTestCaseID GRAPHICS-WSERV-Events-PublicApi-0017 -//! @SYMAPI TWsRedrawEvent -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 16/08/2007 -//! @SYMTestCaseDesc Handle(): Gets the handle of the window which is the target of the redraw event. -//! Uses API elements: RWsSession::Connect & RedrawReady & GetRedraw, RWindowGroup::Construct, RWindowBase::Activate, RWindow::Construct & SetExtent -//! @SYMTestActions 1. Create and construct a RWindow to receive the redraw event -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a RWindowGroup within the RWsSession -//! 1.3 New and construct a RWindow as the child of the RWindowGroup -//! 1.4 Set the extent of RWindow to (5,6) and height=15, width=10 -//! 1.5 Activate RWindow to display and enable it to receive event -//! 2. Use RedrawReady to request redraw events from WSERV -//! 3. Use OUTSTANDING to wait for a redraw event -//! 4. when event obtained or timeouted, use GetRedraw to retrieve the redraw event -//! 5. Execute Handle() to get and check if the returned handle is the same as expected -//! 6. Close and destruct all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults Handle() called without causing panic, and the returned handle is the client handle of the RWindow, i.e. 2 (assigned when it constucted) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Events-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT TWsRedrawEvent we - - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Events-Setup-0017-0001-new_command001 - COMMAND wingrp Construct GRAPHICS-WSERV-Events-Setup-0017-0001-Construct_command002 - COMMAND win new GRAPHICS-WSERV-Events-Setup-0017-0001-new_command001 - COMMAND win Construct GRAPHICS-WSERV-Events-Setup-0017-0001-Construct_command003 - COMMAND win SetExtent GRAPHICS-WSERV-Events-Setup-0017-0001-SetExtent_command004 - COMMAND win Activate - COMMAND we new - - COMMAND ws RedrawReady - OUTSTANDING - COMMAND ws GetRedraw GRAPHICS-WSERV-Events-PublicApi-0017-0001-GetRedraw_command001 - COMMAND we Handle GRAPHICS-WSERV-Events-PublicApi-0017-0001-Handle_command002 - - COMMAND we ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Events-PublicApi-0017 - - -START_TESTCASE GRAPHICS-WSERV-Events-PublicApi-0018 -//! @SYMTestCaseID GRAPHICS-WSERV-Events-PublicApi-0018 -//! @SYMAPI TWsRedrawEvent -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 16/08/2007 -//! @SYMTestCaseDesc Rect(): Gets the rectangle to redraw. -//! Uses API elements: RWsSession::Connect & RedrawReady & GetRedraw, RWindowGroup::Construct, RWindowBase::Activate, RWindow::Construct & SetExtent -//! @SYMTestActions 1. Create and construct a RWindow to receive the redraw event -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a RWindowGroup within the RWsSession -//! 1.3 New and construct a RWindow as the child of the RWindowGroup -//! 1.4 Set the extent of RWindow to (5,6) and height=15, width=10 -//! 1.5 Activate RWindow to display and enable it to receive event -//! 2. Use RedrawReady to request redraw events from WSERV -//! 3. Use OUTSTANDING to wait for a redraw event -//! 4. when event obtained or timeouted, use GetRedraw to retrieve the redraw event -//! 5. Execute Rect() to get and check if the returned rectangle is the same as expected -//! 6. Close and destruct all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Rect() called without causing panic, and the returned rectangle is the size of the RWindow ((0,0),(10,15)) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Events-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT TWsRedrawEvent we - - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Events-Setup-0017-0001-new_command001 - COMMAND wingrp Construct GRAPHICS-WSERV-Events-Setup-0017-0001-Construct_command002 - COMMAND win new GRAPHICS-WSERV-Events-Setup-0017-0001-new_command001 - COMMAND win Construct GRAPHICS-WSERV-Events-Setup-0017-0001-Construct_command003 - COMMAND win SetExtent GRAPHICS-WSERV-Events-Setup-0017-0001-SetExtent_command004 - COMMAND win Activate - COMMAND we new - - COMMAND ws RedrawReady - OUTSTANDING - COMMAND ws GetRedraw GRAPHICS-WSERV-Events-PublicApi-0018-0001-GetRedraw_command001 - COMMAND we Rect GRAPHICS-WSERV-Events-PublicApi-0018-0001-Rect_command002 - - COMMAND we ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Events-PublicApi-0018 - - -START_TESTCASE GRAPHICS-WSERV-Events-PublicApi-0020 -//! @SYMTestCaseID GRAPHICS-WSERV-Events-PublicApi-0020 -//! @SYMAPI TWsEvent -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 18/12/2007 -//! @SYMTestCaseDesc SetType(), Type(): Set and Get the event type usign a TInt -//! Uses API elements: TWsEvent(),SetType(),Type() -//! @SYMTestActions 1. use new() to create a TWsEvent object -//! 2. use SetType() to set Type -//! 3. use Type() to get the Type -//! 4. Close the session -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults Type returned is that set with SetType -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Events-PublicApi.ini - CREATE_OBJECT TWsEvent we - COMMAND we new - COMMAND we SetType GRAPHICS-WSERV-Events-PublicApi-0020-0001-SetType_command02 - COMMAND we Type GRAPHICS-WSERV-Events-PublicApi-0020-0001-Type_command03 - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Events-PublicApi-0020 diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-Frame-PublicAPI.script --- a/graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-Frame-PublicAPI.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,309 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// -//! @file -//! @SYMTestSuiteName GRAPHICS-WSERV-Frame-PublicApi -//! @SYMScriptTestEnvironment This test script requires a basic ROM. - -/////////////////////////////////////////////////////////////////////////////// -// GRAPHICS-WSERV-Frame-PublicApi.script -// -// Tests all public elements of the CFrame class -// as a means of confidence that the API works as expected. -// -// The purpose is to provide a regression test suite of PublishedAll APIs for -// CFrame related classes. -// Negative testing is performed to confirm that correct errors are returned -// when incorrect parameters are given. -// -// The tests are fully automated. -/////////////////////////////////////////////////////////////////////////////// - - -LOAD_SUITE T_GraphicsWservAPI - -// **************************************************************************** -// CFrame -// **************************************************************************** - -START_TESTCASE GRAPHICS-WSERV-Frame-PublicApi-0001 -//! @SYMTestCaseID GRAPHICS-WSERV-Frame-PublicApi-0001 -//! @SYMAPI CFrame::NewL(); -//! CFrame::~CFrame() -//! @SYMAuthor Yue Zhang -//! @SYMCreationDate 10-03-2008 -//! @SYMTestCaseDesc Create CFrame object and then destroy it. -//! @SYMTestActions 1.Create CFrame object. -//! 2.Destroy created object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CFrame object was created and destroyed without causing panic. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Frame-PublicApi.ini - CREATE_OBJECT CFrame frame - COMMAND frame NewL - COMMAND frame ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Frame-PublicApi-0001 - - -START_TESTCASE GRAPHICS-WSERV-Frame-PublicApi-0002 -//! @SYMTestCaseID GRAPHICS-WSERV-Frame-PublicApi-0002 -//! @SYMAPI CFrame::FrameInfo() -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 21-04-2008 -//! @SYMTestCaseDesc Create CFrame object and get the default FrameInfo. -//! @SYMTestActions 1.Create CFrame object. -//! 2.Get FrameInfo and verify defalut setting. -//! 3.Destroy created object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The default FrameInfo as expected. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Frame-PublicApi.ini - CREATE_OBJECT CFrame frame - COMMAND frame NewL - COMMAND frame FrameInfo GRAPHICS-WSERV-Frame-PublicApi-0002-0001-FrameInfo-command002 - COMMAND frame ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Frame-PublicApi-0002 - - -START_TESTCASE GRAPHICS-WSERV-Frame-PublicApi-0003 -//! @SYMTestCaseID GRAPHICS-WSERV-Frame-PublicApi-0003 -//! @SYMAPI CFrame::SetFrameInfo(const TFrameInfo{ref}); -//! CFrame::FrameInfo() -//! @SYMAuthor Yue Zhang -//! @SYMCreationDate 10-03-2008 -//! @SYMTestCaseDesc Set frame info via CFrame object and then get it. -//! @SYMTestActions 1.Create CFrame object. -//! 2.Set FrameInfo. -//! 3.Get FrameInfo. -//! 4.Destroy created object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CFrame object sets FrameInfo succefully and gets the same FrameInfo as the setting value. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Frame-PublicApi.ini - CREATE_OBJECT CFrame frame - COMMAND frame NewL - COMMAND frame SetFrameInfo GRAPHICS-WSERV-Frame-PublicApi-0003-0001-SetFrameInfo-command002 - COMMAND frame FrameInfo GRAPHICS-WSERV-Frame-PublicApi-0003-0001-FrameInfo-command003 - COMMAND frame ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Frame-PublicApi-0003 - - -START_TESTCASE GRAPHICS-WSERV-Frame-PublicApi-0004 -//! @SYMTestCaseID GRAPHICS-WSERV-Frame-PublicApi-0004 -//! @SYMAPI CFrame::Bitmap() -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 21-04-2008 -//! @SYMTestCaseDesc Create CFrame object and get the default bitmap object. -//! @SYMTestActions 1.Create CFrame object. -//! 2.Create CFbsBitmap object for storing default bitmap. -//! 2.Get the default bitmap object and verify that it is NULL. -//! 3.Destroy created objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The default bitmap object should be NULL. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Frame-PublicApi.ini - CREATE_OBJECT CFrame frame - CREATE_OBJECT CFbsBitmap bitmap - - COMMAND frame NewL - COMMAND frame Bitmap GRAPHICS-WSERV-Frame-PublicApi-0004-0001-Bitmap-command002 - COMMAND frame ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Frame-PublicApi-0004 - - -START_TESTCASE GRAPHICS-WSERV-Frame-PublicApi-0005 -//! @SYMTestCaseID GRAPHICS-WSERV-Frame-PublicApi-0005 -//! @SYMAPI CFrame::SetBitmap(CFbsbitmap{ptr}); -//! CFrame::Bitmap() -//! @SYMAuthor Yue Zhang -//! @SYMCreationDate 10-03-2008 -//! @SYMTestCaseDesc Set bitmap via CFrame object and then get it. -//! @SYMTestActions 1.Create CFrame object. -//! 2.Create RFbsSession object. -//! 3.Create CFbsBitmap object. -//! 4.Connect the RFbsSession. -//! 5.Load CFbsBitmap. -//! 6.Set the CFbsBitmap. -//! 7.Get the CFbsBitmap. -//! 8.Destroy created objects. -//! 9.Disconnect the RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CFrame object sets bitmap succefully and gets the same bitmap as the setting value. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Frame-PublicApi.ini - CREATE_OBJECT CFrame frame - CREATE_OBJECT RFbsSession fbssession - CREATE_OBJECT CFbsBitmap bitmap - COMMAND frame NewL - COMMAND fbssession Connect - COMMAND bitmap new - COMMAND bitmap Load GRAPHICS-WSERV-Frame-PublicApi-0005-0001-Load-command04 - COMMAND frame SetBitmap GRAPHICS-WSERV-Frame-PublicApi-0005-0001-SetBitmap-command005 - COMMAND frame Bitmap GRAPHICS-WSERV-Frame-PublicApi-0005-0001-Bitmap-command006 - COMMAND bitmap disown - COMMAND frame ~ - COMMAND fbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Frame-PublicApi-0005 - - -START_TESTCASE GRAPHICS-WSERV-Frame-PublicApi-0006 -//! @SYMTestCaseID GRAPHICS-WSERV-Frame-PublicApi-0006 -//! @SYMAPI CFrame::Mask() -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 21-04-2008 -//! @SYMTestCaseDesc Create CFrame object and get the default mask. -//! @SYMTestActions 1.Create CFrame object. -//! 2.Create CFbsBitmap object for storing default mask. -//! 3.Get the default mask object and verify that it is NULL. -//! 4.Destroy created objects. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The default mask object should be NULL. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Frame-PublicApi.ini - CREATE_OBJECT CFrame frame - CREATE_OBJECT CFbsBitmap mask - - COMMAND frame NewL - COMMAND frame Mask GRAPHICS-WSERV-Frame-PublicApi-0006-0001-Mask-command002 - COMMAND frame ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Frame-PublicApi-0006 - - -START_TESTCASE GRAPHICS-WSERV-Frame-PublicApi-0007 -//! @SYMTestCaseID GRAPHICS-WSERV-Frame-PublicApi-0007 -//! @SYMAPI CFrame::SetMask(CFbsbitmap{ptr}); -//! CFrame::Mask() -//! @SYMAuthor Yue Zhang -//! @SYMCreationDate 10-03-2008 -//! @SYMTestCaseDesc Set mask via CFrame object and then get it. -//! @SYMTestActions 1.Create CFrame object. -//! 2.Create RFbsSession object. -//! 3.Create CFbsBitmap object. -//! 4.Connect the RFbsSession. -//! 5.Load CFbsBitmap. -//! 6.Set the mask. -//! 7.Get the mask. -//! 8.Destroy created objects. -//! 9.Disconnect the RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CFrame object sets mask succefully and gets the same mask with setting value. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Frame-PublicApi.ini - CREATE_OBJECT CFrame frame - CREATE_OBJECT RFbsSession fbssession - CREATE_OBJECT CFbsBitmap mask - COMMAND frame NewL - COMMAND fbssession Connect - COMMAND mask new - COMMAND mask Load GRAPHICS-WSERV-Frame-PublicApi-0007-0001-Load-command04 - COMMAND frame SetMask GRAPHICS-WSERV-Frame-PublicApi-0007-0001-SetMask-command005 - COMMAND frame Mask GRAPHICS-WSERV-Frame-PublicApi-0007-0001-Mask-command006 - COMMAND mask disown - COMMAND frame ~ - COMMAND fbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Frame-PublicApi-0007 - -START_TESTCASE GRAPHICS-WSERV-Frame-PublicApi-0008 -//! @SYMTestCaseID GRAPHICS-WSERV-Frame-PublicApi-0008 -//! @SYMAPI CFrame::SetBitmap(CFbsbitmap{ptr}); -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 30-04-2008 -//! @SYMTestCaseDesc Set bitmap to CFrame object twice with same bitmap. -//! @SYMTestActions 1.Create CFrame object. -//! 2.Create RFbsSession object. -//! 3.Create CFbsBitmap object. -//! 4.Connect the RFbsSession. -//! 5.Load CFbsBitmap. -//! 6.Set the CFbsBitmap. -//! 7.Set the CFbsBitmap again. -//! 8.Destroy created objects. -//! 9.Disconnect the RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CFrame object sets bitmap succefully. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Frame-PublicApi.ini - CREATE_OBJECT CFrame frame - CREATE_OBJECT RFbsSession fbssession - CREATE_OBJECT CFbsBitmap bitmap - COMMAND frame NewL - COMMAND fbssession Connect - COMMAND bitmap new - COMMAND bitmap Load GRAPHICS-WSERV-Frame-PublicApi-0008-0001-Load-command04 - COMMAND frame SetBitmap GRAPHICS-WSERV-Frame-PublicApi-0008-0001-SetBitmap-command005 - COMMAND frame SetBitmap GRAPHICS-WSERV-Frame-PublicApi-0008-0001-SetBitmap-command006 - COMMAND bitmap disown - COMMAND frame ~ - COMMAND fbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Frame-PublicApi-0008 - -START_TESTCASE GRAPHICS-WSERV-Frame-PublicApi-0009 -//! @SYMTestCaseID GRAPHICS-WSERV-Frame-PublicApi-0009 -//! @SYMAPI CFrame::SetMask(CFbsbitmap{ptr}); -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 30-04-2008 -//! @SYMTestCaseDesc Set mask to CFrame object twice with same bitmap. -//! @SYMTestActions 1.Create CFrame object. -//! 2.Create RFbsSession object. -//! 3.Create CFbsBitmap object. -//! 4.Connect the RFbsSession. -//! 5.Load CFbsBitmap. -//! 6.Set the mask. -//! 7.Set the mask again. -//! 8.Destroy created objects. -//! 9.Disconnect the RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CFrame object sets mask succefully. -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Frame-PublicApi.ini - CREATE_OBJECT CFrame frame - CREATE_OBJECT RFbsSession fbssession - CREATE_OBJECT CFbsBitmap mask - COMMAND frame NewL - COMMAND fbssession Connect - COMMAND mask new - COMMAND mask Load GRAPHICS-WSERV-Frame-PublicApi-0009-0001-Load-command04 - COMMAND frame SetMask GRAPHICS-WSERV-Frame-PublicApi-0009-0001-SetMask-command005 - COMMAND frame SetMask GRAPHICS-WSERV-Frame-PublicApi-0009-0001-SetMask-command006 - COMMAND mask disown - COMMAND frame ~ - COMMAND fbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Frame-PublicApi-0009 diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-PublicApi.script --- a/graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-PublicApi.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,39 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// - -RUN_SCRIPT ${SYSDRIVE}\graphics\GRAPHICS-WSERV-BackedUpWindow-PublicApi.script -RUN_SCRIPT ${SYSDRIVE}\graphics\GRAPHICS-WSERV-BlankWindow-PublicApi.script -RUN_SCRIPT ${SYSDRIVE}\graphics\GRAPHICS-WSERV-DirectScreenAccess-PublicApi.script -RUN_SCRIPT ${SYSDRIVE}\graphics\GRAPHICS-WSERV-DsaSession-PublicApi.script -RUN_SCRIPT ${SYSDRIVE}\graphics\GRAPHICS-WSERV-Events-PublicApi.script -RUN_SCRIPT ${SYSDRIVE}\graphics\GRAPHICS-WSERV-Session-PublicApi.script -RUN_SCRIPT ${SYSDRIVE}\graphics\GRAPHICS-WSERV-SoundPlugIn-PublicApi.script -RUN_SCRIPT ${SYSDRIVE}\graphics\GRAPHICS-WSERV-WindowGc-PublicApi.script -RUN_SCRIPT ${SYSDRIVE}\graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.script -RUN_SCRIPT ${SYSDRIVE}\graphics\GRAPHICS-WSERV-Window-PublicApi.script -RUN_SCRIPT ${SYSDRIVE}\graphics\GRAPHICS-WSERV-WsBitmap-PublicApi.script -RUN_SCRIPT ${SYSDRIVE}\graphics\GRAPHICS-WSERV-WsGraphicBitmap-PublicApi.script -RUN_SCRIPT ${SYSDRIVE}\graphics\GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.script -RUN_SCRIPT ${SYSDRIVE}\graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.script -RUN_SCRIPT ${SYSDRIVE}\graphics\GRAPHICS-WSERV-WsSprite-PublicApi.script -RUN_SCRIPT ${SYSDRIVE}\graphics\GRAPHICS-WSERV-Frame-PublicApi.script -RUN_SCRIPT ${SYSDRIVE}\graphics\GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi.script -RUN_SCRIPT ${SYSDRIVE}\graphics\GRAPHICS-WSERV-Anim-PublicApi.script -RUN_SCRIPT ${SYSDRIVE}\graphics\GRAPHICS-WSERV-AnimDll-PublicApi.script -RUN_SCRIPT ${SYSDRIVE}\graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.script -RUN_SCRIPT ${SYSDRIVE}\graphics\GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi.script -RUN_SCRIPT ${SYSDRIVE}\graphics\GRAPHICS-WSERV-AnimGfwe-PublicApi.script -RUN_SCRIPT ${SYSDRIVE}\graphics\GRAPHICS-WSERV-AnimWindowFunctions-PublicApi.script diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-Session-PublicApi.script --- a/graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-Session-PublicApi.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,2470 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// -//! @file -//! @SYMTestSuiteName GRAPHICS-WSERV-Session-PublicApi -//! @SYMScriptTestEnvironment This test script requires a basic ROM. - -/////////////////////////////////////////////////////////////////////////////// -// GRAPHICS-WSERV-Session-PublicApi.script -// -// Tests all public elements of the RWsSession class -// as a means of confidence that the API works as expected. -// -// The purpose is to provide a regression test suite of PublishedAll APIs for -// RWsSession related classes. -// Negative testing is performed to confirm that correct errors are returned -// when incorrect parameters are given. -// -// The tests are fully automated. -/////////////////////////////////////////////////////////////////////////////// - - -LOAD_SUITE T_GraphicsWservAPI - - -// **************************************************************************** -// RWsSession -// **************************************************************************** - - - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0001 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0001 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 18/12/2006 -//! @SYMTestCaseDesc RWsSession(): create a RWsSession object by C++ defaut constructor -//! Uses API elements: RWsSession() -//! @SYMTestActions simply execute new() a RWsSession to create the object -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults RWsSession object was created without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0001 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0003 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0003 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 18/12/2006 -//! @SYMTestCaseDesc Close():Closes the window server session -//! Uses API elements: RWsSession::Connect & Close -//! @SYMTestActions Create and connect a RWsSession using pre-constructed file server -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults Connect() method returns KErrNone without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0003 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0004 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0004 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc ResourceCount():Gets the number of objects that the server has allocated for that client. -//! Uses API elements: Connect() ,PurgePointerEvents() and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. use ResourceCount() to get the number of objects -//! 4. Close RWsSession object using Close() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults all pointer events waiting remove -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws ResourceCount GRAPHICS-WSERV-Session-PublicApi-0004-0001-ResourceCount_command003 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0004 - - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0005 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0005 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 18/12/2006 -//! @SYMTestCaseDesc Flush(): sends all pending commands in the buffer to the window server -//! Uses API elements: RWsSession::Connnect & Flush & Close -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. To send all pending commands in the buffer to the window server -//! 3. Close the RWsSession -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults sends all pending commands in the buffer to the window server -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws Flush - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0005 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0006 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0006 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc SetAutoFlush(TBool aState): set auto-flush state of a RWsSession -//! Uses API elements: RWsSession::Connnect & SetAutoFlush & Close -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. SetAutoFlush to TRUE, and check the return value should be FALSE (previous value the default) -//! 3. SetAutoFlush to FALSE, and check the return value should be TRUE (previous value) -//! 4. Close the RWsSession -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults Set auto-flush state without causing panic, and the return value is its previous value as expected if provided -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws SetAutoFlush GRAPHICS-WSERV-Session-PublicApi-0006-0001-SetAutoFlush_command003 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-Session-PublicApi-0006-0001-SetAutoFlush_command004 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0006 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0007 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0007 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc SetBufferSizeL(TInt aBufSize): set both the buffer size and maximum buffer size for queuing commands to send to the Windows Server -//! Uses API elements: RWsSession::Connnect & SetBufferSizeL & Close -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. set minimum buffer size to 640 bytes -//! 3. Close the RWsSession -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults the minimum buffer size to be set -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws SetBufferSizeL GRAPHICS-WSERV-Session-PublicApi-0007-0001-SetBufferSizeL_command003 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0007 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0008 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0008 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc SetBufferSizeL(TInt aBufSize) & SetMaxBufferSizeL(TInt aMaxBufSize): set both the buffer size and maximum buffer size for queuing commands to send to the Windows Server -//! Uses API elements: RWsSession::Connnect & SetBufferSizeL & SetMaxBufferSizeL & Close -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. set minimum buffer size to 640 bytes -//! 3. set maximum buffer size to 16384 bytes -//! 4. Close the RWsSession -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults both the minimum buffer size and maximum buffer size for queuing commands to be set -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws SetBufferSizeL GRAPHICS-WSERV-Session-PublicApi-0008-0001-SetBufferSizeL_command003 - COMMAND ws SetMaxBufferSizeL GRAPHICS-WSERV-Session-PublicApi-0008-0001-SetMaxBufferSizeL_command004 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0008 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0009 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0009 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc SetDefaultFadingParameters(TUint8 aBlackMap, TUint8 aWhiteMap): set the default fading parameters -//! SetSystemFaded(TBool aFaded):all windows in the system as faded or unfaded, using the default fading parameters -//! Uses API elements: RWsSession::Connnect & SetDefaultFadingParameters & SetSystemFaded & Close -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Uses SetDefaultFadingParameters to set the mapping values of black map fading parameter to 0 -//! 3. Uses SetDefaultFadingParameters to set the mapping values of white map fading parameter to 255 -//! 4. Uses SetSystemFaded to all windows in the system as faded or unfaded, using the default fading parameters -//! 5. Close the RWsSession -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults the mapping values of black map and white fading parameter to be set -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws SetDefaultFadingParameters GRAPHICS-WSERV-Session-PublicApi-0009-0001-SetDefaultFadingParameters_command003 - COMMAND ws SetSystemFaded GRAPHICS-WSERV-Session-PublicApi-0009-0001-SetSystemFaded_command004 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0009 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0010 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0010 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc SetDefaultFadingParameters(TUint8 aBlackMap, TUint8 aWhiteMap): set the default fading parameters -//! SetSystemFaded(TBool aFaded, TUint8 aBlackMap, TUint8 aWhiteMap):set all windows in the system as faded or unfaded, overriding the default fading parameters -//! Uses API elements: RWsSession::Connnect & SetDefaultFadingParameters & SetSystemFaded & Close -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Uses SetDefaultFadingParameters to set the mapping values of black map fading parameter to 0 -//! 3. Uses SetDefaultFadingParameters to set the mapping values of white map fading parameter to 255 -//! 4. Uses SetSystemFaded to set ETrue to fade all windows -//! 5. Uses SetSystemFaded to set the mapping values of black map fading parameter to 10 -//! 6. Uses SetSystemFaded to set the mapping values of black map fading parameter to 244 -//! 7. Close the RWsSession -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults the default fading parameters and all windows in the system as faded or unfaded, overriding the default fading parameters to be set -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws SetDefaultFadingParameters GRAPHICS-WSERV-Session-PublicApi-0010-0001-SetDefaultFadingParameters_command003 - COMMAND ws SetSystemFaded GRAPHICS-WSERV-Session-PublicApi-0010-0001-SetSystemFaded_command004 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0010 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0011 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0011 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc SetShadowVector(const TPoint &aVector): set the shadow vector -//! ShadowVector():get the current value of the shadow vector -//! Uses API elements: RWsSession::Connnect & SetShadowVector & ShadowVector & Close -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Uses SetShadowVector to set the mapping values of black map fading parameter to 0 -//! 3. Uses SetShadowVector to set the mapping values of white map fading parameter to 255 -//! 4. Uses ShadowVector to set ETrue to fade all windows -//! 5. Uses ShadowVector to set the mapping values of black map fading parameter to 10 -//! 6. Close the RWsSession -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults get the current value of the shadow vector correctly -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws SetShadowVector GRAPHICS-WSERV-Session-PublicApi-0011-0001-SetShadowVector_command003 - COMMAND ws ShadowVector GRAPHICS-WSERV-Session-PublicApi-0011-0001-ShadowVector_command004 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0011 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0012 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0012 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc SetPointerCursorArea(const TPoint &aVector): set the shadow vector -//! PointerCursorArea():get the current value of the shadow vector -//! Uses API elements: RWsSession::Connnect & SetPointerCursorArea & PointerCursorArea & Close -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Uses TRect's object to set the horizontal co-ordinate of the left hand side of the rectangle to -90, -//! the vertical co-ordinate of the top of the rectangle to -51,the horizontal co-ordinate of the right hand side of the rectangle to 696 and the vertical co-ordinate of the bottom of the rectangle to 312 -//! 3. Uses TRect's object as parameter for SetPointerCursorArea to set the area of the screen in which the virtual cursor can be used while in relative mouse mode, for the first screen display mode -//! 4. Uses SetShadowVector to set the mapping values of white map fading parameter to 255 -//! 5. Uses PointerCursorArea to set ETrue to fade all windows -//! 6. Uses ShadowVector to set the mapping values of black map fading parameter to 10 -//! 7. Close the RWsSession -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults the new shadow vector to be set and get the expected value -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws SetPointerCursorArea GRAPHICS-WSERV-Session-PublicApi-0012-0001-SetPointerCursorArea_command003 - COMMAND ws PointerCursorArea GRAPHICS-WSERV-Session-PublicApi-0012-0001-PointerCursorArea_command004 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0012 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0013 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0013 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc SetPointerCursorArea(TInt aScreenSizeMode, const TRect &aArea): set the area of the screen in which the virtual cursor can be used while in relative mouse mode, for a specified screen display mode -//! PointerCursorArea(TInt aScreenSizeMode) const:get the current value of the shadow vector -//! Uses API elements: RWsSession::Connnect & SetPointerCursorArea & PointerCursorArea & Close -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Uses TRect's object to set the horizontal co-ordinate of the left hand side of the rectangle to -90, -//! the vertical co-ordinate of the top of the rectangle to -51,the horizontal co-ordinate of the right hand side of the rectangle to 696 and the vertical co-ordinate of the bottom of the rectangle to 312 -//! 3. Uses TRect's object as parameter for SetPointerCursorArea to set the area of the screen in which the virtual cursor can be used while in relative mouse mode, for a specified screen display mode -//! 4. Set the screen mode to which the new area applies to 0 -//! 5. Close the RWsSession -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults the new shadow vector to be set and get the expected value -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws SetPointerCursorArea GRAPHICS-WSERV-Session-PublicApi-0013-0001-SetPointerCursorArea_command003 - COMMAND ws PointerCursorArea GRAPHICS-WSERV-Session-PublicApi-0013-0001-PointerCursorArea_command004 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0013 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0014 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0014 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc SetPointerCursorMode(TPointerCursorMode aMode): set the current mode for the pointer cursor -//! PointerCursorMode(TInt aScreenSizeMode) const:get the current mode for the pointer cursor -//! Uses API elements: RWsSession::Connnect & SetPointerCursorMode & PointerCursorMode & Close -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Uses TPointerCursorMode's object to define the current cursor mode as EPointerCursorNormal -//! 3. Uses TPointerCursorMode's object as parameter for SetPointerCursorMode to set the current mode for the pointer cursor -//! 4. Uses PointerCursorMode to get the current mode for the pointer cursor -//! 5. Close the RWsSession -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults the current mode for the pointer cursor to be set as the expected value -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Session-PublicApi-0014-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-Session-PublicApi-0014-0001-Construct_command004 - COMMAND ws SetPointerCursorMode GRAPHICS-WSERV-Session-PublicApi-0014-0001-SetPointerCursorMode_command005 - COMMAND ws PointerCursorMode GRAPHICS-WSERV-Session-PublicApi-0014-0001-PointerCursorMode_command006 - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0014 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0015 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0015 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc SetClientCursorMode(TPointerCursorMode aMode): set the current mode for the pointer cursor -//! Uses API elements: RWsSession::Connnect & SetClientCursorMode & Close -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Uses TPointerCursorMode's object to define the current cursor mode as EPointerCursorNormal -//! 3. Uses TPointerCursorMode's object as parameter for SetClientCursorMode to set the current mode for the pointer cursor -//! 4. Close the RWsSession -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults the current mode for the pointer cursor to be set as the expected value -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws SetClientCursorMode GRAPHICS-WSERV-Session-PublicApi-0015-0001-SetClientCursorMode_command003 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0015 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0016 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0016 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc SetPointerCursorPosition(const TPoint &aPosition): set the pointer cursor position -//! Uses API elements: RWsSession::Connnect & SetPointerCursorPosition & Close -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Uses TPoint's object to define the pointer cursor X position as 6 and Y position as 0 -//! 3. Uses PointerCursorPosition() to get the pointer cursor position -//! 4. Close the RWsSession -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults the current mode for the pointer cursor to be set as the expected value -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws SetPointerCursorPosition GRAPHICS-WSERV-Session-PublicApi-0016-0001-SetPointerCursorPosition_command003 - COMMAND ws PointerCursorPosition GRAPHICS-WSERV-Session-PublicApi-0016-0001-PointerCursorPosition_command004 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0016 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0017 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0017 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc SetKeyboardRepeatRate(const TTimeIntervalMicroSeconds32 &aInitialTime, const TTimeIntervalMicroSeconds32 &aTime): set the system-wide keyboard repeat rate -//! Uses API elements: RWsSession::Connnect & SetKeyboardRepeatRate & Close -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Get the current values of the Keyboard Repeat Rate and store it -//! 3. Set values to the Keyboard Repeat Rate -//! 4. Get the Keyboard Repeat Rate and verify that the are the values used in Set -//! 5. Restore the previous values to the Keyboard Repeat Rate -//! 6. Close the RWsSession -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults the current mode for the pointer cursor to be set as the expected value -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws GetKeyboardRepeatRate GRAPHICS-WSERV-Session-PublicApi-0017-0001-GetKeyboardRepeatRate_command003 - COMMAND ws SetKeyboardRepeatRate GRAPHICS-WSERV-Session-PublicApi-0017-0001-SetKeyboardRepeatRate_command004 - COMMAND ws GetKeyboardRepeatRate GRAPHICS-WSERV-Session-PublicApi-0017-0001-GetKeyboardRepeatRate_command005 - COMMAND ws SetKeyboardRepeatRate GRAPHICS-WSERV-Session-PublicApi-0017-0001-SetKeyboardRepeatRate_command006 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0017 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0018 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0018 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 18/12/2006 -//! @SYMTestCaseDesc Close():Closes the window server session -//! Uses API elements: RWsSession::Connect & Close -//! @SYMTestActions Create and connect a RWsSession using pre-constructed file server -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults Connect() method returns KErrNone without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws SetDoubleClick GRAPHICS-WSERV-Session-PublicApi-0018-0001-SetDoubleClick_command003 - COMMAND ws GetDoubleClickSettings GRAPHICS-WSERV-Session-PublicApi-0018-0001-GetDoubleClickSettings_command004 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0018 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0019 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0019 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 18/12/2006 -//! @SYMTestCaseDesc Close():Closes the window server session -//! Uses API elements: RWsSession::Connect & Close -//! @SYMTestActions Create and connect a RWsSession using pre-constructed file server -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults Connect() method returns KErrNone without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect GRAPHICS-WSERV-Session-PublicApi-0019-0001-Connect_command002 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0019 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0020 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0020 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 18/12/2006 -//! @SYMTestCaseDesc Version(): get the connected WSERV version -//! Uses API elements: RWsSession::Connnect & Version & Close -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Get the version of the RWsSession connected WSERV -//! 3. Close the RWsSession -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults Get WSERV version without causing panic, returned version matches the expected if provided -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws Version GRAPHICS-WSERV-Session-PublicApi-0020-0001-Version_command003 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0020 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0021 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0021 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 18/12/2006 -//! @SYMTestCaseDesc WindowGroupList(RArray< TWindowGroupChainInfo > *aWindowList): get a list of identifier of window group and parent identifier of window group of all window groups in all window server sessions via RArray -//! Uses API elements: RWsSession::Connnect & WindowGroupList & Close -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. use NumWindowGroups() to get the total number of window groups currently -//! 3. get a list of identifier of window group via RArray -//! 4. Close the RWsSession -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults Get WSERV version without causing panic, returned version matches the expected if provided -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws NumWindowGroups - COMMAND ws WindowGroupList GRAPHICS-WSERV-Session-PublicApi-0021-0001-WindowGroupList_command004 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0021 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0022 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0022 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 18/12/2006 -//! @SYMTestCaseDesc SetDefaultSystemPointerCursor(): set the default system pointer cursor -//! Uses API elements: RWsSession::Connnect & ClaimSystemPointerCursorList & SetDefaultSystemPointerCursor & Close -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Uses ClaimSystemPointerCursorList to gain access to the list, -//! 4. Close the RWsSession -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults The system pointer cursor should be owned by the UI and fail with error KErrInUse(-14) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND !Error=-14 ws ClaimSystemPointerCursorList - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0022 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0024 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0024 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 18/12/2006 -//! @SYMTestCaseDesc WindowGroupList(CArrayFixFlat< TInt > *aWindowList) to get a list of identifiers of all window groups in all window server sessions -//! SetWindowGroupOrdinalPosition(): set the ordinal position of a window group -//! Uses API elements: RWsSession::Connnect & WindowGroupList & SetWindowGroupOrdinalPosition & Close -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a window group -//! 3. Set the window group's identifier. -//! 4. Use SetWindowGroupOrdinalPosition to set the window group's position -//! 5. Close the RWindowGroup -//! 6. Close the RWsSession -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults window group ordinal position is set and no panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Session-PublicApi-0024-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-Session-PublicApi-0024-0001-Construct_command004 - COMMAND wingrp Identifier - COMMAND ws SetWindowGroupOrdinalPosition GRAPHICS-WSERV-Session-PublicApi-0024-0001-SetWindowGroupOrdinalPosition_command005 - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0024 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0025 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0025 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 1/08/2006 -//! @SYMTestCaseDesc Gets a list of identifiers of all window groups in all window server sessions -//! Uses API elements: Connect(),SetAutoFlush(), WindowGroupList(),and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. set the state to TRUE to active the auto flush if it needs to flush -//! 4. use NumWindowGroups() to get the total number of window groups currently -//! 5. use WindowGroupList() to get a list of identifiers of all window groups -//! 6. set the array buffer as CArrayFixFlat< TInt > -//! 7. Close RWsSession object using Close() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults Display a list of identifiers of all window groups in all window server sessions -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws SetAutoFlush GRAPHICS-WSERV-Session-PublicApi-0025-0001-SetAutoFlush_command004 - COMMAND ws NumWindowGroups - COMMAND ws WindowGroupList GRAPHICS-WSERV-Session-PublicApi-0025-0001-WindowGroupList_command006 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0025 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0026 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0026 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 1/08/2006 -//! @SYMTestCaseDesc Gets a list of identifiers of all window groups in all window server sessions -//! Uses API elements: Connect(),SetAutoFlush(),GetWindowGroupClientThreadId(),and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. set the state to TRUE to active the auto flush if it needs to flush -//! 4. use NumWindowGroups() to get the total number of window groups currently -//! 5. use WindowGroupList() to get a list of identifiers of all window groups -//! 6. use GetWindowGroupClientThreadId() to get the thread ID of the client that owns the window group specified by the window group identifier. -//! 7. Close RWsSession object using Close() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults Set -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - COMMAND ws new - COMMAND ws Connect - COMMAND ws SetAutoFlush GRAPHICS-WSERV-Session-PublicApi-0026-0001-SetAutoFlush_command003 - COMMAND ws NumWindowGroups - COMMAND wingrp new GRAPHICS-WSERV-Session-PublicApi-0026-0001-new_command005 - COMMAND wingrp Construct GRAPHICS-WSERV-Session-PublicApi-0026-0001-Construct_command006 - COMMAND ws NumWindowGroups GRAPHICS-WSERV-Session-PublicApi-0026-0001-NumWindowGroups_command007 - COMMAND ws WindowGroupList GRAPHICS-WSERV-Session-PublicApi-0026-0001-WindowGroupList_command008 - COMMAND ws GetWindowGroupClientThreadId GRAPHICS-WSERV-Session-PublicApi-0026-0001-GetWindowGroupClientThreadId_command009 - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK - -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0026 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0027 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0027 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 1/08/2006 -//! @SYMTestCaseDesc Gets a list of identifiers of all window groups in all window server sessions -//! Uses API elements: Connect(),SetAutoFlush(),FindWindowGroupIdentifier(),and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. set the state to TRUE to active the auto flush if it needs to flush -//! 4. use FindWindowGroupIdentifier() to get all window groups whose names match a given string -//! 5. use '*e*' as match string -//! 6. Close RWsSession object using Close() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults Set -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws SetAutoFlush GRAPHICS-WSERV-Session-PublicApi-0027-0001-SetAutoFlush_command004 - COMMAND ws FindWindowGroupIdentifier GRAPHICS-WSERV-Session-PublicApi-0027-0001-FindWindowGroupIdentifier_command005 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0027 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0028 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0028 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 1/08/2006 -//! @SYMTestCaseDesc Gets the total number of window groups currently running in the window server. -//! Uses API elements: Connect(), NumWindowGroups(),and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. use NumWindowGroups() to get the total number of window groups currently -//! 4. Close RWsSession object using Close() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults Display the total number of window groups -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws NumWindowGroups - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0028 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0029 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0029 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 1/08/2006 -//! @SYMTestCaseDesc SetFocusScreen(TInt aScreenNumber):Sets the focus screen -//! GetFocusScreen():Gets focus screen -//! Uses API elements: Connect(),SetFocusScreen(), GetFocusScreen(),and Close() -//! @SYMTestActions 1. Uses new() to create a RWsSession object -//! 2. Uses Connect() to make a connection with window server -//! 3. Uses SetFocusScreen to set focus screen -//! 4. Uses GetFocusScreen() to get the focus screen -//! 5. Close RWsSession object using Close() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults return KErrNone while SetFocusScreen and get the screen number of current focus screen -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws SetFocusScreen GRAPHICS-WSERV-Session-PublicApi-0029-0001-SetFocusScreen_command004 - COMMAND ws GetFocusScreen GRAPHICS-WSERV-Session-PublicApi-0029-0001-GetFocusScreen_command005 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0029 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0030 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0030 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 1/08/2006 -//! @SYMTestCaseDesc Set up and get the background color -//! Uses API elements: Connect() ,SetAutoFlush(),SetBackgroundColor(),GetBackgroundColor()and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. set the state to TRUE to active the auto flush if it needs to flush -//! 4. set the background color as Red(255),Green(245)and Blue(245) -//! 5. get the background color to verify -//! 6. Close RWsSession object using Close() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults Set auto-flush state without causing panic, and the return the value of background color as expected -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws SetAutoFlush GRAPHICS-WSERV-Session-PublicApi-0030-0001-SetAutoFlush_command004 - COMMAND ws SetBackgroundColor GRAPHICS-WSERV-Session-PublicApi-0030-0001-SetBackgroundColor_command005 - COMMAND ws GetBackgroundColor GRAPHICS-WSERV-Session-PublicApi-0030-0001-GetBackgroundColor_command006 - COMMAND ws GetDefaultOwningWindow GRAPHICS-WSERV-Session-PublicApi-0030-0001-GetDefaultOwningWindow_command007 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0030 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0031 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0031 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc Set up and get the background color -//! Uses API elements: Connect() ,NumWindowGroups()and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. use NumWindowGroups() to get the total number of window groups currently running in the window server and include all the groups running in all sessions -//! 4. Close RWsSession object using Close() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults return the total number of window groups currently running as expected -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws NumWindowGroups - COMMAND ws WindowGroupList GRAPHICS-WSERV-Session-PublicApi-0031-0001-WindowGroupList_command005 - COMMAND ws GetWindowGroupOrdinalPriority GRAPHICS-WSERV-Session-PublicApi-0031-0001-GetWindowGroupOrdinalPriority_command006 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0031 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0032 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0032 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc Set up and get the background color -//! Uses API elements: Connect() ,SetBufferSizeL()and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. use SetBufferSizeL() to set the buffer size and maximum buffer size for -//! queuing commands to send to the Windows Server -//! 4. use NumWindowGroups() to get the total number of window groups currently -//! 5. use WindowGroupList() to get a list of identifiers of all window groups in all window server sessions with RArray -//! 6. Close RWsSession object using Close() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults allocate the required memory without any leave code or panic code -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws SetBufferSizeL GRAPHICS-WSERV-Session-PublicApi-0032-0001-SetBufferSizeL_command004 - COMMAND ws NumWindowGroups - COMMAND ws WindowGroupList GRAPHICS-WSERV-Session-PublicApi-0032-0001-WindowGroupList_command006 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0032 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0033 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0033 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc Set up and get the background color -//! Uses API elements: Connect() ,SetMaxBufferSizeL()and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. use SetMaxBufferSizeL() to set the buffer size and maximum buffer size for -//! queuing commands to send to the Windows Server -//! 4. Close RWsSession object using Close() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults allocate the required memory without any leave code or panic code -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws SetMaxBufferSizeL GRAPHICS-WSERV-Session-PublicApi-0033-0001-SetMaxBufferSizeL_command004 - COMMAND ws Close - END_TEST_BLOCK - -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0033 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0038 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0038 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc RequestOffEvents(TBool aOn, RWindowTreeNode *aWin=0):Requests the window server to send OFF events to a window -//! Uses API elements: Connect() ,RequestOffEvents()and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. new and Construct a RWindowGroup within the RWsSession -//! 4. Execute RequestOffEvents() with FALSE to make WSERV switch back to powering down the machine itself -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults allocate the required memory without any leave code or panic code -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Session-PublicApi-0038-0001-new_command01 - COMMAND wingrp Construct GRAPHICS-WSERV-Session-PublicApi-0038-0001-Construct_command02 - COMMAND ws RequestOffEvents GRAPHICS-WSERV-Session-PublicApi-0038-0001-RequestOffEvents_command003 - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0038 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0039 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0039 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc RequestOffEvents(TBool aOn, RWindowTreeNode *aWin=0):Requests the window server to send OFF events to a window -//! Uses API elements: Connect() ,RequestOffEvents()and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. new and Construct a RWindowGroup within the RWsSession -//! 4. Execute RequestOffEvents() with TRUE to request WSERV to send OFF events to the RWindowGroup -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults Error KErrAlreadyExists(-11) expected as the system should already have a window assigned for off events -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Session-PublicApi-0039-0001-new_command01 - COMMAND wingrp Construct GRAPHICS-WSERV-Session-PublicApi-0039-0001-Construct_command02 - COMMAND !Error=-11 ws RequestOffEvents GRAPHICS-WSERV-Session-PublicApi-0039-0001-RequestOffEvents_command003 - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0039 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0040 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0040 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc NumWindowGroups(TInt aPriority):Gets the number of window groups of a given window group priority running in all sessions in the window server. -//! Uses API elements: Connect() ,NumWindowGroups()and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. use NumWindowGroups() to get the number of window groups of a given window group priority running in all sessions -//! 4. Close RWsSession object using Close() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults restore all mapping hotkey -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws NumWindowGroups GRAPHICS-WSERV-Session-PublicApi-0040-0001-NumWindowGroups_command003 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0040 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0041 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0041 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc WindowGroupList(TInt aPriority, CArrayFixFlat< TInt > *aWindowList): Lists the number of window groups of a given window group priority running in all window server sessions -//! GetWindowGroupHandle(TInt aIdentifier):Gets the handle of the window specified by the window group identifier -//! Uses API elements: Connect() ,WindowGroupList(),GetWindowGroupHandle() and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. use NumWindowGroups() to get the total number of window groups currently -//! 4. use WindowGroupList() to Lists the number of window groups of a given window group priority -//! 5. use GetWindowGroupHandle() to get the handle of the window specified by the window group identifier -//! 6. Close RWsSession object using Close() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults restore all mapping hotkey -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Session-PublicApi-0041-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-Session-PublicApi-0041-0001-Construct_command004 - COMMAND ws NumWindowGroups - COMMAND ws WindowGroupList GRAPHICS-WSERV-Session-PublicApi-0041-0001-WindowGroupList_command006 - COMMAND ws GetWindowGroupHandle GRAPHICS-WSERV-Session-PublicApi-0041-0001-GetWindowGroupHandle_command007 - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0041 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0044 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0044 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc FetchMessage(TUid &aUid, TPtr8 &aParams, const TWsEvent &aMessageEvent):causes a flush of the window server buffer -//! Uses API elements: Connect() ,FetchMessage()and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. use FetchMessage() to cause a flush of the window server buffer -//! 4. Close RWsSession object using Close() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults Error KErrNotFound(-1) as no events have been triggered -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws FetchMessage - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0044 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0045 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0045 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc SetHotKey(THotKey aType,TUint aKeyCode,TUint aModifierMask,TUint aModifier):sets the hot keys -//! Uses API elements: Connect() ,SetHotKey()and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. use SetHotKey() to set the hot key to EHotKeyIncBrightness and key code to EKeyLeftAlt -//! 4. Close RWsSession object using Close() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults hot key and key code can be set -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws SetHotKey GRAPHICS-WSERV-Session-PublicApi-0045-0001-SetHotKey_command004 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0045 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0046 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0046 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc ClearHotKeys(THotKey aType):Clears all mappings for the specified hotkey, including the default mapping -//! Uses API elements: Connect() ,ClearHotKeys()and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. use ClearHotKeys() to clear all mappings -//! 4. Close RWsSession object using Close() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults clear all mapping hotkey -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws ClearHotKeys GRAPHICS-WSERV-Session-PublicApi-0046-0001-ClearHotKeys_command004 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0046 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0047 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0047 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc RestoreDefaultHotKey(THotKey aType):Restores the default mapping for a hot key -//! Uses API elements: Connect() ,RestoreDefaultHotKey()and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. use RestoreDefaultHotKey() to restore the default mapping -//! 4. Close RWsSession object using Close() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults restore all mapping hotkey -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws RestoreDefaultHotKey GRAPHICS-WSERV-Session-PublicApi-0047-0001-RestoreDefaultHotKey_command004 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0047 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0048 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0048 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc RestoreDefaultHotKey(TEventModifier aModifier, TModifierState aState):sets the state of the modifier keys -//! Uses API elements: Connect() ,SetModifierState()and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. use SetModifierState() to set the state of the modifier keys -//! 4. Close RWsSession object using Close() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults restore all mapping hotkey -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws SetModifierState GRAPHICS-WSERV-Session-PublicApi-0048-0001-SetModifierState_command004 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0048 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0049 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0049 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc GetDefaultOwningWindow():gets the identifier of the current default owning window group -//! Uses API elements: Connect() ,GetDefaultOwningWindow()and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. use GetDefaultOwningWindow() to get the identifier of the current default owning window group -//! 4. Close RWsSession object using Close() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults restore all mapping hotkey -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws GetDefaultOwningWindow GRAPHICS-WSERV-Session-PublicApi-0049-0001-GetDefaultOwningWindow_command004 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0049 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0050 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0050 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc GetDefaultOwningWindow(TInt aScreenNumber):gets the identifier of the current default owning window group on a specified screen -//! Uses API elements: Connect() ,GetDefaultOwningWindow()and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. use GetDefaultOwningWindow() to get the identifier of the current default owning window group on a specified screen -//! 4. Close RWsSession object using Close() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults restore all mapping hotkey -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws GetDefaultOwningWindow GRAPHICS-WSERV-Session-PublicApi-0050-0001-GetDefaultOwningWindow_command004 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0050 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0051 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0051 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc NumWindowGroups(TInt aScreenNumber, TInt aPriority):gets the number of window groups of a given window group priority running on a specified screen -//! Uses API elements: Connect() ,NumWindowGroups()and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. use NumWindowGroups() to get the number of window groups of a given window group priority running on a specified screen -//! 4. Close RWsSession object using Close() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults Number of window groups of priority on the specified screen -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws NumWindowGroups GRAPHICS-WSERV-Session-PublicApi-0051-0001-NumWindowGroups_command003 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0051 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0052 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0052 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc GetFocusWindowGroup(TInt aScreenNumber):gets the identifier of the window group on a specified screen that currently has the keyboard focus -//! Uses API elements: Connect() ,GetFocusWindowGroup()and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. use GetFocusWindowGroup() to get the identifier of the window group on a specified screen that currently has the keyboard focus -//! 4. Close RWsSession object using Close() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults return the identifier of window group with keyboard focus -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT RWindowGroup wingrp - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-Session-PublicApi-0052-0001-new_command003 - COMMAND scrdev Construct - COMMAND wingrp new GRAPHICS-WSERV-Session-PublicApi-0052-0001-new_command005 - COMMAND wingrp Construct GRAPHICS-WSERV-Session-PublicApi-0052-0001-Construct_command006 - COMMAND ws GetFocusWindowGroup GRAPHICS-WSERV-Session-PublicApi-0052-0001-GetFocusWindowGroup_command007 - COMMAND wingrp Close - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0052 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0053 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0053 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc WindowGroupList(CArrayFixFlat< TInt > *aWindowList, TInt aScreenNumber, TInt aPriority=EAllPriorities):Lists the number of window groups of a given window group priority running on a specified screen -//! Uses API elements: Connect() ,WindowGroupList()and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. use NumWindowGroups() to get the total number of window groups currently -//! 4. use WindowGroupList() to get the number of window groups of a given window group priority -//! 5. Close RWsSession object using Close() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults return KErrNone from calling the method WindowGroupList -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws NumWindowGroups - COMMAND ws WindowGroupList GRAPHICS-WSERV-Session-PublicApi-0053-0001-WindowGroupList_command005 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0053 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0054 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0054 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 20/09/2006 -//! @SYMTestCaseDesc SetCustomTextCursor(TInt aIdentifier, const TArray< TSpriteMember > &aSpriteMemberArray, TUint aSpriteFlags, TCustomTextCursorAlignment aAlignment):adds a custom text cursor to the server's list of cursors -//! Uses API elements: RWsSession::Connect & Close, CFbsBitmap::Load -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. new and Load() a CFbsBitmap to construct custom text cursor -//! 4. use SetCustomTextCursor() to add custom text cursor of identifier 100, flag=ESpriteNoShadows, alignment=ECustomTextCursorAlignTop -//! with one SpriteMember of the specified bitmap, drawmode=EDrawModeAND, and offset (5,5) -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults call SetCustomTextCursor() without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CFbsBitmap fbsbmp - COMMAND ws new - COMMAND ws Connect - COMMAND fbsbmp new - COMMAND fbsbmp Load GRAPHICS-WSERV-Session-PublicApi-0054-0001-Load_command001 - COMMAND ws SetCustomTextCursor GRAPHICS-WSERV-Session-PublicApi-0054-0001-SetCustomTextCursor_command002 - COMMAND fbsbmp ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0054 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0055 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0055 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc GetPriorityKey(TWsPriorityKeyEvent &aEvent):Gets the completed priority key event from the window server session -//! PriorityKeyReady(TRequestStatus *aStat):Requests priority key events from the window server -//! Uses API elements: Connect() ,GetPriorityKey()and Close() -//! @SYMTestActions 1. Create and construct a RWindowGroup to receive the priority key event -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a RWindowGroup within the RWsSession -//! 2. Use CaptureKey() to request key capture of RWindowGroup for the specified key, e.g. keycode=EKeyF1 -//! 3. Use AddPriorityKey() to add a priority key of the RWindowGroup, e.g. keycode=EKeyF1 -//! 4. Use PriorityKeyReady() to request priority key events from WSERV -//! 5. Use SimulateKeyEvent() to simulate a key event (with the same keycode and modifier of the specified priority key) -//! 6. Use Flush() to send all pending commands in the buffer to WSERV -//! 7. Use OUTSTANDING to wait for a priority key event -//! 8. when event obtained, execute GetPriorityKey to retrieve the priority key event -//! 9. Use Key() to get and check if the returned key event is the same as expected -//! 10. Close and destruct all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults PriorityKeyReady() and GetPriorityKey() called without causing panic, and receive the priority key event as expected -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT TWsPriorityKeyEvent we - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Session-PublicApi-0055-0001-new_command04 - COMMAND wingrp Construct GRAPHICS-WSERV-Session-PublicApi-0055-0001-Construct_command05 - COMMAND wingrp CaptureKey GRAPHICS-WSERV-Session-PublicApi-0055-0001-CaptureKey_command006 - COMMAND wingrp AddPriorityKey GRAPHICS-WSERV-Session-PublicApi-0055-0001-AddPriorityKey_command007 - COMMAND ws PriorityKeyReady - COMMAND ws SimulateKeyEvent GRAPHICS-WSERV-Session-PublicApi-0055-0001-SimulateKeyEvent_command008 - COMMAND ws Flush - OUTSTANDING - COMMAND we new - COMMAND ws GetPriorityKey GRAPHICS-WSERV-Session-PublicApi-0055-0001-GetPriorityKey_command009 - COMMAND we Key GRAPHICS-WSERV-Session-PublicApi-0055-0001-Key_command010 - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0055 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0056 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0056 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc GetPriorityKey(TWsPriorityKeyEvent &aEvent):Gets the completed priority key event from the window server session -//! PriorityKeyReadyCancel():Cancels a priority key event request -//! Uses API elements: Connect() ,GetPriorityKey(),PriorityKeyReady(),PriorityKeyReadyCancel() and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. use GetPriorityKey() to get the completed priority key event -//! 4. use PriorityKeyReady() to request priority key events -//! 5. use PriorityKeyReadyCancel() to cancel a priority key event request -//! 6. Close RWsSession object using Close() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults KErrCancel(-3) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND !AsyncError=-3 ws PriorityKeyReady - COMMAND ws PriorityKeyReadyCancel - OUTSTANDING - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0056 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0057 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0057 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc GetRedraw(TWsRedrawEvent &aEvent):Gets the redraw event from the session. -//! Uses API elements: RWsSession::Connect & RedrawReady & GetRedraw, RWindowGroup::Construct, RWindowBase::Activate, RWindow::Construct & SetExtent, TWsRedrawEvent::Rect -//! @SYMTestActions 1. Create and construct a RWindow to receive the redraw event -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a RWindowGroup within the RWsSession -//! 1.3 New and construct a RWindow as the child of the RWindowGroup -//! 1.4 Set the extent of RWindow to (5,6) and height=15, width=10 -//! 1.5 Activate RWindow to display and enable it to receive event -//! 2. Use RedrawReady to request redraw events from WSERV -//! 3. Use OUTSTANDING to wait for a redraw event -//! 4. when event obtained, exexute GetRedraw to retrieve the redraw event -//! 5. Execute Rect() to get and check if the returned rectangle is the same as expected -//! 6. Close and destruct all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults RedrawReady() and GetRedraw() called without causing panic, and receive redraw event as expected -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT TWsRedrawEvent we - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Session-PublicApi-0057-0001-new_command01 - COMMAND wingrp Construct GRAPHICS-WSERV-Session-PublicApi-0057-0001-Construct_command02 - COMMAND win new GRAPHICS-WSERV-Session-PublicApi-0057-0001-new_command01 - COMMAND win Construct GRAPHICS-WSERV-Session-PublicApi-0057-0001-Construct_command003 - COMMAND win SetExtent GRAPHICS-WSERV-Session-PublicApi-0057-0001-SetExtent_command004 - COMMAND win Activate - COMMAND ws RedrawReady - OUTSTANDING - COMMAND we new - COMMAND ws GetRedraw GRAPHICS-WSERV-Session-PublicApi-0057-0001-GetRedraw_command005 - COMMAND we Rect GRAPHICS-WSERV-Session-PublicApi-0057-0001-Rect_command006 - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0057 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0058 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0058 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc GetRedraw(TWsRedrawEvent &aEvent):Gets the redraw event from the session. -//! RedrawReady(TRequestStatus *aStat):Requests redraw events from the window server -//! RedrawReadyCancel():Cancels a redraw event request -//! Uses API elements: Connect() ,RedrawReady(),GetRedraw(),RedrawReadyCancel() and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. use RedrawReady() to request redraw events from the window server -//! 4. use RedrawReadyCancel() to cancel a redraw event request -//! 5. Close RWsSession object using Close() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults KErrCancel(-3) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND !AsyncError=-3 ws RedrawReady - COMMAND ws RedrawReadyCancel - OUTSTANDING - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0058 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0059 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0059 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc FindWindowGroupIdentifier(TInt aPreviousIdentifier, TThreadId aThreadId):Gets the identifiers of window groups belonging to a client -//! Uses API elements: Connect() ,WindowGroupList(),GetWindowGroupHandle(),FindWindowGroupIdentifier() and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. use NumWindowGroups() to get the total number of window groups currently -//! 4. use WindowGroupList() to Lists the number of window groups of a given window group priority -//! 5. use GetWindowGroupHandle() to get the handle of the window specified by the window group identifier -//! 6. use FindWindowGroupIdentifier() to get the id of window group belonging to a client -//! 7. Close RWsSession object using Close() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults return next window group identifier after the one identified by aPreviousIdentifier -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Session-PublicApi-0059-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-Session-PublicApi-0059-0001-Construct_command004 - COMMAND ws NumWindowGroups - COMMAND ws WindowGroupList GRAPHICS-WSERV-Session-PublicApi-0059-0001-WindowGroupList_command006 - COMMAND ws GetWindowGroupHandle GRAPHICS-WSERV-Session-PublicApi-0059-0001-GetWindowGroupHandle_command007 - COMMAND ws FindWindowGroupIdentifier GRAPHICS-WSERV-Session-PublicApi-0059-0001-FindWindowGroupIdentifier_command008 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0059 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0061 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0061 -//! @SYMAPI RWsSession -//! @SYMAuthor Felix Chen -//! @SYMCreationDate 10/04/2007 -//! @SYMTestCaseDesc Clear the redraw store for all windows in the system -//! Uses API elements: Connect(), ClearAllRedrawStores()and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. use ClearAllRedrawStores() to clear the redraw store for all windows -//! 4. Close RWsSession object by using Close() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults Clear the redraw store for all windows in the system without any leave code or panic code -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws ClearAllRedrawStores - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0061 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0063 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0063 -//! @SYMAPI RWsSession -//! @SYMAuthor Felix Chen -//! @SYMCreationDate 10/04/2007 -//! @SYMTestCaseDesc Releases the system pointer cursor list and deletes all the entries in it -//! Uses API elements: Connect(), FreeSystemPointerCursorList() and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. use FreeSystemPointerCursorList() to release the system pointer cursor list and deletes all the entries in it -//! 4. Close RWsSession object by using Close() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults Releases the system pointer cursor list and deletes all the entries in it -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws FreeSystemPointerCursorList - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0063 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0064 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0064 -//! @SYMAPI RWsSession -//! @SYMAuthor Felix Chen -//! @SYMCreationDate 10/04/2007 -//! @SYMTestCaseDesc Sets the mode used to control process priorities to the desired mode -//! Uses API elements: Connect(), ComputeMode() and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. use ComputeMode() to set the mode used to control process priorities -//! 4. Close RWsSession object by using Close() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults Sets the mode used to control process priorities to the desired mode -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws ComputeMode GRAPHICS-WSERV-Session-PublicApi-0064-0001-ComputeMode_command004 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0064 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0066 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0066 -//! @SYMAPI RWsSession -//! @SYMAuthor Felix Chen -//! @SYMCreationDate 10/04/2007 -//! @SYMTestCaseDesc Send all pending commands in the buffer to the window server -//! Uses API elements: Connect(), Flush() and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. use Flush() to send all pending commands in the buffer to the window server -//! 4. Close RWsSession object by using Close() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults All pending commands in the buffer are sent to the window server -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws Flush - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0066 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0068 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0068 -//! @SYMAPI RWsSession -//! @SYMAuthor Felix Chen -//! @SYMCreationDate 10/04/2007 -//! @SYMTestCaseDesc Get the identifier of the window group that currently has the keyboard focus -//! Uses API elements: Connect(), GetFocusWindowGroup() and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. use GetFocusWindowGroup() to get the identifier of the window group that currently has the keyboard focus -//! 4. Close RWsSession object by using Close() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults The identifier we obtained should match the expected ID -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Session-PublicApi-0068-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-Session-PublicApi-0068-0001-Construct_command004 - COMMAND ws GetFocusWindowGroup - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0068 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0069 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0069 -//! @SYMAPI RWsSession -//! @SYMAuthor Felix Chen -//! @SYMCreationDate 20/05/2007 -//! @SYMTestCaseDesc Get the state of the modifier keys -//! Uses API elements: Connect(), GetModifierState() and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. use GetModifierState() to get the state of the modifier keys -//! 4. Close RWsSession object by using Close() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults The modifier state we obtained should match the expected state -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws GetModifierState - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0069 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0070 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0070 -//! @SYMAPI RWsSession -//! @SYMAuthor Felix Chen -//! @SYMCreationDate 20/05/2007 -//! @SYMTestCaseDesc Get the list of available colour modes -//! Uses API elements: Connect(), GetColorModeList() and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. use GetColorModeList() to get the list of available colour modes -//! 4. Close RWsSession object by using Close() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults Get the list of available colour modes and the number of available colour modes should match the expected value -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws GetColorModeList GRAPHICS-WSERV-Session-PublicApi-0070-0001-GetColorModeList_command003 - COMMAND ws GetColorModeList GRAPHICS-WSERV-Session-PublicApi-0070-0001-GetColorModeList_command004 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0070 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0071 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0071 -//! @SYMAPI RWsSession -//! @SYMAuthor Felix Chen -//! @SYMCreationDate 22/05/2007 -//! @SYMTestCaseDesc Get the number of colours available in the richest supported colour mode, and the number of grays available in the richest gray mode, then return the default display mode -//! Uses API elements: Connect(), GetDefModeMaxNumColors() and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. use GetDefModeMaxNumColors() to get the number of colours available in the richest supported colour mode, and the number of grays available in the richest gray mode, then return the default display mode -//! 4. Close RWsSession object by using Close() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults The number of colours/grays available in the richest supported mode should match the expected value -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws GetDefModeMaxNumColors GRAPHICS-WSERV-Session-PublicApi-0071-0001-GetDefModeMaxNumColors_command004 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0071 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0073 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0073 -//! @SYMAPI RWsSession -//! @SYMAuthor Felix Chen -//! @SYMCreationDate 23/05/2007 -//! @SYMTestCaseDesc Get the heap count -//! Uses API elements: Connect(), HeapCount() and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. use HeapCount() to get the heap count -//! 4. Close RWsSession object by using Close() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults The heap count should be greater than expected value -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws HeapCount GRAPHICS-WSERV-Session-PublicApi-0073-0001-HeapCount_command004 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0073 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0075 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0075 -//! @SYMAPI RWsSession -//! @SYMAuthor Felix Chen -//! @SYMCreationDate 23/05/2007 -//! @SYMTestCaseDesc Get the pointer cursor area for the specified screen display mode -//! Uses API elements: Connect(), PointerCursorArea() and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. use PointerCursorArea() to get the pointer cursor area for the specified screen display mode -//! 4. Close RWsSession object by using Close() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults The pointer cursor area we obtained should match the expected TRect -//! @SYMTestType CIT - - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws PointerCursorArea GRAPHICS-WSERV-Session-PublicApi-0075-0001-PointerCursorArea_command004 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0075 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0076 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0076 -//! @SYMAPI RWsSession -//! @SYMAuthor Felix Chen -//! @SYMCreationDate 23/05/2007 -//! @SYMTestCaseDesc Get the pointer cursor area for the first screen display mode -//! Uses API elements: Connect(), PointerCursorArea() and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. use PointerCursorArea() to get the pointer cursor area for the first screen display mode -//! 4. Close RWsSession object by using Close() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults The pointer cursor area we obtained should match the expected TRect -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws PointerCursorArea GRAPHICS-WSERV-Session-PublicApi-0076-0001-PointerCursorArea_command004 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0076 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0077 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0077 -//! @SYMAPI RWsSession -//! @SYMAuthor Felix Chen -//! @SYMCreationDate 23/05/2007 -//! @SYMTestCaseDesc Get the current mode for the pointer cursor -//! Uses API elements: Connect(), PointerCursorMode() and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. use PointerCursorMode() to get the current mode for the pointer cursor -//! 4. Close RWsSession object by using Close() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults The pointer cursor mode we obtained should match the expected mode -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws PointerCursorMode GRAPHICS-WSERV-Session-PublicApi-0077-0001-PointerCursorMode_command004 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0077 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0078 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0078 -//! @SYMAPI RWsSession -//! @SYMAuthor Felix Chen -//! @SYMCreationDate 23/05/2007 -//! @SYMTestCaseDesc Get the pointer cursor position -//! Uses API elements: Connect(), PointerCursorPosition() and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. use PointerCursorPosition() to get the current mode for the pointer cursor -//! 4. Close RWsSession object by using Close() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults Get the pointer cursor position and display it. The position should stay at the origin (0,0) at the beginning -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws PointerCursorPosition GRAPHICS-WSERV-Session-PublicApi-0078-0001-PointerCursorPosition_command004 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0078 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0079 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0079 -//! @SYMAPI RWsSession -//! @SYMAuthor Felix Chen -//! @SYMCreationDate 24/05/2007 -//! @SYMTestCaseDesc Prepare for switch off -//! Uses API elements: Connect(), PrepareForSwitchOff() and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. use PrepareForSwitchOff() to stop the window server heart beat timer if running -//! 4. Close RWsSession object by using Close() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults This stops the window server heart beat timer if running -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws PrepareForSwitchOff - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0079 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0080 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0080 -//! @SYMAPI RWsSession -//! @SYMAuthor Felix Chen -//! @SYMCreationDate 24/05/2007 -//! @SYMTestCaseDesc Allows the window server client to enable or disable logging of window server events. For logging to work, the wsini.ini file has -//! to specify the type of logging required and the DLLs for that type of logging must have been correctly installed. -//! Uses API elements: Connect(), LogCommand() and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. use LogCommand() to set the logging status -//! 4. Close RWsSession object by using Close() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults The logging status is set to desired mode -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws LogCommand GRAPHICS-WSERV-Session-PublicApi-0080-0001-LogCommand_command004 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0080 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0081 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0081 -//! @SYMAPI RWsSession -//! @SYMAuthor Felix Chen -//! @SYMCreationDate 24/05/2007 -//! @SYMTestCaseDesc Adds a message to the window server debug log if one is currently in operation -//! Uses API elements: Connect(), LogMessage() and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. use LogMessage() to add a log message -//! 4. Close RWsSession object by using Close() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults The message is added to the window server debug log -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws LogMessage GRAPHICS-WSERV-Session-PublicApi-0081-0001-LogMessage_command004 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0081 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0082 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0082 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc GetColorModeList(TInt aScreenNumber, CArrayFixFlat< TInt > *aModeList) const:Gets the list of available colour modes on a particular screen -//! Uses API elements: Connect() ,GetColorModeList() and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. use GetColorModeList() to get the list of colour modes -//! 4. Close RWsSession object using Close() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults restore all mapping hotkey -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws NumberOfScreens GRAPHICS-WSERV-Session-PublicApi-0082-0001-NumberOfScreens_command004 - COMMAND ws GetFocusScreen GRAPHICS-WSERV-Session-PublicApi-0082-0001-GetFocusScreen_command005 - COMMAND ws GetColorModeList GRAPHICS-WSERV-Session-PublicApi-0082-0001-GetColorModeList_command006 - COMMAND ws GetColorModeList GRAPHICS-WSERV-Session-PublicApi-0082-0001-GetColorModeList_command007 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0082 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0083 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0083 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc GetColorModeList(TInt aScreenNumber, CArrayFixFlat< TInt > *aModeList) const:Gets the list of available colour modes on a particular screen -//! Uses API elements: Connect() ,GetColorModeList() and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. use GetColorModeList() to get the list of colour modes -//! 4. Close RWsSession object using Close() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults restore all mapping hotkey -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws GetColorModeList GRAPHICS-WSERV-Session-PublicApi-0083-0001-GetColorModeList_command004 - COMMAND ws GetColorModeList GRAPHICS-WSERV-Session-PublicApi-0083-0001-GetColorModeList_command005 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0083 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0085 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0085 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc PurgePointerEvents():Removes all pointer events waiting to be delivered to this session -//! Uses API elements: Connect() ,PurgePointerEvents() and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. use PurgePointerEvents() to remove all pointer events waiting -//! 4. Close RWsSession object using Close() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults all pointer events waiting remove -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws PurgePointerEvents - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0085 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0086 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0086 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc GetDefModeMaxNumColors(TInt aScreenNumber, TInt &aColor, TInt &aGray):Gets the number of colours available in the richest supported colour mode on the specified screen. -//! Uses API elements: Connect() ,PurgePointerEvents() and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. use GetDefModeMaxNumColors() to get the number of colours available in the richest supported colour mode -//! 4. Close RWsSession object using Close() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults return the default display mode -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws GetDefModeMaxNumColors GRAPHICS-WSERV-Session-PublicApi-0086-0001-GetDefModeMaxNumColors_command004 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0086 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0087 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0087 -//! @SYMAPI RWsSession -//! @SYMAuthor Felix Chen -//! @SYMCreationDate 10/04/2007 -//! @SYMTestCaseDesc Sets the mode used to control process priorities to the desired mode -//! Uses API elements: Connect(), ComputeMode() and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. use ComputeMode() to set the mode used to control process priorities -//! 4. Close RWsSession object by using Close() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults Sets the mode used to control process priorities to the desired mode -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws ComputeMode GRAPHICS-WSERV-Session-PublicApi-0087-0001-ComputeMode_command004 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0087 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0088 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0088 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc FindWindowGroupIdentifier(TInt aPreviousIdentifier, TThreadId aThreadId):Gets the identifiers of window groups belonging to a client -//! Uses API elements: Connect() ,WindowGroupList(),GetWindowGroupHandle(),FindWindowGroupIdentifier() and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. use NumWindowGroups() to get the total number of window groups currently -//! 4. use WindowGroupList() to Lists the number of window groups of a given window group priority -//! 5. use GetWindowGroupHandle() to get the handle of the window specified by the window group identifier -//! 6. use FindWindowGroupIdentifier() to get the id of window group belonging to a client -//! 7. Close RWsSession object using Close() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults return next window group identifier after the one identified by aPreviousIdentifier -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Session-PublicApi-0088-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-Session-PublicApi-0088-0001-Construct_command004 - COMMAND ws NumWindowGroups - COMMAND ws WindowGroupList GRAPHICS-WSERV-Session-PublicApi-0088-0001-WindowGroupList_command006 - COMMAND ws GetWindowGroupHandle GRAPHICS-WSERV-Session-PublicApi-0088-0001-GetWindowGroupHandle_command007 - COMMAND ws FindWindowGroupIdentifier GRAPHICS-WSERV-Session-PublicApi-0088-0001-FindWindowGroupIdentifier_command008 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0088 - - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0090 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0090 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc SetPointerCursorArea(TInt aScreenSizeMode, const TRect &aArea): set the area of the screen in which the virtual cursor can be used while in relative mouse mode, for a specified screen display mode -//! PointerCursorArea(TInt aScreenSizeMode) const:get the current value of the shadow vector -//! Uses API elements: RWsSession::Connnect & SetPointerCursorArea & PointerCursorArea & Close -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Uses TRect's object to set the horizontal co-ordinate of the left hand side of the rectangle to -90, -//! the vertical co-ordinate of the top of the rectangle to -51,the horizontal co-ordinate of the right hand side of the rectangle to 696 and the vertical co-ordinate of the bottom of the rectangle to 312 -//! 3. Uses TRect's object as parameter for SetPointerCursorArea to set the area of the screen in which the virtual cursor can be used while in relative mouse mode, for a specified screen display mode -//! 4. Set the screen mode to which the new area applies to 0 -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults The test result !PanicCode=54 !PanicString=WSERV occure and is catched -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws SetPointerCursorArea GRAPHICS-WSERV-Session-PublicApi-0090-0001-SetPointerCursorArea_command003 - COMMAND ws PointerCursorArea GRAPHICS-WSERV-Session-PublicApi-0090-0001-PointerCursorArea_command004 - END_TEST_BLOCK !PanicCode=54 !PanicString=WSERV - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0090 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0091 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0091 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc RequestOffEvents(TBool aOn, RWindowTreeNode *aWin=0):Requests the window server to send OFF events to a window -//! Uses API elements: Connect() ,RequestOffEvents()and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. new and Construct a RWindowGroup within the RWsSession -//! 4. use SetBufferSizeL() to set the buffer size as -1 -//! 5. Execute RequestOffEvents() with FALSE to make WSERV switch back to powering down the machine itself -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults The test result !PanicCode=54 !PanicString=WSERV occure and is catched -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Session-PublicApi-0091-0001-new_command01 - COMMAND wingrp Construct GRAPHICS-WSERV-Session-PublicApi-0091-0001-Construct_command02 - COMMAND ws SetBufferSizeL GRAPHICS-WSERV-Session-PublicApi-0091-0001-SetBufferSizeL_command003 - COMMAND ws RequestOffEvents GRAPHICS-WSERV-Session-PublicApi-0091-0001-RequestOffEvents_command004 - END_TEST_BLOCK !PanicCode=51 !PanicString=WSERV - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0091 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0092 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0092 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc RestoreDefaultHotKey(THotKey aType):Restores the default mapping for a hot key -//! Uses API elements: Connect() ,RestoreDefaultHotKey()and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. use RestoreDefaultHotKey() to restore the default mapping for hot key -1 -//! 4. Close RWsSession object using Close() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults RestoreDefaultHotKey to fail with error KErrArgument(-6) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND !Error=-6 ws RestoreDefaultHotKey GRAPHICS-WSERV-Session-PublicApi-0092-0001-RestoreDefaultHotKey_command004 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0092 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0093 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0093 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc SetAutoFlush(TBool aState): set auto-flush state of a RWsSession -//! Uses API elements: RWsSession::Connnect & SetAutoFlush & Close -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. SetAutoFlush to FALSE, and check the return value should be TRUE (previous value) -//! 3. Close the RWsSession -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults Set auto-flush state without causing panic, and the return value is its previous value as expected if provided -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws SetAutoFlush GRAPHICS-WSERV-Session-PublicApi-0093-0001-SetAutoFlush_command003 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0093 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0094 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0094 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 1/08/2006 -//! @SYMTestCaseDesc Set up and get the background color -//! Uses API elements: Connect() ,SetBufferSizeL(),SetBackgroundColor(),GetBackgroundColor()and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. use SetBufferSizeL() to set the buffer size as 131072 -//! 3. use SetMaxBufferSizeL() to set the maximum as 635 -//! 4. set the background color as Red(-1),Green(-1)and Blue(-1) -//! 5. Close RWsSession object using Close() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults Set auto-flush state without causing panic, and the return the value of background color as expected -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws SetBufferSizeL GRAPHICS-WSERV-Session-PublicApi-0094-0001-SetBufferSizeL_command003 - COMMAND ws SetMaxBufferSizeL GRAPHICS-WSERV-Session-PublicApi-0094-0001-SetMaxBufferSizeL_command004 - COMMAND ws SetBackgroundColor GRAPHICS-WSERV-Session-PublicApi-0094-0001-SetBackgroundColor_command005 - - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0094 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0096 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0096 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc SetClientCursorMode(TPointerCursorMode aMode): set the current mode for the pointer cursor -//! Uses API elements: RWsSession::Connnect & SetClientCursorMode & Close -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Uses TPointerCursorMode's object to define the current cursor mode as EPointerCursorNormal -//! 3. Uses TPointerCursorMode's object as parameter for SetClientCursorMode to set the current mode for the pointer cursor -//! 4. Close the RWsSession -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults the current mode for the pointer cursor to be set as the expected value -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws SetClientCursorMode GRAPHICS-WSERV-Session-PublicApi-0096-0001-SetClientCursorMode_command003 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0096 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0097 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0097 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 20/09/2006 -//! @SYMTestCaseDesc SetCustomTextCursor(TInt aIdentifier, const TArray< TSpriteMember > &aSpriteMemberArray, TUint aSpriteFlags, TCustomTextCursorAlignment aAlignment):adds a custom text cursor to the server's list of cursors -//! Uses API elements: RWsSession::Connect & Close, CFbsBitmap::Load -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. new and Load() a CFbsBitmap to construct custom text cursor -//! 4. use SetCustomTextCursor() to add custom text cursor of identifier -1, flag=ESpriteNoShadows, alignment=ECustomTextCursorAlignTop -//! with one SpriteMember of the specified bitmap, drawmode=EDrawModeAND, and offset (-1,-1) -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults call SetCustomTextCursor() without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CFbsBitmap fbsbmp - COMMAND ws new - COMMAND ws Connect - COMMAND fbsbmp new - COMMAND fbsbmp Load GRAPHICS-WSERV-Session-PublicApi-0097-0001-Load_command001 - COMMAND ws SetCustomTextCursor GRAPHICS-WSERV-Session-PublicApi-0097-0001-SetCustomTextCursor_command002 - COMMAND fbsbmp ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0097 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0098 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0098 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc SetDefaultFadingParameters(TUint8 aBlackMap, TUint8 aWhiteMap): set the default fading parameters -//! SetSystemFaded(TBool aFaded):all windows in the system as faded or unfaded, using the default fading parameters -//! Uses API elements: RWsSession::Connnect & SetDefaultFadingParameters & SetSystemFaded & Close -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Uses SetDefaultFadingParameters to set the mapping values of black map fading parameter to -1 -//! 3. Uses SetDefaultFadingParameters to set the mapping values of white map fading parameter to -255 -//! 4. Uses SetSystemFaded to all windows in the system as faded or unfaded, using the default fading parameters -//! 5. Close the RWsSession -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults the mapping values of black map and white fading parameter to be set -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws SetDefaultFadingParameters GRAPHICS-WSERV-Session-PublicApi-0098-0001-SetDefaultFadingParameters_command003 - COMMAND ws SetSystemFaded GRAPHICS-WSERV-Session-PublicApi-0098-0001-SetSystemFaded_command004 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0098 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0099 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0099 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 18/12/2006 -//! @SYMTestCaseDesc Close():Closes the window server session -//! Uses API elements: RWsSession::Connect & Close -//! @SYMTestActions Create and connect a RWsSession using pre-constructed file server -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults Connect() method returns KErrNone without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws SetDoubleClick GRAPHICS-WSERV-Session-PublicApi-0099-0001-SetDoubleClick_command003 - COMMAND ws GetDoubleClickSettings GRAPHICS-WSERV-Session-PublicApi-0099-0001-GetDoubleClickSettings_command004 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0099 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0100 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0100 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc SetHotKey(THotKey aType,TUint aKeyCode,TUint aModifierMask,TUint aModifier):sets the hot keys -//! Uses API elements: Connect() ,SetHotKey()and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. use SetHotKey() to set the hot key to EHotKeyIncBrightness and key code to EKeyLeftAlt -//! 4. Close RWsSession object using Close() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults hot key and key code can be set -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws SetHotKey GRAPHICS-WSERV-Session-PublicApi-0100-0001-SetHotKey_command004 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0100 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0102 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0102 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc RestoreDefaultHotKey(TEventModifier aModifier, TModifierState aState):sets the state of the modifier keys -//! Uses API elements: Connect() ,SetModifierState()and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. use SetModifierState() to set the state of the modifier keys -//! 4. Close RWsSession object using Close() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults restore all mapping hotkey -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws SetModifierState GRAPHICS-WSERV-Session-PublicApi-0102-0001-SetModifierState_command004 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0102 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0103 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0103 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc SetPointerCursorArea(const TPoint &aVector): set the shadow vector -//! PointerCursorArea():get the current value of the shadow vector -//! Uses API elements: RWsSession::Connnect & SetPointerCursorArea & PointerCursorArea & Close -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Uses TRect's object to set the horizontal co-ordinate of the left hand side of the rectangle to -90, -//! the vertical co-ordinate of the top of the rectangle to -51,the horizontal co-ordinate of the right hand side of the rectangle to -696 and the vertical co-ordinate of the bottom of the rectangle to -312 -//! 3. Uses TRect's object as parameter for SetPointerCursorArea to set the area of the screen in which the virtual cursor can be used while in relative mouse mode, for the first screen display mode -//! 4. Uses SetShadowVector to set the mapping values of white map fading parameter to 255 -//! 5. Uses PointerCursorArea to set ETrue to fade all windows -//! 6. Uses ShadowVector to set the mapping values of black map fading parameter to 10 -//! 7. Close the RWsSession -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults the new shadow vector to be set and get the expected value -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws SetPointerCursorArea GRAPHICS-WSERV-Session-PublicApi-0103-0001-SetPointerCursorArea_command003 - COMMAND ws PointerCursorArea GRAPHICS-WSERV-Session-PublicApi-0103-0001-PointerCursorArea_command004 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0103 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0104 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0104 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc SetPointerCursorArea(TInt aScreenSizeMode, const TRect &aArea): set the area of the screen in which the virtual cursor can be used while in relative mouse mode, for a specified screen display mode -//! PointerCursorArea(TInt aScreenSizeMode) const:get the current value of the shadow vector -//! Uses API elements: RWsSession::Connnect & SetPointerCursorArea & PointerCursorArea & Close -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Uses TRect's object to set the horizontal co-ordinate of the left hand side of the rectangle to -90, -//! the vertical co-ordinate of the top of the rectangle to -51,the horizontal co-ordinate of the right hand side of the rectangle to -696 and the vertical co-ordinate of the bottom of the rectangle to -312 -//! 3. Uses TRect's object as parameter for SetPointerCursorArea to set the area of the screen in which the virtual cursor can be used while in relative mouse mode, for a specified screen display mode -//! 4. Set the screen mode to which the new area applies to -1 -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults The !PanicCode=54 !PanicString=WSERV occur and is catched -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws SetPointerCursorArea GRAPHICS-WSERV-Session-PublicApi-0104-0001-SetPointerCursorArea_command003 - COMMAND ws PointerCursorArea GRAPHICS-WSERV-Session-PublicApi-0104-0001-PointerCursorArea_command004 - END_TEST_BLOCK !PanicCode=54 !PanicString=WSERV - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0104 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0105 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0105 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc SetPointerCursorMode(TPointerCursorMode aMode): set the current mode for the pointer cursor -//! PointerCursorMode(TInt aScreenSizeMode) const:get the current mode for the pointer cursor -//! Uses API elements: RWsSession::Connnect & SetPointerCursorMode & PointerCursorMode & Close -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Uses TPointerCursorMode's object to define the current cursor mode as EPointerCursorNone -//! 3. Uses TPointerCursorMode's object as parameter for SetPointerCursorMode to set the current mode for the pointer cursor -//! 4. Uses PointerCursorMode to get the current mode for the pointer cursor -//! 5. Close the RWsSession -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults the current mode for the pointer cursor to be set as the expected value -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Session-PublicApi-0105-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-Session-PublicApi-0105-0001-Construct_command004 - COMMAND ws SetPointerCursorMode GRAPHICS-WSERV-Session-PublicApi-0105-0001-SetPointerCursorMode_command005 - COMMAND ws PointerCursorMode GRAPHICS-WSERV-Session-PublicApi-0105-0001-PointerCursorMode_command006 - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0105 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0106 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0106 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc SetPointerCursorPosition(const TPoint &aPosition): set the pointer cursor position -//! Uses API elements: RWsSession::Connnect & SetPointerCursorPosition & Close -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Uses TPoint's object to define the pointer cursor X position as -1 and Y position as -1 -//! 3. Uses PointerCursorPosition() to get the pointer cursor position -//! 4. Close the RWsSession -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults the current mode for the pointer cursor to be set as the expected value -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws SetPointerCursorPosition GRAPHICS-WSERV-Session-PublicApi-0106-0001-SetPointerCursorPosition_command003 - COMMAND ws PointerCursorPosition GRAPHICS-WSERV-Session-PublicApi-0106-0001-PointerCursorPosition_command004 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0106 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0109 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0109 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc SetSystemFaded(TBool aFaded, TUint8 aBlackMap, TUint8 aWhiteMap):set all windows in the system as faded or unfaded, overriding the default fading parameters -//! Uses API elements: RWsSession::Connnect &SetSystemFaded & Close -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Uses SetSystemFaded to set EFalse to fade all windows -//! 3. Uses SetSystemFaded to set the mapping values of black map fading parameter to -10 -//! 4. Uses SetSystemFaded to set the mapping values of white map fading parameter to -244 -//! 5. Close the RWsSession -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults the shadow vector to be set -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND ws SetSystemFaded GRAPHICS-WSERV-Session-PublicApi-0109-0001-SetSystemFaded_command003 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0109 - -START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0111 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0111 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 1/08/2006 -//! @SYMTestCaseDesc Gets a list of identifiers of all window groups in all window server sessions -//! Uses API elements: Connect(),FindWindowGroupIdentifier(),and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. use FindWindowGroupIdentifier() to get all window groups whose names match a given string -//! 4. use '*GVNKWTX*' as match string -//! 5. Close RWsSession object using Close() -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults FindWindowGroupIdentifier return -1(KErrNotFound). -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini - CREATE_OBJECT RWsSession ws - COMMAND ws new - COMMAND ws Connect - COMMAND !Error=-1 ws FindWindowGroupIdentifier GRAPHICS-WSERV-Session-PublicApi-0111-0001-FindWindowGroupIdentifier_command004 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0111 - -//! START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0114 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0114 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc NumWindowGroups(TInt aScreenNumber, TInt aPriority):gets the number of window groups of a given window group priority running on a specified screen -//! Uses API elements: Connect() ,NumWindowGroups()and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. use NumWindowGroups() to get the number of window groups with negative number of a given window group priority running on a specified screen with negative screen number -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults The !PanicCode=65 !PanicString=WSERV occur and catch it -//! @SYMTestType CIT -//! START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini -//! CREATE_OBJECT RWsSession ws -//! COMMAND ws new -//! COMMAND ws Connect -//! COMMAND ws NumWindowGroups GRAPHICS-WSERV-Session-PublicApi-0114-0001-NumWindowGroups_command003 -//! END_TEST_BLOCK !PanicCode=65 !PanicString=WSERV -//! RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -//! END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0114 - -//! START_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0115 -//! @SYMTestCaseID GRAPHICS-WSERV-Session-PublicApi-0115 -//! @SYMAPI RWsSession -//! @SYMAuthor Sunny Yeh -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc WindowGroupList(CArrayFixFlat< TInt > *aWindowList, TInt aScreenNumber, TInt aPriority=EAllPriorities):Lists the number of window groups of a given window group priority running on a specified screen -//! Uses API elements: Connect() ,WindowGroupList()and Close() -//! @SYMTestActions 1. use new() to create a RWsSession object -//! 2. use Connect() to make a connection with window server -//! 3. use NumWindowGroups() to get the total number of window groups currently -//! 4. use WindowGroupList() to get the number of window groups of a given window group priority and running on a specified screen with negative screen number -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults The !PanicCode=65 !PanicString=WSERV occur and catch it -//! @SYMTestType CIT -//! START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Session-PublicApi.ini -//! CREATE_OBJECT RWsSession ws -//! COMMAND ws new -//! COMMAND ws Connect -//! COMMAND ws NumWindowGroups -//! COMMAND ws WindowGroupList GRAPHICS-WSERV-Session-PublicApi-0115-0001-WindowGroupList_command005 -//! END_TEST_BLOCK !PanicCode=65 !PanicString=WSERV -//! RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -//! END_TESTCASE GRAPHICS-WSERV-Session-PublicApi-0115 diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-SoundPlugin-PublicAPI.script --- a/graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-SoundPlugin-PublicAPI.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,682 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// -//! @file -//! @SYMTestSuiteName GRAPHICS-WSERV-SoundPlugin-PublicApi -//! @SYMScriptTestEnvironment This test script requires a basic ROM. - -///////////////////////////////////////////////////////////////////// -// GRAPHICS-WSERV-SoundPlugin-PublicAPI.script -// -// Tests all public elements of the RSoundPlugIn -// classes as a means of confidence that the APIs work as expected. -// -// The purpose is to provide a regression test suite of PublishedAll APIs for RSoundPlugIn -// The tests are fully automated. -///////////////////////////////////////////////////////////////////// - -LOAD_SUITE T_GraphicsWservAPI -DELAY 1000 - -//! @file -//! @SYMTestSuiteName GRAPHICS-WSERV-SoundPlugin-PublicAPI -//! @SYMScriptTestEnvironment This test script requires a basic ROM. - -///////////////////////////////////////////////////////////////////// -// RSoundPlugIn class -///////////////////////////////////////////////////////////////////// - - -START_TESTCASE GRAPHICS-WSERV-SoundPlugin-PublicAPI-0001 -//! @SYMTestCaseID GRAPHICS-WSERV-SoundPlugin-PublicAPI-0001 -//! @SYMAPI RSoundPlugIn::RSoundPlugIn(); -//! RSoundPlugIn::Close() -//! @SYMAuthor Kevin Zeng, Ray Liang, Wekey Weng. -//! @SYMCreationDate 31/10/2007 -//! @SYMTestCaseDesc Create a RSoundPlugIn object by C++ Default constructor and end with Close -//! @SYMTestActions execute new() a RSoundPlugIn to create the object and Close. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults RSoundPlugin object was created and Close without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI c:\graphics\GRAPHICS-WSERV-SoundPlugin-PublicAPI.ini - CREATE_OBJECT RSoundPlugIn soundPlugIn - COMMAND soundPlugIn new - COMMAND soundPlugIn Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-SoundPlugin-PublicAPI-0001 - -START_TESTCASE GRAPHICS-WSERV-SoundPlugin-PublicAPI-0002 -//! @SYMTestCaseID GRAPHICS-WSERV-SoundPlugin-PublicAPI-0002 -//! @SYMAPI RSoundPlugIn::RSoundPlugIn(); -//! RSoundPlugIn::Destroy() -//! @SYMAuthor Kevin Zeng, Ray Liang, Wekey Weng. -//! @SYMCreationDate 31/10/2007 -//! @SYMTestCaseDesc Create a RSoundPlugIn object by C++ Default constructor and end with Destroy() -//! @SYMTestActions execute new() a RSoundPlugIn to create the object and Destroy. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults RSoundPlugin object was created and Destroy without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI c:\graphics\GRAPHICS-WSERV-SoundPlugin-PublicAPI.ini - CREATE_OBJECT RSoundPlugIn soundPlugIn - COMMAND soundPlugIn new - COMMAND soundPlugIn Destroy - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-SoundPlugin-PublicAPI-0002 - -START_TESTCASE GRAPHICS-WSERV-SoundPlugin-PublicAPI-0004 -//! @SYMTestCaseID GRAPHICS-WSERV-SoundPlugin-PublicAPI-0004 -//! @SYMAPI RSoundPlugIn::RSoundPlugIn(RWsSession {ref}); -//! RSoundPlugIn::Close() -//! @SYMAuthor Kevin Zeng, Ray Liang, Wekey Weng. -//! @SYMCreationDate 31/10/2007 -//! @SYMTestCaseDesc Create a RSoundPlugin object within the specified RWsSession and end with Close. -//! @SYMTestActions 1.Create and connect a RWsSession, and within the RWsSession -//! 2.Create and construct a RSoundPlugin -//! 3.Close all used objects -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults RSoubdPlugin object was created without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI c:\graphics\GRAPHICS-WSERV-SoundPlugin-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RSoundPlugIn soundPlugIn - COMMAND ws new - COMMAND ws Connect - COMMAND soundPlugIn new GRAPHICS-WSERV-SoundPlugin-PublicAPI-0004-001-new_Command01 - COMMAND soundPlugIn Construct - COMMAND soundPlugIn Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-SoundPlugin-PublicAPI-0004 - -START_TESTCASE GRAPHICS-WSERV-SoundPlugin-PublicAPI-0005 -//! @SYMTestCaseID GRAPHICS-WSERV-SoundPlugin-PublicAPI-0005 -//! @SYMAPI RSoundPlugIn::RSoundPlugIn(RWsSession {ref}); -//! RSoundPlugIn::Destroy() -//! @SYMAuthor Kevin Zeng, Ray Liang, Wekey Weng. -//! @SYMCreationDate 31/10/2007 -//! @SYMTestCaseDesc Create a RSoundPlugin object within the specified RWsSession and end with Destroy. -//! @SYMTestActions 1. Create and connect a RWsSession, and within the RWsSession -//! 2. Create and construct a RSoundPlugin -//! 3. Destroy constructed RSoundPlugin -//! 4. Close RWsSession -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Destroy with no panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI c:\graphics\GRAPHICS-WSERV-SoundPlugin-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RSoundPlugIn soundPlugIn - COMMAND ws new - COMMAND ws Connect - COMMAND soundPlugIn new GRAPHICS-WSERV-SoundPlugin-PublicAPI-0005-001-new_Command01 - COMMAND soundPlugIn Construct - COMMAND soundPlugIn Destroy - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-SoundPlugin-PublicAPI-0005 - - - -START_TESTCASE GRAPHICS-WSERV-SoundPlugin-PublicAPI-0007 -//! @SYMTestCaseID GRAPHICS-WSERV-SoundPlugin-PublicAPI-0007 -//! @SYMAPI RSoundPlugIn::Load(const TDesC {ref}); -//! RSoundPlugIn::IsLoaded(TBool {ref}) -//! @SYMAuthor Kevin Zeng, Ray Liang, Wekey Weng. -//! @SYMCreationDate 31/10/2007 -//! @SYMTestCaseDesc Load the plugin, then check wether plugin is loaded. -//! @SYMTestActions 1. Create and connect a RWsSession, and within the RWsSession -//! 2. Create and construct a RSoundPlugin -//! 3. Load constructed RSoundPlugin by using Load() -//! 4. Check if plugin is loaded successfully by using IsLoaded() -//! 5. Destroy the loaded plugin by using Destroy() -//! 4. Close RWsSession -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1.Load the plugin without causing panic -//! 2.Verify the plugin is loaded successfully -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI c:\graphics\GRAPHICS-WSERV-SoundPlugin-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RSoundPlugIn soundPlugIn - COMMAND ws new - COMMAND ws Connect - COMMAND soundPlugIn new GRAPHICS-WSERV-SoundPlugin-PublicAPI-0007-001-new_Command01 - COMMAND soundPlugIn Construct GRAPHICS-WSERV-SoundPlugin-PublicAPI-0007-001-Construct_Command02 - COMMAND soundPlugIn Load GRAPHICS-WSERV-SoundPlugin-PublicAPI-0007-001-Load_Command03 - COMMAND soundPlugIn IsLoaded GRAPHICS-WSERV-SoundPlugin-PublicAPI-0007-001-IsLoaded_Command04 - COMMAND soundPlugIn Destroy - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-SoundPlugin-PublicAPI-0007 - -START_TESTCASE GRAPHICS-WSERV-SoundPlugin-PublicAPI-0008 -//! @SYMTestCaseID GRAPHICS-WSERV-SoundPlugin-PublicAPI-0008 -//! @SYMAPI RSoundPlugIn::SetKeyClick(TBool); -//! RSoundPlugIn::KeyClickEnabled() -//! @SYMAuthor Kevin Zeng, Ray Liang, Wekey Weng. -//! @SYMCreationDate 31/10/2007 -//! @SYMTestCaseDesc Check SetKeyClick() & KeyClickEnabled(). -//! @SYMTestActions 1. Create and connect a RWsSession, and within the RWsSession -//! 2. Create and construct a RSoundPlugin -//! 3. Enable key click by using SetKeyClick() -//! 4. Check if the key click is enabled by using KeyClickEnabled() -//! 5. Destroy the plugin and close window session -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. SetKeyClick() to ETrue without causing panic -//! 2. Verify key click is enabled by KeyClickEnabled() returns ETrue -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI c:\graphics\GRAPHICS-WSERV-SoundPlugin-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RSoundPlugIn soundPlugIn - COMMAND ws new - COMMAND ws Connect - COMMAND soundPlugIn new GRAPHICS-WSERV-SoundPlugin-PublicAPI-0008-001-new_Command01 - COMMAND soundPlugIn Construct - COMMAND soundPlugIn SetKeyClick GRAPHICS-WSERV-SoundPlugin-PublicAPI-0008-001-SetKeyClick_Command03 - COMMAND soundPlugIn KeyClickEnabled GRAPHICS-WSERV-SoundPlugin-PublicAPI-0008-001-KeyClickEnabled_Command04 - COMMAND soundPlugIn Destroy - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-SoundPlugin-PublicAPI-0008 - -START_TESTCASE GRAPHICS-WSERV-SoundPlugin-PublicAPI-0009 -//! @SYMTestCaseID GRAPHICS-WSERV-SoundPlugin-PublicAPI-0009 -//! @SYMAPI RSoundPlugIn::SetKeyClick(TBool); -//! RSoundPlugIn::KeyClickEnabled() -//! @SYMAuthor Kevin Zeng, Ray Liang, Wekey Weng. -//! @SYMCreationDate 31/10/2007 -//! @SYMTestCaseDesc Check SetKeyClick() & KeyClickEnabled(). -//! @SYMTestActions 1. Create and connect a RWsSession, and within the RWsSession -//! 2. Create and construct a RSoundPlugin -//! 3. Disable key click by using SetKeyClick() -//! 4. Check if the key click is diabled by using KeyClickEnabled() -//! 5. Destroy the plugin and close window session -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. SetKeyClick() to EFalse without causing panic -//! 2. Verify key click is diabled by KeyClickEnabled() returns EFalse -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI c:\graphics\GRAPHICS-WSERV-SoundPlugin-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RSoundPlugIn soundPlugIn - COMMAND ws new - COMMAND ws Connect - COMMAND soundPlugIn new GRAPHICS-WSERV-SoundPlugin-PublicAPI-0009-001-new_Command01 - COMMAND soundPlugIn Construct - COMMAND soundPlugIn SetKeyClick GRAPHICS-WSERV-SoundPlugin-PublicAPI-0009-001-SetKeyClick_Command03 - COMMAND soundPlugIn KeyClickEnabled GRAPHICS-WSERV-SoundPlugin-PublicAPI-0009-001-KeyClickEnabled_Command04 - COMMAND soundPlugIn Destroy - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-SoundPlugin-PublicAPI-0009 - -START_TESTCASE GRAPHICS-WSERV-SoundPlugin-PublicAPI-0010 -//! @SYMTestCaseID GRAPHICS-WSERV-SoundPlugin-PublicAPI-0010 -//! @SYMAPI RSoundPlugIn::SetPenClick(TBool); -//! RSoundPlugIn::PenClickEnabled() -//! @SYMAuthor Kevin Zeng, Ray Liang, Wekey Weng. -//! @SYMCreationDate 31/10/2007 -//! @SYMTestCaseDesc SetPenClick() & PenClickEnabled(). -//! @SYMTestActions 1. Create and connect a RWsSession, and within the RWsSession -//! 2. Create and construct a RSoundPlugin -//! 3. Enable pen click by using SetPenClick() -//! 4. Check if the pen click is enabled by using PenClickEnabled() -//! 5. Destroy the plugin and close window session -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. SetPenClick() to ETrue without causing panic -//! 2. Verify key click is enabled by PenClickEnabled() returns ETrue -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI c:\graphics\GRAPHICS-WSERV-SoundPlugin-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RSoundPlugIn soundPlugIn - COMMAND ws new - COMMAND ws Connect - COMMAND soundPlugIn new GRAPHICS-WSERV-SoundPlugin-PublicAPI-0010-001-new_Command01 - COMMAND soundPlugIn Construct - COMMAND soundPlugIn SetPenClick GRAPHICS-WSERV-SoundPlugin-PublicAPI-0010-001-SetPenClick_Command03 - COMMAND soundPlugIn PenClickEnabled GRAPHICS-WSERV-SoundPlugin-PublicAPI-0010-001-PenClickEnabled_Command04 - COMMAND soundPlugIn Destroy - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-SoundPlugin-PublicAPI-0010 - -START_TESTCASE GRAPHICS-WSERV-SoundPlugin-PublicAPI-0011 -//! @SYMTestCaseID GRAPHICS-WSERV-SoundPlugin-PublicAPI-0011 -//! @SYMAPI RSoundPlugIn::SetPenClick(TBool); -//! RSoundPlugIn::PenClickEnabled() -//! @SYMAuthor Kevin Zeng, Ray Liang, Wekey Weng. -//! @SYMCreationDate 31/10/2007 -//! @SYMTestCaseDesc Check SetPenClick() & PenClickEnabled(). -//! @SYMTestActions 1. Create and connect a RWsSession, and within the RWsSession -//! 2. Create and construct a RSoundPlugin -//! 3. Enable pen click by using SetPenClick() -//! 4. Check if the pen click is enabled by using PenClickEnabled() -//! 5. Destroy the plugin and close window session -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. SetKeyClick() to EFalse -//! 2. Verify key click is diabled by KeyClickEnabled() returns EFalse -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI c:\graphics\GRAPHICS-WSERV-SoundPlugin-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RSoundPlugIn soundPlugIn - COMMAND ws new - COMMAND ws Connect - COMMAND soundPlugIn new GRAPHICS-WSERV-SoundPlugin-PublicAPI-0011-001-new_Command01 - COMMAND soundPlugIn Construct - COMMAND soundPlugIn SetPenClick GRAPHICS-WSERV-SoundPlugin-PublicAPI-0011-001-SetPenClick_Command03 - COMMAND soundPlugIn PenClickEnabled GRAPHICS-WSERV-SoundPlugin-PublicAPI-0011-001-PenClickEnabled_Command04 - COMMAND soundPlugIn Destroy - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-SoundPlugin-PublicAPI-0011 - -START_TESTCASE GRAPHICS-WSERV-SoundPlugin-PublicAPI-0012 -//! @SYMTestCaseID GRAPHICS-WSERV-SoundPlugin-PublicAPI-0012 -//! @SYMAPI RSoundPlugIn::Unload() -//! @SYMAuthor Kevin Zeng, Ray Liang, Wekey Weng. -//! @SYMCreationDate 31/10/2007 -//! @SYMTestCaseDesc Load a pulgin and then unload it. -//! @SYMTestActions 1. Create and connect a RWsSession, and within the RWsSession -//! 2. Create and construct a RSoundPlugin -//! 3. Load the plugin -//! 4. Unload the plugin -//! 5. Check if the plugin is unloaded by using IsLoaded() -//! 6. Destroy the plugin and close window session -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Load and Unload retrived with no errors -//! 2. IsLoaded() returns EFalse after Unload the plugin //dwzhang -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI c:\graphics\GRAPHICS-WSERV-SoundPlugin-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RSoundPlugIn soundPlugIn - COMMAND ws new - COMMAND ws Connect - COMMAND soundPlugIn new GRAPHICS-WSERV-SoundPlugin-PublicAPI-0012-001-new_Command01 - COMMAND soundPlugIn Construct GRAPHICS-WSERV-SoundPlugin-PublicAPI-0012-001-Construct_Command02 - COMMAND soundPlugIn Load GRAPHICS-WSERV-SoundPlugin-PublicAPI-0012-001-Load_Command03 - COMMAND soundPlugIn Unload - COMMAND soundPlugIn Destroy - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-SoundPlugin-PublicAPI-0012 - -START_TESTCASE GRAPHICS-WSERV-SoundPlugin-PublicAPI-0013 -//! @SYMTestCaseID GRAPHICS-WSERV-SoundPlugin-PublicAPI-0013 -//! @SYMAPI RSoundPlugIn::CommandReply(TInt, const TPtrC8 {ref}) -//! @SYMAuthor Kevin Zeng -//! @SYMCreationDate 29/12/2007 -//! @SYMTestCaseDesc Try to Construct without a UID, then load the default dll, call CommandReply and unload it. -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a RSoundPlugIn attached to RWsSession -//! 3. Complete the construction without UID -//! 4. Load the defaut plugin dll.(keyclickref.dll) and verifty. -//! 5. Send command and get reply. -//! 6. Unload the plugin. -//! 7. Verify it is unloaded. -//! 8. Destruct and close all objects used. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Construct and Load complete successfully. -//! 2. Because Construct without UID, CommandReply returns ESoundWrongPlugIn(-2147483648) and no panic. -//! 3. Unload Completes successfully. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI c:\graphics\GRAPHICS-WSERV-SoundPlugin-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RSoundPlugIn soundPlugIn - COMMAND ws new - COMMAND ws Connect - COMMAND soundPlugIn new GRAPHICS-WSERV-SoundPlugin-PublicAPI-0013-001-new_Command01 - COMMAND soundPlugIn Construct - COMMAND soundPlugIn Load GRAPHICS-WSERV-SoundPlugin-PublicAPI-0013-001-Load_Command03 - COMMAND soundPlugIn IsLoaded GRAPHICS-WSERV-SoundPlugin-PublicAPI-0013-001-IsLoaded_Command04 - COMMAND !Error=-2147483648 soundPlugIn CommandReply GRAPHICS-WSERV-SoundPlugin-PublicAPI-0013-001-CommandReply_Command05 - COMMAND soundPlugIn Unload - COMMAND soundPlugIn IsLoaded GRAPHICS-WSERV-SoundPlugin-PublicAPI-0013-001-IsLoaded_Command07 - COMMAND soundPlugIn Destroy - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-SoundPlugin-PublicAPI-0013 - -START_TESTCASE GRAPHICS-WSERV-SoundPlugin-PublicAPI-0014 -//! @SYMTestCaseID GRAPHICS-WSERV-SoundPlugin-PublicAPI-0014 -//! @SYMAPI RSoundPlugIn::SetKeyClick(TBool); -//! RSoundPlugIn::SetPenClick(TBool); -//! RSoundPlugIn::KeyClickEnabled(); -//! RSoundPlugIn::PenClilckEnabled() -//! @SYMAuthor Dorothy Zhang -//! @SYMCreationDate 02/01/2008 -//! @SYMTestCaseDesc SetKeyClick and SetPenClick and then check the value after unload and re-load. -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a RSoundPlugIn attached to RWsSession -//! 3. Complete the construction without UID -//! 4. Load the defaut plugin dll.(keyclickref.dll) and verifty. -//! 5. SetKeyClick disabled and then check the KeyClickEnabled status. -//! 6. SetPenClick enabled and then check the PenClickEnalbed status. -//! 7. Unload the plugin and then check the KeyClickEnabled and PenClickEnabled status. -//! 8. Destruct and close all objects used. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. KeyClickEnabled status should always be disabled. -//! 2. PenClickEnabled status should always be enabled. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI c:\graphics\GRAPHICS-WSERV-SoundPlugin-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RSoundPlugIn soundPlugIn - COMMAND ws new - COMMAND ws Connect - COMMAND soundPlugIn new GRAPHICS-WSERV-SoundPlugin-PublicAPI-0014-001-new_Command01 - COMMAND soundPlugIn Construct - COMMAND soundPlugIn Load GRAPHICS-WSERV-SoundPlugin-PublicAPI-0014-001-Load_Command03 - COMMAND soundPlugIn SetKeyClick GRAPHICS-WSERV-SoundPlugin-PublicAPI-0014-001-SetKeyClick_Command04 - COMMAND soundPlugIn KeyClickEnabled GRAPHICS-WSERV-SoundPlugin-PublicAPI-0014-001-KeyClickEnabled_Command05 - COMMAND soundPlugIn SetPenClick GRAPHICS-WSERV-SoundPlugin-PublicAPI-0014-001-SetPenClick_Command06 - COMMAND soundPlugIn PenClickEnabled GRAPHICS-WSERV-SoundPlugin-PublicAPI-0014-001-PenClickEnabled_Command07 - COMMAND soundPlugIn Unload - COMMAND soundPlugIn KeyClickEnabled GRAPHICS-WSERV-SoundPlugin-PublicAPI-0014-001-KeyClickEnabled_Command09 - COMMAND soundPlugIn PenClickEnabled GRAPHICS-WSERV-SoundPlugin-PublicAPI-0014-001-PenClickEnabled_Command10 - COMMAND soundPlugIn Destroy - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-SoundPlugin-PublicAPI-0014 - -START_TESTCASE GRAPHICS-WSERV-SoundPlugin-PublicAPI-0015 -//! @SYMTestCaseID GRAPHICS-WSERV-SoundPlugin-PublicAPI-0015 -//! @SYMAPI RSoundPlugIn::Load(const TDesC {ref}) -//! @SYMAuthor Kevin Zeng -//! @SYMCreationDate 29/12/2007 -//! @SYMTestCaseDesc Negative test for load non-existed file, non-dll file and non-plugin dll file. -//! Try to load three files: a non-existed file, a non-dll file and a non-plugin file respectively. -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a RSoundPlugIn attached to RWsSession -//! 3. Complete the construction without UID -//! 4. Unload existing plugin. -//! 5. Load a plugin dll.which is not existed and verify weather is loaded. -//! 6. Load a file which is not a dll and verify weather is loaded. -//! 7. Load a file which is a dll but not a plugin and verify weather is loaded. -//! 8. Destruct and close all objects used. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. The first load should return -1(KErrNotFound) and IsLoaded returned false. -//! 2. The second load should return -5(KErrNotSupported)and IsLoaded returned false. -//! 3. The third load should return -5(KErrNotSupported)and IsLoaded returned false. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI c:\graphics\GRAPHICS-WSERV-SoundPlugin-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RSoundPlugIn soundPlugIn - COMMAND ws new - COMMAND ws Connect - COMMAND soundPlugIn new GRAPHICS-WSERV-SoundPlugin-PublicAPI-0015-001-new_Command01 - COMMAND soundPlugIn Construct - COMMAND soundPlugIn Unload - COMMAND !Error=-1 soundPlugIn Load GRAPHICS-WSERV-SoundPlugin-PublicAPI-0015-001-Load_Command04 - COMMAND soundPlugIn IsLoaded GRAPHICS-WSERV-SoundPlugin-PublicAPI-0015-001-IsLoaded_Command05 - COMMAND !Error=-5 soundPlugIn Load GRAPHICS-WSERV-SoundPlugin-PublicAPI-0015-001-Load_Command06 - COMMAND soundPlugIn IsLoaded GRAPHICS-WSERV-SoundPlugin-PublicAPI-0015-001-IsLoaded_Command07 - COMMAND !Error=-5 soundPlugIn Load GRAPHICS-WSERV-SoundPlugin-PublicAPI-0015-001-Load_Command08 - COMMAND soundPlugIn IsLoaded GRAPHICS-WSERV-SoundPlugin-PublicAPI-0015-001-IsLoaded_Command09 - COMMAND soundPlugIn Destroy - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-SoundPlugin-PublicAPI-0015 - -START_TESTCASE GRAPHICS-WSERV-SoundPlugin-PublicAPI-0016 -//! @SYMTestCaseID GRAPHICS-WSERV-SoundPlugin-PublicAPI-0016 -//! @SYMAPI RSoundPlugIn::Load(const TDesC {ref}) -//! @SYMAuthor Kevin Zeng -//! @SYMCreationDate 29/12/2007 -//! @SYMTestCaseDesc Try to load plugin dlls multi-times. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create a RSoundPlugIn attached to RWsSession. -//! 3. Complete the construction with keyclickref.dll's UID. -//! 4. Load a plugin dll(keyclickref.dll). -//! 5. Load again(keyclickref.dll). -//! 6. Check is loaded. -//! 7. Send command and get reply. -//! 8. Destruct and close all objects used. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. All the Load methods returns KErrNone and no panic. -//! 2. IsLoaded returns True as expected. -//! 3. CommandReply returns KErrNone and no panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI c:\graphics\GRAPHICS-WSERV-SoundPlugin-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RSoundPlugIn soundPlugIn - COMMAND ws new - COMMAND ws Connect - COMMAND soundPlugIn new GRAPHICS-WSERV-SoundPlugin-PublicAPI-0016-001-new_Command01 - COMMAND soundPlugIn Construct GRAPHICS-WSERV-SoundPlugin-PublicAPI-0016-001-Construct_Command02 - COMMAND soundPlugIn Load GRAPHICS-WSERV-SoundPlugin-PublicAPI-0016-001-Load_Command03 - COMMAND soundPlugIn Load GRAPHICS-WSERV-SoundPlugin-PublicAPI-0016-001-Load_Command04 - COMMAND soundPlugIn IsLoaded GRAPHICS-WSERV-SoundPlugin-PublicAPI-0016-001-IsLoaded_Command05 - COMMAND soundPlugIn CommandReply GRAPHICS-WSERV-SoundPlugin-PublicAPI-0016-001-CommandReply_Command06 - COMMAND soundPlugIn Destroy - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-SoundPlugin-PublicAPI-0016 - -START_TESTCASE GRAPHICS-WSERV-SoundPlugin-PublicAPI-0017 -//! @SYMTestCaseID GRAPHICS-WSERV-SoundPlugin-PublicAPI-0017 -//! @SYMAPI RSoundPlugIn::Unload() -//! @SYMAuthor Kevin Zeng -//! @SYMCreationDate 29/12/2007 -//! @SYMTestCaseDesc Try to Unload multi-times. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create a RSoundPlugIn attached to RWsSession. -//! 3. Complete the construction with keyclickref.dll's UID. -//! 4. Load a plugin dll(keyclickref.dll). -//! 5. Unload the plugin multi-times. -//! 6. Check is unloaded. -//! 7. Send command and get reply. -//! 8. Destruct and close all objects used. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. All the Unload methods complete and no panic. -//! 2. IsLoaded returns False as expected. -//! 3. Because no plugin is loaded, CommandReply returns ESoundWrongPlugIn(-2147483648) and no panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI c:\graphics\GRAPHICS-WSERV-SoundPlugin-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RSoundPlugIn soundPlugIn - COMMAND ws new - COMMAND ws Connect - COMMAND soundPlugIn new GRAPHICS-WSERV-SoundPlugin-PublicAPI-0017-001-new_Command01 - COMMAND soundPlugIn Construct GRAPHICS-WSERV-SoundPlugin-PublicAPI-0017-001-Construct_Command02 - COMMAND soundPlugIn Load GRAPHICS-WSERV-SoundPlugin-PublicAPI-0017-001-Load_Command03 - COMMAND soundPlugIn Unload - COMMAND soundPlugIn Unload - COMMAND soundPlugIn Unload - COMMAND soundPlugIn IsLoaded GRAPHICS-WSERV-SoundPlugin-PublicAPI-0017-001-IsLoaded_Command07 - COMMAND !Error=-2147483648 soundPlugIn CommandReply GRAPHICS-WSERV-SoundPlugin-PublicAPI-0017-001-CommandReply_Command08 - COMMAND soundPlugIn Destroy - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-SoundPlugin-PublicAPI-0017 - - -START_TESTCASE GRAPHICS-WSERV-SoundPlugin-PublicAPI-0018 -//! @SYMTestCaseID GRAPHICS-WSERV-SoundPlugin-PublicAPI-0018 -//! @SYMAPI RSoundPlugIn::RSoundPlugIn(RWsSession &aWs); -//! RSoundPlugIn::Close() -//! @SYMAuthor Ray Liang -//! @SYMCreationDate 02/02/2008 -//! @SYMTestCaseDesc Create a RSoundPlugIn object within the specified RWsSession and end with Close -//! @SYMTestActions execute RSoundPlugIn(RWsSession &) a RSoundPlugIn to create the object and Close. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults RSoundPlugin object was created and Close without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI c:\graphics\GRAPHICS-WSERV-SoundPlugin-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RSoundPlugIn soundPlugIn - COMMAND ws new - COMMAND ws Connect - COMMAND soundPlugIn new GRAPHICS-WSERV-SoundPlugin-PublicAPI-0018-001-new_Command03 - COMMAND soundPlugIn Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-SoundPlugin-PublicAPI-0018 - -START_TESTCASE GRAPHICS-WSERV-SoundPlugin-PublicAPI-0019 -//! @SYMTestCaseID GRAPHICS-WSERV-SoundPlugin-PublicAPI-0019 -//! @SYMAPI RSoundPlugIn::RSoundPlugIn(RWsSession &aWs); -//! RSoundPlugIn::Destroy() -//! @SYMAuthor Ray Liang -//! @SYMCreationDate 02/02/2008 -//! @SYMTestCaseDesc Create a RSoundPlugIn object within the specified RWsSession and end with Destroy() -//! @SYMTestActions execute RSoundPlugIn(RWsSession &) a RSoundPlugIn to create the object and Destroy. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults RSoundPlugin object was created and Destroy without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI c:\graphics\GRAPHICS-WSERV-SoundPlugin-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RSoundPlugIn soundPlugIn - COMMAND ws new - COMMAND ws Connect - COMMAND soundPlugIn new GRAPHICS-WSERV-SoundPlugin-PublicAPI-0019-001-new_Command03 - COMMAND soundPlugIn Destroy - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-SoundPlugin-PublicAPI-0019 - - -START_TESTCASE GRAPHICS-WSERV-SoundPlugin-PublicAPI-0021 -//! @SYMTestCaseID GRAPHICS-WSERV-SoundPlugin-PublicAPI-0021 -//! @SYMAPI RSoundPlugIn::CommandReply(TInt, const TPtrC8 {ref}) -//! @SYMAuthor Kevin Zeng -//! @SYMCreationDate 1/2/2008 -//! @SYMTestCaseDesc Negative test for a wrong uid. -//! Try to Construct with a wrong uid. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create a RSoundPlugIn attached to RWsSession. -//! 3. Complete the construction with an error UID. -//! 4. Load a plugin dll(keyclickref.dll). -//! 5. Check is loaded. -//! 6. Send command and get reply. -//! 7. Destruct and close all objects used. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Construct completes and no panic. -//! 2. Because Construct with wrong uid, CommandReply returns ESoundWrongPlugIn(-2147483648) and no panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI c:\graphics\GRAPHICS-WSERV-SoundPlugin-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RSoundPlugIn soundPlugIn - COMMAND ws new - COMMAND ws Connect - COMMAND soundPlugIn new GRAPHICS-WSERV-SoundPlugin-PublicAPI-0021-001-new_Command01 - COMMAND soundPlugIn Construct GRAPHICS-WSERV-SoundPlugin-PublicAPI-0021-001-Construct_Command02 - COMMAND soundPlugIn Load GRAPHICS-WSERV-SoundPlugin-PublicAPI-0021-001-Load_Command03 - COMMAND soundPlugIn IsLoaded GRAPHICS-WSERV-SoundPlugin-PublicAPI-0021-001-IsLoaded_Command04 - COMMAND !Error=-2147483648 soundPlugIn CommandReply GRAPHICS-WSERV-SoundPlugin-PublicAPI-0021-001-CommandReply_Command5 - COMMAND soundPlugIn Destroy - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-SoundPlugin-PublicAPI-0021 - -START_TESTCASE GRAPHICS-WSERV-SoundPlugin-PublicAPI-0023 -//! @SYMTestCaseID GRAPHICS-WSERV-SoundPlugin-PublicAPI-0023 -//! @SYMAPI RSoundPlugIn::SetKeyClick(TBool); -//! RSoundPlugIn::KeyClickEnabled() -//! @SYMAuthor Kevin Zeng -//! @SYMCreationDate 02/01/2008 -//! @SYMTestCaseDesc Unload the plugin and then set and get the KeyClick status. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create a RSoundPlugIn attached to RWsSession. -//! 3. Complete the construction without a UID. -//! 4. Load a plugin dll(keyclickref.dll). -//! 5. Unload the plugin. -//! 6. Set keyclick to True and get it. -//! 7. Set Keyclick to False and get it. -//! 8. Destruct and close all objects used. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. SetKeyClick completes and no panic. -//! 2. KeyClickEnabled returns as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI c:\graphics\GRAPHICS-WSERV-SoundPlugin-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RSoundPlugIn soundPlugIn - COMMAND ws new - COMMAND ws Connect - COMMAND soundPlugIn new GRAPHICS-WSERV-SoundPlugin-PublicAPI-0023-001-new_Command01 - COMMAND soundPlugIn Construct - COMMAND soundPlugIn Load GRAPHICS-WSERV-SoundPlugin-PublicAPI-0023-001-Load_Command03 - COMMAND soundPlugIn Unload - COMMAND soundPlugIn SetKeyClick GRAPHICS-WSERV-SoundPlugin-PublicAPI-0023-001-SetKeyClick_Command05 - COMMAND soundPlugIn KeyClickEnabled GRAPHICS-WSERV-SoundPlugin-PublicAPI-0023-001-KeyClickEnabled_Command06 - COMMAND soundPlugIn SetKeyClick GRAPHICS-WSERV-SoundPlugin-PublicAPI-0023-001-SetKeyClick_Command07 - COMMAND soundPlugIn KeyClickEnabled GRAPHICS-WSERV-SoundPlugin-PublicAPI-0023-001-KeyClickEnabled_Command08 - COMMAND soundPlugIn Destroy - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-SoundPlugin-PublicAPI-0023 - -START_TESTCASE GRAPHICS-WSERV-SoundPlugin-PublicAPI-0024 -//! @SYMTestCaseID GRAPHICS-WSERV-SoundPlugin-PublicAPI-0024 -//! @SYMAPI RSoundPlugIn::SetPenClick(TBool); -//! RSoundPlugIn::PenClickEnabled() -//! @SYMAuthor Kevin Zeng -//! @SYMCreationDate 02/01/2008 -//! @SYMTestCaseDesc SetPenClick after the plugin is unloaded. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create a RSoundPlugIn attached to RWsSession. -//! 3. Complete the construction without a UID. -//! 4. Load a plugin dll(keyclickref.dll). -//! 5. Unload the plugin. -//! 6. Set and get PenClick. -//! 7. Destruct and close all objects used. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. SetPenClick completes and no panic. -//! 2. PenClickEnabled returns as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI c:\graphics\GRAPHICS-WSERV-SoundPlugin-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RSoundPlugIn soundPlugIn - COMMAND ws new - COMMAND ws Connect - COMMAND soundPlugIn new GRAPHICS-WSERV-SoundPlugin-PublicAPI-0024-001-new_Command01 - COMMAND soundPlugIn Construct - COMMAND soundPlugIn Load GRAPHICS-WSERV-SoundPlugin-PublicAPI-0024-001-Load_Command03 - COMMAND soundPlugIn Unload - COMMAND soundPlugIn SetPenClick GRAPHICS-WSERV-SoundPlugin-PublicAPI-0024-001-SetPenClick_Command05 - COMMAND soundPlugIn PenClickEnabled GRAPHICS-WSERV-SoundPlugin-PublicAPI-0024-001-PenClickEnabled_Command06 - COMMAND soundPlugIn SetPenClick GRAPHICS-WSERV-SoundPlugin-PublicAPI-0024-001-SetPenClick_Command07 - COMMAND soundPlugIn PenClickEnabled GRAPHICS-WSERV-SoundPlugin-PublicAPI-0024-001-PenClickEnabled_Command08 - COMMAND soundPlugIn Destroy - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-SoundPlugin-PublicAPI-0024 - - - - - - - - - - - - - - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-Window-PublicApi.script --- a/graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-Window-PublicApi.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,7110 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// -//! @file -//! @SYMTestSuiteName GRAPHICS-WSERV-Window-PublicApi -//! @SYMScriptTestEnvironment This test script requires a basic ROM. - -/////////////////////////////////////////////////////////////////////////////// -// GRAPHICS-WSERV-Window-PublicApi.script -// -// Tests all public elements of the RWindow class -// as a means of confidence that the API works as expected. -// -// The purpose is to provide a regression test suite of PublishedAll APIs for -// RWindow related classes. -// Negative testing is performed to confirm that correct errors are returned -// when incorrect parameters are given. -// -// The tests are fully automated. -/////////////////////////////////////////////////////////////////////////////// - - -LOAD_SUITE T_GraphicsWservAPI - - -// **************************************************************************** -// RWindow -// **************************************************************************** - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0001 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0001 -//! @SYMAPI RWindow -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc RWindow(): create a RWindow object with C++ default constructor -//! Uses API elements: RWindow() -//! @SYMTestActions 1. Create a RWindow object with the C++ default constructor -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults RWindow object was created without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWindow win - COMMAND win new - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0001 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0002 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0002 -//! @SYMAPI RWindow -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc RWindow(RWsSession &aWs): create a RWindow object within the specified RWsSession -//! Uses API elements: RWsSession::Connect, RWindow() -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a RWindow within the RWsSession -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults RWindow object was created without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND win new GRAPHICS-WSERV-Window-PublicApi-0002-0001-new_command004 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0002 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0003 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0003 -//! @SYMAPI RWindow -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc Construct(const RWindowTreeNode &parent, TUint32 aHandle): complete construction of a RWindow -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Create and connect a RWsSession, and within the RWsSession -//! 2. Create and construct a RWindowGroup (as the parent of RWindow to be constructed) -//! 3. Create and construct a RWindow as the child of the RWindowGroup -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Construct() method returns KErrNone without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-PublicApi-0003-0001-new_command004 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-PublicApi-0003-0001-Construct_command005 - COMMAND win new GRAPHICS-WSERV-Window-PublicApi-0003-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-Window-PublicApi-0003-0001-Construct_command008 - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0003 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0004 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0004 -//! @SYMAPI RWindow -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc BeginRedraw(): begin redraw the window's invalid region -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct, RDrawableWindow::GetDrawRect -//! @SYMTestActions 1. Create and construct a simple RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a RWindowGroup within the RWsSession -//! 1.3 New and construct a RWindow as the child of the RWindowGroup -//! 2. Use RDrawableWindow::GetDrawRect to check if the drawing rectangle is empty -//! 3. Execute BeginRedraw() method -//! 4. Use RDrawableWindow::GetDrawRect to check if the drawing rectangle is the entire window -//! 5. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Run BeginRedraw() method without causing panic -//! 2. Check if the drawing rectangle as expected -//! 2.1 before BeginRedraw(), the drawing rectangle is empty: TRect((0,0),(0,0)) -//! 2.2 after BeginRedraw(), the drawing rectangle should be the window size (or the intital screen size) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 - - COMMAND win GetDrawRect GRAPHICS-WSERV-Window-PublicApi-0004-0001-GetDrawRect_command001 - COMMAND win BeginRedraw - COMMAND win GetDrawRect GRAPHICS-WSERV-Window-PublicApi-0004-0001-GetDrawRect_command003 - - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0004 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0005 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0005 -//! @SYMAPI RWindow -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc BeginRedraw(const TRect &aRect): begin redraw the rectangle of the window's invalid region -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct, RDrawableWindow::GetDrawRect -//! @SYMTestActions 1. Create and construct a simple RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a RWindowGroup within the RWsSession -//! 1.3 New and construct a RWindow as the child of the RWindowGroup -//! 2. Use RDrawableWindow::GetDrawRect to check if the drawing rectangle is empty -//! 3. Execute BeginRedraw() method with specified rectangle -//! 4. Use RDrawableWindow::GetDrawRect to check if the drawing rectangle the same as the specified -//! 5. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Run BeginRedraw() method without causing panic -//! 2. Check if the drawing rectangle as expected -//! 2.1 before BeginRedraw(), the drawing rectangle is empty: TRect((0,0),(0,0)) -//! 2.2 after BeginRedraw(), the drawing rectangle should be the same as the specified TRect((21,20),(51,50)) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 - - COMMAND win GetDrawRect GRAPHICS-WSERV-Window-PublicApi-0005-0001-GetDrawRect_command001 - COMMAND win BeginRedraw GRAPHICS-WSERV-Window-PublicApi-0005-0001-BeginRedraw_command002 - COMMAND win GetDrawRect GRAPHICS-WSERV-Window-PublicApi-0005-0001-GetDrawRect_command003 - - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0005 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0006 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0006 -//! @SYMAPI RWindow -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc EndRedraw(): end the current redraw -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct & BeginRedraw, RDrawableWindow::GetDrawRect -//! @SYMTestActions 1. Create and construct a simple RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a RWindowGroup within the RWsSession -//! 1.3 New and construct a RWindow as the child of the RWindowGroup -//! 2. Execute BeginRedraw(), then EndRedraw method -//! 3. Use RDrawableWindow::GetDrawRect to check if the drawing rectangle is cleared back to empty -//! 4. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Run EndRedraw() method without causing panic -//! 2. Check if the drawing rectangle after call EndRedraw() is empty: TRect((0,0),(0,0)) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 - - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND win GetDrawRect GRAPHICS-WSERV-Window-PublicApi-0006-0001-GetDrawRect_command003 - - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0006 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0007 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0007 -//! @SYMAPI RWindow -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc Invalidate(): invalidate the entire window -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct & Activate & BeginRedraw & EndRedraw & GetInvalidRegion -//! @SYMTestActions 1. Create and construct a simple RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a RWindowGroup within the RWsSession -//! 1.3 New and construct a RWindow as the child of the RWindowGroup -//! 2. Activate, BeginRedraw and EndRedraw the RWindow to make the entire window is valid -//! 3. Execute Invalidate() method for the entire window -//! 4. Use GetInvalidRegion to check if the invalid region as specified (the entire window) -//! 5. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Run Invalidate() method without causing panic -//! 2. Check if invalid region as specified -//! 2.1 before Invalidate(), there's NO invalid region: NULL region can be represented by TRect((0,0),(0,0)) -//! 2.2 after Invalidate(), the invalid region should be the window size (or the intital screen size) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 - - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND win GetInvalidRegion GRAPHICS-WSERV-Window-PublicApi-0007-0001-GetInvalidRegion_command004 - COMMAND win Invalidate - COMMAND win GetInvalidRegion GRAPHICS-WSERV-Window-PublicApi-0007-0001-GetInvalidRegion_command006 - - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0007 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0008 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0008 -//! @SYMAPI RWindow -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc Invalidate(const TRect &aRect): invalidate a rectangle area within the window -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct & Activate & BeginRedraw & EndRedraw & GetInvalidRegion -//! @SYMTestActions 1. Create and construct a simple RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a RWindowGroup within the RWsSession -//! 1.3 New and construct a RWindow as the child of the RWindowGroup -//! 2. Activate, BeginRedraw and EndRedraw the RWindow to make the entire window is valid -//! 3. Execute Invalidate() method with specified rectangle ((11,10),(81,60)) -//! 4. Use GetInvalidRegion to check if the invalid region as specified -//! 5. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Run Invalidate() method without causing panic -//! 2. Check if invalid region as specified -//! 2.1 before Invalidate(), there's NO invalid region: NULL region can be represented by TRect((0,0),(0,0)) -//! 2.2 after Invalidate(), the invalid region should be the same as specified TRect((11,10),(81,60)) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 - - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND win GetInvalidRegion GRAPHICS-WSERV-Window-PublicApi-0008-0001-GetInvalidRegion_command004 - COMMAND win Invalidate GRAPHICS-WSERV-Window-PublicApi-0008-0001-Invalidate_command005 - COMMAND win GetInvalidRegion GRAPHICS-WSERV-Window-PublicApi-0008-0001-GetInvalidRegion_command006 - - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0008 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0009 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0009 -//! @SYMAPI RWindow -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 15/03/2007 -//! @SYMTestCaseDesc GetInvalidRegion(RRegion &aRegion): get the invalid region -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct, RWindowBase::Activate -//! @SYMTestActions 1. Create and construct a simple RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a RWindowGroup within the RWsSession -//! 1.3 New and construct a RWindow as the child of the RWindowGroup -//! 2. Execute GetInvalidRegion() method and check if returned invalid region is NULL/empty -//! 3. Activate the window -//! 4. Execute GetInvalidRegion() and check again if returned the whole window -//! 5. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Run GetInvalidRegion() method without causing panic -//! 2. Check returned invalid region for a initial window -//! 2.1 before Activate the window, there's NO invalid region: NULL region can be represented by TRect((0,0),(0,0)) -//! 2.2 after Activate the window, the invalid region should be the window size (or the intital screen size) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 - - COMMAND win GetInvalidRegion GRAPHICS-WSERV-Window-PublicApi-0009-0001-GetInvalidRegion_command001 - COMMAND win Activate - COMMAND win GetInvalidRegion GRAPHICS-WSERV-Window-PublicApi-0009-0001-GetInvalidRegion_command003 - - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0009 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0010 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0010 -//! @SYMAPI RWindow -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc SetBackgroundColor(TRgb aColor): set the background colour used for clearing in server-initiated redraws -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & CreateContext & GetPixel, RWindowGroup::Construct, -//! RWindow::Construct & SetRequiredDisplayMode & BeginRedraw & EndRedraw, CWindowGc::Activate & Deactivate -//! @SYMTestActions 1. Setup and display a RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! 2. Execute SetBackgroundColor to set the background color to the specified TRgb(255,0,0) -//! 3. Run RWindow::BeginRedraw & EndRedraw to display the RWindow with new background color -//! 4. Check if the expected background color displayed on the screen -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Run SetBackgroundColor() method without causing panic -//! 2. The whole window is displayed on the scrren with the background color TRgb(255,0,0) -//! only check the sample rectangles: ((0,0),(20,20)), ((0,180),(20,200)), ((180,0),(200,20)), ((180,180),(200,200)) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-Window-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-Window-Setup-0002-0001-SetAutoFlush_command015 - COMMAND wingc Activate GRAPHICS-WSERV-Window-Setup-0002-0001-Activate_command017 - - COMMAND win SetBackgroundColor GRAPHICS-WSERV-Window-PublicApi-0010-0001-SetBackgroundColor_command001 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND scrdev checkRectColor GRAPHICS-WSERV-Window-PublicApi-0010-0001-checkRectColor_command006 - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0010 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0011 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0011 -//! @SYMAPI RWindow -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc SetBackgroundColor(): set the background colour used for clearing in server-initiated redraws to none -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & CreateContext & GetPixel, RWindowGroup::Construct, -//! RWindow::Construct & SetRequiredDisplayMode & BeginRedraw & EndRedraw, CWindowGc::Activate & Deactivate -//! @SYMTestActions 1. Setup and display a RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! 2. Execute SetBackgroundColor to set the background color to clear, i.e. TRgb(255,255,255) -//! 3. Run RWindow::BeginRedraw & EndRedraw to display the RWindow with new background color -//! 4. Check if the expected background color displayed on the screen -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Run SetBackgroundColor() method without causing panic -//! 2. The whole window is displayed on the screen with the background color TRgb(255,255,255) -//! only check the sample rectangles: ((0,0),(20,20)), ((0,180),(20,200)), ((180,0),(200,20)), ((180,180),(200,200)) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-Window-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-Window-Setup-0002-0001-SetAutoFlush_command015 - COMMAND wingc Activate GRAPHICS-WSERV-Window-Setup-0002-0001-Activate_command017 - - COMMAND win SetBackgroundColor GRAPHICS-WSERV-Window-PublicApi-0011-0001-SetBackgroundColor_command005 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND scrdev checkRectColor GRAPHICS-WSERV-Window-PublicApi-0011-0001-checkRectColor_command006 - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0011 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0012 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0012 -//! @SYMAPI RWindow -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc SetSize(const TSize &size): set the size of the RWindow -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct, RWindowBase::Size -//! @SYMTestActions 1. Create and construct a simple RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a RWindowGroup within the RWsSession -//! 1.3 New and construct a RWindow as the child of the RWindowGroup -//! 2. Execute SetSize to set RWindow to the specified window size -//! 3. Use RWindowBase::Size to check if the window size is the same as specified -//! 4. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Run SetSize() method without causing panic -//! 2. RWindowBase::Size gets the window size as the specified (width 50, height 40) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 - - COMMAND win SetSize GRAPHICS-WSERV-Window-PublicApi-0012-0001-SetSize_command001 - COMMAND win Size GRAPHICS-WSERV-Window-PublicApi-0012-0001-Size_command002 - - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0012 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0013 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0013 -//! @SYMAPI RWindow -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc SetExtent(const TPoint &point, const TSize &size): set the extent of the RWindow -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct, RWindowBase::Size & AbsPosition -//! @SYMTestActions 1. Create and construct a simple RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a RWindowGroup within the RWsSession -//! 1.3 New and construct a RWindow as the child of the RWindowGroup -//! 2. Execute SetExtent to set RWindow position to (10,11) and size to (width 40, height 30) -//! 3. Use RWindowBase::AbsPosition to get and check if the window position is the same as specified -//! and RWindowBase::Size to get and check if the window size is is the same as specified -//! 4. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Run SetExtent() method without causing panic -//! 2. RWindowBase::AbsPosition gets the window position as expected (10,11) -//! RWindowBase::Size gets the window size as expected (width 50, height 40) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 - - COMMAND win SetExtent GRAPHICS-WSERV-Window-PublicApi-0013-0001-SetExtent_command001 - COMMAND win AbsPosition GRAPHICS-WSERV-Window-PublicApi-0013-0001-AbsPosition_command002 - COMMAND win Size GRAPHICS-WSERV-Window-PublicApi-0013-0001-Size_command003 - - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0013 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0014 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0014 -//! @SYMAPI RWindow -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 02/05/2007 -//! @SYMTestCaseDesc HandleTransparencyUpdate(): notify the WSERV that the contents of the registered transparency CFbsBitmap has been changed -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & CreateContext & GetPixel, RWindowGroup::Construct, -//! RWindow::Construct & SetRequiredDisplayMode & BeginRedraw & EndRedraw & SetBackgroundColor & SetSize & SetTransparencyBitmap, CWindowGc::Activate & Deactivate -//! @SYMTestActions 1. Setup and display a background RWindow and a foreground RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a background RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K), SetBackgroundColor to TRgb(255,255,0) for the RWindow -//! 1.6 Activate the CWindowGc to the RWindow, and BeginRedraw & EndRedraw to display the background RWindow -//! 1.7 New and construct a foreground RWindow as the child of the background RWindow -//! and SetRequiredDisplayMode (to EColor4K), and SetSize to width 100 & height 100 (smaller than background RWindow) -//! 1.8 SetAutoFlush to TRUE for the RWsSession -//! 2. New and Create a transparency CFbsBitmap: display mode EGray256, width 5 height 1 -//! 3. SetBackgroundColor to TRgb(0,0,255) for the foreground RWindow -//! 4. Use SetTransparencyBitmap to set the tranpsarency CFbsBitmap for the window -//! 5. Activate the foreground RWindow, execute BeginRedraw & EndRedraw to display the foreground RWindow -//! 6. Check if the foreground RWindow is displayed with the specified transparency CFbsBitmap -//! 7. Use TBitmapUtil::Begin, SetPos, SetPixel, End to change the transparency CFbsBitmap -//! 8. Execute HandleTransparencyUpdate to notify WSERV that the registered transparency CFbsBitmap has been changed -//! 9. Check if the foreground RWindow is displayed with the updated transparency CFbsBitmap -//! 10. Destruct and close all the objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Run HandleTransparencyUpdate() method without causing panic -//! 2. Check if the foreground RWindow is displayed as expected -//! 2.1 before HandleTransparencyUpdate, the tranpsarency CFbsBitmap is all with default TRgb(255,255,255) -//! this means non-transparent, and the window is displayed with its background color TRgb(0,0,255) -//! 2.2 after HandleTransparencyUpdate, the tranpsarency CFbsBitmap is updated with partially/fully transparency -//! the window is displayed as the result of alpha blending with source = foreground RWindow color TRgb(0,0,255) -//! with window = background RWindow color TRgb(255,255,0) -//! with alpha factor = map pixel color of transparency CFbsBitmap to Gray256 -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow backwin - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-Window-Setup-0003-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command009 - COMMAND backwin new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command011 - COMMAND backwin Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command012 - COMMAND backwin SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command013 - COMMAND backwin SetBackgroundColor GRAPHICS-WSERV-Window-Setup-0003-0001-SetBackgroundColor_command014 - COMMAND backwin Activate - COMMAND backwin BeginRedraw - COMMAND backwin EndRedraw - COMMAND win new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command022 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command023 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command025 - COMMAND win SetSize GRAPHICS-WSERV-Window-Setup-0003-0001-SetSize_command026 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-Window-Setup-0003-0001-SetAutoFlush_command027 - - CREATE_OBJECT CFbsBitmap fbsbmp - CREATE_OBJECT TBitmapUtil bmputil - COMMAND fbsbmp new - COMMAND fbsbmp Create GRAPHICS-WSERV-Window-PublicApi-0014-0001-Create_command002 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-Window-PublicApi-0014-0001-SetBackgroundColor_command004 - COMMAND win SetTransparencyBitmap GRAPHICS-WSERV-Window-PublicApi-0014-0001-SetTransparencyBitmap_command005 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND scrdev checkRectColor GRAPHICS-WSERV-Window-PublicApi-0014-0001-checkRectColor_command010 - COMMAND bmputil new GRAPHICS-WSERV-Window-PublicApi-0014-0001-New_command012 - COMMAND bmputil Begin GRAPHICS-WSERV-Window-PublicApi-0014-0001-Begin_command013 - COMMAND bmputil SetPixel GRAPHICS-WSERV-Window-PublicApi-0014-0001-SetPixel_command014 - COMMAND bmputil SetPos GRAPHICS-WSERV-Window-PublicApi-0014-0001-SetPos_command015 - COMMAND bmputil SetPixel GRAPHICS-WSERV-Window-PublicApi-0014-0001-SetPixel_command016 - COMMAND bmputil SetPos GRAPHICS-WSERV-Window-PublicApi-0014-0001-SetPos_command017 - COMMAND bmputil SetPixel GRAPHICS-WSERV-Window-PublicApi-0014-0001-SetPixel_command018 - COMMAND bmputil SetPos GRAPHICS-WSERV-Window-PublicApi-0014-0001-SetPos_command019 - COMMAND bmputil SetPixel GRAPHICS-WSERV-Window-PublicApi-0014-0001-SetPixel_command020 - COMMAND bmputil SetPos GRAPHICS-WSERV-Window-PublicApi-0014-0001-SetPos_command021 - COMMAND bmputil SetPixel GRAPHICS-WSERV-Window-PublicApi-0014-0001-SetPixel_command022 - COMMAND bmputil End - COMMAND win HandleTransparencyUpdate - - COMMAND fbsbmp ~ - COMMAND win Close - COMMAND backwin Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0014 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0015 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0015 -//! @SYMAPI RWindow -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 28/03/2007 -//! @SYMTestCaseDesc SetTransparencyFactor(const TRgb &aTransparencyFactor): set the tranpsarency color for the window -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & CreateContext & GetPixel, RWindowGroup::Construct, -//! RWindow::Construct & SetRequiredDisplayMode & BeginRedraw & EndRedraw & SetBackgroundColor & SetSize, CWindowGc::Activate & Deactivate -//! @SYMTestActions 1. Setup and display a background RWindow and a foreground RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a background RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K), SetBackgroundColor to TRgb(255,255,0) for the RWindow -//! 1.6 Activate the CWindowGc to the RWindow, and BeginRedraw & EndRedraw to display the background RWindow -//! 1.7 New and construct a foreground RWindow as the child of the background RWindow -//! and SetRequiredDisplayMode (to EColor4K), and SetSize to width 100 & height 100 (smaller than background RWindow) -//! 1.8 SetAutoFlush to TRUE for the RWsSession -//! 2. SetBackgroundColor to TRgb(0,0,255) for the foreground RWindow -//! 3. Execute SetTransparencyFactor to TRgb(17,17,17) to set transparency color -//! 4. Activate the foreground RWindow, execute BeginRedraw & EndRedraw to display the foreground RWindow -//! 5. Check if the foreground RWindow is displayed with the transparency factor -//! 6. Destruct and close all the objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. SetTransparencyFactor() returns KErrNone without causing panic -//! 2. The foreground RWindow is displayed with the specified tranpsarency factor -//! i.e. alpha blending with source = foreground RWindow color TRgb(0,0,255) -//! with window = background RWindow color TRgb(255,255,0) -//! with alpha factor = map transparency color to Gray256, e.g. TRgb(17,17,17) => alpha factor 17 -//! then foreground RWindow is expected to be drawn with TRgb(238,238,17) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow backwin - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-Window-Setup-0003-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command009 - COMMAND backwin new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command011 - COMMAND backwin Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command012 - COMMAND backwin SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command013 - COMMAND backwin SetBackgroundColor GRAPHICS-WSERV-Window-Setup-0003-0001-SetBackgroundColor_command014 - COMMAND backwin Activate - COMMAND backwin BeginRedraw - COMMAND backwin EndRedraw - COMMAND win new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command022 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command023 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command025 - COMMAND win SetSize GRAPHICS-WSERV-Window-Setup-0003-0001-SetSize_command026 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-Window-Setup-0003-0001-SetAutoFlush_command027 - - COMMAND win SetBackgroundColor GRAPHICS-WSERV-Window-PublicApi-0015-0001-SetBackgroundColor_command001 - COMMAND win SetTransparencyFactor GRAPHICS-WSERV-Window-PublicApi-0015-0001-SetTransparencyFactor_command002 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - - COMMAND win Close - COMMAND backwin Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0015 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0016 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0016 -//! @SYMAPI RWindow -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 02/04/2007 -//! @SYMTestCaseDesc SetTransparencyBitmap(const CFbsBitmap &aTransparencyBitmap): set the tranpsarency bitmap for the window -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & CreateContext & GetPixel, RWindowGroup::Construct, CFbsBitmap::Load, -//! RWindow::Construct & SetRequiredDisplayMode & BeginRedraw & EndRedraw & SetBackgroundColor & SetSize, CWindowGc::Activate & Deactivate -//! @SYMTestActions 1. Setup and display a background RWindow and a foreground RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a background RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K), SetBackgroundColor to TRgb(255,255,0) for the RWindow -//! 1.6 Activate the CWindowGc to the RWindow, and BeginRedraw & EndRedraw to display the background RWindow -//! 1.7 New and construct a foreground RWindow as the child of the background RWindow -//! and SetRequiredDisplayMode (to EColor4K), and SetSize to width 100 & height 100 (smaller than background RWindow) -//! 1.8 SetAutoFlush to TRUE for the RWsSession -//! 2. New and Load the transparency CFbsBitmap -//! 3. Execute SetTransparencyBitmap to set the tranpsarency CFbsBitmap for the window -//! 4. SetBackgroundColor to TRgb(0,0,255) for the foreground RWindow -//! 5. Activate the foreground RWindow, execute BeginRedraw & EndRedraw to display the foreground RWindow -//! 6. Check if the foreground RWindow is displayed with the specified transparency CFbsBitmap -//! i.e. alpha blending with source = foreground RWindow color, window = background RWindow color, alpha = transparency CFbsBitmap -//! 7. Destruct and close all the objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. SetTransparencyBitmap() returns KErrNone without causing panic -//! 2. The foreground RWindow is displayed with the specified tranpsarency CFbsBitmap -//! i.e. alpha blending with source = foreground RWindow color TRgb(0,0,255) -//! with window = background RWindow color TRgb(255,255,0) -//! with alpha factor = map pixel color of transparency CFbsBitmap to Gray256 -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow backwin - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-Window-Setup-0003-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command009 - COMMAND backwin new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command011 - COMMAND backwin Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command012 - COMMAND backwin SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command013 - COMMAND backwin SetBackgroundColor GRAPHICS-WSERV-Window-Setup-0003-0001-SetBackgroundColor_command014 - COMMAND backwin Activate - COMMAND backwin BeginRedraw - COMMAND backwin EndRedraw - COMMAND win new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command022 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command023 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command025 - COMMAND win SetSize GRAPHICS-WSERV-Window-Setup-0003-0001-SetSize_command026 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-Window-Setup-0003-0001-SetAutoFlush_command027 - - CREATE_OBJECT CFbsBitmap fbsbmp - COMMAND fbsbmp new - COMMAND fbsbmp Load GRAPHICS-WSERV-Window-PublicApi-0016-0001-Load_command002 - COMMAND win SetTransparencyBitmap GRAPHICS-WSERV-Window-PublicApi-0016-0001-SetTransparencyBitmap_command004 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-Window-PublicApi-0016-0001-SetBackgroundColor_command005 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - - COMMAND fbsbmp ~ - COMMAND win Close - COMMAND backwin Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0016 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0017 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0017 -//! @SYMAPI RWindow -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 03/04/2007 -//! @SYMTestCaseDesc SetTransparencyWsBitmap(const CWsBitmap &aTransparencyBitmap): set the tranpsarency bitmap for the window -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & CreateContext & GetPixel, RWindowGroup::Construct, CWsBitmap::Load, -//! RWindow::Construct & SetRequiredDisplayMode & BeginRedraw & EndRedraw & SetBackgroundColor & SetSize, CWindowGc::Activate & Deactivate -//! @SYMTestActions 1. Setup and display a background RWindow and a foreground RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a background RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K), SetBackgroundColor to TRgb(255,255,0) for the RWindow -//! 1.6 Activate the CWindowGc to the RWindow, and BeginRedraw & EndRedraw to display the background RWindow -//! 1.7 New and construct a foreground RWindow as the child of the background RWindow -//! and SetRequiredDisplayMode (to EColor4K), and SetSize to width 100 & height 100 (smaller than background RWindow) -//! 1.8 SetAutoFlush to TRUE for the RWsSession -//! 2. New and Load the transparency CWsBitmap -//! 3. Execute SetTransparencyWsBitmap to set the tranpsarency CWsBitmap for the window -//! 4. SetBackgroundColor to TRgb(0,0,255) for the foreground RWindow -//! 5. Activate the foreground RWindow, execute BeginRedraw & EndRedraw to display the foreground RWindow -//! 6. Check if the foreground RWindow is displayed with the specified transparency CWsBitmap -//! i.e. alpha blending with source = foreground RWindow color, window = background RWindow color, alpha = transparency CWsBitmap -//! 7. Destruct and close all the objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. SetTransparencyWsBitmap() returns KErrNone without causing panic -//! 2. The foreground RWindow is displayed with the specified tranpsarency CWsBitmap -//! i.e. alpha blending with source = foreground RWindow color TRgb(0,0,255) -//! with window = background RWindow color TRgb(255,255,0) -//! with alpha factor = map pixel color of transparency CWsBitmap to Gray256 -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow backwin - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-Window-Setup-0003-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command009 - COMMAND backwin new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command011 - COMMAND backwin Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command012 - COMMAND backwin SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command013 - COMMAND backwin SetBackgroundColor GRAPHICS-WSERV-Window-Setup-0003-0001-SetBackgroundColor_command014 - COMMAND backwin Activate - COMMAND backwin BeginRedraw - COMMAND backwin EndRedraw - COMMAND win new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command022 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command023 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command025 - COMMAND win SetSize GRAPHICS-WSERV-Window-Setup-0003-0001-SetSize_command026 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-Window-Setup-0003-0001-SetAutoFlush_command027 - - CREATE_OBJECT CWsBitmap wsbmp - COMMAND wsbmp new GRAPHICS-WSERV-Window-PublicApi-0017-0001-new_command001 - COMMAND wsbmp Load GRAPHICS-WSERV-Window-PublicApi-0017-0001-Load_command002 - COMMAND win SetTransparencyWsBitmap GRAPHICS-WSERV-Window-PublicApi-0017-0001-SetTransparencyWsBitmap_command004 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-Window-PublicApi-0017-0001-SetBackgroundColor_command005 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - - COMMAND wsbmp ~ - COMMAND win Close - COMMAND backwin Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0017 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0018 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0018 -//! @SYMAPI RWindow -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 26/03/2007 -//! @SYMTestCaseDesc SetNonTransparent(): set the window to not be transparent -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & CreateContext & GetPixel, RWindowGroup::Construct, -//! RWindow::Construct & SetRequiredDisplayMode & BeginRedraw & EndRedraw & SetBackgroundColor & SetSize, CWindowGc::Activate & Deactivate -//! @SYMTestActions 1. Setup and display a background RWindow and a foreground RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a background RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K), SetBackgroundColor to TRgb(255,255,0) for the RWindow -//! 1.6 Activate the CWindowGc to the RWindow, and BeginRedraw & EndRedraw to display the background RWindow -//! 1.7 New and construct a foreground RWindow as the child of the background RWindow -//! and SetRequiredDisplayMode (to EColor4K), and SetSize to width 100 & height 100 (smaller than background RWindow) -//! 1.8 SetAutoFlush to TRUE for the RWsSession -//! 2. Execute SetNonTransparent to set the window to not be transparent -//! 3. SetBackgroundColor to TRgb(0,0,255) for the foreground RWindow -//! 4. Activate the foreground RWindow, execute BeginRedraw & EndRedraw to display the foreground RWindow -//! 5. Check if the foreground RWindow is displayed with non-transparent, i.e. its background color TRgb(0,0,255) -//! 6. Destruct and close all the objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Run SetNonTransparent() method without causing panic -//! 2. The foreground RWindow is displayed with non-transparent, i.e. its background color TRgb(0,0,255) -//! only check sample rectangle area ((0,0),(80,10)) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow backwin - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-Window-Setup-0003-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command009 - COMMAND backwin new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command011 - COMMAND backwin Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command012 - COMMAND backwin SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command013 - COMMAND backwin SetBackgroundColor GRAPHICS-WSERV-Window-Setup-0003-0001-SetBackgroundColor_command014 - COMMAND backwin Activate - COMMAND backwin BeginRedraw - COMMAND backwin EndRedraw - COMMAND win new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command022 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command023 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command025 - COMMAND win SetSize GRAPHICS-WSERV-Window-Setup-0003-0001-SetSize_command026 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-Window-Setup-0003-0001-SetAutoFlush_command027 - - COMMAND win SetNonTransparent - COMMAND win SetBackgroundColor GRAPHICS-WSERV-Window-PublicApi-0018-0001-SetBackgroundColor_command002 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND scrdev checkRectColor GRAPHICS-WSERV-Window-PublicApi-0018-0001-checkRectColor_command007 - - COMMAND win Close - COMMAND backwin Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0018 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0019 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0019 -//! @SYMAPI RWindow -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 14/03/2007 -//! @SYMTestCaseDesc EnableRedrawStore(TBool aEnabled): enable or diable the redraw store for a window -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct & IsRedrawStoreEnabled -//! @SYMTestActions 1. Create and construct a simple RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a RWindowGroup within the RWsSession -//! 1.3 New and construct a RWindow as the child of the RWindowGroup -//! 2. Execute EnableRedrawStore to FALSE to disable the redraw store for the RWindow -//! 3. Use IsRedrawStoreEnabled to check if the redraw store flag for the RWindow is FALSE -//! 4. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Run EnableRedrawStore() method without causing panic -//! 2. The redraw store flag for the RWindow is the same as specified, i.e. FALSE -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 - - COMMAND win EnableRedrawStore GRAPHICS-WSERV-Window-PublicApi-0019-0001-EnableRedrawStore_command001 - COMMAND win IsRedrawStoreEnabled GRAPHICS-WSERV-Window-PublicApi-0019-0001-IsRedrawStoreEnabled_command002 - - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0019 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0020 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0020 -//! @SYMAPI RWindow -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 04/05/2007 -//! @SYMTestCaseDesc SetTransparencyAlphaChannel(): set the window to be transparent using the alpha channel -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & CreateContext & GetPixel, RWindowGroup::Construct, -//! RWindow::Construct & SetRequiredDisplayMode & BeginRedraw & EndRedraw & SetBackgroundColor & SetSize & EnableRedrawStore & IsRedrawStoreEnabled, CWindowGc::Activate & Deactivate -//! @SYMTestActions 1. Setup and display a background RWindow and a foreground RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a background RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K), SetBackgroundColor to TRgb(255,255,0) for the RWindow -//! 1.6 Activate the CWindowGc to the RWindow, and BeginRedraw & EndRedraw to display the background RWindow -//! 1.7 New and construct a foreground RWindow as the child of the background RWindow -//! and SetSize to width 100 & height 100 (smaller than background RWindow) -//! 1.8 SetAutoFlush to TRUE for the RWsSession -//! 2. for the foreground RWindow, SetRequiredDisplayMode to EColor16MA -//! and SetBackgroundColor to TRgb(0,0,255) with alpha value (=196) -//! 3. Use DisplayMode to check if the display mode of the foreground RWindow is EColor16MA -//! 4. Use EnableRedrawStore to disable the redraw store of the foreground RWindow -//! and use IsRedrawStoreEnabled to check its redraw store flag is FALSE -//! 5. Execute SetTransparencyAlphaChannel to set the foreground RWindow to be transparent using the alpha channel -//! 6. Use IsRedrawStoreEnabled to check its redraw store flag is TRUE (turned on by SetTransparencyAlphaChannel) -//! 7. Activate the foreground RWindow, execute BeginRedraw & EndRedraw to display the foreground RWindow -//! 8. Check the display of the foreground RWindow with the transparent alpha channel -//! 9. Destruct and close all the objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. SetTransparencyAlphaChannel() returns KErrNone without causing panic -//! 2. The foreground RWindow is displayed with the tranpsarency factor specified by alpha channel -//! i.e. alpha blending with source = foreground RWindow color TRgb(0,0,255) -//! with window = background RWindow color TRgb(255,255,0) -//! with alpha factor with the value in alpha channel (=196) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow backwin - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-Window-Setup-0003-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command009 - COMMAND backwin new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command011 - COMMAND backwin Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command012 - COMMAND backwin SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command013 - COMMAND backwin SetBackgroundColor GRAPHICS-WSERV-Window-Setup-0003-0001-SetBackgroundColor_command014 - COMMAND backwin Activate - COMMAND backwin BeginRedraw - COMMAND backwin EndRedraw - COMMAND win new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command022 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command023 - COMMAND win SetSize GRAPHICS-WSERV-Window-Setup-0003-0001-SetSize_command026 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-Window-Setup-0003-0001-SetAutoFlush_command027 - - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-Window-PublicApi-0020-0001-SetRequiredDisplayMode_command001 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-Window-PublicApi-0020-0001-SetBackgroundColor_command002 - COMMAND win DisplayMode GRAPHICS-WSERV-Window-PublicApi-0020-0001-DisplayMode_command003 - COMMAND win EnableRedrawStore GRAPHICS-WSERV-Window-PublicApi-0020-0001-EnableRedrawStore_command004 - COMMAND win IsRedrawStoreEnabled GRAPHICS-WSERV-Window-PublicApi-0020-0001-IsRedrawStoreEnabled_command005 - COMMAND win SetTransparencyAlphaChannel - COMMAND win IsRedrawStoreEnabled GRAPHICS-WSERV-Window-PublicApi-0020-0001-IsRedrawStoreEnabled_command007 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - - COMMAND win Close - COMMAND backwin Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0020 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0021 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0021 -//! @SYMAPI RWindow -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 29/03/2007 -//! @SYMTestCaseDesc SetTransparentRegion(const TRegion &aRegion): set transparent region of the RWindow -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & CreateContext & GetPixel, RWindowGroup::Construct, -//! RWindow::Construct & SetRequiredDisplayMode & BeginRedraw & EndRedraw & SetBackgroundColor & SetSize & SetTransparencyFactor, CWindowGc::Activate & Deactivate -//! @SYMTestActions 1. Setup and display a background RWindow and a foreground RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a background RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K), SetBackgroundColor to TRgb(255,255,0) for the RWindow -//! 1.6 Activate the CWindowGc to the RWindow, and BeginRedraw & EndRedraw to display the background RWindow -//! 1.7 New and construct a foreground RWindow as the child of the background RWindow -//! and SetRequiredDisplayMode (to EColor4K), and SetSize to width 100 & height 100 (smaller than background RWindow) -//! 1.8 SetAutoFlush to TRUE for the RWsSession -//! 2. SetBackgroundColor to TRgb(0,0,255) for the foreground RWindow -//! 3. Use SetTransparencyFactor to TRgb(0,28,0) to set transparency color -//! 4. Execute SetTransparentRegion to set the transparent region of the RWindow -//! 5. Activate the foreground RWindow, execute BeginRedraw & EndRedraw to display the foreground RWindow -//! 6. Check the display of the foreground RWindow within and beyond the transparency region -//! 7. Destruct and close all the objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. SetTransparentRegion() returns KErrNone without causing panic -//! 2. Check the display of the foreground RWindow -//! 2.1 beyond the transparency region, displayed with its background color, i.e. TRgb(0,0,255) -//! 2.2 within the transparency region, displayed with the transparency factor -//! i.e. alpha blending with source = foreground RWindow color, window = background RWindow color, alpha = transparency color -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow backwin - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-Window-Setup-0003-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command009 - COMMAND backwin new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command011 - COMMAND backwin Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command012 - COMMAND backwin SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command013 - COMMAND backwin SetBackgroundColor GRAPHICS-WSERV-Window-Setup-0003-0001-SetBackgroundColor_command014 - COMMAND backwin Activate - COMMAND backwin BeginRedraw - COMMAND backwin EndRedraw - COMMAND win new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command022 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command023 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command025 - COMMAND win SetSize GRAPHICS-WSERV-Window-Setup-0003-0001-SetSize_command026 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-Window-Setup-0003-0001-SetAutoFlush_command027 - - COMMAND win SetBackgroundColor GRAPHICS-WSERV-Window-PublicApi-0021-0001-SetBackgroundColor_command001 - COMMAND win SetTransparencyAlphaChannel - COMMAND win SetTransparentRegion GRAPHICS-WSERV-Window-PublicApi-0021-0001-SetTransparentRegion_command003 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - - COMMAND win Close - COMMAND backwin Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0021 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0022 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0022 -//! @SYMAPI RWindow -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 02/05/2007 -//! @SYMTestCaseDesc SetTransparencyPolicy(TWsTransparencyPolicy aPolicy): set RWindow transparency policy -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & CreateContext & GetPixel, RWindowGroup::Construct, -//! RWindow::Construct & SetRequiredDisplayMode & BeginRedraw & EndRedraw & SetBackgroundColor & SetSize & SetTransparencyFactor, CWindowGc::Activate & Deactivate -//! @SYMTestActions 1. Setup and display a background RWindow and a foreground RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a background RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K), SetBackgroundColor to TRgb(255,255,0) for the RWindow -//! 1.6 Activate the CWindowGc to the RWindow, and BeginRedraw & EndRedraw to display the background RWindow -//! 1.7 New and construct a foreground RWindow as the child of the background RWindow -//! and SetRequiredDisplayMode (to EColor4K), and SetSize to width 100 & height 100 (smaller than background RWindow) -//! 1.8 SetAutoFlush to TRUE for the RWsSession -//! 2. for the foreground RWindow, SetBackgroundColor to TRgb(0,0,255) -//! and SetTransparencyFactor to TRgb(51,51,51), i.e. alpha factor = 51 -//! 3. Execute SetTransparencyPolicy to set foreground RWindow to ETransparencyDefault -//! 4. Activate the foreground RWindow, execute BeginRedraw & EndRedraw to display the foreground RWindow -//! 5. Check if the foreground RWindow is displayed with the transparency factor -//! 6. Use SetBackgroundColor to change the background RWindow to TRgb(255,0,0) (from TRgb(255,255,0)) -//! 7. Invalidate the background RWindow, execute BeginRedraw & EndRedraw to redraw the background RWindow -//! 8. Check if the foreground RWindow is displayed with the transparency factor (over new background RWindow color) -//! 9. Destruct and close all the objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. SetTransparencyPolicy() method returns KErrNone without causing panic -//! 2. Check if the foreground RWindow is displayed as expected -//! 2.1 before the background RWindow changes its background color -//! the foreground RWindow is displayed as the result of alpha blending with source = foreground RWindow color TRgb(0,0,255) -//! with window = the background RWindow color before change TRgb(255,255,0), and alpha factor = 51 -//! 2.2 after the background RWindow changes its background color -//! the foreground RWindow is displayed as the result of alpha blending with source = foreground RWindow color TRgb(0,0,255) -//! with window = the changed background RWindow color TRgb(255,0,0), and alpha factor = 51 -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow backwin - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-Window-Setup-0003-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command009 - COMMAND backwin new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command011 - COMMAND backwin Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command012 - COMMAND backwin SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command013 - COMMAND backwin SetBackgroundColor GRAPHICS-WSERV-Window-Setup-0003-0001-SetBackgroundColor_command014 - COMMAND backwin Activate - COMMAND backwin BeginRedraw - COMMAND backwin EndRedraw - COMMAND win new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command022 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command023 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command025 - COMMAND win SetSize GRAPHICS-WSERV-Window-Setup-0003-0001-SetSize_command026 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-Window-Setup-0003-0001-SetAutoFlush_command027 - - COMMAND win SetBackgroundColor GRAPHICS-WSERV-Window-PublicApi-0022-0001-SetBackgroundColor_command001 - COMMAND win SetTransparencyAlphaChannel - COMMAND win SetTransparencyPolicy GRAPHICS-WSERV-Window-PublicApi-0022-0001-SetTransparencyPolicy_command003 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND wingc Deactivate - COMMAND wingc Activate GRAPHICS-WSERV-Window-PublicApi-0022-0001-Activate_command013 - COMMAND backwin SetBackgroundColor GRAPHICS-WSERV-Window-PublicApi-0022-0001-SetBackgroundColor_command015 - COMMAND backwin Invalidate - COMMAND backwin BeginRedraw - COMMAND backwin EndRedraw - COMMAND wingc Deactivate - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND backwin Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0022 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0023 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0023 -//! @SYMAPI RWindow -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 14/03/2007 -//! @SYMTestCaseDesc IsRedrawStoreEnabled(): returns whether the window uses a redraw store to store drawing commands -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Create and construct a simple RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a RWindowGroup within the RWsSession -//! 1.3 New and construct a RWindow as the child of the RWindowGroup -//! 2. Execute IsRedrawStoreEnabled to get and check if the default redraw store flag of the window is TRUE -//! 3. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Run IsRedrawStoreEnabled() method without causing panic -//! 2. The default redraw store flag for the RWindow is TRUE -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 - - COMMAND win IsRedrawStoreEnabled GRAPHICS-WSERV-Window-PublicApi-0023-0001-IsRedrawStoreEnabled_command001 - - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0023 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0024 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0024 -//! @SYMAPI RWindow -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 03/05/2007 -//! @SYMTestCaseDesc EnableOSB(TBool): enables the WSERV to use its OSB -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & CreateContext & GetPixel, RWindowGroup::Construct, -//! RWindow::Construct & SetRequiredDisplayMode & BeginRedraw & EndRedraw & SetBackgroundColor & SetSize, CWindowGc::Activate & Deactivate & DrawRect -//! @SYMTestActions 1. Setup and display a background RWindow and a foreground RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a background RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K), SetBackgroundColor to TRgb(255,255,0) for the RWindow -//! 1.6 Activate the CWindowGc to the RWindow, and BeginRedraw & EndRedraw to display the background RWindow -//! 1.7 New and construct a foreground RWindow as the child of the background RWindow -//! and SetRequiredDisplayMode (to EColor4K), and SetSize to width 100 & height 100 (smaller than background RWindow) -//! 1.8 SetAutoFlush to TRUE for the RWsSession -//! 2. Execute EnableOSB to enable WSERV to use its OSB -//! 3. SetBackgroundColor to TRgb(0,0,255) for the foreground RWindow -//! 4. Activate the CWindowGc to the foreground RWindow -//! 5. 1st redraw: Activate the foreground RWindow, then BeginRedraw -//! DrawRect to draw a rectangle in the left TRect((10,10),(30,30)), and EndRedraw to display it -//! 6. Check if the left rectangle is correctly filled -//! and beyond the drawing is drawn with the background color TRgb(0,0,255) -//! 7. 2nd redraw: Invalidate the whole foreground RWindow, then BeginRedraw -//! DrawRect to draw a rectangle in the right TRect((40,10),(60,30)), and EndRedraw to display it -//! 8. Check if the right rectangle is correctly filled, and the left rectangle is cleared -//! 9. Deactivate the CWindowGc from the foreground RWindow -//! 10. Destruct and close all the objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Run EnableOSB() method without causing panic -//! 2. Check the display of the foreground RWindow -//! 2.1 after 1st redraw, inside the left is filled with the brush color TRgb(255,0,0): TRect((11,11),(29,29)) -//! beyond left rectangle is drawn with the background color TRgb(0,0,255): TRect((31,11),(49,29)), TRect((51,11),(69,29)) -//! 2.2 after 2nd redraw, inside the right is filled with the brush color TRgb(255,0,0): TRect((51,11),(69,29)) -//! the left rectangle is cleared to the background color TRgb(0,0,255): TRect((31,11),(49,29)) -//! beyond left and right rectangle is drawn with the background color TRgb(0,0,255): TRect((31,11),(49,29)) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow backwin - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-Window-Setup-0003-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command009 - COMMAND backwin new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command011 - COMMAND backwin Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command012 - COMMAND backwin SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command013 - COMMAND backwin SetBackgroundColor GRAPHICS-WSERV-Window-Setup-0003-0001-SetBackgroundColor_command014 - COMMAND backwin Activate - COMMAND backwin BeginRedraw - COMMAND backwin EndRedraw - COMMAND win new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command022 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command023 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command025 - COMMAND win SetSize GRAPHICS-WSERV-Window-Setup-0003-0001-SetSize_command026 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-Window-Setup-0003-0001-SetAutoFlush_command027 - - COMMAND win EnableOSB GRAPHICS-WSERV-Window-PublicApi-0024-0001-EnableOSB_command001 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-Window-PublicApi-0024-0001-SetBackgroundColor_command002 - COMMAND win Activate - COMMAND wingc Activate GRAPHICS-WSERV-Window-PublicApi-0024-0001-Activate_command003 - COMMAND win BeginRedraw - COMMAND wingc SetBrushColor GRAPHICS-WSERV-Window-PublicApi-0024-0001-SetBrushColor_command006 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-Window-PublicApi-0024-0001-SetBrushStyle_command007 - COMMAND wingc DrawRect GRAPHICS-WSERV-Window-PublicApi-0024-0001-DrawRect_command008 - COMMAND win EndRedraw - COMMAND scrdev checkRectColor GRAPHICS-WSERV-Window-PublicApi-0024-0001-checkRectColor_command012 - COMMAND win Invalidate - COMMAND win BeginRedraw - COMMAND wingc DrawRect GRAPHICS-WSERV-Window-PublicApi-0024-0001-DrawRect_command017 - COMMAND win EndRedraw - COMMAND scrdev checkRectColor GRAPHICS-WSERV-Window-PublicApi-0024-0001-checkRectColor_command021 - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND backwin Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0024 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0025 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0025 -//! @SYMAPI RWindow -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 03/05/2007 -//! @SYMTestCaseDesc EnableOSB(TBool): Disables the WSERV to force it to not use its OSB -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & CreateContext & GetPixel, RWindowGroup::Construct, -//! RWindow::Construct & SetRequiredDisplayMode & BeginRedraw & EndRedraw & SetBackgroundColor & SetSize, CWindowGc::Activate & Deactivate & DrawRect -//! @SYMTestActions 1. Setup and display a background RWindow and a foreground RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a background RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K), SetBackgroundColor to TRgb(255,255,0) for the RWindow -//! 1.6 Activate the CWindowGc to the RWindow, and BeginRedraw & EndRedraw to display the background RWindow -//! 1.7 New and construct a foreground RWindow as the child of the background RWindow -//! and SetRequiredDisplayMode (to EColor4K), and SetSize to width 100 & height 100 (smaller than background RWindow) -//! 1.8 SetAutoFlush to TRUE for the RWsSession -//! 2. Execute EnableOSB to enable WSERV to use its OSB -//! 3. SetBackgroundColor to TRgb(0,0,255) for the foreground RWindow -//! 4. Activate the CWindowGc to the foreground RWindow -//! 5. 1st redraw: Activate the foreground RWindow, then BeginRedraw -//! DrawRect to draw a rectangle in the left TRect((10,10),(30,30)), and EndRedraw to display it -//! 6. Check if the left rectangle is correctly filled -//! and beyond the drawing is drawn with the background color TRgb(0,0,255) -//! 7. 2nd redraw: Invalidate the whole foreground RWindow, then BeginRedraw -//! DrawRect to draw a rectangle in the right TRect((40,10),(60,30)), and EndRedraw to display it -//! 8. Check if the right rectangle is correctly filled, and the left rectangle is cleared -//! 9. Deactivate the CWindowGc from the foreground RWindow -//! 10. Destruct and close all the objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Run EnableOSB() method without causing panic -//! 2. Check the display of the foreground RWindow -//! 2.1 after 1st redraw, inside the left is filled with the brush color TRgb(255,0,0): TRect((11,11),(29,29)) -//! beyond left rectangle is drawn with the background color TRgb(0,0,255): TRect((31,11),(49,29)), TRect((51,11),(69,29)) -//! 2.2 after 2nd redraw, inside the right is filled with the brush color TRgb(255,0,0): TRect((51,11),(69,29)) -//! the left rectangle is cleared to the background color TRgb(0,0,255): TRect((31,11),(49,29)) -//! beyond left and right rectangle is drawn with the background color TRgb(0,0,255): TRect((31,11),(49,29)) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow backwin - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-Window-Setup-0003-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command009 - COMMAND backwin new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command011 - COMMAND backwin Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command012 - COMMAND backwin SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command013 - COMMAND backwin SetBackgroundColor GRAPHICS-WSERV-Window-Setup-0003-0001-SetBackgroundColor_command014 - COMMAND backwin Activate - COMMAND backwin BeginRedraw - COMMAND backwin EndRedraw - COMMAND win new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command022 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command023 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command025 - COMMAND win SetSize GRAPHICS-WSERV-Window-Setup-0003-0001-SetSize_command026 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-Window-Setup-0003-0001-SetAutoFlush_command027 - - COMMAND win EnableOSB GRAPHICS-WSERV-Window-PublicApi-0025-0001-EnableOSB_command001 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-Window-PublicApi-0025-0001-SetBackgroundColor_command002 - COMMAND win Activate - COMMAND wingc Activate GRAPHICS-WSERV-Window-PublicApi-0025-0001-Activate_command003 - COMMAND win BeginRedraw - COMMAND wingc SetBrushColor GRAPHICS-WSERV-Window-PublicApi-0025-0001-SetBrushColor_command006 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-Window-PublicApi-0025-0001-SetBrushStyle_command007 - COMMAND wingc DrawRect GRAPHICS-WSERV-Window-PublicApi-0025-0001-DrawRect_command008 - COMMAND win EndRedraw - COMMAND scrdev checkRectColor GRAPHICS-WSERV-Window-PublicApi-0025-0001-checkRectColor_command012 - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND backwin Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0025 - - - -// **************************************************************************** -// RWindow Public APIs inherited from RDrawableWindow -// **************************************************************************** - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0101 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0101 -//! @SYMAPI RDrawableWindow -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 19/04/2007 -//! @SYMTestCaseDesc Scroll(const TPoint &aOffset): scroll the window content by the specified offset -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & CopyScreenToBitmap & GetPixel, RWindowGroup::Construct, -//! RWindow::Construct & BeginRedraw & EndRedraw & GetInvalidRegion, CWindowGc::Construct & Activate & Deactivate & DrawRect -//! @SYMTestActions 1. Setup and display a RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow and Activate it -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush -//! 1.8 Set RWindow size to height 100, width 100, and Activate the window -//! 2. Draw something on the RWindow: BeginRedraw, DrawRect ((3,2),(40,30)), then EndRedraw -//! 3. Use RWindow::GetInvalidRegion to check if the invalid region of the RWindow is empty -//! 4. Execute Scroll to scroll the window content by the specified offset (5,4) -//! 5. Check if the invalid region after scroll is as expected -//! 6. Check if the drawing on the screen as expected -//! 7. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Scroll() was executed without causing panic -//! 2. Check the drawing result after scroll: to scroll TRect((0,0),(100,100)) to ((5,4),(105,104)) -//! 2.1 the scrolled destination in TRect((5,4),(100,100)) is the same as the source of TRect((0,0),(95,96)) -//! 2.2 beyond the scrolled destination area should keep the same as the drawing before scroll -//! only sample the areas of TRect((0,0),(100,4)) ((0,4),(5,100)) -//! 3. Check the invalid region -//! 3.1 before scroll: the invalid region is empty: TRect((0,0),(0,0)) -//! 3.2 after scroll: beyond the destination window context in TRect((5,4),(100,100)) -//! the invalid region should be TRect((0,0),(100,4)) & TRect((0,4),(5,100)) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-Window-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-Window-Setup-0002-0001-SetAutoFlush_command015 - COMMAND wingc Activate GRAPHICS-WSERV-Window-Setup-0002-0001-Activate_command017 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-Window-Setup-0002-0001-SetBrushColor_command18 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-Window-Setup-0002-0001-SetBrushStyle_command19 - COMMAND win SetSize GRAPHICS-WSERV-Window-Setup-0002-0001-SetSize_command20 - COMMAND win Activate - - COMMAND win BeginRedraw - COMMAND wingc DrawRect GRAPHICS-WSERV-Window-PublicApi-0101-0001-DrawRect_command03 - COMMAND win EndRedraw - COMMAND win GetInvalidRegion GRAPHICS-WSERV-Window-PublicApi-0101-0001-GetInvalidRegion_command06 - COMMAND win Scroll GRAPHICS-WSERV-Window-PublicApi-0101-0001-Scroll_command10 - COMMAND win GetInvalidRegion GRAPHICS-WSERV-Window-PublicApi-0101-0001-GetInvalidRegion_command11 - COMMAND scrdev checkLineColor GRAPHICS-WSERV-Window-PublicApi-0101-0001-checkLineColor_command13 - COMMAND scrdev checkRectColor GRAPHICS-WSERV-Window-PublicApi-0101-0001-checkRectColor_command14 - COMMAND scrdev checkLineColor GRAPHICS-WSERV-Window-PublicApi-0101-0001-checkLineColor_command15 - COMMAND scrdev checkRectColor GRAPHICS-WSERV-Window-PublicApi-0101-0001-checkRectColor_command16 - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0101 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0102 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0102 -//! @SYMAPI RDrawableWindow -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 19/04/2007 -//! @SYMTestCaseDesc Scroll(const TRect &aClipRect, const TPoint &aOffset): scroll the window content within the clip rectangle -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & CopyScreenToBitmap & GetPixel, RWindowGroup::Construct, -//! RWindow::Construct & BeginRedraw & EndRedraw & GetInvalidRegion, CWindowGc::Construct & Activate & Deactivate & DrawRect -//! @SYMTestActions 1. Setup and display a RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow and Activate it -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush -//! 1.8 Set RWindow size to height 100, width 100, and Activate the window -//! 2. Draw something on the RWindow: BeginRedraw, DrawRect ((11,10),(41,30)), then EndRedraw -//! 3. Use RWindow::GetInvalidRegion to check if the invalid region of the RWindow is empty -//! 4. Execute Scroll to scroll the window content by the specified offset (10,5) within clip rectangle TRect((10,10),(30,40)) -//! 5. Check if the invalid region after scroll is as expected -//! 6. Check if the drawing on the screen as expected -//! 7. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Scroll() was executed without causing panic -//! 2. Check the drawing result after scroll: to scroll TRect((10,10),(30,40)) to ((20,15),(40,45)) within TRect((10,10),(30,40)) -//! 2.1 the scrolled destination in TRect((20,15),(30,40)) is the same as the source of TRect((10,10),(20,35)) -//! 2.2 beyond the scrolled destination area should keep the same as the drawing before scroll -//! only sample the areas of TRect((0,0),(50,15)) ((0,15),(20,40)) ((30,15),(50,40)) ((0,40),(50,50)) -//! 3. Check the invalid region -//! 3.1 before scroll: the invalid region is empty: TRect((0,0),(0,0)) -//! 3.2 after scroll: beyond the destination window context in TRect((20,15),(30,40)) and within TRect((10,10),(30,40)) -//! the invalid region should be TRect((10,10),(30,15)) & TRect((10,15),(20,40)) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-Window-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-Window-Setup-0002-0001-SetAutoFlush_command015 - COMMAND wingc Activate GRAPHICS-WSERV-Window-Setup-0002-0001-Activate_command017 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-Window-Setup-0002-0001-SetBrushColor_command18 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-Window-Setup-0002-0001-SetBrushStyle_command19 - COMMAND win SetSize GRAPHICS-WSERV-Window-Setup-0002-0001-SetSize_command20 - COMMAND win Activate - - COMMAND win BeginRedraw - COMMAND wingc DrawRect GRAPHICS-WSERV-Window-PublicApi-0102-0001-DrawRect_command03 - COMMAND win EndRedraw - COMMAND win GetInvalidRegion GRAPHICS-WSERV-Window-PublicApi-0102-0001-GetInvalidRegion_command06 - COMMAND win Scroll GRAPHICS-WSERV-Window-PublicApi-0102-0001-Scroll_command10 - COMMAND win GetInvalidRegion GRAPHICS-WSERV-Window-PublicApi-0102-0001-GetInvalidRegion_command11 - COMMAND scrdev checkLineColor GRAPHICS-WSERV-Window-PublicApi-0102-0001-checkLineColor_command13 - COMMAND scrdev checkRectColor GRAPHICS-WSERV-Window-PublicApi-0102-0001-checkRectColor_command14 - COMMAND scrdev checkLineColor GRAPHICS-WSERV-Window-PublicApi-0102-0001-checkLineColor_command15 - COMMAND scrdev checkRectColor GRAPHICS-WSERV-Window-PublicApi-0102-0001-checkRectColor_command16 - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0102 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0103 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0103 -//! @SYMAPI RDrawableWindow -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 19/04/2007 -//! @SYMTestCaseDesc Scroll(const TPoint &aOffset, const TRect &aRect): scroll a rectangle within a window -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & CopyScreenToBitmap & GetPixel, RWindowGroup::Construct, -//! RWindow::Construct & BeginRedraw & EndRedraw & GetInvalidRegion, CWindowGc::Construct & Activate & Deactivate & DrawRect -//! @SYMTestActions 1. Setup and display a RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow and Activate it -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush -//! 1.8 Set RWindow size to height 100, width 100, and Activate the window -//! 2. Draw something on the RWindow: BeginRedraw, DrawRect ((11,10),(41,30)), then EndRedraw -//! 3. Use RWindow::GetInvalidRegion to check if the invalid region of the RWindow is empty -//! 4. Execute Scroll to scroll the TRect((10,10),(30,40)) by the specified offset (10,5) within the window -//! 5. Check if the invalid region after scroll is still empty -//! 6. Check if the drawing on the screen as expected -//! 7. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Scroll was executed without causing panic -//! 2. Check the drawing result after scroll: to scroll TRect((10,10),(30,40)) to ((20,15),(40,45)) -//! 2.1 the scrolled destination in TRect((20,15),(40,45)) ahould be the same the source of TRect((10,10),(30,40)) -//! 2.2 beyond the scrolled destination area should keep the same as the drawing before scroll -//! only sample the areas of TRect((0,0),(100,15)) ((0,15),(20,45)) ((40,15),(100,45)) ((0,45),(100,60)) -//! 3. Check the invalid region -//! 3.1 before scroll: the invalid region is empty: TRect((0,0),(0,0)) -//! 3.2 after scroll: the invalid region is empty: TRect((0,0),(0,0)) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-Window-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-Window-Setup-0002-0001-SetAutoFlush_command015 - COMMAND wingc Activate GRAPHICS-WSERV-Window-Setup-0002-0001-Activate_command017 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-Window-Setup-0002-0001-SetBrushColor_command18 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-Window-Setup-0002-0001-SetBrushStyle_command19 - COMMAND win SetSize GRAPHICS-WSERV-Window-Setup-0002-0001-SetSize_command20 - COMMAND win Activate - - COMMAND win BeginRedraw - COMMAND wingc DrawRect GRAPHICS-WSERV-Window-PublicApi-0103-0001-DrawRect_command03 - COMMAND win EndRedraw - COMMAND win GetInvalidRegion GRAPHICS-WSERV-Window-PublicApi-0103-0001-GetInvalidRegion_command06 - COMMAND win Scroll GRAPHICS-WSERV-Window-PublicApi-0103-0001-Scroll_command10 - COMMAND win GetInvalidRegion GRAPHICS-WSERV-Window-PublicApi-0103-0001-GetInvalidRegion_command11 - COMMAND scrdev checkLineColor GRAPHICS-WSERV-Window-PublicApi-0103-0001-checkLineColor_command13 - COMMAND scrdev checkRectColor GRAPHICS-WSERV-Window-PublicApi-0103-0001-checkRectColor_command14 - COMMAND scrdev checkLineColor GRAPHICS-WSERV-Window-PublicApi-0103-0001-checkLineColor_command15 - COMMAND scrdev checkRectColor GRAPHICS-WSERV-Window-PublicApi-0103-0001-checkRectColor_command16 - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0103 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0104 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0104 -//! @SYMAPI RDrawableWindow -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 19/04/2007 -//! @SYMTestCaseDesc Scroll(const TRect &aClipRect, const TPoint &aOffset, const TRect &aRect): scroll a source rectangle content within the clip rectangle -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & CopyScreenToBitmap & GetPixel, RWindowGroup::Construct, -//! RWindow::Construct & BeginRedraw & EndRedraw & GetInvalidRegion, CWindowGc::Construct & Activate & Deactivate & DrawRect -//! @SYMTestActions 1. Setup and display a RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow and Activate it -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush -//! 1.8 Set RWindow size to height 100, width 100, and Activate the window -//! 2. Draw something on the RWindow: BeginRedraw, DrawRect ((11,10),(41,30)), then EndRedraw -//! 3. Use RWindow::GetInvalidRegion to check if the invalid region of the RWindow is empty -//! 4. Execute Scroll to scroll the TRect((10,10),(41,30)) by the specified offset (40,30) within clip rectangle TRect((20,15),(100,100)) -//! 5. Check if the invalid region after scroll is as expected -//! 6. Check if the drawing on the screen as expected -//! 7. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Scroll() was executed without causing panic -//! 2. Check the drawing result after scroll: to scroll TRect((10,10),(41,30)) to ((50,40),(81,60)) within TRect((20,15),(100,100)) -//! 2.1 check the scrolled destination should match its source: the area needs the following calculation -//! 2.1.1 from the source within clip rectangle only: TRect((20,15),(41,30)) -//! 2.1.2 scroll 2.1.1 area and within clip rectangle makes the scrolled destination: TRect((60,45),(81,60)) -//! 2.1.3 the scrolled destination should be the same as the source of TRect((20,15),(41,30)) -//! 2.2 beyond the scrolled destination area should keep the same as the drawing before scroll -//! only sample the areas of TRect((10,10),(41,30)) ((50,40),(81,45)) ((50,45),(60,60)) -//! 3. Check the invalid region -//! 3.1 before scroll: the invalid region is empty: TRect((0,0),(0,0)) -//! 3.2 after scroll: the invalid region needs the following calculation -//! 3.2.1 from the source beyond clip rectangle: TRect((10,10),(41,15)) ((10,15),(20,30)) -//! 3.2.2 scroll 3.2.1 area and within clip rectangle makes the invalid region: TRect((50,40),(81,45)) ((50,45),(60,60)) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-Window-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-Window-Setup-0002-0001-SetAutoFlush_command015 - COMMAND wingc Activate GRAPHICS-WSERV-Window-Setup-0002-0001-Activate_command017 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-Window-Setup-0002-0001-SetBrushColor_command18 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-Window-Setup-0002-0001-SetBrushStyle_command19 - COMMAND win SetSize GRAPHICS-WSERV-Window-Setup-0002-0001-SetSize_command20 - COMMAND win Activate - - COMMAND win BeginRedraw - COMMAND wingc DrawRect GRAPHICS-WSERV-Window-PublicApi-0104-0001-DrawRect_command03 - COMMAND win EndRedraw - COMMAND win GetInvalidRegion GRAPHICS-WSERV-Window-PublicApi-0104-0001-GetInvalidRegion_command06 - COMMAND win Scroll GRAPHICS-WSERV-Window-PublicApi-0104-0001-Scroll_command10 - COMMAND win GetInvalidRegion GRAPHICS-WSERV-Window-PublicApi-0104-0001-GetInvalidRegion_command11 - COMMAND scrdev checkLineColor GRAPHICS-WSERV-Window-PublicApi-0104-0001-checkLineColor_command13 - COMMAND scrdev checkRectColor GRAPHICS-WSERV-Window-PublicApi-0104-0001-checkRectColor_command14 - COMMAND scrdev checkLineColor GRAPHICS-WSERV-Window-PublicApi-0104-0001-checkLineColor_command15 - COMMAND scrdev checkRectColor GRAPHICS-WSERV-Window-PublicApi-0104-0001-checkRectColor_command16 - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0104 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0105 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0105 -//! @SYMAPI RDrawableWindow -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 29/01/2007 -//! @SYMTestCaseDesc GetDrawRect(): Obtain the current rectangle being drawn to this window (test in RWindow object) -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw -//! @SYMTestActions 1. Setup a simple RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a RWindowGroup within the RWsSession -//! 1.3 New and construct a RWindow as the child of the RWindowGroup -//! 2. Execute GetDrawRect to check if the drawing rectangle is empty -//! 3. Use RWindow::BeginRedraw() method with specified redraw rectangle: TRect((21,20),(51,50)) -//! 4. Execute GetDrawRect again to check if the drawing rectangle the same as the specified -//! 5. Use RWindow::EndRedraw() to end the redraw cycle -//! 6. Execute GetDrawRect again to check if the drawing rectangle is cleared back to empty -//! 7. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults 1. GetDrawRect() was called without causing panic -//! 2. The returned rectangle is the same as expected -//! 2.1 beyond window's redraw cycle, the drawing rectangle should be empty: TRect((0,0),(0,0)) -//! 2.2 inside window's redraw cycle, the drawing rectangle should be the same as the specified TRect((21,20),(51,50)) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 - - COMMAND win GetDrawRect GRAPHICS-WSERV-Window-PublicApi-0105-0001-GetDrawRect_command01 - COMMAND win BeginRedraw GRAPHICS-WSERV-Window-PublicApi-0105-0001-BeginRedraw_command02 - COMMAND win GetDrawRect GRAPHICS-WSERV-Window-PublicApi-0105-0001-GetDrawRect_command03 - COMMAND win EndRedraw - COMMAND win GetDrawRect GRAPHICS-WSERV-Window-PublicApi-0105-0001-GetDrawRect_command05 - - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0105 - - - - - - -// **************************************************************************** -// RWindow Public APIs inherited from RWindowBase -// **************************************************************************** - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0201 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0201 -//! @SYMAPI RWindowBase -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc Activate(): display the window and enable it to receive events -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Setup a simple RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a RWindowGroup within the RWsSession -//! 1.3 New and construct a RWindow as the child of the RWindowGroup -//! 2. Execute Activate() for the RWindow -//! 3. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults Activate() method called without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 - - COMMAND win Activate - - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0201 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0202 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0202 -//! @SYMAPI RWindowBase -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc SetPosition(const TPoint &point): set the window (test in RWindow) position relative to its parent -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct, RWindowBase::InquireOffset -//! @SYMTestActions 1. Setup a simple RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a RWindowGroup within the RWsSession -//! 1.3 New and construct a RWindow as the child of the RWindowGroup -//! 2. Execute SetPosition set the RWindow position as the specified in test data (11,12) -//! 3. Use InquireOffset() to check if the window position relative to its parent as specified -//! 4. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. SetPosition() method called without causing panic -//! 2. The offset between (0,0) and RWindow is the same as specifed (11,12) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 - - COMMAND win SetPosition GRAPHICS-WSERV-Window-PublicApi-0202-0001-SetPosition_command01 - COMMAND win Position GRAPHICS-WSERV-Window-PublicApi-0202-0001-Position_command02 - - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0202 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0203 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0203 -//! @SYMAPI RWindowBase -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc SetSizeErr(const TSize &size): set the window (test in RWindow) size -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct, RWindowBase::Size -//! @SYMTestActions 1. Setup a simple RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a RWindowGroup within the RWsSession -//! 1.3 New and construct a RWindow as the child of the RWindowGroup -//! 2. Execute SetSizeErr to set the child RWindow size as the specified in test data (width=40,height=50) -//! 3. Use Size() to check if the window size as specified -//! 4. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. SetSizeErr() method returns KErrNone without causing panic -//! 2. The size of child RWindow is the same as specifed (width=40,height=50) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 - - COMMAND win SetSizeErr GRAPHICS-WSERV-Window-PublicApi-0203-0001-SetSizeErr_command01 - COMMAND win Size GRAPHICS-WSERV-Window-PublicApi-0203-0001-Size_command02 - - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0203 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0204 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0204 -//! @SYMAPI RWindowBase -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc SetExtentErr(const TPoint &point, const TSize &size): set the window (test in RWindow) extent -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct, RWindowBase::InquireOffset & Size -//! @SYMTestActions 1. Setup a simple RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a RWindowGroup within the RWsSession -//! 1.3 New and construct a RWindow as the child of the RWindowGroup -//! 2. Execute SetExtentErr to set the child RWindow extent as the specified test data (at (11,12) and width=40,height=50) -//! 3. Use InquireOffset() and Size() to check if the window position and size as specified -//! 4. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. SetExtentErr() method returns KErrNone without causing panic -//! 2. The offset and size of the child RWindow should be the same as specified -//! 2.1 The offset between parent and child RWindow is (11,12) -//! 2.2 The size of child RWindow is width=40,height=50 -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 - - COMMAND win SetExtentErr GRAPHICS-WSERV-Window-PublicApi-0204-0001-SetExtentErr_command01 - COMMAND win Position GRAPHICS-WSERV-Window-PublicApi-0204-0001-Position_command02 - COMMAND win Size GRAPHICS-WSERV-Window-PublicApi-0204-0001-Size_command03 - - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0204 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0205 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0205 -//! @SYMAPI RWindowBase -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 12/02/2007 -//! @SYMTestCaseDesc Size(): get the window (test in RWindow) current size -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct, RWindowBase::SetSizeErr -//! @SYMTestActions 1. Setup a simple RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a RWindowGroup within the RWsSession -//! 1.3 New and construct a RWindow as the child of the RWindowGroup -//! 2. Execute Size to get the current size of child RWindow, and check if it's the same as the default (screen size) -//! 3. Use SetSizeErr() to change the RWindow size as specified (width=120, height=200) -//! 4. Execute Size again to check if the RWindow size as specified -//! 5. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Size() method called without causing panic -//! 2.1 The initial child RWindow is the same as the screen size -//! 2.2 The size of child RWindow is the same as new size specified by SetSizeErr (width=120, height=200) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 - - COMMAND win Size GRAPHICS-WSERV-Window-PublicApi-0205-0001-Size_command01 - COMMAND win SetSizeErr GRAPHICS-WSERV-Window-PublicApi-0205-0001-SetSizeErr_command02 - COMMAND win Size GRAPHICS-WSERV-Window-PublicApi-0205-0001-Size_command03 - - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0205 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0206 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0206 -//! @SYMAPI RWindowBase -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 12/02/2007 -//! @SYMTestCaseDesc InquireOffset(const RWindowTreeNode &aWindow): enquire the offset between the window (test in RWindow) and another window -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct, RWindowBase::SetPosition -//! @SYMTestActions 1. Setup a simple RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a RWindowGroup within the RWsSession -//! 1.3 New and construct a RWindow as the child of the RWindowGroup -//! 2. Execute InquireOffset to get the offset between child RWindow and WindowGroup, and check if it returns the default (0,0) -//! 3. Use SetPosition() to change the window position (11,12) -//! 4. Execute InquireOffset again to check if the offset is the new position as specified -//! 5. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. InquireOffset() method called without causing panic -//! 2.1 The initial offset between child RWindow and RWindowGroup is the same as (0,0) -//! 2.2 The offset between child RWindow and RWindowGroup is the same as new position specified by SetPosition (11,12) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 - - COMMAND win InquireOffset GRAPHICS-WSERV-Window-PublicApi-0206-0001-InquireOffset_command01 - COMMAND win SetPosition GRAPHICS-WSERV-Window-PublicApi-0206-0001-SetPosition_command02 - COMMAND win InquireOffset GRAPHICS-WSERV-Window-PublicApi-0206-0001-InquireOffset_command03 - - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0206 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0207 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0207 -//! @SYMAPI RWindowBase -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 05/07/2007 -//! @SYMTestCaseDesc PointerFilter(TUint32 aFilterMask, TUint32 aFilter): set the filter which controls which pointer events are sent to the client session (test in RWindow) -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Setup a simple RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a RWindowGroup within the RWsSession -//! 1.3 New and construct a RWindow as the child of the RWindowGroup -//! 2. Execute PointerFilter with FilerMask=EPointerFilterEnterExit|EPointerFilterMove & Filter=EPointerFilterMove -//! 3. Close all objects used -//! @SYMTestStatus Defined -//! @SYMTestPriority High -//! @SYMTestExpectedResults PointerFilter() method called without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 - - COMMAND win PointerFilter GRAPHICS-WSERV-Window-PublicApi-0207-0001-PointerFilter_command01 - - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0207 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0208 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0208 -//! @SYMAPI RWindowBase -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 02/07/2007 -//! @SYMTestCaseDesc SetPointerGrab(TBool aState): allow/disallow pointer grabs in a window (test in RWindow) -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Setup a simple RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a RWindowGroup within the RWsSession -//! 1.3 New and construct a RWindow as the child of the RWindowGroup -//! 2. Execute SetPointerGrab() with state=TRUE -//! 3. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults SetPointerGrab called without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 - - COMMAND win SetPointerGrab GRAPHICS-WSERV-Window-PublicApi-0000-0001-SetPointerGrab_TRUE - - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0208 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0209 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0209 -//! @SYMAPI RWindowBase -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 02/07/2007 -//! @SYMTestCaseDesc ClaimPointerGrab(TBool aSendUpEvent=ETrue): (test in RWindow) -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Setup a simple RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a RWindowGroup within the RWsSession -//! 1.3 New and construct a RWindow as the child of the RWindowGroup -//! 2. Execute ClaimPointerGrab() with sendupevent=TRUE -//! 3. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults ClaimPointerGrab called without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 - - COMMAND win ClaimPointerGrab GRAPHICS-WSERV-Window-PublicApi-0000-0001-ClaimPointerGrab_TRUE - - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0209 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0210 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0210 -//! @SYMAPI RWindowBase -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 04/07/2007 -//! @SYMTestCaseDesc SetPointerCapture(): set the pointer capture state (test in RWindow) -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Setup a simple RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a RWindowGroup within the RWsSession -//! 1.3 New and construct a RWindow as the child of the RWindowGroup -//! 2. Execute SetPointerCapture() with flags of TCaptureFlagEnabled | TCaptureFlagDragDrop | TCaptureFlagAllGroups -//! 3. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults SetPointerCapture called without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 - - COMMAND win SetPointerCapture GRAPHICS-WSERV-Window-PublicApi-0210-0001-SetPointerCapture_command01 - - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0210 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0211 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0211 -//! @SYMAPI RWindowBase -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 25/06/2007 -//! @SYMTestCaseDesc SetPointerCapturePriority(TInt aPriority): set the window's pointer capture priority (test in RWindow) -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindowBase::GetPointerCapturePriority, RWindow::Construct -//! @SYMTestActions 1. Setup a simple RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a RWindowGroup within the RWsSession -//! 1.3 New and construct a RWindow as the child of the RWindowGroup -//! 2. Execute SetPointerCapturePriority() to set window's pointer capture priority to 5 -//! 3. Use GetPointerCapturePriority() to check the window's pointer capture priority as specified -//! 4. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults Test passes with no error or panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 - COMMAND win SetPointerCapturePriority GRAPHICS-WSERV-Window-PublicApi-0211-0001-SetPointerCapturePriority_command01 - COMMAND win GetPointerCapturePriority GRAPHICS-WSERV-Window-PublicApi-0211-0001-GetPointerCapturePriority_command02 - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0211 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0212 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0212 -//! @SYMAPI RWindowBase -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 25/06/2007 -//! @SYMTestCaseDesc TInt GetPointerCapturePriority(): get the window's pointer capture priority (test in RWindow) -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Setup a simple RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a RWindowGroup within the RWsSession -//! 1.3 New and construct a RWindow as the child of the RWindowGroup -//! 2. Execute GetPointerCapturePriority() and check the default window's pointer capture priority = 0 -//! 3. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults Test passes with no error or panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 - COMMAND win GetPointerCapturePriority GRAPHICS-WSERV-Window-PublicApi-0212-0001-GetPointerCapturePriority_command01 - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0212 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0213 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0213 -//! @SYMAPI RWindowBase -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 13/02/2007 -//! @SYMTestCaseDesc SetVisible(TBool aState): set the visibility of the window (test in RWindow) -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindowBase::SetRequiredDisplayMode & Activate, RWindow::Construct & SetColor -//! @SYMTestActions 1. Setup and display a background RWindow and a foreground RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a background RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K), SetBackgroundColor to TRgb(255,255,0) for the RWindow -//! 1.6 Activate the CWindowGc to the RWindow, and BeginRedraw & EndRedraw to display the background RWindow -//! 1.7 New and construct a foreground RWindow as the child of the background RWindow -//! and SetRequiredDisplayMode (to EColor4K), and SetSize to width 100 & height 100 (smaller than background RWindow) -//! 1.8 SetAutoFlush to TRUE for the RWsSession -//! 2. Use SetBackgroundColor to set the background color of the foreground RWindow to TRgb(255,0,0) -//! 3. Activate the CWindowGc to the RWindow, and BeginRedraw & EndRedraw to display the foreground RWindow -//! 4. Check the drawing result: the whole screen should be the specified background color -//! 5. Execute SetVisible to FALSE for the child RWindow -//! 6. Use BeginRedraw & EndRedraw to redraw and display the foreground RWindow -//! 7. Check the drawing result: the whole screen should be the background color of the background RWindow TRgb(255,255,0) -//! 8. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults 1. SetVisible() method called without causing panic -//! 2. Check the drawing result: only check sample TRect((0,0),(10,10)) ((90,90),(100,100)) -//! 2.1 before SetVisible() to FALSE, the foreground RWindow is displayed with TRgb(255,0,0) -//! 2.2 after SetVisible() to FALSE, the background RWindow is displayed with TRgb(255,255,0) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow backwin - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-Window-Setup-0003-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command009 - COMMAND backwin new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command011 - COMMAND backwin Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command012 - COMMAND backwin SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command013 - COMMAND backwin SetBackgroundColor GRAPHICS-WSERV-Window-Setup-0003-0001-SetBackgroundColor_command014 - COMMAND backwin Activate - COMMAND backwin BeginRedraw - COMMAND backwin EndRedraw - COMMAND win new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command022 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command023 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command025 - COMMAND win SetSize GRAPHICS-WSERV-Window-Setup-0003-0001-SetSize_command026 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-Window-Setup-0003-0001-SetAutoFlush_command027 - - COMMAND win SetBackgroundColor GRAPHICS-WSERV-Window-PublicApi-0213-0001-SetBackgroundColor_command01 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND scrdev checkRectColor GRAPHICS-WSERV-Window-PublicApi-0213-0001-checkRectColor_command03 - COMMAND win SetVisible GRAPHICS-WSERV-Window-PublicApi-0213-0001-SetVisible_command05 - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND scrdev checkRectColor GRAPHICS-WSERV-Window-PublicApi-0213-0001-checkRectColor_command07 - - COMMAND win Close - COMMAND backwin Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0213 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0214 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0214 -//! @SYMAPI RWindowBase -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 13/06/2007 -//! @SYMTestCaseDesc SetShadowHeight(TInt aHeight): set a window's shadow height (test in RWindow) -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindowBase::SetRequiredDisplayMode & Activate, RWindow::Construct & SetColor & SetSizeErr -//! @SYMTestActions 1. Setup and display a background RWindow and a foreground RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a background RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K), SetBackgroundColor to TRgb(255,255,0) for the RWindow -//! 1.6 Activate the CWindowGc to the RWindow, and BeginRedraw & EndRedraw to display the background RWindow -//! 1.7 New and construct a foreground RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K), and SetSize to width 100 & height 100 (smaller than background RWindow) -//! 1.8 SetAutoFlush to TRUE for the RWsSession -//! 2. Use SetBackgroundColor to set the background color of the foreground RWindow to TRgb(255,0,0) -//! and SetSizeErr to set the child RWindow size to width=30,height=30 -//! 3. Use SetShadowDisabled to enable the foreground RWindow shadow -//! 4. Execute SetShadowHeight to set the foreground RWindow with shadow height 1 -//! 5. Check the display of the foreground RWindow shadow -//! 6. Execute SetShadowHeight to set the foreground RWindow with shadow height 3 -//! 7. Check the display of the foreground RWindow shadow -//! 8. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. SetShadowHeight() method called without causing panic -//! 2. Check the drawing result: check the shadow area should be drawn with the color TRgb(170,170,0) -//! 2.1 when shadow height is 1, the shadow area is TRect((10+2*1,40),(40+2*1,40+2*1)) & ((40,10+2*1),,(40+2*1,40+2*1)) -//! 2.2 when shadow height is 3, the shadow area is TRect((10+2*3,40),(40+2*3,40+2*3)) & ((40,10+2*3),,(40+2*3,40+2*3)) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow backwin - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-Window-Setup-0003-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command009 - COMMAND backwin new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command011 - COMMAND backwin Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command012 - COMMAND backwin SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command013 - COMMAND backwin SetBackgroundColor GRAPHICS-WSERV-Window-Setup-0003-0001-SetBackgroundColor_command014 - COMMAND backwin Activate - COMMAND backwin BeginRedraw - COMMAND backwin EndRedraw - COMMAND win new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command022 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command024 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command025 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-Window-Setup-0003-0001-SetAutoFlush_command027 - - COMMAND win SetBackgroundColor GRAPHICS-WSERV-Window-PublicApi-0214-0001-SetBackgroundColor_command01 - COMMAND win SetExtentErr GRAPHICS-WSERV-Window-PublicApi-0214-0001-SetExtentErr_command02 - COMMAND win SetShadowDisabled GRAPHICS-WSERV-Window-PublicApi-0214-0001-SetShadowDisabled_command03 - COMMAND win SetShadowHeight GRAPHICS-WSERV-Window-PublicApi-0214-0001-SetShadowHeight_command04 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND win SetShadowHeight GRAPHICS-WSERV-Window-PublicApi-0214-0001-SetShadowHeight_command07 - - COMMAND win Close - COMMAND backwin Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0214 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0215 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0215 -//! @SYMAPI RWindowBase -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 14/06/2007 -//! @SYMTestCaseDesc SetShadowDisabled(TBool aState): enable/disable whether a window casts a shadow (test in RWindow) -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindowBase::SetRequiredDisplayMode & Activate, RWindow::Construct & SetColor & SetSizeErr -//! @SYMTestActions 1. Setup and display a background RWindow and a foreground RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a background RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K), SetBackgroundColor to TRgb(255,255,0) for the RWindow -//! 1.6 Activate the CWindowGc to the RWindow, and BeginRedraw & EndRedraw to display the background RWindow -//! 1.7 New and construct a foreground RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K), and SetSize to width 100 & height 100 (smaller than background RWindow) -//! 1.8 SetAutoFlush to TRUE for the RWsSession -//! 2. Use SetBackgroundColor to set the background color of the foreground RWindow to TRgb(255,0,0) -//! and SetSizeErr to set the child RWindow size to width=30,height=30 -//! 3. Execute SetShadowDisabled to enable the foreground RWindow shadow -//! 4. Use SetShadowHeight to set the foreground RWindow with shadow height 1 -//! 5. Check the display of the foreground RWindow shadow -//! 6. Execute SetShadowDisabled to set disable the foreground RWindow shadow -//! 7. Check the originally displayed foreground RWindow shadow is cleared -//! 8. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. SetShadowDisabled() method called without causing panic -//! 2. Check the drawing result: only check the shadow area TRect((10+2*1,40),(40+2*1,40+2*1)) & ((40,10+2*1),,(40+2*1,40+2*1)) -//! 2.1 when shadow is enabled (state=FALSE), the shadow area is drawn with TRgb(170,170,0) -//! 2.2 when shadow is disabled (state=TRUE), the shadow area is cleared, i.e. drawn with TRgb(255,255,0) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow backwin - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-Window-Setup-0003-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command009 - COMMAND backwin new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command011 - COMMAND backwin Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command012 - COMMAND backwin SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command013 - COMMAND backwin SetBackgroundColor GRAPHICS-WSERV-Window-Setup-0003-0001-SetBackgroundColor_command014 - COMMAND backwin Activate - COMMAND backwin BeginRedraw - COMMAND backwin EndRedraw - COMMAND win new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command022 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command024 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command025 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-Window-Setup-0003-0001-SetAutoFlush_command027 - - COMMAND win SetBackgroundColor GRAPHICS-WSERV-Window-PublicApi-0215-0001-SetBackgroundColor_command01 - COMMAND win SetExtentErr GRAPHICS-WSERV-Window-PublicApi-0215-0001-SetExtentErr_command02 - COMMAND win SetShadowDisabled GRAPHICS-WSERV-Window-PublicApi-0215-0001-SetShadowDisabled_command03 - COMMAND win SetShadowHeight GRAPHICS-WSERV-Window-PublicApi-0215-0001-SetShadowHeight_command04 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND win SetShadowDisabled GRAPHICS-WSERV-Window-PublicApi-0215-0001-SetShadowDisabled_command07 - - COMMAND win Close - COMMAND backwin Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0215 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0216 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0216 -//! @SYMAPI RWindowBase -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 12/02/2007 -//! @SYMTestCaseDesc Position(): get the window (test in RWindow) position relative to its parent -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct, RWindowBase::SetPosition -//! @SYMTestActions 1. Create and construct a foreground and background RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a RWindowGroup within the RWsSession -//! 1.3 New and construct a background RWindow as the child of the RWindowGroup -//! 1.4 New and construct a foreground RWindow as the child of the background RWindow -//! 2. Execute Position to get the child RWindow position, and check if it returns the default (0,0) -//! 3. Use SetPosition to change the position of the top-level RWindow to (11,12) -//! 4. Execute Position for child RWindow again, check if the position relative to its parent remains (0,0) -//! 5. Use SetPosition to change the position of the child RWindow to (20,30) -//! 6. Execute Position for child RWindow again, check if the position is the same as specified -//! 7. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Position() method called without causing panic -//! 2. Check Position() return value for child RWindow -//! 2.1 The initial value should be the same as (0,0) -//! 2.2 If its parent window change the position, the returned position not changed -//! 2.3 If the child RWindow change the position, the returned position is changed as specified offset (20,30) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow backwin - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 - COMMAND backwin new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 - COMMAND backwin Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command010 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command011 - - COMMAND win Position GRAPHICS-WSERV-Window-PublicApi-0216-0001-Position_command01 - COMMAND backwin SetPosition GRAPHICS-WSERV-Window-PublicApi-0216-0001-SetPosition_command03 - COMMAND win Position GRAPHICS-WSERV-Window-PublicApi-0216-0001-Position_command05 - COMMAND win SetPosition GRAPHICS-WSERV-Window-PublicApi-0216-0001-SetPosition_command06 - COMMAND win Position GRAPHICS-WSERV-Window-PublicApi-0216-0001-Position_command07 - - COMMAND win Close - COMMAND backwin Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0216 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0217 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0217 -//! @SYMAPI RWindowBase -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 12/02/2007 -//! @SYMTestCaseDesc AbsPosition(): get the window (test in RWindow) absolute position -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct, RWindowBase::SetPosition -//! @SYMTestActions 1. Create and construct a foreground and background RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a RWindowGroup within the RWsSession -//! 1.3 New and construct a background RWindow as the child of the RWindowGroup -//! 1.4 New and construct a foreground RWindow as the child of the background RWindow -//! 2. Execute AbsPosition to get the child RWindow position, and check if it returns the default (0,0) -//! 3. Use SetPosition to change the position of the top-level RWindow to (11,12) -//! 4. Execute AbsPosition for child RWindow again, check if the absolute position is (11,12) -//! 5. Use SetPosition to change the position of the child RWindow to (20,30) -//! 6. Execute AbsPosition for child RWindow again, check if the absolute position is (31,42)=(11,12)+(20,30) -//! 7. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. AbsPosition() method called without causing panic -//! 2. Check AbsPosition() return value for child RWindow -//! 2.1 The initial value should be the same as (0,0) -//! 2.2 If its parent window change the position, the returned position is changed -//! 2.3 If the child RWindow change the position, the returned position is also changed -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow backwin - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 - COMMAND backwin new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 - COMMAND backwin Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command010 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command011 - - COMMAND win AbsPosition GRAPHICS-WSERV-Window-PublicApi-0217-0001-AbsPosition_command01 - COMMAND backwin SetPosition GRAPHICS-WSERV-Window-PublicApi-0217-0001-SetPosition_command03 - COMMAND win AbsPosition GRAPHICS-WSERV-Window-PublicApi-0217-0001-AbsPosition_command05 - COMMAND win SetPosition GRAPHICS-WSERV-Window-PublicApi-0217-0001-SetPosition_command06 - COMMAND win AbsPosition GRAPHICS-WSERV-Window-PublicApi-0217-0001-AbsPosition_command07 - - COMMAND win Close - COMMAND backwin Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0217 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0218 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0218 -//! @SYMAPI RWindowBase -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 13/02/2007 -//! @SYMTestCaseDesc SetCornerType(TCornerType aCornerType, TInt aCornerFlags=0): set the corner shape of the window (test in RWindow) -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindowBase::SetRequiredDisplayMode & Activate, RWindow::Construct & SetColor & SetSizeErr -//! @SYMTestActions 1. Setup and display a background RWindow and a foreground RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a background RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K), SetBackgroundColor to TRgb(255,255,0) for the RWindow -//! 1.6 Activate the CWindowGc to the RWindow, and BeginRedraw & EndRedraw to display the background RWindow -//! 1.7 New and construct a foreground RWindow as the child of the background RWindow -//! and SetRequiredDisplayMode (to EColor4K), and SetSize to width 100 & height 100 (smaller than background RWindow) -//! 1.8 SetAutoFlush to TRUE for the RWsSession -//! 2. Use SetBackgroundColor to set the background color of the child RWindow to TRgb(255,0,0) -//! and SetSizeErr to set the child RWindow size to width=30,height=30 -//! 3. Execute SetCornerType with corner type EWindowCorner3 and corner flag to only include bottom right -//! 4. Activate the CWindowGc to the RWindow, and BeginRedraw & EndRedraw to display the foreground RWindow -//! 5. Check the drawing result -//! 6. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. SetCornerType() method returns KErrNone without causing panic -//! 2. Check the drawing result: consider the 4 corner (width=5,height=5) -//! 2.1 inside the window except the 4 corners, it should be drawn with background color TRgb(255,0,0) -//! TRect((5,0),(25,5)), ((0,5),(30,25)), ((5,25),(25,30)) -//! 2.2 for the corners not included in the SetCornerType, it should also be drawn with background color TRgb(255,0,0) -//! TRect((0,0),(5,5)), ((25,0),(30,5)), ((25,0),(30,0)) -//! 2.3 for the corners included in the SetCornerType -//! 2.3.1 check the removed pixels, should be drawn with TRgb(255,255,0) -//! for EWindowCorner3, check 5 pixels (29,27), (29,28), (27,29), (28,29), (29,29) -//! 2.3.2 check other pixels not removed, should be drawn with the background color TRgb(255,0,0) -//! only check sample pixels: (29,26), (28,27), (28,27), (28,28), (27,28) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow backwin - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-Window-Setup-0003-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command009 - COMMAND backwin new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command011 - COMMAND backwin Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command012 - COMMAND backwin SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command013 - COMMAND backwin SetBackgroundColor GRAPHICS-WSERV-Window-Setup-0003-0001-SetBackgroundColor_command014 - COMMAND backwin Activate - COMMAND backwin BeginRedraw - COMMAND backwin EndRedraw - COMMAND win new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command022 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command023 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command025 - COMMAND win SetSize GRAPHICS-WSERV-Window-Setup-0003-0001-SetSize_command026 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-Window-Setup-0003-0001-SetAutoFlush_command027 - - COMMAND win SetBackgroundColor GRAPHICS-WSERV-Window-PublicApi-0218-0001-SetBackgroundColor_command01 - COMMAND win SetSize GRAPHICS-WSERV-Window-PublicApi-0218-0001-SetSize_command02 - COMMAND win SetCornerType GRAPHICS-WSERV-Window-PublicApi-0218-0001-SetCornerType_command03 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND scrdev checkRectColor GRAPHICS-WSERV-Window-PublicApi-0218-0001-checkRectColor_command05 - COMMAND scrdev checkPixels GRAPHICS-WSERV-Window-PublicApi-0218-0001-checkPixels_command06 - - COMMAND win Close - COMMAND backwin Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0218 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0219 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0219 -//! @SYMAPI RWindowBase -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 13/02/2007 -//! @SYMTestCaseDesc SetShape(const TRegion &aRegion): set the shape of the window (test in RWindow) -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindowBase::SetRequiredDisplayMode & Activate, RWindow::Construct & SetColor -//! @SYMTestActions 1. Setup and display a background RWindow and a foreground RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a background RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K), SetBackgroundColor to TRgb(255,255,0) for the RWindow -//! 1.6 Activate the CWindowGc to the RWindow, and BeginRedraw & EndRedraw to display the background RWindow -//! 1.7 New and construct a foreground RWindow as the child of the background RWindow -//! and SetRequiredDisplayMode (to EColor4K), and SetSize to width 100 & height 100 (smaller than background RWindow) -//! 1.8 SetAutoFlush to TRUE for the RWsSession -//! 2. Execute SetShape to set the child RWindow shape as the specified region -//! 3. Use SetBackgroundColor to set the background color of the child RWindow to TRgb(255,0,0) -//! 4. Activate the CWindowGc to the RWindow, and BeginRedraw & EndRedraw to display the foreground RWindow -//! 5. Check the drawing result -//! 6. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. SetShape() method returns KErrNone without causing panic -//! 2. Check the drawing result: -//! 2.1 inside the window shape rectangles, it should be drawn with background color TRgb(255,0,0) -//! TRect((10,10),(20,40)), ((20,20),(30,30)), ((30,10),(40,40)) -//! 2.2 outside the window shape rectangles, it should also be drawn with background color TRgb(255,255,0) -//! TRect((0,0),(50,10)), ((20,10),(30,20)), ((20,30),(30,40)), ((0,40),(50,50)), ((0,10),(10,40)), ((40,10),(50,40)) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow backwin - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-Window-Setup-0003-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command009 - COMMAND backwin new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command011 - COMMAND backwin Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command012 - COMMAND backwin SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command013 - COMMAND backwin SetBackgroundColor GRAPHICS-WSERV-Window-Setup-0003-0001-SetBackgroundColor_command014 - COMMAND backwin Activate - COMMAND backwin BeginRedraw - COMMAND backwin EndRedraw - COMMAND win new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command022 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command023 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command025 - COMMAND win SetSize GRAPHICS-WSERV-Window-Setup-0003-0001-SetSize_command026 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-Window-Setup-0003-0001-SetAutoFlush_command027 - - COMMAND win SetShape GRAPHICS-WSERV-Window-PublicApi-0219-0001-SetShape_command01 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-Window-PublicApi-0219-0001-SetBackgroundColor_command02 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND scrdev checkRectColor GRAPHICS-WSERV-Window-PublicApi-0219-0001-checkRectColor_command04 - - COMMAND win Close - COMMAND backwin Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0219 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0220 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0220 -//! @SYMAPI RWindowBase -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 13/02/2007 -//! @SYMTestCaseDesc SetRequiredDisplayMode(TDisplayMode aMode): set required display mode of a window (test in RWindow) -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Setup a simple RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a RWindowGroup within the RWsSession -//! 1.3 New and construct a RWindow as the child of the RWindowGroup -//! 2. Execute SetRequiredDisplayMode to the specified display mode (EColor256) -//! and check if it returns the display mode as specified -//! 3. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults SetRequiredDisplayMode() method called without causing panic and the retuned value is the same as the displayed mode specified -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 - - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-Window-PublicApi-0220-0001-SetRequiredDisplayMode_command01 - - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0220 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0221 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0221 -//! @SYMAPI RWindowBase -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 13/02/2007 -//! @SYMTestCaseDesc DisplayMode(): get current display mode of a window (test in RWindow) -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Setup a simple RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a RWindowGroup within the RWsSession -//! 1.3 New and construct a RWindow as the child of the RWindowGroup -//! 2. Execute DisplayMode() to get current display mode of child RWindow and check if it's as expected default (EColor256) -//! 3. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults DisplayMode() method called without causing panic and the retuned value is as expected default (EColor64K) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 - - COMMAND win DisplayMode GRAPHICS-WSERV-Window-PublicApi-0221-0001-DisplayMode_command01 - - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0221 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0222 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0222 -//! @SYMAPI RWindowBase -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 29/06/2007 -//! @SYMTestCaseDesc EnableBackup(TUint aBackupType=EWindowBackupAreaBehind): request to backup all or part of the window's contents on screen (test in RWindow) -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Setup a simple RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a RWindowGroup within the RWsSession -//! 1.3 New and construct a RWindow as the child of the RWindowGroup -//! 2. Execute EnableBackup() with backup type EWindowBackupFullScreen -//! 3. Execute EnableBackup() back to backup type EWindowBackupAreaBehind -//! 4. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults EnableBackup called without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 - - COMMAND win EnableBackup GRAPHICS-WSERV-Window-PublicApi-0000-0001-EnableBackup_EWindowBackupFullScreen - COMMAND win EnableBackup GRAPHICS-WSERV-Window-PublicApi-0000-0001-EnableBackup_EWindowBackupAreaBehind - - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0222 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0223 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0223 -//! @SYMAPI RWindowBase -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 28/06/2007 -//! @SYMTestCaseDesc RequestPointerRepeatEvent(TTimeIntervalMicroSeconds32 aTime, const TRect &aRect): request a pointer repeat event (test in RWindow) -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Setup a simple RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a RWindowGroup within the RWsSession -//! 1.3 New and construct a RWindow as the child of the RWindowGroup -//! 2. Execute RequestPointerRepeatEvent() to request a pointer repeat event within TRect((10,10),(100,100)) and 1000000 micro seconds -//! 3. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults RequestPointerRepeatEvent called without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 - - COMMAND win RequestPointerRepeatEvent GRAPHICS-WSERV-Window-PublicApi-0223-0001-RequestPointerRepeatEvent_command01 - - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0223 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0224 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0224 -//! @SYMAPI RWindowBase -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 28/06/2007 -//! @SYMTestCaseDesc CancelPointerRepeatEventRequest(): cancel a request for a pointer repeat event (test in RWindow) -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindowBase::RequestPointerRepeatEvent, RWindow::Construct -//! @SYMTestActions 1. Setup a simple RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a RWindowGroup within the RWsSession -//! 1.3 New and construct a RWindow as the child of the RWindowGroup -//! 2. Use RequestPointerRepeatEvent() to request a pointer repeat event within TRect((10,10),(100,100)) and 1000000 micro seconds -//! 3. Execute CancelPointerRepeatEventRequest() to cancel the request -//! 4. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults CancelPointerRepeatEventRequest called without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 - - COMMAND win RequestPointerRepeatEvent GRAPHICS-WSERV-Window-PublicApi-0224-0001-RequestPointerRepeatEvent_command01 - COMMAND win CancelPointerRepeatEventRequest - - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0224 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0225 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0225 -//! @SYMAPI RWindowBase -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 26/06/2007 -//! @SYMTestCaseDesc TInt AllocPointerMoveBuffer(TInt aMaxPoints, TUint aFlags): allocate a buffer for storing pointer movements (test in RWindow) -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Setup a simple RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a RWindowGroup within the RWsSession -//! 1.3 New and construct a RWindow as the child of the RWindowGroup -//! 2. Execute AllocPointerMoveBuffer() to allocate pointer buffer for 1000 points and flags 0 -//! 3. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults AllocPointerMoveBuffer method returns KErrNone without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 - - COMMAND win AllocPointerMoveBuffer GRAPHICS-WSERV-Window-PublicApi-0225-0001-AllocPointerMoveBuffer_command01 - - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0225 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0226 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0226 -//! @SYMAPI RWindowBase -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 26/06/2007 -//! @SYMTestCaseDesc FreePointerMoveBuffer(): free the pointer move buffer (test in RWindow) -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindowBase::AllocPointerMoveBuffer, RWindow::Construct -//! @SYMTestActions 1. Setup a simple RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a RWindowGroup within the RWsSession -//! 1.3 New and construct a RWindow as the child of the RWindowGroup -//! 2. Use AllocPointerMoveBuffer() to allocate pointer buffer for 1000 points and flags 0 -//! 3. Execute FreePointerMoveBuffer() to free the allocated pointer buffer -//! 4. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults FreePointerMoveBuffer called without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 - - COMMAND win AllocPointerMoveBuffer GRAPHICS-WSERV-Window-PublicApi-0226-0001-AllocPointerMoveBuffer_command01 - COMMAND win FreePointerMoveBuffer - - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0226 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0227 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0227 -//! @SYMAPI RWindowBase -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 27/06/2007 -//! @SYMTestCaseDesc EnablePointerMoveBuffer(): enable the pointer move buffer for receiving pointer move events (test in RWindow) -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindowBase::AllocPointerMoveBuffer & FreePointerMoveBuffer, RWindow::Construct -//! @SYMTestActions 1. Setup a simple RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a RWindowGroup within the RWsSession -//! 1.3 New and construct a RWindow as the child of the RWindowGroup -//! 2. Use AllocPointerMoveBuffer() to allocate pointer buffer for 1000 points and flags 0 -//! 3. Execute EnablePointerMoveBuffer() to enable the pointer move buffer for receiving pointer move events -//! 4. Use FreePointerMoveBuffer() to free the allocated pointer buffer -//! 5. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults EnablePointerMoveBuffer called without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 - - COMMAND win AllocPointerMoveBuffer GRAPHICS-WSERV-Window-PublicApi-0227-0001-AllocPointerMoveBuffer_command01 - COMMAND win EnablePointerMoveBuffer - COMMAND win FreePointerMoveBuffer - - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0227 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0228 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0228 -//! @SYMAPI RWindowBase -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 27/06/2007 -//! @SYMTestCaseDesc DisablePointerMoveBuffer(): instruct WSERV to stop adding pointer events to the pointer move buffer (test in RWindow) -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindowBase::AllocPointerMoveBuffer & EnablePointerMoveBuffer & FreePointerMoveBuffer, RWindow::Construct -//! @SYMTestActions 1. Setup a simple RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a RWindowGroup within the RWsSession -//! 1.3 New and construct a RWindow as the child of the RWindowGroup -//! 2. Use AllocPointerMoveBuffer() to allocate pointer buffer for 1000 points and flags 0 -//! 3. Use EnablePointerMoveBuffer() to enable the pointer move buffer for receiving pointer move events -//! 4. Execute DisablePointerMoveBuffer() to instruct WSERV to stop adding pointer events to the pointer move buffer -//! 5. Use FreePointerMoveBuffer() to free the allocated pointer buffer -//! 6. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults DisablePointerMoveBuffer called without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 - - COMMAND win AllocPointerMoveBuffer GRAPHICS-WSERV-Window-PublicApi-0228-0001-AllocPointerMoveBuffer_command01 - COMMAND win EnablePointerMoveBuffer - COMMAND win DisablePointerMoveBuffer - COMMAND win FreePointerMoveBuffer - - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0228 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0230 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0230 -//! @SYMAPI RWindowBase -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 27/06/2007 -//! @SYMTestCaseDesc DiscardPointerMoveBuffer(): discard all events in the pointer move buffer (test in RWindow) -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Setup a simple RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a RWindowGroup within the RWsSession -//! 1.3 New and construct a RWindow as the child of the RWindowGroup -//! 2. Execute DiscardPointerMoveBuffer() to discard all events in the pointer move buffer -//! 3. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults DiscardPointerMoveBuffer called without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 - - COMMAND win DiscardPointerMoveBuffer - - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0230 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0231 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0231 -//! @SYMAPI RWindowBase -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 03/07/2007 -//! @SYMTestCaseDesc AddKeyRect(const TRect &aRect, TInt aScanCode, TBool aActivatedByPointerSwitchOn): add an on-screen key rectangle (test in RWindow) -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Setup a simple RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a RWindowGroup within the RWsSession -//! 1.3 New and construct a RWindow as the child of the RWindowGroup -//! 2. Execute AddKeyRect() to add an on-screen key rectangle -//! 3. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults AddKeyRect method returns KErrNone without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 - - COMMAND win AddKeyRect GRAPHICS-WSERV-Window-PublicApi-0231-0001-AddKeyRect_command01 - - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0231 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0232 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0232 -//! @SYMAPI RWindowBase -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 03/07/2007 -//! @SYMTestCaseDesc RemoveAllKeyRects(): remove all the on-screen keys that have been added to this window (test in RWindow) -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Setup a simple RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a RWindowGroup within the RWsSession -//! 1.3 New and construct a RWindow as the child of the RWindowGroup -//! 2. Execute RemoveAllKeyRects() to remove all the on-screen keys -//! 3. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults RemoveAllKeyRects method called without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 - - COMMAND win RemoveAllKeyRects - - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0232 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0234 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0234 -//! @SYMAPI RWindowBase -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 20/06/2007 -//! @SYMTestCaseDesc FadeBehind(TBool aFade): set whether or not all windows behind the current window, in the same window group, should be faded or unfaded (test in RWindow) -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindowBase::SetRequiredDisplayMode & Activate, RWindow::Construct & SetColor -//! @SYMTestActions 1. Setup and display a background RWindow and a foreground RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a background RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K), SetBackgroundColor to TRgb(255,255,0) for the RWindow -//! 1.6 Activate the CWindowGc to the RWindow, and BeginRedraw & EndRedraw to display the background RWindow -//! 1.7 New and construct a foreground RWindow as the child of the background RWindow -//! and SetRequiredDisplayMode (to EColor4K) -//! 1.8 SetAutoFlush to TRUE for the RWsSession -//! 2. Use SetBackgroundColor to set the background color of the foreground RWindow to green TRgb(0,0,255) -//! and SetExtentErr to set the foreground RWindow to (10,10) with height=30, width=30 -//! 3. Activate the CWindowGc to the RWindow, and BeginRedraw & EndRedraw to display the foreground RWindow -//! 4. check both the foreground and background RWindow are displayed correctly -//! 5. Execute FadeBehind() to set the faded flag of the foreground RWindow to TRUE -//! 6. check the foreground RWindow is still displayed the same, but the background RWindow is displayed with faded -//! 7. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. FadeBehind() method called without causing panic -//! 2. Check the drawing result: the whole foreground RWindow -//! and parts of background RWindow: TRect((0,0),(50,10)), ((0,40),(50,50)), ((0,10),(10,40)), ((40,10),(50,40)) -//! 2.1 before set FadeBehind to TRUE for the foreground RWindow -//! the foreground RWindow is drawn with TRgb(0,0,255) and background RWindow is drawn with TRgb(255,255,0) -//! 2.2 before set FadeBehind to TRUE for the foreground RWindow -//! the foreground RWindow is still TRgb(0,0,255) but background RWindow is faded and drawn with TRgb(255,255,136) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow backwin - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-Window-Setup-0003-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command009 - COMMAND backwin new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command011 - COMMAND backwin Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command012 - COMMAND backwin SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command013 - COMMAND backwin SetBackgroundColor GRAPHICS-WSERV-Window-Setup-0003-0001-SetBackgroundColor_command014 - COMMAND backwin Activate - COMMAND backwin BeginRedraw - COMMAND backwin EndRedraw - COMMAND win new GRAPHICS-WSERV-Window-Setup-0003-0001-new_command022 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command024 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command025 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-Window-Setup-0003-0001-SetAutoFlush_command027 - - COMMAND win SetBackgroundColor GRAPHICS-WSERV-Window-PublicApi-0234-0001-SetBackgroundColor_command01 - COMMAND win SetExtentErr GRAPHICS-WSERV-Window-PublicApi-0234-0001-SetExtentErr_command02 - COMMAND win Activate - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND scrdev checkRectColor GRAPHICS-WSERV-Window-PublicApi-0234-0001-checkRectColor_command03 - COMMAND win FadeBehind GRAPHICS-WSERV-Window-PublicApi-0000-0001-FadeBehind_TRUE - - COMMAND win Close - COMMAND backwin Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0234 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0235 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0235 -//! @SYMAPI RWindowBase -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 18/06/2007 -//! @SYMTestCaseDesc IsFaded(): test whether the current window (test in RWindow) is faded -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindowBase::FadeBehind, RWindow::Construct -//! @SYMTestActions 1. Create and construct a foreground and background RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a RWindowGroup within the RWsSession -//! 1.3 New and construct a background RWindow as the child of the RWindowGroup -//! 1.4 New and construct a foreground RWindow as the child of the background RWindow -//! 2. Execute IsFaded() to check the default faded flag of both foreground and background RWindow -//! 3. Use FadeBehind() to set the faded flag of the foreground RWindow to TRUE -//! 4. Execute IsFaded() to check the faded flag of both foreground and background RWindow -//! 5. Use FadeBehind() to set the faded flag of the foreground RWindow to FALSE -//! 6. Execute IsFaded() to check the faded flag of both foreground and background RWindow -//! 7. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults 1. IsFaded() method called without causing panic -//! 2. IsFaded() returns the expected faded flag of the window -//! 2.1 the default faded flag for RWindow is FALSE -//! 2.2 after set FadeBehind to TRUE for the foreground RWindow -//! the background RWindow is TRUE, and the foreground RWindow is still FALSE -//! 2.3 after set FadeBehind to FALSE for the foreground RWindow -//! the background RWindow is changed back to FALSE, and the foreground RWindow is still FALSE -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow backwin - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 - COMMAND backwin new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 - COMMAND backwin Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command010 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command011 - - COMMAND backwin IsFaded GRAPHICS-WSERV-Window-PublicApi-0000-0001-expected_FALSE - COMMAND win IsFaded GRAPHICS-WSERV-Window-PublicApi-0000-0001-expected_FALSE - COMMAND win FadeBehind GRAPHICS-WSERV-Window-PublicApi-0000-0001-FadeBehind_TRUE - COMMAND backwin IsFaded GRAPHICS-WSERV-Window-PublicApi-0000-0001-expected_TRUE - COMMAND win IsFaded GRAPHICS-WSERV-Window-PublicApi-0000-0001-expected_FALSE - COMMAND win FadeBehind GRAPHICS-WSERV-Window-PublicApi-0000-0001-FadeBehind_FALSE - COMMAND backwin IsFaded GRAPHICS-WSERV-Window-PublicApi-0000-0001-expected_FALSE - COMMAND win IsFaded GRAPHICS-WSERV-Window-PublicApi-0000-0001-expected_FALSE - - COMMAND win Close - COMMAND backwin Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0235 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0236 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0236 -//! @SYMAPI RWindowBase -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 19/06/2007 -//! @SYMTestCaseDesc IsNonFading(): test whether the current window (test in RWindow) is non-fading -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindowTreeNode::SetNonFading, RWindow::Construct -//! @SYMTestActions 1. Create and construct a foreground and background RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a RWindowGroup within the RWsSession -//! 1.3 New and construct a background RWindow as the child of the RWindowGroup -//! 1.4 New and construct a foreground RWindow as the child of the background RWindow -//! 2. Execute IsNonFading() to check the default faded flag of both foreground and background RWindow -//! 3. Use SetNonFading() to set the non-fading flag of the foreground RWindow to TRUE -//! 4. Execute IsFaded() to check the faded flag of both foreground and background RWindow -//! 5. Use SetNonFading() to set the non-fading flag of the foreground RWindow to FALSE -//! 6. Execute IsFaded() to check the faded flag of both foreground and background RWindow -//! 7. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults 1. IsNonFading() method called without causing panic -//! 2. IsNonFading() returns the expected non-fading flag of the window -//! 2.1 the default faded flag for RWindow is FALSE -//! 2.2 after set SetNonFading to TRUE for the foreground RWindow -//! the background RWindow is still FALSE, and the foreground RWindow is TRUE -//! 2.3 after set SetNonFading to FALSE for the foreground RWindow -//! the background RWindow is still FALSE, and the foreground RWindow is changed to FALSE -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow backwin - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 - COMMAND backwin new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 - COMMAND backwin Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command010 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command011 - - COMMAND backwin IsNonFading GRAPHICS-WSERV-Window-PublicApi-0000-0001-expected_FALSE - COMMAND win IsNonFading GRAPHICS-WSERV-Window-PublicApi-0000-0001-expected_FALSE - COMMAND win SetNonFading GRAPHICS-WSERV-Window-PublicApi-0000-0001-SetNonFading_TRUE - COMMAND backwin IsNonFading GRAPHICS-WSERV-Window-PublicApi-0000-0001-expected_FALSE - COMMAND win IsNonFading GRAPHICS-WSERV-Window-PublicApi-0000-0001-expected_TRUE - COMMAND win SetNonFading GRAPHICS-WSERV-Window-PublicApi-0000-0001-SetNonFading_FALSE - COMMAND backwin IsNonFading GRAPHICS-WSERV-Window-PublicApi-0000-0001-expected_FALSE - COMMAND win IsNonFading GRAPHICS-WSERV-Window-PublicApi-0000-0001-expected_FALSE - - COMMAND win Close - COMMAND backwin Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0236 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0237 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0237 -//! @SYMAPI RWindowBase -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 12/02/2007 -//! @SYMTestCaseDesc MoveToGroup(TInt aIdentifier): move this window (test in RWindow) to another window group -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct, RWindowTreeNode::Parent -//! @SYMTestActions 1. Create and construct a foreground and background RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a RWindowGroup within the RWsSession -//! 1.3 New and construct a background RWindow as the child of the RWindowGroup -//! 1.4 New and construct a foreground RWindow as the child of the background RWindow -//! 2. Construct a new RWindowGroup as the destination window group to move -//! 3. Use RWindowTreeNode::Parent to check if the parent node of the top-level RWindow is the old window group -//! 4. Execute MoveToGroup() to move top-level RWindow to the new RWindowGroup -//! 5. Use RWindowTreeNode::Parent() to check the parent node of the top-level RWindow is changed to the new window group -//! 6. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults 1. MoveToGroup() method returns KErrNone without causing panic -//! 1.1 before MoveToGroup, the parent node of the top-level RWindow is the old window group (id 1) -//! 1.2 after MoveToGroup, the parent node of the top-level RWindow is the new window group (id 100) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow backwin - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 - COMMAND backwin new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 - COMMAND backwin Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command010 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command011 - - CREATE_OBJECT RWindowGroup wingrp1 - COMMAND wingrp1 new GRAPHICS-WSERV-Window-PublicApi-0237-0001-new_command01 - COMMAND wingrp1 Construct GRAPHICS-WSERV-Window-PublicApi-0237-0001-Construct_command02 - COMMAND backwin Parent GRAPHICS-WSERV-Window-PublicApi-0237-0001-Parent_command04 - COMMAND backwin MoveToGroup GRAPHICS-WSERV-Window-PublicApi-0237-0001-MoveToGroup_command05 - COMMAND backwin Parent GRAPHICS-WSERV-Window-PublicApi-0237-0001-Parent_command06 - - COMMAND win Close - COMMAND backwin Close - COMMAND wingrp Close - COMMAND wingrp1 Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0237 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0238 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0238 -//! @SYMAPI RWindowBase -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 27/06/2007 -//! @SYMTestCaseDesc PointerFilter(TUint32 aFilterMask, TUint32 aFilter): retrieve events from the pointer move buffer (test in RWindow) -//! Uses API elements: RWsSession::Connect & EventReady & GetEvent & Flush & SimulateRawEvent, RWindowGroup::Construct, RWindow::Construct & Activate & PointerFilter & TWsEvent::Type & Handle -//! @SYMTestActions 1. Setup a simple RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a RWindowGroup within the RWsSession -//! 1.3 New and construct a RWindow as the child of the RWindowGroup -//! 1.4 use Activate() RWindow to display and enable to receive events -//! 2. Use EventReady() & GetEvent() to wait and get TWsEvent, and check its type=EEventFocusGained and to RWindowGroup (handle=1) -//! 3. Use PointerFilter() to make RWindow not filter out EPointerMoveEvents|EPointerFilterDrag|EPointerFilterEnterExit -//! 4. Use SimulateRawEvent() to send a EButton1Down event (within RWindow area) -//! 5. Use EventReady() & GetEvent() to wait and get TWsEvent, and check its type=EEventPointerEnter and to RWindow (handle=2) -//! 6. Use EventReady() & GetEvent() to wait and get TWsEvent, and check its type=EEventPointer and to RWindow (handle=2) -//! 7. Use SimulateRawEvent() to send a EButton1Up event (within RWindow area) -//! 9. Use EventReady() & GetEvent() to wait and get TWsEvent, and check its type=EEventPointer and to RWindow (handle=2) -//! 10. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults All events as expected -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT TWsEvent we - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND we new - - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 - - COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 - COMMAND win SetExtentErr GRAPHICS-WSERV-Window-PublicApi-0238-0001-SetExtentErr_command01 - COMMAND win Activate - COMMAND ws Flush - COMMAND ws EventReady - OUTSTANDING - COMMAND ws GetEvent GRAPHICS-WSERV-Window-PublicApi-0238-0001-GetEvent_command03 - COMMAND we Type GRAPHICS-WSERV-Window-PublicApi-0238-0001-Type_command04 - COMMAND we Handle GRAPHICS-WSERV-Window-PublicApi-0238-0001-Handle_command05 - - COMMAND ws PurgePointerEvents - COMMAND ws Flush - COMMAND win PointerFilter GRAPHICS-WSERV-Window-PublicApi-0238-0001-PointerFilter_command01 - COMMAND ws SimulateRawEvent GRAPHICS-WSERV-Window-PublicApi-0238-0001-SimulateRawEvent_command02 - COMMAND ws Flush - COMMAND ws EventReady - OUTSTANDING - COMMAND ws GetEvent GRAPHICS-WSERV-Window-PublicApi-0238-0001-GetEvent_command03 - COMMAND we Type GRAPHICS-WSERV-Window-PublicApi-0238-0001-Type_command06 - COMMAND we Handle GRAPHICS-WSERV-Window-PublicApi-0238-0001-Handle_command07 - COMMAND ws EventReady - OUTSTANDING - COMMAND ws GetEvent GRAPHICS-WSERV-Window-PublicApi-0238-0001-GetEvent_command03 - COMMAND we Type GRAPHICS-WSERV-Window-PublicApi-0238-0001-Type_command08 - COMMAND we Handle GRAPHICS-WSERV-Window-PublicApi-0238-0001-Handle_command07 - - COMMAND ws SimulateRawEvent GRAPHICS-WSERV-Window-PublicApi-0238-0001-SimulateRawEvent_command03 - COMMAND ws Flush - COMMAND ws EventReady - OUTSTANDING - COMMAND ws GetEvent GRAPHICS-WSERV-Window-PublicApi-0238-0001-GetEvent_command03 - COMMAND we Type GRAPHICS-WSERV-Window-PublicApi-0238-0001-Type_command08 - COMMAND we Handle GRAPHICS-WSERV-Window-PublicApi-0238-0001-Handle_command07 - - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0238 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0239 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0239 -//! @SYMAPI RWindowBase -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 27/06/2007 -//! @SYMTestCaseDesc RetrievePointerMoveBuffer(TDes8 &aBuf): retrieve events from the pointer move buffer (test in RWindow) -//! Uses API elements: RWsSession::Connect & EventReady & GetEvent & Flush & SimulateRawEvent, RWindowGroup::Construct, RWindow::Construct & Activate & PointerFilter & AllocPointerMoveBuffer & EnablePointerMoveBuffer & DisablePointerMoveBuffer & FreePointerMoveBuffer, TWsEvent::Type & Handle -//! @SYMTestActions 1. Setup a simple RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a RWindowGroup within the RWsSession -//! 1.3 New and construct a RWindow as the child of the RWindowGroup -//! 1.4 use Activate() RWindow to display and enable to receive events -//! 2. Use EventReady() & GetEvent() to wait and get TWsEvent, and check its type=EEventFocusGained and to RWindowGroup (handle=1) -//! 3. Use PointerFilter() to make RWindow not filter out EPointerMoveEvents|EPointerFilterDrag|EPointerFilterEnterExit -//! 4. Use AllocPointerMoveBuffer() to allicate a 5 points buffer and EnablePointerMoveBuffer() -//! 5. Use SimulateRawEvent() to send 3 EPointerMove events -//! 6. Use EventReady() & GetEvent() to wait and get TWsEvent, and check its type=EEventPointerBufferReady and to RWindow (handle=2) -//! 7. Execute RetrievePointerMoveBuffer() to retrieve events from the pointer move buffer (with 5 points buffer) -//! and check if it retrieved the same as the 3 EPointerMove events -//! 8. Use DisablePointerMoveBuffer() and FreePointerMoveBuffer to disable and free the pointer move buffer -//! 9. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults RetrievePointerMoveBuffer returns KErrNone without causing panic, and retrive the points as expected -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT TWsEvent we - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND we new - - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 - - COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 - COMMAND win SetExtentErr GRAPHICS-WSERV-Window-PublicApi-0239-0001-SetExtentErr_command01 - COMMAND win Activate - COMMAND ws Flush - COMMAND ws EventReady - OUTSTANDING - COMMAND ws GetEvent GRAPHICS-WSERV-Window-PublicApi-0239-0001-GetEvent_command03 - COMMAND we Type GRAPHICS-WSERV-Window-PublicApi-0239-0001-Type_command04 - COMMAND we Handle GRAPHICS-WSERV-Window-PublicApi-0239-0001-Handle_command05 - - COMMAND ws PurgePointerEvents - COMMAND win PointerFilter GRAPHICS-WSERV-Window-PublicApi-0239-0001-PointerFilter_command07 - COMMAND win AllocPointerMoveBuffer GRAPHICS-WSERV-Window-PublicApi-0239-0001-AllocPointerMoveBuffer_command09 - COMMAND win EnablePointerMoveBuffer - COMMAND win DiscardPointerMoveBuffer - COMMAND ws SimulateRawEvent GRAPHICS-WSERV-Window-PublicApi-0239-0001-SimulateRawEvent_command10 - COMMAND ws SimulateRawEvent GRAPHICS-WSERV-Window-PublicApi-0239-0001-SimulateRawEvent_command11 - COMMAND ws SimulateRawEvent GRAPHICS-WSERV-Window-PublicApi-0239-0001-SimulateRawEvent_command12 - COMMAND ws SimulateRawEvent GRAPHICS-WSERV-Window-PublicApi-0239-0001-SimulateRawEvent_command13 - COMMAND ws SimulateRawEvent GRAPHICS-WSERV-Window-PublicApi-0239-0001-SimulateRawEvent_command14 - COMMAND ws EventReady - OUTSTANDING - COMMAND ws GetEvent GRAPHICS-WSERV-Window-PublicApi-0239-0001-GetEvent_command03 - COMMAND we Type GRAPHICS-WSERV-Window-PublicApi-0239-0001-Type_command15 - COMMAND we Handle GRAPHICS-WSERV-Window-PublicApi-0239-0001-Handle_command06 - COMMAND ws EventReady - OUTSTANDING - COMMAND ws GetEvent GRAPHICS-WSERV-Window-PublicApi-0239-0001-GetEvent_command03 - COMMAND we Type GRAPHICS-WSERV-Window-PublicApi-0239-0001-Type_command16 - COMMAND we Handle GRAPHICS-WSERV-Window-PublicApi-0239-0001-Handle_command06 - - COMMAND ws EventReady - OUTSTANDING - COMMAND ws GetEvent GRAPHICS-WSERV-Window-PublicApi-0239-0001-GetEvent_command03 - COMMAND we Type GRAPHICS-WSERV-Window-PublicApi-0239-0001-Type_command17 - COMMAND we Handle GRAPHICS-WSERV-Window-PublicApi-0239-0001-Handle_command06 - COMMAND win RetrievePointerMoveBuffer GRAPHICS-WSERV-Window-PublicApi-0239-0001-RetrievePointerMoveBuffer_command18 - COMMAND win DisablePointerMoveBuffer - COMMAND win FreePointerMoveBuffer - - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0239 - - - - - - -// **************************************************************************** -// RWindow Public APIs implemented for MWsClientClass -// **************************************************************************** - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0401 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-0401 -//! @SYMAPI MWsClientClass -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 18/12/2006 -//! @SYMTestCaseDesc WsHandle: get the server side handle (test in RWindow) -//! Uses API elements: MWsClientClass::WsHandle, RWsSession::new & Connect & Close, RWindowGroup::new & Construct & Close, RWindow::new & Construct & Close -//! @SYMTestActions 1. Create and connect a RWsSession object -//! 2. Create and construct a RWindowGroup within the RWsSession -//! 3. Create a RWindow as the child of the RWindowGroup -//! 4. Execute WsHandle to get RWindow server side handle and check if it's zero before construction -//! 5. Construct the RWindow object -//! 6. Execute WsHandle to get RWindow server side handle and check if it's non-zero after construction -//! 7. Close the RWindow object -//! 8. Execute WsHandle to get RWindow server side handle and check if it's zero again after close -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults Get the server side handle of RWindow without causing panic -//! and its value is zero before construction, non-zero after construction, back to zero after close -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 - COMMAND win WsHandle GRAPHICS-WSERV-Window-PublicApi-0401-0001-WsHandle_expected0 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 - COMMAND win WsHandle GRAPHICS-WSERV-Window-PublicApi-0401-0001-WsHandle_expectnot0 - COMMAND win Close - COMMAND win WsHandle GRAPHICS-WSERV-Window-PublicApi-0401-0001-WsHandle_expected0 - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-0401 - - - - - - - -// **************************************************************************** -// RWindow Public APIs inherited from RWindowTreeNode -// **************************************************************************** -//----------------------------------------------------------------- -// RWindowGroup wingrp_100 -// +- RBlankWindow bnkwin_110 -// | +- RBlankWindow bnkwin_111 -// | +- RWindow win_112 -// +- RWindow win_120 -// +- RWindow win_121 -// +- RWindow win_122 -// +- RBankWindow bnkwin_123 -// - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3001 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3001 -//! @SYMAPI RWindowTreeNode -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc Close(): close the node -//! Uses API elements: RWsSession::Connect, RWindowGroup, RBlankWindow, RWindow::Construct -//! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. -//! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. -//! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. -//! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. -//! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. -//! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. -//! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. -//! 8. Closes all window nodes by using Close() and return KErrNone if successed. -//! 9. Close the window session by using Close() and return KErrNone if successed. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults All nodes in the constructed window hierarchy are closed without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp_100 - CREATE_OBJECT RBlankWindow bnkwin_110 - CREATE_OBJECT RBlankWindow bnkwin_111 - CREATE_OBJECT RWindow win_112 - CREATE_OBJECT RWindow win_120 - CREATE_OBJECT RWindow win_121 - CREATE_OBJECT RWindow win_122 - CREATE_OBJECT RBlankWindow bnkwin_123 - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 - COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 - COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 - COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 - COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 - COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 - COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 - COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 - COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 - COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 - COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 - COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 - COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 - COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 - COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 - COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 - - COMMAND bnkwin_123 Close - COMMAND win_122 Close - COMMAND win_121 Close - COMMAND win_120 Close - COMMAND win_112 Close - COMMAND bnkwin_111 Close - COMMAND bnkwin_110 Close - COMMAND wingrp_100 Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3001 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3002 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3002 -//! @SYMAPI RWindowTreeNode -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 19/12/2006 -//! @SYMTestCaseDesc Destroy(): Closes and deletes the node. -//! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close -//! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. -//! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. -//! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. -//! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. -//! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. -//! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. -//! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. -//! 8. Destroy all window nodes by using Destroy() and return KErrNone if successed. -//! 9. Close the window session by using Close() and return KErrNone if successed. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults All nodes in the constructed window hierarchy are destoried without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp_100 - CREATE_OBJECT RBlankWindow bnkwin_110 - CREATE_OBJECT RBlankWindow bnkwin_111 - CREATE_OBJECT RWindow win_112 - CREATE_OBJECT RWindow win_120 - CREATE_OBJECT RWindow win_121 - CREATE_OBJECT RWindow win_122 - CREATE_OBJECT RBlankWindow bnkwin_123 - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 - COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 - COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 - COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 - COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 - COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 - COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 - COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 - COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 - COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 - COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 - COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 - COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 - COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 - COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 - COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 - - COMMAND bnkwin_123 Destroy - COMMAND bnkwin_123 ~ - COMMAND win_122 Destroy - COMMAND win_122 ~ - COMMAND win_121 Destroy - COMMAND win_121 ~ - COMMAND win_120 Destroy - COMMAND win_120 ~ - COMMAND win_112 Destroy - COMMAND win_112 ~ - COMMAND bnkwin_111 Destroy - COMMAND bnkwin_111 ~ - COMMAND bnkwin_110 Destroy - COMMAND bnkwin_110 ~ - COMMAND wingrp_100 Destroy - COMMAND wingrp_100 ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3002 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3003 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3003 -//! @SYMAPI RWindowTreeNode -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc Parent(): get the client handle id of the node's parent -//! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, Parent -//! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. -//! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. -//! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. -//! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. -//! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. -//! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. -//! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. -//! 8. Get the client handle id of the node's parent by using Parent() and return handle ID for the parent, or zero for window groups if successed. -//! 9. Close all window nodes by using Close() and return KErrNone if successed. -//! 10. Close the window session by using Close() and return KErrNone if successed. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults All nodes in the constructed window hierarchy are returned with handle ID for the parent, or zero for window groups without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp_100 - CREATE_OBJECT RBlankWindow bnkwin_110 - CREATE_OBJECT RBlankWindow bnkwin_111 - CREATE_OBJECT RWindow win_112 - CREATE_OBJECT RWindow win_120 - CREATE_OBJECT RWindow win_121 - CREATE_OBJECT RWindow win_122 - CREATE_OBJECT RBlankWindow bnkwin_123 - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 - COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 - COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 - COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 - COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 - COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 - COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 - COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 - COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 - COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 - COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 - COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 - COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 - COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 - COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 - COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 - - COMMAND bnkwin_123 Parent GRAPHICS-WSERV-Window-PublicApi-3003-0001-Parent_command002 - COMMAND win_122 Parent GRAPHICS-WSERV-Window-PublicApi-3003-0001-Parent_command004 - COMMAND win_121 Parent GRAPHICS-WSERV-Window-PublicApi-3003-0001-Parent_command006 - COMMAND win_120 Parent GRAPHICS-WSERV-Window-PublicApi-3003-0001-Parent_command008 - COMMAND win_112 Parent GRAPHICS-WSERV-Window-PublicApi-3003-0001-Parent_command010 - COMMAND bnkwin_111 Parent GRAPHICS-WSERV-Window-PublicApi-3003-0001-Parent_command012 - COMMAND bnkwin_110 Parent GRAPHICS-WSERV-Window-PublicApi-3003-0001-Parent_command014 - COMMAND wingrp_100 Parent GRAPHICS-WSERV-Window-PublicApi-3003-0001-Parent_command016 - - COMMAND bnkwin_123 Close - COMMAND win_122 Close - COMMAND win_121 Close - COMMAND win_120 Close - COMMAND win_112 Close - COMMAND bnkwin_111 Close - COMMAND bnkwin_110 Close - COMMAND wingrp_100 Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3003 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3004 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3004 -//! @SYMAPI RWindowTreeNode -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc PrevSibling(): get the client handle id of the previous node in the sibling list -//! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, PrevSibling -//! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. -//! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. -//! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. -//! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. -//! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. -//! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. -//! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. -//! 8. Get the client handle id of previous node in the sibling list by using PrevSibling() and return handle ID for the previous sibling, or zero if no previous sibling exists if successed. -//! 9. Close all window nodes by using Close() and return KErrNone if successed. -//! 10. Close the window session by using Close() and return KErrNone if successed. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults All nodes in the constructed window hierarchy are returned with handle ID for the previous sibling, or zero if no previous sibling exists without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp_100 - CREATE_OBJECT RBlankWindow bnkwin_110 - CREATE_OBJECT RBlankWindow bnkwin_111 - CREATE_OBJECT RWindow win_112 - CREATE_OBJECT RWindow win_120 - CREATE_OBJECT RWindow win_121 - CREATE_OBJECT RWindow win_122 - CREATE_OBJECT RBlankWindow bnkwin_123 - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 - COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 - COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 - COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 - COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 - COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 - COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 - COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 - COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 - COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 - COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 - COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 - COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 - COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 - COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 - COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 - - COMMAND bnkwin_123 PrevSibling GRAPHICS-WSERV-Window-PublicApi-3004-0001-PrevSibling_command002 - COMMAND win_122 PrevSibling GRAPHICS-WSERV-Window-PublicApi-3004-0001-PrevSibling_command004 - COMMAND win_121 PrevSibling GRAPHICS-WSERV-Window-PublicApi-3004-0001-PrevSibling_command006 - COMMAND win_120 PrevSibling GRAPHICS-WSERV-Window-PublicApi-3004-0001-PrevSibling_command008 - COMMAND win_112 PrevSibling GRAPHICS-WSERV-Window-PublicApi-3004-0001-PrevSibling_command010 - COMMAND bnkwin_111 PrevSibling GRAPHICS-WSERV-Window-PublicApi-3004-0001-PrevSibling_command012 - COMMAND bnkwin_110 PrevSibling GRAPHICS-WSERV-Window-PublicApi-3004-0001-PrevSibling_command014 - COMMAND wingrp_100 PrevSibling GRAPHICS-WSERV-Window-PublicApi-3004-0001-PrevSibling_command016 - - COMMAND bnkwin_123 Close - COMMAND win_122 Close - COMMAND win_121 Close - COMMAND win_120 Close - COMMAND win_112 Close - COMMAND bnkwin_111 Close - COMMAND bnkwin_110 Close - COMMAND wingrp_100 Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3004 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3005 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3005 -//! @SYMAPI RWindowTreeNode -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc NextSibling(): get the client handle id of the next node in the sibling list -//! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, NextSibling -//! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. -//! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. -//! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. -//! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. -//! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. -//! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. -//! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. -//! 8. Get the client handle id of the next node in the sibling list by using NextSibling() and return window handle of next sibling, or 0 if no next sibling exists if successed. -//! 9. Close all window nodes by using Close() and return KErrNone if successed. -//! 10. Close the window session by using Close() and return KErrNone if successed. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults All nodes in the constructed window hierarchy are returned with window handle of next sibling, or 0 if no next sibling exists without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp_100 - CREATE_OBJECT RBlankWindow bnkwin_110 - CREATE_OBJECT RBlankWindow bnkwin_111 - CREATE_OBJECT RWindow win_112 - CREATE_OBJECT RWindow win_120 - CREATE_OBJECT RWindow win_121 - CREATE_OBJECT RWindow win_122 - CREATE_OBJECT RBlankWindow bnkwin_123 - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 - COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 - COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 - COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 - COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 - COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 - COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 - COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 - COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 - COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 - COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 - COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 - COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 - COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 - COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 - COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 - - COMMAND bnkwin_123 NextSibling GRAPHICS-WSERV-Window-PublicApi-3005-0001-NextSibling_command002 - COMMAND win_122 NextSibling GRAPHICS-WSERV-Window-PublicApi-3005-0001-NextSibling_command004 - COMMAND win_121 NextSibling GRAPHICS-WSERV-Window-PublicApi-3005-0001-NextSibling_command006 - COMMAND win_120 NextSibling GRAPHICS-WSERV-Window-PublicApi-3005-0001-NextSibling_command008 - COMMAND win_112 NextSibling GRAPHICS-WSERV-Window-PublicApi-3005-0001-NextSibling_command010 - COMMAND bnkwin_111 NextSibling GRAPHICS-WSERV-Window-PublicApi-3005-0001-NextSibling_command012 - COMMAND bnkwin_110 NextSibling GRAPHICS-WSERV-Window-PublicApi-3005-0001-NextSibling_command014 - COMMAND wingrp_100 NextSibling GRAPHICS-WSERV-Window-PublicApi-3005-0001-NextSibling_command016 - - COMMAND bnkwin_123 Close - COMMAND win_122 Close - COMMAND win_121 Close - COMMAND win_120 Close - COMMAND win_112 Close - COMMAND bnkwin_111 Close - COMMAND bnkwin_110 Close - COMMAND wingrp_100 Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3005 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3006 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3006 -//! @SYMAPI RWindowTreeNode -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc Child(): get the client handle id of the nodes' first child -//! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, Child -//! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. -//! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. -//! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. -//! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. -//! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. -//! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. -//! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. -//! 8. Get the client handle id of the nodes' first child by using Child() and return the client handle of the child node that currently has ordinal position 0. This is 0 if there isn't a child if successed. -//! 9. Close all window nodes by using Close() and return KErrNone if successed. -//! 10. Close the window session by using Close() and return KErrNone if successed. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults All nodes in the constructed window hierarchy are returned with the client handle of the child node that currently has ordinal position 0. This is 0 if there isn't a child without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp_100 - CREATE_OBJECT RBlankWindow bnkwin_110 - CREATE_OBJECT RBlankWindow bnkwin_111 - CREATE_OBJECT RWindow win_112 - CREATE_OBJECT RWindow win_120 - CREATE_OBJECT RWindow win_121 - CREATE_OBJECT RWindow win_122 - CREATE_OBJECT RBlankWindow bnkwin_123 - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 - COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 - COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 - COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 - COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 - COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 - COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 - COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 - COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 - COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 - COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 - COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 - COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 - COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 - COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 - COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 - - COMMAND bnkwin_123 Child GRAPHICS-WSERV-Window-PublicApi-3006-0001-Child_command002 - COMMAND win_122 Child GRAPHICS-WSERV-Window-PublicApi-3006-0001-Child_command004 - COMMAND win_121 Child GRAPHICS-WSERV-Window-PublicApi-3006-0001-Child_command006 - COMMAND win_120 Child GRAPHICS-WSERV-Window-PublicApi-3006-0001-Child_command008 - COMMAND win_112 Child GRAPHICS-WSERV-Window-PublicApi-3006-0001-Child_command010 - COMMAND bnkwin_111 Child GRAPHICS-WSERV-Window-PublicApi-3006-0001-Child_command012 - COMMAND bnkwin_110 Child GRAPHICS-WSERV-Window-PublicApi-3006-0001-Child_command014 - COMMAND wingrp_100 Child GRAPHICS-WSERV-Window-PublicApi-3006-0001-Child_command016 - - COMMAND bnkwin_123 Close - COMMAND win_122 Close - COMMAND win_121 Close - COMMAND win_120 Close - COMMAND win_112 Close - COMMAND bnkwin_111 Close - COMMAND bnkwin_110 Close - COMMAND wingrp_100 Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3006 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3007 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3007 -//! @SYMAPI RWindowTreeNode -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc OrdinalPriority(): Gets the ordinal priority of the specified window. -//! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, OrdinalPriority -//! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. -//! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. -//! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. -//! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. -//! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. -//! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. -//! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. -//! 8. Get the ordinal priority of the specified window by using OrdinalPriority() and return the ordinal priority of the specified window if successed. -//! 9. Close all window nodes by using Close() and return KErrNone if successed. -//! 10. Close the window session by using Close() and return KErrNone if successed. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults All nodes in the constructed window hierarchy are returned with the ordinal priority of the specified window without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp_100 - CREATE_OBJECT RBlankWindow bnkwin_110 - CREATE_OBJECT RBlankWindow bnkwin_111 - CREATE_OBJECT RWindow win_112 - CREATE_OBJECT RWindow win_120 - CREATE_OBJECT RWindow win_121 - CREATE_OBJECT RWindow win_122 - CREATE_OBJECT RBlankWindow bnkwin_123 - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 - COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 - COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 - COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 - COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 - COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 - COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 - COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 - COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 - COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 - COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 - COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 - COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 - COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 - COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 - COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 - - COMMAND bnkwin_123 OrdinalPriority GRAPHICS-WSERV-Window-PublicApi-3007-0001-OrdinalPriority_command002 - COMMAND win_122 OrdinalPriority GRAPHICS-WSERV-Window-PublicApi-3007-0001-OrdinalPriority_command004 - COMMAND win_121 OrdinalPriority GRAPHICS-WSERV-Window-PublicApi-3007-0001-OrdinalPriority_command006 - COMMAND win_120 OrdinalPriority GRAPHICS-WSERV-Window-PublicApi-3007-0001-OrdinalPriority_command008 - COMMAND win_112 OrdinalPriority GRAPHICS-WSERV-Window-PublicApi-3007-0001-OrdinalPriority_command010 - COMMAND bnkwin_111 OrdinalPriority GRAPHICS-WSERV-Window-PublicApi-3007-0001-OrdinalPriority_command012 - COMMAND bnkwin_110 OrdinalPriority GRAPHICS-WSERV-Window-PublicApi-3007-0001-OrdinalPriority_command014 - COMMAND wingrp_100 OrdinalPriority GRAPHICS-WSERV-Window-PublicApi-3007-0001-OrdinalPriority_command016 - - COMMAND bnkwin_123 Close - COMMAND win_122 Close - COMMAND win_121 Close - COMMAND win_120 Close - COMMAND win_112 Close - COMMAND bnkwin_111 Close - COMMAND bnkwin_110 Close - COMMAND wingrp_100 Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3007 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3008 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3008 -//! @SYMAPI RWindowTreeNode -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc OrdinalPosition(): Gets the current ordinal position of the window tree node. -//! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, OrdinalPosition -//! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. -//! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. -//! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. -//! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. -//! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. -//! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. -//! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. -//! 8. Get the current ordinal position of the window tree node by using OrdinalPosition() and return the window's ordinal position if successed. -//! 9. Close all window nodes by using Close() and return KErrNone if successed. -//! 10. Close the window session by using Close() and return KErrNone if successed. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults All nodes in the constructed window hierarchy are returned with the window's ordinal position without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp_100 - CREATE_OBJECT RBlankWindow bnkwin_110 - CREATE_OBJECT RBlankWindow bnkwin_111 - CREATE_OBJECT RWindow win_112 - CREATE_OBJECT RWindow win_120 - CREATE_OBJECT RWindow win_121 - CREATE_OBJECT RWindow win_122 - CREATE_OBJECT RBlankWindow bnkwin_123 - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 - COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 - COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 - COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 - COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 - COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 - COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 - COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 - COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 - COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 - COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 - COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 - COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 - COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 - COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 - COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 - - COMMAND bnkwin_123 OrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3008-0001-OrdinalPosition_command002 - COMMAND win_122 OrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3008-0001-OrdinalPosition_command004 - COMMAND win_121 OrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3008-0001-OrdinalPosition_command006 - COMMAND win_120 OrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3008-0001-OrdinalPosition_command008 - COMMAND win_112 OrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3008-0001-OrdinalPosition_command010 - COMMAND bnkwin_111 OrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3008-0001-OrdinalPosition_command012 - COMMAND bnkwin_110 OrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3008-0001-OrdinalPosition_command014 - COMMAND wingrp_100 OrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3008-0001-OrdinalPosition_command016 - - COMMAND bnkwin_123 Close - COMMAND win_122 Close - COMMAND win_121 Close - COMMAND win_120 Close - COMMAND win_112 Close - COMMAND bnkwin_111 Close - COMMAND bnkwin_110 Close - COMMAND wingrp_100 Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3008 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3009 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3009 -//! @SYMAPI RWindowTreeNode -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc FullOrdinalPosition(): Get the current full ordinal position of a window. -//! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, FullOrdinalPosition -//! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. -//! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. -//! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. -//! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. -//! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. -//! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. -//! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. -//! 8. Get the current full ordinal position of a window by using FullOrdinalPosition() and return the window's full ordinal position if successed. -//! 9. Close all window nodes by using Close() and return KErrNone if successed. -//! 10. Close the window session by using Close() and return KErrNone if successed. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults All nodes in the constructed window hierarchy are returned with the window's full ordinal position without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp_100 - CREATE_OBJECT RBlankWindow bnkwin_110 - CREATE_OBJECT RBlankWindow bnkwin_111 - CREATE_OBJECT RWindow win_112 - CREATE_OBJECT RWindow win_120 - CREATE_OBJECT RWindow win_121 - CREATE_OBJECT RWindow win_122 - CREATE_OBJECT RBlankWindow bnkwin_123 - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 - COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 - COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 - COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 - COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 - COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 - COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 - COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 - COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 - COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 - COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 - COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 - COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 - COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 - COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 - COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 - - COMMAND bnkwin_123 FullOrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3009-0001-FullOrdinalPosition_command002 - COMMAND win_122 FullOrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3009-0001-FullOrdinalPosition_command004 - COMMAND win_121 FullOrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3009-0001-FullOrdinalPosition_command006 - COMMAND win_120 FullOrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3009-0001-FullOrdinalPosition_command008 - COMMAND win_112 FullOrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3009-0001-FullOrdinalPosition_command010 - COMMAND bnkwin_111 FullOrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3009-0001-FullOrdinalPosition_command012 - COMMAND bnkwin_110 FullOrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3009-0001-FullOrdinalPosition_command014 - - COMMAND bnkwin_123 Close - COMMAND win_122 Close - COMMAND win_121 Close - COMMAND win_120 Close - COMMAND win_112 Close - COMMAND bnkwin_111 Close - COMMAND bnkwin_110 Close - COMMAND wingrp_100 Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3009 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3010 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3010 -//! @SYMAPI RWindowTreeNode -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc SetOrdinalPosition(): Sets the ordinal position of a window. -//! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, SetOrdinalPosition -//! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. -//! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. -//! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. -//! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. -//! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. -//! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. -//! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. -//! 8. Sets the ordinal position of a window by using SetOrdinalPosition() and return the window's new ordinal position if successed. -//! 9. Get the current ordinal position of the window tree node by using OrdinalPosition() and return the window's ordinal position if successed. -//! 10. Verifies the window's ordinal position is same as the setting of the ordinal position of a window if it is same and successed. -//! 11. Close all window nodes by using Close() and return KErrNone if successed. -//! 12. Close the window session by using Close() and return KErrNone if successed. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults All nodes in the constructed window hierarchy are returned with the window's ordinal position and same as setting of ordinal position without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp_100 - CREATE_OBJECT RBlankWindow bnkwin_110 - CREATE_OBJECT RBlankWindow bnkwin_111 - CREATE_OBJECT RWindow win_112 - CREATE_OBJECT RWindow win_120 - CREATE_OBJECT RWindow win_121 - CREATE_OBJECT RWindow win_122 - CREATE_OBJECT RBlankWindow bnkwin_123 - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 - COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 - COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 - COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 - COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 - COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 - COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 - COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 - COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 - COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 - COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 - COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 - COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 - COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 - COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 - COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 - - COMMAND bnkwin_123 SetOrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3010-0001-SetOrdinalPosition_command002 - COMMAND win_122 SetOrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3010-0001-SetOrdinalPosition_command004 - COMMAND win_121 SetOrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3010-0001-SetOrdinalPosition_command006 - COMMAND bnkwin_123 OrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3010-0001-OrdinalPosition_command008 - COMMAND win_122 OrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3010-0001-OrdinalPosition_command010 - COMMAND win_121 OrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3010-0001-OrdinalPosition_command012 - - COMMAND bnkwin_123 Close - COMMAND win_122 Close - COMMAND win_121 Close - COMMAND win_120 Close - COMMAND win_112 Close - COMMAND bnkwin_111 Close - COMMAND bnkwin_110 Close - COMMAND wingrp_100 Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3010 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3011 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3011 -//! @SYMAPI RWindowTreeNode -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc SetOrdinalPosition(): Sets the ordinal position and ordinal priority of a window. -//! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, SetOrdinalPosition -//! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. -//! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. -//! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. -//! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. -//! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. -//! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. -//! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. -//! 8. Sets the ordinal position and ordinal priority of a window by using SetOrdinalPosition() and return the window's new ordinal position if successed. -//! 9. Get the current ordinal position of the window tree node by using OrdinalPosition() and return the window's ordinal position if successed. -//! 10. Gets the ordinal priority of the specified window by using OrdinalPriority() and return the ordinal priority of the specified window if successed. -//! 11. Verifies the window's ordinal position is same as the setting of the ordinal position of a window if it is same and successed. -//! 12. Verifies the window's ordinal priority is same as the setting of the ordinal priority of a window if it is same and successed. -//! 13. Close all window nodes by using Close() and return KErrNone if successed. -//! 14. Close the window session by using Close() and return KErrNone if successed. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults All nodes in the constructed window hierarchy are returned with the window's ordinal position, ordinal priority and same as setting of ordinal position without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp_100 - CREATE_OBJECT RBlankWindow bnkwin_110 - CREATE_OBJECT RBlankWindow bnkwin_111 - CREATE_OBJECT RWindow win_112 - CREATE_OBJECT RWindow win_120 - CREATE_OBJECT RWindow win_121 - CREATE_OBJECT RWindow win_122 - CREATE_OBJECT RBlankWindow bnkwin_123 - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 - COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 - COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 - COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 - COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 - COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 - COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 - COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 - COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 - COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 - COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 - COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 - COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 - COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 - COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 - COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 - - COMMAND bnkwin_123 SetOrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3011-0001-SetOrdinalPosition_command002 - COMMAND win_122 SetOrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3011-0001-SetOrdinalPosition_command004 - COMMAND win_121 SetOrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3011-0001-SetOrdinalPosition_command006 - COMMAND bnkwin_123 OrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3011-0001-OrdinalPosition_command008 - COMMAND win_122 OrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3011-0001-OrdinalPosition_command010 - COMMAND win_121 OrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3011-0001-OrdinalPosition_command012 - COMMAND bnkwin_123 OrdinalPriority GRAPHICS-WSERV-Window-PublicApi-3011-0001-OrdinalPriority_command014 - COMMAND win_122 OrdinalPriority GRAPHICS-WSERV-Window-PublicApi-3011-0001-OrdinalPriority_command016 - COMMAND win_121 OrdinalPriority GRAPHICS-WSERV-Window-PublicApi-3011-0001-OrdinalPriority_command018 - - COMMAND bnkwin_123 Close - COMMAND win_122 Close - COMMAND win_121 Close - COMMAND win_120 Close - COMMAND win_112 Close - COMMAND bnkwin_111 Close - COMMAND bnkwin_110 Close - COMMAND wingrp_100 Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3011 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3012 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3012 -//! @SYMAPI RWindowTreeNode -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc WindowGroupId(): Returns the window group Id of the parent window group. -//! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, WindowGroupId -//! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. -//! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. -//! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. -//! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. -//! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. -//! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. -//! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. -//! 8. Returns the window group Id of the parent window group by using WindowGroupId() if successed. -//! 9. Close all window nodes by using Close() and return KErrNone if successed. -//! 10. Close the window session by using Close() and return KErrNone if successed. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults All nodes in the constructed window hierarchy are returned with the window group Id of the parent window group without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp_100 - CREATE_OBJECT RBlankWindow bnkwin_110 - CREATE_OBJECT RBlankWindow bnkwin_111 - CREATE_OBJECT RWindow win_112 - CREATE_OBJECT RWindow win_120 - CREATE_OBJECT RWindow win_121 - CREATE_OBJECT RWindow win_122 - CREATE_OBJECT RBlankWindow bnkwin_123 - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 - COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 - COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 - COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 - COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 - COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 - COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 - COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 - COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 - COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 - COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 - COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 - COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 - COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 - COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 - COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 - - COMMAND bnkwin_123 WindowGroupId - COMMAND win_122 WindowGroupId - COMMAND win_121 WindowGroupId - COMMAND win_120 WindowGroupId - COMMAND win_112 WindowGroupId - COMMAND bnkwin_111 WindowGroupId - COMMAND bnkwin_110 WindowGroupId - COMMAND wingrp_100 WindowGroupId - - COMMAND bnkwin_123 Close - COMMAND win_122 Close - COMMAND win_121 Close - COMMAND win_120 Close - COMMAND win_112 Close - COMMAND bnkwin_111 Close - COMMAND bnkwin_110 Close - COMMAND wingrp_100 Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3012 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3013 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3013 -//! @SYMAPI RWindowTreeNode -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc SetPointerCursor(): Sets the pointer cursor from the system pointer cursor list. -//! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, SetPointerCursor -//! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. -//! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. -//! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. -//! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. -//! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. -//! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. -//! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. -//! 8. Sets the pointer cursor from the system pointer cursor list by using SetPointerCursor() and return KErrNone if successed. -//! 9. Close all window nodes by using Close() and return KErrNone if successed. -//! 10. Close the window session by using Close() and return KErrNone if successed. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults All nodes in the constructed window hierarchy are set with the pointer cursor from the system pointer cursor list without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp_100 - CREATE_OBJECT RBlankWindow bnkwin_110 - CREATE_OBJECT RBlankWindow bnkwin_111 - CREATE_OBJECT RWindow win_112 - CREATE_OBJECT RWindow win_120 - CREATE_OBJECT RWindow win_121 - CREATE_OBJECT RWindow win_122 - CREATE_OBJECT RBlankWindow bnkwin_123 - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 - COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 - COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 - COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 - COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 - COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 - COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 - COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 - COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 - COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 - COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 - COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 - COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 - COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 - COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 - COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 - - COMMAND win_122 SetPointerCursor GRAPHICS-WSERV-Window-PublicApi-3013-0001-SetPointerCursor_command002 - - COMMAND bnkwin_123 Close - COMMAND win_122 Close - COMMAND win_121 Close - COMMAND win_120 Close - COMMAND win_112 Close - COMMAND bnkwin_111 Close - COMMAND bnkwin_110 Close - COMMAND wingrp_100 Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3013 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3014 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3014 -//! @SYMAPI RWindowTreeNode -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc SetCustomPointerCursor(): Sets the pointer cursor to an application-defined cursor. -//! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, SetCustomPointerCursor -//! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. -//! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. -//! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. -//! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. -//! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. -//! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. -//! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. -//! 8. Sets the pointer cursor to an application-defined cursor by using SetCustomPointerCursor() and return KErrNone if successed. -//! 9. Close all window nodes by using Close() and return KErrNone if successed. -//! 10. Close the window session by using Close() and return KErrNone if successed. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults All nodes in the constructed window hierarchy are set with the pointer cursor to an application-defined cursor without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp_100 - CREATE_OBJECT RBlankWindow bnkwin_110 - CREATE_OBJECT RBlankWindow bnkwin_111 - CREATE_OBJECT RWindow win_112 - CREATE_OBJECT RWindow win_120 - CREATE_OBJECT RWindow win_121 - CREATE_OBJECT RWindow win_122 - CREATE_OBJECT RBlankWindow bnkwin_123 - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 - COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 - COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 - COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 - COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 - COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 - COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 - COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 - COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 - COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 - COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 - COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 - COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 - COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 - COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 - COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 - - COMMAND win_122 SetCustomPointerCursor GRAPHICS-WSERV-Window-PublicApi-3014-0001-SetCustomPointerCursor_command002 - - COMMAND bnkwin_123 Close - COMMAND win_122 Close - COMMAND win_121 Close - COMMAND win_120 Close - COMMAND win_112 Close - COMMAND bnkwin_111 Close - COMMAND bnkwin_110 Close - COMMAND wingrp_100 Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3014 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3015 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3015 -//! @SYMAPI RWindowTreeNode -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc EnableOnEvents(): Requests notification of 'on' events. -//! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, EnableOnEvents -//! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. -//! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. -//! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. -//! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. -//! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. -//! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. -//! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. -//! 8. Requests notification of 'on' events by using EnableOnEvents() and return KErrNone if successed. -//! 9. Close all window nodes by using Close() and return KErrNone if successed. -//! 10. Close the window session by using Close() and return KErrNone if successed. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults All nodes in the constructed window hierarchy are requests notification of 'on' events without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp_100 - CREATE_OBJECT RBlankWindow bnkwin_110 - CREATE_OBJECT RBlankWindow bnkwin_111 - CREATE_OBJECT RWindow win_112 - CREATE_OBJECT RWindow win_120 - CREATE_OBJECT RWindow win_121 - CREATE_OBJECT RWindow win_122 - CREATE_OBJECT RBlankWindow bnkwin_123 - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 - COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 - COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 - COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 - COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 - COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 - COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 - COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 - COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 - COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 - COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 - COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 - COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 - COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 - COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 - COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 - - COMMAND win_120 EnableOnEvents GRAPHICS-WSERV-Window-PublicApi-3015-0001-EnableOnEvents_command002 - - COMMAND bnkwin_123 Close - COMMAND win_122 Close - COMMAND win_121 Close - COMMAND win_120 Close - COMMAND win_112 Close - COMMAND bnkwin_111 Close - COMMAND bnkwin_110 Close - COMMAND wingrp_100 Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3015 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3016 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3016 -//! @SYMAPI RWindowTreeNode -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc DisableOnEvents(): Cancels notification of 'on' events. -//! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, DisableOnEvents -//! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. -//! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. -//! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. -//! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. -//! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. -//! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. -//! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. -//! 8. Requests notification of 'on' events by using EnableOnEvents() and return KErrNone if successed. -//! 9. Cancels notification of 'on' events by using DisableOnEvents(). -//! 10. Close all window nodes by using Close() and return KErrNone if successed. -//! 11. Close the window session by using Close() and return KErrNone if successed. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults All nodes in the constructed window hierarchy are cancels notification of 'on' events without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp_100 - CREATE_OBJECT RBlankWindow bnkwin_110 - CREATE_OBJECT RBlankWindow bnkwin_111 - CREATE_OBJECT RWindow win_112 - CREATE_OBJECT RWindow win_120 - CREATE_OBJECT RWindow win_121 - CREATE_OBJECT RWindow win_122 - CREATE_OBJECT RBlankWindow bnkwin_123 - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 - COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 - COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 - COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 - COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 - COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 - COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 - COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 - COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 - COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 - COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 - COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 - COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 - COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 - COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 - COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 - - COMMAND win_120 EnableOnEvents GRAPHICS-WSERV-Window-PublicApi-3016-0001-EnableOnEvents_command002 - COMMAND win_120 DisableOnEvents - - COMMAND bnkwin_123 Close - COMMAND win_122 Close - COMMAND win_121 Close - COMMAND win_120 Close - COMMAND win_112 Close - COMMAND bnkwin_111 Close - COMMAND bnkwin_110 Close - COMMAND wingrp_100 Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3016 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3017 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3017 -//! @SYMAPI RWindowTreeNode -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc EnableGroupChangeEvents(): Requests notification of group-change events. -//! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, EnableGroupChangeEvents -//! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. -//! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. -//! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. -//! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. -//! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. -//! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. -//! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. -//! 8. Requests notification of group-change events by using EnableGroupChangeEvents() and return KErrNone if successed. -//! 9. Close all window nodes by using Close() and return KErrNone if successed. -//! 10. Close the window session by using Close() and return KErrNone if successed. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults All nodes in the constructed window hierarchy are requests notification of group-change events without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp_100 - CREATE_OBJECT RBlankWindow bnkwin_110 - CREATE_OBJECT RBlankWindow bnkwin_111 - CREATE_OBJECT RWindow win_112 - CREATE_OBJECT RWindow win_120 - CREATE_OBJECT RWindow win_121 - CREATE_OBJECT RWindow win_122 - CREATE_OBJECT RBlankWindow bnkwin_123 - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 - COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 - COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 - COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 - COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 - COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 - COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 - COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 - COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 - COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 - COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 - COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 - COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 - COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 - COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 - COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 - - COMMAND wingrp_100 EnableGroupChangeEvents - - COMMAND bnkwin_123 Close - COMMAND win_122 Close - COMMAND win_121 Close - COMMAND win_120 Close - COMMAND win_112 Close - COMMAND bnkwin_111 Close - COMMAND bnkwin_110 Close - COMMAND wingrp_100 Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3017 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3018 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3018 -//! @SYMAPI RWindowTreeNode -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc DisableGroupChangeEvents(): Sets the pointer cursor to an application-defined cursor. -//! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, DisableGroupChangeEvents -//! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. -//! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. -//! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. -//! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. -//! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. -//! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. -//! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. -//! 8. Requests notification of group-change events by using EnableGroupChangeEvents() and return KErrNone if successed. -//! 9. Cancels notification of group changed events by using DisableGroupChangeEvents(). -//! 10. Close all window nodes by using Close() and return KErrNone if successed. -//! 11. Close the window session by using Close() and return KErrNone if successed. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults All nodes in the constructed window hierarchy are cancels notification of group changed events without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp_100 - CREATE_OBJECT RBlankWindow bnkwin_110 - CREATE_OBJECT RBlankWindow bnkwin_111 - CREATE_OBJECT RWindow win_112 - CREATE_OBJECT RWindow win_120 - CREATE_OBJECT RWindow win_121 - CREATE_OBJECT RWindow win_122 - CREATE_OBJECT RBlankWindow bnkwin_123 - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 - COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 - COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 - COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 - COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 - COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 - COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 - COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 - COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 - COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 - COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 - COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 - COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 - COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 - COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 - COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 - - COMMAND wingrp_100 EnableGroupChangeEvents - COMMAND wingrp_100 DisableGroupChangeEvents - - COMMAND bnkwin_123 Close - COMMAND win_122 Close - COMMAND win_121 Close - COMMAND win_120 Close - COMMAND win_112 Close - COMMAND bnkwin_111 Close - COMMAND bnkwin_110 Close - COMMAND wingrp_100 Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3018 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3019 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3019 -//! @SYMAPI RWindowTreeNode -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc EnableFocusChangeEvents(): Enables focus changed events. -//! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, EnableFocusChangeEvents -//! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. -//! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. -//! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. -//! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. -//! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. -//! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. -//! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. -//! 8. Enables focus changed events by using EnableFocusChangeEvents() and return KErrNone if successed. -//! 9. Close all window nodes by using Close() and return KErrNone if successed. -//! 10. Close the window session by using Close() and return KErrNone if successed. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults All nodes in the constructed window hierarchy are enables focus changed events without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp_100 - CREATE_OBJECT RBlankWindow bnkwin_110 - CREATE_OBJECT RBlankWindow bnkwin_111 - CREATE_OBJECT RWindow win_112 - CREATE_OBJECT RWindow win_120 - CREATE_OBJECT RWindow win_121 - CREATE_OBJECT RWindow win_122 - CREATE_OBJECT RBlankWindow bnkwin_123 - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 - COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 - COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 - COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 - COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 - COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 - COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 - COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 - COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 - COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 - COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 - COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 - COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 - COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 - COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 - COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 - - COMMAND wingrp_100 EnableFocusChangeEvents - - COMMAND bnkwin_123 Close - COMMAND win_122 Close - COMMAND win_121 Close - COMMAND win_120 Close - COMMAND win_112 Close - COMMAND bnkwin_111 Close - COMMAND bnkwin_110 Close - COMMAND wingrp_100 Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3019 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3020 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3020 -//! @SYMAPI RWindowTreeNode -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc DisableFocusChangeEvents(): Disables delivery of focus changed events. -//! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, DisableFocusChangeEvents -//! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. -//! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. -//! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. -//! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. -//! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. -//! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. -//! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. -//! 8. Enables focus changed events by using EnableFocusChangeEvents() and return KErrNone if successed. -//! 9. Disables delivery of focus changed events by using DisableFocusChangeEvents(). -//! 10. Close all window nodes by using Close() and return KErrNone if successed. -//! 11. Close the window session by using Close() and return KErrNone if successed. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults All nodes in the constructed window hierarchy are disables delivery of focus changed events without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp_100 - CREATE_OBJECT RBlankWindow bnkwin_110 - CREATE_OBJECT RBlankWindow bnkwin_111 - CREATE_OBJECT RWindow win_112 - CREATE_OBJECT RWindow win_120 - CREATE_OBJECT RWindow win_121 - CREATE_OBJECT RWindow win_122 - CREATE_OBJECT RBlankWindow bnkwin_123 - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 - COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 - COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 - COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 - COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 - COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 - COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 - COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 - COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 - COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 - COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 - COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 - COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 - COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 - COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 - COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 - - COMMAND wingrp_100 EnableFocusChangeEvents - COMMAND wingrp_100 DisableFocusChangeEvents - - COMMAND bnkwin_123 Close - COMMAND win_122 Close - COMMAND win_121 Close - COMMAND win_120 Close - COMMAND win_112 Close - COMMAND bnkwin_111 Close - COMMAND bnkwin_110 Close - COMMAND wingrp_100 Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3020 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3021 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3021 -//! @SYMAPI RWindowTreeNode -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc EnableGroupListChangeEvents(): Enables reporting of window group list change events. -//! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, EnableGroupListChangeEvents -//! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. -//! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. -//! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. -//! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. -//! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. -//! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. -//! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. -//! 8. Enables reporting of window group list change events by using EnableGroupListChangeEvents() and return KErrNone if successed. -//! 9. Close all window nodes by using Close() and return KErrNone if successed. -//! 10. Close the window session by using Close() and return KErrNone if successed. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults All nodes in the constructed window hierarchy are enables reporting of window group list change events without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp_100 - CREATE_OBJECT RBlankWindow bnkwin_110 - CREATE_OBJECT RBlankWindow bnkwin_111 - CREATE_OBJECT RWindow win_112 - CREATE_OBJECT RWindow win_120 - CREATE_OBJECT RWindow win_121 - CREATE_OBJECT RWindow win_122 - CREATE_OBJECT RBlankWindow bnkwin_123 - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 - COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 - COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 - COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 - COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 - COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 - COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 - COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 - COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 - COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 - COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 - COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 - COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 - COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 - COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 - COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 - - COMMAND wingrp_100 EnableGroupListChangeEvents - - COMMAND bnkwin_123 Close - COMMAND win_122 Close - COMMAND win_121 Close - COMMAND win_120 Close - COMMAND win_112 Close - COMMAND bnkwin_111 Close - COMMAND bnkwin_110 Close - COMMAND wingrp_100 Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3021 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3022 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3022 -//! @SYMAPI RWindowTreeNode -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc DisableGroupListChangeEvents(): Disables reporting of window group list change events. -//! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, DisableGroupListChangeEvents -//! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. -//! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. -//! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. -//! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. -//! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. -//! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. -//! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. -//! 8. Enables reporting of window group list change events by using EnableGroupListChangeEvents() and return KErrNone if successed. -//! 9. Disables reporting of window group list change events by using DisableGroupListChangeEvents(). -//! 10. Close all window nodes by using Close() and return KErrNone if successed. -//! 11. Close the window session by using Close() and return KErrNone if successed. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults All nodes in the constructed window hierarchy are disables reporting of window group list change events without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp_100 - CREATE_OBJECT RBlankWindow bnkwin_110 - CREATE_OBJECT RBlankWindow bnkwin_111 - CREATE_OBJECT RWindow win_112 - CREATE_OBJECT RWindow win_120 - CREATE_OBJECT RWindow win_121 - CREATE_OBJECT RWindow win_122 - CREATE_OBJECT RBlankWindow bnkwin_123 - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 - COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 - COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 - COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 - COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 - COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 - COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 - COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 - COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 - COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 - COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 - COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 - COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 - COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 - COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 - COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 - - COMMAND wingrp_100 EnableGroupListChangeEvents - COMMAND wingrp_100 DisableGroupListChangeEvents - - COMMAND bnkwin_123 Close - COMMAND win_122 Close - COMMAND win_121 Close - COMMAND win_120 Close - COMMAND win_112 Close - COMMAND bnkwin_111 Close - COMMAND bnkwin_110 Close - COMMAND wingrp_100 Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3022 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3023 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3023 -//! @SYMAPI RWindowTreeNode -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc EnableVisibilityChangeEvents(): Enables reporting of window visibility change events. -//! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, EnableVisibilityChangeEvents -//! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. -//! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. -//! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. -//! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. -//! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. -//! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. -//! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. -//! 8. Enables reporting of window visibility change events by using EnableVisibilityChangeEvents() and return KErrNone if successed. -//! 9. Close all window nodes by using Close() and return KErrNone if successed. -//! 10. Close the window session by using Close() and return KErrNone if successed. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults All nodes in the constructed window hierarchy are enables reporting of window visibility change events without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp_100 - CREATE_OBJECT RBlankWindow bnkwin_110 - CREATE_OBJECT RBlankWindow bnkwin_111 - CREATE_OBJECT RWindow win_112 - CREATE_OBJECT RWindow win_120 - CREATE_OBJECT RWindow win_121 - CREATE_OBJECT RWindow win_122 - CREATE_OBJECT RBlankWindow bnkwin_123 - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 - COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 - COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 - COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 - COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 - COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 - COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 - COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 - COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 - COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 - COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 - COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 - COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 - COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 - COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 - COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 - - COMMAND win_112 EnableVisibilityChangeEvents - - COMMAND bnkwin_123 Close - COMMAND win_122 Close - COMMAND win_121 Close - COMMAND win_120 Close - COMMAND win_112 Close - COMMAND bnkwin_111 Close - COMMAND bnkwin_110 Close - COMMAND wingrp_100 Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3023 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3024 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3024 -//! @SYMAPI RWindowTreeNode -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc DisableVisibilityChangeEvents(): Disables reporting of window visibility change events. -//! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, DisableVisibilityChangeEvents -//! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. -//! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. -//! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. -//! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. -//! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. -//! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. -//! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. -//! 8. Enables reporting of window visibility change events by using EnableVisibilityChangeEvents() and return KErrNone if successed. -//! 9. Disables reporting of window visibility change events by using DisableVisibilityChangeEvents(). -//! 10. Close all window nodes by using Close() and return KErrNone if successed. -//! 11. Close the window session by using Close() and return KErrNone if successed. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults All nodes in the constructed window hierarchy are disables reporting of window visibility change events without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp_100 - CREATE_OBJECT RBlankWindow bnkwin_110 - CREATE_OBJECT RBlankWindow bnkwin_111 - CREATE_OBJECT RWindow win_112 - CREATE_OBJECT RWindow win_120 - CREATE_OBJECT RWindow win_121 - CREATE_OBJECT RWindow win_122 - CREATE_OBJECT RBlankWindow bnkwin_123 - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 - COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 - COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 - COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 - COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 - COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 - COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 - COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 - COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 - COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 - COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 - COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 - COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 - COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 - COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 - COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 - - COMMAND win_112 EnableVisibilityChangeEvents - COMMAND win_112 DisableVisibilityChangeEvents - - COMMAND bnkwin_123 Close - COMMAND win_122 Close - COMMAND win_121 Close - COMMAND win_120 Close - COMMAND win_112 Close - COMMAND bnkwin_111 Close - COMMAND bnkwin_110 Close - COMMAND wingrp_100 Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3024 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3025 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3025 -//! @SYMAPI RWindowTreeNode -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc EnableErrorMessages(): Requests notification of error message events. -//! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, EnableErrorMessages -//! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. -//! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. -//! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. -//! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. -//! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. -//! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. -//! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. -//! 8. Requests notification of error message events by using EnableErrorMessages() and return KErrNone if successed. -//! 9. Close all window nodes by using Close() and return KErrNone if successed. -//! 10. Close the window session by using Close() and return KErrNone if successed. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults All nodes in the constructed window hierarchy are requests notification of error message events without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp_100 - CREATE_OBJECT RBlankWindow bnkwin_110 - CREATE_OBJECT RBlankWindow bnkwin_111 - CREATE_OBJECT RWindow win_112 - CREATE_OBJECT RWindow win_120 - CREATE_OBJECT RWindow win_121 - CREATE_OBJECT RWindow win_122 - CREATE_OBJECT RBlankWindow bnkwin_123 - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 - COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 - COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 - COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 - COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 - COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 - COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 - COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 - COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 - COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 - COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 - COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 - COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 - COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 - COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 - COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 - - COMMAND win_112 EnableErrorMessages GRAPHICS-WSERV-Window-PublicApi-3025-0001-EnableErrorMessages_command002 - - COMMAND bnkwin_123 Close - COMMAND win_122 Close - COMMAND win_121 Close - COMMAND win_120 Close - COMMAND win_112 Close - COMMAND bnkwin_111 Close - COMMAND bnkwin_110 Close - COMMAND wingrp_100 Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3025 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3026 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3026 -//! @SYMAPI RWindowTreeNode -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc DisableErrorMessages(): Cancels notification of error message events. -//! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, DisableErrorMessages -//! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. -//! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. -//! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. -//! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. -//! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. -//! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. -//! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. -//! 8. Requests notification of error message events by using EnableErrorMessages() and return KErrNone if successed. -//! 9. Cancels notification of error message events by using DisableErrorMessages(). -//! 10. Close all window nodes by using Close() and return KErrNone if successed. -//! 11. Close the window session by using Close() and return KErrNone if successed. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults All nodes in the constructed window hierarchy are cancels notification of error message events without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp_100 - CREATE_OBJECT RBlankWindow bnkwin_110 - CREATE_OBJECT RBlankWindow bnkwin_111 - CREATE_OBJECT RWindow win_112 - CREATE_OBJECT RWindow win_120 - CREATE_OBJECT RWindow win_121 - CREATE_OBJECT RWindow win_122 - CREATE_OBJECT RBlankWindow bnkwin_123 - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 - COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 - COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 - COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 - COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 - COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 - COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 - COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 - COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 - COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 - COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 - COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 - COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 - COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 - COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 - COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 - - COMMAND win_112 EnableErrorMessages GRAPHICS-WSERV-Window-PublicApi-3026-0001-EnableErrorMessages_command002 - COMMAND win_112 DisableErrorMessages - - COMMAND bnkwin_123 Close - COMMAND win_122 Close - COMMAND win_121 Close - COMMAND win_120 Close - COMMAND win_112 Close - COMMAND bnkwin_111 Close - COMMAND bnkwin_110 Close - COMMAND wingrp_100 Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3026 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3027 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3027 -//! @SYMAPI RWindowTreeNode -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc EnableModifierChangedEvents(): Requests notification of modifier changed events. -//! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, EnableModifierChangedEvents -//! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. -//! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. -//! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. -//! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. -//! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. -//! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. -//! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. -//! 8. Requests notification of modifier changed events by using EnableModifierChangedEvents() and return KErrNone if successed. -//! 9. Close all window nodes by using Close() and return KErrNone if successed. -//! 10. Close the window session by using Close() and return KErrNone if successed. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults All nodes in the constructed window hierarchy are requests notification of modifier changed events without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp_100 - CREATE_OBJECT RBlankWindow bnkwin_110 - CREATE_OBJECT RBlankWindow bnkwin_111 - CREATE_OBJECT RWindow win_112 - CREATE_OBJECT RWindow win_120 - CREATE_OBJECT RWindow win_121 - CREATE_OBJECT RWindow win_122 - CREATE_OBJECT RBlankWindow bnkwin_123 - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 - COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 - COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 - COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 - COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 - COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 - COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 - COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 - COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 - COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 - COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 - COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 - COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 - COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 - COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 - COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 - - COMMAND win_112 EnableModifierChangedEvents GRAPHICS-WSERV-Window-PublicApi-3027-0001-EnableModifierChangedEvents_command002 - - COMMAND bnkwin_123 Close - COMMAND win_122 Close - COMMAND win_121 Close - COMMAND win_120 Close - COMMAND win_112 Close - COMMAND bnkwin_111 Close - COMMAND bnkwin_110 Close - COMMAND wingrp_100 Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3027 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3028 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3028 -//! @SYMAPI RWindowTreeNode -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc DisableModifierChangedEvents(): Cancels notification of modifier changed events. -//! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, DisableModifierChangedEvents -//! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. -//! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. -//! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. -//! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. -//! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. -//! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. -//! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. -//! 8. Requests notification of modifier changed events by using EnableModifierChangedEvents() and return KErrNone if successed. -//! 9. Cancels notification of modifier changed events by using DisableModifierChangedEvents(). -//! 10. Close all window nodes by using Close() and return KErrNone if successed. -//! 11. Close the window session by using Close() and return KErrNone if successed. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults All nodes in the constructed window hierarchy are cancels notification of modifier changed events without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp_100 - CREATE_OBJECT RBlankWindow bnkwin_110 - CREATE_OBJECT RBlankWindow bnkwin_111 - CREATE_OBJECT RWindow win_112 - CREATE_OBJECT RWindow win_120 - CREATE_OBJECT RWindow win_121 - CREATE_OBJECT RWindow win_122 - CREATE_OBJECT RBlankWindow bnkwin_123 - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 - COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 - COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 - COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 - COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 - COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 - COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 - COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 - COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 - COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 - COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 - COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 - COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 - COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 - COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 - COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 - - COMMAND win_112 EnableModifierChangedEvents GRAPHICS-WSERV-Window-PublicApi-3028-0001-EnableModifierChangedEvents_command002 - COMMAND win_112 DisableModifierChangedEvents - - COMMAND bnkwin_123 Close - COMMAND win_122 Close - COMMAND win_121 Close - COMMAND win_120 Close - COMMAND win_112 Close - COMMAND bnkwin_111 Close - COMMAND bnkwin_110 Close - COMMAND wingrp_100 Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3028 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3029 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3029 -//! @SYMAPI RWindowTreeNode -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc SetNonFading(): Sets whether a window is non-fading. -//! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, SetNonFading -//! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. -//! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. -//! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. -//! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. -//! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. -//! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. -//! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. -//! 8. Sets whether a window is non-fading by using SetNonFading() and return KErrNone if successed. -//! 9. Close all window nodes by using Close() and return KErrNone if successed. -//! 10. Close the window session by using Close() and return KErrNone if successed. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults All nodes in the constructed window hierarchy are set whether a window is non-fading without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp_100 - CREATE_OBJECT RBlankWindow bnkwin_110 - CREATE_OBJECT RBlankWindow bnkwin_111 - CREATE_OBJECT RWindow win_112 - CREATE_OBJECT RWindow win_120 - CREATE_OBJECT RWindow win_121 - CREATE_OBJECT RWindow win_122 - CREATE_OBJECT RBlankWindow bnkwin_123 - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 - COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 - COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 - COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 - COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 - COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 - COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 - COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 - COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 - COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 - COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 - COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 - COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 - COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 - COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 - COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 - - COMMAND win_121 SetNonFading GRAPHICS-WSERV-Window-PublicApi-3029-0001-SetNonFading_command002 - - COMMAND bnkwin_123 Close - COMMAND win_122 Close - COMMAND win_121 Close - COMMAND win_120 Close - COMMAND win_112 Close - COMMAND bnkwin_111 Close - COMMAND bnkwin_110 Close - COMMAND wingrp_100 Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3029 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3030 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3030 -//! @SYMAPI RWindowTreeNode -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc SetFaded(): Sets the window as faded or unfaded. -//! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, SetFaded -//! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. -//! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. -//! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. -//! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. -//! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. -//! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. -//! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. -//! 8. Sets the window as faded or unfaded by using SetFaded() and return KErrNone if successed. -//! 9. Close all window nodes by using Close() and return KErrNone if successed. -//! 10. Close the window session by using Close() and return KErrNone if successed. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults All nodes in the constructed window hierarchy are set the window as faded or unfaded without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp_100 - CREATE_OBJECT RBlankWindow bnkwin_110 - CREATE_OBJECT RBlankWindow bnkwin_111 - CREATE_OBJECT RWindow win_112 - CREATE_OBJECT RWindow win_120 - CREATE_OBJECT RWindow win_121 - CREATE_OBJECT RWindow win_122 - CREATE_OBJECT RBlankWindow bnkwin_123 - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 - COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 - COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 - COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 - COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 - COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 - COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 - COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 - COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 - COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 - COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 - COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 - COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 - COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 - COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 - COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 - - COMMAND win_121 SetFaded GRAPHICS-WSERV-Window-PublicApi-3030-0001-SetFaded_command002 - - COMMAND bnkwin_123 Close - COMMAND win_122 Close - COMMAND win_121 Close - COMMAND win_120 Close - COMMAND win_112 Close - COMMAND bnkwin_111 Close - COMMAND bnkwin_110 Close - COMMAND wingrp_100 Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3030 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3031 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3031 -//! @SYMAPI RWindowTreeNode -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc SetFaded(): Sets one or more windows as faded or unfaded, specifying a fading map. -//! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, SetFaded -//! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. -//! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. -//! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. -//! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. -//! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. -//! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. -//! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. -//! 8. Sets one or more windows as faded or unfaded, specifying a fading map by using SetFaded() and return KErrNone if successed. -//! 9. Close all window nodes by using Close() and return KErrNone if successed. -//! 10. Close the window session by using Close() and return KErrNone if successed. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults All nodes in the constructed window hierarchy are set one or more windows as faded or unfaded, specifying a fading map without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp_100 - CREATE_OBJECT RBlankWindow bnkwin_110 - CREATE_OBJECT RBlankWindow bnkwin_111 - CREATE_OBJECT RWindow win_112 - CREATE_OBJECT RWindow win_120 - CREATE_OBJECT RWindow win_121 - CREATE_OBJECT RWindow win_122 - CREATE_OBJECT RBlankWindow bnkwin_123 - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 - COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 - COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 - COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 - COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 - COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 - COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 - COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 - COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 - COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 - COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 - COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 - COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 - COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 - COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 - COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 - - COMMAND win_121 SetFaded GRAPHICS-WSERV-Window-PublicApi-3031-0001-SetFaded_command002 - - COMMAND bnkwin_123 Close - COMMAND win_122 Close - COMMAND win_121 Close - COMMAND win_120 Close - COMMAND win_112 Close - COMMAND bnkwin_111 Close - COMMAND bnkwin_110 Close - COMMAND wingrp_100 Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3031 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3032 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3032 -//! @SYMAPI RWindowTreeNode -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc ClearPointerCursor(): Clears pointer cursor settings. -//! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, ClearPointerCursor -//! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. -//! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. -//! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. -//! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. -//! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. -//! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. -//! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. -//! 8. Sets the pointer cursor from the system pointer cursor list by using SetPointerCursor() and return KErrNone if successed. -//! 9. Clears pointer cursor settings by using ClearPointerCursor(). -//! 10. Close all window nodes by using Close() and return KErrNone if successed. -//! 11. Close the window session by using Close() and return KErrNone if successed. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults All nodes in the constructed window hierarchy are cleared pointer cursor settings without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp_100 - CREATE_OBJECT RBlankWindow bnkwin_110 - CREATE_OBJECT RBlankWindow bnkwin_111 - CREATE_OBJECT RWindow win_112 - CREATE_OBJECT RWindow win_120 - CREATE_OBJECT RWindow win_121 - CREATE_OBJECT RWindow win_122 - CREATE_OBJECT RBlankWindow bnkwin_123 - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 - COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 - COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 - COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 - COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 - COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 - COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 - COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 - COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 - COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 - COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 - COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 - COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 - COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 - COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 - COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 - - COMMAND win_122 SetPointerCursor GRAPHICS-WSERV-Window-PublicApi-3032-0001-SetPointerCursor_command002 - COMMAND win_122 ClearPointerCursor - - COMMAND bnkwin_123 Close - COMMAND win_122 Close - COMMAND win_121 Close - COMMAND win_120 Close - COMMAND win_112 Close - COMMAND bnkwin_111 Close - COMMAND bnkwin_110 Close - COMMAND wingrp_100 Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3032 - - - - -// **************************************************************************** -// Negative testcases of RWindow -// **************************************************************************** - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1208 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-1208 -//! @SYMAPI RWindow -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 19/10/2007 -//! @SYMTestCaseDesc SetRequiredDisplayMode(TDisplayMode aMode): SetRequiredDisplayMode() of a RWindow to display mode ENone -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. new() and Connect() a RWsSession -//! 2. new() and Construct() a RWindowGroup within the RWsSession -//! 3. new() and Construct() a RWindow as the child of RWindowGroup -//! 4. Execute SetRequiredDisplayMode() of the RWindow to ENone and check if the returned display mode is EGray2 -//! 5. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults SetRequiredDisplayMode() of a RWindow to ENone would get returned value of display mode EGray2 (min Gray TDisplayMode) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-Window-PublicApi-1208-0001-SetRequiredDisplayMode_command001 - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1208 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1209 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-1209 -//! @SYMAPI RWindow -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 19/10/2007 -//! @SYMTestCaseDesc SetRequiredDisplayMode(TDisplayMode aMode): SetRequiredDisplayMode() of a RWindow to display mode of negative value -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. new() and Connect() a RWsSession -//! 2. new() and Construct() a RWindowGroup within the RWsSession -//! 3. new() and Construct() a RWindow as the child of RWindowGroup -//! 4. Execute SetRequiredDisplayMode() of the RWindow to negative value and check if the returned display mode is EGray2 -//! 5. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults SetRequiredDisplayMode() of a RWindow to negative value would get returned value of display mode EGray2 (min Gray TDisplayMode) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-Window-PublicApi-1209-0001-SetRequiredDisplayMode_command001 - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1209 - -//!START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1001 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-1001 -//! @SYMAPI RWindow -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 05/10/2007 -//! @SYMTestCaseDesc RWindow(): fail to execute follow-up Construct for a RWindow that created by its default constructor -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. new() and Connect() a RWsSession -//! 2. new() and Construct() a RWindowGroup within the RWsSession -//! 3. new() a RWindow with its default C++ constructor -//! 4. Execute Contruct() the RWindow as the child of RWindowGroup and see if it meets expected panic code -//! 5. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults Get panic KERN-EXEC code=3 -//! @SYMTestType CIT -//! START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini -//! CREATE_OBJECT RWsSession ws -//! CREATE_OBJECT RWindowGroup wingrp -//! CREATE_OBJECT RWindow win -//! COMMAND ws new -//! COMMAND ws Connect -//! COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 -//! COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 -//! COMMAND win new -//! COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 -//! END_TEST_BLOCK !PanicString=KERN-EXEC !PanicCode=3 -//! RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -//!END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1001 - - -//!START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1002 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-1002 -//! @SYMAPI RWindow -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 05/10/2007 -//! @SYMTestCaseDesc RWindow(RWsSession &aWs): fail to execute follow-up Construct for a RBackedUpWindow that new() within an unconnected RWsSession -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. new() a RWsSession -//! 2. new() a RWindow within the RWsSession before Connect() it -//! 3. Connect() the RWsSession to WSERV -//! 4. new() and Construct() a RWindowGroup within the RWsSession -//! 5. Execute Contruct() the RWindow as the child of RWindowGroup and see if it meets expected panic code -//! 6. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults Get panic KERN-EXEC code=3 -//! @SYMTestType CIT -//! START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini -//! CREATE_OBJECT RWsSession ws -//! CREATE_OBJECT RWindowGroup wingrp -//! CREATE_OBJECT RWindow win -//! COMMAND ws new -//! COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 -//! COMMAND ws Connect -//! COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 -//! COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 -//! COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 -//! END_TEST_BLOCK !PanicString=KERN-EXEC !PanicCode=3 -//! RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -//!END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1002 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1003 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-1003 -//! @SYMAPI RWindow -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 08/10/2007 -//! @SYMTestCaseDesc Construct(const RWindowTreeNode &parent, TUint32 aHandle): fail to Construct() a RBlankWindow as a child of a invalid parent RWindowTreeNode -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. new() and Connect() a RWsSession -//! 2. new() a RWindowGroup within the RWsSession but not Construct() it -//! 3. new() a RWindow within the RWsSession -//! 4. Execute Contruct() the RWindow as the child of RWindowGroup and see if it meets expected panic code -//! 5. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults Get panic WSERV code=6 (Invalid window handle) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 - END_TEST_BLOCK !PanicString=WSERV !PanicCode=6 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1003 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1005 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-1005 -//! @SYMAPI RWindow -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 09/10/2007 -//! @SYMTestCaseDesc BeginRedraw(): execute BeginRedraw when already inside a redraw cycle -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. new() and Connect() a RWsSession -//! 2. new() and Construct() a RWindowGroup within the RWsSession -//! 3. new() and Construct() a RWindow as the child of RWindowGroup -//! 4. Execute BeginRedraw() to begin a redraw cycle -//! 5. Execute BeginRedraw() again and see if it meets expected panic code -//! 6. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults Get panic WSERV code=69 (Already inside a begin/end redraw pair) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 - COMMAND win BeginRedraw - COMMAND win BeginRedraw - END_TEST_BLOCK !PanicString=WSERV !PanicCode=69 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1005 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1006 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-1006 -//! @SYMAPI RWindow -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 09/10/2007 -//! @SYMTestCaseDesc BeginRedraw(const TRect &aRect): execute BeginRedraw a rectangle when already inside a redraw cycle -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. new() and Connect() a RWsSession -//! 2. new() and Construct() a RWindowGroup within the RWsSession -//! 3. new() and Construct() a RWindow as the child of RWindowGroup -//! 4. Execute BeginRedraw() to begin a redraw cycle in the specified rectangle -//! 5. Execute BeginRedraw() again and see if it meets expected panic code -//! 6. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults Get panic WSERV code=69 (Already inside a begin/end redraw pair) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 - COMMAND win BeginRedraw GRAPHICS-WSERV-Window-PublicApi-1006-0001-BeginRedraw_command001 - COMMAND win BeginRedraw GRAPHICS-WSERV-Window-PublicApi-1006-0001-BeginRedraw_command001 - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK !PanicString=WSERV !PanicCode=69 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1006 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1007 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-1007 -//! @SYMAPI RWindow -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 09/10/2007 -//! @SYMTestCaseDesc BeginRedraw(const TRect &aRect): execute BeginRedraw a invalid rectangle -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. new() and Connect() a RWsSession -//! 2. new() and Construct() a RWindowGroup within the RWsSession -//! 3. new() and Construct() a RWindow as the child of RWindowGroup -//! 4. Execute BeginRedraw() to begin a redraw cycle in an invalid rectangle -//! 5. Use GetDrawRect() to get and check if the draw rectangle is the same as the invalid rectangle -//! 6. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults BeginRedraw a invalid rectangle would not generate error and the draw rectangle is the same as the specified invalid rectangle -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 - COMMAND win BeginRedraw GRAPHICS-WSERV-Window-PublicApi-1007-0001-BeginRedraw_command001 - COMMAND win GetDrawRect GRAPHICS-WSERV-Window-PublicApi-1007-0001-GetDrawRect_command002 - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1007 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1008 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-1008 -//! @SYMAPI RWindow -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 09/10/2007 -//! @SYMTestCaseDesc EndRedraw(): execute EndRedraw() before begin a redraw cycle -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. new() and Connect() a RWsSession -//! 2. new() and Construct() a RWindowGroup within the RWsSession -//! 3. new() and Construct() a RWindow as the child of RWindowGroup -//! 4. Execute EndRedraw() before begin a redraw cycle -//! 5. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults Execute EndRedraw() before begin a redraw cycle would get panic WSERV code=69 -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 - COMMAND win EndRedraw - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK !PanicString=WSERV !PanicCode=69 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1008 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1009 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-1009 -//! @SYMAPI RWindow -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 11/10/2007 -//! @SYMTestCaseDesc Invalidate(const TRect &aRect): execute Invalidate() with a invalid rectangle -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. new() and Connect() a RWsSession -//! 2. new() and Construct() a RWindowGroup within the RWsSession -//! 3. new() and Construct() a RWindow as the child of RWindowGroup -//! 4. Use GetInvalidRegion() to check if the invalid region is empty (i.e. NULL) -//! 5. Execute Invalidate() with a invalid rectangle -//! 6. Use GetInvalidRegion() to check if the invalid region is still empty (i.e. NULL) -//! 7. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults Invalidate() with a invalid rectangle would not generate error, and would not change the invalid region -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 - COMMAND win GetInvalidRegion GRAPHICS-WSERV-Window-PublicApi-1009-0001-GetInvalidRegion_command001 - COMMAND win Invalidate GRAPHICS-WSERV-Window-PublicApi-1009-0001-Invalidate_command002 - COMMAND win GetInvalidRegion GRAPHICS-WSERV-Window-PublicApi-1009-0001-GetInvalidRegion_command001 - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1009 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1010 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-1010 -//! @SYMAPI RWindow -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 11/10/2007 -//! @SYMTestCaseDesc SetSize(const TSize &size): set RWindow to invalid size (negative width/height) -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. new() and Connect() a RWsSession -//! 2. new() and Construct() a RWindowGroup within the RWsSession -//! 3. new() and Construct() a RWindow as the child of RWindowGroup -//! 4. Execute SetSize() with a invalid size (negative width and height) -//! 5. Use Size() to check if the RWindow size is width 0 and height 0 -//! 6. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults SetSize() with negative width and height would not generate error and set RWindow size to width 0 and height 0 -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 - COMMAND win SetSize GRAPHICS-WSERV-Window-PublicApi-1010-0001-SetSize_command001 - COMMAND win Size GRAPHICS-WSERV-Window-PublicApi-1010-0001-Size_command002 - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1010 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1011 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-1011 -//! @SYMAPI RWindow -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 11/10/2007 -//! @SYMTestCaseDesc SetExtent(const TPoint &point, const TSize &size): set RWindow to invalid size (negative width/height) -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. new() and Connect() a RWsSession -//! 2. new() and Construct() a RWindowGroup within the RWsSession -//! 3. new() and Construct() a RWindow as the child of RWindowGroup -//! 4. Execute SetExtent() with a invalid size (negative width and height) -//! 5. Use Size() to check if the RWindow size is width 0 and height 0 -//! 6. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults SetExtent() with negative width and height would not generate error and set RWindow size to width 0 and height 0 -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008 - COMMAND win SetExtent GRAPHICS-WSERV-Window-PublicApi-1011-0001-SetExtent_command001 - COMMAND win Size GRAPHICS-WSERV-Window-PublicApi-1011-0001-Size_command002 - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1011 - - - - -// **************************************************************************** -// Negative testcases of RWindow inherited from RDrawableWindow -// **************************************************************************** - - - - -// **************************************************************************** -// Negative testcases of RWindow inherited from RWindowBase -// **************************************************************************** - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1201 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-1201 -//! @SYMAPI RWindow -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 15/10/2007 -//! @SYMTestCaseDesc SetSizeErr(const TSize &size): set RWindow to invalid size (negative width/height) -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. new() and Connect() a RWsSession -//! 2. new() and Construct() a RWindowGroup within the RWsSession -//! 3. new() and Construct() a RWindow as the child of RWindowGroup -//! 4. SetAutoFlush() to TRUE for the RWsSession -//! 5. Execute Activate() the RWindow -//! 6. Execute Activate() the RWindow again and see if it meets expected panic code -//! 7. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults Get panic WSERV code=11 (Window already active) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command012 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-Window-Setup-0002-0001-SetAutoFlush_command015 - COMMAND win Activate - COMMAND win Activate - END_TEST_BLOCK !PanicString=WSERV !PanicCode=11 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1201 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1202 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-1202 -//! @SYMAPI RWindow -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 15/10/2007 -//! @SYMTestCaseDesc SetSizeErr(const TSize &size): set RWindow to invalid size (negative width/height) -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. new() and Connect() a RWsSession -//! 2. new() and Construct() a RWindowGroup within the RWsSession -//! 3. new() and Construct() a RWindow as the child of RWindowGroup -//! 4. Execute SetSizeErr() with a invalid size (negative width and height) -//! 5. Use Size() to check if the RWindow size is width 0 and height 0 -//! 6. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults SetSizeErr() with negative width and height would not generate error and set RWindow size to width 0 and height 0 -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command012 - COMMAND win SetSizeErr GRAPHICS-WSERV-Window-PublicApi-1202-0001-SetSizeErr_command001 - COMMAND win Size GRAPHICS-WSERV-Window-PublicApi-1202-0001-Size_command002 - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1202 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1203 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-1203 -//! @SYMAPI RWindow -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 16/10/2007 -//! @SYMTestCaseDesc SetExtentErr(const TPoint &point, const TSize &size): set RWindow to invalid size (negative width/height) -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. new() and Connect() a RWsSession -//! 2. new() and Construct() a RWindowGroup within the RWsSession -//! 3. new() and Construct() a RWindow as the child of RWindowGroup -//! 4. Execute SetExtentErr() with a invalid size (negative width and height) -//! 5. Use Size() to check if the RWindow size is width 0 and height 0 -//! 6. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults SetExtentErr() with negative width and height would not generate error and set RWindow size to width 0 and height 0 -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command012 - COMMAND win SetExtentErr GRAPHICS-WSERV-Window-PublicApi-1203-0001-SetExtentErr_command001 - COMMAND win Size GRAPHICS-WSERV-Window-PublicApi-1203-0001-Size_command002 - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1203 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1204 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-1204 -//! @SYMAPI RWindow -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 16/10/2007 -//! @SYMTestCaseDesc InquireOffset(const RWindowTreeNode &aWindow): InquireOffset() with invalid RWindowTreeNode -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. new() and Connect() a RWsSession -//! 2. new() and Construct() a RWindowGroup within the RWsSession -//! 3. new() and Construct() a RWindow as the child of RWindowGroup -//! 4. Execute InquireOffset() of RWindow with invalid RWindowTreeNode and see if it meets expected panic code -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults Get panic WSERV code=6 (Invalid window handle) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command012 - COMMAND win InquireOffset GRAPHICS-WSERV-Window-PublicApi-1204-0001-InquireOffset_command001 - END_TEST_BLOCK !PanicString=WSERV !PanicCode=6 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1204 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1205 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-1205 -//! @SYMAPI RWindow -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 17/10/2007 -//! @SYMTestCaseDesc SetShadowHeight(TInt aHeight): set RWindow shadow height to negative value -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. new() and Connect() a RWsSession -//! 2. new() and Construct() a RWindowGroup within the RWsSession -//! 3. new() and Construct() a RWindow as the child of RWindowGroup -//! 4. Execute SetShadowHeight() with negative shadow height and see if it meets expected panic code -//! 5. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults Get panic WSERV code=29 (A client attempted to set a negative shadow height) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command012 - COMMAND win SetShadowHeight GRAPHICS-WSERV-Window-PublicApi-1205-0001-SetShadowHeight_command001 - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK !PanicString=WSERV !PanicCode=29 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1205 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1206 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-1206 -//! @SYMAPI RWindow -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 17/10/2007 -//! @SYMTestCaseDesc SetCornerType(TCornerType aCornerType, TInt aCornerFlags=0): set RWindow with invalid corner type -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. new() and Connect() a RWsSession -//! 2. new() and Construct() a RWindowGroup within the RWsSession -//! 3. new() and Construct() a RWindow as the child of RWindowGroup -//! 4. Execute SetCornerType() with invalid corner type and see if it meets expected panic code -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults Get panic WSERV code=35 (A client passed an invalid or unrecognised corner type or flag) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command012 - COMMAND win SetCornerType GRAPHICS-WSERV-Window-PublicApi-1206-0001-SetCornerType_command001 - END_TEST_BLOCK !PanicString=WSERV !PanicCode=35 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1206 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1207 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-1207 -//! @SYMAPI RWindow -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 17/10/2007 -//! @SYMTestCaseDesc SetCornerType(TCornerType aCornerType, TInt aCornerFlags=0): set RWindow with invalid corner flag -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. new() and Connect() a RWsSession -//! 2. new() and Construct() a RWindowGroup within the RWsSession -//! 3. new() and Construct() a RWindow as the child of RWindowGroup -//! 4. Execute SetCornerType() with invalid corner flag and see if it meets expected panic code -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults Get panic WSERV code=35 (A client passed an invalid or unrecognised corner type or flag) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command012 - COMMAND win SetCornerType GRAPHICS-WSERV-Window-PublicApi-1207-0001-SetCornerType_command001 - END_TEST_BLOCK !PanicString=WSERV !PanicCode=35 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1207 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1210b -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-1210b -//! @SYMAPI RWindow -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 19/10/2007 -//! @SYMTestCaseDesc SetRequiredDisplayMode(TDisplayMode aMode): SetRequiredDisplayMode() of a RWindow to display mode of invalid large value -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. new() and Connect() a RWsSession -//! 2. new() and Construct() a RWindowGroup within the RWsSession -//! 3. new() and Construct() a RWindow as the child of RWindowGroup -//! 4. Execute SetRequiredDisplayMode() of the RWindow to invalid large value and check if the returned display mode is EColor16 -//! 5. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults SetRequiredDisplayMode() of a RWindow to invalid large value without causing any panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-Window-PublicApi-1210b-0001-SetRequiredDisplayMode_command001 - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1210b - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1211 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-1211 -//! @SYMAPI RWindow -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 22/10/2007 -//! @SYMTestCaseDesc CancelPointerRepeatEventRequest(): CancelPointerRepeatEventRequest() before RequestPointerRepeatEvent() -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. new() and Connect() a RWsSession -//! 2. new() and Construct() a RWindowGroup within the RWsSession -//! 3. new() and Construct() a RWindow as the child of RWindowGroup -//! 4. Execute CancelPointerRepeatEventRequest() before calling RequestPointerRepeatEvent() -//! 5. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults CancelPointerRepeatEventRequest() before RequestPointerRepeatEvent() would not generate error -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command012 - COMMAND win CancelPointerRepeatEventRequest - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1211 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1212 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-1212 -//! @SYMAPI RWindow -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 23/10/2007 -//! @SYMTestCaseDesc AllocPointerMoveBuffer(): execute AllocPointerMoveBuffer() again when already allocated -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. new() and Connect() a RWsSession -//! 2. new() and Construct() a RWindowGroup within the RWsSession -//! 3. new() and Construct() a RWindow as the child of RWindowGroup -//! 4. Execute AllocPointerMoveBuffer() -//! 5. Execute AllocPointerMoveBuffer() and see if it generates expected error -//! 6. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults Execute AllocPointerMoveBuffer() when already allocated would generate KErrInUse (-14) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command012 - COMMAND win AllocPointerMoveBuffer GRAPHICS-WSERV-Window-PublicApi-1212-0001-AllocPointerMoveBuffer_command001 - COMMAND !Error=-14 win AllocPointerMoveBuffer GRAPHICS-WSERV-Window-PublicApi-1212-0001-AllocPointerMoveBuffer_command001 - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1212 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1213 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-1213 -//! @SYMAPI RWindow -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 23/10/2007 -//! @SYMTestCaseDesc FreePointerMoveBuffer(): FreePointerMoveBuffer() before AllocPointerMoveBuffer() -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. new() and Connect() a RWsSession -//! 2. new() and Construct() a RWindowGroup within the RWsSession -//! 3. new() and Construct() a RWindow as the child of RWindowGroup -//! 4. Execute FreePointerMoveBuffer() before calling AllocPointerMoveBuffer() -//! 5. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults FreePointerMoveBuffer() before AllocPointerMoveBuffer() would not generate error -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command012 - COMMAND win FreePointerMoveBuffer - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1213 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1214 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-1214 -//! @SYMAPI RWindow -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 25/10/2007 -//! @SYMTestCaseDesc EnablePointerMoveBuffer(): EnablePointerMoveBuffer() without AllocPointerMoveBuffer() in advace -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. new() and Connect() a RWsSession -//! 2. new() and Construct() a RWindowGroup within the RWsSession -//! 3. new() and Construct() a RWindow as the child of RWindowGroup -//! 4. Execute EnablePointerMoveBuffer() without AllocPointerMoveBuffer() in advace and see if it meets expected panic code -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults Get panic WSERV code=43 (A client attempted to enable a pointer move buffer when none was allocated) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command012 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-Window-Setup-0002-0001-SetAutoFlush_command015 - COMMAND win EnablePointerMoveBuffer - END_TEST_BLOCK !PanicString=WSERV !PanicCode=43 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1214 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1215 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-1215 -//! @SYMAPI RWindow -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 25/10/2007 -//! @SYMTestCaseDesc EnablePointerMoveBuffer(): execute EnablePointerMoveBuffer() again when already enabled -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. new() and Connect() a RWsSession -//! 2. new() and Construct() a RWindowGroup within the RWsSession -//! 3. new() and Construct() a RWindow as the child of RWindowGroup -//! 4. use AllocPointerMoveBuffer() to allocate pointer move buffer -//! 5. Execute EnablePointerMoveBuffer() -//! 6. Execute EnablePointerMoveBuffer() again -//! 7. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults Execute EnablePointerMoveBuffer() again when already enabled would not generate error -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command012 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-Window-Setup-0002-0001-SetAutoFlush_command015 - COMMAND win AllocPointerMoveBuffer GRAPHICS-WSERV-Window-PublicApi-1215-0001-AllocPointerMoveBuffer_command001 - COMMAND win EnablePointerMoveBuffer - COMMAND win EnablePointerMoveBuffer - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1215 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1216 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-1216 -//! @SYMAPI RWindow -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 25/10/2007 -//! @SYMTestCaseDesc DisablePointerMoveBuffer(): DisablePointerMoveBuffer() before EnablePointerMoveBuffer() -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. new() and Connect() a RWsSession -//! 2. new() and Construct() a RWindowGroup within the RWsSession -//! 3. new() and Construct() a RWindow as the child of RWindowGroup -//! 4. Execute DisablePointerMoveBuffer() before calling EnablePointerMoveBuffer() -//! 5. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults DisablePointerMoveBuffer() before EnablePointerMoveBuffer() would not generate error -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-Window-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command012 - COMMAND win DisablePointerMoveBuffer - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-1216 - - - - -// **************************************************************************** -// Negative testcases of RWindow implemented for MWsClientClass -// **************************************************************************** - - - - -// **************************************************************************** -// Negative testcases of RWindow inherited from RWindowTreeNode -// **************************************************************************** -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3101 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3101 -//! @SYMAPI RWindowTreeNode -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc SetOrdinalPosition(): Sets the ordinal position of a window. -//! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, SetOrdinalPosition -//! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. -//! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. -//! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. -//! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. -//! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. -//! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. -//! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. -//! 8. Sets the ordinal position of a window by using SetOrdinalPosition() with negative position. -//! 9. Close all window nodes by using Close() and return KErrNone if successed. -//! 10. Close the window session by using Close() and return KErrNone if successed. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults All nodes in the constructed window hierarchy are returned with the window's ordinal position. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp_100 - CREATE_OBJECT RBlankWindow bnkwin_110 - CREATE_OBJECT RBlankWindow bnkwin_111 - CREATE_OBJECT RWindow win_112 - CREATE_OBJECT RWindow win_120 - CREATE_OBJECT RWindow win_121 - CREATE_OBJECT RWindow win_122 - CREATE_OBJECT RBlankWindow bnkwin_123 - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 - COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 - COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 - COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 - COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 - COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 - COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 - COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 - COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 - COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 - COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 - COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 - COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 - COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 - COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 - COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 - - COMMAND bnkwin_123 SetOrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3101-0001-SetOrdinalPosition_command002 - COMMAND win_122 SetOrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3101-0001-SetOrdinalPosition_command004 - COMMAND win_121 SetOrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3101-0001-SetOrdinalPosition_command006 - - COMMAND bnkwin_123 Close - COMMAND win_122 Close - COMMAND win_121 Close - COMMAND win_120 Close - COMMAND win_112 Close - COMMAND bnkwin_111 Close - COMMAND bnkwin_110 Close - COMMAND wingrp_100 Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3101 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3102 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3102 -//! @SYMAPI RWindowTreeNode -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc SetOrdinalPosition(): Sets the ordinal position and ordinal priority of a window. -//! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, SetOrdinalPosition -//! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. -//! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. -//! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. -//! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. -//! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. -//! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. -//! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. -//! 8. Sets the ordinal position of a window by using SetOrdinalPosition() with negative position. -//! 9. Close all window nodes by using Close() and return KErrNone if successed. -//! 10. Close the window session by using Close() and return KErrNone if successed. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults All nodes in the constructed window hierarchy are returned with the window's ordinal position, ordinal priority and same as setting of ordinal position without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp_100 - CREATE_OBJECT RBlankWindow bnkwin_110 - CREATE_OBJECT RBlankWindow bnkwin_111 - CREATE_OBJECT RWindow win_112 - CREATE_OBJECT RWindow win_120 - CREATE_OBJECT RWindow win_121 - CREATE_OBJECT RWindow win_122 - CREATE_OBJECT RBlankWindow bnkwin_123 - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 - COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 - COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 - COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 - COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 - COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 - COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 - COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 - COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 - COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 - COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 - COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 - COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 - COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 - COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 - COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 - - COMMAND bnkwin_123 SetOrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3102-0001-SetOrdinalPosition_command002 - COMMAND win_122 SetOrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3102-0001-SetOrdinalPosition_command004 - COMMAND win_121 SetOrdinalPosition GRAPHICS-WSERV-Window-PublicApi-3102-0001-SetOrdinalPosition_command006 - - COMMAND bnkwin_123 Close - COMMAND win_122 Close - COMMAND win_121 Close - COMMAND win_120 Close - COMMAND win_112 Close - COMMAND bnkwin_111 Close - COMMAND bnkwin_110 Close - COMMAND wingrp_100 Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3102 - - -START_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3103 -//! @SYMTestCaseID GRAPHICS-WSERV-Window-PublicApi-3103 -//! @SYMAPI RWindowTreeNode -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc SetFaded(): Sets one or more windows as faded or unfaded, specifying a fading map. -//! Uses API elements: RWsSession::Connect(), RWindowGroup, RBlankWindow, RWindow::Construct, Close, SetFaded -//! @SYMTestActions 1. Constructs an initialised window server session by using RWsSession::RWsSession() and return KErrNone if successed. -//! 2. Connects the client session to the window server by using RWsSession::Connect() and return KErrNone if successed. -//! 3. Creates an initialised window group handle within a server session by using RWindowGroup::RWindowGroup() and return KErrNone if successed. -//! 4. Creates three initialised RBlankWindow handles by using RBlankWindow::RBlankWindow() and return KErrNone if successed. -//! 5. Completes the construction of three valid blank-window handles by using RBlankWindow::Construct() and return KErrNone if successed. -//! 6. Creates three initialised RWindow handles by using RWindow::RWindow() and return KErrNone if successed. -//! 7. Completes the construction of three valid window handles by using RWindow::Construct() and return KErrNone if successed. -//! 8. Sets one or more windows as faded or unfaded, specifying a fading map by using SetFaded() with negative black and white maps. -//! 9. Close all window nodes by using Close() and return KErrNone if successed. -//! 10. Close the window session by using Close() and return KErrNone if successed. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults All nodes in the constructed window hierarchy are set one or more windows as faded or unfaded, specifying a fading map. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-Window-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp_100 - CREATE_OBJECT RBlankWindow bnkwin_110 - CREATE_OBJECT RBlankWindow bnkwin_111 - CREATE_OBJECT RWindow win_112 - CREATE_OBJECT RWindow win_120 - CREATE_OBJECT RWindow win_121 - CREATE_OBJECT RWindow win_122 - CREATE_OBJECT RBlankWindow bnkwin_123 - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp_100 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004 - COMMAND wingrp_100 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005 - COMMAND bnkwin_110 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007 - COMMAND bnkwin_110 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008 - COMMAND bnkwin_111 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010 - COMMAND bnkwin_111 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011 - COMMAND win_112 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013 - COMMAND win_112 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014 - COMMAND win_120 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016 - COMMAND win_120 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017 - COMMAND win_121 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019 - COMMAND win_121 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020 - COMMAND win_122 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022 - COMMAND win_122 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023 - COMMAND bnkwin_123 new GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025 - COMMAND bnkwin_123 Construct GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026 - - COMMAND win_121 SetFaded GRAPHICS-WSERV-Window-PublicApi-3103-0001-SetFaded_command002 - - COMMAND bnkwin_123 Close - COMMAND win_122 Close - COMMAND win_121 Close - COMMAND win_120 Close - COMMAND win_112 Close - COMMAND bnkwin_111 Close - COMMAND bnkwin_110 Close - COMMAND wingrp_100 Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-Window-PublicApi-3103 diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-WindowGc-PublicApi.script --- a/graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-WindowGc-PublicApi.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8082 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// -//! @file -//! @SYMTestSuiteName GRAPHICS-WSERV-WindowGc-PublicApi -//! @SYMScriptTestEnvironment This test script requires a basic ROM. - -/////////////////////////////////////////////////////////////////////////////// -// GRAPHICS-WSERV-WindowGc-PublicApi.script -// -// Tests all public elements of the CWindowGc class -// as a means of confidence that the API works as expected. -// -// The purpose is to provide a regression test suite of PublishedAll APIs for -// CWindowGc related classes. -// Negative testing is performed to confirm that correct errors are returned -// when incorrect parameters are given. -// -// The tests are fully automated. -/////////////////////////////////////////////////////////////////////////////// - - -LOAD_SUITE T_GraphicsWservAPI - - -// **************************************************************************** -// CWindowGc -// **************************************************************************** - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0001 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0001 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc CWindowGc(CWsScreenDevice *aDevice): create but not initialise a graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a CWsScreenDevice within the RWsSession -//! 3. Execute CWindowGc constructor to create a CWindowGc within the CWsScreenDevice -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CWindowGc object was created without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-0001-0001-new_command004 - COMMAND scrdev Construct - COMMAND wingc new GRAPHICS-WSERV-WindowGc-PublicApi-0001-0001-new_command007 - - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0001 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0002 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0002 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc ~CWindowGc(): destruct a CWindowGc object -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a CWsScreenDevice within the RWsSession -//! 3. Create a CWindowGc within the CWsScreenDevice -//! 4. Execute destructor to destruct the CWindowGc object -//! 5. Close CWsScreenDevice, RWsSession -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CWindowGc object was destructed without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-0002-0001-new_command004 - COMMAND scrdev Construct - COMMAND wingc new GRAPHICS-WSERV-WindowGc-PublicApi-0002-0001-new_command007 - COMMAND wingc ~ - - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0002 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0003 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0003 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc Construct(): complete construction of CWindowGc -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct, CWindowGc::Construct -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a CWsScreenDevice within the RWsSession -//! 3. Create a CWindowGc within the CWsScreenDevice -//! 4. Execute Construct to construct the CWindowGc object -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Construct() method returns KErrNone without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-0003-0001-new_command004 - COMMAND scrdev Construct - COMMAND wingc new GRAPHICS-WSERV-WindowGc-PublicApi-0003-0001-new_command007 - COMMAND wingc Construct - - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0003 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0004 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0004 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc Activate(RDrawableWindow &aDevice): activate the CWindowGc for a given window (test in RWindow) -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct, RWindowGroup::Construct, RWindow::Construct, CWindowGc::Construct -//! @SYMTestActions 1. Create and construct a simple CWindowGc to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 New and construct a CWindowGc within the CWsScreenDevice -//! 2. New and construct a RWindowGroup within the RWsSession -//! 3. New and construct a RWindow as the child of the RWindowGroup -//! 4. Execute Activate to activate the CWindowGc for the RWindow -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults CWindowGc::Activate() method calls without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0001-0001-new_command004 - COMMAND scrdev Construct - COMMAND wingc new GRAPHICS-WSERV-WindowGc-Setup-0001-0001-new_command007 - COMMAND wingc Construct - - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-0004-0001-new_command001 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-0004-0001-Construct_command002 - COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-0004-0001-new_command004 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-0004-0001-Construct_command005 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-0004-0001-Activate_command007 - - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0004 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0005 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0005 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc Deactivate(): free the CWindowGc to be used with another window -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct, RWindowGroup::Construct, RWindow::Construct, CWindowGc::Construct & Activate -//! @SYMTestActions 1. Create and construct a simple CWindowGc to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 New and construct a CWindowGc within the CWsScreenDevice -//! 2. New and construct a RWindowGroup within the RWsSession -//! 3. New and construct a RWindow as the child of the RWindowGroup -//! 4. Use Activate to activate the CWindowGc for the RWindow -//! 5. Execute Deactivate to free the CWindowGc from the RWindow -//! 6. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults CWindowGc::Deactivate() method calls without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0001-0001-new_command004 - COMMAND scrdev Construct - COMMAND wingc new GRAPHICS-WSERV-WindowGc-Setup-0001-0001-new_command007 - COMMAND wingc Construct - - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-0005-0001-new_command001 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-0005-0001-Construct_command002 - COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-0005-0001-new_command004 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-0005-0001-Construct_command005 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-0005-0001-Activate_command007 - COMMAND wingc Deactivate - - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0005 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0006 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0006 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 20/03/2007 -//! @SYMTestCaseDesc Device(): return a pointer to the device for the screen that the WindowGc was last activated on -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct, CWindowGc::Construct -//! @SYMTestActions 1. Create and construct a simple CWindowGc to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 New and construct a CWindowGc within the CWsScreenDevice -//! 2. Execute Device to get the screen device of the CWindowGc -//! and put the returned screen device into 'scrdev1' -//! 3. Use GetScreenNumber to check if the screen number of the returned screen device is as expected 0 -//! 4. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults 1. CWindowGc::Device() method calls without causing panic -//! 2. The screen number of the returned CGraphicsDevice pointer is the same as the default 0 -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT CWsScreenDevice scrdev1 - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0001-0001-new_command004 - COMMAND scrdev Construct - COMMAND wingc new GRAPHICS-WSERV-WindowGc-Setup-0001-0001-new_command007 - COMMAND wingc Construct - - COMMAND wingc Device GRAPHICS-WSERV-WindowGc-PublicApi-0006-0001-Device_command001 - COMMAND scrdev1 GetScreenNumber GRAPHICS-WSERV-WindowGc-PublicApi-0006-0001-GetScreenNumber_command002 - - COMMAND scrdev1 disown - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0006 - - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0009 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0009 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 04/01/2007 -//! @SYMTestCaseDesc SetClippingRect(const TRect &aRect): set a clipping rectangle to display -//! Uses API elements: RWsSession::Connect & SetAutoFlush, -//! CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, -//! RWindow::Construct & BeginRedraw & EndRedraw, -//! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle & DrawRect -//! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush -//! 2. Use RWindow::BeginRedraw() to start a redraw cycle -//! 3. Execute SetClippingRect to set a clipping rectangle to display TRect((20,10),(40,50)) -//! 4. Draw and fill rectangle ((10,10),(50,50)) (with part inside and part outside the clipping rectangle) -//! 5. RWindow::EndRedraw() and check if drawing result as expected -//! only drawing in the ClippingRect and not drawn outside the ClippingRect -//! 6. Deactive RWindow, destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. CWindowGc::SetClippingRect() method calls without causing panic -//! 2. the drawing result of testaction 3 & 4 -//! 2.1 the rectangle border lines within ClippingRect is drawn with the pen color TRgb(0,0,0) -//! from (20,10) to (40,10) and from (20,49) to (40,49) -//! 2.2 the rectangle area ((40,11),(80,109)) within ClippingRect and inside the drawing rectangle is drawn/filled with the brush color TRgb(255,0,0) -//! 2.3 the rectangle area ((0,0),(20,60)),((40,0),(60,60)), ((20,0),(40,10)), ((40,50),(40,60)) -//! outside (left, right, top, bottom of) the ClippingRect is not drawn, with the background color TRgb(255,255,255) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 - - COMMAND win BeginRedraw - COMMAND wingc SetClippingRect GRAPHICS-WSERV-WindowGc-PublicApi-0009-0001-SetClippingRect_command003 - COMMAND wingc DrawRect GRAPHICS-WSERV-WindowGc-PublicApi-0009-0001-DrawRect_command004 - COMMAND win EndRedraw - COMMAND scrdev checkLineColor GRAPHICS-WSERV-WindowGc-PublicApi-0009-0001-checkLineColor_command008 - COMMAND scrdev checkRectColor GRAPHICS-WSERV-WindowGc-PublicApi-0009-0001-checkRectColor_command009 - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0009 - - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0010 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0010 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 04/01/2007 -//! @SYMTestCaseDesc CancelClippingRect(): cancel the clipping rectangle -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, -//! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle & DrawRect & SetClippingRect -//! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush -//! 2. Use RWindow::BeginRedraw() to start a redraw cycle -//! 3. Use SetClippingRect to set a clipping rectangle to display TRect((20,10),(40,50)) -//! 4. Execute CancelClippingRect to cancel the clipping rectangle -//! 5. Draw and fill rectangle ((10,10),(50,50)) (with part inside and part outside the canceled clipping rectangle) -//! 6. RWindow::EndRedraw() and check if drawing result as expected -//! the whole drawing result in testaction 5 is displayed as the ClippingRect is canceled -//! 7. Deactive RWindow, destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. CWindowGc::CancelClippingRect() method calls without causing panic -//! 2. the drawing result should be exactly the drawing rectangle in testaction 5 -//! 2.1 the whole border lines of the drawing rectangle (testaction 5) is drawn with the pen color TRgb(0,0,0) -//! from (10,10) to (50,10), from (49,10) to (49,50), from (10,10) to (10,50), from (10,49) to (50,49) -//! 2.2 inside the drawing rectangle ((11,11),(49,49)) is drawn/filled with the brush color TRgb(255,0,0) -//! 2.3 the rectangle area ((0,0),(10,60)), ((50,0),(60,60)),((10,0),(50,10)), ((10,50),(50,60)) -//! outside (left, right, top, bottom of) the drawing rectangle is not drawn, with the background color TRgb(255,255,255) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 - - COMMAND win BeginRedraw - COMMAND wingc SetClippingRect GRAPHICS-WSERV-WindowGc-PublicApi-0010-0001-SetClippingRect_command003 - COMMAND wingc CancelClippingRect - COMMAND wingc DrawRect GRAPHICS-WSERV-WindowGc-PublicApi-0010-0001-DrawRect_command005 - COMMAND win EndRedraw - COMMAND scrdev checkLineColor GRAPHICS-WSERV-WindowGc-PublicApi-0010-0001-checkLineColor_command009 - COMMAND scrdev checkRectColor GRAPHICS-WSERV-WindowGc-PublicApi-0010-0001-checkRectColor_command010 - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0010 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0026 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0026 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 15/01/2007 -//! @SYMTestCaseDesc MoveTo(const TPoint &aPoint): move the internal drawing position to the specified point, without drawing a line -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, -//! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle & DrawLineTo, TLinearDDA: Construct & SingleStep -//! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush -//! 2. Use RWindow::BeginRedraw() to start a redraw cycle -//! 3. MoveTo (20,10) and DrawLineTo(50,30) -//! 4. MoveTo (20,30) and DrawLineTo(10,50) -//! 5. RWindow::EndRedraw() and check the drawing result to see if the DrawLineTo draws a line originated from the point set by previous MoveTo command -//! 6. Deactive RWindow, destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. MoveTo is called without causing panic -//! 2. the drawing result of testaction 3 -//! 2.1 the line from (20,10) to (50,30) is drawn with the pen color TRgb(0,0,0) -//! 2.2 as x-delta > y-delta, the lines from (20,10+1) to (50,30+1) and from (20,10-1) to (50,30-1) is not drawn, with the background color TRgb(255,255,255) -//! 2.3 as x-delta > y-delta, the pixel (20-1,10) and (50,30) is not drawn, with the background color TRgb(255,255,255) -//! 3. the drawing result of testaction 4 -//! 3.1 the line from (20,30) to (10,50) is drawn with the pen color TRgb(0,0,0) -//! 3.2 as x-delta < y-delta, the lines from (20+1,30) to (10+1,50) and from (20-1,30) to (10-1,50) is not drawn, with the background color TRgb(255,255,255) -//! 3.3 as x-delta < y-delta, the pixel (20,30-1) and (10,50) is not drawn, with the background color TRgb(255,255,255) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 - - COMMAND win BeginRedraw - COMMAND wingc MoveTo GRAPHICS-WSERV-WindowGc-PublicApi-0026-0001-MoveTo_command003 - COMMAND wingc DrawLineTo GRAPHICS-WSERV-WindowGc-PublicApi-0026-0001-DrawLineTo_command004 - COMMAND wingc MoveTo GRAPHICS-WSERV-WindowGc-PublicApi-0026-0001-MoveTo_command005 - COMMAND wingc DrawLineTo GRAPHICS-WSERV-WindowGc-PublicApi-0026-0001-DrawLineTo_command006 - COMMAND win EndRedraw - COMMAND scrdev checkLineColor GRAPHICS-WSERV-WindowGc-PublicApi-0026-0001-checkLineColor_command010 - COMMAND scrdev checkPixels GRAPHICS-WSERV-WindowGc-PublicApi-0026-0001-checkPixels_command011 - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0026 - - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0027 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0027 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 15/01/2007 -//! @SYMTestCaseDesc MoveBy(const TPoint &aPoint): move the internal drawing position by the specified vector, without drawing a line -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, -//! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle & DrawLineTo, TLinearDDA: Construct & SingleStep -//! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush -//! 2. Use RWindow::BeginRedraw() to start a redraw cycle -//! 3. MoveBy (20,0), then MoveBy (0,20) and DrawLineTo(50,30) -//! 4. MoveBy (-30,0) and DrawLineTo(10,50) -//! 5. RWindow::EndRedraw() and check the drawing result to see if the DrawLineTo draws a line originated from the point set by previous MoveBy command -//! 6. Deactive RWindow, destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. MoveBy is called without causing panic -//! 2. the drawing result of testaction 3, the origin is (20,20) = (20,0) + (0,20) -//! 2.1 the line from (20,20) to (50,30) is drawn with the pen color TRgb(0,0,0) -//! 2.2 as x-delta > y-delta, the lines from (20,20+1) to (50,30+1) and from (20,20-1) to (50,30-1) is not drawn, with the background color TRgb(255,255,255) -//! 2.3 as x-delta > y-delta, the pixel (20-1,20) and (50,30) is not drawn, with the background color TRgb(255,255,255) -//! 3. the drawing result of testaction 4, the origin is (20,30) = (50,30) + (-30,0) -//! 3.1 the line from (20,30) to (10,50) is drawn with the pen color TRgb(0,0,0) -//! 3.2 as x-delta < y-delta, the lines from (20+1,30) to (10+1,50) and from (20-1,30) to (10-1,50) is not drawn, with the background color TRgb(255,255,255) -//! 3.3 as x-delta < y-delta, the pixel (20,30-1) and (10,50) is not drawn, with the background color TRgb(255,255,255) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 - - COMMAND win BeginRedraw - COMMAND wingc MoveTo GRAPHICS-WSERV-WindowGc-PublicApi-0027-0001-MoveTo_command002 - COMMAND wingc MoveBy GRAPHICS-WSERV-WindowGc-PublicApi-0027-0001-MoveBy_command003 - COMMAND wingc MoveBy GRAPHICS-WSERV-WindowGc-PublicApi-0027-0001-MoveBy_command004 - COMMAND wingc DrawLineTo GRAPHICS-WSERV-WindowGc-PublicApi-0027-0001-DrawLineTo_command005 - COMMAND wingc MoveBy GRAPHICS-WSERV-WindowGc-PublicApi-0027-0001-MoveBy_command006 - COMMAND wingc DrawLineTo GRAPHICS-WSERV-WindowGc-PublicApi-0027-0001-DrawLineTo_command007 - COMMAND win EndRedraw - COMMAND scrdev checkLineColor GRAPHICS-WSERV-WindowGc-PublicApi-0027-0001-checkLineColor_command011 - COMMAND scrdev checkPixels GRAPHICS-WSERV-WindowGc-PublicApi-0027-0001-checkPixels_command012 - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0027 - - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0028 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0028 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc Plot(const TPoint &aPoint): draw a single point -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, -//! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle -//! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush -//! 2. Use RWindow::BeginRedraw() to start a redraw cycle -//! 3. Draw a point as specified in the test data (25,26) -//! 4. RWindow::EndRedraw() and check if drawing result as expected -//! 5. Deactive RWindow, destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Draw a single point without causing panic -//! 2. the drawing result of testaction 3 -//! 2.1 the point (25,26) is drawn with the pen color TRgb(0,0,0) -//! 2.2 its 4 neighbor points (25,26-1),(25,26+1),(25-1,26),(25+1,26), are not drawn, with the background color TRgb(255,255,255) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 - - COMMAND win BeginRedraw - COMMAND wingc Plot GRAPHICS-WSERV-WindowGc-PublicApi-0028-0001-Plot_command003 - COMMAND win EndRedraw - COMMAND scrdev checkPixels GRAPHICS-WSERV-WindowGc-PublicApi-0028-0001-checkPixels_command007 - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0028 - - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0029 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0029 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc DrawArc(const TRect &aRect, const TPoint &aStart, const TPoint &aEnd): draw an arc -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, CWindowGc::Construct & Activate & Deactivate -//! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush -//! 2. Use RWindow::BeginRedraw() to start a redraw cycle -//! 3. Draw an arc as specified in the test data -//! 4. RWindow::EndRedraw() and check if drawing result as expected -//! 5. Deactive RWindow, destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Draw an arc without causing panic -//! 2. the drawing result is as expected -//! 2.1 the arc line is drawn with the pen color TRgb(0,0,0) -//! only check sample points (81,47) (80,22) (99,35) (90,44) (90,25) -//! 2.2 the adjacent points of the above arc points is not drawn, with the background color TRgb(255,255,255) -//! only check points (80,47) (81,48) (79,22) (80,21) (100,35) (98,35) (60,35) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 - - COMMAND win BeginRedraw - COMMAND wingc DrawArc GRAPHICS-WSERV-WindowGc-PublicApi-0029-0001-DrawArc_command003 - COMMAND win EndRedraw - COMMAND scrdev checkPixels GRAPHICS-WSERV-WindowGc-PublicApi-0029-0001-checkPixels_command007 - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0029 - - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0030 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0030 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc DrawLine(const TPoint &aPoint1, const TPoint &aPoint2): draw a straight line between two points -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, -//! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle, TLinearDDA: Construct & SingleStep -//! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush -//! 2. Use RWindow::BeginRedraw() to start a redraw cycle -//! 3. Draw a straight line from (25,26) to (50,60) -//! 4. RWindow::EndRedraw() and check if drawing result as expected -//! 5. Deactive RWindow, destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Draw a straight line without causing panic -//! 2. the drawing result of testaction 3, straight line from (25,26) to (50,60) -//! 2.1 the line from (25,26) to (50,60) is drawn with the pen color TRgb(0,0,0) -//! 2.2 as x-delta < y-delta, the lines from (25+1,26) to (50+1,60) and from (25-1,26) to (50-1,60) is not drawn, with the background color TRgb(255,255,255) -//! 2.3 as x-delta < y-delta, the pixel (25,26-1) and (50,60) is not drawn, with the background color TRgb(255,255,255) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 - - COMMAND win BeginRedraw - COMMAND wingc DrawLine GRAPHICS-WSERV-WindowGc-PublicApi-0030-0001-DrawLine_command003 - COMMAND win EndRedraw - COMMAND scrdev checkLineColor GRAPHICS-WSERV-WindowGc-PublicApi-0030-0001-checkLineColor_command007 - COMMAND scrdev checkPixels GRAPHICS-WSERV-WindowGc-PublicApi-0030-0001-checkPixels_command008 - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0030 - - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0031 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0031 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc DrawLineTo(const TPoint &aPoint): draw a straight line from internal drawing position to a point -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, -//! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle, TLinearDDA: Construct & SingleStep -//! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush -//! 2. Use RWindow::BeginRedraw() to start a redraw cycle -//! 3. DrawLineTo (40,30) from initial origin (0,0) -//! 4. DrawLineTo (50,60) -//! 5. RWindow::EndRedraw() and check if drawing result as expected -//! 6. Deactive RWindow, destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Draw a straight line without causing panic -//! 2. the drawing result of testaction 3, straight line from initial origin (0,0) to (40,30) -//! 2.1 the line from (0,0) to (40,30) is drawn with the pen color TRgb(0,0,0) -//! 2.2 as x-delta > y-delta, the lines from (0,0+1) to (40,30+1) and from (0,0-1) to (40,30-1) is not drawn, with the background color TRgb(255,255,255) -//! 2.3 (40,30) is not drawn in testaction 2, but is draw in testaction 3 with the pen color TRgb(0,0,0) -//! 3. the drawing result of testaction 4, straight line from previous destination (40,30) to (50,60) -//! 3.1 the line from (40,30) to (50,60) is drawn with the pen color TRgb(0,0,0) -//! 3.2 as x-delta < y-delta, the lines from (40+1,30) to (50+1,60) and from (40-1,30) to (50-1,60) is not drawn, with the background color TRgb(255,255,255) -//! 3.3 as x-delta < y-delta, the pixel (40,30-1) and (50,60) is not drawn, with the background color TRgb(255,255,255) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 - - COMMAND win BeginRedraw - COMMAND wingc MoveTo GRAPHICS-WSERV-WindowGc-PublicApi-0031-0001-MoveTo_command002 - COMMAND wingc DrawLineTo GRAPHICS-WSERV-WindowGc-PublicApi-0031-0001-DrawLineTo_command003 - COMMAND wingc DrawLineTo GRAPHICS-WSERV-WindowGc-PublicApi-0031-0001-DrawLineTo_command004 - COMMAND win EndRedraw - COMMAND scrdev checkLineColor GRAPHICS-WSERV-WindowGc-PublicApi-0031-0001-checkLineColor_command008 - COMMAND scrdev checkPixels GRAPHICS-WSERV-WindowGc-PublicApi-0031-0001-checkPixels_command009 - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0031 - - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0032 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0032 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc DrawLineBy(const TPoint &aPoint): draw a straight line from internal drawing position, using a vector -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, -//! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle -//! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush -//! 2. Use RWindow::BeginRedraw() to start a redraw cycle -//! 3. DrawLineBy (30,40) from initial origin (0,0) -//! 4. DrawLineBy (30,10) -//! 5. RWindow::EndRedraw() and check if drawing result as expected -//! 6. Deactive RWindow, destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Draw a straight line without causing panic -//! 2. the drawing result of testaction 3, straight line from initial origin (0,0) to (30,40) -//! 2.1 the line from (0,0) to (30,40) is drawn with the pen color TRgb(0,0,0) -//! 2.2 as x-delta < y-delta, the lines from (0+1,0) to (30+1,40) and from (0-1,0) to (30-1,40) is not drawn, with the background color TRgb(255,255,255) -//! 2.3 (30,40) is not drawn, but is draw in testaction 3 with the pen color TRgb(0,0,0) -//! 3. the drawing result of testaction 4, straight line from previous destination (30,40) to (60,50)=(30,40)+vector(30,10) -//! 3.1 the line from (30,40) to (60,50) is drawn with the pen color TRgb(0,0,0) -//! 3.2 as x-delta > y-delta, the lines from (30,40+1) to (60,50+1) and from (30,40-1) to (60,50-1) is not drawn, with the background color TRgb(255,255,255) -//! 3.3 as x-delta > y-delta, the pixel (30-1,40) and (60,50) is not drawn, with the background color TRgb(255,255,255) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 - - COMMAND win BeginRedraw - COMMAND wingc MoveTo GRAPHICS-WSERV-WindowGc-PublicApi-0032-0001-MoveTo_command002 - COMMAND wingc DrawLineBy GRAPHICS-WSERV-WindowGc-PublicApi-0032-0001-DrawLineBy_command003 - COMMAND wingc DrawLineBy GRAPHICS-WSERV-WindowGc-PublicApi-0032-0001-DrawLineBy_command004 - COMMAND win EndRedraw - COMMAND scrdev checkLineColor GRAPHICS-WSERV-WindowGc-PublicApi-0032-0001-checkLineColor_command008 - COMMAND scrdev checkPixels GRAPHICS-WSERV-WindowGc-PublicApi-0032-0001-checkPixels_command009 - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0032 - - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0033 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0033 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 25/12/2006 -//! @SYMTestCaseDesc DrawPolyLine(const CArrayFix< TPoint > *aPointList): draw a polyline using points in an array -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, -//! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle -//! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush -//! 2. Use RWindow::BeginRedraw() to start a redraw cycle -//! 3. Read the test data to construct a point array, draw a polyline as the specified data -//! TPoint(30,40), (50,60), (60,50), (70,70), (90,40) -//! 4. RWindow::EndRedraw() and check if drawing result as expected -//! 5. Deactive RWindow, destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Draw a polyline without causing panic -//! 2. the drawing result of testaction 3 -//! 2.1 straight lines connected by two consecutive points in the point array, these lines are drawn with the pen color TRgb(0,0,0) -//! from (30,40) to (50,60), from (50,60) to (60,50), from (60,50) to (70,70), from (70,70) to (90,40) -//! 2.2 the last point (90,40) in the point array is drawn with the pen color TRgb(0,0,0) -//! 2.3 other points should not be drawn, with the background color TRgb(255,255,255), check the following sample points -//! the middle point (60,40) of the first and last points in the point array -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 - - COMMAND win BeginRedraw - COMMAND wingc DrawPolyLine GRAPHICS-WSERV-WindowGc-PublicApi-0033-0001-DrawPolyLine_command003 - COMMAND win EndRedraw - COMMAND scrdev checkLineColor GRAPHICS-WSERV-WindowGc-PublicApi-0033-0001-checkLineColor_command007 - COMMAND scrdev checkPixels GRAPHICS-WSERV-WindowGc-PublicApi-0033-0001-checkPixels_command008 - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0033 - - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0034 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0034 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 27/12/2006 -//! @SYMTestCaseDesc DrawPolyLine(const TPoint *aPointList, TInt aNumPoints): draw a polyline using points in a list -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, -//! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle -//! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush -//! 2. Use RWindow::BeginRedraw() to start a redraw cycle -//! 3. Read the test data to construct a point list, draw a polyline as the specified data -//! TPoint(30,40), (50,60), (60,50), (70,70), (90,30) -//! 4. RWindow::EndRedraw() and check if drawing result as expected -//! 5. Deactive RWindow, destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Draw a polyline without causing panic -//! 2. the drawing result of testaction 3 -//! 2.1 straight lines connected by two consecutive points in the point list, these lines are drawn with the pen color TRgb(0,0,0) -//! from (30,40) to (50,60), from (50,60) to (60,50), from (60,50) to (70,70), from (70,70) to (90,30) -//! 2.2 the last point (90,30) in the point list is drawn with the pen color TRgb(0,0,0) -//! 2.3 other points should not be drawn, with the background color TRgb(255,255,255), check the following sample points -//! the middle point (60,35) of the first and last points in the point list -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 - - COMMAND win BeginRedraw - COMMAND wingc DrawPolyLine GRAPHICS-WSERV-WindowGc-PublicApi-0034-0001-DrawPolyLine_command003 - COMMAND win EndRedraw - COMMAND scrdev checkLineColor GRAPHICS-WSERV-WindowGc-PublicApi-0034-0001-checkLineColor_command007 - COMMAND scrdev checkPixels GRAPHICS-WSERV-WindowGc-PublicApi-0034-0001-checkPixels_command008 - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0034 - - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0035 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0035 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc DrawPie(const TRect &aRect, const TPoint &aStart, const TPoint &aEnd): draw and fill a pie-shaped slice of an ellipse -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, CWindowGc::Construct & Activate & Deactivate -//! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush -//! 2. Use RWindow::BeginRedraw() to start a redraw cycle -//! 3. Draw and fill a pie-shaped slice of an ellipse with the specified test data -//! 4. RWindow::EndRedraw() and check if drawing result as expected -//! 5. Deactive RWindow, destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Draw and fill a pie-shaped slice without causing panic -//! 2. the drawing result is as expected -//! 2.1 on the pie boarder is drawn with the pen color TRgb(0,0,0) -//! only check sample points (60,35) (81,47) (80,22) (67,39) (74,43) (67,30) (74,26) (99,35) (90,44) (90,25) -//! 2.2 inside the pie shape is drawn/filled with the brush color TRgb(255,0,0) -//! only check sample points (90,40) (90,30) -//! 2.3 outside the pie shape is not drawn, with the background color TRgb(255,255,255) -//! only check sample points (100,35) (70,25) (70,45) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 - - COMMAND win BeginRedraw - COMMAND wingc DrawPie GRAPHICS-WSERV-WindowGc-PublicApi-0035-0001-DrawPie_command003 - COMMAND win EndRedraw - COMMAND scrdev checkPixels GRAPHICS-WSERV-WindowGc-PublicApi-0035-0001-checkPixels_command007 - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0035 - - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0036 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0036 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc DrawEllipse(const TRect &aRect): draw and fill an ellipse -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, CWindowGc::Construct & Activate & Deactivate -//! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush -//! 2. Use RWindow::BeginRedraw() to start a redraw cycle -//! 3. Draw and fill an ellipse with the specified test data -//! 4. RWindow::EndRedraw() and check if drawing result as expected -//! 5. Deactive RWindow, destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Draw and fill an ellipse without causing panic -//! 2. the drawing result is as expected -//! 2.1 on the ellipse boarder is drawn with the pen color TRgb(0,0,0) -//! only check sample points (21,35) (99,35) (60,20) (60,49) (40,22) (40,47) (80,22) (80,47) -//! 2.2 inside the ellipse is drawn/filled with the brush color TRgb(255,0,0) -//! only check sample points (60,35) -//! 2.3 outside the ellipse is not drawn, with the background color TRgb(255,255,255) -//! only check sample points (100,50) (100,35) (60,50) (60,10) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 - - COMMAND win BeginRedraw - COMMAND wingc DrawEllipse GRAPHICS-WSERV-WindowGc-PublicApi-0036-0001-DrawEllipse_command003 - COMMAND win EndRedraw - COMMAND scrdev checkPixels GRAPHICS-WSERV-WindowGc-PublicApi-0036-0001-checkPixels_command007 - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0036 - - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0037 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0037 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc DrawRect(const TRect &aRect): draw and fill a rectangle -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, -//! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle -//! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush -//! 2. Use RWindow::BeginRedraw() to start a redraw cycle -//! 3. Draw and fill a rectangle with the specified test data ((21,20),(80,50)) -//! 4. RWindow::EndRedraw() and check if drawing result as expected -//! 5. Deactive RWindow, destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Draw and fill a rectangle without causing panic -//! 2. the drawing result of testaction 3 -//! 2.1 the 4 border lines of the drawing rectangle is drawn with the pen color TRgb(0,0,0) -//! from (21,20) to (80,20), from (21,20) to (21,50), from (79,20) to (79,50), from (21,49) to (80,49) -//! 2.2 inside the drawing rectangle ((21+1,20+1),(80-1,50-1)) is drawn/filled with the brush color TRgb(255,0,0) -//! 2.3 the rectangle area ((0,0),(21,60)),((80,0),(100,60)), ((21,0),(80,20)), ((21,50),(80,60)) -//! outside (left, right, top, bottom of) the drawing rectangle is not drawn, with the background color TRgb(255,255,255) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 - - COMMAND win BeginRedraw - COMMAND wingc DrawRect GRAPHICS-WSERV-WindowGc-PublicApi-0037-0001-DrawRect_command003 - COMMAND win EndRedraw - COMMAND scrdev checkLineColor GRAPHICS-WSERV-WindowGc-PublicApi-0037-0001-checkLineColor_command007 - COMMAND scrdev checkRectColor GRAPHICS-WSERV-WindowGc-PublicApi-0037-0001-checkRectColor_command008 - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0037 - - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0038 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0038 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 20/12/2006 -//! @SYMTestCaseDesc DrawRoundRect(const TRect &aRect, const TSize &aEllipse): draw and fill a rectangle with rounded corners -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, -//! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle -//! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush -//! 2. Use RWindow::BeginRedraw() to start a redraw cycle -//! 3. Draw and fill a rectangle ((21,20),(80,50)) with the rounded corner size (width=10, height=8) -//! 4. RWindow::EndRedraw() and check if drawing result as expected -//! 5. Deactive RWindow, destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Draw and fill a rounded rectangle without causing panic -//! 2. the drawing result of testaction 3 -//! 2.1 the 4 border lines of the drawing rectangle is drawn with the pen color TRgb(0,0,0) -//! from (21+10,20) to (80-10,20), from (21,20+8) to (21,50-8), from (79,20+8) to (79,50-8), from (21+10,49) to (80-10,49) -//! 2.2 inside the drawing rectangle is drawn/filled with the brush color TRgb(255,0,0) -//! TRect((21+10,20+1),(80-10,50-1)), ((21+1,20+8),(21+10,50-8)), ((80-10,20+8),(80-1,50-8)) -//! 2.3 the rectangle area ((0,0),(21,60)),((80,0),(100,60)), ((21,0),(80,20)), ((21,50),(80,60)) -//! outside (left, right, top, bottom of) the drawing rectangle is not drawn, with the background color TRgb(255,255,255) -//! 2.4 over the 4 rounded corners of the drawing rectangle is drawn with the pen color TRgb(0,0,0) -//! sample 2 points for each corner to check: (23,23), (26,21), (23,46), (26,48), (77,23), (74,21), (77,46), (74,48) -//! 2.5 inside the 4 rounded corners is drawn/filled with the brush color TRgb(255,0,0) -//! sample 1 point inside each corner to check: (24,23), (24,46), (76,23), (76,46) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 - - COMMAND win BeginRedraw - COMMAND wingc DrawRoundRect GRAPHICS-WSERV-WindowGc-PublicApi-0038-0001-DrawRoundRect_command003 - COMMAND win EndRedraw - COMMAND scrdev checkLineColor GRAPHICS-WSERV-WindowGc-PublicApi-0038-0001-checkLineColor_command007 - COMMAND scrdev checkRectColor GRAPHICS-WSERV-WindowGc-PublicApi-0038-0001-checkRectColor_command008 - COMMAND scrdev checkPixels GRAPHICS-WSERV-WindowGc-PublicApi-0038-0001-checkPixels_command009 - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0038 - - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0039 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0039 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 26/12/2006 -//! @SYMTestCaseDesc DrawPolygon(const CArrayFix< TPoint > *aPointList, TFillRule aFillRule=EAlternate): draw and fill a polygon using points in an array -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, -//! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle -//! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush -//! 2. Use RWindow::BeginRedraw() to start a redraw cycle -//! 3. Read the test data to construct a point array, draw a polygon as the specified data -//! TPoint(30,40), (50,60), (60,50), (70,70), (90,40) -//! 4. RWindow::EndRedraw() and check if drawing result as expected -//! 5. Deactive RWindow, destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Draw a polygon, return value = KErrNone without causing panic -//! 2. the drawing result of testaction 3 -//! 2.1 straight lines connected by two consecutive points in the point array and from the last point to the first one, these lines are drawn with the pen color TRgb(0,0,0) -//! from (30,40) to (50,60), from (50,60) to (60,50), from (60,50) to (70,70), from (70,70) to (90,40), from (90,40) to (30,40) -//! 2.2 inside the drawing polygon is drawn/filled with the brush color TRgb(255,0,0) -//! only check sample points: (60,45) -//! 2.3 outside the drawing polygon should not be drawn, with the background color TRgb(255,255,255) -//! only check sample points: (60,30) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 - - COMMAND win BeginRedraw - COMMAND wingc DrawPolygon GRAPHICS-WSERV-WindowGc-PublicApi-0039-0001-DrawPolygon_command003 - COMMAND win EndRedraw - COMMAND scrdev checkLineColor GRAPHICS-WSERV-WindowGc-PublicApi-0039-0001-checkLineColor_command007 - COMMAND scrdev checkPixels GRAPHICS-WSERV-WindowGc-PublicApi-0039-0001-checkPixels_command008 - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0039 - - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0040 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0040 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 28/12/2006 -//! @SYMTestCaseDesc DrawPolygon(const TPoint *aPointList, TInt aNumPoints, TFillRule aFillRule=EAlternate): draw and fill a polygon using points in a list -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, -//! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle -//! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush -//! 2. Use RWindow::BeginRedraw() to start a redraw cycle -//! 3. Read the test data to construct a point list, draw a polygon as the specified data -//! TPoint(30,40), (50,60), (60,50), (70,70), (90,40) -//! 4. RWindow::EndRedraw() and check if drawing result as expected -//! 5. Deactive RWindow, destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Draw a polygon, return value = KErrNone without causing panic -//! 2. the drawing result of testaction 3 -//! 2.1 straight lines connected by two consecutive points in the point array and from the last point to the first one, these lines are drawn with the pen color TRgb(0,0,0) -//! from (30,40) to (50,60), from (50,60) to (60,50), from (60,50) to (70,70), from (70,70) to (90,40), from (90,40) to (30,40) -//! 2.2 inside the drawing polygon is drawn/filled with the brush color TRgb(255,0,0) -//! only check sample points: (60,45) -//! 2.3 outside the drawing polygon should not be drawn, with the background color TRgb(255,255,255) -//! only check sample points: (60,30) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 - - COMMAND win BeginRedraw - COMMAND wingc DrawPolygon GRAPHICS-WSERV-WindowGc-PublicApi-0040-0001-DrawPolygon_command003 - COMMAND win EndRedraw - COMMAND scrdev checkLineColor GRAPHICS-WSERV-WindowGc-PublicApi-0040-0001-checkLineColor_command007 - COMMAND scrdev checkPixels GRAPHICS-WSERV-WindowGc-PublicApi-0040-0001-checkPixels_command008 - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0040 - - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0041 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0041 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 02/01/2007 -//! @SYMTestCaseDesc DrawBitmap(const TPoint &aTopLeft, const CFbsBitmap *aDevice): draw a bitmap at the specified point -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw & Invalidate, -//! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle & DrawRect, CFbsBitmap::Load, TLinearDDA -//! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush -//! 2. New and Load a CFbsBitmap, and SetSizeInTwips to its appropriate size -//! 3. Use RWindow::BeginRedraw() to start a redraw cycle -//! 4. Execute DrawBitmap to draw the bitmap at the specified point, e.g. TPoint(0,0) -//! 5. RWindow::EndRedraw() and check if drawing result as expected -//! !!! Issue: this DrawBitmap result is not displayed (by manual test) -//! 6. Deactive RWindow, destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Draw a bitmap at the specified point without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 - - CREATE_OBJECT CFbsBitmap fbsbmp - COMMAND fbsbmp new - COMMAND fbsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0041-0001-Load_command002 - COMMAND fbsbmp SetSizeInTwips GRAPHICS-WSERV-WindowGc-PublicApi-0041-0001-SetSizeInTwips_command003 - COMMAND fbsbmp SizeInTwips - COMMAND fbsbmp SizeInPixels - COMMAND fbsbmp DisplayMode - COMMAND win BeginRedraw - COMMAND wingc DrawBitmap GRAPHICS-WSERV-WindowGc-PublicApi-0041-0001-DrawBitmap_command010 - COMMAND win EndRedraw - COMMAND fbsbmp ~ - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0041 - - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0042 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0042 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 03/01/2007 -//! @SYMTestCaseDesc DrawBitmap(const TRect &aDestRect, const CFbsBitmap *aDevice): draw a bitmap in the specified rectangle -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw & Invalidate, -//! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle & DrawRect, CFbsBitmap::Load, TLinearDDA -//! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush -//! 2. New and Load a CFbsBitmap -//! 3. Use RWindow::BeginRedraw() to start a redraw cycle -//! 4. Execute DrawBitmap to draw the bitmap with in the specified destination rectangle, e.g. TRect((10,10),(110,110)) -//! 5. RWindow::EndRedraw() to end the redraw cycle and display the drawing result -//! 6. Deactive RWindow, destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Draw a bitmap in the specified rectangle without causing panic -//! 2. the drawing result matched with the scaled bitmap content -//! 2.1 the full bitmap is scaled into the specified destination rectangle on the screen -//! for each destination pixel, use TLinearDDA to map back to its source point within the bitmap -//! 2.2 only the following sub-areas within the destination rectangle are compared -//! TRect((0,0),(20,20)), ((80,0),(100,20)), ((0,80),(20,100)), ((80,80),(100,100)) -//! 2.3 check if the destination pixel color is the same as the color of its mapped source point -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 - - CREATE_OBJECT CFbsBitmap fbsbmp - COMMAND fbsbmp new - COMMAND fbsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0042-0001-Load_command002 - COMMAND fbsbmp SizeInTwips - COMMAND fbsbmp SizeInPixels - COMMAND fbsbmp DisplayMode - COMMAND win BeginRedraw - COMMAND wingc DrawBitmap GRAPHICS-WSERV-WindowGc-PublicApi-0042-0001-DrawBitmap_command009 - COMMAND win EndRedraw - COMMAND fbsbmp ~ - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0042 - - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0043 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0043 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 03/01/2007 -//! @SYMTestCaseDesc DrawBitmap(const TRect &aDestRect, const CFbsBitmap *aDevice, const TRect &aSourceRect): draw a bitmap from a rectangle into another specified rectangle -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw & Invalidate, -//! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle & DrawRect, CFbsBitmap::Load, TLinearDDA -//! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush -//! 2. New and Load a CFbsBitmap -//! 3. Use RWindow::BeginRedraw() to start a redraw cycle -//! 4. Execute DrawBitmap to draw the bitmap from a rectangle into another specified rectangle -//! e.g. draw bitmap within TRect((20,21),(100,101)) into destination TRect((10,10),(170,170)) on the screen -//! 5. RWindow::EndRedraw() to end the redraw cycle and display the drawing result -//! 6. Deactive RWindow, destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Draw a bitmap from a rectangle into another specified rectangle without causing panic -//! 2. the drawing result matched with the scaled bitmap content -//! 2.1 the bitmap within source rectangle is scaled into the specified destination rectangle on the screen -//! for each destination pixel, use TLinearDDA to map back to its source point within the bitmap -//! 2.2 only the following sub-areas within the destination rectangle are compared -//! TRect((40,40),(60,60)), ((140,40),(160,60)), ((40,140),(60,160)), ((140,140),(160,160)) -//! 2.3 check if the destination pixel color is the same as the color of its mapped source point -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 - - CREATE_OBJECT CFbsBitmap fbsbmp - COMMAND fbsbmp new - COMMAND fbsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0043-0001-Load_command002 - COMMAND fbsbmp SizeInTwips - COMMAND fbsbmp SizeInPixels - COMMAND fbsbmp DisplayMode - COMMAND win BeginRedraw - COMMAND wingc DrawBitmap GRAPHICS-WSERV-WindowGc-PublicApi-0043-0001-DrawBitmap_command009 - COMMAND win EndRedraw - COMMAND fbsbmp ~ - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0043 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0044 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0044 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 11/04/2007 -//! @SYMTestCaseDesc DrawBitmapMasked(const TRect &aDestRect, const CFbsBitmap *aBitmap, const TRect &aSourceRect, const CFbsBitmap *aMaskBitmap, TBool aInvertMask): draw a specified rectangle from a bitmap and its mask into another rectangle -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw & Invalidate, -//! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle & DrawRect, CFbsBitmap::Load, TLinearDDA -//! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush -//! 2. New and Load a CFbsBitmap -//! 3. Use RWindow::BeginRedraw() to start a redraw cycle -//! 4. Execute DrawBitmapMasked to draw a specified rectangle from a bitmap and its mask into another rectangle -//! e.g. draw bitmap within TRect((20,20),(100,100)) into destination TRect((10,10),(170,170)) on the screen -//! 5. RWindow::EndRedraw() to end the redraw cycle and display the drawing result -//! 6. Deactive RWindow, destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Draw a specified rectangle from a bitmap and its mask into another rectangle without causing panic -//! 2. the drawing result matched with the scaled masked bitmap content -//! 2.1 the bitmap within source rectangle is scaled into the specified destination rectangle on the screen -//! for each destination pixel, use TLinearDDA to map back to its source point within the bitmap -//! 2.2 only the following sub-areas within the destination rectangle are compared -//! TRect((40,40),(60,60)), ((140,40),(160,60)), ((40,140),(60,160)), ((140,140),(160,160)) -//! 2.3 if the mapped source point is masked, check if the destination pixel color is the default background color, i.e. TRgb(255,255,255) -//! 2.4 if the mapped source point is not masked, check if the destination pixel color is the same as the color of its mapped source point -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 - - CREATE_OBJECT CFbsBitmap fbsbmp - CREATE_OBJECT CFbsBitmap fbsmaskbmp - COMMAND fbsbmp new - COMMAND fbsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0044-0001-Load_command002 - COMMAND fbsbmp SizeInTwips - COMMAND fbsbmp SizeInPixels - COMMAND fbsbmp DisplayMode - COMMAND win BeginRedraw - COMMAND fbsmaskbmp new - COMMAND fbsmaskbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0044-0001-Load_command010 - COMMAND fbsmaskbmp SizeInTwips - COMMAND fbsmaskbmp SizeInPixels - COMMAND fbsmaskbmp DisplayMode - COMMAND wingc DrawBitmapMasked GRAPHICS-WSERV-WindowGc-PublicApi-0044-0001-DrawBitmapMasked_command015 - COMMAND win EndRedraw - COMMAND fbsbmp ~ - COMMAND fbsmaskbmp ~ - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0044 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0045 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0045 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 12/04/2007 -//! @SYMTestCaseDesc DrawBitmapMasked(const TRect &aDestRect, const CWsBitmap *aBitmap, const TRect &aSourceRect, const CWsBitmap *aMaskBitmap, TBool aInvertMask): draw a specified rectangle from a wserv bitmap and its mask into another rectangle -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw & Invalidate, -//! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle & DrawRect, CFbsBitmap::Load, TLinearDDA -//! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush -//! 2. New and Load a CFbsBitmap -//! 3. Use RWindow::BeginRedraw() to start a redraw cycle -//! 4. Execute DrawBitmapMasked to draw a specified rectangle from a wserv bitmap and its mask into another rectangle -//! e.g. draw bitmap within TRect((20,20),(90,90)) into destination TRect((10,10),(170,170)) on the screen -//! 5. RWindow::EndRedraw() to end the redraw cycle and display the drawing result -//! 6. Deactive RWindow, destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Draw a specified rectangle from a wserv bitmap and its mask into another rectangle without causing panic -//! 2. the drawing result matched with the scaled masked bitmap content -//! 2.1 the bitmap within source rectangle is scaled into the specified destination rectangle on the screen -//! for each destination pixel, use TLinearDDA to map back to its source point within the bitmap -//! 2.2 only the following sub-areas within the destination rectangle are compared -//! TRect((40,40),(60,60)), ((140,40),(160,60)), ((40,140),(60,160)), ((140,140),(160,160)) -//! 2.3 if the mapped source point is masked, check if the destination pixel color is the default background color, i.e. TRgb(255,255,255) -//! 2.4 if the mapped source point is not masked, check if the destination pixel color is the same as the color of its mapped source point -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 - - CREATE_OBJECT CWsBitmap wsbmp - CREATE_OBJECT CWsBitmap wsmaskbmp - COMMAND wsbmp new GRAPHICS-WSERV-WindowGc-PublicApi-0045-0001-new_command001 - COMMAND wsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0045-0001-Load_command002 - COMMAND wsmaskbmp new GRAPHICS-WSERV-WindowGc-PublicApi-0045-0001-new_command004 - COMMAND wsmaskbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0045-0001-Load_command005 - COMMAND win BeginRedraw - COMMAND wingc DrawBitmapMasked GRAPHICS-WSERV-WindowGc-PublicApi-0045-0001-DrawBitmapMasked_command009 - COMMAND win EndRedraw - COMMAND wsbmp ~ - COMMAND wsmaskbmp ~ - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0045 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0048 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0048 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 23/01/2007 -//! @SYMTestCaseDesc Clear: clear the whole window -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw & Invalidate, -//! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle & DrawRect -//! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush -//! 2. Use RWindow::BeginRedraw() & EndRedraw() to display the window before clear -//! and check if the screen is displayed in the background color TRgb(255,255,255) -//! 3. Use RWindow::Invalidate & BeginRedraw() to invalidate the whole window and start another redraw cycle -//! 4. Execute Clear to clear the whole window with the brush color TRgb(255,0,0) -//! 5. Use RWindow::EndRedraw() to end redraw cycle and disaply the cleared window -//! and check if cleared result as expected -//! 6. Deactive RWindow, destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Clear the rectangle area of a window without causing panic -//! 2. check the following testing rectangle area within the window -//! TRect((0,0),(20,20)), ((180,0),(200,20)), ((0,180),(20,200)), ((180,180),(200,200)) -//! 2.1 before clear the window, all rectangle areas are in the background color TRgb(255,255,255) -//! 2.2 after clear the window, all rectangle areas are in the brush color TRgb(255,0,0) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 - - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND win Invalidate - COMMAND scrdev checkRectColor GRAPHICS-WSERV-WindowGc-PublicApi-0048-0001-checkRectColor_command005 - COMMAND win BeginRedraw - COMMAND wingc Clear - COMMAND win EndRedraw - COMMAND scrdev checkRectColor GRAPHICS-WSERV-WindowGc-PublicApi-0048-0001-checkRectColor_command013 - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0048 - - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0049 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0049 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 23/01/2007 -//! @SYMTestCaseDesc Clear(const TRect &aRect): clear a rectangle area of a window -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, -//! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle -//! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush -//! 2. Use RWindow::BeginRedraw() to start a redraw cycle -//! 3. Execute Clear to clear the rectangle area ((11,10),(61,60)) with the brush color TRgb(255,0,0) -//! 4. Use RWindow::EndRedraw() to end redraw cycle and disaply the cleared rectangle -//! and check if cleared result as expected -//! 5. Deactive RWindow, destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Clear the rectangle area of a window without causing panic -//! 2. the cleared screen result -//! 2.1 inside the clearing rectangle ((11,10),(41,40)) is drawn/filled with the brush color TRgb(255,0,0) -//! 2.2 the rectangle area ((0,0),(11,50)),((41,0),(50,50)), ((11,0),(41,10)), ((11,40),(41,50)) -//! outside (left, right, top, bottom of) the clearing rectangle is not drawn, with the background color TRgb(255,255,255) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 - - COMMAND win BeginRedraw - COMMAND wingc Clear GRAPHICS-WSERV-WindowGc-PublicApi-0049-0001-Clear_command003 - COMMAND win EndRedraw - COMMAND scrdev checkRectColor GRAPHICS-WSERV-WindowGc-PublicApi-0049-0001-checkRectColor_command007 - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0049 - - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0050 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0050 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 24/01/2007 -//! @SYMTestCaseDesc CopyRect(const TPoint &anOffset, const TRect &aRect): copy a rectangle area from the screen into the window -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, -//! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle & DrawRect -//! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush -//! 2. Use RWindow::BeginRedraw(), draw a rectangle ((10,10),(40,40)) -//! then RWindow::EndRedraw() to display the drawing result -//! 3. Execute CopyRect ((0,10),(30,40)) with offset (20,10) -//! i.e. the rectangle ((10,10),(30,40)) area is copied to (20,20)=top-left point(0,10)+offset(20,10) -//! 4. check if the drawing result plus the copy result as expected -//! 5. Deactive RWindow, destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Copy the rectangle area of a window without causing panic -//! 2. the drawing result: rectangle ((10,10),(40,40)) + copy-to rectangle ((20,20),(50,50)) -//! 2.1 the 4 border lines of the drawing rectangle but outside the copy-to rectangle is drawn with the pen color TRgb(0,0,0) -//! from (10,10) to (10,40), from (10,10) to (40,10), from (10,39) to (20,39), from (39,10) to (39,20) -//! 2.2 inside the drawing rectangle but outside the copy-to rectangle is drawn/filled with the brush color TRgb(255,0,0) -//! TRect((11,11),(20,39)), ((20,11),(39,19)) -//! 2.3 inside the copy-to rectangle and copy from original border lines are drawn with the pen color TRgb(0,0,0) -//! from (30,20) to (50,20), from (30,20) to (30,50), from (30,49) to (50,49) -//! 2.4 inside the copy-to rectangle and copy from inner of the drawing rectangle -//! TRect((21,31),(49,49)) is drawn/filled with the brush color TRgb(255,0,0) -//! 2.5 inside the copy-to rectangle and copy from outer of the drawing rectangle -//! TRect((20,20),(30,50)) are not drawn, with the background color TRgb(255,255,255) -//! 2.6 outside both the drawing rectangle and copy-to rectangle is not drawn, with the background color TRgb(255,255,255) -//! TRect((0,0),(10,60)), ((50,0),(60,60)), ((10,0),(50,10)), ((10,50),(50,60)), ((40,10),(50,20)), ((10,40),(20,50)) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 - - COMMAND win BeginRedraw - COMMAND wingc DrawRect GRAPHICS-WSERV-WindowGc-PublicApi-0050-0001-DrawRect_command003 - COMMAND win EndRedraw - COMMAND wingc CopyRect GRAPHICS-WSERV-WindowGc-PublicApi-0050-0001-CopyRect_command007 - COMMAND scrdev checkLineColor GRAPHICS-WSERV-WindowGc-PublicApi-0050-0001-checkLineColor_command009 - COMMAND scrdev checkRectColor GRAPHICS-WSERV-WindowGc-PublicApi-0050-0001-checkRectColor_command010 - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0050 - - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0051 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0051 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 10/01/2007 -//! @SYMTestCaseDesc BitBlt(const TPoint &aPos, const CFbsBitmap *aBitmap): perform a bitmap block transfer -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, -//! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle, CFbsBitmap::Load & SetSizeInTwips -//! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush -//! . New and Load a CFbsBitmap -//! 3. Use RWindow::BeginRedraw() to start a redraw cycle -//! 4. Execute BitBlt to perform a bitmap block transfer to the specified point (10,11) -//! 5. RWindow::EndRedraw() to end the redraw cycle and display the drawing result -//! 6. Deactive RWindow, destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Perform a bitmap block transfer without causing panic -//! 2. the drawing result of bitmap block transfer matched with the bitmap content -//! 2.1 only compare sub-areas of TRect((0,0),(40,40)), ((120,120),(160,160)) within the source rectangle -//! 2.2 check if color of the bitmap pixel is the same as that of associated pixel on the screen -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 - - CREATE_OBJECT CFbsBitmap fbsbmp - COMMAND fbsbmp new - COMMAND fbsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0051-0001-Load_command002 - COMMAND fbsbmp SizeInTwips - COMMAND fbsbmp SizeInPixels - COMMAND fbsbmp DisplayMode - COMMAND win BeginRedraw - COMMAND wingc BitBlt GRAPHICS-WSERV-WindowGc-PublicApi-0051-0001-BitBlt_command009 - COMMAND win EndRedraw - COMMAND fbsbmp ~ - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0051 - - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0052 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0052 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 10/01/2007 -//! @SYMTestCaseDesc BitBlt(const TPoint &aDestination, const CFbsBitmap *aBitmap, const TRect &aSource): perform a bitmap block transfer of a rectangular piece of a bitmap -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, -//! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle, CFbsBitmap::Load & SetSizeInTwips -//! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush -//! 2. New and Load a CFbsBitmap, and SetSizeInTwips to its appropriate size -//! 3. Use RWindow::BeginRedraw() to start a redraw cycle -//! 4. Execute BitBlt to perform a bitmap block transfer of the rectangular piece ((21,20),(101,100)) to the specified point (10,11) -//! 5. RWindow::EndRedraw() to end the redraw cycle and display the drawing result -//! 6. Deactive RWindow, destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Perform a bitmap block transfer of the rectangular piece without causing panic -//! 2. the drawing result of bitmap block transfer matched with the bitmap content -//! 2.1 only compare sub-areas of TRect((0,0),(40,40)), ((40,40),(80,80)) within the source rectangle -//! 2.2 check if color of the bitmap pixel is the same as that of associated pixel on the screen -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 - - CREATE_OBJECT CFbsBitmap fbsbmp - COMMAND fbsbmp new - COMMAND fbsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0052-0001-Load_command002 - COMMAND fbsbmp SizeInTwips - COMMAND fbsbmp SizeInPixels - COMMAND fbsbmp DisplayMode - COMMAND win BeginRedraw - COMMAND wingc BitBlt GRAPHICS-WSERV-WindowGc-PublicApi-0052-0001-BitBlt_command009 - COMMAND win EndRedraw - COMMAND fbsbmp ~ - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0052 - - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0053 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0053 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 31/01/2007 -//! @SYMTestCaseDesc BitBltMasked(const TPoint &aPoint, const CFbsBitmap *aBitmap, const TRect &aSourceRect, const CFbsBitmap *aMaskBitmap, TBool aInvertMask): perform a masked bitmap block transfer of a rectangular piece of a bitmap -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, -//! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle, CFbsBitmap::Load -//! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush -//! 2. New and Load a source CFbsBitmap and a mask CFbsBitmap -//! 3. Use RWindow::BeginRedraw() to start a redraw cycle -//! 4. Execute BitBltMasked to perform a masked bitmap block transfer of the rectangular piece ((0,0),(180,180)) to the specified point (10,11) -//! 5. RWindow::EndRedraw() to end the redraw cycle and display the drawing result -//! 6. Deactive RWindow, destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Perform a masked bitmap block transfer of the rectangular piece without causing panic -//! 2. the drawing result of masked bitmap block transfer matched with the bitmap content -//! 2.1 only compare sub-areas of TRect((40,40),(60,60)), ((140,40),(160,60)), ((40,140),(60,160)), ((140,140),(160,160)) within the source rectangle -//! 2.2 if the bitmap pixel is not masked, check if its color is that of associated pixel on the screen -//! 2.3 if the bitmap pixel is masked, check if it's drawn with the brush color TRgb(255,0,0) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 - - CREATE_OBJECT CFbsBitmap fbsbmp - CREATE_OBJECT CFbsBitmap fbsmaskbmp - COMMAND fbsbmp new - COMMAND fbsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0053-0001-Load_command002 - COMMAND fbsbmp SizeInTwips - COMMAND fbsbmp SizeInPixels - COMMAND fbsbmp DisplayMode - COMMAND fbsmaskbmp new - COMMAND fbsmaskbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0053-0001-Load_command008 - COMMAND win BeginRedraw - COMMAND wingc BitBltMasked GRAPHICS-WSERV-WindowGc-PublicApi-0053-0001-BitBltMasked_command012 - COMMAND win EndRedraw - COMMAND fbsbmp ~ - COMMAND fbsmaskbmp ~ - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0053 - - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0054 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0054 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 11/01/2007 -//! @SYMTestCaseDesc BitBlt(const TPoint &aPoint, const CWsBitmap *aBitmap): perform a bitmap block transfer on a CWsBitmap -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, -//! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle, CWsBitmap::Load -//! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush -//! 2. New and Load a CWsBitmap -//! 3. Use RWindow::BeginRedraw() to start a redraw cycle -//! 4. Execute BitBlt to perform a bitmap block transfer of the CWsBitmap to point (10,11) -//! 5. RWindow::EndRedraw() to end the redraw cycle and display the drawing result -//! 6. Deactive RWindow, destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Perform a bitmap block transfer of CWsBitmap without causing panic -//! 2. the drawing result of bitmap block transfer matched with the bitmap content -//! 2.1 only compare sub-areas of TRect((0,0),(40,40)), ((120,120),(160,160)) within the source rectangle -//! 2.2 check if color of the bitmap pixel is the same as that of associated pixel on the screen -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 - - CREATE_OBJECT CWsBitmap wsbmp - COMMAND wsbmp new GRAPHICS-WSERV-WindowGc-PublicApi-0054-0001-new_command001 - COMMAND wsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0054-0001-Load_command002 - COMMAND win BeginRedraw - COMMAND wingc BitBlt GRAPHICS-WSERV-WindowGc-PublicApi-0054-0001-BitBlt_command006 - COMMAND win EndRedraw - COMMAND wsbmp ~ - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0054 - - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0055 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0055 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 11/01/2007 -//! @SYMTestCaseDesc BitBlt(const TPoint &aDestination, const CWsBitmap *aBitmap, const TRect &aSource): perform a CWsBitmap block transfer of a rectangular piece of a bitmap -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, -//! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle, CWsBitmap::Load -//! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush -//! 2. New and Load a CWsBitmap -//! 3. Use RWindow::BeginRedraw() to start a redraw cycle -//! 4. Execute BitBlt to perform a CWsBitmap block transfer of the rectangular piece ((21,20),(101,100)) to the specified point (10,11) -//! 5. RWindow::EndRedraw() to end the redraw cycle and display the drawing result -//! 6. Deactive RWindow, destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Perform a bitmap block transfer of the rectangular piece without causing panic -//! 2. the drawing result of bitmap block transfer matched with the bitmap content -//! 2.1 only compare sub-areas of TRect((0,0),(40,40)), ((40,40),(80,80)) within the source rectangle -//! 2.2 check if color of the bitmap pixel is the same as that of associated pixel on the screen -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 - - CREATE_OBJECT CWsBitmap wsbmp - COMMAND wsbmp new GRAPHICS-WSERV-WindowGc-PublicApi-0055-0001-new_command001 - COMMAND wsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0055-0001-Load_command002 - COMMAND win BeginRedraw - COMMAND wingc BitBlt GRAPHICS-WSERV-WindowGc-PublicApi-0055-0001-BitBlt_command006 - COMMAND win EndRedraw - COMMAND wsbmp ~ - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0055 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0056 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0056 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 31/01/2007 -//! @SYMTestCaseDesc BitBltMasked(const TPoint &aPoint, const CWsBitmap *aBitmap, const TRect &aSourceRect, const CWsBitmap *aMaskBitmap, TBool aInvertMask): perform a masked CWsBitmap block transfer of a rectangular piece of a bitmap -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, -//! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle, CWsBitmap::Load -//! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush -//! 2. New and Load a source CWsBitmap and a mask CWsBitmap -//! 3. Use RWindow::BeginRedraw() to start a redraw cycle -//! 4. Execute BitBltMasked to perform a masked CWsBitmap block transfer of the rectangular piece ((0,0),(180,180)) to the specified point (10,11) -//! 5. RWindow::EndRedraw() to end the redraw cycle and display the drawing result -//! 6. Deactive RWindow, destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Perform a masked bitmap block transfer of the rectangular piece without causing panic -//! 2. the drawing result of masked bitmap block transfer matched with the bitmap content -//! 2.1 only compare sub-areas of TRect((40,40),(60,60)), ((140,40),(160,60)), ((40,140),(60,160)), ((140,140),(160,160)) within the source rectangle -//! 2.2 if the bitmap pixel is not masked, check if its color is that of associated pixel on the screen -//! 2.3 if the bitmap pixel is masked, check if it's drawn with the brush color TRgb(255,0,0) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 - - CREATE_OBJECT CWsBitmap wsbmp - CREATE_OBJECT CWsBitmap wsmaskbmp - COMMAND wsbmp new GRAPHICS-WSERV-WindowGc-PublicApi-0056-0001-new_command001 - COMMAND wsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0056-0001-Load_command002 - COMMAND wsmaskbmp new GRAPHICS-WSERV-WindowGc-PublicApi-0056-0001-new_command004 - COMMAND wsmaskbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0056-0001-Load_command005 - COMMAND win BeginRedraw - COMMAND wingc BitBltMasked GRAPHICS-WSERV-WindowGc-PublicApi-0056-0001-BitBltMasked_command009 - COMMAND win EndRedraw - COMMAND wsbmp ~ - COMMAND wsmaskbmp ~ - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0056 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0061 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0061 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 05/01/2007 -//! @SYMTestCaseDesc SetClippingRegion(const TRegion &aRegion): set a clipping region to display -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, -//! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle & DrawRect -//! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush -//! 2. Use RWindow::BeginRedraw() to start a redraw cycle -//! 3. Execute SetClippingRegion to set a clipping region of TRect((10,10),(20,20)) ((40,10),(50,20)) ((20,20),(40,40)) ((10,40),(20,50)) ((40,40),(50,50)) -//! 4. Use DrawRect to draw and fill rectangle ((10,10),(50,50)) (with part inside and part outside the ClippingRegion) -//! 5. RWindow::EndRedraw() and check if drawing result as expected -//! only drawing in the ClippingRegion and not drawn outside the ClippingRegion -//! 6. Deactive RWindow, destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. CWindowGc::SetClippingRegion() method return KErrNone without causing panic -//! 2. the drawing result of testaction 3 & 4 -//! 2.1 the rectangle border lines within ClippingRect is drawn with the pen color TRgb(0,0,0) -//! from (10,10) to (20,10), from (40,10) to (50,10), from (10,10) to (10,20), from (10,40) to (10,50), from (10,49) to (20,49), from (40,49) to (50,49), from (49,10) to (49,20), from (49,40) to (49,50) -//! 2.2 the rectangle area within ClippingRegion and inside the drawing rectangle is drawn/filled with the brush color TRgb(255,0,0) -//! TRect((11,11),(20,20)), ((40,11),(49,20)), ((20,20),(40,40)), ((11,40),(20,49)), ((40,40),(49,49)) -//! 2.3 the rectangle area outside ClippingRegion but inside the drawing rectangle is not drawn, with the background color TRgb(255,255,255) -//! TRect((20,0),(40,20)), ((10,20),(20,40)), ((40,20),(50,40)), ((20,40),(40,49)) -//! 2.4 the rectangle area ((0,0),(10,60)),((50,0),(60,60)), ((10,0),(50,10)), ((10,50),(50,60)) -//! outside (left, right, top, bottom of) the ClippingRegion and the drawing rectangle is not drawn, with the background color TRgb(255,255,255) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 - - COMMAND win BeginRedraw - COMMAND wingc SetClippingRegion GRAPHICS-WSERV-WindowGc-PublicApi-0061-0001-SetClippingRegion_command003 - COMMAND wingc DrawRect GRAPHICS-WSERV-WindowGc-PublicApi-0061-0001-DrawRect_command004 - COMMAND win EndRedraw - COMMAND scrdev checkLineColor GRAPHICS-WSERV-WindowGc-PublicApi-0061-0001-checkLineColor_command008 - COMMAND scrdev checkRectColor GRAPHICS-WSERV-WindowGc-PublicApi-0061-0001-checkRectColor_command009 - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0061 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0062 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0062 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 05/01/2007 -//! @SYMTestCaseDesc CancelClippingRegion(): cancel the clipping region -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, -//! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle & DrawRect & SetClippingRegion -//! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush -//! 2. Use RWindow::BeginRedraw() to start a redraw cycle -//! 3. Use SetClippingRegion to set a clipping region of TRect((10,10),(20,20)) ((40,10),(50,20)) ((20,20),(40,40)) ((10,40),(20,50)) ((40,40),(50,50)) -//! 4. Execute CancelClippingRegion to cancel the clipping region -//! 5. Use DrawRect to draw and fill rectangle ((10,10),(50,50)) (with part inside and part outside the canceled clipping region) -//! 6. RWindow::EndRedraw() and check if drawing result as expected -//! the whole drawing result in testaction 5 is displayed as the ClippingRegion is canceled -//! 7. Deactive RWindow, destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. CWindowGc::CancelClippingRegion() method calls without causing panic -//! 2. the drawing result should be exactly the drawing rectangle in testaction 5 -//! 2.1 the whole border lines of the drawing rectangle (testaction 5) is drawn with the pen color TRgb(0,0,0) -//! from (10,10) to (50,10), from (49,10) to (49,50), from (10,10) to (10,50), from (10,49) to (50,49) -//! 2.2 inside the drawing rectangle ((11,11),(49,49)) is drawn/filled with the brush color TRgb(255,0,0) -//! 2.3 the rectangle area ((0,0),(10,60)), ((50,0),(60,60)),((10,0),(50,10)), ((10,50),(50,60)) -//! outside (left, right, top, bottom of) the drawing rectangle is not drawn, with the background color TRgb(255,255,255) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 - - COMMAND win BeginRedraw - COMMAND wingc SetClippingRegion GRAPHICS-WSERV-WindowGc-PublicApi-0062-0001-SetClippingRegion_command003 - COMMAND wingc CancelClippingRegion - COMMAND wingc DrawRect GRAPHICS-WSERV-WindowGc-PublicApi-0062-0001-DrawRect_command005 - COMMAND win EndRedraw - COMMAND scrdev checkLineColor GRAPHICS-WSERV-WindowGc-PublicApi-0062-0001-checkLineColor_command009 - COMMAND scrdev checkRectColor GRAPHICS-WSERV-WindowGc-PublicApi-0062-0001-checkRectColor_command010 - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0062 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0066 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0066 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 22/03/2007 -//! @SYMTestCaseDesc AlphaBlendBitmaps(const TPoint &aDestPt, const CFbsBitmap *aSrcBmp, const TRect &aSrcRect, const CFbsBitmap *aAlphaBmp, const TPoint &aAlphaPt): -//! perform an alpha blending of the source CFbsBitmap, with the window, using alpha CFbsBitmap as the alpha blending factor -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct, CWindowGc::Construct -//! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush -//! 2. New and Load a source CFbsBitmap and a alpha CFbsBitmap -//! 3. Use RWindow::BeginRedraw() to start a redraw cycle -//! 4. Execute AlphaBlendBitmaps to perform alpha blending of the source CFbsBitmap, with the window, using alpha CFbsBitmap as the alpha blending factor -//! 5. RWindow::EndRedraw() and check if drawing result as expected -//! !!! Note: the rule to check alpha blending still needs to be confirmed -//! 6. Deactive RWindow, destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. CWindowGc::AlphaBlendBitmaps() returns KErrNone without causing panic -//! 2. the drawing result should be match the alpha blending rule -//! only check subareas within the source rectangle: TRect((0,0),(100,20)) ((0,80),(100,100)) -//! 2.1 the source (S) is the source bitmap within the specified source rectangle ((0,0),(183,183)) -//! 2.2 the window (W) is simply the default background color TRgb(255,255,255) -//! 2.3 the alpha blending factor (A) is from the color of associated point relative to the alpha bitmap -//! Note: the alpha bitmap must be the display mode of Gray level, and the conversion value to Gray256 is the alpha factor -//! 2.4 calculate alpha blending by (S * A + W * (255 - A)) / 255, and for red, green, blue respectively -//! the expected result is mapping the calculated result to the display mode of the screen device -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 - - CREATE_OBJECT CFbsBitmap fbsbmp - CREATE_OBJECT CFbsBitmap fbsalphabmp - COMMAND fbsbmp new - COMMAND fbsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0066-0001-Load_command002 - COMMAND fbsbmp SizeInPixels - COMMAND fbsbmp DisplayMode - COMMAND fbsalphabmp new - COMMAND fbsalphabmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0066-0001-Load_command007 - COMMAND fbsalphabmp SizeInPixels - COMMAND fbsalphabmp DisplayMode - COMMAND win BeginRedraw - COMMAND wingc AlphaBlendBitmaps GRAPHICS-WSERV-WindowGc-PublicApi-0066-0001-AlphaBlendBitmaps_command013 - COMMAND win EndRedraw - COMMAND fbsbmp ~ - COMMAND fbsalphabmp ~ - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0066 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0067 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0067 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 22/03/2007 -//! @SYMTestCaseDesc AlphaBlendBitmaps(const TPoint &aDestPt, const CWsBitmap *aSrcBmp, const TRect &aSrcRect, const CWsBitmap *aAlphaBmp, const TPoint &aAlphaPt): -//! perform an alpha blending of the source CWsBitmap, with the window, using alpha CWsBitmap as the alpha blending factor -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct, CWindowGc::Construct -//! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush -//! 2. New and Load a source CWsBitmap and a alpha CWsBitmap -//! 3. Use RWindow::BeginRedraw() to start a redraw cycle -//! 4. Execute AlphaBlendBitmaps to perform alpha blending of the source CWsBitmap, with the window, using alpha CWsBitmap as the alpha blending factor -//! 5. RWindow::EndRedraw() and check if drawing result as expected -//! !!! Note: the rule to check alpha blending still needs to be confirmed -//! 6. Deactive RWindow, destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. CWindowGc::AlphaBlendBitmaps() returns KErrNone without causing panic -//! 2. the drawing result should be match the alpha blending rule -//! only check subareas within the source rectangle: TRect((0,0),(100,20)) ((0,80),(100,100)) -//! 2.1 the source (S) is the source bitmap within the specified source rectangle ((0,0),(183,183)) -//! 2.2 the window (W) is simply the default background color TRgb(255,255,255) -//! 2.3 the alpha blending factor (A) is from the color of associated point relative to the alpha bitmap -//! Note: the alpha bitmap must be the display mode of Gray level, and the conversion value to Gray256 is the alpha factor -//! 2.4 calculate alpha blending by (S * A + W * (255 - A)) / 255, and for red, green, blue respectively -//! the expected result is mapping the calculated result to the display mode of the screen device -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 - - CREATE_OBJECT CWsBitmap wsbmp - CREATE_OBJECT CWsBitmap wsalphabmp - COMMAND wsbmp new GRAPHICS-WSERV-WindowGc-PublicApi-0067-0001-new_command001 - COMMAND wsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0067-0001-Load_command002 - COMMAND wsalphabmp new GRAPHICS-WSERV-WindowGc-PublicApi-0067-0001-new_command004 - COMMAND wsalphabmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0067-0001-Load_command005 - COMMAND win BeginRedraw - COMMAND wingc AlphaBlendBitmaps GRAPHICS-WSERV-WindowGc-PublicApi-0067-0001-AlphaBlendBitmaps_command009 - COMMAND win EndRedraw - COMMAND wsbmp ~ - COMMAND wsalphabmp ~ - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0067 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0068 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0068 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 15/02/2007 -//! @SYMTestCaseDesc DrawWsGraphic(const TWsGraphicId &aId, const TRect &aDestRect): draw an abstract artwork -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, -//! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle, CFbsBitmap::Load, CWsGraphicBitmap::NewL -//! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush -//! 2. New and Load a source CFbsBitmap and a mask CFbsBitmap -//! and use them to create a non-transcient artwork CWsGraphicBitmap -//! 3. Use RWindow::BeginRedraw() to start a redraw cycle -//! 4. Execute DrawWsGraphic to draw the non-transcient artwork (with its id) and within the specified TRect -//! 5. RWindow::EndRedraw() and check if drawing result as expected -//! 6. Deactive RWindow, destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. CWindowGc::DrawWsGraphic() method calls without causing panic -//! 2. the drawing result of the graphic matched with the masked bitmap content -//! 2.1 Only compare sub-areas within the source rectangle -//! TRect((0,0),(10,10)), ((90,0),(100,10)), ((0,90),(10,100)), ((90,90),(100,100)), ((45,45),(55,55)) -//! 2.2 if the bitmap pixel is not masked, check if its color is that of associated pixel on the screen -//! 2.3 if the bitmap pixel is masked, check if it's drawn with the brush color TRgb(255,0,0) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 - - CREATE_OBJECT CFbsBitmap fbsbmp - CREATE_OBJECT CFbsBitmap fbsmaskbmp - CREATE_OBJECT CWsGraphicBitmap wsgraph - COMMAND fbsbmp new - COMMAND fbsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0068-0001-Load_command002 - COMMAND fbsmaskbmp new - COMMAND fbsmaskbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0068-0001-Load_command005 - COMMAND wsgraph NewL GRAPHICS-WSERV-WindowGc-PublicApi-0068-0001-NewL_command007 - COMMAND win BeginRedraw - COMMAND wingc DrawWsGraphic GRAPHICS-WSERV-WindowGc-PublicApi-0068-0001-DrawWsGraphic_command011 - COMMAND win EndRedraw - COMMAND wsgraph Destroy - COMMAND fbsbmp ~ - COMMAND fbsmaskbmp ~ - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0068 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0069 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0069 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 15/02/2007 -//! @SYMTestCaseDesc DrawWsGraphic(const TWsGraphicId &aId, const TRect &aDestRect, const TDesC8 &aData): draw an abstract artwork with attached data buffer -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, -//! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle, CFbsBitmap::Load, CWsGraphicBitmap::NewL, RWsGraphicMsgBuf::new -//! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush -//! 2. New and Load a source CFbsBitmap and a mask CFbsBitmap -//! and use them to create a non-transcient artwork CWsGraphicBitmap -//! 3. New RWsGraphicMsgBuf to be attached to CWindowGc::DrawWsGraphic -//! !!! Note: actually the data buffer is empty -//! 4. Use RWindow::BeginRedraw() to start a redraw cycle -//! 5. Execute DrawWsGraphic to draw the non-transcient artwork (with its id and attached data buffer) and within the specified TRect -//! 6. RWindow::EndRedraw() and check if drawing result as expected -//! 7. Deactive RWindow, destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. CWindowGc::DrawWsGraphic() method with attached buufer calls without causing panic -//! 2. the drawing result of the graphic matched with the masked bitmap content -//! 2.1 only compare sub-areas within the source rectangle -//! TRect((0,0),(10,10)), ((90,0),(100,10)), ((0,90),(10,100)), ((90,90),(100,100)), ((45,45),(55,55)) -//! 2.2 if the bitmap pixel is not masked, check if its color is that of associated pixel on the screen -//! 2.3 if the bitmap pixel is masked, check if it's drawn with the brush color TRgb(255,0,0) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 - - CREATE_OBJECT CFbsBitmap fbsbmp - CREATE_OBJECT CFbsBitmap fbsmaskbmp - CREATE_OBJECT CWsGraphicBitmap wsgraph - CREATE_OBJECT RWsGraphicMsgBuf wsgraphmsg - COMMAND fbsbmp new - COMMAND fbsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0069-0001-Load_command002 - COMMAND fbsmaskbmp new - COMMAND fbsmaskbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0069-0001-Load_command005 - COMMAND wsgraph NewL GRAPHICS-WSERV-WindowGc-PublicApi-0069-0001-NewL_command007 - COMMAND wsgraphmsg new - COMMAND win BeginRedraw - COMMAND wingc DrawWsGraphic GRAPHICS-WSERV-WindowGc-PublicApi-0069-0001-DrawWsGraphic_command013 - COMMAND win EndRedraw - COMMAND wsgraph Destroy - COMMAND fbsbmp ~ - COMMAND fbsmaskbmp ~ - COMMAND wsgraphmsg Close - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0069 - - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0071 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0071 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 10/01/2007 -//! @SYMTestCaseDesc BitBlt(const TPoint &aPos, const CFbsBitmap *aBitmap): perform a bitmap block transfer -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, -//! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle, CFbsBitmap::Load & SetSizeInTwips -//! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush -//! . New and Load a CFbsBitmap -//! 3. Use RWindow::BeginRedraw() to start a redraw cycle -//! 4. Execute BitBlt to perform a bitmap block transfer to the specified point (10,11) -//! 5. RWindow::EndRedraw() to end the redraw cycle and display the drawing result -//! 6. Deactive RWindow, destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Perform a bitmap block transfer without causing panic -//! 2. the drawing result of bitmap block transfer matched with the bitmap content -//! 2.1 only compare sub-areas of TRect((0,0),(40,40)), ((120,120),(160,160)) within the source rectangle -//! 2.2 check if color of the bitmap pixel is the same as that of associated pixel on the screen -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 - - CREATE_OBJECT CFbsBitmap fbsbmp - COMMAND win BeginRedraw - COMMAND wingc BitBlt GRAPHICS-WSERV-WindowGc-PublicApi-0051-0001-BitBlt_command009 - COMMAND win EndRedraw - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0071 - - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0072 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0072 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 10/01/2007 -//! @SYMTestCaseDesc BitBlt(const TPoint &aDestination, const CFbsBitmap *aBitmap, const TRect &aSource): perform a bitmap block transfer of a rectangular piece of a bitmap -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, -//! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle, CFbsBitmap::Load & SetSizeInTwips -//! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush -//! 2. New and Load a CFbsBitmap, and SetSizeInTwips to its appropriate size -//! 3. Use RWindow::BeginRedraw() to start a redraw cycle -//! 4. Execute BitBlt to perform a bitmap block transfer of the rectangular piece ((21,20),(101,100)) to the specified point (10,11) -//! 5. RWindow::EndRedraw() to end the redraw cycle and display the drawing result -//! 6. Deactive RWindow, destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Perform a bitmap block transfer of the rectangular piece without causing panic -//! 2. the drawing result of bitmap block transfer matched with the bitmap content -//! 2.1 only compare sub-areas of TRect((0,0),(40,40)), ((40,40),(80,80)) within the source rectangle -//! 2.2 check if color of the bitmap pixel is the same as that of associated pixel on the screen -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 - - CREATE_OBJECT CFbsBitmap fbsbmp - COMMAND win BeginRedraw - COMMAND wingc BitBlt GRAPHICS-WSERV-WindowGc-PublicApi-0052-0001-BitBlt_command009 - COMMAND win EndRedraw - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0072 - - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0073 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0073 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 31/01/2007 -//! @SYMTestCaseDesc BitBltMasked(const TPoint &aPoint, const CFbsBitmap *aBitmap, const TRect &aSourceRect, const CFbsBitmap *aMaskBitmap, TBool aInvertMask): perform a masked bitmap block transfer of a rectangular piece of a bitmap -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, -//! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle, CFbsBitmap::Load -//! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush -//! 2. New and Load a source CFbsBitmap and a mask CFbsBitmap -//! 3. Use RWindow::BeginRedraw() to start a redraw cycle -//! 4. Execute BitBltMasked to perform a masked bitmap block transfer of the rectangular piece ((0,0),(180,180)) to the specified point (10,11) -//! 5. RWindow::EndRedraw() to end the redraw cycle and display the drawing result -//! 6. Deactive RWindow, destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Perform a masked bitmap block transfer of the rectangular piece without causing panic -//! 2. the drawing result of masked bitmap block transfer matched with the bitmap content -//! 2.1 only compare sub-areas of TRect((40,40),(60,60)), ((140,40),(160,60)), ((40,140),(60,160)), ((140,140),(160,160)) within the source rectangle -//! 2.2 if the bitmap pixel is not masked, check if its color is that of associated pixel on the screen -//! 2.3 if the bitmap pixel is masked, check if it's drawn with the brush color TRgb(255,0,0) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 - - CREATE_OBJECT CFbsBitmap fbsbmp - CREATE_OBJECT CFbsBitmap fbsmaskbmp - COMMAND fbsmaskbmp new - COMMAND fbsmaskbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0053-0001-Load_command008 - COMMAND win BeginRedraw - COMMAND wingc BitBltMasked GRAPHICS-WSERV-WindowGc-PublicApi-0053-0001-BitBltMasked_command012 - COMMAND win EndRedraw - COMMAND fbsmaskbmp ~ - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0073 - - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0074 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0074 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 11/01/2007 -//! @SYMTestCaseDesc BitBlt(const TPoint &aPoint, const CWsBitmap *aBitmap): perform a bitmap block transfer on a CWsBitmap -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, -//! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle, CWsBitmap::Load -//! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush -//! 2. New and Load a CWsBitmap -//! 3. Use RWindow::BeginRedraw() to start a redraw cycle -//! 4. Execute BitBlt to perform a bitmap block transfer of the CWsBitmap to point (10,11) -//! 5. RWindow::EndRedraw() to end the redraw cycle and display the drawing result -//! 6. Deactive RWindow, destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Perform a bitmap block transfer of CWsBitmap without causing panic -//! 2. the drawing result of bitmap block transfer matched with the bitmap content -//! 2.1 only compare sub-areas of TRect((0,0),(40,40)), ((120,120),(160,160)) within the source rectangle -//! 2.2 check if color of the bitmap pixel is the same as that of associated pixel on the screen -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 - - CREATE_OBJECT CWsBitmap wsbmp - COMMAND win BeginRedraw - COMMAND wingc BitBlt GRAPHICS-WSERV-WindowGc-PublicApi-0054-0001-BitBlt_command006 - COMMAND win EndRedraw - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0074 - - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0075 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0075 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 11/01/2007 -//! @SYMTestCaseDesc BitBlt(const TPoint &aDestination, const CWsBitmap *aBitmap, const TRect &aSource): perform a CWsBitmap block transfer of a rectangular piece of a bitmap -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, -//! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle, CWsBitmap::Load -//! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush -//! 2. New and Load a CWsBitmap -//! 3. Use RWindow::BeginRedraw() to start a redraw cycle -//! 4. Execute BitBlt to perform a CWsBitmap block transfer of the rectangular piece ((21,20),(101,100)) to the specified point (10,11) -//! 5. RWindow::EndRedraw() to end the redraw cycle and display the drawing result -//! 6. Deactive RWindow, destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Perform a bitmap block transfer of the rectangular piece without causing panic -//! 2. the drawing result of bitmap block transfer matched with the bitmap content -//! 2.1 only compare sub-areas of TRect((0,0),(40,40)), ((40,40),(80,80)) within the source rectangle -//! 2.2 check if color of the bitmap pixel is the same as that of associated pixel on the screen -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 - - CREATE_OBJECT CWsBitmap wsbmp - COMMAND win BeginRedraw - COMMAND wingc BitBlt GRAPHICS-WSERV-WindowGc-PublicApi-0055-0001-BitBlt_command006 - COMMAND win EndRedraw - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0075 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0076 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0076 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 31/01/2007 -//! @SYMTestCaseDesc BitBltMasked(const TPoint &aPoint, const CWsBitmap *aBitmap, const TRect &aSourceRect, const CWsBitmap *aMaskBitmap, TBool aInvertMask): perform a masked CWsBitmap block transfer of a rectangular piece of a bitmap -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, -//! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle, CWsBitmap::Load -//! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush -//! 2. New and Load a source CWsBitmap and a mask CWsBitmap -//! 3. Use RWindow::BeginRedraw() to start a redraw cycle -//! 4. Execute BitBltMasked to perform a masked CWsBitmap block transfer of the rectangular piece ((0,0),(180,180)) to the specified point (10,11) -//! 5. RWindow::EndRedraw() to end the redraw cycle and display the drawing result -//! 6. Deactive RWindow, destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Perform a masked bitmap block transfer of the rectangular piece without causing panic -//! 2. the drawing result of masked bitmap block transfer matched with the bitmap content -//! 2.1 only compare sub-areas of TRect((40,40),(60,60)), ((140,40),(160,60)), ((40,140),(60,160)), ((140,140),(160,160)) within the source rectangle -//! 2.2 if the bitmap pixel is not masked, check if its color is that of associated pixel on the screen -//! 2.3 if the bitmap pixel is masked, check if it's drawn with the brush color TRgb(255,0,0) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 - - CREATE_OBJECT CWsBitmap wsbmp - CREATE_OBJECT CWsBitmap wsmaskbmp - COMMAND wsmaskbmp new GRAPHICS-WSERV-WindowGc-PublicApi-0056-0001-new_command004 - COMMAND wsmaskbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0056-0001-Load_command005 - COMMAND win BeginRedraw - COMMAND wingc BitBltMasked GRAPHICS-WSERV-WindowGc-PublicApi-0056-0001-BitBltMasked_command009 - COMMAND win EndRedraw - COMMAND wsmaskbmp ~ - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0076 - - - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0081 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0081 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 10/01/2007 -//! @SYMTestCaseDesc BitBlt(const TPoint &aPos, const CFbsBitmap *aBitmap): perform a bitmap block transfer -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, -//! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle, CFbsBitmap::Load & SetSizeInTwips -//! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush -//! . New and Load a CFbsBitmap -//! 3. Use RWindow::BeginRedraw() to start a redraw cycle -//! 4. Execute BitBlt to perform a bitmap block transfer to the specified point (10,11) -//! 5. RWindow::EndRedraw() to end the redraw cycle and display the drawing result -//! 6. Deactive RWindow, destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Perform a bitmap block transfer without causing panic -//! 2. the drawing result of bitmap block transfer matched with the bitmap content -//! 2.1 only compare sub-areas of TRect((0,0),(40,40)), ((120,120),(160,160)) within the source rectangle -//! 2.2 check if color of the bitmap pixel is the same as that of associated pixel on the screen -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 - - CREATE_OBJECT CFbsBitmap fbsbmp - COMMAND fbsbmp new - COMMAND win BeginRedraw - COMMAND wingc BitBlt GRAPHICS-WSERV-WindowGc-PublicApi-0051-0001-BitBlt_command009 - COMMAND win EndRedraw - COMMAND fbsbmp ~ - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0081 - - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0082 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0082 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 10/01/2007 -//! @SYMTestCaseDesc BitBlt(const TPoint &aDestination, const CFbsBitmap *aBitmap, const TRect &aSource): perform a bitmap block transfer of a rectangular piece of a bitmap -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, -//! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle, CFbsBitmap::Load & SetSizeInTwips -//! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush -//! 2. New and Load a CFbsBitmap, and SetSizeInTwips to its appropriate size -//! 3. Use RWindow::BeginRedraw() to start a redraw cycle -//! 4. Execute BitBlt to perform a bitmap block transfer of the rectangular piece ((21,20),(101,100)) to the specified point (10,11) -//! 5. RWindow::EndRedraw() to end the redraw cycle and display the drawing result -//! 6. Deactive RWindow, destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Perform a bitmap block transfer of the rectangular piece without causing panic -//! 2. the drawing result of bitmap block transfer matched with the bitmap content -//! 2.1 only compare sub-areas of TRect((0,0),(40,40)), ((40,40),(80,80)) within the source rectangle -//! 2.2 check if color of the bitmap pixel is the same as that of associated pixel on the screen -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 - - CREATE_OBJECT CFbsBitmap fbsbmp - COMMAND fbsbmp new - COMMAND win BeginRedraw - COMMAND wingc BitBlt GRAPHICS-WSERV-WindowGc-PublicApi-0052-0001-BitBlt_command009 - COMMAND win EndRedraw - COMMAND fbsbmp ~ - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0082 - - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0083 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0083 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 31/01/2007 -//! @SYMTestCaseDesc BitBltMasked(const TPoint &aPoint, const CFbsBitmap *aBitmap, const TRect &aSourceRect, const CFbsBitmap *aMaskBitmap, TBool aInvertMask): perform a masked bitmap block transfer of a rectangular piece of a bitmap -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, -//! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle, CFbsBitmap::Load -//! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush -//! 2. New and Load a source CFbsBitmap and a mask CFbsBitmap -//! 3. Use RWindow::BeginRedraw() to start a redraw cycle -//! 4. Execute BitBltMasked to perform a masked bitmap block transfer of the rectangular piece ((0,0),(180,180)) to the specified point (10,11) -//! 5. RWindow::EndRedraw() to end the redraw cycle and display the drawing result -//! 6. Deactive RWindow, destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Perform a masked bitmap block transfer of the rectangular piece without causing panic -//! 2. the drawing result of masked bitmap block transfer matched with the bitmap content -//! 2.1 only compare sub-areas of TRect((40,40),(60,60)), ((140,40),(160,60)), ((40,140),(60,160)), ((140,140),(160,160)) within the source rectangle -//! 2.2 if the bitmap pixel is not masked, check if its color is that of associated pixel on the screen -//! 2.3 if the bitmap pixel is masked, check if it's drawn with the brush color TRgb(255,0,0) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 - - CREATE_OBJECT CFbsBitmap fbsbmp - CREATE_OBJECT CFbsBitmap fbsmaskbmp - COMMAND fbsbmp new - COMMAND fbsmaskbmp new - COMMAND fbsmaskbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0053-0001-Load_command008 - COMMAND win BeginRedraw - COMMAND wingc BitBltMasked GRAPHICS-WSERV-WindowGc-PublicApi-0053-0001-BitBltMasked_command012 - COMMAND win EndRedraw - COMMAND fbsbmp ~ - COMMAND fbsmaskbmp ~ - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0083 - - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0084 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0084 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 11/01/2007 -//! @SYMTestCaseDesc BitBlt(const TPoint &aPoint, const CWsBitmap *aBitmap): perform a bitmap block transfer on a CWsBitmap -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, -//! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle, CWsBitmap::Load -//! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush -//! 2. New and Load a CWsBitmap -//! 3. Use RWindow::BeginRedraw() to start a redraw cycle -//! 4. Execute BitBlt to perform a bitmap block transfer of the CWsBitmap to point (10,11) -//! 5. RWindow::EndRedraw() to end the redraw cycle and display the drawing result -//! 6. Deactive RWindow, destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Perform a bitmap block transfer of CWsBitmap without causing panic -//! 2. the drawing result of bitmap block transfer matched with the bitmap content -//! 2.1 only compare sub-areas of TRect((0,0),(40,40)), ((120,120),(160,160)) within the source rectangle -//! 2.2 check if color of the bitmap pixel is the same as that of associated pixel on the screen -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 - - CREATE_OBJECT CWsBitmap wsbmp - COMMAND wsbmp new GRAPHICS-WSERV-WindowGc-PublicApi-0054-0001-new_command001 - COMMAND win BeginRedraw - COMMAND wingc BitBlt GRAPHICS-WSERV-WindowGc-PublicApi-0054-0001-BitBlt_command006 - COMMAND win EndRedraw - COMMAND wsbmp ~ - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0084 - - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0085 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0085 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 11/01/2007 -//! @SYMTestCaseDesc BitBlt(const TPoint &aDestination, const CWsBitmap *aBitmap, const TRect &aSource): perform a CWsBitmap block transfer of a rectangular piece of a bitmap -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, -//! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle, CWsBitmap::Load -//! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush -//! 2. New and Load a CWsBitmap -//! 3. Use RWindow::BeginRedraw() to start a redraw cycle -//! 4. Execute BitBlt to perform a CWsBitmap block transfer of the rectangular piece ((21,20),(101,100)) to the specified point (10,11) -//! 5. RWindow::EndRedraw() to end the redraw cycle and display the drawing result -//! 6. Deactive RWindow, destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Perform a bitmap block transfer of the rectangular piece without causing panic -//! 2. the drawing result of bitmap block transfer matched with the bitmap content -//! 2.1 only compare sub-areas of TRect((0,0),(40,40)), ((40,40),(80,80)) within the source rectangle -//! 2.2 check if color of the bitmap pixel is the same as that of associated pixel on the screen -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 - - CREATE_OBJECT CWsBitmap wsbmp - COMMAND wsbmp new GRAPHICS-WSERV-WindowGc-PublicApi-0055-0001-new_command001 - COMMAND win BeginRedraw - COMMAND wingc BitBlt GRAPHICS-WSERV-WindowGc-PublicApi-0055-0001-BitBlt_command006 - COMMAND win EndRedraw - COMMAND wsbmp ~ - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0085 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0086 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0086 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 31/01/2007 -//! @SYMTestCaseDesc BitBltMasked(const TPoint &aPoint, const CWsBitmap *aBitmap, const TRect &aSourceRect, const CWsBitmap *aMaskBitmap, TBool aInvertMask): perform a masked CWsBitmap block transfer of a rectangular piece of a bitmap -//! Uses API elements: RWsSession::Connect & SetAutoFlush, CWsScreenDevice::Construct & GetPixel, RWindowGroup::Construct, RWindow::Construct & BeginRedraw & EndRedraw, -//! CWindowGc::Construct & Activate & Deactivate & SetBrushColor & SetBrushStyle, CWsBitmap::Load -//! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,255,255) -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! and SetBrushColor to TRgb(255,0,0) and SetBrushStyle to ESolidBrush -//! 2. New and Load a source CWsBitmap and a mask CWsBitmap -//! 3. Use RWindow::BeginRedraw() to start a redraw cycle -//! 4. Execute BitBltMasked to perform a masked CWsBitmap block transfer of the rectangular piece ((0,0),(180,180)) to the specified point (10,11) -//! 5. RWindow::EndRedraw() to end the redraw cycle and display the drawing result -//! 6. Deactive RWindow, destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Perform a masked bitmap block transfer of the rectangular piece without causing panic -//! 2. the drawing result of masked bitmap block transfer matched with the bitmap content -//! 2.1 only compare sub-areas of TRect((40,40),(60,60)), ((140,40),(160,60)), ((40,140),(60,160)), ((140,140),(160,160)) within the source rectangle -//! 2.2 if the bitmap pixel is not masked, check if its color is that of associated pixel on the screen -//! 2.3 if the bitmap pixel is masked, check if it's drawn with the brush color TRgb(255,0,0) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021 - - CREATE_OBJECT CWsBitmap wsbmp - CREATE_OBJECT CWsBitmap wsmaskbmp - COMMAND wsbmp new GRAPHICS-WSERV-WindowGc-PublicApi-0056-0001-new_command001 - COMMAND wsmaskbmp new GRAPHICS-WSERV-WindowGc-PublicApi-0056-0001-new_command004 - COMMAND wsmaskbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0056-0001-Load_command005 - COMMAND win BeginRedraw - COMMAND wingc BitBltMasked GRAPHICS-WSERV-WindowGc-PublicApi-0056-0001-BitBltMasked_command009 - COMMAND win EndRedraw - COMMAND wsbmp ~ - COMMAND wsmaskbmp ~ - - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0086 - -//! ----------------------------------------------------------------------------------------- - - - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0101 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0101 -//! @SYMAPI CWindowGc -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 28/12/2006 -//! @SYMTestCaseDesc Sets the pen colour. -//! Uses API elements: SetPenColor() -//! @SYMTestActions 1. Construct and connect to RWsSession using new() and Connect() and return KErrNone if successed. -//! 2. Construct and Initialize the CWsScreenDevice using new() and Construct() and return KErrNone if successed. -//! 3. Create window graphic context uisng CreateContext() and return KErrNone if successed. -//! 4. Construct and Initialize the RWindowGroup using new(), Construct() and return KErrNone if successed. -//! 5. Construct and Initialize the RWindow using new(), Construct() and return KErrNone if successed. -//! 6. Sets required window display mode to EColor4K using SetRequiredDisplayMode() and return KErrNone if successed. -//! 7. Sets window's background color to yellow using SetBackgroundColor() and return KErrNone if successed. -//! 8. Activate the RWindow using Activate() and return KErrNone if successed. -//! 9. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. -//! 10. Activate the CWindowGc using Activate() and return KErrNone if successed. -//! 11. Begin redraw the graphic context using BeginRedraw() and return KErrNone if successed. -//! 12. Sets the pen colour to red using SetPenColor() and return KErrNone if successed. -//! 13. Draw a rectangle using DrawRect() and return KErrNone if successed. -//! 14. Deactive the CWindowGc using Deactivate() and return KErrNone if successed. -//! 15. End redraw the graphic context using EndRedraw() and return KErrNone if successed. -//! -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults A red rectangle was redraw on the graphic context screen successfully. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Activate_command019 - - COMMAND win BeginRedraw - COMMAND wingc SetPenColor GRAPHICS-WSERV-WindowGc-PublicApi-0101-0001-SetPenColor_command002 - COMMAND wingc DrawRect GRAPHICS-WSERV-WindowGc-PublicApi-0200-0001-DrawRect_command002 - COMMAND wingc Deactivate - COMMAND win EndRedraw - - COMMAND wingc ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0101 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0102 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0102 -//! @SYMAPI CWindowGc -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 28/12/2006 -//! @SYMTestCaseDesc Sets the line drawing style for the pen. -//! Uses API elements: SetPenStyle() -//! @SYMTestActions 1. Construct and connect to RWsSession using new() and Connect() and return KErrNone if successed. -//! 2. Construct and Initialize the CWsScreenDevice using new() and Construct() and return KErrNone if successed. -//! 3. Create window graphic context uisng CreateContext() and return KErrNone if successed. -//! 4. Construct and Initialize the RWindowGroup using new(), Construct() and return KErrNone if successed. -//! 5. Construct and Initialize the RWindow using new(), Construct() and return KErrNone if successed. -//! 6. Sets required window display mode to EColor4K using SetRequiredDisplayMode() and return KErrNone if successed. -//! 7. Sets window's background color to yellow using SetBackgroundColor() and return KErrNone if successed. -//! 8. Activate the RWindow using Activate() and return KErrNone if successed. -//! 9. Set auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. -//! 10. Activate the CWindowGc using Activate() and return KErrNone if successed. -//! 11. Begin redraw the graphic context using BeginRedraw() and return KErrNone if successed. -//! 12. Sets the line drawing style to EDotDotDashPen for the pen using SetPenStyle() and return KErrNone if successed. -//! 13. Draw a rectangle using DrawRect() and return KErrNone if successed. -//! 14. Deactive the CWindowGc using Deactivate() and return KErrNone if successed. -//! 15. End redraw the graphic context using EndRedraw() and return KErrNone if successed. -//! -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults A red rectangle was redraw on the graphic context screen with setting EDotDotDashPen pen style on it successfully. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Activate_command019 - - COMMAND win BeginRedraw - - COMMAND wingc SetPenStyle GRAPHICS-WSERV-WindowGc-PublicApi-0102-0001-SetPenStyle_command002 - - COMMAND wingc DrawRect GRAPHICS-WSERV-WindowGc-PublicApi-0200-0001-DrawRect_command002 - - COMMAND wingc Deactivate - COMMAND win EndRedraw - DELAY 500000 - - COMMAND wingc ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0102 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0103 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0103 -//! @SYMAPI CWindowGc -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 28/12/2006 -//! @SYMTestCaseDesc Sets the line drawing size for the pen. -//! Uses API elements: SetPenSize() -//! @SYMTestActions 1. Construct and connect to RWsSession using new() and Connect() and return KErrNone if successed. -//! 2. Construct and Initialize the CWsScreenDevice using new() and Construct() and return KErrNone if successed. -//! 3. Create window graphic context uisng CreateContext() and return KErrNone if successed. -//! 4. Construct and Initialize the RWindowGroup using new(), Construct() and return KErrNone if successed. -//! 5. Construct and Initialize the RWindow using new(), Construct() and return KErrNone if successed. -//! 6. Sets required window display mode to EColor4K using SetRequiredDisplayMode() and return KErrNone if successed. -//! 7. Sets window's background color to yellow using SetBackgroundColor() and return KErrNone if successed. -//! 8. Activate the RWindow using Activate() and return KErrNone if successed. -//! 9. Set auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. -//! 10. Activate the CWindowGc using Activate() and return KErrNone if successed. -//! 11. Begin redraw the graphic context using BeginRedraw() and return KErrNone if successed. -//! 12. Sets the line drawing size to 20 width, 40 height for the pen using SetPenSize() and return KErrNone if successed. -//! 13. Draw a rectangle using DrawRect() and return KErrNone if successed. -//! 14. Deactive the CWindowGc using Deactivate() and return KErrNone if successed. -//! 15. End redraw the graphic context using EndRedraw() and return KErrNone if successed. -//! -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults A rectangle was redraw on the graphic context screen with setting width, height pen size on it successfully. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Activate_command019 - - COMMAND win BeginRedraw - - COMMAND wingc SetPenSize GRAPHICS-WSERV-WindowGc-PublicApi-0103-0001-SetPenSize_command002 - - COMMAND wingc DrawRect GRAPHICS-WSERV-WindowGc-PublicApi-0200-0001-DrawRect_command002 - - COMMAND wingc Deactivate - COMMAND win EndRedraw - DELAY 500000 - - COMMAND wingc ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0103 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0104 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0104 -//! @SYMAPI CWindowGc -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 28/12/2006 -//! @SYMTestCaseDesc Sets the brush colour. -//! Uses API elements: SetBrushColor() -//! @SYMTestActions 1. Construct and connect to RWsSession using new() and Connect() and return KErrNone if successed. -//! 2. Construct and Initialize the CWsScreenDevice using new() and Construct() and return KErrNone if successed. -//! 3. Create window graphic context uisng CreateContext() and return KErrNone if successed. -//! 4. Construct and Initialize the RWindowGroup using new(), Construct() and return KErrNone if successed. -//! 5. Construct and Initialize the RWindow using new(), Construct() and return KErrNone if successed. -//! 6. Sets required window display mode to EColor4K using SetRequiredDisplayMode() and return KErrNone if successed. -//! 7. Sets window's background color to yellow using SetBackgroundColor() and return KErrNone if successed. -//! 8. Activate the RWindow using Activate() and return KErrNone if successed. -//! 9. Set auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. -//! 10. Activate the CWindowGc using Activate() and return KErrNone if successed. -//! 11. Begin redraw the graphic context using BeginRedraw() and return KErrNone if successed. -//! 12. Sets the brush colour using SetBrushColor() and return KErrNone if successed. -//! 13. Draw a Pie with blue colour using DrawPie() and return KErrNone if successed. -//! 14. Deactive the CWindowGc using Deactivate() and return KErrNone if successed. -//! 15. End redraw the graphic context using EndRedraw() and return KErrNone if successed. -//! -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults A blue pie was redraw on the graphic context screen successfully. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Activate_command019 - - COMMAND win BeginRedraw - - COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-PublicApi-0104-0001-SetBrushColor_command002 - - COMMAND wingc DrawPie GRAPHICS-WSERV-WindowGc-PublicApi-0301-0001-DrawPie_command002 - - COMMAND wingc Deactivate - COMMAND win EndRedraw - DELAY 500000 - - COMMAND wingc ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0104 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0105 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0105 -//! @SYMAPI CWindowGc -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 28/12/2006 -//! @SYMTestCaseDesc Sets the line drawing style for the brush. -//! Uses API elements: SetBrushStyle() -//! @SYMTestActions 1. Construct and connect to RWsSession using new() and Connect() and return KErrNone if successed. -//! 2. Construct and Initialize the CWsScreenDevice using new() and Construct() and return KErrNone if successed. -//! 3. Create window graphic context uisng CreateContext() and return KErrNone if successed. -//! 4. Construct and Initialize the RWindowGroup using new(), Construct() and return KErrNone if successed. -//! 5. Construct and Initialize the RWindow using new(), Construct() and return KErrNone if successed. -//! 6. Sets required window display mode to EColor4K using SetRequiredDisplayMode() and return KErrNone if successed. -//! 7. Sets window's background color to yellow using SetBackgroundColor() and return KErrNone if successed. -//! 8. Activate the RWindow using Activate() and return KErrNone if successed. -//! 9. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. -//! 10. Activate the CWindowGc using Activate() and return KErrNone if successed. -//! 11. Begin redraw the graphic context using BeginRedraw() and return KErrNone if successed. -//! 12. Draw a Pie with blue colour using DrawPie() and return KErrNone if successed. -//! 13. Sets the line drawing style to ESolidBrush for the brush using SetBrushStyle() and return KErrNone if successed. -//! 14. Deactive the CWindowGc using Deactivate() and return KErrNone if successed. -//! 15. End redraw the graphic context using EndRedraw() and return KErrNone if successed. -//! -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults A blue and solid brush pie was redraw on the graphic context screen successfully. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Activate_command019 - - COMMAND win BeginRedraw - - COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-PublicApi-0104-0001-SetBrushColor_command002 - - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-PublicApi-0105-0001-SetBrushStyle_command002 - - COMMAND wingc DrawPie GRAPHICS-WSERV-WindowGc-PublicApi-0301-0001-DrawPie_command002 - - COMMAND wingc Deactivate - COMMAND win EndRedraw - DELAY 500000 - - COMMAND wingc ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0105 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0106 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0106 -//! @SYMAPI CWindowGc -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 28/12/2006 -//! @SYMTestCaseDesc Sets the brush pattern origin. -//! Uses API elements: SetBrushOrigin() -//! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. -//! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. -//! 3. Create window graphic context uisng CreateContext() and return KErrNone if successed. -//! 4. Construct and Initialize the RWindowGroup using NewL(), Construct() and return KErrNone if successed. -//! 5. Construct and Initialize the RWindow using NewL(), Construct() and return KErrNone if successed. -//! 6. Sets required window display mode to EColor4K using SetRequiredDisplayMode() and return KErrNone if successed. -//! 7. Sets window's background color to yellow using SetBackgroundColor() and return KErrNone if successed. -//! 8. Activate the RWindow using Activate() and return KErrNone if successed. -//! 9. Set auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. -//! 10. Activate the CWindowGc using Activate() and return KErrNone if successed. -//! 11. Begin redraw the graphic context using BeginRedraw() and return KErrNone if successed. -//! 12. Sets the brush pattern origin using SetBrushOrigin() and return KErrNone if successed. -//! 13. Draw a Pie with the default colour using DrawPie() and return KErrNone if successed. -//! 14. Deactive the CWindowGc using Deactivate() and return KErrNone if successed. -//! 15. End redraw the graphic context using EndRedraw() and return KErrNone if successed. -//! -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults A default clour and solid brush pie was redraw on the define brush origin of the graphic context screen successfully. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Activate_command019 - - COMMAND win BeginRedraw - - COMMAND wingc SetBrushOrigin GRAPHICS-WSERV-WindowGc-PublicApi-0106-0001-SetBrushOrigin_command002 - - COMMAND wingc DrawPie GRAPHICS-WSERV-WindowGc-PublicApi-0302-0001-DrawPie_command002 - - COMMAND wingc Deactivate - COMMAND win EndRedraw - DELAY 500000 - - COMMAND wingc ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0106 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0107 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0107 -//! @SYMAPI CWindowGc -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 28/12/2006 -//! @SYMTestCaseDesc Sets the position of the co-ordinate origin. -//! Uses API elements: SetOrigin() -//! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. -//! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. -//! 3. Create window graphic context uisng CreateContext() and return KErrNone if successed. -//! 4. Construct and Initialize the RWindowGroup using NewL(), Construct() and return KErrNone if successed. -//! 5. Construct and Initialize the RWindow using NewL(), Construct() and return KErrNone if successed. -//! 6. Sets required window display mode to EColor4K using SetRequiredDisplayMode() and return KErrNone if successed. -//! 7. Sets window's background color to yellow using SetBackgroundColor() and return KErrNone if successed. -//! 8. Activate the RWindow using Activate() and return KErrNone if successed. -//! 9. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. -//! 10. Activate the CWindowGc using Activate() and return KErrNone if successed. -//! 11. Begin redraw the graphic context using BeginRedraw() and return KErrNone if successed. -//! 12. Sets the position of the co-ordinate origin using SetOrigin() and return KErrNone if successed. -//! 13. Draw a rectangle with the default colour using DrawRect() and return KErrNone if successed. -//! 14. Deactive the CWindowGc using Deactivate() and return KErrNone if successed. -//! 15. End redraw the graphic context using EndRedraw() and return KErrNone if successed. -//! -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults A default clour and rectangle was redraw on the position of the co-ordinate origin of the graphic context screen successfully. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Activate_command019 - - COMMAND win BeginRedraw - - COMMAND wingc SetOrigin GRAPHICS-WSERV-WindowGc-PublicApi-0107-0001-SetOrigin_command002 - - COMMAND wingc DrawRect GRAPHICS-WSERV-WindowGc-PublicApi-0200-0001-DrawRect_command002 - - COMMAND wingc Deactivate - COMMAND win EndRedraw - DELAY 500000 - - COMMAND wingc ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK - -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0107 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0108 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0108 -//! @SYMAPI CWindowGc -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 28/12/2006 -//! @SYMTestCaseDesc Sets the drawing mode. -//! Uses API elements: SetDrawMode() -//! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. -//! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. -//! 3. Create window graphic context uisng CreateContext() and return KErrNone if successed. -//! 4. Construct and Initialize the RWindowGroup using NewL(), Construct() and return KErrNone if successed. -//! 5. Construct and Initialize the RWindow using NewL(), Construct() and return KErrNone if successed. -//! 6. Sets required window display mode to EColor4K using SetRequiredDisplayMode() and return KErrNone if successed. -//! 7. Sets window's background color to yellow using SetBackgroundColor() and return KErrNone if successed. -//! 8. Activate the RWindow using Activate() and return KErrNone if successed. -//! 9. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. -//! 10. Activate the CWindowGc using Activate() and return KErrNone if successed. -//! 11. Begin redraw the graphic context using BeginRedraw() and return KErrNone if successed. -//! 12. Sets the pen colour to red using SetPenColor() and return KErrNone if successed. -//! 13. Sets the line drawing size to 20 width, 40 height for the pen using SetPenSize() and return KErrNone if successed. -//! 14. Sets the position of the co-ordinate origin using SetOrigin() and return KErrNone if successed. -//! 15. Sets the drawing mode to EDrawModeXOR using SetDrawMode() and return KErrNone if successed. -//! 16. Draw a rectangle using DrawRect() and return KErrNone if successed. -//! 17. Deactive the CWindowGc using Deactivate() and return KErrNone if successed. -//! 18. End redraw the graphic context using EndRedraw() and return KErrNone if successed. -//! -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults A red rectangle was redraw with drawing mode EDrawModeXOR on the graphic context screen successfully. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Activate_command019 - - COMMAND win BeginRedraw - - COMMAND wingc SetPenColor GRAPHICS-WSERV-WindowGc-PublicApi-0101-0001-SetPenColor_command002 - - COMMAND wingc SetPenSize GRAPHICS-WSERV-WindowGc-PublicApi-0103-0001-SetPenSize_command002 - - COMMAND wingc SetOrigin GRAPHICS-WSERV-WindowGc-PublicApi-0107-0001-SetOrigin_command002 - - COMMAND wingc SetDrawMode GRAPHICS-WSERV-WindowGc-PublicApi-0108-0001-SetDrawMode_command002 - - COMMAND wingc DrawRect GRAPHICS-WSERV-WindowGc-PublicApi-0200-0001-DrawRect_command002 - - COMMAND wingc Deactivate - COMMAND win EndRedraw - DELAY 500000 - - COMMAND wingc ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0108 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0109 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0109 -//! @SYMAPI CWindowGc -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 28/12/2006 -//! @SYMTestCaseDesc Sets and unsets an opaque flag on the window. -//! Uses API elements: SetOpaque() -//! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. -//! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. -//! 3. Create window graphic context uisng CreateContext() and return KErrNone if successed. -//! 4. Construct and Initialize the RWindowGroup using NewL(), Construct() and return KErrNone if successed. -//! 5. Construct and Initialize the RWindow using NewL(), Construct() and return KErrNone if successed. -//! 6. Sets required window display mode to EColor4K using SetRequiredDisplayMode() and return KErrNone if successed. -//! 7. Sets window's background color to yellow using SetBackgroundColor() and return KErrNone if successed. -//! 8. Activate the RWindow using Activate() and return KErrNone if successed. -//! 9. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. -//! 10. Activate the CWindowGc using Activate() and return KErrNone if successed. -//! 11. Begin redraw the graphic context using BeginRedraw() and return KErrNone if successed. -//! 12. Sets the pen colour to red using SetPenColor() and return KErrNone if successed. -//! 13. Sets the line drawing size to 20 width, 40 height for the pen using SetPenSize() and return KErrNone if successed. -//! 14. Sets the position of the co-ordinate origin using SetOrigin() and return KErrNone if successed. -//! 15. Sets the drawing mode to EDrawModeXOR using SetDrawMode() and return KErrNone if successed. -//! 16. Draw a rectangle using DrawRect() and return KErrNone if successed. -//! 17. Sets an opaque flag on the window and return KErrNone if successed. -//! 18. Sets the pen colour to green using SetPenColor() and return KErrNone if successed. -//! 19. Draw a Pie with blue colour using DrawPie() and return KErrNone if successed. -//! 20. Sets the line drawing style to ESolidBrush for the brush using SetBrushStyle() and return KErrNone if successed. -//! 21. Deactive the CWindowGc using Deactivate() and return KErrNone if successed. -//! 22. End redraw the graphic context using EndRedraw() and return KErrNone if successed. -//! -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults A an opaque rectangle was redraw with drawing mode EDrawModeXOR on the graphic context screen successfully. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Activate_command019 - - COMMAND win BeginRedraw - - COMMAND wingc SetPenColor GRAPHICS-WSERV-WindowGc-PublicApi-0101-0001-SetPenColor_command002 - - COMMAND wingc SetPenSize GRAPHICS-WSERV-WindowGc-PublicApi-0103-0001-SetPenSize_command002 - - COMMAND wingc SetOrigin GRAPHICS-WSERV-WindowGc-PublicApi-0107-0001-SetOrigin_command002 - - COMMAND wingc SetDrawMode GRAPHICS-WSERV-WindowGc-PublicApi-0108-0001-SetDrawMode_command002 - - COMMAND wingc DrawRect GRAPHICS-WSERV-WindowGc-PublicApi-0200-0001-DrawRect_command002 - - COMMAND wingc SetOpaque GRAPHICS-WSERV-WindowGc-PublicApi-0109-0001-SetOpaque_command002 - COMMAND wingc SetPenColor GRAPHICS-WSERV-WindowGc-PublicApi-0109-0001-SetPenColor_command003 - - COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-PublicApi-0104-0001-SetBrushColor_command002 - - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-PublicApi-0105-0001-SetBrushStyle_command002 - - COMMAND wingc DrawPie GRAPHICS-WSERV-WindowGc-PublicApi-0301-0001-DrawPie_command002 - - COMMAND wingc Deactivate - COMMAND win EndRedraw - DELAY 500000 - - COMMAND wingc ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0109 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0110 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0110 -//! @SYMAPI CWindowGc -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 28/12/2006 -//! @SYMTestCaseDesc Sets whether the graphics context is faded. -//! Uses API elements: SetFaded() -//! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. -//! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. -//! 3. Create window graphic context uisng CreateContext() and return KErrNone if successed. -//! 4. Construct and Initialize the RWindowGroup using NewL(), Construct() and return KErrNone if successed. -//! 5. Construct and Initialize the RWindow using NewL(), Construct() and return KErrNone if successed. -//! 6. Sets required window display mode to EColor4K using SetRequiredDisplayMode() and return KErrNone if successed. -//! 7. Sets window's background color to yellow using SetBackgroundColor() and return KErrNone if successed. -//! 8. Activate the RWindow using Activate() and return KErrNone if successed. -//! 9. Set auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. -//! 10. Activate the CWindowGc using Activate() and return KErrNone if successed. -//! 11. Begin redraw the graphic context using BeginRedraw() and return KErrNone if successed. -//! 12. Sets the graphics context to faded using SetFaded() and return KErrNone if successed. -//! 13. Sets the pen colour to red using SetPenColor() and return KErrNone if successed. -//! 14. Sets the line drawing size to 20 width, 40 height for the pen using SetPenSize() and return KErrNone if successed. -//! 15. Sets the position of the co-ordinate origin using SetOrigin() and return KErrNone if successed. -//! 16. Sets the drawing mode to EDrawModeXOR using SetDrawMode() and return KErrNone if successed. -//! 17. Draw a rectangle using DrawRect() and return KErrNone if successed. -//! 18. Deactive the CWindowGc using Deactivate() and return KErrNone if successed. -//! 19. End redraw the graphic context using EndRedraw() and return KErrNone if successed. -//! -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults A an faded rectangle was redraw on the graphic context screen successfully. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Activate_command019 - - COMMAND win BeginRedraw - - COMMAND wingc SetFaded GRAPHICS-WSERV-WindowGc-PublicApi-0110-0001-SetFaded_command002 - - COMMAND wingc SetPenColor GRAPHICS-WSERV-WindowGc-PublicApi-0101-0001-SetPenColor_command002 - - COMMAND wingc SetPenSize GRAPHICS-WSERV-WindowGc-PublicApi-0103-0001-SetPenSize_command002 - - COMMAND wingc SetOrigin GRAPHICS-WSERV-WindowGc-PublicApi-0107-0001-SetOrigin_command002 - - COMMAND wingc SetDrawMode GRAPHICS-WSERV-WindowGc-PublicApi-0108-0001-SetDrawMode_command002 - - COMMAND wingc DrawRect GRAPHICS-WSERV-WindowGc-PublicApi-0200-0001-DrawRect_command002 - - COMMAND wingc Deactivate - COMMAND win EndRedraw - DELAY 500000 - - COMMAND wingc ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0110 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0111 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0111 -//! @SYMAPI CWindowGc -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 28/12/2006 -//! @SYMTestCaseDesc Sets the fading parameters. -//! Uses API elements: SetFadingParameters() -//! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. -//! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. -//! 3. Create window graphic context uisng CreateContext() and return KErrNone if successed. -//! 4. Construct and Initialize the RWindowGroup using NewL(), Construct() and return KErrNone if successed. -//! 5. Construct and Initialize the RWindow using NewL(), Construct() and return KErrNone if successed. -//! 6. Sets required window display mode to EColor4K using SetRequiredDisplayMode() and return KErrNone if successed. -//! 7. Sets window's background color to yellow using SetBackgroundColor() and return KErrNone if successed. -//! 8. Activate the RWindow using Activate() and return KErrNone if successed. -//! 9. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. -//! 10. Activate the CWindowGc using Activate() and return KErrNone if successed. -//! 11. Begin redraw the graphic context using BeginRedraw() and return KErrNone if successed. -//! 12. Sets the fading parameters using SetFadingParameters() with BlackMap to 100, WhiteMap to 100 and return KErrNone if successed. -//! 13. Sets the pen colour to red using SetPenColor() and return KErrNone if successed. -//! 14. Sets the line drawing size to 20 width, 40 height for the pen using SetPenSize() and return KErrNone if successed. -//! 15. Sets the position of the co-ordinate origin using SetOrigin() and return KErrNone if successed. -//! 16. Draw a Pie with blue colour using DrawPie() and return KErrNone if successed. -//! 17. Deactive the CWindowGc using Deactivate() and return KErrNone if successed. -//! 18. End redraw the graphic context using EndRedraw() and return KErrNone if successed. -//! -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults A an faded pie was redraw on the graphic context screen successfully. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Activate_command019 - - COMMAND win BeginRedraw - - COMMAND wingc SetFadingParameters GRAPHICS-WSERV-WindowGc-PublicApi-0111-0001-SetFadingParameters_command002 - - COMMAND wingc SetPenColor GRAPHICS-WSERV-WindowGc-PublicApi-0101-0001-SetPenColor_command002 - - COMMAND wingc SetPenSize GRAPHICS-WSERV-WindowGc-PublicApi-0103-0001-SetPenSize_command002 - - COMMAND wingc SetOrigin GRAPHICS-WSERV-WindowGc-PublicApi-0107-0001-SetOrigin_command002 - - COMMAND wingc DrawPie GRAPHICS-WSERV-WindowGc-PublicApi-0301-0001-DrawPie_command002 - - COMMAND wingc Deactivate - COMMAND win EndRedraw - DELAY 500000 - - COMMAND wingc ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0111 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0112 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0112 -//! @SYMAPI CWindowGc -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 28/12/2006 -//! @SYMTestCaseDesc Sets the origin used for colour dithering. -//! Uses API elements: SetDitherOrigin() -//! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. -//! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. -//! 3. Create window graphic context uisng CreateContext() and return KErrNone if successed. -//! 4. Construct and Initialize the RWindowGroup using NewL(), Construct() and return KErrNone if successed. -//! 5. Construct and Initialize the RWindow using NewL(), Construct() and return KErrNone if successed. -//! 6. Sets required window display mode to EColor4K using SetRequiredDisplayMode() and return KErrNone if successed. -//! 7. Sets window's background color to yellow using SetBackgroundColor() and return KErrNone if successed. -//! 8. Activate the RWindow using Activate() and return KErrNone if successed. -//! 9. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. -//! 10. Activate the CWindowGc using Activate() and return KErrNone if successed. -//! 11. Begin redraw the graphic context using BeginRedraw() and return KErrNone if successed. -//! 12. Sets the origin used for colour dithering using SetDitherOrigin() with position (250,25) and return KErrNone if successed. -//! 13. Sets the pen colour to red using SetPenColor() and return KErrNone if successed. -//! 14. Sets the line drawing size to 20 width, 40 height for the pen using SetPenSize() and return KErrNone if successed. -//! 15. Sets the position of the co-ordinate origin using SetOrigin() and return KErrNone if successed. -//! 16. Draw a Pie with the default colour using DrawPie() and return KErrNone if successed. -//! 17. Deactive the CWindowGc using Deactivate() and return KErrNone if successed. -//! 18. End redraw the graphic context using EndRedraw() and return KErrNone if successed. -//! -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults A colour dithering of the origin pie was redraw on the graphic context screen successfully. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Activate_command019 - - COMMAND win BeginRedraw - - COMMAND wingc SetDitherOrigin GRAPHICS-WSERV-WindowGc-PublicApi-0112-0001-SetDitherOrigin_command002 - - COMMAND wingc SetPenColor GRAPHICS-WSERV-WindowGc-PublicApi-0101-0001-SetPenColor_command002 - - COMMAND wingc SetPenSize GRAPHICS-WSERV-WindowGc-PublicApi-0103-0001-SetPenSize_command002 - - COMMAND wingc SetOrigin GRAPHICS-WSERV-WindowGc-PublicApi-0107-0001-SetOrigin_command002 - - COMMAND wingc DrawPie GRAPHICS-WSERV-WindowGc-PublicApi-0302-0001-DrawPie_command002 - - COMMAND wingc Deactivate - COMMAND win EndRedraw - DELAY 500000 - - COMMAND wingc ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0112 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0113 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0113 -//! @SYMAPI CWindowGc -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 28/12/2006 -//! @SYMTestCaseDesc Re-maps pixel colours within a rectangle. -//! Uses API elements: MapColors() -//! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. -//! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. -//! 3. Create window graphic context uisng CreateContext() and return KErrNone if successed. -//! 4. Construct and Initialize the RWindowGroup using NewL(), Construct() and return KErrNone if successed. -//! 5. Construct and Initialize the RWindow using NewL(), Construct() and return KErrNone if successed. -//! 6. Sets required window display mode to EColor4K using SetRequiredDisplayMode() and return KErrNone if successed. -//! 7. Sets window's background color to yellow using SetBackgroundColor() and return KErrNone if successed. -//! 8. Activate the RWindow using Activate() and return KErrNone if successed. -//! 9. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. -//! 10. Activate the CWindowGc using Activate() and return KErrNone if successed. -//! 11. Begin redraw the graphic context using BeginRedraw() and return KErrNone if successed. -//! 12. Sets the brush colour using SetBrushColor() and return KErrNone if successed. -//! 13. Sets the line drawing style to ESolidBrush for the brush using SetBrushStyle() and return KErrNone if successed. -//! 14. Draw a Pie with the default colour using DrawPie() and return KErrNone if successed. -//! 15. Re-maps pixel colours within a rectangle using MapColors() and return KErrNone if successed. -//! 17. Deactive the CWindowGc using Deactivate() and return KErrNone if successed. -//! 18. End redraw the graphic context using EndRedraw() and return KErrNone if successed. -//! -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults A Re-maps pixel colours of the origin pie was redraw on the graphic context screen successfully. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Activate_command019 - - COMMAND win BeginRedraw - - COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-PublicApi-0104-0001-SetBrushColor_command002 - - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-PublicApi-0105-0001-SetBrushStyle_command002 - - COMMAND wingc DrawPie GRAPHICS-WSERV-WindowGc-PublicApi-0301-0001-DrawPie_command002 - - COMMAND wingc MapColors GRAPHICS-WSERV-WindowGc-PublicApi-0113-0001-MapColors_command002 - - COMMAND wingc Deactivate - COMMAND win EndRedraw - DELAY 500000 - - COMMAND wingc ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0113 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0114 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0114 -//! @SYMAPI CWindowGc -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 28/12/2006 -//! @SYMTestCaseDesc Sets the brush pattern to the specified bitmap. -//! Uses API elements: UseBrushPattern() -//! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. -//! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. -//! 3. Create window graphic context uisng CreateContext() and return KErrNone if successed. -//! 4. Construct and Initialize the RWindowGroup using NewL(), Construct() and return KErrNone if successed. -//! 5. Construct and Initialize the RWindow using NewL(), Construct() and return KErrNone if successed. -//! 6. Sets required window display mode to EColor4K using SetRequiredDisplayMode() and return KErrNone if successed. -//! 7. Sets window's background color to yellow using SetBackgroundColor() and return KErrNone if successed. -//! 8. Activate the RWindow using Activate() and return KErrNone if successed. -//! 9. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. -//! 10. Activate the CWindowGc using Activate() and return KErrNone if successed. -//! 11. Begin redraw the graphic context using BeginRedraw() and return KErrNone if successed. -//! 12. Construct and Initialize the CFbsBitmap using new() and return KErrNone if successed. -//! 13. Loading the specific bitmap by using Load() and return KErrNone if successed. -//! 14. Sets the brush pattern to the specified bitmap by using UseBrushPattern() and return KErrNone if successed. -//! 15. Draw a Pie with the default colour using DrawPie() and return KErrNone if successed. -//! 16. Discards a non-built-in brush pattern to free up the memory used for the bitmap and return KErrNone if successed. -//! 17. Deactive the CWindowGc using Deactivate() and return KErrNone if successed. -//! 18. End redraw the graphic context using EndRedraw() and return KErrNone if successed. -//! -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults A bitmap as brush pattern of the origin pie was redraw on the graphic context screen successfully. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Activate_command019 - - COMMAND win BeginRedraw - - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-WSERV-WindowGc-PublicApi-0115-0001-Load_command003 - COMMAND wingc UseBrushPattern GRAPHICS-WSERV-WindowGc-PublicApi-0115-0001-UseBrushPattern_command005 - COMMAND wingc SetPenStyle GRAPHICS-WSERV-WindowGc-PublicApi-0115-0001-SetPenStyle_command006 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-PublicApi-0115-0001-SetBrushStyle_command007 - - COMMAND wingc DrawPie GRAPHICS-WSERV-WindowGc-PublicApi-0301-0001-DrawPie_command002 - - COMMAND wingc DiscardBrushPattern - COMMAND wingc Deactivate - COMMAND win EndRedraw - COMMAND fbsBitmap ~ - - DELAY 500000 - - COMMAND wingc ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0114 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0115 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0115 -//! @SYMAPI CWindowGc -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 28/12/2006 -//! @SYMTestCaseDesc Sets the context's font to current graphic context, and draw the text on the context, then discard font from the memory. -//! Uses API elements: UseFont(), DrawText() and DiscardFont() -//! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. -//! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. -//! 3. Create window graphic context uisng CreateContext() and return KErrNone if successed. -//! 4. Construct and Initialize the RWindowGroup using NewL(), Construct() and return KErrNone if successed. -//! 5. Construct and Initialize the RWindow using NewL(), Construct() and return KErrNone if successed. -//! 6. Sets required window display mode to EColor4K using SetRequiredDisplayMode() and return KErrNone if successed. -//! 7. Sets window's background color to yellow using SetBackgroundColor() and return KErrNone if successed. -//! 8. Activate the RWindow using Activate() and return KErrNone if successed. -//! 9. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. -//! 10. Activate the CWindowGc using Activate() and return KErrNone if successed. -//! 11. Begin redraw the graphic context using BeginRedraw() and return KErrNone if successed. -//! 12. Sets the pen colour to red using SetPenColor() and return KErrNone if successed. -//! 13. Sets the context's font to current graphic context by using UseFont() and return KErrNone if successed. -//! 14. Draws the text with defined font on graphic context screen by using DrawText() and return KErrNone if successed. -//! 15. Discards the font and frees up the memory used by using DiscardFont() and return KErrNone if successed. -//! 17. Deactive the CWindowGc using Deactivate() and return KErrNone if successed. -//! 18. End redraw the graphic context using EndRedraw() and return KErrNone if successed. -//! -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The text with defined font and color was redraw on the graphic context screen successfully. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Activate_command019 - - COMMAND win BeginRedraw - - COMMAND wingc SetPenColor GRAPHICS-WSERV-WindowGc-PublicApi-0101-0001-SetPenColor_command002 - - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - CREATE_OBJECT CFbsFont CFbsFont1 - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInPixels GRAPHICS-WSERV-WindowGc-PublicApi-0116-0001-GetNearestFontToDesignHeightInPixels_command001 - COMMAND wingc UseFont GRAPHICS-WSERV-WindowGc-PublicApi-0116-0001-UseFont_command002 - - COMMAND wingc DrawText GRAPHICS-WSERV-WindowGc-PublicApi-0116-0001-DrawText_command003 - - COMMAND wingc DiscardFont - COMMAND CFbsTypefaceStore1 ~ - - COMMAND wingc Deactivate - COMMAND win EndRedraw - DELAY 500000 - - COMMAND wingc ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0115 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0116 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0116 -//! @SYMAPI CWindowGc -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 28/12/2006 -//! @SYMTestCaseDesc Sets the context's font to current graphic context, and draw the text on the context, then discard font from the memory. -//! Uses API elements: UseFont(), DrawText() and DiscardFont() -//! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. -//! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. -//! 3. Create window graphic context uisng CreateContext() and return KErrNone if successed. -//! 4. Construct and Initialize the RWindowGroup using NewL(), Construct() and return KErrNone if successed. -//! 5. Construct and Initialize the RWindow using NewL(), Construct() and return KErrNone if successed. -//! 6. Sets required window display mode to EColor4K using SetRequiredDisplayMode() and return KErrNone if successed. -//! 7. Sets window's background color to yellow using SetBackgroundColor() and return KErrNone if successed. -//! 8. Activate the RWindow using Activate() and return KErrNone if successed. -//! 9. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. -//! 10. Activate the CWindowGc using Activate() and return KErrNone if successed. -//! 11. Begin redraw the graphic context using BeginRedraw() and return KErrNone if successed. -//! 12. Sets the pen colour to red using SetPenColor() and return KErrNone if successed. -//! 13. Sets the context's font to current graphic context by using UseFont() and return KErrNone if successed. -//! 14. Draws the text with baseline Offset, text align, left margin and defined font to graphic context by using DrawText() and return KErrNone if successed. -//! 15. Discards the font and frees up the memory used by using DiscardFont() and return KErrNone if successed. -//! 17. Deactive the CWindowGc using Deactivate() and return KErrNone if successed. -//! 18. End redraw the graphic context using EndRedraw() and return KErrNone if successed. -//! -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The text with defined font and color was redraw on the graphic context screen successfully. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Activate_command019 - - COMMAND win BeginRedraw - - COMMAND wingc SetPenColor GRAPHICS-WSERV-WindowGc-PublicApi-0101-0001-SetPenColor_command002 - - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - CREATE_OBJECT CFbsFont CFbsFont1 - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInPixels GRAPHICS-WSERV-WindowGc-PublicApi-0116-0001-GetNearestFontToDesignHeightInPixels_command001 - COMMAND wingc UseFont GRAPHICS-WSERV-WindowGc-PublicApi-0116-0001-UseFont_command002 - COMMAND wingc DrawText GRAPHICS-WSERV-WindowGc-PublicApi-0118-0001-DrawText_command003 - - COMMAND wingc DiscardFont - COMMAND CFbsTypefaceStore1 ~ - - COMMAND wingc Deactivate - COMMAND win EndRedraw - DELAY 500000 - - COMMAND wingc ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0116 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0117 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0117 -//! @SYMAPI CWindowGc -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 28/12/2006 -//! @SYMTestCaseDesc Sets word justification. -//! Uses API elements: SetWordJustification() -//! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. -//! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. -//! 3. Create window graphic context uisng CreateContext() and return KErrNone if successed. -//! 4. Construct and Initialize the RWindowGroup using NewL(), Construct() and return KErrNone if successed. -//! 5. Construct and Initialize the RWindow using NewL(), Construct() and return KErrNone if successed. -//! 6. Sets required window display mode to EColor4K using SetRequiredDisplayMode() and return KErrNone if successed. -//! 7. Sets window's background color to yellow using SetBackgroundColor() and return KErrNone if successed. -//! 8. Activate the RWindow using Activate() and return KErrNone if successed. -//! 9. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. -//! 10. Activate the CWindowGc using Activate() and return KErrNone if successed. -//! 11. Begin redraw the graphic context using BeginRedraw() and return KErrNone if successed. -//! 12. Sets word justification by using SetWordJustification() and return KErrNone if successed. -//! 12. Sets the pen colour to red using SetPenColor() and return KErrNone if successed. -//! 13. Sets the context's font to current graphic context by using UseFont() and return KErrNone if successed. -//! 14. Draws the text with defined font on graphic context screen by using DrawText() and return KErrNone if successed. -//! 15. Discards the font and frees up the memory used by using DiscardFont() and return KErrNone if successed. -//! 17. Deactive the CWindowGc using Deactivate() and return KErrNone if successed. -//! 18. End redraw the graphic context using EndRedraw() and return KErrNone if successed. -//! -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The text with defined font and color was redraw on the graphic context screen with word justification successfully. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Activate_command019 - - COMMAND win BeginRedraw - - COMMAND wingc SetWordJustification GRAPHICS-WSERV-WindowGc-PublicApi-0119-0001-SetWordJustification_command002 - - COMMAND wingc SetPenColor GRAPHICS-WSERV-WindowGc-PublicApi-0101-0001-SetPenColor_command002 - - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - CREATE_OBJECT CFbsFont CFbsFont1 - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInPixels GRAPHICS-WSERV-WindowGc-PublicApi-0116-0001-GetNearestFontToDesignHeightInPixels_command001 - COMMAND wingc UseFont GRAPHICS-WSERV-WindowGc-PublicApi-0116-0001-UseFont_command002 - COMMAND wingc DrawText GRAPHICS-WSERV-WindowGc-PublicApi-0116-0001-DrawText_command003 - - COMMAND wingc DiscardFont - COMMAND CFbsTypefaceStore1 ~ - - COMMAND wingc Deactivate - COMMAND win EndRedraw - DELAY 500000 - - COMMAND wingc ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0117 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0118 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0118 -//! @SYMAPI CWindowGc -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 28/12/2006 -//! @SYMTestCaseDesc Sets the character justification. -//! Uses API elements: SetCharJustification() -//! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. -//! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. -//! 3. Create window graphic context uisng CreateContext() and return KErrNone if successed. -//! 4. Construct and Initialize the RWindowGroup using NewL(), Construct() and return KErrNone if successed. -//! 5. Construct and Initialize the RWindow using NewL(), Construct() and return KErrNone if successed. -//! 6. Set required window display mode to EColor4K using SetRequiredDisplayMode() and return KErrNone if successed. -//! 7. Set window's background color to yellow using SetBackgroundColor() and return KErrNone if successed. -//! 8. Activate the RWindow using Activate() and return KErrNone if successed. -//! 9. Set auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. -//! 10. Activate the CWindowGc using Activate() and return KErrNone if successed. -//! 11. Begin redraw the graphic context using BeginRedraw() and return KErrNone if successed. -//! 12. Sets character justification by using SetCharJustification() and return KErrNone if successed. -//! 13. Sets the pen colour to red using SetPenColor() and return KErrNone if successed. -//! 14. Sets the context's font to current graphic context by using UseFont() and return KErrNone if successed. -//! 15. Draws the text with defined font on graphic context screen by using DrawText() and return KErrNone if successed. -//! 16. Discards the font and frees up the memory used by using DiscardFont() and return KErrNone if successed. -//! 17. Deactive the CWindowGc using Deactivate() and return KErrNone if successed. -//! 18. End redraw the graphic context using EndRedraw() and return KErrNone if successed. -//! -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The text with defined font and color was redraw on the graphic context screen with character justification successfully. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Activate_command019 - - COMMAND win BeginRedraw - - COMMAND wingc SetCharJustification GRAPHICS-WSERV-WindowGc-PublicApi-0120-0001-SetCharJustification_command002 - - COMMAND wingc SetPenColor GRAPHICS-WSERV-WindowGc-PublicApi-0101-0001-SetPenColor_command002 - - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - CREATE_OBJECT CFbsFont CFbsFont1 - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInPixels GRAPHICS-WSERV-WindowGc-PublicApi-0116-0001-GetNearestFontToDesignHeightInPixels_command001 - COMMAND wingc UseFont GRAPHICS-WSERV-WindowGc-PublicApi-0116-0001-UseFont_command002 - COMMAND wingc DrawText GRAPHICS-WSERV-WindowGc-PublicApi-0118-0001-DrawText_command003 - - COMMAND wingc DiscardFont - COMMAND CFbsTypefaceStore1 ~ - - COMMAND wingc Deactivate - COMMAND win EndRedraw - DELAY 500000 - - COMMAND wingc ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0118 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0119 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0119 -//! @SYMAPI CWindowGc -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 28/12/2006 -//! @SYMTestCaseDesc Draws vertical text in the specified direction. -//! Uses API elements: UseFont(), DrawTextVertical() and DiscardFont() -//! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. -//! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. -//! 3. Create window graphic context uisng CreateContext() and return KErrNone if successed. -//! 4. Construct and Initialize the RWindowGroup using NewL(), Construct() and return KErrNone if successed. -//! 5. Construct and Initialize the RWindow using NewL(), Construct() and return KErrNone if successed. -//! 6. Set required window display mode to EColor4K using SetRequiredDisplayMode() and return KErrNone if successed. -//! 7. Set window's background color to yellow using SetBackgroundColor() and return KErrNone if successed. -//! 8. Activate the RWindow using Activate() and return KErrNone if successed. -//! 9. Set auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. -//! 10. Activate the CWindowGc using Activate() and return KErrNone if successed. -//! 11. Begin redraw the graphic context using BeginRedraw() and return KErrNone if successed. -//! 13. Sets the context's font to current graphic context by using UseFont() and return KErrNone if successed. -//! 14. Draws vertical text in the specified direction and defined font to graphic context by using DrawText() and return KErrNone if successed. -//! 15. Discards the font and frees up the memory used by using DiscardFont() and return KErrNone if successed. -//! 17. Deactive the CWindowGc using Deactivate() and return KErrNone if successed. -//! 18. End redraw the graphic context using EndRedraw() and return KErrNone if successed. -//! -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The text with defined font and color was redraw on the graphic context screen successfully. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Activate_command019 - - COMMAND win BeginRedraw - - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - CREATE_OBJECT CFbsFont CFbsFont1 - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInPixels GRAPHICS-WSERV-WindowGc-PublicApi-0116-0001-GetNearestFontToDesignHeightInPixels_command001 - COMMAND wingc UseFont GRAPHICS-WSERV-WindowGc-PublicApi-0116-0001-UseFont_command002 - COMMAND wingc DrawTextVertical GRAPHICS-WSERV-WindowGc-PublicApi-0121-0001-DrawTextVertical_command003 - - COMMAND wingc DiscardFont - COMMAND CFbsTypefaceStore1 ~ - - COMMAND wingc Deactivate - COMMAND win EndRedraw - DELAY 500000 - - COMMAND wingc ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0119 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0120 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0120 -//! @SYMAPI CWindowGc -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 28/12/2006 -//! @SYMTestCaseDesc Draws text vertically in the specified direction, within a box of the specified size. -//! Uses API elements: UseFont(), DrawTextVertical() and DiscardFont() -//! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. -//! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. -//! 3. Create window graphic context uisng CreateContext() and return KErrNone if successed. -//! 4. Construct and Initialize the RWindowGroup using NewL(), Construct() and return KErrNone if successed. -//! 5. Construct and Initialize the RWindow using NewL(), Construct() and return KErrNone if successed. -//! 6. Set required window display mode to EColor4K using SetRequiredDisplayMode() and return KErrNone if successed. -//! 7. Set window's background color to yellow using SetBackgroundColor() and return KErrNone if successed. -//! 8. Activate the RWindow using Activate() and return KErrNone if successed. -//! 9. Set auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. -//! 10. Activate the CWindowGc using Activate() and return KErrNone if successed. -//! 11. Begin redraw the graphic context using BeginRedraw() and return KErrNone if successed. -//! 13. Sets the context's font to current graphic context by using UseFont() and return KErrNone if successed. -//! 14. Draws text vertically in the specified direction, within a box of the specified size and defined font to graphic context by using DrawText() and return KErrNone if successed. -//! 15. Discards the font and frees up the memory used by using DiscardFont() and return KErrNone if successed. -//! 17. Deactive the CWindowGc using Deactivate() and return KErrNone if successed. -//! 18. End redraw the graphic context using EndRedraw() and return KErrNone if successed. -//! -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The text with defined font and color was redraw on the graphic context screen successfully. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Activate_command019 - - COMMAND win BeginRedraw - - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - CREATE_OBJECT CFbsFont CFbsFont1 - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInPixels GRAPHICS-WSERV-WindowGc-PublicApi-0116-0001-GetNearestFontToDesignHeightInPixels_command001 - COMMAND wingc UseFont GRAPHICS-WSERV-WindowGc-PublicApi-0116-0001-UseFont_command002 - COMMAND wingc DrawTextVertical GRAPHICS-WSERV-WindowGc-PublicApi-0122-0001-DrawTextVertical_command003 - - COMMAND wingc DiscardFont - COMMAND CFbsTypefaceStore1 ~ - - COMMAND wingc Deactivate - COMMAND win EndRedraw - DELAY 500000 - - COMMAND wingc ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0120 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0121 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0121 -//! @SYMAPI CWindowGc -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 28/12/2006 -//! @SYMTestCaseDesc Sets the underline style for all subsequently drawn text. -//! Uses API elements: UseFont(), DrawText(), SetUnderlineStyle() and DiscardFont() -//! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. -//! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. -//! 3. Create window graphic context uisng CreateContext() and return KErrNone if successed. -//! 4. Construct and Initialize the RWindowGroup using NewL(), Construct() and return KErrNone if successed. -//! 5. Construct and Initialize the RWindow using NewL(), Construct() and return KErrNone if successed. -//! 6. Set required window display mode to EColor4K using SetRequiredDisplayMode() and return KErrNone if successed. -//! 7. Set window's background color to yellow using SetBackgroundColor() and return KErrNone if successed. -//! 8. Activate the RWindow using Activate() and return KErrNone if successed. -//! 9. Set auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. -//! 10. Activate the CWindowGc using Activate() and return KErrNone if successed. -//! 11. Begin redraw the graphic context using BeginRedraw() and return KErrNone if successed. -//! 12. Sets the underline style for all subsequently drawn text and return KErrNone if successed. -//! 13. Sets the pen colour to red using SetPenColor() and return KErrNone if successed. -//! 14. Sets the context's font to current graphic context by using UseFont() and return KErrNone if successed. -//! 15. Draws the text with defined font on graphic context screen by using DrawText() and return KErrNone if successed. -//! 16. Discards the font and frees up the memory used by using DiscardFont() and return KErrNone if successed. -//! 17. Deactive the CWindowGc using Deactivate() and return KErrNone if successed. -//! 18. End redraw the graphic context using EndRedraw() and return KErrNone if successed. -//! -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The text with defined font and color was redraw on the graphic context screen with character justification successfully. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Activate_command019 - - COMMAND win BeginRedraw - - COMMAND wingc SetUnderlineStyle GRAPHICS-WSERV-WindowGc-PublicApi-0123-0001-SetUnderlineStyle_command002 - - COMMAND wingc SetPenColor GRAPHICS-WSERV-WindowGc-PublicApi-0101-0001-SetPenColor_command002 - - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - CREATE_OBJECT CFbsFont CFbsFont1 - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInPixels GRAPHICS-WSERV-WindowGc-PublicApi-0116-0001-GetNearestFontToDesignHeightInPixels_command001 - COMMAND wingc UseFont GRAPHICS-WSERV-WindowGc-PublicApi-0116-0001-UseFont_command002 - COMMAND wingc DrawText GRAPHICS-WSERV-WindowGc-PublicApi-0116-0001-DrawText_command003 - - COMMAND wingc DiscardFont - COMMAND CFbsTypefaceStore1 ~ - - COMMAND wingc Deactivate - COMMAND win EndRedraw - DELAY 500000 - - COMMAND wingc ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0121 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0122 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-0122 -//! @SYMAPI CWindowGc -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 28/12/2006 -//! @SYMTestCaseDesc Sets the strikethrough style for all subsequently drawn text. -//! Uses API elements: UseFont(), DrawText(), SetStrikethroughStyle() and DiscardFont() -//! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. -//! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. -//! 3. Create window graphic context uisng CreateContext() and return KErrNone if successed. -//! 4. Construct and Initialize the RWindowGroup using NewL(), Construct() and return KErrNone if successed. -//! 5. Construct and Initialize the RWindow using NewL(), Construct() and return KErrNone if successed. -//! 6. Set required window display mode to EColor4K using SetRequiredDisplayMode() and return KErrNone if successed. -//! 7. Set window's background color to yellow using SetBackgroundColor() and return KErrNone if successed. -//! 8. Activate the RWindow using Activate() and return KErrNone if successed. -//! 9. Set auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. -//! 10. Activate the CWindowGc using Activate() and return KErrNone if successed. -//! 11. Begin redraw the graphic context using BeginRedraw() and return KErrNone if successed. -//! 12. Sets the strikethrough style for all subsequently drawn text and return KErrNone if successed. -//! 13. Sets the pen colour to red using SetPenColor() and return KErrNone if successed. -//! 14. Sets the context's font to current graphic context by using UseFont() and return KErrNone if successed. -//! 15. Draws the text with defined font on graphic context screen by using DrawText() and return KErrNone if successed. -//! 16. Discards the font and frees up the memory used by using DiscardFont() and return KErrNone if successed. -//! 17. Deactive the CWindowGc using Deactivate() and return KErrNone if successed. -//! 18. End redraw the graphic context using EndRedraw() and return KErrNone if successed. -//! -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The text with defined font and color was redraw on the graphic context screen with character justification successfully. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command012 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetRequiredDisplayMode_command013 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetBackgroundColor_command014 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Activate_command019 - - COMMAND win BeginRedraw - - COMMAND wingc SetStrikethroughStyle GRAPHICS-WSERV-WindowGc-PublicApi-0124-0001-SetStrikethroughStyle_command002 - - COMMAND wingc SetPenColor GRAPHICS-WSERV-WindowGc-PublicApi-0101-0001-SetPenColor_command002 - - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - CREATE_OBJECT CFbsFont CFbsFont1 - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInPixels GRAPHICS-WSERV-WindowGc-PublicApi-0116-0001-GetNearestFontToDesignHeightInPixels_command001 - COMMAND wingc UseFont GRAPHICS-WSERV-WindowGc-PublicApi-0116-0001-UseFont_command002 - COMMAND wingc DrawText GRAPHICS-WSERV-WindowGc-PublicApi-0118-0001-DrawText_command003 - - COMMAND wingc DiscardFont - COMMAND CFbsTypefaceStore1 ~ - - COMMAND wingc Deactivate - COMMAND win EndRedraw - DELAY 500000 - - COMMAND wingc ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-0122 - - - - -// **************************************************************************** -// Negative testcases of CWindowGc -// **************************************************************************** - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1002 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1002 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 04/10/2007 -//! @SYMTestCaseDesc Activate(RDrawableWindow &aDevice): Execute Activate() on a CWindowGc that already activated -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Setup a CWindowGc and RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! 2. Execute Activate() on the CWindowGc to the RWindow -//! 3. Execute Activate() on the CWindowGc to the RWindow again and see if it meets expected panic code -//! 4. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=10 (Attempted to activate an already active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-1002-0001-Activate_command001 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-1002-0001-Activate_command001 - COMMAND ws Flush - END_TEST_BLOCK !PanicString=WSERV !PanicCode=10 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1002 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1003 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1003 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 04/10/2007 -//! @SYMTestCaseDesc Activate(RDrawableWindow &aDevice): Execute Activate() a CWindowGc to a invalid RDrawableWindow -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct -//! @SYMTestActions 1. Setup a CWindowGc and RWindowGroup to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 2. Execute Activate() on the CWindowGc to invalid RDrawableWindow (the RWindowGroup object) and see if it meets expected panic code -//! 3. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=6 (Invalid window handle) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-1003-0001-Activate_command001 - COMMAND ws Flush - END_TEST_BLOCK !PanicString=WSERV !PanicCode=6 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1003 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1004 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1004 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 04/10/2007 -//! @SYMTestCaseDesc Deactivate(): Execute Deactivate() a CWindowGc before Activate() it -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Setup a CWindowGc and RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! 2. Execute Deactivate() a CWindowGc before Activate() it -//! 3. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults Deactivate() a CWindowGc before Activate() it would not generate error -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012 - COMMAND wingc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wingc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1004 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1005 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1005 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 21/11/2007 -//! @SYMTestCaseDesc SetClippingRect(const TRect &aRect): execute SetClippingRect in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Setup a CWindowGc and RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 2. Execute SetClippingRect() before Activate() the CWindowGc -//! 3. Execute Flush() on the RWsSession and see if it meets expected panic code -//! 4. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingc SetClippingRect GRAPHICS-WSERV-WindowGc-PublicApi-0009-0001-SetClippingRect_command003 - COMMAND ws Flush - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1005 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1006 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1006 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 21/11/2007 -//! @SYMTestCaseDesc CancelClippingRect(): execute CancelClippingRect in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Setup a CWindowGc and RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 2. Execute CancelClippingRect() before Activate() the CWindowGc -//! 3. Execute Flush() on the RWsSession and see if it meets expected panic code -//! 4. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingc CancelClippingRect - COMMAND ws Flush - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1006 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1007 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1007 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 22/11/2007 -//! @SYMTestCaseDesc MoveTo(const TPoint &aPoint): execute MoveTo in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Setup a CWindowGc and RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 2. Execute MoveTo() before Activate() the CWindowGc -//! 3. Execute Flush() on the RWsSession and see if it meets expected panic code -//! 4. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingc MoveTo GRAPHICS-WSERV-WindowGc-PublicApi-0026-0001-MoveTo_command003 - COMMAND ws Flush - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1007 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1008 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1008 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 22/11/2007 -//! @SYMTestCaseDesc MoveBy(const TPoint &aPoint): execute MoveBy in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Setup a CWindowGc and RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 2. Execute MoveBy() before Activate() the CWindowGc -//! 3. Execute Flush() on the RWsSession and see if it meets expected panic code -//! 4. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingc MoveBy GRAPHICS-WSERV-WindowGc-PublicApi-0027-0001-MoveBy_command003 - COMMAND ws Flush - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1008 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1009 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1009 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 02/11/2007 -//! @SYMTestCaseDesc Plot(const TPoint &aPoint): execute Plot in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Setup a CWindowGc and RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 2. Execute Plot() before Activate() the CWindowGc -//! 3. Execute Flush() on the RWsSession and see if it meets expected panic code -//! 4. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingc Plot GRAPHICS-WSERV-WindowGc-PublicApi-0028-0001-Plot_command003 - COMMAND ws Flush - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1009 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1010 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1010 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 05/11/2007 -//! @SYMTestCaseDesc DrawArc(const TRect &aRect, const TPoint &aStart, const TPoint &aEnd): execute DrawArc in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Setup a CWindowGc and RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 2. Execute DrawArc() before Activate() the CWindowGc -//! 3. Execute Flush() on the RWsSession and see if it meets expected panic code -//! 4. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingc DrawArc GRAPHICS-WSERV-WindowGc-PublicApi-0029-0001-DrawArc_command003 - COMMAND ws Flush - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1010 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1011 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1011 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 05/11/2007 -//! @SYMTestCaseDesc DrawLine(const TPoint &aPoint1, const TPoint &aPoint2): execute DrawLine in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Setup a CWindowGc and RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 2. Execute DrawLine() before Activate() the CWindowGc -//! 3. Execute Flush() on the RWsSession and see if it meets expected panic code -//! 4. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingc DrawLine GRAPHICS-WSERV-WindowGc-PublicApi-0030-0001-DrawLine_command003 - COMMAND ws Flush - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1011 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1012 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1012 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 06/11/2007 -//! @SYMTestCaseDesc DrawLineTo(const TPoint &aPoint): execute DrawLineTo in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Setup a CWindowGc and RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 2. Execute DrawLineTo() before Activate() the CWindowGc -//! 3. Execute Flush() on the RWsSession and see if it meets expected panic code -//! 4. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingc DrawLineTo GRAPHICS-WSERV-WindowGc-PublicApi-0031-0001-DrawLineTo_command003 - COMMAND ws Flush - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1012 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1013 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1013 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 06/11/2007 -//! @SYMTestCaseDesc DrawLineBy(const TPoint &aPoint): execute DrawLineBy in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Setup a CWindowGc and RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 2. Execute DrawLineBy() before Activate() the CWindowGc -//! 3. Execute Flush() on the RWsSession and see if it meets expected panic code -//! 4. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingc DrawLineBy GRAPHICS-WSERV-WindowGc-PublicApi-0032-0001-DrawLineBy_command003 - COMMAND ws Flush - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1013 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1014 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1014 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 07/11/2007 -//! @SYMTestCaseDesc DrawPolyLine(const CArrayFix< TPoint > *aPointList): execute DrawPolyLine in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Setup a CWindowGc and RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 2. Execute DrawPolyLine() before Activate() the CWindowGc -//! 3. Execute Flush() on the RWsSession and see if it meets expected panic code -//! 4. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingc DrawPolyLine GRAPHICS-WSERV-WindowGc-PublicApi-0033-0001-DrawPolyLine_command003 - COMMAND ws Flush - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1014 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1015 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1015 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 07/11/2007 -//! @SYMTestCaseDesc DrawPolyLine(const TPoint *aPointList, TInt aNumPoints): execute DrawPolyLine in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Setup a CWindowGc and RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 2. Execute DrawLine() before Activate() the CWindowGc -//! 3. Execute Flush() on the RWsSession and see if it meets expected panic code -//! 4. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingc DrawPolyLine GRAPHICS-WSERV-WindowGc-PublicApi-0034-0001-DrawPolyLine_command003 - COMMAND ws Flush - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1015 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1016 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1016 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 08/11/2007 -//! @SYMTestCaseDesc DrawPie(const TRect &aRect, const TPoint &aStart, const TPoint &aEnd): execute DrawPie in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Setup a CWindowGc and RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 2. Execute DrawPie() before Activate() the CWindowGc -//! 3. Execute Flush() on the RWsSession and see if it meets expected panic code -//! 4. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingc DrawPie GRAPHICS-WSERV-WindowGc-PublicApi-0035-0001-DrawPie_command003 - COMMAND ws Flush - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1016 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1017 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1017 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 08/11/2007 -//! @SYMTestCaseDesc DrawEllipse(const TRect &aRect): execute DrawEllipse in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Setup a CWindowGc and RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 2. Execute DrawEllipse() before Activate() the CWindowGc -//! 3. Execute Flush() on the RWsSession and see if it meets expected panic code -//! 4. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingc DrawEllipse GRAPHICS-WSERV-WindowGc-PublicApi-0036-0001-DrawEllipse_command003 - COMMAND ws Flush - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1017 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1018 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1018 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 09/11/2007 -//! @SYMTestCaseDesc DrawRect(const TRect &aRect): execute DrawRect in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Setup a CWindowGc and RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 2. Execute DrawRect() before Activate() the CWindowGc -//! 3. Execute Flush() on the RWsSession and see if it meets expected panic code -//! 4. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingc DrawRect GRAPHICS-WSERV-WindowGc-PublicApi-0037-0001-DrawRect_command003 - COMMAND ws Flush - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1018 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1019 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1019 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 09/11/2007 -//! @SYMTestCaseDesc DrawRoundRect(const TRect &aRect, const TSize &aEllipse): execute DrawRoundRect in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Setup a CWindowGc and RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 2. Execute DrawLine() before Activate() the CWindowGc -//! 3. Execute Flush() on the RWsSession and see if it meets expected panic code -//! 4. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingc DrawRoundRect GRAPHICS-WSERV-WindowGc-PublicApi-0038-0001-DrawRoundRect_command003 - COMMAND ws Flush - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1019 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1020 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1020 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 12/11/2007 -//! @SYMTestCaseDesc DrawPolygon(const CArrayFix< TPoint > *aPointList, TFillRule aFillRule=EAlternate): execute DrawPolygon in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Setup a CWindowGc and RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 2. Execute DrawPolygon() before Activate() the CWindowGc -//! 3. Execute Flush() on the RWsSession and see if it meets expected panic code -//! 4. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingc DrawPolygon GRAPHICS-WSERV-WindowGc-PublicApi-0039-0001-DrawPolygon_command003 - COMMAND ws Flush - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1020 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1021 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1021 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 12/11/2007 -//! @SYMTestCaseDesc DrawPolygon(const TPoint *aPointList, TInt aNumPoints, TFillRule aFillRule=EAlternate): execute DrawPolygon in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Setup a CWindowGc and RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 2. Execute DrawPolygon() before Activate() the CWindowGc -//! 3. Execute Flush() on the RWsSession and see if it meets expected panic code -//! 4. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingc DrawPolygon GRAPHICS-WSERV-WindowGc-PublicApi-0040-0001-DrawPolygon_command003 - COMMAND ws Flush - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1021 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1022 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1022 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 13/11/2007 -//! @SYMTestCaseDesc DrawBitmap(const TPoint &aTopLeft, const CFbsBitmap *aDevice): execute DrawBitmap in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Setup a CWindowGc and RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 2. New and Load CFbsBitmap as drawing bitmap -//! 3. Execute DrawBitmap() before Activate() the CWindowGc -//! 4. Execute Flush() on the RWsSession and see if it meets expected panic code -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - CREATE_OBJECT CFbsBitmap fbsbmp - COMMAND fbsbmp new - COMMAND fbsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0041-0001-Load_command002 - COMMAND wingc DrawBitmap GRAPHICS-WSERV-WindowGc-PublicApi-0041-0001-DrawBitmap_command010 - COMMAND ws Flush - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1022 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1023 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1023 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 13/11/2007 -//! @SYMTestCaseDesc DrawBitmap(const TRect &aDestRect, const CFbsBitmap *aDevice): execute DrawBitmap in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Setup a CWindowGc and RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 2. New and Load CFbsBitmap as drawing bitmap -//! 3. Execute DrawBitmap() before Activate() the CWindowGc -//! 4. Execute Flush() on the RWsSession and see if it meets expected panic code -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - CREATE_OBJECT CFbsBitmap fbsbmp - COMMAND fbsbmp new - COMMAND fbsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0042-0001-Load_command002 - COMMAND wingc DrawBitmap GRAPHICS-WSERV-WindowGc-PublicApi-0042-0001-DrawBitmap_command009 - COMMAND ws Flush - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1023 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1024 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1024 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 13/11/2007 -//! @SYMTestCaseDesc DrawBitmap(const TRect &aDestRect, const CFbsBitmap *aDevice, const TRect &aSourceRect): execute DrawBitmap in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Setup a CWindowGc and RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 2. New and Load CFbsBitmap as drawing bitmap -//! 3. Execute DrawBitmap() before Activate() the CWindowGc -//! 4. Execute Flush() on the RWsSession and see if it meets expected panic code -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - CREATE_OBJECT CFbsBitmap fbsbmp - COMMAND fbsbmp new - COMMAND fbsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0043-0001-Load_command002 - COMMAND wingc DrawBitmap GRAPHICS-WSERV-WindowGc-PublicApi-0043-0001-DrawBitmap_command009 - COMMAND ws Flush - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1024 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1025 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1025 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 14/11/2007 -//! @SYMTestCaseDesc DrawBitmapMasked(const TRect &aDestRect, const CFbsBitmap *aBitmap, const TRect &aSourceRect, const CFbsBitmap *aMaskBitmap, TBool aInvertMask): execute DrawBitmapMasked in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Setup a CWindowGc and RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 2. New and Load CFbsBitmap as drawing bitmap and mask bitmap -//! 3. Execute DrawBitmapMasked() before Activate() the CWindowGc -//! 4. Execute Flush() on the RWsSession and see if it meets expected panic code -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - CREATE_OBJECT CFbsBitmap fbsbmp - CREATE_OBJECT CFbsBitmap fbsmaskbmp - COMMAND fbsbmp new - COMMAND fbsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0044-0001-Load_command002 - COMMAND fbsmaskbmp new - COMMAND fbsmaskbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0044-0001-Load_command010 - COMMAND wingc DrawBitmapMasked GRAPHICS-WSERV-WindowGc-PublicApi-0044-0001-DrawBitmapMasked_command015 - COMMAND ws Flush - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1025 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1026 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1026 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 14/11/2007 -//! @SYMTestCaseDesc DrawBitmapMasked(const TRect &aDestRect, const CWsBitmap *aBitmap, const TRect &aSourceRect, const CWsBitmap *aMaskBitmap, TBool aInvertMask): execute DrawBitmap in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Setup a CWindowGc and RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 2. New and Load CWsBitmap as drawing bitmap and mask bitmap -//! 3. Execute DrawBitmapMasked() before Activate() the CWindowGc -//! 4. Execute Flush() on the RWsSession and see if it meets expected panic code -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - CREATE_OBJECT CWsBitmap wsbmp - CREATE_OBJECT CWsBitmap wsmaskbmp - COMMAND wsbmp new GRAPHICS-WSERV-WindowGc-PublicApi-0045-0001-new_command001 - COMMAND wsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0045-0001-Load_command002 - COMMAND wsmaskbmp new GRAPHICS-WSERV-WindowGc-PublicApi-0045-0001-new_command004 - COMMAND wsmaskbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0045-0001-Load_command005 - COMMAND wingc DrawBitmapMasked GRAPHICS-WSERV-WindowGc-PublicApi-0045-0001-DrawBitmapMasked_command009 - COMMAND ws Flush - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1026 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1027 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1027 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 23/11/2007 -//! @SYMTestCaseDesc Clear(): execute Clear in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Setup a CWindowGc and RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 2. Execute Clear() before Activate() the CWindowGc -//! 3. Execute Flush() on the RWsSession and see if it meets expected panic code -//! 4. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingc Clear - COMMAND ws Flush - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1027 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1028 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1028 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 23/11/2007 -//! @SYMTestCaseDesc Clear(const TRect &aRect): execute Clear in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Setup a CWindowGc and RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 2. Execute Clear() before Activate() the CWindowGc -//! 3. Execute Flush() on the RWsSession and see if it meets expected panic code -//! 4. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingc Clear GRAPHICS-WSERV-WindowGc-PublicApi-0049-0001-Clear_command003 - COMMAND ws Flush - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1028 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1029 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1029 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 23/11/2007 -//! @SYMTestCaseDesc CopyRect(const TPoint &anOffset, const TRect &aRect): execute CopyRect in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Setup a CWindowGc and RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 2. Execute CopyRect() before Activate() the CWindowGc -//! 3. Execute Flush() on the RWsSession and see if it meets expected panic code -//! 4. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingc CopyRect GRAPHICS-WSERV-WindowGc-PublicApi-0050-0001-CopyRect_command007 - COMMAND ws Flush - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1029 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1030 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1030 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 15/11/2007 -//! @SYMTestCaseDesc BitBlt(const TPoint &aPos, const CFbsBitmap *aBitmap): execute BitBlt in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Setup a CWindowGc and RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 2. New and Load CFbsBitmap as drawing bitmap -//! 3. Execute BitBlt() before Activate() the CWindowGc -//! 4. Execute Flush() on the RWsSession and see if it meets expected panic code -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - CREATE_OBJECT CFbsBitmap fbsbmp - COMMAND fbsbmp new - COMMAND fbsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0051-0001-Load_command002 - COMMAND wingc BitBlt GRAPHICS-WSERV-WindowGc-PublicApi-0051-0001-BitBlt_command009 - COMMAND ws Flush - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1030 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1031 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1031 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 15/11/2007 -//! @SYMTestCaseDesc BitBlt(const TPoint &aDestination, const CFbsBitmap *aBitmap, const TRect &aSource): execute BitBlt in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Setup a CWindowGc and RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 2. New and Load CFbsBitmap as drawing bitmap -//! 3. Execute BitBlt() before Activate() the CWindowGc -//! 4. Execute Flush() on the RWsSession and see if it meets expected panic code -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - CREATE_OBJECT CFbsBitmap fbsbmp - COMMAND fbsbmp new - COMMAND fbsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0052-0001-Load_command002 - COMMAND wingc BitBlt GRAPHICS-WSERV-WindowGc-PublicApi-0052-0001-BitBlt_command009 - COMMAND ws Flush - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1031 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1032 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1032 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 16/11/2007 -//! @SYMTestCaseDesc BitBltMasked(const TPoint &aPoint, const CFbsBitmap *aBitmap, const TRect &aSourceRect, const CFbsBitmap *aMaskBitmap, TBool aInvertMask): execute BitBltMasked in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Setup a CWindowGc and RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 2. New and Load CFbsBitmap as drawing bitmap and mask bitmap -//! 3. Execute BitBltMasked() before Activate() the CWindowGc -//! 4. Execute Flush() on the RWsSession and see if it meets expected panic code -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - CREATE_OBJECT CFbsBitmap fbsbmp - CREATE_OBJECT CFbsBitmap fbsmaskbmp - COMMAND fbsbmp new - COMMAND fbsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0053-0001-Load_command002 - COMMAND fbsmaskbmp new - COMMAND fbsmaskbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0053-0001-Load_command008 - COMMAND wingc BitBltMasked GRAPHICS-WSERV-WindowGc-PublicApi-0053-0001-BitBltMasked_command012 - COMMAND ws Flush - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1032 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1033 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1033 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 15/11/2007 -//! @SYMTestCaseDesc BitBlt(const TPoint &aPoint, const CWsBitmap *aBitmap): execute BitBlt in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Setup a CWindowGc and RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 2. New and Load CWsBitmap as drawing bitmap -//! 3. Execute BitBlt() before Activate() the CWindowGc -//! 4. Execute Flush() on the RWsSession and see if it meets expected panic code -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - CREATE_OBJECT CWsBitmap wsbmp - COMMAND wsbmp new GRAPHICS-WSERV-WindowGc-PublicApi-0054-0001-new_command001 - COMMAND wsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0054-0001-Load_command002 - COMMAND wingc BitBlt GRAPHICS-WSERV-WindowGc-PublicApi-0054-0001-BitBlt_command006 - COMMAND ws Flush - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1033 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1034 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1034 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 15/11/2007 -//! @SYMTestCaseDesc BitBlt(const TPoint &aDestination, const CWsBitmap *aBitmap, const TRect &aSource): execute BitBlt in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Setup a CWindowGc and RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 2. New and Load CWsBitmap as drawing bitmap -//! 3. Execute BitBlt() before Activate() the CWindowGc -//! 4. Execute Flush() on the RWsSession and see if it meets expected panic code -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - CREATE_OBJECT CWsBitmap wsbmp - COMMAND wsbmp new GRAPHICS-WSERV-WindowGc-PublicApi-0055-0001-new_command001 - COMMAND wsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0055-0001-Load_command002 - COMMAND wingc BitBlt GRAPHICS-WSERV-WindowGc-PublicApi-0055-0001-BitBlt_command006 - COMMAND ws Flush - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1034 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1035 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1035 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 16/11/2007 -//! @SYMTestCaseDesc BitBltMasked(const TPoint &aPoint, const CWsBitmap *aBitmap, const TRect &aSourceRect, const CWsBitmap *aMaskBitmap, TBool aInvertMask): execute BitBltMasked in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Setup a CWindowGc and RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 2. New and Load CWsBitmap as drawing bitmap and mask bitmap -//! 3. Execute BitBltMasked() before Activate() the CWindowGc -//! 4. Execute Flush() on the RWsSession and see if it meets expected panic code -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - CREATE_OBJECT CWsBitmap wsbmp - CREATE_OBJECT CWsBitmap wsmaskbmp - COMMAND wsbmp new GRAPHICS-WSERV-WindowGc-PublicApi-0056-0001-new_command001 - COMMAND wsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0056-0001-Load_command002 - COMMAND wsmaskbmp new GRAPHICS-WSERV-WindowGc-PublicApi-0056-0001-new_command004 - COMMAND wsmaskbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0056-0001-Load_command005 - COMMAND wingc BitBltMasked GRAPHICS-WSERV-WindowGc-PublicApi-0056-0001-BitBltMasked_command009 - COMMAND ws Flush - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1035 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1036 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1036 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 26/11/2007 -//! @SYMTestCaseDesc SetClippingRegion(const TRegion &aRegion): execute SetClippingRegion in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Setup a CWindowGc and RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 2. Execute SetClippingRegion() before Activate() the CWindowGc -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingc SetClippingRegion GRAPHICS-WSERV-WindowGc-PublicApi-0061-0001-SetClippingRegion_command003 - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1036 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1037 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1037 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 26/11/2007 -//! @SYMTestCaseDesc CancelClippingRegion(): execute CancelClippingRegion in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Setup a CWindowGc and RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 2. Execute CancelClippingRegion() before Activate() the CWindowGc -//! 3. Execute Flush() on the RWsSession and see if it meets expected panic code -//! 4. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - COMMAND wingc CancelClippingRegion - COMMAND ws Flush - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1037 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1038 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1038 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 19/11/2007 -//! @SYMTestCaseDesc AlphaBlendBitmaps(const TPoint &aDestPt, const CFbsBitmap *aSrcBmp, const TRect &aSrcRect, const CFbsBitmap *aAlphaBmp, const TPoint &aAlphaPt): execute AlphaBlendBitmaps in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Setup a CWindowGc and RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 2. New and Load CFbsBitmap as source bitmap and alpha bitmap -//! 3. Execute AlphaBlendBitmaps() before Activate() the CWindowGc -//! 4. Execute Flush() on the RWsSession and see if it meets expected panic code -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - CREATE_OBJECT CFbsBitmap fbsbmp - CREATE_OBJECT CFbsBitmap fbsalphabmp - COMMAND fbsbmp new - COMMAND fbsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0066-0001-Load_command002 - COMMAND fbsalphabmp new - COMMAND fbsalphabmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0066-0001-Load_command007 - COMMAND wingc AlphaBlendBitmaps GRAPHICS-WSERV-WindowGc-PublicApi-0066-0001-AlphaBlendBitmaps_command013 - COMMAND ws Flush - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1038 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1039 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1039 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 19/11/2007 -//! @SYMTestCaseDesc AlphaBlendBitmaps(const TPoint &aDestPt, const CWsBitmap *aSrcBmp, const TRect &aSrcRect, const CWsBitmap *aAlphaBmp, const TPoint &aAlphaPt): execute AlphaBlendBitmaps in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Setup a CWindowGc and RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 2. New and Load CWsBitmap as source bitmap and alpha bitmap -//! 3. Execute AlphaBlendBitmaps() before Activate() the CWindowGc -//! 4. Execute Flush() on the RWsSession and see if it meets expected panic code -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - CREATE_OBJECT CWsBitmap wsbmp - CREATE_OBJECT CWsBitmap wsalphabmp - COMMAND wsbmp new GRAPHICS-WSERV-WindowGc-PublicApi-0067-0001-new_command001 - COMMAND wsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0067-0001-Load_command002 - COMMAND wsalphabmp new GRAPHICS-WSERV-WindowGc-PublicApi-0067-0001-new_command004 - COMMAND wsalphabmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0067-0001-Load_command005 - COMMAND wingc AlphaBlendBitmaps GRAPHICS-WSERV-WindowGc-PublicApi-0067-0001-AlphaBlendBitmaps_command009 - COMMAND ws Flush - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1039 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1040 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1040 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 20/11/2007 -//! @SYMTestCaseDesc DrawWsGraphic(const TWsGraphicId &aId, const TRect &aDestRect): execute DrawWsGraphic in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Setup a CWindowGc and RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 2. New and Load a source CFbsBitmap and a mask CFbsBitmap -//! and use them to create a non-transcient artwork CWsGraphicBitmap -//! 3. Execute DrawWsGraphic() before Activate() the CWindowGc -//! 4. Execute Flush() on the RWsSession and see if it meets expected panic code -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - CREATE_OBJECT CFbsBitmap fbsbmp - CREATE_OBJECT CFbsBitmap fbsmaskbmp - CREATE_OBJECT CWsGraphicBitmap wsgraph - COMMAND fbsbmp new - COMMAND fbsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0068-0001-Load_command002 - COMMAND fbsmaskbmp new - COMMAND fbsmaskbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0068-0001-Load_command005 - COMMAND wsgraph NewL GRAPHICS-WSERV-WindowGc-PublicApi-0068-0001-NewL_command007 - COMMAND wingc DrawWsGraphic GRAPHICS-WSERV-WindowGc-PublicApi-0068-0001-DrawWsGraphic_command011 - COMMAND ws Flush - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1040 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1041 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1041 -//! @SYMAPI CWindowGc -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 20/11/2007 -//! @SYMTestCaseDesc DrawWsGraphic(const TWsGraphicId &aId, const TRect &aDestRect, const TDesC8 &aData): execute DrawWsGraphic in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Setup a CWindowGc and RWindow to test -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 2. New and Load a source CFbsBitmap and a mask CFbsBitmap -//! and use them to create a non-transcient artwork CWsGraphicBitmap -//! 3. New RWsGraphicMsgBuf to be attached to CWindowGc::DrawWsGraphic -//! 4. Execute DrawWsGraphic() before Activate() the CWindowGc -//! 5. Execute Flush() on the RWsSession and see if it meets expected panic code -//! 6. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004 - COMMAND scrdev Construct GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005 - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006 - CREATE_OBJECT CFbsBitmap fbsbmp - CREATE_OBJECT CFbsBitmap fbsmaskbmp - CREATE_OBJECT CWsGraphicBitmap wsgraph - CREATE_OBJECT RWsGraphicMsgBuf wsgraphmsg - COMMAND fbsbmp new - COMMAND fbsbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0069-0001-Load_command002 - COMMAND fbsmaskbmp new - COMMAND fbsmaskbmp Load GRAPHICS-WSERV-WindowGc-PublicApi-0069-0001-Load_command005 - COMMAND wsgraph NewL GRAPHICS-WSERV-WindowGc-PublicApi-0069-0001-NewL_command007 - COMMAND wsgraphmsg new - COMMAND wingc DrawWsGraphic GRAPHICS-WSERV-WindowGc-PublicApi-0069-0001-DrawWsGraphic_command013 - COMMAND ws Flush - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1041 - - - - -//! ----------------------------------------------------------------------------------------- - - - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1101 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1101 -//! @SYMAPI CWindowGc -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 05/11/2007 -//! @SYMTestCaseDesc SetPenColor(const TRgb &aColor): execute SetPenColor in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. -//! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. -//! 3. Create window graphic context using CreateContext() and return KErrNone if successed. -//! 4. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. -//! 5. Sets the pen colour to red using SetPenColor() and check if it generates expected panic code -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 - COMMAND wingc SetPenColor GRAPHICS-WSERV-WindowGc-PublicApi-0101-0001-SetPenColor_command002 - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1101 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1102 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1102 -//! @SYMAPI CWindowGc -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 05/11/2007 -//! @SYMTestCaseDesc SetPenStyle(TPenStyle aPenStyle): execute SetPenStyle in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. -//! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. -//! 3. Create window graphic context using CreateContext() and return KErrNone if successed. -//! 4. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. -//! 5. Sets the line drawing style to EDotDotDashPen for the pen using SetPenStyle() and check if it generates expected panic code -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 - COMMAND wingc SetPenStyle GRAPHICS-WSERV-WindowGc-PublicApi-0102-0001-SetPenStyle_command002 - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1102 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1103 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1103 -//! @SYMAPI CWindowGc -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 05/11/2007 -//! @SYMTestCaseDesc SetPenSize(const TSize &aSize): execute SetPenSize in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. -//! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. -//! 3. Create window graphic context using CreateContext() and return KErrNone if successed. -//! 4. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. -//! 5. Sets the line drawing size to 20 width, 40 height for the pen using SetPenSize() and check if it generates expected panic code -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 - COMMAND wingc SetPenSize GRAPHICS-WSERV-WindowGc-PublicApi-0103-0001-SetPenSize_command002 - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1103 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1104 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1104 -//! @SYMAPI CWindowGc -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 06/11/2007 -//! @SYMTestCaseDesc SetBrushColor(const TRgb &aColor);: execute SetBrushColor in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. -//! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. -//! 3. Create window graphic context using CreateContext() and return KErrNone if successed. -//! 4. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. -//! 5. Sets the brush colour using SetBrushColor() and check if it generates expected panic code -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 - COMMAND wingc SetBrushColor GRAPHICS-WSERV-WindowGc-PublicApi-0104-0001-SetBrushColor_command002 - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1104 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1105 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1105 -//! @SYMAPI CWindowGc -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 06/11/2007 -//! @SYMTestCaseDesc SetBrushStyle(TBrushStyle aBrushStyle): execute SetBrushStyle in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. -//! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. -//! 3. Create window graphic context using CreateContext() and return KErrNone if successed. -//! 4. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. -//! 5. Sets the line drawing style to ESolidBrush for the brush using SetBrushStyle() and check if it generates expected panic code -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 - COMMAND wingc SetBrushStyle GRAPHICS-WSERV-WindowGc-PublicApi-0105-0001-SetBrushStyle_command002 - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1105 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1106 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1106 -//! @SYMAPI CWindowGc -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 07/11/2007 -//! @SYMTestCaseDesc SetBrushOrigin(const TPoint &aOrigin): execute SetBrushOrigin in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. -//! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. -//! 3. Create window graphic context using CreateContext() and return KErrNone if successed. -//! 4. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. -//! 5. Sets the brush pattern origin using SetBrushOrigin() and check if it generates expected panic code -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 - COMMAND wingc SetBrushOrigin GRAPHICS-WSERV-WindowGc-PublicApi-0106-0001-SetBrushOrigin_command002 - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1106 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1107 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1107 -//! @SYMAPI CWindowGc -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 07/11/2007 -//! @SYMTestCaseDesc SetOrigin(const TPoint &aPoint): execute SetOrigin in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. -//! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. -//! 3. Create window graphic context using CreateContext() and return KErrNone if successed. -//! 4. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. -//! 5. Sets the position of the co-ordinate origin using SetOrigin() and check if it generates expected panic code -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 - COMMAND wingc SetOrigin GRAPHICS-WSERV-WindowGc-PublicApi-0107-0001-SetOrigin_command002 - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1107 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1108 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1108 -//! @SYMAPI CWindowGc -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 08/11/2007 -//! @SYMTestCaseDesc SetDrawMode(TDrawMode aDrawingMode): execute SetDrawMode in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. -//! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. -//! 3. Create window graphic context using CreateContext() and return KErrNone if successed. -//! 4. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. -//! 5. Sets the drawing mode to EDrawModeXOR using SetDrawMode() and check if it generates expected panic code -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 - COMMAND wingc SetDrawMode GRAPHICS-WSERV-WindowGc-PublicApi-0108-0001-SetDrawMode_command002 - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1108 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1109 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1109 -//! @SYMAPI CWindowGc -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 08/11/2007 -//! @SYMTestCaseDesc SetOpaque(TBool aDrawOpaque): execute SetOpaque in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. -//! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. -//! 3. Create window graphic context using CreateContext() and return KErrNone if successed. -//! 4. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. -//! 5. Sets an opaque flag on the window and check if it generates expected panic code -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 - COMMAND wingc SetOpaque GRAPHICS-WSERV-WindowGc-PublicApi-0109-0001-SetOpaque_command002 - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1109 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1110 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1110 -//! @SYMAPI CWindowGc -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 09/11/2007 -//! @SYMTestCaseDesc SetFaded(TBool aFaded): execute SetFaded in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. -//! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. -//! 3. Create window graphic context using CreateContext() and return KErrNone if successed. -//! 4. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. -//! 5. Sets the graphics context to faded using SetFaded() and check if it generates expected panic code -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 - COMMAND wingc SetFaded GRAPHICS-WSERV-WindowGc-PublicApi-0110-0001-SetFaded_command002 - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1110 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1111 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1111 -//! @SYMAPI CWindowGc -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 09/11/2007 -//! @SYMTestCaseDesc SetFadingParameters(TUint8 aBlackMap, TUint8 aWhiteMap): execute SetFadingParameters in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. -//! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. -//! 3. Create window graphic context using CreateContext() and return KErrNone if successed. -//! 4. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. -//! 5. Sets the fading parameters using SetFadingParameters() with BlackMap to 100, WhiteMap to 100 and check if it generates expected panic code -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 - COMMAND wingc SetFadingParameters GRAPHICS-WSERV-WindowGc-PublicApi-0111-0001-SetFadingParameters_command002 - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1111 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1112 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1112 -//! @SYMAPI CWindowGc -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 12/11/2007 -//! @SYMTestCaseDesc SetDitherOrigin(const TPoint &aPoint): execute SetDitherOrigin in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. -//! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. -//! 3. Create window graphic context using CreateContext() and return KErrNone if successed. -//! 4. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. -//! 5. Sets the origin used for colour dithering using SetDitherOrigin() with position (250,25) and check if it generates expected panic code -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 - COMMAND wingc SetDitherOrigin GRAPHICS-WSERV-WindowGc-PublicApi-0112-0001-SetDitherOrigin_command002 - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1112 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1113 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1113 -//! @SYMAPI CWindowGc -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 12/11/2007 -//! @SYMTestCaseDesc MapColors(const TRect &aRect, const TRgb *aColors, TInt aNumPairs, TBool aMapForwards): execute MapColors in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. -//! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. -//! 3. Create window graphic context using CreateContext() and return KErrNone if successed. -//! 4. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. -//! 5. Re-maps pixel colours within a rectangle using MapColors() and check if it generates expected panic code -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 - COMMAND wingc MapColors GRAPHICS-WSERV-WindowGc-PublicApi-0113-0001-MapColors_command002 - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1113 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1114 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1114 -//! @SYMAPI CWindowGc -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 13/11/2007 -//! @SYMTestCaseDesc UseBrushPattern(const CFbsBitmap *aDevice): execute UseBrushPattern in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. -//! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. -//! 3. Create window graphic context using CreateContext() and return KErrNone if successed. -//! 4. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. -//! 5. Sets the brush pattern to the specified bitmap by using UseBrushPattern() and check if it generates expected panic code -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 - CREATE_OBJECT CFbsBitmap fbsBitmap - COMMAND fbsBitmap new - COMMAND fbsBitmap Load GRAPHICS-WSERV-WindowGc-PublicApi-0115-0001-Load_command003 - COMMAND wingc UseBrushPattern GRAPHICS-WSERV-WindowGc-PublicApi-0115-0001-UseBrushPattern_command005 - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1114 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1115 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1115 -//! @SYMAPI CWindowGc -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 13/11/2007 -//! @SYMTestCaseDesc DiscardBrushPattern(): execute DiscardBrushPattern in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. -//! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. -//! 3. Create window graphic context using CreateContext() and return KErrNone if successed. -//! 4. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. -//! 5. Discards a non-built-in brush pattern by using UseBrushPattern() and check if it generates expected panic code -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 - COMMAND wingc DiscardBrushPattern - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1115 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1116 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1116 -//! @SYMAPI CWindowGc -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 14/11/2007 -//! @SYMTestCaseDesc UseFont(const CFont *aFont): execute UseFont in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. -//! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. -//! 3. Create window graphic context using CreateContext() and return KErrNone if successed. -//! 4. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. -//! 5. NewL() a CFbsTypefaceStore object and using GetNearestFontToDesignHeightInPixels() to get the font which is the nearest to the given font specification -//! 6. Sets this context's font by using UseFont() and check if it generates expected panic code -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 - CREATE_OBJECT CFbsTypefaceStore CFbsTypefaceStore1 - CREATE_OBJECT CFbsFont CFbsFont1 - COMMAND CFbsTypefaceStore1 NewL - COMMAND CFbsTypefaceStore1 GetNearestFontToDesignHeightInPixels GRAPHICS-WSERV-WindowGc-PublicApi-0116-0001-GetNearestFontToDesignHeightInPixels_command001 - COMMAND wingc UseFont GRAPHICS-WSERV-WindowGc-PublicApi-0116-0001-UseFont_command002 - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1116 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1117 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1117 -//! @SYMAPI CWindowGc -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 19/11/2007 -//! @SYMTestCaseDesc DrawText(const TDesC &aBuf, const TPoint &aPos): execute DrawText in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. -//! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. -//! 3. Create window graphic context using CreateContext() and return KErrNone if successed. -//! 4. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. -//! 5. Draws horizontal text with no surrounding box by using DrawTextVertical() and check if it generates expected panic code -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 - COMMAND wingc DrawText GRAPHICS-WSERV-WindowGc-PublicApi-0116-0001-DrawText_command003 - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1117 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1118 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1118 -//! @SYMAPI CWindowGc -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 19/11/2007 -//! @SYMTestCaseDesc DrawText(const TDesC &aBuf, const TRect &aBox, TInt aBaselineOffset, TTextAlign aHoriz=ELeft, TInt aLeftMrg=0): execute DrawText in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. -//! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. -//! 3. Create window graphic context using CreateContext() and return KErrNone if successed. -//! 4. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. -//! 5. Draws horizontal text within a cleared box by using DrawTextVertical() and check if it generates expected panic code -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 - COMMAND wingc DrawText GRAPHICS-WSERV-WindowGc-PublicApi-0118-0001-DrawText_command003 - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1118 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1119 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1119 -//! @SYMAPI CWindowGc -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 15/11/2007 -//! @SYMTestCaseDesc SetWordJustification(TInt aExcessWidth, TInt aNumGaps): execute SetWordJustification in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. -//! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. -//! 3. Create window graphic context using CreateContext() and return KErrNone if successed. -//! 4. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. -//! 5. Sets word justification by using SetWordJustification() and check if it generates expected panic code -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 - COMMAND wingc SetWordJustification GRAPHICS-WSERV-WindowGc-PublicApi-0119-0001-SetWordJustification_command002 - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1119 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1120 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1120 -//! @SYMAPI CWindowGc -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 15/11/2007 -//! @SYMTestCaseDesc SetCharJustification(TInt aExcessWidth, TInt aNumChars): execute SetCharJustification in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. -//! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. -//! 3. Create window graphic context using CreateContext() and return KErrNone if successed. -//! 4. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. -//! 5. Sets the character justification by using SetCharJustification() and check if it generates expected panic code -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 - COMMAND wingc SetCharJustification GRAPHICS-WSERV-WindowGc-PublicApi-0120-0001-SetCharJustification_command002 - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1120 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1121 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1121 -//! @SYMAPI CWindowGc -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 20/11/2007 -//! @SYMTestCaseDesc DrawTextVertical(const TDesC &aText, const TPoint &aPos, TBool aUp): execute DrawTextVertical in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. -//! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. -//! 3. Create window graphic context using CreateContext() and return KErrNone if successed. -//! 4. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. -//! 5. Draws vertical text in the specified direction by using DrawTextVertical() and check if it generates expected panic code -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 - COMMAND wingc DrawTextVertical GRAPHICS-WSERV-WindowGc-PublicApi-0121-0001-DrawTextVertical_command003 - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1121 - - -//!START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1122 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1122 -//! @SYMAPI CWindowGc -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 20/11/2007 -//! @SYMTestCaseDesc DrawTextVertical(const TDesC &aText, const TRect &aBox, TInt aBaselineOffset, TBool aUp, TTextAlign aVert=ELeft, TInt aMargin=0): execute DrawTextVertical in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. -//! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. -//! 3. Create window graphic context using CreateContext() and return KErrNone if successed. -//! 4. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. -//! 5. Draws text vertically in the specified direction, within a box of the specified size by using DrawTextVertical() and check if it generates expected panic code -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic KERN-EXEC code=3 -//! @SYMTestType CIT -//! START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini -//! CREATE_OBJECT RWsSession ws -//! CREATE_OBJECT CWsScreenDevice scrdev -//! CREATE_OBJECT CWindowGc wingc -//! COMMAND ws new -//! COMMAND ws Connect -//! COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 -//! COMMAND scrdev Construct -//! COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 -//! COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 -//! COMMAND wingc DrawTextVertical GRAPHICS-WSERV-WindowGc-PublicApi-0122-0001-DrawTextVertical_command003 -//! END_TEST_BLOCK !PanicString=KERN-EXEC !PanicCode=3 -//! RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -//!END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1122 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1123 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1123 -//! @SYMAPI CWindowGc -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 16/11/2007 -//! @SYMTestCaseDesc SetUnderlineStyle(TFontUnderline aUnderlineStyle): execute SetUnderlineStyle in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. -//! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. -//! 3. Create window graphic context using CreateContext() and return KErrNone if successed. -//! 4. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. -//! 5. Sets the underline style for all subsequently drawn text by using SetUnderlineStyle() and check if it generates expected panic code -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 - COMMAND wingc SetUnderlineStyle GRAPHICS-WSERV-WindowGc-PublicApi-0123-0001-SetUnderlineStyle_command002 - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1123 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1124 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1124 -//! @SYMAPI CWindowGc -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 16/11/2007 -//! @SYMTestCaseDesc SetStrikethroughStyle(TFontStrikethrough aStrikethroughStyle): execute SetStrikethroughStyle in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. -//! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. -//! 3. Create window graphic context using CreateContext() and return KErrNone if successed. -//! 4. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. -//! 5. Sets the strikethrough style for all subsequently drawn text by using SetStrikethroughStyle() and check if it generates expected panic code -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 - COMMAND wingc SetStrikethroughStyle GRAPHICS-WSERV-WindowGc-PublicApi-0124-0001-SetStrikethroughStyle_command002 - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1124 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1125 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1125 -//! @SYMAPI CWindowGc -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 14/11/2007 -//! @SYMTestCaseDesc DiscardFont(): execute DiscardFont in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. -//! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. -//! 3. Create window graphic context using CreateContext() and return KErrNone if successed. -//! 4. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. -//! 5. Discards a font by using DiscardFont() and check if it generates expected panic code -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 - COMMAND wingc DiscardFont - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1125 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1126 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1126 -//! @SYMAPI CWindowGc -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 14/11/2007 -//! @SYMTestCaseDesc Reset(): execute Reset in a non-active graphics context -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. -//! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. -//! 3. Create window graphic context using CreateContext() and return KErrNone if successed. -//! 4. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. -//! 5. Resets the graphics context to its default settings by using Reset() and check if it generates expected panic code -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=9 (Attempted to use a non-active graphics context) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 - COMMAND wingc Reset - END_TEST_BLOCK !PanicString=WSERV !PanicCode=9 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1126 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1127 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1127 -//! @SYMAPI CWindowGc -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 21/11/2007 -//! @SYMTestCaseDesc MapColors(const TRect &aRect, const TRgb *aColors, TInt aNumPairs, TBool aMapForwards): execute MapColors with NumPairs greater than 16 -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. -//! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. -//! 3. Create window graphic context using CreateContext() and return KErrNone if successed. -//! 4. Construct and Initialize the RWindowGroup using NewL(), Construct() and return KErrNone if successed. -//! 5. Construct and Initialize the RWindow using NewL(), Construct() and return KErrNone if successed. -//! 6. Activate the CWindowGc using Activate() and return KErrNone if successed. -//! 7. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. -//! 8. MapColors with NumPairs greater than 16 (e.g. 18) and check if it generates expected panic code -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic W32 code=4 (Raised by CWindowGc::MapColors() when its aNumPairs argument has a value greater than 16) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command012 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Activate_command019 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 - COMMAND wingc MapColors GRAPHICS-WSERV-WindowGc-PublicApi-1126-0001-MapColors_command002 - END_TEST_BLOCK !PanicString=W32 !PanicCode=4 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1127 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1128 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1128 -//! @SYMAPI CWindowGc -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 22/11/2007 -//! @SYMTestCaseDesc DrawText(const TDesC &aBuf, const TPoint &aPos): execute DrawText with no active font -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. -//! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. -//! 3. Create window graphic context using CreateContext() and return KErrNone if successed. -//! 4. Construct and Initialize the RWindowGroup using NewL(), Construct() and return KErrNone if successed. -//! 5. Construct and Initialize the RWindow using NewL(), Construct() and return KErrNone if successed. -//! 6. Activate the CWindowGc using Activate() and return KErrNone if successed. -//! 7. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. -//! 8. Draws horizontal text with no surrounding box by using DrawTextVertical() and check if it generates expected panic code -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=14 (Printing with no active font) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command012 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Activate_command019 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 - COMMAND wingc DrawText GRAPHICS-WSERV-WindowGc-PublicApi-0116-0001-DrawText_command003 - END_TEST_BLOCK !PanicString=WSERV !PanicCode=14 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1128 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1129 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1129 -//! @SYMAPI CWindowGc -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 22/11/2007 -//! @SYMTestCaseDesc DrawText(const TDesC &aBuf, const TRect &aBox, TInt aBaselineOffset, TTextAlign aHoriz=ELeft, TInt aLeftMrg=0): execute DrawText with no active font -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. -//! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. -//! 3. Create window graphic context using CreateContext() and return KErrNone if successed. -//! 4. Construct and Initialize the RWindowGroup using NewL(), Construct() and return KErrNone if successed. -//! 5. Construct and Initialize the RWindow using NewL(), Construct() and return KErrNone if successed. -//! 6. Activate the CWindowGc using Activate() and return KErrNone if successed. -//! 7. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. -//! 8. Draws horizontal text within a cleared box by using DrawTextVertical() and check if it generates expected panic code -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=14 (Printing with no active font) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command012 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Activate_command019 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 - COMMAND wingc DrawText GRAPHICS-WSERV-WindowGc-PublicApi-0118-0001-DrawText_command003 - END_TEST_BLOCK !PanicString=WSERV !PanicCode=14 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1129 - - -START_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1130 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGc-PublicApi-1130 -//! @SYMAPI CWindowGc -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 23/11/2007 -//! @SYMTestCaseDesc DrawTextVertical(const TDesC &aText, const TPoint &aPos, TBool aUp): execute DrawTextVertical with no active font -//! Uses API elements: RWsSession::Connect, CWsScreenDevice::Construct & CreateContext, CWindowGc::Construct, RWindowGroup::Construct, RWindow::Construct -//! @SYMTestActions 1. Construct and connect to RWsSession using NewL() and Connect() and return KErrNone if successed. -//! 2. Construct and Initialize the CWsScreenDevice using NewL() and Construct() and return KErrNone if successed. -//! 3. Create window graphic context using CreateContext() and return KErrNone if successed. -//! 4. Construct and Initialize the RWindowGroup using NewL(), Construct() and return KErrNone if successed. -//! 5. Construct and Initialize the RWindow using NewL(), Construct() and return KErrNone if successed. -//! 6. Activate the CWindowGc using Activate() and return KErrNone if successed. -//! 7. Sets auto flush the window's messages and events using SetAutoFlush() and return the previous status if successed. -//! 8. Draws vertical text in the specified direction by using DrawTextVertical() and check if it generates expected panic code -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=14 (Printing with no active font) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wingc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006 - COMMAND wingrp new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command008 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command009 - COMMAND win new GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command011 - COMMAND win Construct GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command012 - COMMAND wingc Activate GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Activate_command019 - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017 - COMMAND wingc DrawTextVertical GRAPHICS-WSERV-WindowGc-PublicApi-0121-0001-DrawTextVertical_command003 - END_TEST_BLOCK !PanicString=WSERV !PanicCode=14 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WindowGc-PublicApi-1130 diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-WindowGroup-PublicApi.script --- a/graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-WindowGroup-PublicApi.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1699 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// -//! @file -//! @SYMTestSuiteName GRAPHICS-WSERV-WindowGroup-PublicApi -//! @SYMScriptTestEnvironment This test script requires a basic ROM. - -/////////////////////////////////////////////////////////////////////////////// -// GRAPHICS-WSERV-WindowGroup-PublicApi.script -// -// Tests all public elements of the RWindowGroup class -// as a means of confidence that the API works as expected. -// -// The purpose is to provide a regression test suite of PublishedAll APIs for -// RWindowGroup related classes. -// Negative testing is performed to confirm that correct errors are returned -// when incorrect parameters are given. -// -// The tests are fully automated. -/////////////////////////////////////////////////////////////////////////////// - - -LOAD_SUITE T_GraphicsWservAPI - - -// **************************************************************************** -// RWindowGroup -// **************************************************************************** - - -START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0001 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0001 -//! @SYMAPI RWindowGroup -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 18/12/2006 -//! @SYMTestCaseDesc RWindowGroup(): create a RWindowGroup object with default C++ constructor -//! Uses API elements: RWindowGroup() -//! @SYMTestActions simply execute new() a RWindowGroup to create the object -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults RWindowGroup object was created without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini - CREATE_OBJECT RWindowGroup wingrp - COMMAND wingrp new - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0001 - - -START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0002 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0002 -//! @SYMAPI RWindowGroup -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 18/12/2006 -//! @SYMTestCaseDesc RWindowGroup(RWsSession &aWs): create a RWindowGroup object within the specified RWsSession -//! Uses API elements: RWsSession::Connect, RWindowGroup() -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a RWindowGroup within the RWsSession -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults RWindowGroup object was created without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0002-0001-new_command04 - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0002 - - -START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0003 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0003 -//! @SYMAPI RWindowGroup -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 18/12/2006 -//! @SYMTestCaseDesc Construct(TUint32 aClientHandle): complete construction of a RWindowGroup -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a RWindowGroup within the RWsSession -//! 3. close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Construct() method returns KErrNone without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0003-0001-new_command04 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0003-0001-Construct_command05 - - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0003 - - -START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0004 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0004 -//! @SYMAPI RWindowGroup -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 11/12/2006 -//! @SYMTestCaseDesc Construct(TUint32 aClientHandle, TBool aIsFocusable): complete construction of a RWindowGroup and set initial focus state -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state = TRUE -//! 3. close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Construct() method returns KErrNone without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0004-0001-new_command04 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0004-0001-Construct_command05 - - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0004 - - -START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0005 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0005 -//! @SYMAPI RWindowGroup -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 21/08/2007 -//! @SYMTestCaseDesc Construct(TUint32 aClientHandle, CWsScreenDevice *aScreenDevice): complete construction of a RWindowGroup on a screen -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice within the RWsSession -//! 3. Create and construct a RWindowGroup within the RWsSession and on the CWsScreenDevice -//! 4. close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Construct() method returns KErrNone without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT RWindowGroup wingrp - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGroup-PublicApi-0005-0001-new_command01 - COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0005-0001-new_command04 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0005-0001-Construct_command05 - - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0005 - - -START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0006 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0006 -//! @SYMAPI RWindowGroup -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 21/08/2007 -//! @SYMTestCaseDesc Construct(TUint32 aClientHandle, TBool aIsFocusable, CWsScreenDevice *aScreenDevice): complete construction of a RWindowGroup on a screen -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice within the RWsSession -//! 3. Create and construct a RWindowGroup within the RWsSession and on the CWsScreenDevice, and set initial focus state = TRUE -//! 4. close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Construct() method returns KErrNone without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT RWindowGroup wingrp - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGroup-PublicApi-0006-0001-new_command01 - COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0006-0001-new_command04 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0006-0001-Construct_command05 - - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0006 - - -START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0007 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0007 -//! @SYMAPI RWindowGroup -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 11/12/2006 -//! @SYMTestCaseDesc ConstructChildApp(TInt aIdOfParentWindowGroup, TUint32 aClientHandle): Completes construction of a window group -//! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a parent RWindowGroup within the RWsSession, and set initial focus state TRUE -//! 3. Use new() to create a RWindowGroup as child window group -//! 4. Execute ConstructChildApp() to construct window group as the child of the parent RWindowGroup -//! 5. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults ConstructChildApp() method returns KErrNone without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindowGroup wingrp2 - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0007-0001-new_command01 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0007-0001-Construct_command02 - COMMAND wingrp Identifier - COMMAND wingrp2 new GRAPHICS-WSERV-WindowGroup-PublicApi-0007-0001-new_command04 - COMMAND wingrp2 ConstructChildApp GRAPHICS-WSERV-WindowGroup-PublicApi-0007-0001-ConstructChildApp_command05 - COMMAND wingrp2 Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0007 - - -START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0008 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0008 -//! @SYMAPI RWindowGroup -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 11/12/2006 -//! @SYMTestCaseDesc ConstructChildApp(TInt aIdOfParentWindowGroup, TUint32 aClientHandle, TBool aIsFocusable): Completes construction of a window group -//! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE -//! 3. Use new() to create a RWindowGroup as child window group -//! 4. Execute ConstructChildApp() to construct window group as the child of the parent RWindowGroup, and with IsFocusable=TRUE -//! 5. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults ConstructChildApp() method returns KErrNone without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindowGroup wingrp2 - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0008-0001-new_command01 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0008-0001-Construct_command02 - COMMAND wingrp Identifier - COMMAND wingrp2 new GRAPHICS-WSERV-WindowGroup-PublicApi-0008-0001-new_command01 - COMMAND wingrp2 ConstructChildApp GRAPHICS-WSERV-WindowGroup-PublicApi-0008-0001-ConstructChildApp_command03 - COMMAND wingrp2 Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0008 - - -START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0009 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0009 -//! @SYMAPI RWindowGroup -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 11/12/2006 -//! @SYMTestCaseDesc DefaultOwningWindow(): Makes this window group the default owning window group -//! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE -//! 3. Execute DefaultOwningWindow to set the RWindowGroup as the default owning window group -//! 4. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Run DefaultOwningWindow() method without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0009-0001-new_command04 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0009-0001-Construct_command05 - COMMAND wingrp DefaultOwningWindow - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0009 - - -START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0010 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0010 -//! @SYMAPI RWindowGroup -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 11/12/2006 -//! @SYMTestCaseDesc EnableReceiptOfFocus(TBool aState): enable/disable receipt of keyboard focus -//! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE -//! 3. Execute EnableReceiptOfFocus to enable RWindowGroup receipt of keyboard focus (state=TRUE) -//! 4. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Run EnableReceiptOfFocus() method without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0010-0001-new_command04 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0010-0001-Construct_command05 - COMMAND wingrp EnableReceiptOfFocus GRAPHICS-WSERV-WindowGroup-PublicApi-0010-0001-EnableReceiptOfFocus_command06 - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0010 - - -START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0011 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0011 -//! @SYMAPI RWindowGroup -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 11/12/2006 -//! @SYMTestCaseDesc EnableScreenChangeEvents(): enable screen change event sending -//! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE -//! 3. Execute EnableReceiptOfFocus to enable RWindowGroup screen change event sending -//! 4. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Run EnableScreenChangeEvents() method without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0011-0001-new_command04 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0011-0001-Construct_command05 - COMMAND wingrp EnableScreenChangeEvents - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0011 - - -START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0012 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0012 -//! @SYMAPI RWindowGroup -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 11/12/2006 -//! @SYMTestCaseDesc AutoForeground(TBool aState): Sets or disables auto-foreground behaviour -//! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE -//! 3. Execute AutoForeground to enable RWindowGroup auto-foreground behaviour (state=TRUE) -//! 4. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Run AutoForeground() method without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0012-0001-new_command04 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0012-0001-Construct_command05 - COMMAND wingrp AutoForeground GRAPHICS-WSERV-WindowGroup-PublicApi-0012-0001-AutoForeground_command06 - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0012 - - -START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0013 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0013 -//! @SYMAPI RWindowGroup -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 11/12/2006 -//! @SYMTestCaseDesc AllowProcessToCreateChildWindowGroups(TUid aProcessSID): allow a RWindowGroup in the specified process to be be a child of this one -//! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE -//! 3. Execute AllowProcessToCreateChildWindowGroups to allow the specified process (uid=1) to be a child of the RWindowGroup -//! 4. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults Run AllowProcessToCreateChildWindowGroups() method without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0013-0001-new_command04 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0013-0001-Construct_command05 - COMMAND wingrp AllowProcessToCreateChildWindowGroups GRAPHICS-WSERV-WindowGroup-PublicApi-0013-0001-AllowProcessToCreateChildWindowGroups_command06 - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0013 - - -START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0014 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0014 -//! @SYMAPI RWindowGroup -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 11/12/2006 -//! @SYMTestCaseDesc AddPriorityKey(TUint aKeycode, TUint aModifierMask, TUint aModifier): add a priority key -//! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE -//! 3. Execute AddPriorityKey to set a priority key as specified -//! 4. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults AddPriorityKey() method returns KErrNone without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0014-0001-new_command04 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0014-0001-Construct_command05 - COMMAND wingrp AddPriorityKey GRAPHICS-WSERV-WindowGroup-PublicApi-0014-0001-AddPriorityKey_command06 - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0014 - - -START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0015 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0015 -//! @SYMAPI RWindowGroup -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 11/12/2006 -//! @SYMTestCaseDesc RemovePriorityKey(TUint aKeycode, TUint aModifierMask, TUint aModifier): remove a priority key -//! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE -//! 3. Execute RemovePriorityKey to remove a priority key as specified -//! 4. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Run RemovePriorityKey() method without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0015-0001-new_command04 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0015-0001-Construct_command05 - COMMAND wingrp RemovePriorityKey GRAPHICS-WSERV-WindowGroup-PublicApi-0015-0001-RemovePriorityKey_command06 - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0015 - - -START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0016 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0016 -//! @SYMAPI RWindowGroup -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 11/12/2006 -//! @SYMTestCaseDesc SetName(const TDesC &aName): set the window group's name -//! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close & Name -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE -//! 3. Execute SetName to set the name of the RWindowGroup as specified -//! 4. Use Name to get and check if the RWindowGroup's name as specified -//! 5. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. SetName() method returns KErrNone without causing panic -//! 2. after execute SetName(), the RWindowGroup's name is the same as specified -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0016-0001-new_command04 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0016-0001-Construct_command05 - COMMAND wingrp SetName GRAPHICS-WSERV-WindowGroup-PublicApi-0016-0001-SetName_command06 - COMMAND wingrp Name GRAPHICS-WSERV-WindowGroup-PublicApi-0016-0001-Name_command07 - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0016 - - -START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0017 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0017 -//! @SYMAPI RWindowGroup -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 11/12/2006 -//! @SYMTestCaseDesc Name(TDes &aWindowName) const: get the window group's name -//! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE -//! 3. Execute Name to get and check if the default RWindowGroup's name (should be an empty string) -//! 4. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Name() method returns KErrNone without causing panic -//! 2. the default RWindowGroup's name is an empty string -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0017-0001-new_command04 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0017-0001-Construct_command05 - COMMAND wingrp Name GRAPHICS-WSERV-WindowGroup-PublicApi-0017-0001-Name_command06 - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0017 - - -START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0018 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0018 -//! @SYMAPI RWindowGroup -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 11/12/2006 -//! @SYMTestCaseDesc SetChildGroup: set a window group chain onto the current window group. -//! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE -//! 3. Create and construct another RWindowGroup (wingrp2) within the RWsSession, and set initial focus state TRUE -//! 4. Execute SetChildGroup to set a window group chain (with identifier of wingrp2) onto the first created window group (wingrp) -//! 5. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults SetChildGroup() method returns KErrNone without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindowGroup wingrp2 - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0018-0001-new_command01 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0018-0001-Construct_command02 - COMMAND wingrp2 new GRAPHICS-WSERV-WindowGroup-PublicApi-0018-0001-new_command03 - COMMAND wingrp2 Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0018-0001-Construct_command04 - COMMAND wingrp2 Identifier - COMMAND wingrp SetChildGroup GRAPHICS-WSERV-WindowGroup-PublicApi-0018-0001-SetChildGroup_command06 - COMMAND wingrp2 Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0018 - - -START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0019 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0019 -//! @SYMAPI RWindowGroup -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 11/12/2006 -//! @SYMTestCaseDesc ClearChildGroup: clear all children of the current window group -//! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close & SetChildGroup -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE -//! 3. Create and construct another RWindowGroup (wingrp2) within the RWsSession, and set initial focus state TRUE -//! 4. Use SetChildGroup to set a window group chain (with identifier of wingrp2) onto the first created window group (wingrp) -//! 5. Execute ClearChildGroup on the first created window group (wingrp) -//! 6. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults ClearChildGroup() method returns KErrNone without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindowGroup wingrp2 - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0019-0001-new_command01 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0019-0001-Construct_command02 - COMMAND wingrp2 new GRAPHICS-WSERV-WindowGroup-PublicApi-0019-0001-new_command04 - COMMAND wingrp2 Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0019-0001-Construct_command05 - COMMAND wingrp2 Identifier - COMMAND wingrp SetChildGroup GRAPHICS-WSERV-WindowGroup-PublicApi-0019-0001-SetChildGroup_command07 - COMMAND wingrp ClearChildGroup - COMMAND wingrp2 Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0019 - - -START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0020 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0020 -//! @SYMAPI RWindowGroup -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 11/12/2006 -//! @SYMTestCaseDesc SetOwningWindowGroup(TInt aIdentifier): set the owning window group for this window group -//! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE -//! 3. Create and construct another RWindowGroup (wingrp2) within the RWsSession, and set initial focus state TRUE -//! 4. Execute SetOwningWindowGroup on wingrp2 to set the owning window group (to the identifier of wingrp) -//! 5. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Run SetOwningWindowGroup() method without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindowGroup wingrp2 - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0020-0001-new_command01 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0020-0001-Construct_command02 - COMMAND wingrp Identifier - COMMAND wingrp2 new GRAPHICS-WSERV-WindowGroup-PublicApi-0020-0001-new_command04 - COMMAND wingrp2 Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0020-0001-Construct_command05 - COMMAND wingrp2 SetOwningWindowGroup GRAPHICS-WSERV-WindowGroup-PublicApi-0020-0001-SetOwningWindowGroup_command06 - COMMAND wingrp2 Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0020 - - -START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0021 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0021 -//! @SYMAPI RWindowGroup -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 05/06/2007 -//! @SYMTestCaseDesc SetOrdinalPriorityAdjust(TInt aAdjust): set the window group's priority adjust value -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, WindowTreeNode::OrdinalPosition & OrdinalPriority -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE -//! 3. Create and construct another RWindowGroup (wingrp2) within the RWsSession, and set initial focus state TRUE -//! 4. Use OrdinalPosition() & OrdinalPriority() to check the initial ordinal position and priority of both RWindowGroup -//! 5. Execute SetOrdinalPriorityAdjust to adjust priority of wingrp (from 0) to 4 (different priority from the other RWindowGroup) -//! 6. Use OrdinalPosition() & OrdinalPriority() to check the ordinal position and priority of both RWindowGroup -//! 7. Execute SetOrdinalPriorityAdjust to adjust priority of wingrp (from 4) to 0 (the same priority as the other RWindowGroup) -//! 8. Use OrdinalPosition() & OrdinalPriority() to check the ordinal position and priority of both RWindowGroup -//! 9. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. SetOrdinalPriorityAdjust() method returns KErrNone without causing panic -//! 2. SetOrdinalPriorityAdjust() would adjust ordinal position and priority of associated RWindowGroup as expected -//! 2.1 initially, both RWindowGroup have ordinal priority = 0 -//! RWindowGroup that constructed later (wingrp2) has ordinal position = 0, the other one (wingrp) has ordinal position = 1 -//! 2.2 after SetOrdinalPriorityAdjust wingrp to 4 -//! wingrp2 still has ordinal priority = 0, position = 0 -//! wingrp is adjusted to priority = 4, and reset its postion = 0 -//! 2.3 after SetOrdinalPriorityAdjust wingrp to 0 -//! wingrp is adjusted to priority = 0 (same as the wingrp2), and reset its postion = 0 -//! wingrp2 still has ordinal priority = 0, as position 0 is used by wingrp, adjust its position to next position = 1 -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindowGroup wingrp2 - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0021-0001-new_command01 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0021-0001-Construct_command02 - COMMAND wingrp2 new GRAPHICS-WSERV-WindowGroup-PublicApi-0021-0001-new_command01 - COMMAND wingrp2 Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0021-0001-Construct_command03 - - COMMAND wingrp OrdinalPosition GRAPHICS-WSERV-WindowGroup-PublicApi-0021-0001-expected_1 - COMMAND wingrp OrdinalPriority GRAPHICS-WSERV-WindowGroup-PublicApi-0021-0001-expected_0 - COMMAND wingrp2 OrdinalPosition GRAPHICS-WSERV-WindowGroup-PublicApi-0021-0001-expected_0 - COMMAND wingrp2 OrdinalPriority GRAPHICS-WSERV-WindowGroup-PublicApi-0021-0001-expected_0 - COMMAND wingrp SetOrdinalPriorityAdjust GRAPHICS-WSERV-WindowGroup-PublicApi-0021-0001-SetOrdinalPriorityAdjust_command04 - COMMAND wingrp OrdinalPosition GRAPHICS-WSERV-WindowGroup-PublicApi-0021-0001-expected_0 - COMMAND wingrp OrdinalPriority GRAPHICS-WSERV-WindowGroup-PublicApi-0021-0001-expected_4 - COMMAND wingrp2 OrdinalPosition GRAPHICS-WSERV-WindowGroup-PublicApi-0021-0001-expected_0 - COMMAND wingrp2 OrdinalPriority GRAPHICS-WSERV-WindowGroup-PublicApi-0021-0001-expected_0 - COMMAND wingrp SetOrdinalPriorityAdjust GRAPHICS-WSERV-WindowGroup-PublicApi-0021-0001-SetOrdinalPriorityAdjust_command05 - COMMAND wingrp OrdinalPosition GRAPHICS-WSERV-WindowGroup-PublicApi-0021-0001-expected_0 - COMMAND wingrp OrdinalPriority GRAPHICS-WSERV-WindowGroup-PublicApi-0021-0001-expected_0 - COMMAND wingrp2 OrdinalPosition GRAPHICS-WSERV-WindowGroup-PublicApi-0021-0001-expected_1 - COMMAND wingrp2 OrdinalPriority GRAPHICS-WSERV-WindowGroup-PublicApi-0021-0001-expected_0 - - COMMAND wingrp2 Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0021 - - -START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0022 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0022 -//! @SYMAPI RWindowGroup -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 06/06/2007 -//! @SYMTestCaseDesc SetOrdinalPositionErr(TInt aPos, TInt aOrdinalPriority): set the ordinal position and ordinal priority of a window group -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, WindowTreeNode::OrdinalPosition & OrdinalPriority -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE -//! 3. Create and construct another RWindowGroup (wingrp2) within the RWsSession, and set initial focus state TRUE -//! 4. Use OrdinalPosition() & OrdinalPriority() to check the initial ordinal position and priority of both RWindowGroup -//! 5. Execute SetOrdinalPositionErr to set wingrp to new ordinal position 4 and keep priority 0 (keep priority, new position case) -//! 6. Use OrdinalPosition() & OrdinalPriority() to check if the ordinal position and priority of both RWindowGroup as expected -//! 7. Execute SetOrdinalPositionErr to set wingrp to new ordinal position 0 and keep priority 0 (keep priority, collision position case) -//! 8. Use OrdinalPosition() & OrdinalPriority() to check if the ordinal position and priority of both RWindowGroup as expected -//! 9. Execute SetOrdinalPositionErr to set wingrp to new ordinal position 3 and priority 1 (new priority, new position case) -//! 10. Use OrdinalPosition() & OrdinalPriority() to check if the ordinal position and priority of both RWindowGroup as expected -//! 11. Execute SetOrdinalPositionErr to set wingrp to new ordinal position 3 and priority 0 (new priority, same position case) -//! 12. Use OrdinalPosition() & OrdinalPriority() to check if the ordinal position and priority of both RWindowGroup as expected -//! 13. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. SetOrdinalPositionErr() method returns KErrNone without causing panic -//! 2. SetOrdinalPositionErr() -//! 2.1 initially, both RWindowGroup have ordinal priority = 0 -//! RWindowGroup that constructed later (wingrp2) has ordinal position = 0, the other one (wingrp) has ordinal position = 1 -//! 2.2 after test action 5 (keep priority, new position case) -//! wingrp2 still has ordinal priority = 0, position = 0 -//! wingrp set its ordinal priority = 0, position = 4 (as specified) -//! 2.3 after test action 7 (keep priority, collision position case) -//! wingrp set its ordinal priority = 0, position = 4 (as specified) -//! wingrp2 still has ordinal priority = 0, as position 0 is used by wingrp, adjust its position to next position = 1 -//! 2.4 after test action 9 (new priority, new position case) -//! wingrp set its ordinal priority = 1 (as specified), as no window group within priority 1, adjust its position = 0 -//! wingrp2 still has ordinal priority = 0, as wingrp moved out from position 0, adjust its position to position = 0 -//! 2.5 after test action 11 (new priority, same position case) -//! wingrp set its ordinal priority = 0, position = 3 (as specified) -//! wingrp2 still has ordinal priority = 0, position = 0 -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindowGroup wingrp2 - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-new_command01 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-Construct_command02 - COMMAND wingrp2 new GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-new_command01 - COMMAND wingrp2 Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-Construct_command03 - - COMMAND wingrp OrdinalPosition GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-expected_1 - COMMAND wingrp OrdinalPriority GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-expected_0 - COMMAND wingrp2 OrdinalPosition GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-expected_0 - COMMAND wingrp2 OrdinalPriority GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-expected_0 - COMMAND wingrp SetOrdinalPositionErr GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-SetOrdinalPositionErr_command04 - COMMAND wingrp OrdinalPosition GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-expected_4 - COMMAND wingrp OrdinalPriority GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-expected_0 - COMMAND wingrp2 OrdinalPosition GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-expected_0 - COMMAND wingrp2 OrdinalPriority GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-expected_0 - COMMAND wingrp SetOrdinalPositionErr GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-SetOrdinalPositionErr_command05 - COMMAND wingrp OrdinalPosition GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-expected_0 - COMMAND wingrp OrdinalPriority GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-expected_0 - COMMAND wingrp2 OrdinalPosition GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-expected_1 - COMMAND wingrp2 OrdinalPriority GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-expected_0 - COMMAND wingrp SetOrdinalPositionErr GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-SetOrdinalPositionErr_command06 - COMMAND wingrp OrdinalPosition GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-expected_0 - COMMAND wingrp OrdinalPriority GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-expected_1 - COMMAND wingrp2 OrdinalPosition GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-expected_0 - COMMAND wingrp2 OrdinalPriority GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-expected_0 - COMMAND wingrp SetOrdinalPositionErr GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-SetOrdinalPositionErr_command07 - COMMAND wingrp OrdinalPosition GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-expected_3 - COMMAND wingrp OrdinalPriority GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-expected_0 - COMMAND wingrp2 OrdinalPosition GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-expected_0 - COMMAND wingrp2 OrdinalPriority GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-expected_0 - - COMMAND wingrp2 Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0022 - - -START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0023 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0023 -//! @SYMAPI RWindowGroup -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 11/12/2006 -//! @SYMTestCaseDesc SetTextCursor(RWindowBase &aWin, const TPoint &aPos, const TTextCursor &aCursor): set the text cursor -//! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE -//! 3. Execute SetTextCursor to set the text cursor -//! 4. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Run SetTextCursor() method without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RBlankWindow bnkwin - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0023-0001-new_command01 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0023-0001-Construct_command02 - COMMAND bnkwin new GRAPHICS-WSERV-WindowGroup-PublicApi-0023-0001-new_command03 - COMMAND bnkwin Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0023-0001-Construct_command04 - COMMAND wingrp SetTextCursor GRAPHICS-WSERV-WindowGroup-PublicApi-0023-0001-SetTextCursor_command05 - COMMAND bnkwin Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0023 - - -START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0024 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0024 -//! @SYMAPI RWindowGroup -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 11/12/2006 -//! @SYMTestCaseDesc CancelTextCursor():Removes the text cursor -//! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE -//! 3. Execute CancelTextCursor to remove the text cursor -//! 4. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Run CancelTextCursor() method without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0024-0001-new_command04 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0024-0001-Construct_command05 - COMMAND wingrp CancelTextCursor GRAPHICS-WSERV-WindowGroup-PublicApi-0024-0001-CancelTextCursor_command06 - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0024 - - -START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0025 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0025 -//! @SYMAPI RWindowGroup -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 11/12/2006 -//! @SYMTestCaseDesc SetTextCursor(RWindowBase &aWin, const TPoint &aPos, const TTextCursor &aCursor, const TRect &aClipRect): set the text cursor and its clipping rectangle -//! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE -//! 3. Execute SetTextCursor to set the text cursor and its clipping rectangle -//! 4. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Run SetTextCursor() method without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RBlankWindow bnkwin - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0025-0001-new_command01 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0025-0001-Construct_command02 - COMMAND bnkwin new GRAPHICS-WSERV-WindowGroup-PublicApi-0025-0001-new_command03 - COMMAND bnkwin Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0025-0001-Construct_command04 - COMMAND wingrp SetTextCursor GRAPHICS-WSERV-WindowGroup-PublicApi-0025-0001-SetTextCursor_command05 - COMMAND bnkwin Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0025 - - -START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0026 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0026 -//! @SYMAPI RWindowGroup -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 11/12/2006 -//! @SYMTestCaseDesc DisableKeyClick(TBool aState): disable key clicks -//! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE -//! 3. Execute DisableKeyClick to disable key clicks (state=TRUE) -//! 4. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Run DisableKeyClick() method without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0026-0001-new_command04 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0026-0001-Construct_command05 - COMMAND wingrp DisableKeyClick GRAPHICS-WSERV-WindowGroup-PublicApi-0026-0001-DisableKeyClick_command06 - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0026 - - -START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0027 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0027 -//! @SYMAPI RWindowGroup -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 11/12/2006 -//! @SYMTestCaseDesc DisableScreenChangeEvents(): disable screen change event sending -//! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE -//! 3. Execute DisableScreenChangeEvents to disable screen change event sending -//! 4. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Run DisableScreenChangeEvents() method without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0027-0001-new_command04 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0027-0001-Construct_command05 - COMMAND wingrp DisableScreenChangeEvents - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0027 - - -START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0028 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0028 -//! @SYMAPI RWindowGroup -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 11/12/2006 -//! @SYMTestCaseDesc SimulatePointerEvent(): simulate a pointer event -//! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE -//! 3. Execute SimulatePointerEvent to simulate a EPointerMove evnet -//! 4. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Run SimulatePointerEvent() method without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0028-0001-new_command04 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0028-0001-Construct_command05 - COMMAND wingrp SimulatePointerEvent GRAPHICS-WSERV-WindowGroup-PublicApi-0028-0001-SimulatePointerEvent_command06 - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0028 - - -START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0034 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0034 -//! @SYMAPI RWindowGroup -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 11/12/2006 -//! @SYMTestCaseDesc Identifier() const: get the identifier of the window group -//! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE -//! 3. Execute Identifier to get identifier of the RWindowGroup -//! 4. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Run SimulatePointerEvent() method without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0034-0001-new_command04 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0034-0001-Construct_command05 - COMMAND wingrp Identifier - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0034 - - -START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0035 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0035 -//! @SYMAPI RWindowGroup -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 11/12/2006 -//! @SYMTestCaseDesc CaptureKey: Requests key capture -//! Use API elements: Construct, CaptureKey -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state as specified -//! 3. Capture a key in the RWindowGroup -//! 4. Create and construct a second RWindowGroup within the RWsSession -//! 5. Capture the same key in the second RWindowGroup, with a priority -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The both CaptureKey returns successful. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindowGroup wingrp2 - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0035-0001-new_command04 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0035-0001-Construct_command05 - COMMAND wingrp CaptureKey GRAPHICS-WSERV-WindowGroup-PublicApi-0035-0001-CaptureKey_command6 - COMMAND wingrp2 new GRAPHICS-WSERV-WindowGroup-PublicApi-0035-0001-new_command04 - COMMAND wingrp2 Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0035-0001-Construct_command09 - COMMAND wingrp2 CaptureKey GRAPHICS-WSERV-WindowGroup-PublicApi-0035-0001-CaptureKey_command10 - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0035 - - -START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0036 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0036 -//! @SYMAPI RWindowGroup -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 11/12/2006 -//! @SYMTestCaseDesc CancelCaptureKey: Cancels a request for key capture -//! Use API elements: Construct, CaptureKey, CancelCaptureKey -//! @SYMTestActions 1. Recreate a RWsSession and a RWindowGroup and then Capture a key in the RWindowGroup -//! 2. Cancel the Captured Key. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults CancelCaptureKey() method returns KErrNone without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0035-0001-new_command04 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0035-0001-Construct_command05 - COMMAND wingrp CaptureKey GRAPHICS-WSERV-WindowGroup-PublicApi-0035-0001-CaptureKey_command6 - COMMAND wingrp CancelCaptureKey GRAPHICS-WSERV-WindowGroup-PublicApi-0036-0001-CancelCaptureKey_command7 - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0036 - -START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0037 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0037 -//! @SYMAPI RWindowGroup -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 11/12/2006 -//! @SYMTestCaseDesc CaptureKeyUpAndDowns(TUint aScanCode, TUint aModifierMask, TUint aModifier):Requests the capture of key-up and key-down events on behalf of a window group -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct,CaptureKeyUpAndDowns and close() -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state as specified -//! 3. Capture a key in the RWindowGroup -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults CaptureKeyUpAndDowns returns successful. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0035-0001-new_command04 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0035-0001-Construct_command05 - COMMAND wingrp CaptureKeyUpAndDowns GRAPHICS-WSERV-WindowGroup-PublicApi-0037-0001-CaptureKeyUpAndDowns_command6 - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0037 - - -START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0038 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0038 -//! @SYMAPI RWindowGroup -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 11/12/2006 -//! @SYMTestCaseDesc CancelCaptureKeyUpAndDowns(TInt32 aCaptureKey): Cancels a capture request for a key up or key down event. -//! Use API elements: Construct, CaptureKeyUpAndDowns, CancelCaptureKeyUpAndDowns -//! @SYMTestActions 1. Recreate a RWsSession and a RWindowGroup and then Capture a key in the RWindowGroup -//! 2. Cancel the Captured Key. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults CancelCaptureKeyUpAndDowns() method returns KErrNone without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0035-0001-new_command04 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0035-0001-Construct_command05 - COMMAND wingrp CaptureKeyUpAndDowns GRAPHICS-WSERV-WindowGroup-PublicApi-0037-0001-CaptureKeyUpAndDowns_command6 - COMMAND wingrp CancelCaptureKeyUpAndDowns GRAPHICS-WSERV-WindowGroup-PublicApi-0038-0001-CancelCaptureKeyUpAndDOwns - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0038 - - -START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0039 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0039 -//! @SYMAPI RWindowGroup -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 11/12/2006 -//! @SYMTestCaseDesc CaptureKeyUpAndDowns(TUint aScanCode, TUint aModifierMask, TUint aModifier):Requests the capture of key-up and key-down events on behalf of a window group -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct,CaptureKeyUpAndDowns and close() -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state as specified -//! 3. Capture the same key in the second RWindowGroup, with a priority -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults CaptureKeyUpAndDowns returns successful. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0035-0001-new_command04 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0035-0001-Construct_command09 - COMMAND wingrp CaptureKeyUpAndDowns GRAPHICS-WSERV-WindowGroup-PublicApi-0039-0001-CaptureKeyUpAndDowns_command10 - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0039 - -START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0040 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0040 -//! @SYMAPI RWindowGroup -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 11/12/2006 -//! @SYMTestCaseDesc CaptureLongKey: Requests capture of long key presses. -//! Use API elements: Construct, CaptureLongKey -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state as specified -//! 3. Capture a key in the RWindowGroup -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults CaptureLongKey returns successful. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0035-0001-new_command04 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0035-0001-Construct_command05 - COMMAND wingrp CaptureLongKey GRAPHICS-WSERV-WindowGroup-PublicApi-0040-0001-CaptureLongKey_command6 - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0040 - -START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0041 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0041 -//! @SYMAPI RWindowGroup -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 11/12/2006 -//! @SYMTestCaseDesc CancelCaptureLongKey: Cancels a previous long key capture request. -//! Use API elements: Construct, CaptureLongKey, CancelCaptureLongKey -//! @SYMTestActions 1. Recreate a RWsSession and a RWindowGroup and then Capture a key in the RWindowGroup -//! 2. Cancel the Captured Key. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults CancelCaptureLongKey() method returns KErrNone without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0035-0001-new_command04 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0035-0001-Construct_command05 - COMMAND wingrp CaptureLongKey GRAPHICS-WSERV-WindowGroup-PublicApi-0040-0001-CaptureLongKey_command6 - COMMAND wingrp CancelCaptureLongKey GRAPHICS-WSERV-WindowGroup-PublicApi-0041-0001-CancelCaptureLongKey_command7 - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0041 - -START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0042 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0042 -//! @SYMAPI RWindowGroup -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 11/12/2006 -//! @SYMTestCaseDesc CaptureLongKey: Requests capture of long key presses. -//! Use API elements: Construct, CaptureLongKey -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state as specified -//! 3. Capture a key, with a priority -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults CaptureLongKey returns successful. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0035-0001-new_command04 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0035-0001-Construct_command09 - COMMAND wingrp CaptureLongKey GRAPHICS-WSERV-WindowGroup-PublicApi-0042-0001-CaptureLongKey_command10 - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0042 - -START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0043 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0043 -//! @SYMAPI RWindowGroup -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 11/12/2006 -//! @SYMTestCaseDesc AddPriorityKey(TUint aKeycode, TUint aModifierMask, TUint aModifier): add a priority key -//! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE -//! 3. Execute AddPriorityKey to set a priority key as specified -//! 4. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults AddPriorityKey() method returns KErrNone without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0043-0001-new_command04 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0043-0001-Construct_command05 - COMMAND wingrp AddPriorityKey GRAPHICS-WSERV-WindowGroup-PublicApi-0043-0001-AddPriorityKey_command06 - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0043 - -START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0044 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0044 -//! @SYMAPI RWindowGroup -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 11/12/2006 -//! @SYMTestCaseDesc DisableKeyClick(TBool aState): disable key clicks -//! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE -//! 3. Execute DisableKeyClick to disable key clicks (state=FALSE) -//! 4. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Run DisableKeyClick() method without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0044-0001-new_command04 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0044-0001-Construct_command05 - COMMAND wingrp DisableKeyClick GRAPHICS-WSERV-WindowGroup-PublicApi-0044-0001-DisableKeyClick_command06 - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0044 - -START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0045 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0045 -//! @SYMAPI RWindowGroup -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 11/12/2006 -//! @SYMTestCaseDesc EnableReceiptOfFocus(TBool aState): enable/disable receipt of keyboard focus -//! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE -//! 3. Execute EnableReceiptOfFocus to enable RWindowGroup receipt of keyboard focus (state=TRUE) -//! 4. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Run EnableReceiptOfFocus() method without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0045-0001-new_command04 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0045-0001-Construct_command05 - COMMAND wingrp EnableReceiptOfFocus GRAPHICS-WSERV-WindowGroup-PublicApi-0045-0001-EnableReceiptOfFocus_command06 - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0045 - -START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0046 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0046 -//! @SYMAPI RWindowGroup -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 11/12/2006 -//! @SYMTestCaseDesc SetName(const TDesC &aName): set the window group's name -//! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close & Name -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE -//! 3. Execute SetName to set the name of the RWindowGroup as specified -//! 4. Use Name to get and check if the RWindowGroup's name as specified -//! 5. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. SetName() method returns KErrNone without causing panic -//! 2. after execute SetName(), the RWindowGroup's name is the same as specified -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0046-0001-new_command04 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0046-0001-Construct_command05 - COMMAND wingrp SetName GRAPHICS-WSERV-WindowGroup-PublicApi-0046-0001-SetName_command06 - COMMAND wingrp Name GRAPHICS-WSERV-WindowGroup-PublicApi-0046-0001-Name_command07 - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0046 - -START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0047 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0047 -//! @SYMAPI RWindowGroup -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 11/12/2006 -//! @SYMTestCaseDesc SetOwningWindowGroup(TInt aIdentifier): set the owning window group for this window group -//! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE -//! 3. Create and construct another RWindowGroup (wingrp2) within the RWsSession, and set initial focus state TRUE -//! 4. Execute SetOwningWindowGroup on wingrp2 to set the owning window group (to the identifier of wingrp) -//! 5. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Run SetOwningWindowGroup() method without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindowGroup wingrp2 - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0047-0001-new_command01 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0047-0001-Construct_command02 - COMMAND wingrp Identifier - COMMAND wingrp2 new GRAPHICS-WSERV-WindowGroup-PublicApi-0047-0001-new_command04 - COMMAND wingrp2 Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0047-0001-Construct_command05 - COMMAND wingrp2 SetOwningWindowGroup GRAPHICS-WSERV-WindowGroup-PublicApi-0047-0001-SetOwningWindowGroup_command06 - COMMAND wingrp2 Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0047 - - -//===== - -START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0048 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0048 -//! @SYMAPI RWindowGroup -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 18/12/2006 -//! @SYMTestCaseDesc Construct(TUint32 aClientHandle): complete construction of a RWindowGroup -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a RWindowGroup with client handle -99999999 within the RWsSession -//! 3. close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Construct() method returns KErrNone without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0048-0001-new_command04 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0048-0001-Construct_command05 - - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0048 - - -START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0049 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0049 -//! @SYMAPI RWindowGroup -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 11/12/2006 -//! @SYMTestCaseDesc Construct(TUint32 aClientHandle, TBool aIsFocusable): complete construction of a RWindowGroup and set initial focus state -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a RWindowGroup with client handle -99999999 within the RWsSession, and set initial focus state = TRUE -//! 3. close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Construct() method returns KErrNone without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0049-0001-new_command04 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0049-0001-Construct_command05 - - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0049 - - -START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0050 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0050 -//! @SYMAPI RWindowGroup -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 21/08/2007 -//! @SYMTestCaseDesc Construct(TUint32 aClientHandle, CWsScreenDevice *aScreenDevice): complete construction of a RWindowGroup on a screen -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice within the RWsSession -//! 3. Create and construct a RWindowGroup with client handle -99999999 within the RWsSession and on the CWsScreenDevice -//! 4. close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Construct() method returns KErrNone without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT RWindowGroup wingrp - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGroup-PublicApi-0050-0001-new_command01 - COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0050-0001-new_command04 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0050-0001-Construct_command05 - - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0050 - - -START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0051 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0051 -//! @SYMAPI RWindowGroup -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 21/08/2007 -//! @SYMTestCaseDesc Construct(TUint32 aClientHandle, TBool aIsFocusable, CWsScreenDevice *aScreenDevice): complete construction of a RWindowGroup on a screen -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice within the RWsSession -//! 3. Create and construct a RWindowGroup with client handle -99999999 within the RWsSession and on the CWsScreenDevice, and set initial focus state = TRUE -//! 4. close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Construct() method returns KErrNone without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT RWindowGroup wingrp - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WindowGroup-PublicApi-0051-0001-new_command01 - COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0051-0001-new_command04 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0051-0001-Construct_command05 - - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0051 - - -START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0052 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0052 -//! @SYMAPI RWindowGroup -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 11/12/2006 -//! @SYMTestCaseDesc ConstructChildApp(TInt aIdOfParentWindowGroup, TUint32 aClientHandle): Completes construction of a window group -//! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a parent RWindowGroup within the RWsSession, and set initial focus state TRUE -//! 3. Use new() to create a RWindowGroup as child window group -//! 4. Execute ConstructChildApp() to construct window group with client handle -99999999 as the child of the parent RWindowGroup -//! 5. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults ConstructChildApp() method returns KErrNone without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindowGroup wingrp2 - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0052-0001-new_command01 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0052-0001-Construct_command02 - COMMAND wingrp Identifier - COMMAND wingrp2 new GRAPHICS-WSERV-WindowGroup-PublicApi-0052-0001-new_command04 - COMMAND wingrp2 ConstructChildApp GRAPHICS-WSERV-WindowGroup-PublicApi-0052-0001-ConstructChildApp_command05 - COMMAND wingrp2 Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0052 - - -START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0053 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0053 -//! @SYMAPI RWindowGroup -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 11/12/2006 -//! @SYMTestCaseDesc ConstructChildApp(TInt aIdOfParentWindowGroup, TUint32 aClientHandle, TBool aIsFocusable): Completes construction of a window group -//! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE -//! 3. Use new() to create a RWindowGroup as child window group -//! 4. Execute ConstructChildApp() to construct window group with client handle -99999999 as the child of the parent RWindowGroup, and with IsFocusable=TRUE -//! 5. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults ConstructChildApp() method returns KErrNone without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindowGroup wingrp2 - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0053-0001-new_command01 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0053-0001-Construct_command02 - COMMAND wingrp Identifier - COMMAND wingrp2 new GRAPHICS-WSERV-WindowGroup-PublicApi-0053-0001-new_command01 - COMMAND wingrp2 ConstructChildApp GRAPHICS-WSERV-WindowGroup-PublicApi-0053-0001-ConstructChildApp_command03 - COMMAND wingrp2 Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0053 - - -START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0054 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0054 -//! @SYMAPI RWindowGroup -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 11/12/2006 -//! @SYMTestCaseDesc AllowProcessToCreateChildWindowGroups(TUid aProcessSID): allow a RWindowGroup in the specified process to be be a child of this one -//! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE -//! 3. Execute AllowProcessToCreateChildWindowGroups to allow the specified process (uid=-99999999) to be a child of the RWindowGroup -//! 4. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults Run AllowProcessToCreateChildWindowGroups() method without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0054-0001-new_command04 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0054-0001-Construct_command05 - COMMAND wingrp AllowProcessToCreateChildWindowGroups GRAPHICS-WSERV-WindowGroup-PublicApi-0054-0001-AllowProcessToCreateChildWindowGroups_command06 - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0054 - - -START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0055 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0055 -//! @SYMAPI RWindowGroup -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 05/06/2007 -//! @SYMTestCaseDesc SetOrdinalPriorityAdjust(TInt aAdjust): set the window group's priority adjust value -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, WindowTreeNode::OrdinalPosition & OrdinalPriority -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE -//! 3. Execute SetOrdinalPriorityAdjust to adjust priority of wingrp with 99999999 priority value -//! 4. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults SetOrdinalPriorityAdjust() method returns KErrNone without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0055-0001-new_command01 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0055-0001-Construct_command02 - - COMMAND wingrp SetOrdinalPriorityAdjust GRAPHICS-WSERV-WindowGroup-PublicApi-0055-0001-SetOrdinalPriorityAdjust_command03 - - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0055 - - -START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0056 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0056 -//! @SYMAPI RWindowGroup -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 06/06/2007 -//! @SYMTestCaseDesc SetOrdinalPositionErr(TInt aPos, TInt aOrdinalPriority): set the ordinal position and ordinal priority of a window group -//! Uses API elements: RWsSession::Connect, RWindowGroup::Construct, WindowTreeNode::OrdinalPosition & OrdinalPriority -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE -//! 3. Execute SetOrdinalPositionErr to set wingrp to new ordinal position with negative value -99999999 and priority with 99999999 value -//! 4. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults SetOrdinalPositionErr() method returns KErrNone without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0056-0001-new_command01 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0056-0001-Construct_command02 - - COMMAND wingrp SetOrdinalPositionErr GRAPHICS-WSERV-WindowGroup-PublicApi-0056-0001-SetOrdinalPositionErr_command03 - - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0056 - - -START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0057 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0057 -//! @SYMAPI RWindowGroup -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 11/12/2006 -//! @SYMTestCaseDesc SetTextCursor(RWindowBase &aWin, const TPoint &aPos, const TTextCursor &aCursor): set the text cursor -//! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE -//! 3. Execute SetTextCursor to set the text cursor with negative value as its origin. -//! 4. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Run SetTextCursor() method without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RBlankWindow bnkwin - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0057-0001-new_command01 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0057-0001-Construct_command02 - COMMAND bnkwin new GRAPHICS-WSERV-WindowGroup-PublicApi-0057-0001-new_command03 - COMMAND bnkwin Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0057-0001-Construct_command04 - COMMAND wingrp SetTextCursor GRAPHICS-WSERV-WindowGroup-PublicApi-0057-0001-SetTextCursor_command05 - COMMAND bnkwin Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0057 - - -START_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0058 -//! @SYMTestCaseID GRAPHICS-WSERV-WindowGroup-PublicApi-0058 -//! @SYMAPI RWindowGroup -//! @SYMAuthor Ryan Lu -//! @SYMCreationDate 11/12/2006 -//! @SYMTestCaseDesc SetTextCursor(RWindowBase &aWin, const TPoint &aPos, const TTextCursor &aCursor, const TRect &aClipRect): set the text cursor and its clipping rectangle -//! Uses API elements: RWsSession::Connect & Close, RWindowGroup::Construct & Close -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct a RWindowGroup within the RWsSession, and set initial focus state TRUE -//! 3. Execute SetTextCursor to set the text cursor with negative value as its origin and its clipping rectangle with negative value as relative to its origin -//! 4. Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Run SetTextCursor() method without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RBlankWindow bnkwin - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WindowGroup-PublicApi-0058-0001-new_command01 - COMMAND wingrp Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0058-0001-Construct_command02 - COMMAND bnkwin new GRAPHICS-WSERV-WindowGroup-PublicApi-0058-0001-new_command03 - COMMAND bnkwin Construct GRAPHICS-WSERV-WindowGroup-PublicApi-0058-0001-Construct_command04 - COMMAND wingrp SetTextCursor GRAPHICS-WSERV-WindowGroup-PublicApi-0058-0001-SetTextCursor_command05 - COMMAND bnkwin Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WindowGroup-PublicApi-0058 diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-WsBitmap-PublicApi.script --- a/graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-WsBitmap-PublicApi.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,595 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// -//! @file -//! @SYMTestSuiteName GRAPHICS-WSERV-WsBitmap-PublicApi -//! @SYMScriptTestEnvironment This test script requires a basic ROM. - -/////////////////////////////////////////////////////////////////////////////// -// GRAPHICS-WSERV-WsBitmap-PublicApi.script -// -// Tests all public elements of the CWsBitmap class -// as a means of confidence that the API works as expected. -// -// The purpose is to provide a regression test suite of PublishedAll APIs for -// CWsBitmap related classes. -// Negative testing is performed to confirm that correct errors are returned -// when incorrect parameters are given. -// -// The tests are fully automated. -/////////////////////////////////////////////////////////////////////////////// - - -LOAD_SUITE T_GraphicsWservAPI - - -// **************************************************************************** -// CWsBitmap -// **************************************************************************** - -START_TESTCASE GRAPHICS-WSERV-WsBitmap-PublicApi-0001 -//! @SYMTestCaseID GRAPHICS-WSERV-WsBitmap-PublicApi-0001 -//! @SYMAPI CWsBitmap -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 08/01/2007 -//! @SYMTestCaseDesc CWsBitmap(): create a CWsBitmap object by C++ defaut constructor -//! Uses API elements: CWsBitmap() -//! @SYMTestActions Simply execute new() a CWsBitmap to create the object -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults CWsBitmap object was created without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsBitmap-PublicApi.ini - CREATE_OBJECT CWsBitmap wsbmp - COMMAND wsbmp new - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsBitmap-PublicApi-0001 - - -START_TESTCASE GRAPHICS-WSERV-WsBitmap-PublicApi-0002 -//! @SYMTestCaseID GRAPHICS-WSERV-WsBitmap-PublicApi-0002 -//! @SYMAPI CWsBitmap -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 08/01/2007 -//! @SYMTestCaseDesc CWsBitmap(RWsSession &aWs): create a CWsBitmap object within the specified RWsSession -//! Uses API elements: RWsSession::Connect, CWsBitmap() -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsBitmap within the RWsSession -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults CWsBitmap object was created without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsBitmap-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsBitmap wsbmp - COMMAND ws new - COMMAND ws Connect - COMMAND wsbmp new GRAPHICS-WSERV-WsBitmap-PublicApi-0002-0001-new_command04 - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsBitmap-PublicApi-0002 - - -START_TESTCASE GRAPHICS-WSERV-WsBitmap-PublicApi-0003 -//! @SYMTestCaseID GRAPHICS-WSERV-WsBitmap-PublicApi-0003 -//! @SYMAPI CWsBitmap -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 08/01/2007 -//! @SYMTestCaseDesc ~CWsBitmap(): CWsBitmap destructor -//! Uses API elements: RWsSession::Connect, CWsBitmap -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. New/Construct a CWsBitmap within the RWsSession -//! 3. Destruct the CWsBitmap object -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults CWsBitmap was destructed without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsBitmap-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsBitmap wsbmp - COMMAND ws new - COMMAND ws Connect - COMMAND wsbmp new GRAPHICS-WSERV-WsBitmap-PublicApi-0003-0001-new_command04 - COMMAND wsbmp ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsBitmap-PublicApi-0003 - - -START_TESTCASE GRAPHICS-WSERV-WsBitmap-PublicApi-0004 -//! @SYMTestCaseID GRAPHICS-WSERV-WsBitmap-PublicApi-0004 -//! @SYMAPI CWsBitmap -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 26/02/2007 -//! @SYMTestCaseDesc Create(const TSize &aSizeInPixels, TDisplayMode aDispMode): create a CWsBitmap bitmap with the specified size and display mode -//! Uses API elements: RWsSession::Connect, CFbsBitmap::SizeInPixels & DisplayMode, WsClientClass::WsHandle -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. New/Construct a CWsBitmap within the RWsSession, check its initial size and display mode -//! 3. Create the CWsBitmap bitmap with the specified size and display mode -//! 4. Check CWsBitmap bitmap creation: its size and display mode as specified -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Create() method returns KErrNone without causing panic -//! 2. Before the bitmap creation: handle=0, wshandle=0, size width & height = 0, displaymode = ENone -//! After the bitmap created: wshandle!=0, size width & height & displaymode as specified in the Create command -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsBitmap-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsBitmap wsbmp - COMMAND ws new - COMMAND ws Connect - COMMAND wsbmp new GRAPHICS-WSERV-WsBitmap-PublicApi-0004-0001-new_command04 - COMMAND wsbmp Handle GRAPHICS-WSERV-WsBitmap-PublicApi-0004-0001-Handle_command05 - COMMAND wsbmp WsHandle GRAPHICS-WSERV-WsBitmap-PublicApi-0004-0001-WsHandle_command06 - COMMAND wsbmp SizeInPixels GRAPHICS-WSERV-WsBitmap-PublicApi-0004-0001-SizeInPixels_command07 - COMMAND wsbmp DisplayMode GRAPHICS-WSERV-WsBitmap-PublicApi-0004-0001-DisplayMode_command08 - COMMAND wsbmp Create GRAPHICS-WSERV-WsBitmap-PublicApi-0004-0001-Create_command09 - COMMAND wsbmp SizeInPixels GRAPHICS-WSERV-WsBitmap-PublicApi-0004-0001-SizeInPixels_command10 - COMMAND wsbmp DisplayMode GRAPHICS-WSERV-WsBitmap-PublicApi-0004-0001-DisplayMode_command11 - COMMAND wsbmp Handle - COMMAND wsbmp WsHandle GRAPHICS-WSERV-WsBitmap-PublicApi-0004-0001-WsHandle_command13 - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsBitmap-PublicApi-0004 - - -START_TESTCASE GRAPHICS-WSERV-WsBitmap-PublicApi-0005 -//! @SYMTestCaseID GRAPHICS-WSERV-WsBitmap-PublicApi-0005 -//! @SYMAPI CWsBitmap -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 26/02/2007 -//! @SYMTestCaseDesc Duplicate(TInt aHandle): make a duplicate of the specified bitmap handle -//! Uses API elements: RWsSession::Connect, CFbsBitmap::Handle & SizeInPixels & DisplayMode, CWsBitmap: Create -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. New/Construct a source CWsBitmap within the RWsSession, and Create it with the specified size and display mode -//! 3. New/Construct a dest CWsBitmap within the RWsSession, check its initial size and display mode -//! 4. Execute Duplicate to make dest CWsBitmap a duplicate of the source CWsBitmap -//! 5. Check the size and display mode of the dest CWsBitmap (expected to be the same as those of the source CWsBitmap) -//! 6. Destruct the CWsBitmap objects -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Duplicate() method returns KErrNone without causing panic -//! 2. Before the bitmap duplication: handle=0, wshandle=0, size width & height = 0, displaymode = ENone -//! After the bitmap duplicated: wshandle!=0, size width & height & displaymode the same as the source bitmap -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsBitmap-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsBitmap wsbmp - CREATE_OBJECT CWsBitmap wsbmp_src - COMMAND ws new - COMMAND ws Connect - COMMAND wsbmp_src new GRAPHICS-WSERV-WsBitmap-PublicApi-0005-0001-new_command04 - COMMAND wsbmp_src Create GRAPHICS-WSERV-WsBitmap-PublicApi-0005-0001-Create_command05 - COMMAND wsbmp_src Handle - COMMAND wsbmp_src WsHandle GRAPHICS-WSERV-WsBitmap-PublicApi-0005-0001-WsHandle_command07 - COMMAND wsbmp new GRAPHICS-WSERV-WsBitmap-PublicApi-0005-0001-new_command09 - COMMAND wsbmp Handle GRAPHICS-WSERV-WsBitmap-PublicApi-0005-0001-Handle_command10 - COMMAND wsbmp WsHandle GRAPHICS-WSERV-WsBitmap-PublicApi-0005-0001-WsHandle_command11 - COMMAND wsbmp SizeInPixels GRAPHICS-WSERV-WsBitmap-PublicApi-0005-0001-SizeInPixels_command12 - COMMAND wsbmp DisplayMode GRAPHICS-WSERV-WsBitmap-PublicApi-0005-0001-DisplayMode_command13 - COMMAND wsbmp Duplicate GRAPHICS-WSERV-WsBitmap-PublicApi-0005-0001-Duplicate_command14 - COMMAND wsbmp SizeInPixels GRAPHICS-WSERV-WsBitmap-PublicApi-0005-0001-SizeInPixels_command15 - COMMAND wsbmp DisplayMode GRAPHICS-WSERV-WsBitmap-PublicApi-0005-0001-DisplayMode_command16 - COMMAND wsbmp Handle - COMMAND wsbmp WsHandle GRAPHICS-WSERV-WsBitmap-PublicApi-0005-0001-WsHandle_command18 - COMMAND wsbmp ~ - COMMAND wsbmp_src ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsBitmap-PublicApi-0005 - - -START_TESTCASE GRAPHICS-WSERV-WsBitmap-PublicApi-0006 -//! @SYMTestCaseID GRAPHICS-WSERV-WsBitmap-PublicApi-0006 -//! @SYMAPI CWsBitmap -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 09/01/2007 -//! @SYMTestCaseDesc Load(const TDesC &aFileName, TInt32 aId, TBool aShareIfLoaded=ETrue): load a CWsBitmap from a file -//! Uses API elements: RWsSession::Connect, CFbsBitmap::Save & Handle & SizeInPixels & DisplayMode, CWsBitmap: Create -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. New/Construct a source CWsBitmap within the RWsSession, and Create it with the specified size and display mode -//! 3. Call CFbsBitmap::Save to save the source CWsBitmap into a temp file -//! 4. New/Construct a dest CWsBitmap within the RWsSession, check its initial size and display mode -//! 5. Execute Load the dest CWsBitmap from the temp file -//! 6. Check the size and display mode of the dest CWsBitmap (expected to be the same as those of the source CWsBitmap) -//! 7. Destruct the CWsBitmap objects -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. Load() method returns KErrNone without causing panic, and the loaded bitmap size and display mode is the same as specified in the file -//! 2. Before the bitmap loaded: handle=0, wshandle=0, size width & height = 0, displaymode = ENone -//! After the bitmap loaded: wshandle!=0, size width & height & displaymode the same as the source bitmap -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsBitmap-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsBitmap wsbmp - CREATE_OBJECT CWsBitmap wsbmp_src - COMMAND ws new - COMMAND ws Connect - COMMAND wsbmp_src new GRAPHICS-WSERV-WsBitmap-PublicApi-0006-0001-new_command04 - COMMAND wsbmp_src Create GRAPHICS-WSERV-WsBitmap-PublicApi-0006-0001-Create_command05 - COMMAND wsbmp_src Save GRAPHICS-WSERV-WsBitmap-PublicApi-0006-0001-Save_command06 - COMMAND wsbmp_src Handle - COMMAND wsbmp_src WsHandle GRAPHICS-WSERV-WsBitmap-PublicApi-0006-0001-WsHandle_command08 - COMMAND wsbmp new GRAPHICS-WSERV-WsBitmap-PublicApi-0006-0001-new_command10 - COMMAND wsbmp Handle GRAPHICS-WSERV-WsBitmap-PublicApi-0006-0001-Handle_command11 - COMMAND wsbmp WsHandle GRAPHICS-WSERV-WsBitmap-PublicApi-0006-0001-WsHandle_command12 - COMMAND wsbmp SizeInPixels GRAPHICS-WSERV-WsBitmap-PublicApi-0006-0001-SizeInPixels_command13 - COMMAND wsbmp Load GRAPHICS-WSERV-WsBitmap-PublicApi-0006-0001-Load_command14 - COMMAND wsbmp ~ - COMMAND wsbmp_src ~ - END_TEST_BLOCK - RUN_UTILS DeleteFile ${SYSDRIVE}\graphics\test_wsbitmap.tmp -END_TESTCASE GRAPHICS-WSERV-WsBitmap-PublicApi-0006 - - -START_TESTCASE GRAPHICS-WSERV-WsBitmap-PublicApi-0007 -//! @SYMTestCaseID GRAPHICS-WSERV-WsBitmap-PublicApi-0007 -//! @SYMAPI CWsBitmap -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 27/01/2007 -//! @SYMTestCaseDesc InternalizeL(RReadStream &aStream): internalises a CWsBitmap from the read stream -//! Uses API elements: RWsSession::Connect, CFbsBitmap::ExternalizeL & SizeInPixels & DisplayMode, CWsBitmap -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. New/Construct a source CWsBitmap within the RWsSession, and Create it with the specified size and display mode -//! 3. Call CFbsBitmap::ExternalizeL to externalize the source CWsBitmap into a temp file stream -//! 4. New/Construct a dest CWsBitmap within the RWsSession, check its initial size and display mode -//! 5. Execute InternalizeL the dest CWsBitmap from the temp file stream -//! 6. Check the size and display mode of the dest CWsBitmap (expected to be the same as those of the source CWsBitmap) -//! 7. Destruct the CWsBitmap objects, and delete the temp file stream -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. InternalizeL() without causing panic -//! 2. Before the bitmap internalized: handle=0, wshandle=0, size width & height = 0, displaymode = ENone -//! After the bitmap internalized: wshandle!=0, size width & height & displaymode the same as the source bitmap -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsBitmap-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsBitmap wsbmp - CREATE_OBJECT CWsBitmap wsbmp_src - COMMAND ws new - COMMAND ws Connect - COMMAND wsbmp_src new GRAPHICS-WSERV-WsBitmap-PublicApi-0007-0001-new_command04 - COMMAND wsbmp_src Create GRAPHICS-WSERV-WsBitmap-PublicApi-0007-0001-Create_command05 - COMMAND wsbmp_src ExternalizeL GRAPHICS-WSERV-WsBitmap-PublicApi-0007-0001-ExternalizeL_command06 - COMMAND wsbmp new GRAPHICS-WSERV-WsBitmap-PublicApi-0007-0001-new_command08 - COMMAND wsbmp Handle GRAPHICS-WSERV-WsBitmap-PublicApi-0007-0001-Handle_command09 - COMMAND wsbmp WsHandle GRAPHICS-WSERV-WsBitmap-PublicApi-0007-0001-WsHandle_command10 - COMMAND wsbmp SizeInPixels GRAPHICS-WSERV-WsBitmap-PublicApi-0007-0001-SizeInPixels_command11 - COMMAND wsbmp InternalizeL GRAPHICS-WSERV-WsBitmap-PublicApi-0007-0001-InternalizeL_command12 - COMMAND wsbmp Handle - COMMAND wsbmp WsHandle GRAPHICS-WSERV-WsBitmap-PublicApi-0007-0001-WsHandle_command14 - COMMAND wsbmp SizeInPixels GRAPHICS-WSERV-WsBitmap-PublicApi-0007-0001-SizeInPixels_command15 - COMMAND wsbmp ~ - COMMAND wsbmp_src ~ - END_TEST_BLOCK - RUN_UTILS DeleteFile ${SYSDRIVE}\graphics\test_wsbitmap.tmp -END_TESTCASE GRAPHICS-WSERV-WsBitmap-PublicApi-0007 - - -START_TESTCASE GRAPHICS-WSERV-WsBitmap-PublicApi-0008 -//! @SYMTestCaseID GRAPHICS-WSERV-WsBitmap-PublicApi-0008 -//! @SYMAPI CWsBitmap -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 09/01/2007 -//! @SYMTestCaseDesc Reset(): release the bitmap's handle from the FBSERV -//! Uses API elements: RWsSession::Connect, CFbsBitmap::Handle, MWsClientClass::WsHandle, CWsBitmap -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. New and create a CWsBitmap within the RWsSession, check its WsHandle to make sure the creation -//! 3. Execute Reset() to release the bitmap's handle -//! 4. Call CFbsBitmap::Handle & MWsClientClass::WsHandle to check if the handle id released (i.e. equal to value 0) -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. CWsBitmap was reset without causing panic -//! 2. Before the created bitmap reset: wshandle!=0 -//! After the bitmap reset: wshandle=0, handle=0, size width & height = 0, displaymode = ENone -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsBitmap-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsBitmap wsbmp - COMMAND ws new - COMMAND ws Connect - COMMAND wsbmp new GRAPHICS-WSERV-WsBitmap-PublicApi-0008-0001-new_command04 - COMMAND wsbmp Create GRAPHICS-WSERV-WsBitmap-PublicApi-0008-0001-Create_command05 - COMMAND wsbmp Handle - COMMAND wsbmp WsHandle GRAPHICS-WSERV-WsBitmap-PublicApi-0008-0001-WsHandle_command07 - COMMAND wsbmp Reset - COMMAND wsbmp Handle GRAPHICS-WSERV-WsBitmap-PublicApi-0008-0001-Handle_command09 - COMMAND wsbmp WsHandle GRAPHICS-WSERV-WsBitmap-PublicApi-0008-0001-WsHandle_command10 - COMMAND wsbmp SizeInPixels GRAPHICS-WSERV-WsBitmap-PublicApi-0008-0001-SizeInPixels_command11 - COMMAND wsbmp DisplayMode GRAPHICS-WSERV-WsBitmap-PublicApi-0008-0001-DisplayMode_command12 - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsBitmap-PublicApi-0008 - - -// **************************************************************************** -// Negative testcases of CWsBitmap -// **************************************************************************** - -START_TESTCASE GRAPHICS-WSERV-WsBitmap-PublicApi-1001 -//! @SYMTestCaseID GRAPHICS-WSERV-WsBitmap-PublicApi-1001 -//! @SYMAPI CWsBitmap -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 03/10/2007 -//! @SYMTestCaseDesc CWsBitmap(): fail to execute Create() and follow-up commands for a CWsBitmap created by C++ default constructor -//! Uses API elements: CWsBitmap::Create -//! @SYMTestActions 1. new() a CWsBitmap with its default C++ constructor -//! 2. Execute Create() on the CWsBitmap and check if it generated expected error code -//! 3. Destruct CWsBitmap -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults Create() on the CWsBitmap with its default C++ constructor generated KErrCouldNotConnect (-34) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsBitmap-PublicApi.ini - CREATE_OBJECT CWsBitmap wsbmp - COMMAND wsbmp new - COMMAND !Error=-34 wsbmp Create GRAPHICS-WSERV-WsBitmap-PublicApi-1001-0001-Create_command01 - COMMAND wsbmp ~ - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsBitmap-PublicApi-1001 - - -START_TESTCASE GRAPHICS-WSERV-WsBitmap-PublicApi-1002 -//! @SYMTestCaseID GRAPHICS-WSERV-WsBitmap-PublicApi-1002 -//! @SYMAPI CWsBitmap -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 03/10/2007 -//! @SYMTestCaseDesc CWsBitmap(RWsSession &aWs): new a CWsBitmap object within a unconnected RWsSession -//! Uses API elements: RWsSession::Connect, CWsBitmap() -//! @SYMTestActions 1. Create a RWsSession -//! 2. new() a CWsBitmap within the unconnected RWsSession -//! 3. Execute Create() on the CWsBitmap and check if it generated expected error code -//! 4. Destruct and Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults Create() on the CWsBitmap within unconnected RWsSession generated KErrCouldNotConnect (-34) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsBitmap-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsBitmap wsbmp - COMMAND ws new - COMMAND wsbmp new GRAPHICS-WSERV-WsBitmap-PublicApi-1002-0001-new_command01 - COMMAND !Error=-34 wsbmp Create GRAPHICS-WSERV-WsBitmap-PublicApi-1002-0001-Create_command02 - COMMAND wsbmp ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsBitmap-PublicApi-1002 - - -START_TESTCASE GRAPHICS-WSERV-WsBitmap-PublicApi-1003 -//! @SYMTestCaseID GRAPHICS-WSERV-WsBitmap-PublicApi-1003 -//! @SYMAPI CWsBitmap -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 03/10/2007 -//! @SYMTestCaseDesc Create(const TSize &aSizeInPixels, TDisplayMode aDispMode): create a CWsBitmap object with invalid size (negative width & height) -//! Uses API elements: RWsSession::Connect, CWsBitmap() -//! @SYMTestActions 1. Create and Connect a RWsSession -//! 2. new() a CWsBitmap within the RWsSession -//! 3. Execute Create() on the CWsBitmap with invalid size (negative width & height) and check it returned expected error code -//! 4. Destruct and Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults Create() on the CWsBitmap with invalid size generated KErrArgument (-6) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsBitmap-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsBitmap wsbmp - COMMAND ws new - COMMAND ws Connect - COMMAND wsbmp new GRAPHICS-WSERV-WsBitmap-PublicApi-1003-0001-new_command01 - COMMAND !Error=-6 wsbmp Create GRAPHICS-WSERV-WsBitmap-PublicApi-1003-0001-Create_command02 - COMMAND wsbmp ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsBitmap-PublicApi-1003 - - -START_TESTCASE GRAPHICS-WSERV-WsBitmap-PublicApi-1004 -//! @SYMTestCaseID GRAPHICS-WSERV-WsBitmap-PublicApi-1004 -//! @SYMAPI CWsBitmap -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 03/10/2007 -//! @SYMTestCaseDesc Create(const TSize &aSizeInPixels, TDisplayMode aDispMode): create a CWsBitmap object with display mode ENone -//! Uses API elements: RWsSession::Connect, CWsBitmap() -//! @SYMTestActions 1. Create and Connect a RWsSession -//! 2. new() a CWsBitmap within the RWsSession -//! 3. Execute Create() on the CWsBitmap with display mode ENone and check it returned expected error code -//! 4. Destruct and Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults Create() on the CWsBitmap with invalid size generated KErrArgument (-6) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsBitmap-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsBitmap wsbmp - COMMAND ws new - COMMAND ws Connect - COMMAND wsbmp new GRAPHICS-WSERV-WsBitmap-PublicApi-1004-0001-new_command01 - COMMAND !Error=-6 wsbmp Create GRAPHICS-WSERV-WsBitmap-PublicApi-1004-0001-Create_command02 - COMMAND wsbmp ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsBitmap-PublicApi-1004 - - -START_TESTCASE GRAPHICS-WSERV-WsBitmap-PublicApi-1005 -//! @SYMTestCaseID GRAPHICS-WSERV-WsBitmap-PublicApi-1005 -//! @SYMAPI CWsBitmap -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 03/10/2007 -//! @SYMTestCaseDesc Duplicate(TInt aHandle): duplicate a non-existed handle -//! Uses API elements: RWsSession::Connect, CWsBitmap() -//! @SYMTestActions 1. Create and Connect a RWsSession -//! 2. new() a CWsBitmap within the RWsSession -//! 3. Execute Duplicate() the CWsBitmap with a non-existed handle (-1) and check it returned expected error code -//! 4. Destruct and Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults Create() on the CWsBitmap with invalid size generated KErrUnknown (-19) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsBitmap-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsBitmap wsbmp - COMMAND ws new - COMMAND ws Connect - COMMAND wsbmp new GRAPHICS-WSERV-WsBitmap-PublicApi-1005-0001-new_command01 - COMMAND !Error=-19 wsbmp Duplicate GRAPHICS-WSERV-WsBitmap-PublicApi-1005-0001-Duplicate_command02 - COMMAND wsbmp ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsBitmap-PublicApi-1005 - - -START_TESTCASE GRAPHICS-WSERV-WsBitmap-PublicApi-1006 -//! @SYMTestCaseID GRAPHICS-WSERV-WsBitmap-PublicApi-1006 -//! @SYMAPI CWsBitmap -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 03/10/2007 -//! @SYMTestCaseDesc Duplicate(TInt aHandle): duplicate a CWsBitmap object within a unconnected RWsSession -//! Uses API elements: RWsSession::Connect, CWsBitmap::Create & Handle & Duplicate -//! @SYMTestActions 1. Create a RWsSession -//! 2. new() a CWsBitmap within the unconnected RWsSession -//! 3. Connect the RWsSession to WSERV -//! 4. new() another source CWsBitmap within the connected RWsSession -//! 5. Create() the source CWsBitmap as the specified display mode and size -//! 6. Use Handle() to get handle of the source CWsBitmap for the follow-up Duplicate -//! 7. Execute Duplicate() the source CWsBitmap to the unconnected CWsBitmap and check if it generated expected error code -//! 8. Destruct and Close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults Create() on the CWsBitmap within unconnected RWsSession generated KErrCouldNotConnect (-34) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsBitmap-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsBitmap wsbmp - CREATE_OBJECT CWsBitmap wsbmp_src - COMMAND ws new - COMMAND wsbmp new GRAPHICS-WSERV-WsBitmap-PublicApi-1006-0001-new_command01 - COMMAND ws Connect - COMMAND wsbmp_src new GRAPHICS-WSERV-WsBitmap-PublicApi-1006-0001-new_command01 - COMMAND wsbmp_src Create GRAPHICS-WSERV-WsBitmap-PublicApi-1006-0001-Create_command02 - COMMAND wsbmp_src Handle - COMMAND !Error=-34 wsbmp Duplicate GRAPHICS-WSERV-WsBitmap-PublicApi-1006-0001-Duplicate_command03 - COMMAND wsbmp_src ~ - COMMAND wsbmp ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsBitmap-PublicApi-1006 - - -START_TESTCASE GRAPHICS-WSERV-WsBitmap-PublicApi-1007 -//! @SYMTestCaseID GRAPHICS-WSERV-WsBitmap-PublicApi-1007 -//! @SYMAPI CWsBitmap -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 03/10/2007 -//! @SYMTestCaseDesc Load(const TDesC &aFileName, TInt32 aId, TBool aShareIfLoaded=ETrue): load a file to a unconnected CWsBitmap -//! Uses API elements: RWsSession -//! @SYMTestActions 1. Create a RWsSession but not connected -//! 2. new() a CWsBitmap within the unconnected RWsSession -//! 3. Execute Load() to load a file to the CWsBitmap and check if it generated expected error code -//! 4. Destruct the CWsBitmap objects -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults Load() on the CWsBitmap within unconnected RWsSession generated KErrCouldNotConnect (-34) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsBitmap-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsBitmap wsbmp - COMMAND ws new - COMMAND wsbmp new GRAPHICS-WSERV-WsBitmap-PublicApi-1007-0001-new_command01 - COMMAND !Error=-34 wsbmp Load GRAPHICS-WSERV-WsBitmap-PublicApi-1007-0001-Load_command02 - COMMAND wsbmp ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsBitmap-PublicApi-1007 - - -START_TESTCASE GRAPHICS-WSERV-WsBitmap-PublicApi-1008 -//! @SYMTestCaseID GRAPHICS-WSERV-WsBitmap-PublicApi-1008 -//! @SYMAPI CWsBitmap -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 03/10/2007 -//! @SYMTestCaseDesc Load(const TDesC &aFileName, TInt32 aId, TBool aShareIfLoaded=ETrue): load CWsBitmap from a file with identifier of large number -//! Uses API elements: RWsSession -//! @SYMTestActions 1. Create and Connect a RWsSession -//! 2. new() a CWsBitmap within the RWsSession -//! 3. Execute Load() to load an empty file to the CWsBitmap and check if it generated expected error code -//! 4. Destruct the CWsBitmap objects -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults Load() CWsBitmap from a file with identifier of large number generated KErrEof (-25) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsBitmap-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsBitmap wsbmp - COMMAND ws new - COMMAND ws Connect - COMMAND wsbmp new GRAPHICS-WSERV-WsBitmap-PublicApi-1008-0001-new_command01 - COMMAND !Error=-25 wsbmp Load GRAPHICS-WSERV-WsBitmap-PublicApi-1008-0001-Load_command02 - COMMAND wsbmp ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsBitmap-PublicApi-1008 - - -START_TESTCASE GRAPHICS-WSERV-WsBitmap-PublicApi-1009 -//! @SYMTestCaseID GRAPHICS-WSERV-WsBitmap-PublicApi-1009 -//! @SYMAPI CWsBitmap -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 03/10/2007 -//! @SYMTestCaseDesc Load(const TDesC &aFileName, TInt32 aId, TBool aShareIfLoaded=ETrue): load CWsBitmap from a file -//! Uses API elements: RWsSession -//! @SYMTestActions 1. Create and Connect a RWsSession -//! 2. new() a CWsBitmap within the RWsSession -//! 3. Execute Load() to load a file to the CWsBitmap and check if it generated expected error code -//! 4. Destruct the CWsBitmap objects -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults Load() CWsBitmap from a non-existed filename generated KErrNotFound (-1) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsBitmap-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsBitmap wsbmp - COMMAND ws new - COMMAND ws Connect - COMMAND wsbmp new GRAPHICS-WSERV-WsBitmap-PublicApi-1009-0001-new_command01 - COMMAND !Error=-1 wsbmp Load GRAPHICS-WSERV-WsBitmap-PublicApi-1009-0001-Load_command02 - COMMAND wsbmp ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsBitmap-PublicApi-1009 - - -START_TESTCASE GRAPHICS-WSERV-WsBitmap-PublicApi-1010 -//! @SYMTestCaseID GRAPHICS-WSERV-WsBitmap-PublicApi-1010 -//! @SYMAPI CWsBitmap -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 03/10/2007 -//! @SYMTestCaseDesc InternalizeL(RReadStream &aStream): internalises a CWsBitmap from the read stream -//! Uses API elements: RWsSession -//! @SYMTestActions 1. Create and Connect a RWsSession -//! 2. new() a CWsBitmap within the RWsSession -//! 3. Execute InternalizeL() to load a .mbm file to the CWsBitmap and check if it generated expected error code -//! 4. Destruct the CWsBitmap objects -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults InternalizeL() CWsBitmap from a .mbm file generated KErrCorrupt (-20) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsBitmap-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsBitmap wsbmp - COMMAND ws new - COMMAND ws Connect - COMMAND wsbmp new GRAPHICS-WSERV-WsBitmap-PublicApi-1010-0001-new_command01 - COMMAND !Error=-20 wsbmp InternalizeL GRAPHICS-WSERV-WsBitmap-PublicApi-1010-0001-InternalizeL_command02 - COMMAND wsbmp ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsBitmap-PublicApi-1010 diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-WsGraphicBitmap-PublicApi.script --- a/graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-WsGraphicBitmap-PublicApi.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,806 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// -//! @file -//! @SYMTestSuiteName GRAPHICS-WSERV-WsGraphicBitmap-PublicApi -//! @SYMScriptTestEnvironment This test script requires a basic ROM. - -/////////////////////////////////////////////////////////////////////////////// -// GRAPHICS-WSERV-WsGraphicBitmap-PublicApi.script -// -// Tests all public elements of the CWsGraphic class -// as a means of confidence that the API works as expected. -// -// The purpose is to provide a regression test suite of PublishedAll APIs for -// CWsGraphicBitmap related classes. -// Negative testing is performed to confirm that correct errors are returned -// when incorrect parameters are given. -// -// The tests are fully automated. -/////////////////////////////////////////////////////////////////////////////// - - -LOAD_SUITE T_GraphicsWservAPI - - -// **************************************************************************** -// CWsGraphicBitmap -// **************************************************************************** - - -START_TESTCASE GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0001 -//! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0001 -//! @SYMAPI CWsGraphicBitmap -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 06/02/2007 -//! @SYMTestCaseDesc NewL(const CFbsBitmap *aBitmap, const CFbsBitmap *aMask): to construct a piece of transient graphic artwork -//! Uses API elements: RWsSession:Connect, CFbsBitmap::Load, CWsGraphic::Id -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and load CFbsBitmap for both the source bitmap and the mask bitmap -//! 3. Execute CWsGraphicBitmap::NewL() to construct a piece of transient graphic artwork -//! 4. Use Id() to check the constructed CWsGraphic object with non-zero transient -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults 1. Transient CWsGraphic object was constructed without causing panic -//! 2. The constructed CWsGraphic object with transient id != 0 -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicBitmap-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CFbsBitmap fbsbmp - CREATE_OBJECT CFbsBitmap fbsmaskbmp - CREATE_OBJECT CWsGraphicBitmap wsgraph - COMMAND ws new - COMMAND ws Connect - COMMAND fbsbmp new - COMMAND fbsbmp Load GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0001-0001-Load_command05 - COMMAND fbsmaskbmp new - COMMAND fbsmaskbmp Load GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0001-0001-Load_command08 - COMMAND wsgraph NewL GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0001-0001-NewL_command10 - COMMAND wsgraph Id GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0001-0001-Id_command11 - COMMAND wsgraph ~ - COMMAND fbsmaskbmp ~ - COMMAND fbsbmp ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0001 - - -START_TESTCASE GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0002 -//! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0002 -//! @SYMAPI CWsGraphicBitmap -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 14/02/2007 -//! @SYMTestCaseDesc NewL(TUid aUid, const CFbsBitmap *aBitmap, const CFbsBitmap *aMask) to construct a piece of non-transient graphic artwork -//! Uses API elements: RWsSession:Connect, CFbsBitmap::Load, CWsGraphic::Id -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and load CFbsBitmap for both the source bitmap and the mask bitmap -//! 3. Execute CWsGraphicBitmap::NewL() to construct a piece of non-transient graphic artwork -//! 4. Use Id() to check the uid of the CWsGraphic object as specified in construction -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults 1. Non-transient CWsGraphic object was created without causing panic -//! 2. The constructed CWsGraphic object with uid (non-transient id) as specified (98765) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicBitmap-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CFbsBitmap fbsbmp - CREATE_OBJECT CFbsBitmap fbsmaskbmp - CREATE_OBJECT CWsGraphicBitmap wsgraph - COMMAND ws new - COMMAND ws Connect - COMMAND fbsbmp new - COMMAND fbsbmp Load GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0002-0001-Load_command05 - COMMAND fbsmaskbmp new - COMMAND fbsmaskbmp Load GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0002-0001-Load_command08 - COMMAND wsgraph NewL GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0002-0001-NewL_command10 - COMMAND wsgraph Id GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0002-0001-Id_command11 - COMMAND wsgraph ~ - COMMAND fbsmaskbmp ~ - COMMAND fbsbmp ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0002 - - -START_TESTCASE GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0003 -//! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0003 -//! @SYMAPI CWsGraphicBitmap -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 18/05/2007 -//! @SYMTestCaseDesc NewL(const TWsGraphicId &aReplace, const CFbsBitmap *aBitmap, const CFbsBitmap *aMask): to replace a non-transient artwork with new data/bitmap -//! Uses API elements: RWsSession:Connect, CFbsBitmap::Load, CWsGraphic::Id, CWsGraphicBitmap::NewL -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and load CFbsBitmap for both the source bitmap and the mask bitmap -//! 3. Use NewL() to construct a non-transient graphic artwork -//! 4. Use Id to check if the graphic artwork is created with the uid as specified -//! 5. Create and load another CFbsBitmap for the new source bitmap (to replace the old one) -//! 6. Execute CWsGraphicBitmap::NewL() to replace the non-transient graphic artwork with the new source bitmap -//! 7. Use Id to check its uid keeps the same as specified -//! 8. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults 1. Non-transient CWsGraphic object was replaced without causing panic -//! 2. The constructed CWsGraphic object keeps uid (non-transient id) as specified (98765) and active -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicBitmap-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CFbsBitmap fbsbmp - CREATE_OBJECT CFbsBitmap fbsmaskbmp - CREATE_OBJECT CWsGraphicBitmap wsgraph - CREATE_OBJECT CWsGraphicBitmap wsgraph2 - CREATE_OBJECT CFbsBitmap fbsbmp2 - COMMAND ws new - COMMAND ws Connect - COMMAND fbsbmp new - COMMAND fbsbmp Load GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0003-0001-Load_command05 - COMMAND fbsmaskbmp new - COMMAND fbsmaskbmp Load GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0003-0001-Load_command08 - COMMAND wsgraph NewL GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0003-0001-NewL_command10 - COMMAND wsgraph Id GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0003-0001-Id_command11 - COMMAND fbsbmp2 new - COMMAND fbsbmp2 Load GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0003-0001-Load_command14 - COMMAND wsgraph2 NewL GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0003-0001-NewL_command16 - COMMAND wsgraph2 Id GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0003-0001-Id_command17 - COMMAND wsgraph2 ~ - COMMAND wsgraph ~ - COMMAND fbsmaskbmp ~ - COMMAND fbsbmp2 ~ - COMMAND fbsbmp ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0003 - - -START_TESTCASE GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0004 -//! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0004 -//! @SYMAPI CWsGraphicBitmap -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 06/02/2007 -//! @SYMTestCaseDesc ~CWsGraphicBitmap(): destruct a CWsGraphicBitmap object -//! Uses API elements: RWsSession:Connect, CFbsBitmap::Load, CWsGraphicBitmap::NewL -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and load CFbsBitmap for both the source bitmap and the mask bitmap -//! 3. Use CWsGraphicBitmap::NewL() to construct a piece of transient graphic artwork -//! 4. Execute ~CWsGraphicBitmap to destruct the created transient graphic artwork -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults CWsGraphicBitmap destructs without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicBitmap-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CFbsBitmap fbsbmp - CREATE_OBJECT CFbsBitmap fbsmaskbmp - CREATE_OBJECT CWsGraphicBitmap wsgraph - COMMAND ws new - COMMAND ws Connect - COMMAND fbsbmp new - COMMAND fbsbmp Load GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0004-0001-Load_command05 - COMMAND fbsmaskbmp new - COMMAND fbsmaskbmp Load GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0004-0001-Load_command08 - COMMAND wsgraph NewL GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0004-0001-NewL_command10 - COMMAND wsgraph ~ - COMMAND fbsmaskbmp ~ - COMMAND fbsbmp ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0004 - - -START_TESTCASE GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0005 -//! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0005 -//! @SYMAPI CWsGraphicBitmap -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 26/04/2007 -//! @SYMTestCaseDesc TInt ShareGlobally(): share the graphic artwork with all the client sessions (test in CWsGraphicBitmap) -//! Uses API elements: RWsSession:Connect, CFbsBitmap::Load, CWsGraphic::Id -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and load CFbsBitmap for both the source bitmap and the mask bitmap -//! 3. Use NewL() to construct a piece of non-transient graphic artwork -//! 4. Use Id() to check the uid of the CWsGraphicBitmap object as specified in construction -//! 5. Execute ShareGlobally() and check if it returns KErrNone -//! 6. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults ShareGlobally returns KErrNone without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicBitmap-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CFbsBitmap fbsbmp - CREATE_OBJECT CFbsBitmap fbsmaskbmp - CREATE_OBJECT CWsGraphicBitmap wsgraph - COMMAND ws new - COMMAND ws Connect - COMMAND fbsbmp new - COMMAND fbsbmp Load GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0005-0001-Load_command05 - COMMAND fbsmaskbmp new - COMMAND fbsmaskbmp Load GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0005-0001-Load_command08 - COMMAND wsgraph NewL GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0005-0001-NewL_command10 - COMMAND wsgraph Id GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0005-0001-Id_command11 - COMMAND wsgraph ShareGlobally - COMMAND wsgraph ~ - COMMAND fbsmaskbmp ~ - COMMAND fbsbmp ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0005 - - -START_TESTCASE GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0006 -//! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0006 -//! @SYMAPI CWsGraphicBitmap -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 26/04/2007 -//! @SYMTestCaseDesc TInt Share(TSecureId aClientId): explicitly share this graphic artwork with client sessions with the specified Secure ID (test in CWsGraphicBitmap) -//! Uses API elements: RWsSession:Connect, CFbsBitmap::Load, CWsGraphic::Id -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and load CFbsBitmap for both the source bitmap and the mask bitmap -//! 3. Use NewL() to construct a piece of non-transient graphic artwork -//! 4. Use Id() to check the uid of the CWsGraphicBitmap object as specified in construction -//! 5. Execute Share() with TSecureId of the specified client and check if it returns KErrNone -//! 6. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Share returns KErrNone without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicBitmap-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CFbsBitmap fbsbmp - CREATE_OBJECT CFbsBitmap fbsmaskbmp - CREATE_OBJECT CWsGraphicBitmap wsgraph - COMMAND ws new - COMMAND ws Connect - COMMAND fbsbmp new - COMMAND fbsbmp Load GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0006-0001-Load_command05 - COMMAND fbsmaskbmp new - COMMAND fbsmaskbmp Load GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0006-0001-Load_command08 - COMMAND wsgraph NewL GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0006-0001-NewL_command10 - COMMAND wsgraph Id GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0006-0001-Id_command11 - COMMAND wsgraph Share GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0006-0001-Share_command12 - COMMAND wsgraph ~ - COMMAND fbsmaskbmp ~ - COMMAND fbsbmp ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0006 - - -START_TESTCASE GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0007 -//! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0007 -//! @SYMAPI CWsGraphicBitmap -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 26/04/2007 -//! @SYMTestCaseDesc TInt UnShare(TSecureId aClientId): stop this graphic artwork from being shared with all client sessions with the specific Secure ID (test in CWsGraphicBitmap) -//! Uses API elements: RWsSession:Connect, CFbsBitmap::Load, CWsGraphic::Id -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and load CFbsBitmap for both the source bitmap and the mask bitmap -//! 3. Use NewL() to construct a piece of non-transient graphic artwork -//! 4. Use Id() to check the uid of the CWsGraphicBitmap object as specified in construction -//! 5. Use Share() to share the artwork for the TSecureId of the specified client -//! 6. Execute UnShare() with TSecureId of the specified client and check if it returns KErrNone -//! 7. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults UnShare returns KErrNone without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicBitmap-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CFbsBitmap fbsbmp - CREATE_OBJECT CFbsBitmap fbsmaskbmp - CREATE_OBJECT CWsGraphicBitmap wsgraph - COMMAND ws new - COMMAND ws Connect - COMMAND fbsbmp new - COMMAND fbsbmp Load GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0007-0001-Load_command05 - COMMAND fbsmaskbmp new - COMMAND fbsmaskbmp Load GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0007-0001-Load_command08 - COMMAND wsgraph NewL GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0007-0001-NewL_command10 - COMMAND wsgraph Id GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0007-0001-Id_command11 - COMMAND wsgraph Share GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0007-0001-Share_command12 - COMMAND wsgraph UnShare GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0007-0001-UnShare_command13 - COMMAND wsgraph ~ - COMMAND fbsmaskbmp ~ - COMMAND fbsbmp ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0007 - - -START_TESTCASE GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0008 -//! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0008 -//! @SYMAPI CWsGraphicBitmap -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 26/04/2007 -//! @SYMTestCaseDesc TInt UnShareGlobally(): prevent this graphic artwork from being shared with all the client sessions (test in CWsGraphicBitmap) -//! Uses API elements: RWsSession:Connect, CFbsBitmap::Load, CWsGraphic::Id -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and load CFbsBitmap for both the source bitmap and the mask bitmap -//! 3. Use NewL() to construct a piece of non-transient graphic artwork -//! 4. Use Id() to check the uid of the CWsGraphicBitmap object as specified in construction -//! 5. Use ShareGlobally() to share the graphic artwork -//! 6. Execute UnShareGlobally() and check if it returns KErrNone -//! 7. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults UnShareGlobally returns KErrNone without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicBitmap-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CFbsBitmap fbsbmp - CREATE_OBJECT CFbsBitmap fbsmaskbmp - CREATE_OBJECT CWsGraphicBitmap wsgraph - COMMAND ws new - COMMAND ws Connect - COMMAND fbsbmp new - COMMAND fbsbmp Load GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0008-0001-Load_command05 - COMMAND fbsmaskbmp new - COMMAND fbsmaskbmp Load GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0008-0001-Load_command08 - COMMAND wsgraph NewL GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0008-0001-NewL_command10 - COMMAND wsgraph Id GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0008-0001-Id_command11 - COMMAND wsgraph ShareGlobally - COMMAND wsgraph UnShareGlobally - COMMAND wsgraph ~ - COMMAND fbsmaskbmp ~ - COMMAND fbsbmp ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0008 - - - - - - -// **************************************************************************** -// CWsGraphicBitmap Public APIs inherited from CWsGraphic -// **************************************************************************** - - -START_TESTCASE GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0101 -//! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0101 -//! @SYMAPI CWsGraphicBitmap -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 06/02/2007 -//! @SYMTestCaseDesc ~CWsGraphic(): destruct a CWsGraphicBitmap object -//! Uses API elements: RWsSession:Connect, CFbsBitmap::Load, CWsGraphicBitmap::NewL -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and load CFbsBitmap for both the source bitmap and the mask bitmap -//! 3. Use CWsGraphicBitmap::NewL() to construct a piece of transient graphic artwork -//! 4. Execute ~CWsGraphic to destruct the created transient graphic artwork -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults CWsGraphicBitmap destructs without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicBitmap-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CFbsBitmap fbsbmp - CREATE_OBJECT CFbsBitmap fbsmaskbmp - CREATE_OBJECT CWsGraphicBitmap wsgraph - COMMAND ws new - COMMAND ws Connect - COMMAND fbsbmp new - COMMAND fbsbmp Load GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0101-0001-Load_command05 - COMMAND fbsmaskbmp new - COMMAND fbsmaskbmp Load GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0101-0001-Load_command08 - COMMAND wsgraph NewL GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0101-0001-NewL_command10 - COMMAND wsgraph ~CWsGraphic - COMMAND fbsmaskbmp ~ - COMMAND fbsbmp ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0101 - - -START_TESTCASE GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0102 -//! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0102 -//! @SYMAPI CWsGraphic -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 06/02/2007 -//! @SYMTestCaseDesc Id(): get the CWsGraphic artwork id -//! Uses API elements: RWsSession:Connect, CFbsBitmap::Load, CWsGraphicBitmap::NewL -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and load CFbsBitmap for both the source bitmap and the mask bitmap -//! 3. Use NewL() to construct a piece of transient graphic artwork -//! 4. Execute Id() and check if it returns non-zero for the transient graphic artwork -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Id() is executed without causing panic, and returns id not 0 after construction of transient graphic artwork -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicBitmap-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CFbsBitmap fbsbmp - CREATE_OBJECT CFbsBitmap fbsmaskbmp - CREATE_OBJECT CWsGraphicBitmap wsgraph - COMMAND ws new - COMMAND ws Connect - COMMAND fbsbmp new - COMMAND fbsbmp Load GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0102-0001-Load_command05 - COMMAND fbsmaskbmp new - COMMAND fbsmaskbmp Load GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0102-0001-Load_command08 - COMMAND wsgraph NewL GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0102-0001-NewL_command10 - COMMAND wsgraph Id GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0102-0001-Id_command11 - COMMAND wsgraph ~ - COMMAND fbsmaskbmp ~ - COMMAND fbsbmp ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0102 - - -START_TESTCASE GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0103 -//! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0103 -//! @SYMAPI CWsGraphic -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 07/02/2007 -//! @SYMTestCaseDesc IsActive(): check whether a peer of this graphic artwork has been fully constructed on the server -//! Uses API elements: RWsSession:Connect, CFbsBitmap::Load, CWsGraphicBitmap::NewL -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and load CFbsBitmap for both the source bitmap and the mask bitmap -//! 3. Use NewL() to construct a piece of transient graphic artwork -//! 4. Execute IsActive() and check if it returns TRUE for the transient graphic artwork -//! 5. Close the used objects: CWsGraphic, CFbsBitmap, RWsSession -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults IsActive() is executed without causing panic, and returns TRUE after construction of graphic artwork -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicBitmap-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CFbsBitmap fbsbmp - CREATE_OBJECT CFbsBitmap fbsmaskbmp - CREATE_OBJECT CWsGraphicBitmap wsgraph - COMMAND ws new - COMMAND ws Connect - COMMAND fbsbmp new - COMMAND fbsbmp Load GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0103-0001-Load_command05 - COMMAND fbsmaskbmp new - COMMAND fbsmaskbmp Load GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0103-0001-Load_command08 - COMMAND wsgraph NewL GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0103-0001-NewL_command10 - COMMAND wsgraph IsActive GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0103-0001-IsActive_command11 - COMMAND wsgraph ~ - COMMAND fbsmaskbmp ~ - COMMAND fbsbmp ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0103 - - -START_TESTCASE GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0104 -//! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0104 -//! @SYMAPI CWsGraphic -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 07/02/2007 -//! @SYMTestCaseDesc Destroy(): destroy the corresponding CWsGraphicDrawer instance on the server -//! Uses API elements: RWsSession:Connect, CFbsBitmap::Load, CWsGraphic::Id & IsActive, CWsGraphicBitmap::NewL -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and load CFbsBitmap for both the source bitmap and the mask bitmap -//! 3. Use CWsGraphicBitmap::NewL() to construct a piece of transient graphic artwork -//! 4. Check CWsGraphic object after construction: IsActive()=TRUE and Id() is not 0 -//! 5. Execute to destroy the corresponding CWsGraphicDrawer of the CWsGraphic object -//! 6. Check CWsGraphic object after destroy: IsActive()=FALSE and Id() is 0 -//! 7. Close the used objects: CWsGraphic, CFbsBitmap, RWsSession -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. CWsGraphic was destroyed without causing panic -//! 2. After construction of transient graphic artwork, IsActive()=TRUE and Id() is not 0 -//! 3. After destroy the transient graphic artwork, IsActive()=FALSE and Id() is 0 -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicBitmap-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CFbsBitmap fbsbmp - CREATE_OBJECT CFbsBitmap fbsmaskbmp - CREATE_OBJECT CWsGraphicBitmap wsgraph - COMMAND ws new - COMMAND ws Connect - COMMAND fbsbmp new - COMMAND fbsbmp Load GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0104-0001-Load_command05 - COMMAND fbsmaskbmp new - COMMAND fbsmaskbmp Load GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0104-0001-Load_command08 - COMMAND wsgraph NewL GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0104-0001-NewL_command10 - COMMAND wsgraph IsActive GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0104-0001-IsActive_command11 - COMMAND wsgraph Id GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0104-0001-Id_command12 - COMMAND wsgraph Destroy - COMMAND wsgraph IsActive GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0104-0001-IsActive_command14 - COMMAND wsgraph Id GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0104-0001-Id_command15 - COMMAND wsgraph ~ - COMMAND fbsmaskbmp ~ - COMMAND fbsbmp ~ - Command ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0104 - - - - - -// **************************************************************************** -// Negative testcases of CWsGraphicBitmap -// **************************************************************************** - -START_TESTCASE GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-1001 -//! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-1001 -//! @SYMAPI CWsGraphicBitmap -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 01/11/2007 -//! @SYMTestCaseDesc NewL(TUid aUid, const CFbsBitmap *aBitmap, const CFbsBitmap *aMask) to construct a piece of non-transient graphic artwork with the uid already in use -//! Uses API elements: RWsSession:Connect, CFbsBitmap::Load -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and load CFbsBitmap for both the source bitmap and the mask bitmap -//! 3. Execute CWsGraphicBitmap::NewL() to construct a piece of non-transient graphic artwork -//! 4. Execute CWsGraphicBitmap::NewL() to construct another piece of non-transient graphic artwork and with the same uid as the above -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic WSERV code=66 (this panic code is not yet documented in Symbian Library) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicBitmap-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CFbsBitmap fbsbmp - CREATE_OBJECT CFbsBitmap fbsmaskbmp - CREATE_OBJECT CWsGraphicBitmap wsgraph - CREATE_OBJECT CWsGraphicBitmap wsgraph2 - COMMAND ws new - COMMAND ws Connect - COMMAND fbsbmp new - COMMAND fbsbmp Load GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0002-0001-Load_command05 - COMMAND fbsmaskbmp new - COMMAND fbsmaskbmp Load GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0002-0001-Load_command08 - COMMAND wsgraph NewL GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0002-0001-NewL_command10 - COMMAND wsgraph2 NewL GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0002-0001-NewL_command10 - END_TEST_BLOCK !PanicString=WSERV !PanicCode=66 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-1001 - - -START_TESTCASE GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-1002 -//! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-1002 -//! @SYMAPI CWsGraphicBitmap -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 03/10/2007 -//! @SYMTestCaseDesc NewL(TUid aUid, const CFbsBitmap *aBitmap, const CFbsBitmap *aMask) to replace a non-transient graphic artwork with non-existed uid -//! Uses API elements: RWsSession:Connect, CFbsBitmap::Load -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and load CFbsBitmap for both the source bitmap and the mask bitmap -//! 3. Execute CWsGraphicBitmap::NewL() to replace a non-transient graphic artwork but with non-existed uid -//! @SYMTestStatus Implemented -//! @SYMTestPriority Medium -//! @SYMTestExpectedResults get panic W32 code=14 -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicBitmap-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CFbsBitmap fbsbmp - CREATE_OBJECT CFbsBitmap fbsmaskbmp - CREATE_OBJECT CWsGraphicBitmap wsgraph - COMMAND ws new - COMMAND ws Connect - COMMAND fbsbmp new - COMMAND fbsbmp Load GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0002-0001-Load_command05 - COMMAND fbsmaskbmp new - COMMAND fbsmaskbmp Load GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0002-0001-Load_command08 - COMMAND wsgraph NewL GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-1002-0001-NewL_command01 - END_TEST_BLOCK !PanicString=W32 !PanicCode=14 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-1002 - - -START_TESTCASE GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-1003 -//! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-1003 -//! @SYMAPI CWsGraphicBitmap -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 06/11/2007 -//! @SYMTestCaseDesc TInt ShareGlobally(): share globally a graphic artwork that already been shared globally -//! Uses API elements: RWsSession:Connect, CFbsBitmap::Load, CWsGraphic::Id -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and load CFbsBitmap for both the source bitmap and the mask bitmap -//! 3. Use NewL() to construct a piece of non-transient graphic artwork -//! 4. Use Id() to check the uid of the CWsGraphicBitmap object as specified in construction -//! 5. Execute ShareGlobally() and check if it returns KErrNone -//! 6. Execute ShareGlobally() again to share the graphic artwork globally and check if it returns KErrNone -//! 7. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults ShareGlobally() again on a graphic artwork that already ShareGlobally would not generate any error (return KErrNone) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicBitmap-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CFbsBitmap fbsbmp - CREATE_OBJECT CFbsBitmap fbsmaskbmp - CREATE_OBJECT CWsGraphicBitmap wsgraph - COMMAND ws new - COMMAND ws Connect - COMMAND fbsbmp new - COMMAND fbsbmp Load GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0005-0001-Load_command05 - COMMAND fbsmaskbmp new - COMMAND fbsmaskbmp Load GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0005-0001-Load_command08 - COMMAND wsgraph NewL GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0005-0001-NewL_command10 - COMMAND wsgraph Id GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0005-0001-Id_command11 - COMMAND wsgraph ShareGlobally - COMMAND wsgraph ShareGlobally - COMMAND wsgraph ~ - COMMAND fbsmaskbmp ~ - COMMAND fbsbmp ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-1003 - - -START_TESTCASE GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-1004 -//! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-1004 -//! @SYMAPI CWsGraphicBitmap -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 05/11/2007 -//! @SYMTestCaseDesc TInt Share(TSecureId aClientId): share a graphic artwork to a Secure ID that already been shared to explicitly -//! Uses API elements: RWsSession:Connect, CFbsBitmap::Load, CWsGraphic::Id -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and load CFbsBitmap for both the source bitmap and the mask bitmap -//! 3. Use NewL() to construct a piece of non-transient graphic artwork -//! 4. Use Id() to check the uid of the CWsGraphicBitmap object as specified in construction -//! 5. Execute Share() with TSecureId of the specified client and check if it returns KErrNone -//! 6. Execute Share() again to share the graphic artwork with the same TSecureId and check if it returns the expected error code -//! 7. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Share() a graphic artwork to a Secure ID that already been shared to would generate KErrAlreadyExists (-11) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicBitmap-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CFbsBitmap fbsbmp - CREATE_OBJECT CFbsBitmap fbsmaskbmp - CREATE_OBJECT CWsGraphicBitmap wsgraph - COMMAND ws new - COMMAND ws Connect - COMMAND fbsbmp new - COMMAND fbsbmp Load GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0005-0001-Load_command05 - COMMAND fbsmaskbmp new - COMMAND fbsmaskbmp Load GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0005-0001-Load_command08 - COMMAND wsgraph NewL GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0005-0001-NewL_command10 - COMMAND wsgraph Id GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0005-0001-Id_command11 - COMMAND wsgraph Share GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0007-0001-Share_command12 - COMMAND !Error=-11 wsgraph Share GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0007-0001-Share_command12 - COMMAND wsgraph ~ - COMMAND fbsmaskbmp ~ - COMMAND fbsbmp ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-1004 - - -START_TESTCASE GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-1005 -//! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-1005 -//! @SYMAPI CWsGraphicBitmap -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 05/11/2007 -//! @SYMTestCaseDesc TInt UnShare(TSecureId aClientId): stop this graphic artwork from being shared to a Secure ID before execute Share() to it first -//! Uses API elements: RWsSession:Connect, CFbsBitmap::Load, CWsGraphic::Id -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and load CFbsBitmap for both the source bitmap and the mask bitmap -//! 3. Use NewL() to construct a piece of non-transient graphic artwork -//! 4. Use Id() to check the uid of the CWsGraphicBitmap object as specified in construction -//! 5. Execute UnShare() with TSecureId that not yet shared and check if it returns expected error -//! 6. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults UnShare() a graphic artwork to a Secure ID before shared to it would generate KErrNotFound (-1) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicBitmap-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CFbsBitmap fbsbmp - CREATE_OBJECT CFbsBitmap fbsmaskbmp - CREATE_OBJECT CWsGraphicBitmap wsgraph - COMMAND ws new - COMMAND ws Connect - COMMAND fbsbmp new - COMMAND fbsbmp Load GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0005-0001-Load_command05 - COMMAND fbsmaskbmp new - COMMAND fbsmaskbmp Load GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0005-0001-Load_command08 - COMMAND wsgraph NewL GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0005-0001-NewL_command10 - COMMAND wsgraph Id GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0005-0001-Id_command11 - COMMAND !Error=-1 wsgraph UnShare GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0007-0001-UnShare_command13 - COMMAND wsgraph ~ - COMMAND fbsmaskbmp ~ - COMMAND fbsbmp ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-1005 - - -START_TESTCASE GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-1006 -//! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-1006 -//! @SYMAPI CWsGraphicBitmap -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 06/11/2007 -//! @SYMTestCaseDesc TInt UnShareGlobally(): prevent this graphic artwork from being shared with all the client sessions before execute ShareGlobally() on it first -//! Uses API elements: RWsSession:Connect, CFbsBitmap::Load, CWsGraphic::Id -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and load CFbsBitmap for both the source bitmap and the mask bitmap -//! 3. Use NewL() to construct a piece of non-transient graphic artwork -//! 4. Use Id() to check the uid of the CWsGraphicBitmap object as specified in construction -//! 5. Execute UnShareGlobally() the graphic artwork before ShareGlobally() it first and check if it returns KErrNone -//! 6. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults UnShareGlobally() a graphic artwork before execute ShareGlobally() on it first would not generate any error (returns KErrNone) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicBitmap-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CFbsBitmap fbsbmp - CREATE_OBJECT CFbsBitmap fbsmaskbmp - CREATE_OBJECT CWsGraphicBitmap wsgraph - COMMAND ws new - COMMAND ws Connect - COMMAND fbsbmp new - COMMAND fbsbmp Load GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0005-0001-Load_command05 - COMMAND fbsmaskbmp new - COMMAND fbsmaskbmp Load GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0005-0001-Load_command08 - COMMAND wsgraph NewL GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0005-0001-NewL_command10 - COMMAND wsgraph Id GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0005-0001-Id_command11 - COMMAND wsgraph UnShareGlobally - COMMAND wsgraph ~ - COMMAND fbsmaskbmp ~ - COMMAND fbsbmp ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-1006 - - -START_TESTCASE GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-1007 -//! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-1007 -//! @SYMAPI CWsGraphicBitmap -//! @SYMAuthor Victor Liu -//! @SYMCreationDate 08/11/2007 -//! @SYMTestCaseDesc ShareGlobally() a graphic artwork then UnShare() it to a Secure ID -//! Uses API elements: RWsSession:Connect, CFbsBitmap::Load, CWsGraphic::Id -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and load CFbsBitmap for both the source bitmap and the mask bitmap -//! 3. Use NewL() to construct a piece of non-transient graphic artwork -//! 4. Use Id() to check the uid of the CWsGraphicBitmap object as specified in construction -//! 5. Execute ShareGlobally() and check if it returns KErrNone -//! 6. Execute UnShare() it to a Secure ID and check if it returns expected error code -//! 7. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults UnShare() a graphic artwork that shared globally would generate KErrNotFound (-1) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicBitmap-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CFbsBitmap fbsbmp - CREATE_OBJECT CFbsBitmap fbsmaskbmp - CREATE_OBJECT CWsGraphicBitmap wsgraph - COMMAND ws new - COMMAND ws Connect - COMMAND fbsbmp new - COMMAND fbsbmp Load GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0005-0001-Load_command05 - COMMAND fbsmaskbmp new - COMMAND fbsmaskbmp Load GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0005-0001-Load_command08 - COMMAND wsgraph NewL GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0005-0001-NewL_command10 - COMMAND wsgraph Id GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0005-0001-Id_command11 - COMMAND wsgraph ShareGlobally - COMMAND !Error=-1 wsgraph UnShare GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0007-0001-UnShare_command13 - COMMAND wsgraph ~ - COMMAND fbsmaskbmp ~ - COMMAND fbsbmp ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-1007 - - - - -// **************************************************************************** -// Negative testcases of CWsGraphicBitmap inherited from CWsGraphic -// **************************************************************************** - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi.script --- a/graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,979 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// -//! @file -//! @SYMTestSuiteName GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi -//! @SYMScriptTestEnvironment This test script requires a basic ROM. - -/////////////////////////////////////////////////////////////////////////////// -// GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi.script -// -// Tests all public elements of the CWsGraphicBitmapAnimation class -// as a means of confidence that the API works as expected. -// -// The purpose is to provide a regression test suite of PublishedAll APIs for -// CWsGraphicBitmapAnimation related classes. -// Negative testing is performed to confirm that correct errors are returned -// when incorrect parameters are given. -// -// The tests are fully automated. -/////////////////////////////////////////////////////////////////////////////// - -LOAD_SUITE T_GraphicsWservAPI - -// **************************************************************************** -// CWsGraphicBitmapAnimation -// **************************************************************************** - -START_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0001 -//! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0001 -//! @SYMAPI CWsGraphicBitmapAnimation::NewL(const TFrames{ref}); -//! CWsGraphicBitmapAnimation::~CWsGraphicBitmapAnimation() -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 21-04-2008 -//! @SYMTestCaseDesc Create CWsGraphicBitmapAnimation object just with one frame and then destroy it. -//! @SYMTestActions 1.Create CFrame objects. -//! 2.Connect RFbsSession. -//! 3.Load two bitmap objects, one for bitmap, then other for mask. -//! 4.Set frame info/bitmap/mask for the CFrame. -//! 5.Create CWsGraphicBitmapAnimation object with the CFrame object. -//! 6.Disown and Destroy created objects. -//! 7.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CWsGraphicBitmapAnimation object was created and destroyed without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi.ini - CREATE_OBJECT CWsGraphicBitmapAnimation bmpanim - CREATE_OBJECT CFrame frame1 - CREATE_OBJECT RFbsSession fbssession - CREATE_OBJECT CFbsBitmap bitmap1 - CREATE_OBJECT CFbsBitmap mask1 - COMMAND frame1 NewL - COMMAND fbssession Connect - COMMAND bitmap1 new - COMMAND mask1 new - COMMAND bitmap1 Load GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0001-0001-Load-command005 - COMMAND mask1 Load GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0001-0001-Load-command006 - COMMAND frame1 SetFrameInfo GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0001-0001-SetFrameInfo-command007 - COMMAND frame1 SetBitmap GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0001-0001-SetBitmap-command008 - COMMAND frame1 SetMask GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0001-0001-SetMask-command009 - COMMAND bmpanim NewL GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0001-0001-NewL-command010 - COMMAND bitmap1 disown - COMMAND mask1 disown - COMMAND frame1 ~ - COMMAND bmpanim ~ - COMMAND fbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0001 - - -START_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0002 -//! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0002 -//! @SYMAPI CWsGraphicBitmapAnimation::NewL(const TFrames{ref}); -//! CWsGraphicBitmapAnimation::~CWsGraphicBitmapAnimation() -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 11-03-2008 -//! @SYMTestCaseDesc Create CWsGraphicBitmapAnimation object and then destroy it. -//! @SYMTestActions 1.Create two CFrame objects. -//! 2.Connect RFbsSession. -//! 3.Load four bitmap objects(two bitmaps and two masks). -//! 4.Set frame info/bitmap/mask for the two CFrame objects respectively. -//! 5.Create CWsGraphicBitmapAnimation object with the two CFrame objects. -//! 6.Disown and Destroy created objects. -//! 7.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CWsGraphicBitmapAnimation object was created and destroyed without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi.ini - CREATE_OBJECT CWsGraphicBitmapAnimation bmpanim - CREATE_OBJECT CFrame frame1 - CREATE_OBJECT CFrame frame2 - CREATE_OBJECT RFbsSession fbssession - CREATE_OBJECT CFbsBitmap bitmap1 - CREATE_OBJECT CFbsBitmap bitmap2 - CREATE_OBJECT CFbsBitmap mask1 - CREATE_OBJECT CFbsBitmap mask2 - COMMAND frame1 NewL - COMMAND frame2 NewL - COMMAND fbssession Connect - COMMAND bitmap1 new - COMMAND bitmap2 new - COMMAND mask1 new - COMMAND mask2 new - COMMAND bitmap1 Load GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0002-0001-Load-command008 - COMMAND bitmap2 Load GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0002-0001-Load-command009 - COMMAND mask1 Load GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0002-0001-Load-command010 - COMMAND mask2 Load GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0002-0001-Load-command011 - COMMAND frame1 SetFrameInfo GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0002-0001-SetFrameInfo-command012 - COMMAND frame1 SetBitmap GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0002-0001-SetBitmap-command013 - COMMAND frame1 SetMask GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0002-0001-SetMask-command014 - COMMAND frame2 SetFrameInfo GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0002-0001-SetFrameInfo-command015 - COMMAND frame2 SetBitmap GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0002-0001-SetBitmap-command016 - COMMAND frame2 SetMask GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0002-0001-SetMask-command017 - COMMAND bmpanim NewL GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0002-0001-NewL-command018 - COMMAND bitmap1 disown - COMMAND bitmap2 disown - COMMAND mask1 disown - COMMAND mask2 disown - COMMAND frame1 ~ - COMMAND frame2 ~ - COMMAND bmpanim ~ - COMMAND fbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0002 - - -START_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0003 -//! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0003 -//! @SYMAPI CWsGraphicBitmapAnimation::NewL(TUid, const TFrames{ref}); -//! CWsGraphicBitmapAnimation::~CWsGraphicBitmapAnimation() -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 21-04-2008 -//! @SYMTestCaseDesc Create CWsGraphicBitmapAnimation object just with one frame and then destroy it. -//! @SYMTestActions 1.Create CFrame objects. -//! 2.Connect RFbsSession. -//! 3.Load two bitmap objects, one for bitmap, then other for mask. -//! 4.Set frame info/bitmap/mask for the CFrame. -//! 5.Create CWsGraphicBitmapAnimation object with the CFrame object. -//! 6.Disown and Destroy created objects. -//! 7.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CWsGraphicBitmapAnimation object was created and destroyed without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi.ini - CREATE_OBJECT CWsGraphicBitmapAnimation bmpanim - CREATE_OBJECT CFrame frame1 - CREATE_OBJECT RFbsSession fbssession - CREATE_OBJECT CFbsBitmap bitmap1 - CREATE_OBJECT CFbsBitmap mask1 - COMMAND frame1 NewL - COMMAND fbssession Connect - COMMAND bitmap1 new - COMMAND mask1 new - COMMAND bitmap1 Load GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0003-0001-Load-command005 - COMMAND mask1 Load GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0003-0001-Load-command006 - COMMAND frame1 SetFrameInfo GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0003-0001-SetFrameInfo-command007 - COMMAND frame1 SetBitmap GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0003-0001-SetBitmap-command008 - COMMAND frame1 SetMask GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0003-0001-SetMask-command009 - COMMAND bmpanim NewL GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0003-0001-NewL-command010 - COMMAND bitmap1 disown - COMMAND mask1 disown - COMMAND frame1 ~ - COMMAND bmpanim ~ - COMMAND fbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0003 - - -START_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0004 -//! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0004 -//! @SYMAPI CWsGraphicBitmapAnimation::NewL(TUid, const TFrames{ref}); -//! CWsGraphicBitmapAnimation::~CWsGraphicBitmapAnimation() -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 11-03-2008 -//! @SYMTestCaseDesc Create CWsGraphicBitmapAnimation object with UID and then destroy it. -//! @SYMTestActions 1.Create two CFrame objects. -//! 2.Connect RFbsSession. -//! 3.Load four bitmap objects(two bitmaps and two masks). -//! 4.Set frame info/bitmap/mask for the two CFrame objects respectively. -//! 5.Create CWsGraphicBitmapAnimation object with the two CFrame objects and an Uid. -//! 6.Disown and Destroy created objects. -//! 7.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CWsGraphicBitmapAnimation object was created and destroyed without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi.ini - CREATE_OBJECT CWsGraphicBitmapAnimation bmpanim - CREATE_OBJECT CFrame frame1 - CREATE_OBJECT CFrame frame2 - CREATE_OBJECT RFbsSession fbssession - CREATE_OBJECT CFbsBitmap bitmap1 - CREATE_OBJECT CFbsBitmap bitmap2 - CREATE_OBJECT CFbsBitmap mask1 - CREATE_OBJECT CFbsBitmap mask2 - COMMAND frame1 NewL - COMMAND frame2 NewL - COMMAND fbssession Connect - COMMAND bitmap1 new - COMMAND bitmap2 new - COMMAND mask1 new - COMMAND mask2 new - COMMAND bitmap1 Load GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0004-0001-Load-command008 - COMMAND bitmap2 Load GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0004-0001-Load-command009 - COMMAND mask1 Load GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0004-0001-Load-command010 - COMMAND mask2 Load GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0004-0001-Load-command011 - COMMAND frame1 SetFrameInfo GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0004-0001-SetFrameInfo-command012 - COMMAND frame1 SetBitmap GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0004-0001-SetBitmap-command013 - COMMAND frame1 SetMask GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0004-0001-SetMask-command014 - COMMAND frame2 SetFrameInfo GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0004-0001-SetFrameInfo-command015 - COMMAND frame2 SetBitmap GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0004-0001-SetBitmap-command016 - COMMAND frame2 SetMask GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0004-0001-SetMask-command017 - COMMAND bmpanim NewL GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0004-0001-NewL-command018 - COMMAND bitmap1 disown - COMMAND bitmap2 disown - COMMAND mask1 disown - COMMAND mask2 disown - COMMAND frame1 ~ - COMMAND frame2 ~ - COMMAND bmpanim ~ - COMMAND fbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0004 - - -START_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0005 -//! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0005 -//! @SYMAPI CWsGraphicBitmapAnimation::NewL(const TWsGraphicId{ref},const TFrames{ref}); -//! CWsGraphicBitmapAnimation::~CWsGraphicBitmapAnimation() -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 21-04-2008 -//! @SYMTestCaseDesc Create CWsGraphicBitmapAnimation object just with one frame and then destroy it. -//! @SYMTestActions 1.Create CFrame objects. -//! 2.Connect RFbsSession. -//! 3.Load two bitmap objects, one for bitmap, then other for mask. -//! 4.Set frame info/bitmap/mask for the CFrame. -//! 5.Create CWsGraphicBitmapAnimation object with the CFrame object. -//! 6.Disown and Destroy created objects. -//! 7.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CWsGraphicBitmapAnimation object was created and destroyed without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi.ini - CREATE_OBJECT CWsGraphicBitmapAnimation bmpanim - CREATE_OBJECT CWsGraphicBitmapAnimation bmpanim2 - CREATE_OBJECT CFrame frame1 - CREATE_OBJECT RFbsSession fbssession - CREATE_OBJECT CFbsBitmap bitmap1 - CREATE_OBJECT CFbsBitmap mask1 - COMMAND frame1 NewL - COMMAND fbssession Connect - COMMAND bitmap1 new - COMMAND mask1 new - COMMAND bitmap1 Load GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0005-0001-Load-command005 - COMMAND mask1 Load GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0005-0001-Load-command006 - COMMAND frame1 SetFrameInfo GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0005-0001-SetFrameInfo-command007 - COMMAND frame1 SetBitmap GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0005-0001-SetBitmap-command008 - COMMAND frame1 SetMask GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0005-0001-SetMask-command009 - COMMAND bmpanim NewL GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0005-0001-NewL-command010 - COMMAND bmpanim2 NewL GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0005-0001-NewL-command011 - COMMAND bitmap1 disown - COMMAND mask1 disown - COMMAND frame1 ~ - COMMAND bmpanim ~ - COMMAND bmpanim2 ~ - COMMAND fbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0005 - - -START_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0006 -//! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0006 -//! @SYMAPI CWsGraphicBitmapAnimation::NewL(const TWsGraphicId{ref},const TFrames{ref}); -//! CWsGraphicBitmapAnimation::~CWsGraphicBitmapAnimation() -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 11-03-2008 -//! @SYMTestCaseDesc Create CWsGraphicBitmapAnimation object and then destroy. -//! @SYMTestActions 1.Create two CFrame objects. -//! 2.Connect RFbsSession. -//! 3.Load four bitmap objects(two bitmaps and two masks). -//! 4.Set frame info/bitmap/mask for the two CFrame objects respectively. -//! 5.Create CWsGraphicBitmapAnimation object with the two CFrame objects and a TWsGraphicId. -//! 6.Disown and Destroy created objects. -//! 7.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CWsGraphicBitmapAnimation object was created and destroyed without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi.ini - CREATE_OBJECT CWsGraphicBitmapAnimation bmpanim - CREATE_OBJECT CWsGraphicBitmapAnimation bmpanim2 - CREATE_OBJECT CFrame frame1 - CREATE_OBJECT CFrame frame2 - CREATE_OBJECT RFbsSession fbssession - CREATE_OBJECT CFbsBitmap bitmap1 - CREATE_OBJECT CFbsBitmap bitmap2 - CREATE_OBJECT CFbsBitmap mask1 - CREATE_OBJECT CFbsBitmap mask2 - COMMAND frame1 NewL - COMMAND frame2 NewL - COMMAND fbssession Connect - COMMAND bitmap1 new - COMMAND bitmap2 new - COMMAND mask1 new - COMMAND mask2 new - COMMAND bitmap1 Load GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0006-0001-Load-command008 - COMMAND bitmap2 Load GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0006-0001-Load-command009 - COMMAND mask1 Load GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0006-0001-Load-command010 - COMMAND mask2 Load GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0006-0001-Load-command011 - COMMAND frame1 SetFrameInfo GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0006-0001-SetFrameInfo-command012 - COMMAND frame1 SetBitmap GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0006-0001-SetBitmap-command013 - COMMAND frame1 SetMask GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0006-0001-SetMask-command014 - COMMAND frame2 SetFrameInfo GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0006-0001-SetFrameInfo-command015 - COMMAND frame2 SetBitmap GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0006-0001-SetBitmap-command016 - COMMAND frame2 SetMask GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0006-0001-SetMask-command017 - COMMAND bmpanim NewL GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0006-0001-NewL-command018 - COMMAND bmpanim2 NewL GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0006-0001-NewL-command019 - COMMAND bitmap1 disown - COMMAND bitmap2 disown - COMMAND mask1 disown - COMMAND mask2 disown - COMMAND frame1 ~ - COMMAND frame2 ~ - COMMAND bmpanim ~ - COMMAND bmpanim2 ~ - COMMAND fbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0006 - - -START_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0007 -//! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0007 -//! @SYMAPI CWsGraphicBitmapAnimation::ShareGlobally(); -//! CWsGraphicBitmapAnimation::UnShareGlobally() -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 11-03-2008 -//! @SYMTestCaseDesc Create CWsGraphicBitmapAnimation object and shares it with all the client sessions, and then unshares it. -//! @SYMTestActions 1.Create two CFrame objects. -//! 2.Connect RFbsSession. -//! 3.Load four bitmap objects(two bitmaps and two masks). -//! 4.Set frame info/bitmap/mask for the two CFrame objects respectively. -//! 5.Create CWsGraphicBitmapAnimation object with the two CFrame objects. -//! 6.Share the graphic artwork with all the client sessions. -//! 7.Unshare the graphic artwork with all the client sessions. -//! 8.Disown and Destroy created objects. -//! 9.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Share and unshare CWsGraphicBitmapAnimation object without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi.ini - CREATE_OBJECT CWsGraphicBitmapAnimation bmpanim - CREATE_OBJECT CFrame frame1 - CREATE_OBJECT CFrame frame2 - CREATE_OBJECT RFbsSession fbssession - CREATE_OBJECT CFbsBitmap bitmap1 - CREATE_OBJECT CFbsBitmap bitmap2 - CREATE_OBJECT CFbsBitmap mask1 - CREATE_OBJECT CFbsBitmap mask2 - COMMAND frame1 NewL - COMMAND frame2 NewL - COMMAND fbssession Connect - COMMAND bitmap1 new - COMMAND bitmap2 new - COMMAND mask1 new - COMMAND mask2 new - COMMAND bitmap1 Load GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0007-0001-Load-command008 - COMMAND bitmap2 Load GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0007-0001-Load-command009 - COMMAND mask1 Load GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0007-0001-Load-command010 - COMMAND mask2 Load GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0007-0001-Load-command011 - COMMAND frame1 SetFrameInfo GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0007-0001-SetFrameInfo-command012 - COMMAND frame1 SetBitmap GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0007-0001-SetBitmap-command013 - COMMAND frame1 SetMask GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0007-0001-SetMask-command014 - COMMAND frame2 SetFrameInfo GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0007-0001-SetFrameInfo-command015 - COMMAND frame2 SetBitmap GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0007-0001-SetBitmap-command016 - COMMAND frame2 SetMask GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0007-0001-SetMask-command017 - COMMAND bmpanim NewL GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0007-0001-NewL-command018 - COMMAND bmpanim ShareGlobally - COMMAND bmpanim UnShareGlobally - COMMAND bitmap1 disown - COMMAND bitmap2 disown - COMMAND mask1 disown - COMMAND mask2 disown - COMMAND frame1 ~ - COMMAND frame2 ~ - COMMAND bmpanim ~ - COMMAND fbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0007 - - -START_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0008 -//! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0008 -//! @SYMAPI CWsGraphicBitmapAnimation::Share(TSecureId); -//! CWsGraphicBitmapAnimation::UnShare(TSecureId) -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 11-03-2008 -//! @SYMTestCaseDesc Shares created CWsGraphicBitmapAnimation object with client sessions with the specified Secure ID. -//! @SYMTestActions 1.Create two CFrame objects. -//! 2.Connect RFbsSession. -//! 3.Load four bitmap objects(two bitmaps and two masks). -//! 4.Set frame info/bitmap/mask for the two CFrame objects respectively. -//! 5.Create CWsGraphicBitmapAnimation object with the two CFrame objects. -//! 6.Share the created CWsGraphicBitmapAnimation object with the specified Secure ID, and then unshare it. -//! 7.Unshare the created CWsGraphicBitmapAnimation object with the specified Secure ID. -//! 8.Disown and Destroy created objects. -//! 9.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Share and unshare CWsGraphicBitmapAnimation object with the specified client without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi.ini - CREATE_OBJECT CWsGraphicBitmapAnimation bmpanim - CREATE_OBJECT CFrame frame1 - CREATE_OBJECT CFrame frame2 - CREATE_OBJECT RFbsSession fbssession - CREATE_OBJECT CFbsBitmap bitmap1 - CREATE_OBJECT CFbsBitmap bitmap2 - CREATE_OBJECT CFbsBitmap mask1 - CREATE_OBJECT CFbsBitmap mask2 - COMMAND frame1 NewL - COMMAND frame2 NewL - COMMAND fbssession Connect - COMMAND bitmap1 new - COMMAND bitmap2 new - COMMAND mask1 new - COMMAND mask2 new - COMMAND bitmap1 Load GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0008-0001-Load-command008 - COMMAND bitmap2 Load GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0008-0001-Load-command009 - COMMAND mask1 Load GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0008-0001-Load-command010 - COMMAND mask2 Load GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0008-0001-Load-command011 - COMMAND frame1 SetFrameInfo GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0008-0001-SetFrameInfo-command012 - COMMAND frame1 SetBitmap GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0008-0001-SetBitmap-command013 - COMMAND frame1 SetMask GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0008-0001-SetMask-command014 - COMMAND frame2 SetFrameInfo GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0008-0001-SetFrameInfo-command015 - COMMAND frame2 SetBitmap GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0008-0001-SetBitmap-command016 - COMMAND frame2 SetMask GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0008-0001-SetMask-command017 - COMMAND bmpanim NewL GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0008-0001-NewL-command018 - COMMAND bmpanim Share GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0008-0001-Share-command019 - COMMAND bmpanim UnShare GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0008-0001-UnShare-command020 - COMMAND bitmap1 disown - COMMAND bitmap2 disown - COMMAND mask1 disown - COMMAND mask2 disown - COMMAND frame1 ~ - COMMAND frame2 ~ - COMMAND bmpanim ~ - COMMAND fbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0008 - - -START_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0009 -//! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0009 -//! @SYMAPI CWsGraphicBitmapAnimation::UnShare(TSecureId) -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 11-03-2008 -//! @SYMTestCaseDesc Unshare the no longer shared CWsGraphicBitmapAnimation object with the specific Secure ID. -//! @SYMTestActions 1.Create two CFrame objects. -//! 2.Connect RFbsSession. -//! 3.Load four bitmap objects(two bitmaps and two masks). -//! 4.Set frame info/bitmap/mask for the two CFrame objects respectively. -//! 5.Create CWsGraphicBitmapAnimation object with the two CFrame objects. -//! 6.Stop the created CWsGraphicBitmapAnimation object from being shared, will get an error(KErrNotFound). -//! 7.Disown and Destroy created objects. -//! 8.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults KErrNotFound(-1) will be returned when unshare the created CWsGraphicBitmapAnimation object. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi.ini - CREATE_OBJECT CWsGraphicBitmapAnimation bmpanim - CREATE_OBJECT CFrame frame1 - CREATE_OBJECT CFrame frame2 - CREATE_OBJECT RFbsSession fbssession - CREATE_OBJECT CFbsBitmap bitmap1 - CREATE_OBJECT CFbsBitmap bitmap2 - CREATE_OBJECT CFbsBitmap mask1 - CREATE_OBJECT CFbsBitmap mask2 - COMMAND frame1 NewL - COMMAND frame2 NewL - COMMAND fbssession Connect - COMMAND bitmap1 new - COMMAND bitmap2 new - COMMAND mask1 new - COMMAND mask2 new - COMMAND bitmap1 Load GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0009-0001-Load-command008 - COMMAND bitmap2 Load GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0009-0001-Load-command009 - COMMAND mask1 Load GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0009-0001-Load-command010 - COMMAND mask2 Load GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0009-0001-Load-command011 - COMMAND frame1 SetFrameInfo GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0009-0001-SetFrameInfo-command012 - COMMAND frame1 SetBitmap GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0009-0001-SetBitmap-command013 - COMMAND frame1 SetMask GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0009-0001-SetMask-command014 - COMMAND frame2 SetFrameInfo GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0009-0001-SetFrameInfo-command015 - COMMAND frame2 SetBitmap GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0009-0001-SetBitmap-command016 - COMMAND frame2 SetMask GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0009-0001-SetMask-command017 - COMMAND bmpanim NewL GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0009-0001-NewL-command018 - COMMAND !Error=-1 bmpanim UnShare GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0009-0001-UnShare-command019 - COMMAND bitmap1 disown - COMMAND bitmap2 disown - COMMAND mask1 disown - COMMAND mask2 disown - COMMAND frame1 ~ - COMMAND frame2 ~ - COMMAND bmpanim ~ - COMMAND fbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0009 - - -START_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0010 -//! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0010 -//! @SYMAPI CWsGraphicBitmapAnimation::UnShareGlobally() -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 11-03-2008 -//! @SYMTestCaseDesc Unshare globally the not shared CWsGraphicBitmapAnimation object. -//! @SYMTestActions 1.Create two CFrame objects. -//! 2.Connect RFbsSession. -//! 3.Load four bitmap objects(two bitmaps and two masks). -//! 4.Set frame info/bitmap/mask for the two CFrame objects respectively. -//! 5.Create CWsGraphicBitmapAnimation object with the two CFrame objects. -//! 6.Unshare CWsGraphicBitmapAnimation object which not be shared with all the client sessions. -//! 7.Disown and Destroy created objects. -//! 8.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults UnShare CWsGraphicBitmapAnimation object without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi.ini - CREATE_OBJECT CWsGraphicBitmapAnimation bmpanim - CREATE_OBJECT CFrame frame1 - CREATE_OBJECT CFrame frame2 - CREATE_OBJECT RFbsSession fbssession - CREATE_OBJECT CFbsBitmap bitmap1 - CREATE_OBJECT CFbsBitmap bitmap2 - CREATE_OBJECT CFbsBitmap mask1 - CREATE_OBJECT CFbsBitmap mask2 - COMMAND frame1 NewL - COMMAND frame2 NewL - COMMAND fbssession Connect - COMMAND bitmap1 new - COMMAND bitmap2 new - COMMAND mask1 new - COMMAND mask2 new - COMMAND bitmap1 Load GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0010-0001-Load-command008 - COMMAND bitmap2 Load GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0010-0001-Load-command009 - COMMAND mask1 Load GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0010-0001-Load-command010 - COMMAND mask2 Load GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0010-0001-Load-command011 - COMMAND frame1 SetFrameInfo GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0010-0001-SetFrameInfo-command012 - COMMAND frame1 SetBitmap GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0010-0001-SetBitmap-command013 - COMMAND frame1 SetMask GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0010-0001-SetMask-command014 - COMMAND frame2 SetFrameInfo GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0010-0001-SetFrameInfo-command015 - COMMAND frame2 SetBitmap GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0010-0001-SetBitmap-command016 - COMMAND frame2 SetMask GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0010-0001-SetMask-command017 - COMMAND bmpanim NewL GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0010-0001-NewL-command018 - COMMAND bmpanim UnShareGlobally - COMMAND bitmap1 disown - COMMAND bitmap2 disown - COMMAND mask1 disown - COMMAND mask2 disown - COMMAND frame1 ~ - COMMAND frame2 ~ - COMMAND bmpanim ~ - COMMAND fbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0010 - -START_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0011 -//! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0011 -//! @SYMAPI CWsGraphicBitmapAnimation::NewL(const TFrames{ref}); -//! @SYMAuthor Yue Zhang -//! @SYMCreationDate 27-03-2008 -//! @SYMTestCaseDesc Negative test, set the FrameInfo to a CFrame object without iDelay parameter. -//! @SYMTestActions 1. Create a CFrame object; -//! 2. Connect RFbsSession; -//! 3. Set FrameInfo to the CFrame object without iDelay parameter; -//! 4. Create CWsGraphicBitmapAnimation object with the CFrame object; -//! 5. Destroy related objects. -//! 6. Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Error code -20 received at Test Action 4. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi.ini - CREATE_OBJECT CWsGraphicBitmapAnimation bmpanim - CREATE_OBJECT CFrame frame1 - CREATE_OBJECT RFbsSession fbssession - COMMAND frame1 NewL - COMMAND fbssession Connect - COMMAND frame1 SetFrameInfo GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0011-0001-SetFrameInfo-command003 - COMMAND !Error=-20 bmpanim NewL GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0011-0001-NewL-command004 - COMMAND frame1 ~ - COMMAND bmpanim ~ - COMMAND fbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0011 - - -START_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0012 -//! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0012 -//! @SYMAPI CWsGraphicBitmapAnimation::NewL(TUid, const TFrames{ref}) -//! @SYMAuthor Yue Zhang -//! @SYMCreationDate 27-03-2008 -//! @SYMTestCaseDesc Create CWsGraphicBitmapAnimation object with specified Uid and then check the Uid properties. -//! @SYMTestActions 1. Create CFrame object; -//! 2. Create RFbsSession object and Connect; -//! 3. Create CFbsBitmap object; -//! 4. Load CFbsBitmap; -//! 5. Set FrameInfo and Bitmap to the CFrame object. -//! 6. Create CWsGraphicBitmapAnimation object with the CFrame object and specified Uid. -//! 7. Get the Uid of the CWsGraphicBitmapAnimation object; -//! 8.Disown and destroy the created objects; -//! 9.Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The Uid get at the action 7 should have the same value as the specified Uid. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi.ini - CREATE_OBJECT CWsGraphicBitmapAnimation bmpanim - CREATE_OBJECT CFrame frame1 - CREATE_OBJECT RFbsSession fbssession - CREATE_OBJECT CFbsBitmap bitmap1 - COMMAND frame1 NewL - COMMAND fbssession Connect - COMMAND bitmap1 new - COMMAND bitmap1 Load GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0012-0001-Load-command004 - COMMAND frame1 SetFrameInfo GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0012-0001-SetFrameInfo-command005 - COMMAND frame1 SetBitmap GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0012-0001-SetBitmap-command006 - COMMAND bmpanim NewL GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0012-0001-NewL-command007 - COMMAND bmpanim Id GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0012-0001-Id-command008 - COMMAND bitmap1 disown - COMMAND frame1 ~ - COMMAND bmpanim ~ - COMMAND fbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0012 - - -START_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013 -//! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013 -//! @SYMAPI CWsGraphicBitmapAnimation::ShareGlobally(); -//! CWsGraphicBitmapAnimation::UnShareGlobally() -//! @SYMAuthor Yue Zhang -//! @SYMCreationDate 28-03-2008 -//! @SYMTestCaseDesc Using another process draw the bitmap after the CWsGraphicBitmapAnimation share globally or unshare globally. -//! @SYMTestActions 1. Create CFrame object; -//! 2. Create RFbsSession object and connect; -//! 3. Create wsga object; -//! 4. Create RWsSession object and connect; -//! 5. Create CWsScreenDevice object and construct it; -//! 6. Create context of CWsScreenDevice; -//! 7. Create CFbsBitmap object; -//! 8. Load CFbsBitmap; -//! 9. Set FrameInfo and Bitmap to the CFrame object. -//! 10. Create CWsGraphicBitmapAnimation object with the CFrame object. -//! 11. Create RWindowGroup object and construct it. -//! 12. Create RWindow object and construct it. -//! 13. Set required display mode of RWindow object; -//! 14. Set background color of RWindow object. -//! 15. Active the RWindow object. -//! 16. Set auto flush of RWsSession object. -//! 17. Activate the CWindowGc object. -//! 18. Draw window session graphic by the CWindowGc object. -//! 19. Decativate the CWindowGc object. -//! 20. Start a test client in another process; -//! 21. Draw the window session bitmap in the client; -//! 22. Use CWsScreenDevice object to compare the drawn rectangle. -//! 23. Close the test client. -//! 24. Share the graphic artwork with all the client sessions; -//! 25. Start a test client in another process; -//! 26. Draw the window session bitmap in the client; -//! 27. Use CWsScreenDevice object to compare the drawn rectangle. -//! 28. Close the test client. -//! 29. Unshare the graphic artwork with all the client sessions; -//! 30. Start a test client in another process; -//! 31. Draw the window session bitmap in the client; -//! 32. Use CWsScreenDevice object to compare the drawn rectangle. -//! 33. Close the test client. -//! 34. Disown and destroy the created objects; -//! 35. Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap should not be drawn successfully at test action 21; -//! The bitmap should be drawn successfully at test action 26; -//! The bitmap should not be drawn successfully at test action 31. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi.ini - CREATE_OBJECT CWsGraphicBitmapAnimation bmpanim - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CFrame frame1 - CREATE_OBJECT RFbsSession fbssession - CREATE_OBJECT CFbsBitmap bitmap1 - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wgc - CREATE_OBJECT TWsGraphicAnimation wsga - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND frame1 NewL - COMMAND fbssession Connect - COMMAND wsga new - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-new-command006 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-CreateContext_command008 - COMMAND bitmap1 new - COMMAND bitmap1 Load GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-Load-command010 - COMMAND frame1 SetFrameInfo GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-SetFrameInfo-command011 - COMMAND frame1 SetBitmap GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-SetBitmap-command012 - COMMAND bmpanim NewL GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-NewL-command013 - COMMAND wingrp new GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-new_command014 - COMMAND wingrp Construct GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-Construct_command015 - COMMAND win new GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-new_command016 - COMMAND win Construct GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-Construct_command017 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-SetRequiredDisplayMode_command018 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-SetBackgroundColor_command019 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-SetAutoFlush_command021 - COMMAND wgc Activate GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-Activate_command022 - COMMAND win BeginRedraw - COMMAND wgc DrawWsGraphic GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-DrawWsGraphic_command024 - COMMAND win EndRedraw - COMMAND wgc Deactivate - COMMAND bmpanim Util_StartAnimTesterClientL GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-Util_StartAnimTesterClientL_command027 - COMMAND scrdev RectCompare GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-RectCompare_command028 - COMMAND bmpanim Util_CloseAnimTesterClientL GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-Util_CloseAnimTesterClientL_command029 - COMMAND bmpanim ShareGlobally - COMMAND bmpanim Util_StartAnimTesterClientL GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-Util_StartAnimTesterClientL_command031 - COMMAND scrdev RectCompare GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-RectCompare_command032 - COMMAND bmpanim Util_CloseAnimTesterClientL GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-Util_CloseAnimTesterClientL_command033 - COMMAND bmpanim UnShareGlobally - COMMAND bmpanim Util_StartAnimTesterClientL GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-Util_StartAnimTesterClientL_command035 - COMMAND scrdev RectCompare GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-RectCompare_command036 - COMMAND bmpanim Util_CloseAnimTesterClientL GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-Util_CloseAnimTesterClientL_command037 - COMMAND bitmap1 disown - COMMAND frame1 ~ - COMMAND bmpanim ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND wgc ~ - COMMAND scrdev ~ - COMMAND ws Close - COMMAND fbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013 - - -START_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014 -//! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014 -//! @SYMAPI CWsGraphicBitmapAnimation::Share(TSecureId); -//! CWsGraphicBitmapAnimation::UnShare(TSecureId) -//! @SYMAuthor Yue Zhang -//! @SYMCreationDate 28-03-2008 -//! @SYMTestCaseDesc Using another process with given SID draw the bitmap after the CWsGraphicBitmapAnimation share or unshare to the Sid. -//! @SYMTestActions 1. Create CFrame object; -//! 2. Create RFbsSession object and connect; -//! 3. Create wsga object; -//! 4. Create RWsSession object and connect; -//! 5. Create CWsScreenDevice object and construct it; -//! 6. Create context of CWsScreenDevice; -//! 7. Create CFbsBitmap object; -//! 8. Load CFbsBitmap; -//! 9. Set FrameInfo and Bitmap to the CFrame object. -//! 10. Create CWsGraphicBitmapAnimation object with the CFrame object. -//! 11. Create RWindowGroup object and construct it. -//! 12. Create RWindow object and construct it. -//! 13. Set required display mode of RWindow object; -//! 14. Set background color of RWindow object. -//! 15. Active the RWindow object. -//! 16. Set auto flush of RWsSession object. -//! 17. Activate the CWindowGc object. -//! 18. Draw window session graphic by the CWindowGc object. -//! 19. Decativate the CWindowGc object. -//! 20. Start a test client in another process; -//! 21. Draw the window session bitmap in the client; -//! 22. Use CWsScreenDevice object to compare the drawn rectangle. -//! 23. Close the test client. -//! 24. Share the graphic artwork with the specified Secure ID; -//! 25. Start a test client in another process; -//! 26. Draw the window session bitmap in the client; -//! 27. Use CWsScreenDevice object to compare the drawn rectangle. -//! 28. Close the test client. -//! 29. Unshare the graphic artwork with the specified Secure ID; -//! 30. Start a test client in another process; -//! 31. Draw the window session bitmap in the client; -//! 32. Use CWsScreenDevice object to compare the drawn rectangle. -//! 33. Close the test client. -//! 34. Disown and destroy the created objects; -//! 35. Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap should not be drawn successfully at test action 21; -//! The bitmap should be drawn successfully at test action 26; -//! The bitmap should not be drawn successfully at test action 31. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi.ini - CREATE_OBJECT CWsGraphicBitmapAnimation bmpanim - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CFrame frame1 - CREATE_OBJECT RFbsSession fbssession - CREATE_OBJECT CFbsBitmap bitmap1 - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wgc - CREATE_OBJECT TWsGraphicAnimation wsga - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND frame1 NewL - COMMAND fbssession Connect - COMMAND wsga new - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-new-command006 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-CreateContext_command008 - COMMAND bitmap1 new - COMMAND bitmap1 Load GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-Load-command010 - COMMAND frame1 SetFrameInfo GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-SetFrameInfo-command011 - COMMAND frame1 SetBitmap GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-SetBitmap-command012 - COMMAND bmpanim NewL GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-NewL-command013 - COMMAND wingrp new GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-new_command014 - COMMAND wingrp Construct GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-Construct_command015 - COMMAND win new GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-new_command016 - COMMAND win Construct GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-Construct_command017 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-SetRequiredDisplayMode_command018 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-SetBackgroundColor_command019 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-SetAutoFlush_command021 - COMMAND wgc Activate GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-Activate_command022 - COMMAND win BeginRedraw - COMMAND wgc DrawWsGraphic GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-DrawWsGraphic_command024 - COMMAND win EndRedraw - COMMAND wgc Deactivate - COMMAND bmpanim Util_StartAnimTesterClientL GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-Util_StartAnimTesterClientL_command027 - COMMAND scrdev RectCompare GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-RectCompare_command028 - COMMAND bmpanim Util_CloseAnimTesterClientL GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-Util_CloseAnimTesterClientL_command029 - COMMAND bmpanim Share GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-Share-command030 - COMMAND bmpanim Util_StartAnimTesterClientL GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-Util_StartAnimTesterClientL_command031 - COMMAND scrdev RectCompare GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-RectCompare_command032 - COMMAND bmpanim Util_CloseAnimTesterClientL GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-Util_CloseAnimTesterClientL_command033 - COMMAND bmpanim UnShare GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-UnShare-command034 - COMMAND bmpanim Util_StartAnimTesterClientL GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-Util_StartAnimTesterClientL_command035 - COMMAND scrdev RectCompare GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-RectCompare_command036 - COMMAND bmpanim Util_CloseAnimTesterClientL GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-Util_CloseAnimTesterClientL_command037 - COMMAND bitmap1 disown - COMMAND frame1 ~ - COMMAND bmpanim ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND wgc ~ - COMMAND scrdev ~ - COMMAND ws Close - COMMAND fbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014 - - -START_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015 -//! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015 -//! @SYMAPI CWsGraphicBitmapAnimation::Share(TSecureId); -//! CWsGraphicBitmapAnimation::UnShare(TSecureId) -//! @SYMAuthor Yue Zhang -//! @SYMCreationDate 28-03-2008 -//! @SYMTestCaseDesc Using another process without the given Sid draw the bitmap after the CWsGraphicBitmapAnimation share or unshare to the Sid. -//! @SYMTestActions 1. Create CFrame object; -//! 2. Create RFbsSession object and connect; -//! 3. Create wsga object; -//! 4. Create RWsSession object and connect; -//! 5. Create CWsScreenDevice object and construct it; -//! 6. Create context of CWsScreenDevice; -//! 7. Create CFbsBitmap object; -//! 8. Load CFbsBitmap; -//! 9. Set FrameInfo and Bitmap to the CFrame object. -//! 10. Create CWsGraphicBitmapAnimation object with the CFrame object. -//! 11. Create RWindowGroup object and construct it. -//! 12. Create RWindow object and construct it. -//! 13. Set required display mode of RWindow object; -//! 14. Set background color of RWindow object. -//! 15. Active the RWindow object. -//! 16. Set auto flush of RWsSession object. -//! 17. Activate the CWindowGc object. -//! 18. Draw window session graphic by the CWindowGc object. -//! 19. Decativate the CWindowGc object. -//! 20. Start a test client in another process; -//! 21. Draw the window session bitmap in the client; -//! 22. Use CWsScreenDevice object to compare the drawn rectangle. -//! 23. Close the test client. -//! 24. Share the graphic artwork with the specified Secure ID; -//! 25. Start a test client in another process; -//! 26. Draw the window session bitmap in the client; -//! 27. Use CWsScreenDevice object to compare the drawn rectangle. -//! 28. Close the test client. -//! 29. Unshare the graphic artwork with the specified Secure ID; -//! 30. Start a test client in another process; -//! 31. Draw the window session bitmap in the client; -//! 32. Use CWsScreenDevice object to compare the drawn rectangle. -//! 33. Close the test client. -//! 34. Disown and destroy the created objects; -//! 35. Disconnect RFbsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The bitmap should not be drawn successfully at test action 21; -//! The bitmap should not be drawn successfully at test action 26; -//! The bitmap should not be drawn successfully at test action 31. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi.ini - CREATE_OBJECT CWsGraphicBitmapAnimation bmpanim - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CFrame frame1 - CREATE_OBJECT RFbsSession fbssession - CREATE_OBJECT CFbsBitmap bitmap1 - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wgc - CREATE_OBJECT TWsGraphicAnimation wsga - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND frame1 NewL - COMMAND fbssession Connect - COMMAND wsga new - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-new-command006 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-CreateContext_command008 - COMMAND bitmap1 new - COMMAND bitmap1 Load GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-Load-command010 - COMMAND frame1 SetFrameInfo GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-SetFrameInfo-command011 - COMMAND frame1 SetBitmap GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-SetBitmap-command012 - COMMAND bmpanim NewL GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-NewL-command013 - COMMAND wingrp new GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-new_command014 - COMMAND wingrp Construct GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-Construct_command015 - COMMAND win new GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-new_command016 - COMMAND win Construct GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-Construct_command017 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-SetRequiredDisplayMode_command018 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-SetBackgroundColor_command019 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-SetAutoFlush_command021 - COMMAND wgc Activate GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-Activate_command022 - COMMAND win BeginRedraw - COMMAND wgc DrawWsGraphic GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-DrawWsGraphic_command024 - COMMAND win EndRedraw - COMMAND wgc Deactivate - COMMAND bmpanim Util_StartAnimTesterClientL GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-Util_StartAnimTesterClientL_command027 - COMMAND scrdev RectCompare GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-RectCompare_command028 - COMMAND bmpanim Util_CloseAnimTesterClientL GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-Util_CloseAnimTesterClientL_command029 - COMMAND bmpanim Share GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-Share-command030 - COMMAND bmpanim Util_StartAnimTesterClientL GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-Util_StartAnimTesterClientL_command031 - COMMAND scrdev RectCompare GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-RectCompare_command032 - COMMAND bmpanim Util_CloseAnimTesterClientL GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-Util_CloseAnimTesterClientL_command033 - COMMAND bmpanim UnShare GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-UnShare-command034 - COMMAND bmpanim Util_StartAnimTesterClientL GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-Util_StartAnimTesterClientL_command035 - COMMAND scrdev RectCompare GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-RectCompare_command036 - COMMAND bmpanim Util_CloseAnimTesterClientL GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-Util_CloseAnimTesterClientL_command037 - COMMAND bitmap1 disown - COMMAND frame1 ~ - COMMAND bmpanim ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND wgc ~ - COMMAND scrdev ~ - COMMAND ws Close - COMMAND fbssession Disconnect - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015 - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.script --- a/graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,449 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// -//! @file -//! @SYMTestSuiteName GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi -//! @SYMScriptTestEnvironment This test script requires a basic ROM. - -/////////////////////////////////////////////////////////////////////////////// -// GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.script -// -// Tests all public elements of the WsGraphicMsgBuf class -// as a means of confidence that the API works as expected. -// -// The purpose is to provide a regression test suite of PublishedAll APIs for -// TWindowInfo related classes. -// Negative testing is performed to confirm that correct errors are returned -// when incorrect parameters are given. -// -// The tests are fully automated. -/////////////////////////////////////////////////////////////////////////////// - - -LOAD_SUITE T_GraphicsWservAPI - - -// **************************************************************************** -// WsGraphicMsgBuf -// **************************************************************************** - -START_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0001 -//! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0001 -//! @SYMAPI WsGraphicMsgBuf -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 28/12/2006 -//! @SYMTestCaseDesc RWsGraphicMsgBuf(): Default constructor. -//! Uses API elements:RWsGraphicMsgBuf() and Close() -//! @SYMTestActions 1. Construct RWsGraphicMsgBuf object using RWsGraphicMsgBuf() and return KErrNone if successed. -//! 2. Close the object using Close(). -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults RWsGraphicMsgBuf object create and close successed. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.ini - CREATE_OBJECT RWsGraphicMsgBuf wsGraphicMsgBuf - COMMAND wsGraphicMsgBuf new - COMMAND wsGraphicMsgBuf Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0001 - - -START_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0002 -//! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0002 -//! @SYMAPI WsGraphicMsgBuf -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 28/12/2006 -//! @SYMTestCaseDesc CleanupClosePushL(): Close with clean up memory. -//! Uses API elements:RWsGraphicMsgBuf() and CleanupClosePushL() -//! @SYMTestActions 1. Construct RWsGraphicMsgBuf object using RWsGraphicMsgBuf() and return KErrNone if successed. -//! 2. Close and clean up memory of the object using CleanupClosePushL(). -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults RWsGraphicMsgBuf object create and close successed. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.ini - CREATE_OBJECT RWsGraphicMsgBuf wsGraphicMsgBuf - COMMAND wsGraphicMsgBuf new - COMMAND wsGraphicMsgBuf CleanupClosePushL - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0002 - - -START_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0003 -//! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0003 -//! @SYMAPI WsGraphicMsgBuf -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 28/12/2006 -//! @SYMTestCaseDesc Append(): Append a eight bits descriptor as data. -//! Uses API elements:RWsGraphicMsgBuf(), Close() and Append() -//! @SYMTestActions 1. Construct RWsGraphicMsgBuf object using RWsGraphicMsgBuf() and return KErrNone if successed. -//! 2. Append a eight bits descriptor as data using Append() and return KErrNone if successed. -//! 3. Close the object using Close(). -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults A eight bits descriptor as data was appended successed. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.ini - CREATE_OBJECT RWsGraphicMsgBuf wsGraphicMsgBuf - COMMAND wsGraphicMsgBuf new - COMMAND wsGraphicMsgBuf Append GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0003-0001-Append_command02 - COMMAND wsGraphicMsgBuf Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0003 - - -START_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0004 -//! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0004 -//! @SYMAPI WsGraphicMsgBuf -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 28/12/2006 -//! @SYMTestCaseDesc Append(): Append a sixteen bits descriptor as data. -//! Uses API elements:RWsGraphicMsgBuf(), Close() and Append() -//! @SYMTestActions 1. Construct RWsGraphicMsgBuf object using RWsGraphicMsgBuf() and return KErrNone if successed. -//! 2. Append a sixteen bits descriptor as data using Append() and return KErrNone if successed. -//! 3. Close the object using Close(). -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults A sixteen bits descriptor as data was appended successed. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.ini - CREATE_OBJECT RWsGraphicMsgBuf wsGraphicMsgBuf - COMMAND wsGraphicMsgBuf new - COMMAND wsGraphicMsgBuf Append GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0004-0001-Append_command02 - COMMAND wsGraphicMsgBuf Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0004 - - -START_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0005 -//! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0005 -//! @SYMAPI WsGraphicMsgBuf -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 28/12/2006 -//! @SYMTestCaseDesc Append(): Append a message of the specified length and type. -//! Uses API elements:RWsGraphicMsgBuf(), Close() and Append() -//! @SYMTestActions 1. Construct RWsGraphicMsgBuf object using RWsGraphicMsgBuf() and return KErrNone if successed. -//! 2. Append a message of the specified length and type, and return a pointer to allow client code to modify the message using Append() and return KErrNone if successed. -//! 3. Close the object using Close(). -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults A message of the specified length and type, and return a pointer to allow client code to modify the message was appended successed. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.ini - CREATE_OBJECT RWsGraphicMsgBuf wsGraphicMsgBuf - COMMAND wsGraphicMsgBuf new - COMMAND wsGraphicMsgBuf Append GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0005-0001-Append_command02 - COMMAND wsGraphicMsgBuf Close - END_TEST_BLOCK - -END_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0005 - - -START_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0006 -//! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0006 -//! @SYMAPI WsGraphicMsgBuf -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 28/12/2006 -//! @SYMTestCaseDesc Append(): Append a fixed-size message. -//! Uses API elements:RWsGraphicMsgBuf(), Close() and Append() -//! @SYMTestActions 1. Construct RWsGraphicMsgBuf object using RWsGraphicMsgBuf() and return KErrNone if successed. -//! 2. Append a fixed-size message using Append() and return KErrNone if successed. -//! 3. Close the object using Close(). -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults A fixed-size message was appended successed. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.ini - CREATE_OBJECT RWsGraphicMsgBuf wsGraphicMsgBuf - COMMAND wsGraphicMsgBuf new - COMMAND wsGraphicMsgBuf Append - COMMAND wsGraphicMsgBuf Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0006 - - -START_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0007 -//! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0007 -//! @SYMAPI WsGraphicMsgBuf -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 28/12/2006 -//! @SYMTestCaseDesc Data(): Returns a non-modifiable descriptor of a message body in the buffer. -//! Uses API elements:RWsGraphicMsgBuf(), Close(), Append() and Data() -//! @SYMTestActions 1. Construct RWsGraphicMsgBuf object using RWsGraphicMsgBuf() and return KErrNone if successed. -//! 2. Append a eight bits descriptor as data using Append() and return KErrNone if successed. -//! 3. Returns a non-modifiable descriptor of a message body in the buffer by using Data(). -//! 4. Verify if returned descriptor is same as appended descriptor. -//! 5. Close the object using Close(). -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The returned descriptor is same as appended descriptor. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.ini - CREATE_OBJECT RWsGraphicMsgBuf wsGraphicMsgBuf - COMMAND wsGraphicMsgBuf new - COMMAND wsGraphicMsgBuf Append GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0007-0001-Append_command02 - COMMAND wsGraphicMsgBuf Data GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0007-0001-Data_command03 - COMMAND wsGraphicMsgBuf Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0007 - - -START_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0008 -//! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0008 -//! @SYMAPI WsGraphicMsgBuf -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 28/12/2006 -//! @SYMTestCaseDesc Data(): Returns a modifiable descriptor of a message body in the buffer. -//! Uses API elements:RWsGraphicMsgBuf(), Close(), Append() and Data() -//! @SYMTestActions 1. Construct RWsGraphicMsgBuf object using RWsGraphicMsgBuf() and return KErrNone if successed. -//! 2. Append a eight bits descriptor as data using Append() and return KErrNone if successed. -//! 3. Returns a modifiable descriptor of a message body in the buffer by using Data(). -//! 4. Close the object using Close(). -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The returned modifiable descriptor of a message body in the buffer is as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.ini - CREATE_OBJECT RWsGraphicMsgBuf wsGraphicMsgBuf - COMMAND wsGraphicMsgBuf new - COMMAND wsGraphicMsgBuf Append GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0008-0001-Append_command02 - COMMAND wsGraphicMsgBuf Data GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0008-0001-Data_command03 - COMMAND wsGraphicMsgBuf Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0008 - - -START_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0009 -//! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0009 -//! @SYMAPI WsGraphicMsgBuf -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 28/12/2006 -//! @SYMTestCaseDesc Count(): Returns the number of messages in the buffer. -//! Uses API elements:RWsGraphicMsgBuf(), Close(), Append() and Count() -//! @SYMTestActions 1. Construct RWsGraphicMsgBuf object using RWsGraphicMsgBuf() and return KErrNone if successed. -//! 2. Append a eight bits descriptor as data using Append() and return KErrNone if successed. -//! 3. Returns the number of messages in the buffer by using Count(). -//! 4. Verify if the number of messages in the buffer is as expected. -//! 5. Close the object using Close(). -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The number of messages in the buffer is as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.ini - CREATE_OBJECT RWsGraphicMsgBuf wsGraphicMsgBuf - COMMAND wsGraphicMsgBuf new - COMMAND wsGraphicMsgBuf Append GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0009-0001-Append_command02 - COMMAND wsGraphicMsgBuf Count GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0009-0001-Count_command03 - COMMAND wsGraphicMsgBuf Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0009 - - -START_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0010 -//! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0010 -//! @SYMAPI WsGraphicMsgBuf -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 28/12/2006 -//! @SYMTestCaseDesc TypeId(): Returns the type ID of a message in the buffer. -//! Uses API elements:RWsGraphicMsgBuf(), Close(), Append() and TypeId() -//! @SYMTestActions 1. Construct RWsGraphicMsgBuf object using RWsGraphicMsgBuf() and return KErrNone if successed. -//! 2. Append a eight bits descriptor as data using Append() and return KErrNone if successed. -//! 3. Returns the type ID of a message in the buffer by using TypeId(). -//! 4. Verify if the type ID of a message in the buffer is as expected. -//! 5. Close the object using Close(). -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The type ID of a message in the buffer is as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.ini - CREATE_OBJECT RWsGraphicMsgBuf wsGraphicMsgBuf - COMMAND wsGraphicMsgBuf new - COMMAND wsGraphicMsgBuf Append GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0010-0001-Append_command02 - COMMAND wsGraphicMsgBuf TypeId GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0010-0001-TypeId_command03 - COMMAND wsGraphicMsgBuf Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0010 - - -START_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0011 -//! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0011 -//! @SYMAPI WsGraphicMsgBuf -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 28/12/2006 -//! @SYMTestCaseDesc Remove(): Remove a message from the buffer. -//! Uses API elements:RWsGraphicMsgBuf(), Close(), Append() and Remove() -//! @SYMTestActions 1. Construct RWsGraphicMsgBuf object using RWsGraphicMsgBuf() and return KErrNone if successed. -//! 2. Append a eight bits descriptor as data using Append() and return KErrNone if successed. -//! 3. Remove a message from the buffer by using Remove() and return KErrNone if successed. -//! 4. Close the object using Close(). -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The message from the buffer was removed successed. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.ini - CREATE_OBJECT RWsGraphicMsgBuf wsGraphicMsgBuf - COMMAND wsGraphicMsgBuf new - COMMAND wsGraphicMsgBuf Append GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0011-0001-Append_command02 - COMMAND wsGraphicMsgBuf Remove GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0011-0001-Remove_command03 - COMMAND wsGraphicMsgBuf Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0011 - - -START_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0012 -//! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0012 -//! @SYMAPI WsGraphicMsgBuf -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 28/12/2006 -//! @SYMTestCaseDesc Pckg(): Returns the message buffer as a descriptor. -//! Uses API elements:RWsGraphicMsgBuf(), Close(), Append() and Pckg() -//! @SYMTestActions 1. Construct RWsGraphicMsgBuf object using RWsGraphicMsgBuf() and return KErrNone if successed. -//! 2. Append a eight bits descriptor as data using Append() and return KErrNone if successed. -//! 3. Returns the message buffer as a descriptor by using Pckg() and return KErrNone if successed. -//! 4. Close the object using Close(). -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The message buffer as a descriptor successed. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.ini - CREATE_OBJECT RWsGraphicMsgBuf wsGraphicMsgBuf - COMMAND wsGraphicMsgBuf new - COMMAND wsGraphicMsgBuf Append GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0012-0001-Append_command02 - COMMAND wsGraphicMsgBuf Pckg - COMMAND wsGraphicMsgBuf Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0012 - - -START_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0013 -//! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0013 -//! @SYMAPI WsGraphicMsgBuf -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 28/12/2006 -//! @SYMTestCaseDesc GetFixedMsg(): Returns a copy of a fixed-size message in the buffer. -//! Uses API elements:RWsGraphicMsgBuf(), Close(), Append() and GetFixedMsg() -//! @SYMTestActions 1. Construct RWsGraphicMsgBuf object using RWsGraphicMsgBuf() and return KErrNone if successed. -//! 2. Append a eight bits descriptor as data using Append() and return KErrNone if successed. -//! 3. Returns a copy of a fixed-size message in the buffer by using GetFixedMsg() and return KErrNone if successed. -//! 4. Close the object using Close(). -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults The copy of a fixed-size message in the buffer successed. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.ini - CREATE_OBJECT RWsGraphicMsgBuf wsGraphicMsgBuf - COMMAND wsGraphicMsgBuf new - COMMAND wsGraphicMsgBuf Append - COMMAND wsGraphicMsgBuf GetFixedMsg GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0013-0001-GetFixedMsg_command03 - COMMAND wsGraphicMsgBuf Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0013 - - -//---- Negative Test Cases ---- - -START_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0101 -//! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0101 -//! @SYMAPI WsGraphicMsgBuf -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 28/12/2006 -//! @SYMTestCaseDesc Data(): Returns a non-modifiable descriptor of a message body in the buffer. -//! Uses API elements:RWsGraphicMsgBuf(), Close(), Append() and Data() -//! @SYMTestActions 1. Construct RWsGraphicMsgBuf object using RWsGraphicMsgBuf() and return KErrNone if successed. -//! 2. Append a eight bits descriptor as data using Append() and return KErrNone if successed. -//! 3. Returns a non-modifiable descriptor of a message body in the buffer by using Data() with a out of bounds index -1. -//! 4. Verify if returned descriptor is same as appended descriptor. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults A panic code 15 occurs, the returned descriptor is not same as appended descriptor. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.ini - CREATE_OBJECT RWsGraphicMsgBuf wsGraphicMsgBuf - COMMAND wsGraphicMsgBuf new - COMMAND wsGraphicMsgBuf Append GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0101-0001-Append_command02 - COMMAND wsGraphicMsgBuf Data GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0101-0001-Data_command03 - END_TEST_BLOCK !PanicCode=15 !PanicString=W32 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0101 - - -START_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0102 -//! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0102 -//! @SYMAPI WsGraphicMsgBuf -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 28/12/2006 -//! @SYMTestCaseDesc TypeId(): Returns the type ID of a message in the buffer. -//! Uses API elements:RWsGraphicMsgBuf(), Close(), Append() and TypeId() -//! @SYMTestActions 1. Construct RWsGraphicMsgBuf object using RWsGraphicMsgBuf() and return KErrNone if successed. -//! 2. Append a eight bits descriptor as data using Append() and return KErrNone if successed. -//! 3. Returns the type ID of a message in the buffer by using TypeId() with a out of bounds index -1. -//! 4. Verify if the type ID of a message in the buffer is as expected. -//! 5. Close the object using Close(). -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults A panic code 15 occurs, the type ID of a message in the buffer is not as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.ini - CREATE_OBJECT RWsGraphicMsgBuf wsGraphicMsgBuf - COMMAND wsGraphicMsgBuf new - COMMAND wsGraphicMsgBuf Append GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0102-0001-Append_command02 - COMMAND wsGraphicMsgBuf TypeId GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0102-0001-TypeId_command03 - END_TEST_BLOCK !PanicCode=15 !PanicString=W32 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0102 - - -START_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0103 -//! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0103 -//! @SYMAPI WsGraphicMsgBuf -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 28/12/2006 -//! @SYMTestCaseDesc Remove(): Remove a message from the buffer with a negative index. -//! Uses API elements:RWsGraphicMsgBuf(), and Remove() -//! @SYMTestActions 1. Construct RWsGraphicMsgBuf object using RWsGraphicMsgBuf() and return KErrNone if successed. -//! 2. Remove a message from the buffer by using Remove() and a negtive index -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults EW32PanicGraphicBadBuffer(15) PANIC on attempt to remove -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.ini - CREATE_OBJECT RWsGraphicMsgBuf wsGraphicMsgBuf - COMMAND wsGraphicMsgBuf new - COMMAND wsGraphicMsgBuf Remove GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0103-0001-Remove_command02 - END_TEST_BLOCK !PanicCode=15 !PanicString=W32 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0103 - - -START_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0104 -//! @SYMTestCaseID GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0104 -//! @SYMAPI WsGraphicMsgBuf -//! @SYMAuthor Shirly Kuo -//! @SYMCreationDate 28/12/2006 -//! @SYMTestCaseDesc Remove(): Remove a message from the buffer with an index larger than its size -//! Uses API elements:RWsGraphicMsgBuf(), and Remove() -//! @SYMTestActions 1. Construct RWsGraphicMsgBuf object using RWsGraphicMsgBuf() and return KErrNone if successed. -//! 2. Remove a message from the buffer by using Remove() and a large index -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults EW32PanicGraphicBadBuffer(15) PANIC on attempt to remove -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.ini - CREATE_OBJECT RWsGraphicMsgBuf wsGraphicMsgBuf - COMMAND wsGraphicMsgBuf new - COMMAND wsGraphicMsgBuf Remove GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0104-0001-Remove_command02 - END_TEST_BLOCK !PanicCode=15 !PanicString=W32 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0104 diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-WsPointerCursor-PublicApi.script --- a/graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-WsPointerCursor-PublicApi.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,274 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// -//! @file -//! @SYMTestSuiteName GRAPHICS-WSERV-WsPointerCursor-PublicApi -//! @SYMScriptTestEnvironment This test script requires a basic ROM. - -/////////////////////////////////////////////////////////////////////////////// -// GRAPHICS-WSERV-WsPointerCursor-PublicApi.script -// -// Tests all public elements of the RWsPointerCursor class -// as a means of confidence that the API works as expected. -// -// The purpose is to provide a regression test suite of PublishedAll APIs for -// RWsPointerCursor related classes. -// Negative testing is performed to confirm that correct errors are returned -// when incorrect parameters are given. -// -// The tests are fully automated. -/////////////////////////////////////////////////////////////////////////////// - -LOAD_SUITE T_GraphicsWservAPI - -// **************************************************************************** -// RWsPointerCursor -// **************************************************************************** -START_TESTCASE GRAPHICS-WSERV-WsPointerCursor-PublicApi-0001 -//! @SYMTestCaseID GRAPHICS-WSERV-WsPointerCursor-PublicApi-0001 -//! @SYMAPI RWsPointerCursor::RWsPointerCursor() -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 10/12/2007 -//! @SYMTestCaseDesc Create a RWsPointerCursor object with default construct. -//! @SYMTestActions 1. Create RWsPointerCursor with RWsPointerCursor::RWsPointerCursor() -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults RWsPointerCursor object was created without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsPointerCursor-PublicApi.ini - CREATE_OBJECT RWsPointerCursor pointcursor - COMMAND pointcursor new - COMMAND pointcursor Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsPointerCursor-PublicApi-0001 - - -START_TESTCASE GRAPHICS-WSERV-WsPointerCursor-PublicApi-0002 -//! @SYMTestCaseID GRAPHICS-WSERV-WsPointerCursor-PublicApi-0002 -//! @SYMAPI RWsPointerCursor::RWsPointerCursor(RWsSession{ref}) -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 10/12/2007 -//! @SYMTestCaseDesc Create a RWsPointerCursor object with RWsSession. -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create RWsPointerCursor with RWsSession by using RWsPointerCursor(RWsSession &aWs). -//! 3. Close RWsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults RWsPointerCursor object was created without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsPointerCursor-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWsPointerCursor pointcursor - COMMAND ws new - COMMAND ws Connect - COMMAND pointcursor new GRAPHICS-WSERV-WsPointerCursor-PublicApi-0002-0001-new_command004 - COMMAND pointcursor Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsPointerCursor-PublicApi-0002 - - -START_TESTCASE GRAPHICS-WSERV-WsPointerCursor-PublicApi-0003 -//! @SYMTestCaseID GRAPHICS-WSERV-WsPointerCursor-PublicApi-0003 -//! @SYMAPI RWsPointerCursor::Construct(TInt) -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 10/12/2007 -//! @SYMTestCaseDesc Create a RWsPointerCursor object with RWsSession and construct. -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create RWsPointerCursor with RWsPointerCursor by using RWsPointerCursor(RWsSession &). -//! 3. Construct RWsPointerCursor. -//! 4. Close RWsPointerCursor,RWsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults RWsPointerCursor object was constructed without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsPointerCursor-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWsPointerCursor pointcursor - COMMAND ws new - COMMAND ws Connect - COMMAND pointcursor new GRAPHICS-WSERV-WsPointerCursor-PublicApi-0003-0001-new_command004 - COMMAND pointcursor Construct GRAPHICS-WSERV-WsPointerCursor-PublicApi-0003-0001-Construct_command005 - COMMAND pointcursor Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsPointerCursor-PublicApi-0003 - -START_TESTCASE GRAPHICS-WSERV-WsPointerCursor-PublicApi-0004 -//! @SYMTestCaseID GRAPHICS-WSERV-WsPointerCursor-PublicApi-0004 -//! @SYMAPI RWsPointerCursor::RWsPointerCursor(RWsSession{ref}); -//! RWsPointerCursor::Construct(TInt) -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 10/12/2007 -//! @SYMTestCaseDesc Create pointer cursor and activate, call SetCustomPointerCursor using custom RWsPointerCursor object and verify if it's visible. -//! mask1 is iMaskBitmap member of TSpriteMember and the other are iBitmap member of TSpriteMember. -//! @SYMTestActions 1. Create and connect a RWsSession, create 4 CFbsBitmap objects. -//! 2. Create and construct RWindow. -//! 3. Create RWsPointerCursor with RWsPointerCursor by using RWsPointerCursor(RWsSession &). -//! 4. Construct RWsPointerCursor. -//! 5. Create CFbsBitmap objects and load bitmap to initialize TSpriteMember. -//! 6. Append three different bitmaps to the sprite, each with the same mask. -//! 7. Activate RWsPointerCursor. -//! 8. Call RWindowTreeNode::SetCustomPointerCursor(const RWsPointerCursor&) to set PointerCursor. -//! 9. Create CWsScreenDevice and compare the two rect before SetPointerCursorPosition, they should be same. -//! 11. SetPointerCursorMode,SimulatePointerEvent and then SetPointerCursorPosition. -//! 12. Compare the two rect again, they should be not same. -//! 13. Destruct all created object and Close RWsPointerCursor,RWsSession and RWindowTreeNode. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1.SetCustomPointerCursor with created RWsPointerCursor object without causing panic -//! 2.The rect of before SetCustomPointerCursor and after SetCustomPointerCursor should not be same. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsPointerCursor-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CFbsBitmap mask1 - CREATE_OBJECT CFbsBitmap bitmap1 - CREATE_OBJECT CFbsBitmap bitmap2 - CREATE_OBJECT CFbsBitmap bitmap3 - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RWsPointerCursor pointcursor - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WsPointerCursor-Setup-0004-0001-new_command001 - COMMAND wingrp Construct GRAPHICS-WSERV-WsPointerCursor-Setup-0004-0001-Construct_command002 - COMMAND win new GRAPHICS-WSERV-WsPointerCursor-PublicApi-0004-0001-new_command003 - COMMAND win Construct GRAPHICS-WSERV-WsPointerCursor-Setup-0004-0001-Construct_command004 - COMMAND win Activate - COMMAND pointcursor new GRAPHICS-WSERV-WsPointerCursor-PublicApi-0004-0001-new_command006 - COMMAND pointcursor Construct GRAPHICS-WSERV-WsPointerCursor-PublicApi-0004-0001-Construct_command007 - COMMAND mask1 new - COMMAND mask1 Load GRAPHICS-WSERV-WsPointerCursor-PublicApi-0004-0001-Load_command009 - - COMMAND bitmap1 new - COMMAND bitmap1 Load GRAPHICS-WSERV-WsPointerCursor-PublicApi-0004-0001-Load_command011 - COMMAND pointcursor AppendMember GRAPHICS-WSERV-WsPointerCursor-PublicApi-0004-0001-AppendMember_command012 - - COMMAND bitmap2 new - COMMAND bitmap2 Load GRAPHICS-WSERV-WsPointerCursor-PublicApi-0004-0001-Load_command014 - COMMAND pointcursor AppendMember GRAPHICS-WSERV-WsPointerCursor-PublicApi-0004-0001-AppendMember_command015 - - COMMAND bitmap3 new - COMMAND bitmap3 Load GRAPHICS-WSERV-WsPointerCursor-PublicApi-0004-0001-Load_command017 - COMMAND pointcursor AppendMember GRAPHICS-WSERV-WsPointerCursor-PublicApi-0004-0001-AppendMember_command018 - - COMMAND pointcursor Activate - COMMAND win SetCustomPointerCursor GRAPHICS-WSERV-WsPointerCursor-PublicApi-0004-0001-SetCustomPointerCursor_command020 - - COMMAND scrdev new GRAPHICS-WSERV-WsPointerCursor-PublicApi-0004-0001-new_command21 - COMMAND scrdev Construct - COMMAND win BeginRedraw - COMMAND win EndRedraw - //!COMMAND scrdev RectCompare GRAPHICS-WSERV-WsPointerCursor-PublicApi-0004-0001-RectCompare_command23 - - COMMAND ws SetPointerCursorMode GRAPHICS-WSERV-WsPointerCursor-PublicApi-0004-0001-SetPointerCursorMode_command24 - COMMAND wingrp SimulatePointerEvent GRAPHICS-WSERV-WsPointerCursor-PublicApi-0004-0001-SimulatePointerEvent_command25 - COMMAND ws SetPointerCursorPosition GRAPHICS-WSERV-WsPointerCursor-PublicApi-0004-0001-SetPointerCursorPosition_command26 - //!COMMAND scrdev RectCompare GRAPHICS-WSERV-WsPointerCursor-PublicApi-0004-0001-RectCompare_command27 - - COMMAND pointcursor Close - COMMAND mask1 ~ - COMMAND bitmap1 ~ - COMMAND bitmap2 ~ - COMMAND bitmap3 ~ - COMMAND scrdev ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsPointerCursor-PublicApi-0004 - -START_TESTCASE GRAPHICS-WSERV-WsPointerCursor-PublicApi-0005 -//! @SYMTestCaseID GRAPHICS-WSERV-WsPointerCursor-PublicApi-0005 -//! @SYMAPI RWsPointerCursor::Construct(TInt) -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 03/01/2008 -//! @SYMTestCaseDesc Construct with ESpriteFlash flag; -//! Create a RWsPointerCursor object with RWsSession and construct with ESpriteFlash flag. -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create RWsPointerCursor with RWsPointerCursor by using RWsPointerCursor(RWsSession &). -//! 3. Construct RWsPointerCursor with ESpriteFlash flag. -//! 4. Close RWsPointerCursor,RWsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults RWsPointerCursor object was constructed without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsPointerCursor-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWsPointerCursor pointcursor - COMMAND ws new - COMMAND ws Connect - COMMAND pointcursor new GRAPHICS-WSERV-WsPointerCursor-PublicApi-0005-0001-new_command003 - COMMAND pointcursor Construct GRAPHICS-WSERV-WsPointerCursor-PublicApi-0005-0001-Construct_command004 - COMMAND pointcursor Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsPointerCursor-PublicApi-0005 - -START_TESTCASE GRAPHICS-WSERV-WsPointerCursor-PublicApi-0006 -//! @SYMTestCaseID GRAPHICS-WSERV-WsPointerCursor-PublicApi-0006 -//! @SYMAPI RWsPointerCursor::Construct(TInt) -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 08/01/2008 -//! @SYMTestCaseDesc Construct with ESpriteNoChildClip flag; -//! Create a RWsPointerCursor object with RWsSession and construct with ESpriteNoChildClip flag. -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create RWsPointerCursor with RWsPointerCursor by using RWsPointerCursor(RWsSession &). -//! 3. Construct RWsPointerCursor with ESpriteNoChildClip flag. -//! 4. Close RWsPointerCursor,RWsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults RWsPointerCursor object was constructed without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsPointerCursor-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWsPointerCursor pointcursor - COMMAND ws new - COMMAND ws Connect - COMMAND pointcursor new GRAPHICS-WSERV-WsPointerCursor-PublicApi-0006-0001-new_command003 - COMMAND pointcursor Construct GRAPHICS-WSERV-WsPointerCursor-PublicApi-0006-0001-Construct_command004 - COMMAND pointcursor Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsPointerCursor-PublicApi-0006 - -START_TESTCASE GRAPHICS-WSERV-WsPointerCursor-PublicApi-0007 -//! @SYMTestCaseID GRAPHICS-WSERV-WsPointerCursor-PublicApi-0007 -//! @SYMAPI RWsPointerCursor::Construct(TInt) -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 08/01/2008 -//! @SYMTestCaseDesc Construct with ESpriteNoShadows flag; -//! Create a RWsPointerCursor object with RWsSession and construct with ESpriteNoShadows flag. -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create RWsPointerCursor with RWsPointerCursor by using RWsPointerCursor(RWsSession &). -//! 3. Construct RWsPointerCursor with ESpriteNoShadows flag. -//! 4. Close RWsPointerCursor,RWsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults RWsPointerCursor object was constructed without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsPointerCursor-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWsPointerCursor pointcursor - COMMAND ws new - COMMAND ws Connect - COMMAND pointcursor new GRAPHICS-WSERV-WsPointerCursor-PublicApi-0007-0001-new_command003 - COMMAND pointcursor Construct GRAPHICS-WSERV-WsPointerCursor-PublicApi-0007-0001-Construct_command004 - COMMAND pointcursor Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsPointerCursor-PublicApi-0007 - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-WsScreenDevice-PublicAPI.script --- a/graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-WsScreenDevice-PublicAPI.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,5423 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// -//! @file -//! @SYMTestSuiteName GRAPHICS-WSERV-WsScreenDevice-PublicApi -//! @SYMScriptTestEnvironment This test script requires a basic ROM. - -///////////////////////////////////////////////////////////////////// -// GRAPHICS-WSERV-WsScreenDevice-PublicAPI.script -// -// Tests all public elements of the CWsScreenDevice -// classes as a means of confidence that the APIs work as expected. -// -// The purpose is to provide a regression test suite of PublishedAll APIs for CWsScreenDevice -// The tests are fully automated. -///////////////////////////////////////////////////////////////////// - -LOAD_SUITE T_GraphicsWservAPI -DELAY 1000 - -//! @file -//! @SYMTestSuiteName GRAPHICS-WSERV-WsScreenDevice-PublicAPI -//! @SYMScriptTestEnvironment This test script requires a basic ROM. - -///////////////////////////////////////////////////////////////////// -// CWsScreenDevice class -///////////////////////////////////////////////////////////////////// - - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0001 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0001 -//! @SYMAPI CWsScreenDevice::CWsScreenDevice() -//! @SYMAuthor Ray Liang -//! @SYMCreationDate 11/23/2007 -//! @SYMTestCaseDesc create a CWsScreenDevice object by C++ default constructor -//! @SYMTestActions 1. Construct a CWsScreenDevice -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults CWsScreenDevice was created without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND scrdev new - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0001 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0002 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0002 -//! @SYMAPI CWsScreenDevice::CWsScreenDevice(RWsSession{ref}) -//! @SYMAuthor Ray Liang -//! @SYMCreationDate 11/23/2007 -//! @SYMTestCaseDesc Create a CWsScreenDevice attached to a RWsSession and destruct it after closing RWsSession -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Close the RWsSession object(There could be a resource leak as the CWsScreenDevice is not deleted before close the RWsSession) -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults CWsScreenDevice was created without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0002-0001-new_command03 - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0002 - - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0003 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0003 -//! @SYMAPI CWsScreenDevice::~CWsScreenDevice() -//! @SYMAuthor Ray Liang -//! @SYMCreationDate 11/23/2007 -//! @SYMTestCaseDesc Create a CWsScreenDevice attached to a RWsSession and destruct it before closing RWsSession -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Destruct the CWsScreenDevice object -//! 4. Close the RWsSession object -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults CWsScreenDevice was destructed without causing panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0003-0001-new_command03 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0003 - - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0004 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0004 -//! @SYMAPI CWsScreenDevice::Construct() -//! @SYMAuthor Ray Liang -//! @SYMCreationDate 11/23/2007 -//! @SYMTestCaseDesc Create a CWsScreenDevice attached to a RWsSession and complete the construction -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Destruct the CWsScreenDevice object -//! 5. Close the RWsSession object -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults No panic and returns KErrNone -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0004-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0004 - - - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0005 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0005 -//! @SYMAPI CWsScreenDevice::Construct(TInt) -//! @SYMAuthor Ray Liang -//! @SYMCreationDate 11/23/2007 -//! @SYMTestCaseDesc Create a CWsScreenDevice attached to a RWsSession and complete the construction, specify the screen on which the application will start. -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Destruct the CWsScreenDevice object -//! 5. Close the RWsSession object -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults No panic and returns KErrNone -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0005-0001-new_command03 - COMMAND scrdev Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0005-0001-Construct_command04 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0005 - - - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0006 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0006 -//! @SYMAPI CWsScreenDevice::DisplayMode() -//! @SYMAuthor Ray Liang -//! @SYMCreationDate 11/23/2007 -//! @SYMTestCaseDesc Gets the device's display mode. -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Get the screen's display mode -//! 5. Destruct the CWsScreenDevice object -//! 6. Close the RWsSession object -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults No panic and returns the default display mode as defined in the environment file -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0006-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev DisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0006-0001-DisplayMode_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0006 - - - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0010 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0010 -//! @SYMAPI CWsScreenDevice::PointerRect() -//! @SYMAuthor Ray Liang -//! @SYMCreationDate 11/23/2007 -//! @SYMTestCaseDesc Gets the active area for the pointing device -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Gets the active area for the pointing device using PointerRect() -//! 5. Destruct the CWsScreenDevice object -//! 6. Close the RWsSession object -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults No panic and the returned active area is as expected -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0010-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev PointerRect GRAPHICS-WSERV-WsScreenDevice-PublicApi-0010-0001-PointerRect_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0010 - - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0011 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0011 -//! @SYMAPI CWsScreenDevice::CreateContext(CGraphicsContext{ptr}{ref}) -//! @SYMAuthor Ray Liang -//! @SYMCreationDate 11/23/2007 -//! @SYMTestCaseDesc Creates a graphics context for this device, and set context's background color to TRgb(255,0,0) -//! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(255,0,0) -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! 2.Use RWindow::BeginRedraw() to start a redraw cycle -//! 3.RWindow::EndRedraw() -//! 4.check some pixels is drawn with the pen color TRgb(255,0,0) -//! 5.Deactive RWindow, destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. CreateContext() method returns KErrNone and creates a CWindowGc object -//! 2. the drawing result of testaction 1.5 -//! 2.1 the pixels (19,10) is drawn with the pen color TRgb(255,0,0) -//! 2.2 the pixels (50,30) is drawn with the pen color TRgb(255,0,0) -//! 2.3 the pixels (20,29) is drawn with the pen color TRgb(255,0,0) -//! 2.4 the pixels (10,50) is drawn with the pen color TRgb(255,0,0) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wgc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0011-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0011-0001-CreateContext_command05 - COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0011-0001-new_command06 - COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0011-0001-Construct_command07 - COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0011-0001-new_command08 - COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0011-0001-Construct_command09 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0011-0001-SetRequiredDisplayMode_command10 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0011-0001-SetBackgroundColor_command11 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0011-0001-SetAutoFlush_command13 - COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0011-0001-Activate_command14 - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND scrdev checkPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0011-0001-checkPixels_command17 - COMMAND wgc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wgc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0011 - - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0012 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0012 -//! @SYMAPI CWsScreenDevice::CreateContext(CWindowGc{ptr}{ref}) -//! @SYMAuthor Ray Liang -//! @SYMCreationDate 11/23/2007 -//! @SYMTestCaseDesc Creates a graphics context for this device, and set context's background color to TRgb(255,0,0) -//! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow, SetBackgroundColor to TRgb(0,255,0) -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! 2.Use RWindow::BeginRedraw() to start a redraw cycle -//! 3.RWindow::EndRedraw() -//! 4.check some pixels is drawn with the pen color TRgb(0,255,0) -//! 5.Deactive RWindow, destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. CreateContext() method returns KErrNone and creates a CWindowGc object -//! 2. the drawing result of testaction 1.5 -//! 2.1 the pixels (19,10) is drawn with the pen color TRgb(0,255,0) -//! 2.2 the pixels (50,30) is drawn with the pen color TRgb(0,255,0) -//! 2.3 the pixels (20,29) is drawn with the pen color TRgb(0,255,0) -//! 2.4 the pixels (10,50) is drawn with the pen color TRgb(0,255,0) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wgc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0012-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0012-0001-CreateContext_command05 - COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0012-0001-new_command06 - COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0012-0001-Construct_command07 - COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0012-0001-new_command08 - COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0012-0001-Construct_command09 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0012-0001-SetRequiredDisplayMode_command10 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0012-0001-SetBackgroundColor_command11 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0012-0001-SetAutoFlush_command13 - COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0012-0001-Activate_command14 - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND scrdev checkPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0012-0001-checkPixels_command17 - COMMAND wgc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wgc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0012 - - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0013 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0013 -//! @SYMAPI CWsScreenDevice::GetNearestFontToDesignHeightInTwips(CFont{ptr}{ref}, const TFontSpec{ref}) -//! @SYMAuthor Ray Liang -//! @SYMCreationDate 11/23/2007 -//! @SYMTestCaseDesc Gets the nearest font in twips to that specified -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Gets the nearest font matches the design height in twips -//! 5. Check the returned font is expected -//! 6. Destruct the CWsScreenDevice object -//! 7. Close the RWsSession object -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults No panic and the returned device font is as expected -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CFbsFont font - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0013-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev GetNearestFontToDesignHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0013-0001-GetNearestFontToDesignHeightInTwips_command05 - COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0013-0001-FontSpecInTwips_command06 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0013 - - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0014 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0014 -//! @SYMAPI CWsScreenDevice::GetNearestFontToMaxHeightInTwips(CFont{ptr}{ref}, const TFontSpec{ref}, TInt) -//! @SYMAuthor Ray Liang -//! @SYMCreationDate 11/23/2007 -//! @SYMTestCaseDesc Gets the nearest font in twips to that specified -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Gets the nearest font matches the max height in twips -//! 5. Check the returned font is expected -//! 6. Destruct the CWsScreenDevice object -//! 7. Close the RWsSession object -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults No panic and the returned device font is as expected -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CFbsFont font - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0014-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev GetNearestFontToMaxHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0014-0001-GetNearestFontToMaxHeightInTwips_command05 - COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0014-0001-FontSpecInTwips_command06 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0014 - - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0015 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0015 -//! @SYMAPI CWsScreenDevice::NumTypefaces() -//! @SYMAuthor Ray Liang -//! @SYMCreationDate 11/23/2007 -//! @SYMTestCaseDesc Gets the number of typefaces supported by the screen device -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Gets the number of typefaces supported by the screen device using NumTypefaces() -//! 5. Destruct the CWsScreenDevice object -//! 6. Close the RWsSession object -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults No panic and the returned number is as expected -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CFbsFont font - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0015-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev NumTypefaces GRAPHICS-WSERV-WsScreenDevice-PublicApi-0015-0001-NumTypefaces_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0015 - - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0016 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0016 -//! @SYMAPI CWsScreenDevice::TypefaceSupport(TTypefaceSupport{ref}, TInt) -//! @SYMAuthor Ray Liang -//! @SYMCreationDate 11/23/2007 -//! @SYMTestCaseDesc Gets typeface information for a particular typeface index number -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Gets typeface information for a particular typeface index number -//! 5. Check the returned typeface information is expected -//! 6. Destruct the CWsScreenDevice object -//! 7. Close the RWsSession object -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults No panic and the returned typeface information is as expected -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0016-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev TypefaceSupport GRAPHICS-WSERV-WsScreenDevice-PublicApi-0016-0001-TypefaceSupport_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0016 - - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0017 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0017 -//! @SYMAPI CWsScreenDevice::TypefaceSupport(TTypefaceSupport{ref}, TInt) -//! @SYMAuthor Ray Liang -//! @SYMCreationDate 11/23/2007 -//! @SYMTestCaseDesc Negative test, gets typeface information for a particular typeface index number, input 100 as aTypefaceIndex. -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Gets typeface information for a particular typeface index number -//! 5. Destruct the CWsScreenDevice object -//! 6. Close the RWsSession object -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults No panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CFbsFont font - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0017-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev TypefaceSupport GRAPHICS-WSERV-WsScreenDevice-PublicApi-0017-0001-TypefaceSupport_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0017 - - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0018 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0018 -//! @SYMAPI CWsScreenDevice::FontHeightInTwips(TInt, TInt) -//! @SYMAuthor Ray Liang -//! @SYMCreationDate 11/23/2007 -//! @SYMTestCaseDesc Gets the height in twips of the specified font -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Gets the height in twips of the specified font -//! 5. Destruct the CWsScreenDevice object -//! 6. Close the RWsSession object -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults No panic and the returned font height is as expected -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0018-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev FontHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0018-0001-FontHeightInTwips_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0018 - - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0019 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0019 -//! @SYMAPI CWsScreenDevice::FontHeightInTwips(TInt, TInt) -//! @SYMAuthor Ray Liang -//! @SYMCreationDate 11/23/2007 -//! @SYMTestCaseDesc Negative test, gets the height in twips of the specified font, input 100 as aTypefaceIndex. -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Gets the height in twips of the specified font using FontHeightInTwips() -//! 5. Destruct the CWsScreenDevice object -//! 6. Close the RWsSession object -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults No panic and the returns 0 -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0019-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev FontHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0019-0001-FontHeightInTwips_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0019 - - - - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0020 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0020 -//! @SYMAPI CWsScreenDevice::SizeInPixels() -//! @SYMAuthor Ray Liang -//! @SYMCreationDate 11/23/2007 -//! @SYMTestCaseDesc Create a CWsScreenDevice attached to a RWsSession and complete the construction, gets the size of the screen device area in pixels. -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Get the screen's size in pixels -//! 5. Destruct the CWsScreenDevice object -//! 6. Close the RWsSession object -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults No panic and the returned screen sizes in pixels and twips are as expected -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0020-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev SizeInPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0020-0001-SizeInPixels_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0020 - - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0021 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0021 -//! @SYMAPI CWsScreenDevice::SizeInTwips() -//! @SYMAuthor Ray Liang -//! @SYMCreationDate 11/23/2007 -//! @SYMTestCaseDesc Gets the size of the screen device area in twips -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Get the screen's size in twips -//! 5. Destruct the CWsScreenDevice object -//! 6. Close the RWsSession object -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults No panic and the returned screen sizes in twips and twips are as expected -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0021-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev SizeInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0021-0001-SizeInTwips_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0021 - - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0022 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0022 -//! @SYMAPI CWsScreenDevice::HorizontalTwipsToPixels(TInt) -//! @SYMAuthor Ray Liang -//! @SYMCreationDate 11/23/2007 -//! @SYMTestCaseDesc Translates a horizontal dimension of a screen device in twips into pixels -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Translates a horizontal dimension twips into pixels -//! 5. Destruct the CWsScreenDevice object -//! 6. Close the RWsSession object -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults No panic and the returned pixels are as expected -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0022-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev HorizontalTwipsToPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0022-0001-HorizontalTwipsToPixels_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0022 - - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0023 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0023 -//! @SYMAPI CWsScreenDevice::VerticalTwipsToPixels(TInt) -//! @SYMAuthor Ray Liang -//! @SYMCreationDate 11/23/2007 -//! @SYMTestCaseDesc Translates a vertical dimension of a screen device in twips into pixels -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Translates a vertical dimension twips into pixels -//! 5. Destruct the CWsScreenDevice object -//! 6. Close the RWsSession object -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults No panic and the returned pixels are as expected -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0023-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev VerticalTwipsToPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0023-0001-VerticalTwipsToPixels_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0023 - - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0024 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0024 -//! @SYMAPI CWsScreenDevice::HorizontalPixelsToTwips(TInt) -//! @SYMAuthor Ray Liang -//! @SYMCreationDate 11/23/2007 -//! @SYMTestCaseDesc Translates a horizontal dimension of a screen device in pixels into twips -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Translates a horizontal dimension pixels into twips -//! 5. Destruct the CWsScreenDevice object -//! 6. Close the RWsSession object -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults No panic and the returned twips are as expected -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0024-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev HorizontalPixelsToTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0024-0001-HorizontalPixelsToTwips_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0024 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0025 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0025 -//! @SYMAPI CWsScreenDevice::VerticalPixelsToTwips(TInt) -//! @SYMAuthor Ray Liang -//! @SYMCreationDate 11/23/2007 -//! @SYMTestCaseDesc Translates a vertical dimension of a screen device in pixels into twips -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Translates a vertical dimension pixels into twips -//! 5. Destruct the CWsScreenDevice object -//! 6. Close the RWsSession object -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults No panic and the returned twips are as expected -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0025-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev VerticalPixelsToTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0025-0001-VerticalPixelsToTwips_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0025 - - - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0048 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0048 -//! @SYMAPI CWsScreenDevice::SetScreenSizeAndRotation(const TPixelsAndRotation{ref}); -//! CWsScreenDevice::GetDefaultScreenSizeAndRotation(TPixelsAndRotation{ref}) -//! @SYMAuthor Wekey Weng -//! @SYMCreationDate 11/23/2007 -//! @SYMTestCaseDesc Sets the current screen size in pixels, and the rotation for the screen device -//! Gets the current screen size in pixels and the rotation -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Call SetScreenSizeAndRotation(const TPixelsAndRotation&) to set the current screen size in pixels, and the rotation for the screen device -//! 5. Call GetDefaultScreenSizeAndRotation(TPixelsAndRotation&) to get the screen size and rotation with default mode, and check them to be as expected -//! 6. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. SetScreenSizeAndRotation(const TPixelsAndRotation&) method without causing panic -//! 2. Method GetDefaultScreenSizeAndRotation(TPixelsAndRotation&) called without causing panic and get values as expected -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0048-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev SetScreenSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0048-0001-SetScreenSizeAndRotation_command05 - COMMAND scrdev GetDefaultScreenSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0048-0001-GetDefaultScreenSizeAndRotation_command06 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0048 - - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0049 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0049 -//! @SYMAPI CWsScreenDevice::GetScreenModeSizeAndRotation(TInt, TPixelsAndRotation{ref}) -//! @SYMAuthor Wekey Weng -//! @SYMCreationDate 11/23/2007 -//! @SYMTestCaseDesc Gets the screen rotation and size (in pixels) for the specified screen mode -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Call GetScreenModeSizeAndRotation(TInt, TPixelsAndRotation&) to get the screen size in pixels and rotation with specified mode, and check them to be as expected -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Method GetScreenModeSizeAndRotation(TInt, TPixelsAndRotation&) called without causing panic and get values as expected -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0049-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev GetScreenModeSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0049-0001-GetScreenModeSizeAndRotation_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0049 - - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0050 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0050 -//! @SYMAPI CWsScreenDevice::SetScreenSizeAndRotation(const TPixelsTwipsAndRotation{ref}); -//! CWsScreenDevice::GetDefaultScreenSizeAndRotation(TPixelsTwipsAndRotation{ref}) -//! @SYMAuthor Wekey Weng -//! @SYMCreationDate 11/23/2007 -//! @SYMTestCaseDesc Sets the current screen size in twips and pixels, and the rotation for the screen device -//! Gets the current screen size (in both pixels and twips) and rotation -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Call SetScreenSizeAndRotation(const TPixelsTwipsAndRotation&) to sets the current screen size (in both twips and pixels) and the rotation for the screen device -//! 5. Call GetDefaultScreenSizeAndRotation(TPixelsTwipsAndRotation&) to get the screen size (in both twips and pixels) and rotation with specified mode, and check them to be as expected -//! 6. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults 1. SetScreenSizeAndRotation(const TPixelsTwipsAndRotation&) method without causing panic -//! 2. Method GetDefaultScreenSizeAndRotation(TPixelsTwipsAndRotation&) called without causing panic and get values as expected -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0050-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev SetScreenSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0050-0001-SetScreenSizeAndRotation_command05 - COMMAND scrdev GetDefaultScreenSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0050-0001-GetDefaultScreenSizeAndRotation_command06 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0050 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0051 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0051 -//! @SYMAPI CWsScreenDevice::GetScreenModeSizeAndRotation(TInt, TPixelsTwipsAndRotation{ref}) -//! @SYMAuthor Wekey Weng -//! @SYMCreationDate 11/23/2007 -//! @SYMTestCaseDesc Gets the screen rotation and size, in both pixels and twips, for the specified screen mode -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Call GetScreenModeSizeAndRotation(TInt, TPixelsTwipsAndRotation&) to get the screen size (in both twips and pixels) and rotation with specified mode, and check them to be as expected -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Method GetScreenModeSizeAndRotation(TInt, TPixelsTwipsAndRotation&) called without causing panic and get values as expected -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0051-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev GetScreenModeSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0051-0001-GetScreenModeSizeAndRotation_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0051 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0052 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0052 -//! @SYMAPI CWsScreenDevice::ScreenModeEnforcement() -//! @SYMAuthor Wekey Weng -//! @SYMCreationDate 11/23/2007 -//! @SYMTestCaseDesc Gets the current screen mode enforcement settings -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Call ScreenModeEnforcement() to get the current screen mode enforcement settings and check it to be as expected -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Method ScreenModeEnforcement() called without causing panic and return expected value -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0052-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev ScreenModeEnforcement GRAPHICS-WSERV-WsScreenDevice-PublicApi-0052-0001-ScreenModeEnforcement_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0052 - - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0053 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0053 -//! @SYMAPI CWsScreenDevice::NumScreenModes() -//! @SYMAuthor Wekey Weng -//! @SYMCreationDate 11/23/2007 -//! @SYMTestCaseDesc Gets the number of available screen modes -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Call NumScreenModes() to get the number of screen modes and check it to be as expected -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Method NumScreenModes() called without causing panic and return expected value -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0053-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev NumScreenModes GRAPHICS-WSERV-WsScreenDevice-PublicApi-0053-0001-NumScreenModes_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0053 - - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0054 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0054 -//! @SYMAPI CWsScreenDevice::GetScreenSizeModeList(RArray{ptr}) -//! @SYMAuthor Wekey Weng -//! @SYMCreationDate 11/23/2007 -//! @SYMTestCaseDesc Gets the available screen size modes -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Call GetScreenSizeModeList() to get the count of the available screen size modes and check it to be expected -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Method GetScreenSizeModeList() called without causing panic and the values are as expected -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0054-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev GetScreenSizeModeList GRAPHICS-WSERV-WsScreenDevice-PublicApi-0054-0001-GetScreenSizeModeList_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0054 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0055 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0055 -//! @SYMAPI CWsScreenDevice::GetDefaultScreenModeOrigin() -//! @SYMAuthor Wekey Weng -//! @SYMCreationDate 11/23/2007 -//! @SYMTestCaseDesc Gets the origin for the current screen mode -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Call GetDefaultScreenModeOrigin() to get the origin for the default screen mode and check it to be as expected -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Method GetDefaultScreenModeOrigin() called without causing panic and return expected value -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0055-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev GetDefaultScreenModeOrigin GRAPHICS-WSERV-WsScreenDevice-PublicApi-0055-0001-GetDefaultScreenModeOrigin_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0055 - - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0056 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0056 -//! @SYMAPI CWsScreenDevice::CurrentScreenMode() -//! @SYMAuthor Wekey Weng -//! @SYMCreationDate 11/23/2007 -//! @SYMTestCaseDesc Gets the current screen mode index -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Call CurrentScreenMode() to get the current screen mode index and check it to be as expected -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Method CurrentScreenMode() called without causing panic and return expected value -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0056-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev CurrentScreenMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0056-0001-CurrentScreenMode_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0056 - - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0057 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0057 -//! @SYMAPI CWsScreenDevice::GetRotationsList(TInt, CArrayFixFlat{ptr}) -//! @SYMAuthor Wekey Weng -//! @SYMCreationDate 11/23/2007 -//! @SYMTestCaseDesc Gets the list of valid rotations for a particular screen size -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Call GetRotationsList() to get the count of the available rotations for a particular screen size and check it to be as expected -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Method GetRotationsList() called without causing panic and the values are as expected -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0057-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev GetRotationsList GRAPHICS-WSERV-WsScreenDevice-PublicApi-0057-0001-GetRotationsList_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0057 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0058 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0058 -//! @SYMAPI CWsScreenDevice::GetScreenModeOrigin(TInt) -//! @SYMAuthor Wekey Weng -//! @SYMCreationDate 11/23/2007 -//! @SYMTestCaseDesc Get the origin of the screen for the specified screen mode -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Call GetScreenModeOrigin() to get the origin for the specified screen mode and check it to be as expected -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Method GetScreenModeOrigin() called without causing panic and return expected value -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0058-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev GetScreenModeOrigin GRAPHICS-WSERV-WsScreenDevice-PublicApi-0058-0001-GetScreenModeOrigin_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0058 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0059 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0059 -//! @SYMAPI CWsScreenDevice::SetAppScreenMode(TInt) -//! @SYMAuthor Wekey Weng -//! @SYMCreationDate 11/23/2007 -//! @SYMTestCaseDesc Sets the application's screen mode; this also sets all the attributes of the screen mode -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Call SetAppScreenMode() to set the application's screen mode -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults SetAppScreenMode method without causing panic.(There seems no methods to check the value is set as expected) -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0059-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev SetAppScreenMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0059-0001-SetAppScreenMode_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0059 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0060 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0060 -//! @SYMAPI CWsScreenDevice::GetCurrentScreenModeScale() -//! @SYMAuthor Wekey Weng -//! @SYMCreationDate 11/23/2007 -//! @SYMTestCaseDesc Gets the scale for the current screen mode -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Call GetCurrentScreenModeScale() to get the scale for the current screen mode and check it to be as expected -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Method GetCurrentScreenModeScale() called without causing panic and return expected value -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0060-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev GetCurrentScreenModeScale GRAPHICS-WSERV-WsScreenDevice-PublicApi-0060-0001-GetCurrentScreenModeScale_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0060 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0061 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0061 -//! @SYMAPI CWsScreenDevice::GetScreenModeScale(TInt) -//! @SYMAuthor Wekey Weng -//! @SYMCreationDate 11/23/2007 -//! @SYMTestCaseDesc Gets the scale for the specified screen mode -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Call GetScreenModeScale() to get the scale for the specified screen mode and check it to be as expected -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Method GetScreenModeScale() called without causing panic and return expected value -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0061-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev GetScreenModeScale GRAPHICS-WSERV-WsScreenDevice-PublicApi-0061-0001-GetScreenModeScale_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0061 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0062 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0062 -//! @SYMAPI CWsScreenDevice::GetCurrentScreenModeScaledOrigin() -//! @SYMAuthor Wekey Weng -//! @SYMCreationDate 11/23/2007 -//! @SYMTestCaseDesc Gets the current screen mode's scaled origin -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Call GetCurrentScreenModeScaledOrigin() to get the scaled origin for the current screen mode and check it to be as expected -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Method GetCurrentScreenModeScaledOrigin() called without causing panic and return expected value -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0062-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev GetCurrentScreenModeScaledOrigin GRAPHICS-WSERV-WsScreenDevice-PublicApi-0062-0001-GetCurrentScreenModeScaledOrigin_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0062 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0063 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0063 -//! @SYMAPI CWsScreenDevice::GetScreenModeScaledOrigin(TInt) -//! @SYMAuthor Wekey Weng -//! @SYMCreationDate 11/23/2007 -//! @SYMTestCaseDesc Gets the specfied screen mode's scaled origin -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Call GetScreenModeScaledOrigin() to get the scaled origin for the specified screen mode and check it to be as expected -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Method GetScreenModeScaledOrigin() called without causing panic and return expected value -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0063-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev GetScreenModeScaledOrigin GRAPHICS-WSERV-WsScreenDevice-PublicApi-0063-0001-GetScreenModeScaledOrigin_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0063 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0064 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0064 -//! @SYMAPI CWsScreenDevice::GetScreenModeDisplayMode(TInt) -//! @SYMAuthor Wekey Weng -//! @SYMCreationDate 11/23/2007 -//! @SYMTestCaseDesc Gets the display mode of the screen for the specified screen mode -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Call GetScreenModeDisplayMode() to get the display mode of the screen for the specified screen mode -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults Method GetScreenModeDisplayMode() called without causing panic and return expected display mode -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0064-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev GetScreenModeDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0064-0001-GetScreenModeDisplayMode_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0064 - - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0100 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0100 -//! @SYMAPI CWsScreenDevice::GetPixel(TRgb {ref}, const TPoint {ref}) const -//! @SYMAuthor Allen CHANG -//! @SYMCreationDate 11/23/2007 -//! @SYMTestCaseDesc Gets color of specified point of screen -//! @SYMTestActions 1. Creates and connects a RWsSession -//! 2. Creates a CWsScreenDevice attached to a RWsSession -//! 3. Completes the construction -//! 4. Gets pixel at point(1, 1) to verify the color of pixel is white -//! 5. Destructs the CWsScreenDevice object -//! 6. Closes the CWsScreenDevice object -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The color of specified point matchs with expected value -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0100-0001-new_command03 - COMMAND scrdev Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0100-0001-Construct_command04 - COMMAND scrdev GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0100-0001-GetPixel_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0100 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0101 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0101 -//! @SYMAPI CWsScreenDevice::GetScanLine(TDes8 {ref}, const TPoint {ref}, TInt, TDisplayMode) -//! @SYMAuthor Kevin Zeng -//! @SYMCreationDate 11/23/2007 -//! @SYMTestCaseDesc Gets a scanline into a buffer -//! @SYMTestActions 1. Setup a CWindowGc and a RWindow. -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor64K) for the RWindow, SetBackgroundColor to TRgb(255,0,0) -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! 2.Use RWindow::BeginRedraw() to start a redraw cycle -//! 3.RWindow::EndRedraw() -//! 4.Get scanline from screen. -//! 5.Deactive RWindow, destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. The scanline get copied, and no panic get raised -//! 2. Check the scanline(Get pixel (1,1) of the scanline, the color is red). -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wgc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0101-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0101-0001-CreateContext_command05 - CREATE_OBJECT RWindowGroup wingrp - COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0101-0001-new_command06 - COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0101-0001-Construct_command07 - CREATE_OBJECT RWindow win - COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0101-0001-new_command08 - COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0101-0001-Construct_command09 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0101-0001-SetRequiredDisplayMode_command10 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0101-0001-SetBackgroundColor_command11 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0101-0001-SetAutoFlush_command13 - COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0101-0001-Activate_command14 - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND scrdev GetScanLine GRAPHICS-WSERV-WsScreenDevice-PublicApi-0101-0001-GetScanLine_command17 - COMMAND wgc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wgc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0101 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0102 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0102 -//! @SYMAPI TInt CWsScreenDevice::AddFile(const TDesC {ref}, TInt {ref}); -//! CWsScreenDevice::RemoveFile(TInt) -//! @SYMAuthor Allen CHANG -//! @SYMCreationDate 11/23/2007 -//! @SYMTestCaseDesc 1. Adds a font file to the device's typeface store -//! 2. Removes a font file from device's typeface store -//! @SYMTestActions 1. Creates and connects a RWsSession -//! 2. Creates a CWsScreenDevice attached to a RWsSession -//! 3. Completes the construction -//! 4. Creates a CFont object -//! 5. Checks that the font does not exist -//! 6. Adds a font file to the device's typeface store. -//! 7. Checks the expected font is added successfully -//! 8. Removes a font file from device's typeface store -//! 9. Checks the expected font is removed successfully -//! 10. Destructs the CWsScreenDevice object -//! 11. Closes the CWsScreenDevice object -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Checks that the font named 'Acb14' exists or not, it is negtive case, expects the font does not exist. -//! 2. The specified font file is added to device's typeface store, -//! 3. Checks that the font named 'Act14' is added successfully. -//! 4. The added file is removed from device's typeface store successfully. -//! 5. Checks that the font named 'Act14' is removed as expected, it is negtive case, expects the font does not exist. -//! 6. Releases the reference of font added. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CFbsFont font - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0102-0001-new_command03 - COMMAND scrdev Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0102-0001-Construct_command04 - COMMAND scrdev GetNearestFontToDesignHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0102-0001-GetNearestFontToDesignHeightInTwips_command05 - COMMAND !Error=-1 font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0102-0001-FontSpecInTwips_command06 - COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicApi-0102-0001-ReleaseFont_command07 - COMMAND scrdev AddFile GRAPHICS-WSERV-WsScreenDevice-PublicApi-0102-0001-AddFile_command08 - COMMAND scrdev GetNearestFontToDesignHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0102-0001-GetNearestFontToDesignHeightInTwips_command09 - COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0102-0001-FontSpecInTwips_command10 - COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicApi-0102-0001-ReleaseFont_command11 - COMMAND scrdev RemoveFile GRAPHICS-WSERV-WsScreenDevice-PublicApi-0102-0001-RemoveFile_command12 - COMMAND scrdev GetNearestFontToDesignHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0102-0001-GetNearestFontToDesignHeightInTwips_command13 - COMMAND !Error=-1 font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0102-0001-FontSpecInTwips_command14 - COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicApi-0102-0001-ReleaseFont_command15 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0102 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0104 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0104 -//! @SYMAPI CWsScreenDevice::GetNearestFontToDesignHeightInPixels(CFont {ptr}{ref}, const TFontSpec {ref}) -//! @SYMAuthor Allen CHANG -//! @SYMCreationDate 11/23/2007 -//! @SYMTestCaseDesc Gets the nearest font in pixels to that specified -//! @SYMTestActions 1. Creates and connects a RWsSession -//! 2. Creates a CWsScreenDevice attached to a RWsSession -//! 3. Completes the construction -//! 4. Creates a CFont object -//! 5. Gets the nearest font in pixels to that specified. -//! 6. Checks if the returned device font is as expected -//! 7. Destructs the CWsScreenDevice object -//! 8. Closes the CWsScreenDevice object -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults KErrNone is returned and the returned device font is as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CFbsFont font - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0104-0001-new_command03 - COMMAND scrdev Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0104-0001-Construct_command04 - COMMAND scrdev GetNearestFontToDesignHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0104-0001-GetNearestFontToDesignHeightInPixels_command05 - COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0104-0001-FontSpecInTwips_command06 - COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicApi-0105-0001-ReleaseFont_command07 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0104 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0105 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0105 -//! @SYMAPI CWsScreenDevice::GetNearestFontToMaxHeightInPixels(CFont {ptr}{ref}, const TFontSpec {ref}, TInt) -//! @SYMAuthor Allen CHANG -//! @SYMCreationDate 11/23/2007 -//! @SYMTestCaseDesc Gets the nearest font in pixels to that specified -//! @SYMTestActions 1. Creates and connects a RWsSession -//! 2. Creates a CWsScreenDevice attached to a RWsSession -//! 3. Completes the construction -//! 4. Create a CFont object -//! 5. Gets the nearest font in pixels to that specified. -//! 6. Checks if the returned device font is as expected -//! 7. Destruct the CWsScreenDevice object -//! 8. Close the CWsScreenDevice object -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults KErrNone is returned and the returned device font is as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CFbsFont font - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0105-0001-new_command03 - COMMAND scrdev Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0105-0001-Construct_command04 - COMMAND scrdev GetNearestFontToMaxHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0105-0001-GetNearestFontToMaxHeightInPixels_command05 - COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0105-0001-FontSpecInTwips_command06 - COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicApi-0105-0001-ReleaseFont_command07 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0105 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0106 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0106 -//! @SYMAPI CWsScreenDevice::RectCompare(const TRect {ref}, const TRect {ref}) -//! @SYMAuthor Kevin Zeng -//! @SYMCreationDate 12/10/2007 -//! @SYMTestCaseDesc Set up and draw 3 50*50 rect regions on white screen. Region1 is the same as region2. Region3 is different. -//! Compare region1 and region2. -//! Compare region1 and region3. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create a CWsScreenDevice attached to RWsSession. -//! 3. Create a RWindowGroup attached to RWsSession. -//! 4. Create a RWindow, setup it and activate. -//! 5. RWsSession SetAutoFlush. -//! 6. Setup and draw 3 rectangle(50*50 size,filled with red, border is black)in 3 different regions.Region1 is the same as region2. Region3 is different. -//! 8. Call CWsScreenDevice::RectCompare() to compare region1 and region2. -//! 9. Call CWsScreenDevice::RectCompare() to compare region1 and region3. -//! 10. Destruct and Close. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. RectCompare which compares region1 and region2 returns ETrue. -//! 2. RectCompare which compares region1 and region3 returns EFalse. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wgc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0106-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0106-0001-CreateContext_command05 - CREATE_OBJECT RWindowGroup wingrp - COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0106-0001-new_command06 - COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0106-0001-Construct_command07 - CREATE_OBJECT RWindow win - COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0106-0001-new_command08 - COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0106-0001-Construct_command09 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0106-0001-SetRequiredDisplayMode_command10 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0106-0001-SetBackgroundColor_command11 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0106-0001-SetAutoFlush_command13 - COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0106-0001-Activate_command14 - COMMAND win BeginRedraw - COMMAND wgc SetBrushColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0106-0001-SetBrushColor_command16 - COMMAND wgc SetBrushStyle GRAPHICS-WSERV-WsScreenDevice-PublicApi-0106-0001-SetBrushStyle_command17 - COMMAND wgc SetPenColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0106-0001-SetPenColor_command18 - COMMAND wgc DrawRect GRAPHICS-WSERV-WsScreenDevice-PublicApi-0106-0001-DrawRect_command19 - COMMAND wgc DrawRect GRAPHICS-WSERV-WsScreenDevice-PublicApi-0106-0001-DrawRect_command20 - COMMAND wgc DrawRect GRAPHICS-WSERV-WsScreenDevice-PublicApi-0106-0001-DrawRect_command21 - COMMAND win EndRedraw - COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0106-0001-RectCompare_command23 - COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0106-0001-RectCompare_command24 - COMMAND wgc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wgc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0106 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0107 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0107 -//! @SYMAPI CWsScreenDevice::RectCompare(const TRect {ref}, const TRect {ref}) -//! @SYMAuthor Allen CHANG -//! @SYMCreationDate 11/24/2007 -//! @SYMTestCaseDesc Set up and draw 3 50*50 rect regions on white screen. Region1 is the same as region2. Region3 is different, Overloaded with flag EIncludeSprite. -//! Compare region1 and region2. -//! Compare region1 and region3. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create a CWsScreenDevice attached to RWsSession. -//! 3. Create a RWindowGroup attached to RWsSession. -//! 4. Create a RWindow, setup it and activate. -//! 5. RWsSession SetAutoFlush. -//! 6. Setup and draw 3 rectangle(50*50 size,filled with red, border is black)in 3 different regions.Region1 is the same as region2. Region3 is different. -//! 8. Verifys region1 and region2 are identical. -//! 9. Verifys region1 and region3 are not identical. -//! 10. Destruct and Close. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. RectCompare which compares region1 and region2 returns ETrue. -//! 2. RectCompare which compares region1 and region3 returns EFalse. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wgc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0107-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0107-0001-CreateContext_command05 - CREATE_OBJECT RWindowGroup wingrp - COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0107-0001-new_command06 - COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0107-0001-Construct_command07 - CREATE_OBJECT RWindow win - COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0107-0001-new_command08 - COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0107-0001-Construct_command09 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0107-0001-SetRequiredDisplayMode_command10 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0107-0001-SetBackgroundColor_command11 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0107-0001-SetAutoFlush_command13 - COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0107-0001-Activate_command14 - COMMAND win BeginRedraw - COMMAND wgc SetBrushColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0107-0001-SetBrushColor_command16 - COMMAND wgc SetBrushStyle GRAPHICS-WSERV-WsScreenDevice-PublicApi-0107-0001-SetBrushStyle_command17 - COMMAND wgc SetPenColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0107-0001-SetPenColor_command18 - COMMAND wgc DrawRect GRAPHICS-WSERV-WsScreenDevice-PublicApi-0107-0001-DrawRect_command19 - COMMAND wgc DrawRect GRAPHICS-WSERV-WsScreenDevice-PublicApi-0107-0001-DrawRect_command20 - COMMAND wgc DrawRect GRAPHICS-WSERV-WsScreenDevice-PublicApi-0107-0001-DrawRect_command21 - COMMAND win EndRedraw - COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0107-0001-RectCompare_command23 - COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0107-0001-RectCompare_command24 - COMMAND wgc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wgc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0107 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0108 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0108 -//! @SYMAPI CWsScreenDevice::RectCompare(const TRect{ref}, const TRect{ref}, TUint) -//! @SYMAuthor Wekey Weng -//! @SYMCreationDate 14/12/2007 -//! @SYMTestCaseDesc Draw two sprites on the screen, set a text cursor. -//! Then compares two rect areas of the screen to verify if they have the same content. Using three compare style: remove sprite, include sprite, text cursor. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create a CWsScreenDevice attached to RWsSession. -//! 3. Create a CWindowGc attached to CWsScreenDevice. -//! 4. Create a RWindowGroup attached to RWsSession. -//! 5. Create a RWindow, setup it and activate. -//! 6. SetAutoFlush to TRUE for the RWsSession. -//! 7. Active CWindowGc. -//! 8. Use RWindow::BeginRedraw() to start a redraw cycle -//! 9. Use RWindow::EndRedraw() to end draw -//! 10. Create 2 RWsSprite attached to RWsSession by using RWsSprite(RWsSession &aWs) and construct. -//! 11. Create 4 CFbsBitmap objects and load bitmaps. -//! 12. Append these CFbsBitmaps to RWsSprites. -//! 13. Set RWsSprites's position using SetPosition(). -//! 14. Set a text cursor using RWindowGroup::SetTextCursor(). -//! 15. Call RectCompare() to compare 2 areas of same content with ERemoveSprite. -//! 16. Call RectCompare() to compare 2 areas of same content with EIncludeSprite. -//! 17. Call RectCompare() to compare 2 areas of different content with EIncludeTextCursor. -//! 18. Deactive RWindow, destruct and close all objects used. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. No panic -//! 2. compare result -//! 2.1 15 returns ETrue -//! 2.2 16 returns ETrue -//! 2.3 17 returns EFalse -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wgc - CREATE_OBJECT CFbsBitmap fbsbmp1 - CREATE_OBJECT CFbsBitmap fbsbmp2 - CREATE_OBJECT CFbsBitmap fbsbmp3 - CREATE_OBJECT CFbsBitmap fbsbmp4 - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RWsSprite sprite1 - CREATE_OBJECT RWsSprite sprite2 - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-CreateContext_command05 - COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-new_command06 - COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-Construct_command07 - COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-new_command08 - COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-Construct_command09 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-SetAutoFlush_command11 - COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-Activate_command12 - COMMAND win BeginRedraw - COMMAND win EndRedraw - - COMMAND sprite1 new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-new_command15 - COMMAND sprite1 Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-construct_command16 - COMMAND fbsbmp1 new - COMMAND fbsbmp1 Load GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-loadmask_command18 - - COMMAND fbsbmp2 new - COMMAND fbsbmp2 Load GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-load_command20 - COMMAND sprite1 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-appendmember_command21 - - COMMAND fbsbmp3 new - COMMAND fbsbmp3 Load GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-load_command23 - COMMAND sprite1 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-appendmember_command24 - - COMMAND fbsbmp4 new - COMMAND fbsbmp4 Load GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-load_command26 - COMMAND sprite1 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-appendmember_command27 - - COMMAND sprite1 SetPosition GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-SetPosition_command28 - - COMMAND sprite2 new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-new_command29 - COMMAND sprite2 Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-construct_command30 - COMMAND sprite2 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-appendmember_command31 - COMMAND sprite2 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-appendmember_command32 - COMMAND sprite2 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-appendmember_command33 - - COMMAND sprite2 SetPosition GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-SetPosition_command34 - COMMAND sprite1 Activate - COMMAND sprite2 Activate - - COMMAND wingrp SetTextCursor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-SetTextCursor_command37 - - DELAY 1000000 - //! COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-RectCompare_command38 - //! COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-RectCompare_command39 - //! COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-RectCompare_command40 - - COMMAND fbsbmp1 ~ - COMMAND fbsbmp2 ~ - COMMAND fbsbmp3 ~ - COMMAND fbsbmp4 ~ - COMMAND wgc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wgc ~ - COMMAND sprite1 Close - COMMAND sprite2 Close - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0108 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0109 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0109 -//! @SYMAPI CWsScreenDevice::GetScreenNumber() const -//! @SYMAuthor Allen CHANG -//! @SYMCreationDate 11/24/2007 -//! @SYMTestCaseDesc Get device's screen number -//! @SYMTestActions 1. Creates and connects a RWsSession -//! 2. Creates a CWsScreenDevice attached to a RWsSession -//! 3. Completes the construction -//! 4. Gets the number of device's screen installed. -//! 5. Destructs the CWsScreenDevice object -//! 6. Closes the CWsScreenDevice object -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The number of screens of device is retrieved, the value is as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0109-0001-new_command03 - COMMAND scrdev Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0109-0001-Construct_command04 - COMMAND scrdev GetScreenNumber GRAPHICS-WSERV-WsScreenDevice-PublicApi-0109-0001-GetScreenNumber_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0109 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0110 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0110 -//! @SYMAPI CWsScreenDevice::SetBackLight(TBool) const -//! @SYMAuthor Allen CHANG -//! @SYMCreationDate 11/24/2007 -//! @SYMTestCaseDesc Set back light off, then on. -//! @SYMTestActions 1. Creates and connects a RWsSession -//! 2. Creates a CWsScreenDevice attached to a RWsSession -//! 3. Completes the construction -//! 4. Turns backlight off -//! 5. Turns backlight on -//! 6. Destructs the CWsScreenDevice object -//! 7. Closes the CWsScreenDevice object -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults No panic ocurred. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0110-0001-new_command03 - COMMAND scrdev Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0110-0001-Construct_command04 - COMMAND scrdev SetBackLight GRAPHICS-WSERV-WsScreenDevice-PublicApi-0110-0001-SetBackLight_command05 - COMMAND scrdev SetBackLight GRAPHICS-WSERV-WsScreenDevice-PublicApi-0110-0001-SetBackLight_command06 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0110 - - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0146 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0146 -//! @SYMAPI CWsScreenDevice::GetNearestFontToDesignHeightInPixels(CFont {ptr}{ref}, const TFontSpec {ref}) -//! @SYMAuthor Kevin Zeng, Ray Liang -//! @SYMCreationDate 11/23/2007 -//! @SYMTestCaseDesc Get a font first, then release font, get another font, no panic occurs when case end. -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Creat a font. -//! 3. Create a CWsScreenDevice attached to RWsSession. -//! 4. Complete the construction. -//! 5. Call GetNearestFontToDesignHeightInPixels() to get a font. -//! 6. Call ReleaseFont() method. -//! 7. Call GetNearestFontToDesignHeightInPixels() to get a font again. -//! 8. Destruct the CWsScreenDevice object -//! 9. Close the RWsSession object -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults No panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CFbsFont font - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0146-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev GetNearestFontToDesignHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0146-0001-GetNearestFontToDesignHeightInPixels_command05 - COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicApi-0146-0001-ReleaseFont_command06 - COMMAND scrdev GetNearestFontToDesignHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0146-0001-GetNearestFontToDesignHeightInPixels_command07 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0146 - - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0150 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0150 -//! @SYMAPI CWsScreenDevice::FontHeightInPixels(TInt, TInt) -//! @SYMAuthor Kevin Zeng -//! @SYMCreationDate 11/23/2007 -//! @SYMTestCaseDesc Gets the height of the specified font in pixels. -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession. -//! 3. Complete the construction. -//! 4. Call FontHeightInPixels() method with different parameter values. -//! 5. Destruct and Close. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults FontHeightInPixels returns expected value. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0150-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev FontHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0150-0001-FontHeightInPixels_command05 - COMMAND scrdev FontHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0150-0001-FontHeightInPixels_command06 - COMMAND scrdev FontHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0150-0001-FontHeightInPixels_command07 - COMMAND scrdev FontHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0150-0001-FontHeightInPixels_command08 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0150 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0151 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0151 -//! @SYMAPI CWsScreenDevice::::FontHeightInPixels(TInt, TInt) -//! @SYMAuthor Kevin Zeng -//! @SYMCreationDate 11/23/2007 -//! @SYMTestCaseDesc Negative test, using large numbers in the parameters. -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession. -//! 3. Complete the construction. -//! 4. Call FontHeightInPixels() method with large parameter values. -//! 5. Destruct and Close. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults FontHeightInPixels returns 0 with no panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0151-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev FontHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0151-0001-FontHeightInPixels_command05 - COMMAND scrdev FontHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0151-0001-FontHeightInPixels_command06 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0151 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0153 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0153 -//! @SYMAPI CWsScreenDevice::PaletteAttributes(TBool {ref}, TInt {ref}) -//! @SYMAuthor Kevin Zeng -//! @SYMCreationDate 11/23/2007 -//! @SYMTestCaseDesc Gets the attributes of the device's palette. -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Creat a font. -//! 3. Create a CWsScreenDevice attached to RWsSession. -//! 4. Complete the construction. -//! 5. Call PaletteAttributes() method. -//! 6. Destruct and Close. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults PaletteAttributes retrieves expected values. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0153-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev PaletteAttributes GRAPHICS-WSERV-WsScreenDevice-PublicApi-0153-0001-PaletteAttributes_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0153 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0154 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0154 -//! @SYMAPI CWsScreenDevice::SetCustomPalette(const CPalette {ptr}) -//! @SYMAuthor Kevin Zeng -//! @SYMCreationDate 11/23/2007 -//! @SYMTestCaseDesc Sets the custom palette. -//! Gets the screen device's palette. -//! Support for palette will depend on the screen driver implementation, it's not supported in techview. -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Creat a font. -//! 3. Create a Palette. -//! 3. Create a CWsScreenDevice attached to RWsSession. -//! 4. Complete the construction. -//! 5. Call SetCustomPalette() with the existing palette. -//! 6. Call GetPalette() to get the palette. -//! 7. Destruct and Close. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults SetCustomPalette returns KErrNone. GetPalette retrieves a palette as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CPalette palette - COMMAND palette NewL GRAPHICS-WSERV-WsScreenDevice-PublicApi-0154-0001-NewL_command01 - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0154-0001-new_command04 - COMMAND scrdev Construct - COMMAND scrdev SetCustomPalette GRAPHICS-WSERV-WsScreenDevice-PublicApi-0154-0001-SetCustomPalette_command06 - COMMAND scrdev GetPalette GRAPHICS-WSERV-WsScreenDevice-PublicApi-0154-0001-GetPalette_command07 - COMMAND palette ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0154 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0156 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0156 -//! @SYMAPI CWsScreenDevice::GetFontById(CFont {ptr}{ref}, TUid, const TAlgStyle {ref}) -//! @SYMAuthor Kevin Zeng -//! @SYMCreationDate 11/23/2007 -//! @SYMTestCaseDesc Gets a font by its bitmap UID and check the font is got. -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a TAlgStyle. -//! 3. Create a CWsScreenDevice attached to RWsSession. -//! 4. Complete the construction. -//! 5. Call GetFontById() with the uid and algstyle to check the font got. -//! 6. Destruct and Close. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. GetFontById returns KErrNone. -//! 2. HeightInPixels returns expected value. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT TAlgStyle algstyle - CREATE_OBJECT CFbsFont font - COMMAND algstyle new - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0156-0001-new_command04 - COMMAND scrdev Construct - COMMAND scrdev GetFontById GRAPHICS-WSERV-WsScreenDevice-PublicApi-0156-0001-GetFontById_command07 - COMMAND font HeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0156-0001-HeightInPixels_command08 - COMMAND algstyle ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0156 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0157 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0157 -//! @SYMAPI CWsScreenDevice::GetFontById(CFont {ptr}{ref}, TUid, const TAlgStyle {ref}) -//! @SYMAuthor Kevin Zeng -//! @SYMCreationDate 11/23/2007 -//! @SYMTestCaseDesc Negative test, using an error UID. -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Cteaate a TAlgStyle. -//! 3. Create a CWsScreenDevice attached to RWsSession. -//! 4. Complete the construction. -//! 5. Call GetFontById() with a algstyle and a error uid. -//! 6. Destruct and Close. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults GetFontById returns a error. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT TAlgStyle algstyle - CREATE_OBJECT CFbsFont font - COMMAND algstyle new - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0157-0001-new_command04 - COMMAND scrdev Construct - COMMAND !Error=-1 scrdev GetFontById GRAPHICS-WSERV-WsScreenDevice-PublicApi-0157-0001-GetFontById_command07 - COMMAND scrdev ~ - COMMAND algstyle ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0157 - - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0158 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0158 -//! @SYMAPI CWsScreenDevice::CopyScreenToBitmap(const CFbsBitmap {ptr}) -//! @SYMAuthor Kevin Zeng -//! @SYMCreationDate 12/10/2007 -//! @SYMTestCaseDesc Set up and draw a 100*100 rect on white screen, inside of the rect is red and border is black. -//! Craete a screen size bitmap.Copy the entire screen to the bitmap and check the bitmap's pixel. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create a CWsScreenDevice attached to RWsSession. -//! 3. Create a RWindowGroup attached RWsSession. -//! 4. Create a RWindow, setup it and activate. -//! 5. RWsSession SetAutoFlush. -//! 6. Setup and draw a rectangle(100*100 size,filled with red, border is black). -//! 7. Create a CFbsBitmap as the size of the screen. -//! 8. Call CWsScreenDevice::CopyScreenToBitmap(const CFbsBitmap *) to copy the whole screen to bitmap. -//! 9. GetPixel from the bitmap, check the rectangle(inside is red, border is black and outside is white). -//! 10. Destruct and Close. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. CopyScreenToBitmap methods return KErrNone. -//! 2. The bitmap which is copyed to is correct -//! 2.1 The pixels (0,0) is color TRgb(0,0,0); The border is black. -//! 2.2 The pixels (99,99) is color TRgb(0,0,0); The border is black. -//! 2.3 The pixels (50,99) is color TRgb(0,0,0); The border is black. -//! 2.4 The pixels (99,50) is color TRgb(0,0,0); The border is black. -//! 2.5 The pixels (50,100) is color TRgb(255,255,255); Outside is white. -//! 2.6 The pixels (100,50) is color TRgb(255,255,255); Outside is white. -//! 2.7 The pixels (1,1) is color TRgb(255,0,0); Inside is red. -//! 2.8 The pixels (98,98) is color TRgb(255,0,0); Inside is red. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wgc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-CreateContext_command05 - CREATE_OBJECT RWindowGroup wingrp - COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-new_command06 - COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-Construct_command07 - CREATE_OBJECT RWindow win - COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-new_command08 - COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-Construct_command09 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-SetRequiredDisplayMode_command10 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-SetBackgroundColor_command11 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-SetAutoFlush_command13 - COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-Activate_command14 - COMMAND win BeginRedraw - COMMAND wgc SetBrushColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-SetBrushColor_command16 - COMMAND wgc SetBrushStyle GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-SetBrushStyle_command17 - COMMAND wgc SetPenColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-SetPenColor_command18 - COMMAND wgc DrawRect GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-DrawRect_command19 - COMMAND win EndRedraw - CREATE_OBJECT CFbsBitmap fbsbitmap - COMMAND fbsbitmap new - COMMAND fbsbitmap Create GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-Create_command22 - COMMAND scrdev CopyScreenToBitmap GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-CopyScreenToBitmap_command23 - COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-GetPixel_command24 - COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-GetPixel_command25 - COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-GetPixel_command26 - COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-GetPixel_command27 - COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-GetPixel_command28 - COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-GetPixel_command29 - COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-GetPixel_command30 - COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-GetPixel_command31 - COMMAND fbsbitmap ~ - COMMAND wgc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wgc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0158 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0159 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0159 -//! @SYMAPI CWsScreenDevice::CopyScreenToBitmap(const CFbsBitmap {ptr}, const TRect {ref}) -//! @SYMAuthor Kevin Zeng -//! @SYMCreationDate 12/10/2007 -//! @SYMTestCaseDesc Set up and draw a 100*100 rect on white screen, inside of the rect is red and border is black. -//! Craete a 100*100 bitmap.Copy the 100*100 rect in the screen to the bitmap and check the bitmap's pixel. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create a CWsScreenDevice attached to RWsSession. -//! 3. Create a RWindowGroup attached to RWsSession. -//! 4. Create a RWindow, setup it and activate. -//! 5. RWsSession SetAutoFlush. -//! 6. Setup and draw a rectangle(100*100 size,filled with red, border is black). -//! 7. Create a CFbsBitmap as the size of the screen. -//! 8. Call CWsScreenDevice::CopyScreenToBitmap((const CFbsBitmap *aBitmap,const TRect &aRect) to copy a 100*100 rect to a 100*100 bitmap. -//! 9. GetPixel from the bitmap, check the rectangle(inside is red, border is black). -//! 10. Destruct and Close. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. CopyScreenToBitmap methods return KErrNone. -//! 2. The bitmap which is copyed to is correct -//! 2.1 The pixels (0,0) is color TRgb(0,0,0); The border is black. -//! 2.2 The pixels (99,99) is color TRgb(0,0,0); The border is black. -//! 2.3 The pixels (50,99) is color TRgb(0,0,0); The border is black. -//! 2.4 The pixels (99,50) is color TRgb(0,0,0); The border is black. -//! 2.5 The pixels (1,1) is color TRgb(255,0,0); Inside is red. -//! 2.6 The pixels (98,98) is color TRgb(255,0,0); Inside is red. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wgc - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-CreateContext_command05 - CREATE_OBJECT RWindowGroup wingrp - COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-new_command06 - COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-Construct_command07 - CREATE_OBJECT RWindow win - COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-new_command08 - COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-Construct_command09 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-SetRequiredDisplayMode_command10 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-SetBackgroundColor_command11 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-SetAutoFlush_command13 - COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-Activate_command14 - COMMAND win BeginRedraw - COMMAND wgc SetBrushColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-SetBrushColor_command16 - COMMAND wgc SetBrushStyle GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-SetBrushStyle_command17 - COMMAND wgc SetPenColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-SetPenColor_command18 - COMMAND wgc DrawRect GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-DrawRect_command19 - COMMAND win EndRedraw - CREATE_OBJECT CFbsBitmap fbsbitmap - COMMAND fbsbitmap new - COMMAND fbsbitmap Create GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-Create_command22 - COMMAND scrdev CopyScreenToBitmap GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-CopyScreenToBitmap_command23 - COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-GetPixel_command24 - COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-GetPixel_command25 - COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-GetPixel_command26 - COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-GetPixel_command27 - COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-GetPixel_command28 - COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-GetPixel_command29 - COMMAND fbsbitmap ~ - COMMAND wgc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wgc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0159 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0160 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0160 -//! @SYMAPI CWsScreenDevice::Construct(TInt) -//! @SYMAuthor Niandong Qiao -//! @SYMCreationDate 01/03/2008 -//! @SYMTestCaseDesc Negative test, uses invalid input values -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction with aDefaultScreenNumber = 10000 -//! 4. Destruct the CWsScreenDevice object -//! 5. Close the RWsSession object -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults WSERV 65 panic received at Test Action 3. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0160-0001-new_command03 - COMMAND scrdev Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0160-0001-Construct_command04 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK !PanicString=WSERV !PanicCode=65 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0160 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0161 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0161 -//! @SYMAPI CWsScreenDevice::HorizontalTwipsToPixels(TInt) -//! @SYMAuthor Niandong Qiao -//! @SYMCreationDate 01/03/2008 -//! @SYMTestCaseDesc Uses big twips/0/small negative twips -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Translates three horizontal dimension in twips into pixels -//! 4.1 input twips = 762000000, return 64000000 for emulator and 54635895 for H4. -//! 4.2 input twips = 0, return 0. -//! 4.3 input twips = -762000000, return -63999999 for emulator and -54635894 for H4. -//! 5. Destruct the CWsScreenDevice object -//! 6. Close the RWsSession object -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults No panic and the returned pixels are as expected -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0161-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev HorizontalTwipsToPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0161-0001-HorizontalTwipsToPixels_command05 - COMMAND scrdev HorizontalTwipsToPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0161-0001-HorizontalTwipsToPixels_command06 - COMMAND scrdev HorizontalTwipsToPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0161-0001-HorizontalTwipsToPixels_command07 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0161 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0162 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0162 -//! @SYMAPI CWsScreenDevice::VerticalTwipsToPixels(TInt) -//! @SYMAuthor Niandong Qiao -//! @SYMCreationDate 01/03/2008 -//! @SYMTestCaseDesc Uses big twips/0/small negative twips -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Translates three vertical dimension in twips into pixels -//! 4.1 input twips = 285800000, return 24000000 for emulator and 22555738 for H4. -//! 4.2 input twips = 0, return 0. -//! 4.3 input twips = -285800000, return -23999999 for emulator and -22555737 for H4. -//! 5. Destruct the CWsScreenDevice object -//! 6. Close the RWsSession object -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults No panic and the returned pixels are as expected -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0162-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev VerticalTwipsToPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0162-0001-VerticalTwipsToPixels_command05 - COMMAND scrdev VerticalTwipsToPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0162-0001-VerticalTwipsToPixels_command06 - COMMAND scrdev VerticalTwipsToPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0162-0001-VerticalTwipsToPixels_command07 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0162 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0163 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0163 -//! @SYMAPI CWsScreenDevice::HorizontalPixelsToTwips(TInt) -//! @SYMAuthor Niandong Qiao -//! @SYMCreationDate 01/03/2008 -//! @SYMTestCaseDesc Uses big pixels/0/small negative pixels -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Translates three horizontal dimension in pixels into twips -//! 4.1 input pixel = 64000000, return 762000000 for emulator and 892600000 for H4. -//! 4.2 input pixel = 0, return 0. -//! 4.3 input pixel = -64000000, return -761999999 for emulator and -892599999 for H4. -//! 5. Destruct the CWsScreenDevice object -//! 6. Close the RWsSession object -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults No panic and the returned twips are as expected -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0163-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev HorizontalPixelsToTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0163-0001-HorizontalPixelsToTwips_command05 - COMMAND scrdev HorizontalPixelsToTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0163-0001-HorizontalPixelsToTwips_command06 - COMMAND scrdev HorizontalPixelsToTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0163-0001-HorizontalPixelsToTwips_command07 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0163 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0164 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0164 -//! @SYMAPI CWsScreenDevice::VerticalPixelsToTwips(TInt) -//! @SYMAuthor Niandong Qiao -//! @SYMCreationDate 01/03/2008 -//! @SYMTestCaseDesc Uses big pixels/0/small negative pixels -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Translates three vertical dimension in pixels into twips -//! 4.1 input pixel = 24000000, return 285800000 for emulator and 304100000 for H4. -//! 4.2 input pixel = 0, return 0. -//! 4.3 input pixel = -24000000, return -285799999 for emulator and -304099999 for H4. -//! 5. Destruct the CWsScreenDevice object -//! 6. Close the RWsSession object -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults No panic and the returned twips are as expected -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0164-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev VerticalPixelsToTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0164-0001-VerticalPixelsToTwips_command05 - COMMAND scrdev VerticalPixelsToTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0164-0001-VerticalPixelsToTwips_command06 - COMMAND scrdev VerticalPixelsToTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0164-0001-VerticalPixelsToTwips_command07 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0164 - -//!START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0165 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0165 -//! @SYMAPI CWsScreenDevice::CreateContext(CWindowGc{ptr}{ref}) -//! @SYMAuthor Niandong Qiao -//! @SYMCreationDate 01/03/2008 -//! @SYMTestCaseDesc Negative test. -//! Create a CWsScreenDevice object neither attached to a RWsSession nor complete the construction, then call the CreateContext with it. -//! @SYMTestActions 1.New a CWsScreenDevice without attached to a RWsSession -//! 2.Create a CWindowGc within the CWsScreenDevice by CreateContext -//! 3.Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults KERN-EXEC 3 panic received at Test Action 2. -//! @SYMTestType CIT -//! START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini -//! CREATE_OBJECT CWsScreenDevice scrdev -//! CREATE_OBJECT CWindowGc wgc -//! COMMAND scrdev new -//! COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0165-0001-CreateContext_command02 -//! COMMAND wgc ~ -//! COMMAND scrdev ~ -//! END_TEST_BLOCK !PanicString=KERN-EXEC !PanicCode=3 -//! RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -//!END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0165 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0180 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0180 -//! @SYMAPI CWsScreenDevice::GetNearestFontToDesignHeightInTwips(CFont {prt}{ref}, const TFontSpec {ref}) -//! @SYMAuthor Dorothy Zhang -//! @SYMCreationDate 01/03/2008 -//! @SYMTestCaseDesc Negative test, gets an existent font name but too big/too small/negative size -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create a CWsScreenDevice attached to a RWsSession. -//! 3. Complete the construction. -//! 4. Get font in twips for DejaVu Sans Mono, 1000000 twips font. -//! 5. Check the returned font is expected -//! 6. Get font in twips for DejaVu Sans Mono, 0 twips font. -//! 7. Check the returned font is expected -//! 8. Get font in twips for DejaVu Sans Mono, -1 twips font. -//! 9. Check the returned font is expected -//! 10. Destruct and close all objects used. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults 1. The function GetNearestFontToDesignHeightInTwips() call returns KErrNone and no panic. -//! 2. The returned font is as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CFbsFont font - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0180-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev GetNearestFontToDesignHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0180-0001-GetNearestFontToDesignHeightInTwips_command05 - COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0180-0001-FontSpecInTwips_command06 - COMMAND scrdev GetNearestFontToDesignHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0180-0001-GetNearestFontToDesignHeightInTwips_command07 - COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0180-0001-FontSpecInTwips_command08 - COMMAND scrdev GetNearestFontToDesignHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0180-0001-GetNearestFontToDesignHeightInTwips_command09 - COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0180-0001-FontSpecInTwips_command10 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0180 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0181 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0181 -//! @SYMAPI CWsScreenDevice::GetNearestFontToDesignHeightInTwips(CFont {prt}{ref}, const TFontSpec {ref}) -//! @SYMAuthor Dorothy Zhang -//! @SYMCreationDate 01/03/2008 -//! @SYMTestCaseDesc Negative test, try to get a font by an empty font name. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create a CWsScreenDevice attached to a RWsSession. -//! 3. Complete the construction. -//! 4. Get the font in twips for "" (empty name), 50 twips font. -//! 5. Check the returned font is expected -//! 6. Destruct and close all objects used. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults 1. The function GetNearestFontToDesignHeightInTwips() call returns KErrNone and no panic. -//! 2. The returned font is as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CFbsFont font - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0181-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev GetNearestFontToDesignHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0181-0001-GetNearestFontToDesignHeightInTwips_command05 - COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0181-0001-FontSpecInTwips_command06 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0181 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0182 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0182 -//! @SYMAPI CWsScreenDevice::GetNearestFontToDesignHeightInTwips(CFont {prt}{ref}, const TFontSpec {ref}) -//! @SYMAuthor Dorothy Zhang -//! @SYMCreationDate 01/07/2008 -//! @SYMTestCaseDesc 1. Try to get a font before adding it to the typeface. -//! 2. Add the font and try to get it, verify the font is as expected. -//! 3. Remove the font and try to get it again. -//! @SYMTestActions 1. Create and connects a RWsSession. -//! 2. Create a CWsScreenDevice attached to a RWsSession. -//! 3. Complete the construction. -//! 4. Try to get a non-exist font "Acb14" and check it. -//! 5. Add the "Acb14" font file to the device's typeface store. -//! 6. Try to get the "Acb14" font and check the returned font. -//! 7. Remove the font file from device's typeface store -//! 8. Try to get the "Acb14" font again and check the returned font. -//! 9. Destruct and close all objects used. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults 1. The FontSpecInTwips() call at Test Action 4 should not return the font name "Acb14". -//! 2. The FontSepcInTwips() call at Test Action 6 should not return the font name "Acb14" because wserv font system cached the first get. -//! 3. The FontSpecInTwips() call at Test Action 8 should not return the font name "Acb14" . -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CFbsFont font - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0182-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev GetNearestFontToDesignHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0182-0001-GetNearestFontToDesignHeightInTwips_command05 - COMMAND !Error=-1 font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0182-0001-FontSpecInTwips_command06 - COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0182-0001-ReleaseFont_command07 - COMMAND scrdev AddFile GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0182-0001-AddFile_command08 - COMMAND scrdev GetNearestFontToDesignHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0182-0001-GetNearestFontToDesignHeightInTwips_command09 - COMMAND !Error=-1 font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0182-0001-FontSpecInTwips_command10 - COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0182-0001-ReleaseFont_command11 - COMMAND scrdev RemoveFile GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0182-0001-RemoveFile_command12 - COMMAND scrdev GetNearestFontToDesignHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0182-0001-GetNearestFontToDesignHeightInTwips_command13 - COMMAND !Error=-1 font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0182-0001-FontSpecInTwips_command14 - COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0182-0001-ReleaseFont_command15 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0182 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0183 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0183 -//! @SYMAPI CWsScreenDevice::GetNearestFontToMaxHeightInTwips(CFont {prt}{ref}, const TFontSpec {ref}, TInt) -//! @SYMAuthor Dorothy Zhang -//! @SYMCreationDate 01/07/2008 -//! @SYMTestCaseDesc Negative test, gets an existent font but too big/too small/negative size. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create a CWsScreenDevice attached to a RWsSession. -//! 3. Complete the construction. -//! 4. Get the font for DejaVu Sans Mono, 1000000 twips font, specifying max height = 100. -//! 5. Check the returned font is as expected. -//! 6. Get the font for DejaVu Sans Mono, 0 twips font, specifying max height=100. -//! 7. Check the returned font is as expected. -//! 8. Get the font for DejaVu Sans Mono, -1 twips font, specifying max height=100. -//! 9. Check the returned font is as expected. -//! 10. Get the font for DejaVu Sans Mono, 72 twips font, specifying max height = 1000000. -//! 11. Check KErrTooBig error is returned. -//! 12. Get the font for DejaVu Sans Mono, 72 twips font, specifying max height = 0. -//! 13. Check the returned font is as expected. -//! 14. Get the font for DejaVu Sans Mono, 72 twips font, specifying max height = -1. -//! 15. Check the returned font is as expected. -//! 16. Get the font for DejaVu Sans Mono, 10000 twips font, specifying max height = -1. -//! 17. Check the returned font is as expected. -//! 18. Destruct and close all objects used. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults 1. The GetNearestFontToMaxHeightInTwips() call at Test Action 7 returns KErrTooBig (Error=-40) and no panic. -//! 2. The Other GetNearestFontToMaxHeightInTwips() calls return KErrNone and no panic. -//! 3. The returned font is as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CFbsFont font - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0183-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev GetNearestFontToMaxHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0183-0001-GetNearestFontToMaxHeightInTwips_command05 - COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0183-0001-FontSpecInTwips_command06 - COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0183-0001-ReleaseFont_command07 - COMMAND scrdev GetNearestFontToMaxHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0183-0001-GetNearestFontToMaxHeightInTwips_command08 - COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0183-0001-FontSpecInTwips_command09 - COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0183-0001-ReleaseFont_command10 - COMMAND scrdev GetNearestFontToMaxHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0183-0001-GetNearestFontToMaxHeightInTwips_command11 - COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0183-0001-FontSpecInTwips_command12 - COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0183-0001-ReleaseFont_command13 - COMMAND !Error=-40 scrdev GetNearestFontToMaxHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0183-0001-GetNearestFontToMaxHeightInTwips_command14 - COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0183-0001-ReleaseFont_command15 - COMMAND scrdev GetNearestFontToMaxHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0183-0001-GetNearestFontToMaxHeightInTwips_command16 - COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0183-0001-FontSpecInTwips_command17 - COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0183-0001-ReleaseFont_command18 - COMMAND scrdev GetNearestFontToMaxHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0183-0001-GetNearestFontToMaxHeightInTwips_command19 - COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0183-0001-FontSpecInTwips_command20 - COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0183-0001-ReleaseFont_command21 - COMMAND scrdev GetNearestFontToMaxHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0183-0001-GetNearestFontToMaxHeightInTwips_command22 - COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0183-0001-FontSpecInTwips_command23 - COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0183-0001-ReleaseFont_command24 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0183 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0184 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0184 -//! @SYMAPI CWsScreenDevice::GetNearestFontToMaxHeightInTwips(CFont {prt}{ref}, const TFontSpec {ref}, TInt) -//! @SYMAuthor Dorothy Zhang -//! @SYMCreationDate 01/07/2008 -//! @SYMTestCaseDesc Negative test, try to get a font by an empty font name. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create a CWsScreenDevice attached to a RWsSession. -//! 3. Complete the construction. -//! 4. Get the font in twips for "" (empty name), 50 twips font, 60 max font. -//! 5. Check the returned font is as expected. -//! 6. Destruct and close all objects used. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults 1. The function GetNearestFontToMaxHeightInTwips() call returns KErrNone and no panic. -//! 2. The returned font is as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CFbsFont font - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0184-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev GetNearestFontToMaxHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0184-0001-GetNearestFontToMaxHeightInTwips_command05 - COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0184-0001-FontSpecInTwips_command06 - COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0184-0001-ReleaseFont_command07 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0184 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0185 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0185 -//! @SYMAPI CWsScreenDevice::GetNearestFontToMaxHeightInTwips(CFont {prt}{ref}, const TFontSpec {ref}, TInt) -//! @SYMAuthor Dorothy Zhang -//! @SYMCreationDate 01/08/2008 -//! @SYMTestCaseDesc 1. Try to get a font before adding it to the typeface. -//! 2. Add the font and try to get it, verify the font is as expected. -//! 3. Remove the font and try to get it again. -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to a RWsSession -//! 3. Complete the construction -//! 4. Get a non exist font in twips and then check it. -//! 5. Add a font file to the device's typeface store. -//! 6. Try to get the "Acb14" font and check the returned font. -//! 7. Remove the font file from device's typeface store -//! 8. Get the removed font again and check it. -//! 9. Destruct and close all ojects used. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults 1. The FontSpecInTwips() call at Test Action 4 should not return the font "Acb14". -//! 2. The FontSepcInTwips() call at Test Action 6 should not return the font name "Acb14" because wserv font system cached the first get. -//! 3. The FontSpecInTwips() call at Test Action 8 should not return the font "Acb14". -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CFbsFont font - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0185-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev GetNearestFontToMaxHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0185-0001-GetNearestFontToMaxHeightInTwips_command05 - COMMAND !Error=-1 font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0185-0001-FontSpecInTwips_command06 - COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0185-0001-ReleaseFont_command07 - COMMAND scrdev AddFile GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0185-0001-AddFile_command08 - COMMAND scrdev GetNearestFontToMaxHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0185-0001-GetNearestFontToMaxHeightInTwips_command09 - COMMAND !Error=-1 font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0185-0001-FontSpecInTwips_command10 - COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0185-0001-ReleaseFont_command11 - COMMAND scrdev RemoveFile GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0185-0001-RemoveFile_command12 - COMMAND scrdev GetNearestFontToMaxHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0185-0001-GetNearestFontToMaxHeightInTwips_command13 - COMMAND !Error=-1 font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0185-0001-FontSpecInTwips_command14 - COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0185-0001-ReleaseFont_command15 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0185 - - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0186 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0186 -//! @SYMAPI CWsScreenDevice::GetNearestFontToDesignHeightInTwips(CFont {prt}{ref}, const TFontSpec {ref}) -//! @SYMAuthor Dorothy Zhang -//! @SYMCreationDate 01/07/2008 -//! @SYMTestCaseDesc Add the font and try to get it, verify the font is as expected. -//! @SYMTestActions 1. Create and connects a RWsSession. -//! 2. Create a CWsScreenDevice attached to a RWsSession. -//! 3. Complete the construction. -//! 4. Add the "Acb14" font file to the device's typeface store. -//! 5. Try to get the "Acb14" font and check the returned font. -//! 6. Remove the font file from device's typeface store -//! 7. Destruct and close all objects used. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults The FontSpecInTwips() call should return the font name "Acb14". -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CFbsFont font - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0186-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev AddFile GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0186-0001-AddFile_command05 - COMMAND scrdev GetNearestFontToDesignHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0186-0001-GetNearestFontToDesignHeightInTwips_command06 - COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0186-0001-FontSpecInTwips_command07 - COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0186-0001-ReleaseFont_command08 - COMMAND scrdev RemoveFile GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0186-0001-RemoveFile_command09 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0186 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0187 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0187 -//! @SYMAPI CWsScreenDevice::GetNearestFontToMaxHeightInTwips(CFont {prt}{ref}, const TFontSpec {ref}, TInt) -//! @SYMAuthor Dorothy Zhang -//! @SYMCreationDate 01/08/2008 -//! @SYMTestCaseDesc Add the font and try to get it, verify the font is as expected. -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to a RWsSession -//! 3. Complete the construction -//! 4. Add a font file to the device's typeface store. -//! 5. Check the expected font is added successfully. -//! 6. Remove the font file from device's typeface store -//! 7. Destruct and close all ojects used. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults The FontSpecInTwips() call should return the font "Acb14". -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CFbsFont font - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0187-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev AddFile GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0187-0001-AddFile_command05 - COMMAND scrdev GetNearestFontToMaxHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0187-0001-GetNearestFontToMaxHeightInTwips_command06 - COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0187-0001-FontSpecInTwips_command07 - COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0187-0001-ReleaseFont_command08 - COMMAND scrdev RemoveFile GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0187-0001-RemoveFile_command09 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0187 - - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0192 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0192 -//! @SYMAPI CWsScreenDevice::TypefaceSupport(TTypefaceSupport{ref}, TInt) -//! @SYMAuthor Kevin Zeng -//! @SYMCreationDate 1/3/2008 -//! @SYMTestCaseDesc Negative test, uses -1 as faceindex parameter. -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Get typeface information for -1 as index number -//! 5. Destruct the CWsScreenDevice object -//! 6. Close the RWsSession object -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults FBSCLI 26 panic received at Test Action 4. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0192-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev TypefaceSupport GRAPHICS-WSERV-WsScreenDevice-PublicApi-0192-0001-TypefaceSupport_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK !PanicString=FBSCLI !PanicCode=26 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0192 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0194 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0194 -//! @SYMAPI CWsScreenDevice::FontHeightInTwips(TInt, TInt) -//! @SYMAuthor Kevin Zeng -//! @SYMCreationDate 1/3/2007 -//! @SYMTestCaseDesc Negative test, uses (0,-1),(10000,10000) and (0,10000) as the parameters. -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Get the height in twips of the specified font using FontHeightInTwips(), input is (0,-1). -//! 4. Get the height in twips of the specified font using FontHeightInTwips(), input is (10000,10000). -//! 4. Get the height in twips of the specified font using FontHeightInTwips(), input is (0,10000). -//! 5. Destruct the CWsScreenDevice object -//! 6. Close the RWsSession object -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults No panic and the FontHeightInTwips() returns 0. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0194-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev FontHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0194-0001-FontHeightInTwips_command05 - COMMAND scrdev FontHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0194-0001-FontHeightInTwips_command06 - COMMAND scrdev FontHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0194-0001-FontHeightInTwips_command07 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0194 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0195 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0195 -//! @SYMAPI CWsScreenDevice::FontHeightInTwips(TInt, TInt) -//! @SYMAuthor Kevin Zeng -//! @SYMCreationDate 1/3/2007 -//! @SYMTestCaseDesc Negative test, uses (-1,0) as the parameters. -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Get the height in twips of the specified font using FontHeightInTwips(), input is (-1,0) -//! 5. Destruct the CWsScreenDevice object -//! 6. Close the RWsSession object -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults FBSCLI 26 panic received at Test Action 4. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0195-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev FontHeightInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0195-0001-FontHeightInTwips_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK !PanicString=FBSCLI !PanicCode=26 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0195 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0200 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0200 -//! @SYMAPI CWsScreenDevice::GetPixel(TRgb {ref}, const TPoint {ref}) -//! @SYMAuthor Allen CHANG -//! @SYMCreationDate 28/12/2007 -//! @SYMTestCaseDesc Test for negative x- and y-coordinate/too big x- and y-coordinate. -//! @SYMTestActions 1. Creates and connects a RWsSession -//! 2. Creates a CWsScreenDevice attached to a RWsSession -//! 3. Completes the construction -//! 4. Gets pixel at point(-1, 0) and check the RGB color is white. -//! 5. Gets pixel at point(0, -1) and check the RGB color is white. -//! 6. Gets pixel at point(-1, -1) and check the RGB color is white. -//! 7. Gets pixel at point(10000, 0) and check the RGB color is white. -//! 8. Gets pixel at point(0, 10000) and check the RGB color is white. -//! 9. Gets pixel at point(10000, 10000) and check the RGB color is white. -//! 10. Destruct and close all objects used. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults GetPixel doesn't cause panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0200-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0200-0001-GetPixel_command05 - COMMAND scrdev GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0200-0001-GetPixel_command06 - COMMAND scrdev GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0200-0001-GetPixel_command07 - COMMAND scrdev GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0200-0001-GetPixel_command08 - COMMAND scrdev GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0200-0001-GetPixel_command09 - COMMAND scrdev GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0200-0001-GetPixel_command10 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0200 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0201 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0201 -//! @SYMAPI CWsScreenDevice::AddFile(const TDesC {ref}, TInt) -//! @SYMAuthor Allen CHANG -//! @SYMCreationDate 02/01/2008 -//! @SYMTestCaseDesc Negative test, adds non-existent file. -//! @SYMTestActions 1. Creates a RWsSession object and connects to window server. -//! 2. Creates a CWsScreenDevice attached to the RWsSession object created before. -//! 3. Completes the construction. -//! 4. Adds a font file which does not exist to the device's typeface store. -//! 5. Destructs and closes all objects used. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The function AddFile() call returns error code -1. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0201-0001-new_command03 - COMMAND scrdev Construct - COMMAND !Error=-1 scrdev AddFile GRAPHICS-WSERV-WsScreenDevice-PublicApi-0201-0001-AddFile_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0201 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0202 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0202 -//! @SYMAPI CWsScreenDevice::AddFile(const TDesC {ref}, TInt) -//! @SYMAuthor Allen CHANG -//! @SYMCreationDate 02/01/2008 -//! @SYMTestCaseDesc Negative test, adds invalid symbian font file. -//! @SYMTestActions 1. Creates a RWsSession object and connects to window server. -//! 2. Creates a CWsScreenDevice attached to the RWsSession object created before. -//! 3. Completes the construction. -//! 4. Adds a font file which is invalid to the device's typeface store. -//! 5. Destructs and closes all objects used. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The function AddFile() call returns error code -5. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0202-0001-new_command03 - COMMAND scrdev Construct - COMMAND !Error=-5 scrdev AddFile GRAPHICS-WSERV-WsScreenDevice-PublicApi-0202-0001-AddFile_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0202 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0203 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0203 -//! @SYMAPI CWsScreenDevice::GetNearestFontToDesignHeightInPixels(CFont {ptr}{ref}, const TFontSpec {ref}) -//! @SYMAuthor Allen CHANG -//! @SYMCreationDate 02/01/2008 -//! @SYMTestCaseDesc Negative test, gets an existent font name but negative/too big/too small size -//! @SYMTestActions 1. Creates and connects a RWsSession -//! 2. Creates a CWsScreenDevice attached to a RWsSession -//! 3. Completes the construction -//! 4. Gets font in pixels for font DejaVu Sans Mono whose height is -1. -//! 5. Check the returned font is as expected. -//! 6. Gets font in pixels for font DejaVu Sans Mono whose height is 10000. -//! 7. Check the returned font is as expected. -//! 8. Gets font in pixels for font DejaVu Sans Mono whose height is 0. -//! 9. Check the returned font is as expected. -//! 10. Destructs the CWsScreenDevice object. -//! 11. Closes the CWsScreenDevice object. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. The function GetNearestFontToDesignHeightInPixels() call returns KErrNone and no panic. -//! 2. The returned font is as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CFbsFont font - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0203-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev GetNearestFontToDesignHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0203-0001-GetNearestFontToDesignHeightInPixels_command05 - COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0203-0001-FontSpecInTwips_command06 - COMMAND scrdev GetNearestFontToDesignHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0203-0001-GetNearestFontToDesignHeightInPixels_command07 - COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0203-0001-FontSpecInTwips_command08 - COMMAND scrdev GetNearestFontToDesignHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0203-0001-GetNearestFontToDesignHeightInPixels_command09 - COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0203-0001-FontSpecInTwips_command10 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0203 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0204 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0204 -//! @SYMAPI CWsScreenDevice::GetNearestFontToDesignHeightInPixels(CFont {prt}{ref}, const TFontSpec {ref}) -//! @SYMAuthor Allen CHANG -//! @SYMCreationDate 01/07/2008 -//! @SYMTestCaseDesc Negative test, gets an empty font name -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create a CWsScreenDevice attached to a RWsSession. -//! 3. Complete the construction. -//! 4. Get the font in pixels for "" (empty name), 50 pixels font. -//! 5. Check the returned font is as expected. -//! 6. Destruct and close all objects used. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults 1. The function GetNearestFontToDesignHeightInPixels() call returns KErrNone and no panic. -//! 2. The returned font is as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CFbsFont font - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0204-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev GetNearestFontToDesignHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0204-0001-GetNearestFontToDesignHeightInPixels_command05 - COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0204-0001-FontSpecInTwips_command06 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0204 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0206 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0206 -//! @SYMAPI CWsScreenDevice::GetNearestFontToDesignHeightInPixels(CFont {ptr}{ref}, const TFontSpec {ref}) -//! @SYMAuthor Allen CHANG -//! @SYMCreationDate 11/23/2007 -//! @SYMTestCaseDesc 1. Try to get a font before adding it to the typeface, -//! 2. Add the font and try to get it, verify the font is as expected -//! 3. Remove the font and try to get it again -//! @SYMTestActions 1. Creates and connects a RWsSession -//! 2. Creates a CWsScreenDevice attached to a RWsSession -//! 3. Completes the construction -//! 4. Try to get a font before adding it to the typeface. -//! 5. Add the font and try to get it, verify the font is as expected. -//! 6. Remove the font and try to get it again -//! 7. Destructs the CWsScreenDevice object -//! 8. Closes the CWsScreenDevice object -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. The function GetNearestFontToDesignHeightInPixels() calls return KErrNone and no panic. -//! 2. The first FontSpecInTwips() call should not return the font name "Acb14". -//! 3. The second FontSepcInTwips() call returns font name "Acb14" -//! 4. The third FontSpecInTwips() call should not return the font name "Acb14" . -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CFbsFont font - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0206-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev GetNearestFontToDesignHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0206-0001-GetNearestFontToDesignHeightInPixels_command05 - COMMAND !Error=-1 font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0206-0001-FontSpecInTwips_command06 - COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicApi-0206-0001-ReleaseFont_command07 - COMMAND scrdev AddFile GRAPHICS-WSERV-WsScreenDevice-PublicApi-0206-0001-AddFile_command08 - COMMAND scrdev GetNearestFontToDesignHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0206-0001-GetNearestFontToDesignHeightInPixels_command09 - COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0206-0001-FontSpecInTwips_command10 - COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicApi-0206-0001-ReleaseFont_command11 - COMMAND scrdev RemoveFile GRAPHICS-WSERV-WsScreenDevice-PublicApi-0206-0001-RemoveFile_command12 - COMMAND scrdev GetNearestFontToDesignHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0206-0001-GetNearestFontToDesignHeightInPixels_command13 - COMMAND !Error=-1 font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0206-0001-FontSpecInTwips_command14 - COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicApi-0206-0001-ReleaseFont_command15 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0206 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0207 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0207 -//! @SYMAPI CWsScreenDevice::GetNearestFontToMaxHeightInPixels(CFont {prt}{ref}, const TFontSpec {ref}, TInt) -//! @SYMAuthor Allen CHANG -//! @SYMCreationDate 01/07/2008 -//! @SYMTestCaseDesc Negative test, gets an existent font but too small/negative size. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create a CWsScreenDevice attached to a RWsSession. -//! 3. Complete the construction. -//! 4. Get the font for DejaVu Sans Mono, 1000000 pixels font, specifying max size=1000. -//! 5. Check the returned font is as expected. -//! 6. Get the font for DejaVu Sans Mono, 0 pixels font, specifying max size=1000. -//! 7. Check the returned font is as expected. -//! 8. Get the font for DejaVu Sans Mono, -1 pixels font, specifying max size=1000. -//! 9. Check the returned font is as expected. -//! 10. Get the font for DejaVu Sans Mono, 1000 pixels font, specifying max size = 1000000. -//! 11. Check KErrTooBig error is returned. -//! 12. Get the font for DejaVu Sans Mono, 1000 pixels font, specifying max size = 0. -//! 13. Check the returned font is as expected. -//! 14. Get the font for DejaVu Sans Mono, 1000 pixels font, specifying max size = -1(halt the emulator, defect). -//! 15. Check the returned font is as expected. -//! 16. Destruct and close all objects used. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults 1. The GetNearestFontToMaxHeightInTwips() call at Test Action 10 returns KErrTooBig (Error=-40) and no panic. -//! 2. The Other GetNearestFontToMaxHeightInTwips() calls return KErrNone and no panic. -//! 3. The returned font is as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CFbsFont font - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0207-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev GetNearestFontToMaxHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0207-0001-GetNearestFontToMaxHeightInPixels_command05 - COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0207-0001-FontSpecInTwips_command06 - COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0207-0001-ReleaseFont_command07 - COMMAND scrdev GetNearestFontToMaxHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0207-0001-GetNearestFontToMaxHeightInPixels_command08 - COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0207-0001-FontSpecInTwips_command09 - COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0207-0001-ReleaseFont_command10 - COMMAND scrdev GetNearestFontToMaxHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0207-0001-GetNearestFontToMaxHeightInPixels_command11 - COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0207-0001-FontSpecInTwips_command12 - COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0207-0001-ReleaseFont_command13 - COMMAND !Error=-40 scrdev GetNearestFontToMaxHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0207-0001-GetNearestFontToMaxHeightInPixels_command14 - COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0207-0001-ReleaseFont_command15 - COMMAND scrdev GetNearestFontToMaxHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0207-0001-GetNearestFontToMaxHeightInPixels_command16 - COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0207-0001-FontSpecInTwips_command17 - COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0207-0001-ReleaseFont_command18 -//! COMMAND scrdev GetNearestFontToMaxHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0207-0001-GetNearestFontToMaxHeightInPixels_command19 -//! COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0207-0001-FontSpecInTwips_command20 -//! COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0207-0001-ReleaseFont_command21 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0207 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0208 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0208 -//! @SYMAPI CWsScreenDevice::GetNearestFontToMaxHeightInPixels(CFont {prt}{ref}, const TFontSpec {ref}, TInt) -//! @SYMAuthor Allen CHANG -//! @SYMCreationDate 01/07/2008 -//! @SYMTestCaseDesc Negative test, try to get a font by an empty font name. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create a CWsScreenDevice attached to a RWsSession. -//! 3. Complete the construction. -//! 4. Get the font in pixels for "" (empty name), 50 pixels font, 60 max font. -//! 5. Check the returned font is as expected. -//! 6. Destruct and close all objects used. -//! @SYMTestStatus Implemented -//! @SYMTestPriority Low -//! @SYMTestExpectedResults 1. The function GetNearestFontToMaxHeightInPixels() call returns KErrNone and no panic. -//! 2. The returned font is as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CFbsFont font - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0208-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev GetNearestFontToMaxHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0208-0001-GetNearestFontToMaxHeightInPixels_command05 - COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0208-0001-FontSpecInTwips_command06 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0208 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0210 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0210 -//! @SYMAPI CWsScreenDevice::GetNearestFontToMaxHeightInPixels(CFont {ptr}{ref}, const TFontSpec {ref}) -//! @SYMAuthor Allen CHANG -//! @SYMCreationDate 11/23/2007 -//! @SYMTestCaseDesc 1. Try to get a font before adding it to the typeface, -//! 2. Add the font and try to get it, verify the font is as expected -//! 3. Remove the font and try to get it again -//! @SYMTestActions 1. Creates and connects a RWsSession -//! 2. Creates a CWsScreenDevice attached to a RWsSession -//! 3. Completes the construction -//! 4. Creates a CFont object -//! 5. Try to get a font before adding it to the typeface. -//! 6. Add the font and try to get it, verify the font is as expected. -//! 7. Remove the font and try to get it again. -//! 8. Destructs the CWsScreenDevice object -//! 9. Closes the CWsScreenDevice object -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. The function GetNearestFontToMaxHeightInPixels() calls return KErrNone and no panic. -//! 2. The first FontSpecInTwips() call should not return the font name "Acb14". -//! 3. The second FontSepcInTwips() call returns font name "Acb14" -//! 4. The third FontSpecInTwips() call should not return the font name "Acb14" . -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CFbsFont font - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0210-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev GetNearestFontToMaxHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0210-0001-GetNearestFontToMaxHeightInPixels_command05 - COMMAND !Error=-1 font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0210-0001-FontSpecInTwips_command06 - COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicApi-0210-0001-ReleaseFont_command07 - COMMAND scrdev AddFile GRAPHICS-WSERV-WsScreenDevice-PublicApi-0210-0001-AddFile_command08 - COMMAND scrdev GetNearestFontToMaxHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0210-0001-GetNearestFontToMaxHeightInPixels_command09 - COMMAND font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0210-0001-FontSpecInTwips_command10 - COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicApi-0210-0001-ReleaseFont_command11 - COMMAND scrdev RemoveFile GRAPHICS-WSERV-WsScreenDevice-PublicApi-0210-0001-RemoveFile_command12 - COMMAND scrdev GetNearestFontToMaxHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0210-0001-GetNearestFontToMaxHeightInPixels_command13 - COMMAND !Error=-1 font FontSpecInTwips GRAPHICS-WSERV-WsScreenDevice-PublicApi-0210-0001-FontSpecInTwips_command14 - COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicApi-0210-0001-ReleaseFont_command15 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0210 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0211 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0211 -//! @SYMAPI CWsScreenDevice::GetScanLine(TDes8 {ref}, const TPoint {ref}, TInt, TDisplayMode) -//! @SYMAuthor Allen CHANG -//! @SYMCreationDate 02/01/2008 -//! @SYMTestCaseDesc Negative test, uses a zero-length buffer. -//! @SYMTestActions 1. Creates a RWsSession object and connects to window server. -//! 2. Creates a CWsScreenDevice attached to the RWsSession object created before. -//! 3. Creates a CWindowGc object. -//! 4. Completes the construction. -//! 5. Creates a RWindowGroup object attached to the RWsSession object created before. -//! 6. Creates a RWindow object attached to the RWindowGroup object created before. -//! 7. Initializes the display mode of the screen. -//! 8. Sets background color of screen to red. -//! 9. Flushes the buffer to screen. -//! 10. Begins to draw screen, then end to draw screen. -//! 11. Gets scanline from screen. -//! 12. Deactives RWindow, destructs and closes all objects used. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults WSERV 37 panic received at Test Action 11. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wgc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0211-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0211-0001-CreateContext_command05 - COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0211-0001-new_command06 - COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0211-0001-Construct_command07 - COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0211-0001-new_command08 - COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0211-0001-Construct_command09 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0211-0001-SetRequiredDisplayMode_command10 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0211-0001-SetBackgroundColor_command11 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0211-0001-SetAutoFlush_command13 - COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0211-0001-Activate_command14 - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND scrdev GetScanLine GRAPHICS-WSERV-WsScreenDevice-PublicApi-0211-0001-GetScanLine_command17 - COMMAND wgc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wgc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK !PanicString=WSERV !PanicCode=80 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0211 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0214 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0214 -//! @SYMAPI CWsScreenDevice::GetScanLine(TDes8 {ref}, const TPoint {ref}, TInt, TDisplayMode) -//! @SYMAuthor Allen CHANG -//! @SYMCreationDate 02/01/2008 -//! @SYMTestCaseDesc Test for a zero-length scanline. -//! @SYMTestActions 1. Creates a RWsSession object and connects to window server. -//! 2. Creates a CWsScreenDevice attached to the RWsSession object created before. -//! 3. Creates a CWindowGc object. -//! 4. Completes the construction. -//! 5. Creates a RWindowGroup object attached to the RWsSession object created before. -//! 6. Creates a RWindow object attached to the RWindowGroup object created before. -//! 7. Initializes the display mode of the screen. -//! 8. Sets background color of screen to red. -//! 9. Flushes the buffer to screen. -//! 10. Begins to draw screen, then end to draw screen. -//! 11. Gets scanline from screen. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults No panic received at Test Action 11. -//! -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wgc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0214-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0214-0001-CreateContext_command05 - COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0214-0001-new_command06 - COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0214-0001-Construct_command07 - COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0214-0001-new_command08 - COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0214-0001-Construct_command09 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0214-0001-SetRequiredDisplayMode_command10 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0214-0001-SetBackgroundColor_command11 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0214-0001-SetAutoFlush_command13 - COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0214-0001-Activate_command14 - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND scrdev GetScanLine GRAPHICS-WSERV-WsScreenDevice-PublicApi-0214-0001-GetScanLine_command17 - - END_TEST_BLOCK - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0214 - -//! START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0215 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0215 -//! @SYMAPI CWsScreenDevice::GetScanLine(TDes8 {ref}, const TPoint {ref}, TInt, TDisplayMode) -//! @SYMAuthor Allen CHANG -//! @SYMCreationDate 02/01/2008 -//! @SYMTestCaseDesc Test for a negative-length scanline. -//! This case is used for regression test. -//! The function GetScanLine() call causes FAULT: KERN 0x00000004 (4), the emulator is forced to exit.(Defect) -//! @SYMTestActions 1. Creates a RWsSession object and connects to window server. -//! 2. Creates a CWsScreenDevice attached to the RWsSession object created before. -//! 3. Creates a CWindowGc object. -//! 4. Completes the construction. -//! 5. Creates a RWindowGroup object attached to the RWsSession object created before. -//! 6. Creates a RWindow object attached to the RWindowGroup object created before. -//! 7. Initializes the display mode of the screen. -//! 8. Sets background color of screen to red. -//! 9. Flushes the buffer to screen. -//! 10. Begins to draw screen, then end to draw screen. -//! 11. Gets scanline from screen. -//! 12. Deactives RWindow, destructs and closes all objects used. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. USER 23 panic received at Test Action 11. -//! @SYMTestType CIT -//! START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini -//! CREATE_OBJECT RWsSession ws -//! CREATE_OBJECT CWsScreenDevice scrdev -//! CREATE_OBJECT CWindowGc wgc -//! CREATE_OBJECT RWindowGroup wingrp -//! CREATE_OBJECT RWindow win -//! COMMAND ws new -//! COMMAND ws Connect -//! COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0215-0001-new_command03 -//! COMMAND scrdev Construct -//! COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0215-0001-CreateContext_command05 -//! COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0215-0001-new_command06 -//! COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0215-0001-Construct_command07 -//! COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0215-0001-new_command08 -//! COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0215-0001-Construct_command09 -//! COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0215-0001-SetRequiredDisplayMode_command10 -//! COMMAND win SetBackgroundColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0215-0001-SetBackgroundColor_command11 -//! COMMAND win Activate -//! COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0215-0001-SetAutoFlush_command13 -//! COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0215-0001-Activate_command14 -//! COMMAND win BeginRedraw -//! COMMAND win EndRedraw -//! COMMAND scrdev GetScanLine GRAPHICS-WSERV-WsScreenDevice-PublicApi-0215-0001-GetScanLine_command17 -//! COMMAND wgc Deactivate -//! COMMAND win Close -//! COMMAND wingrp Close -//! COMMAND wgc ~ -//! COMMAND scrdev ~ -//! COMMAND ws Close -//! END_TEST_BLOCK !PanicString=USER !PanicCode=23 -//! END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0215 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0216 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0216 -//! @SYMAPI CWsScreenDevice::FontHeightInPixels(TInt, TInt) const -//! @SYMAuthor Allen CHANG -//! @SYMCreationDate 07/01/2008 -//! @SYMTestCaseDesc Negative test, gets the height of the specified font by specifying a negative typeface index number. -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession. -//! 3. Complete the construction. -//! 4. Gets font height with typeface index = -1 and height index = 0 -//! 5. Destruct and Close. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults FBSCLI 26 panic received at Test Action 4. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0216-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev FontHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0216-0001-FontHeightInPixels_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK !PanicString=FBSCLI !PanicCode=26 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0216 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0217 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0217 -//! @SYMAPI CWsScreenDevice::FontHeightInPixels(TInt, TInt) const -//! @SYMAuthor Allen CHANG -//! @SYMCreationDate 07/01/2008 -//! @SYMTestCaseDesc Negative test, gets the height of the specified font by specifying a negative font height index number. -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession. -//! 3. Complete the construction. -//! 4. Gets font height with typeface index = 0 and height index = -1 -//! 5. Destruct and Close. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The FontHeightInPixels call doesn't cause panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0217-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev FontHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0217-0001-FontHeightInPixels_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0217 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0218 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0218 -//! @SYMAPI CWsScreenDevice::FontHeightInPixels(TInt, TInt) const -//! @SYMAuthor Allen CHANG -//! @SYMCreationDate 07/01/2008 -//! @SYMTestCaseDesc Negative test, gets the height of the specified font by specifying large typeface index and font height index numbers. -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession. -//! 3. Complete the construction. -//! 4. Gets font height with typeface index = 10000 and height index = 10000 -//! 5. Destruct and Close. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults The FontHeightInPixels call doesn't cause panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0218-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev FontHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0218-0001-FontHeightInPixels_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0218 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0219 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0219 -//! @SYMAPI CWsScreenDevice::GetScanLine(TDes8 {ref}, const TPoint {ref}, TInt, TDisplayMode) -//! @SYMAuthor Allen CHANG -//! @SYMCreationDate 02/01/2008 -//! @SYMTestCaseDesc Test for a 99999-length scanline with starting point (0, 0). -//! @SYMTestActions 1. Creates a RWsSession object and connects to window server. -//! 2. Creates a CWsScreenDevice attached to the RWsSession object created before. -//! 3. Creates a CWindowGc object. -//! 4. Completes the construction. -//! 5. Creates a RWindowGroup object attached to the RWsSession object created before. -//! 6. Creates a RWindow object attached to the RWindowGroup object created before. -//! 7. Initializes the display mode of the screen. -//! 8. Sets background color of screen to red. -//! 9. Flushes the buffer to screen. -//! 10. Begins to draw screen, then end to draw screen. -//! 11. Gets scanline from screen. -//! 12. Deactives RWindow, destructs and closes all objects used. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults WSERV 37 panic received at Test Action 11. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wgc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0219-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0219-0001-CreateContext_command05 - COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0219-0001-new_command06 - COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0219-0001-Construct_command07 - COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0219-0001-new_command08 - COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0219-0001-Construct_command09 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0219-0001-SetRequiredDisplayMode_command10 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0219-0001-SetBackgroundColor_command11 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0219-0001-SetAutoFlush_command13 - COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0219-0001-Activate_command14 - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND scrdev GetScanLine GRAPHICS-WSERV-WsScreenDevice-PublicApi-0219-0001-GetScanLine_command17 - COMMAND wgc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wgc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK !PanicString=WSERV !PanicCode=80 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0219 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0220 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0220 -//! @SYMAPI CWsScreenDevice::GetScanLine(TDes8 {ref}, const TPoint {ref}, TInt, TDisplayMode) -//! @SYMAuthor Allen CHANG -//! @SYMCreationDate 02/01/2008 -//! @SYMTestCaseDesc Test for a 10-length scanline with negative starting point (-1, -1). -//! @SYMTestActions 1. Creates a RWsSession object and connects to window server. -//! 2. Creates a CWsScreenDevice attached to the RWsSession object created before. -//! 3. Creates a CWindowGc object. -//! 4. Completes the construction. -//! 5. Creates a RWindowGroup object attached to the RWsSession object created before. -//! 6. Creates a RWindow object attached to the RWindowGroup object created before. -//! 7. Initializes the display mode of the screen. -//! 8. Sets background color of screen to red. -//! 9. Flushes the buffer to screen. -//! 10. Begins to draw screen, then end to draw screen. -//! 11. Gets scanline from screen. -//! 12. Deactives RWindow, destructs and closes all objects used. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. GetScanLine doesn't cause panic. -//! 2. The length of the scanline buffer is as expected. The scanline data in the buffer is as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wgc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0220-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0220-0001-CreateContext_command05 - COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0220-0001-new_command06 - COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0220-0001-Construct_command07 - COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0220-0001-new_command08 - COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0220-0001-Construct_command09 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0220-0001-SetRequiredDisplayMode_command10 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0220-0001-SetBackgroundColor_command11 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0220-0001-SetAutoFlush_command13 - COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0220-0001-Activate_command14 - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND scrdev GetScanLine GRAPHICS-WSERV-WsScreenDevice-PublicApi-0220-0001-GetScanLine_command17 - COMMAND wgc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wgc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0220 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0221 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0221 -//! @SYMAPI CWsScreenDevice::GetScanLine(TDes8 {ref}, const TPoint {ref}, TInt, TDisplayMode) -//! @SYMAuthor Allen CHANG -//! @SYMCreationDate 02/01/2008 -//! @SYMTestCaseDesc Test for a 10-length scanline with starting point (10000, 10000). -//! @SYMTestActions 1. Creates a RWsSession object and connects to window server. -//! 2. Creates a CWsScreenDevice attached to the RWsSession object created before. -//! 3. Creates a CWindowGc object. -//! 4. Completes the construction. -//! 5. Creates a RWindowGroup object attached to the RWsSession object created before. -//! 6. Creates a RWindow object attached to the RWindowGroup object created before. -//! 7. Initializes the display mode of the screen. -//! 8. Sets background color of screen to red. -//! 9. Flushes the buffer to screen. -//! 10. Begins to draw screen, then end to draw screen. -//! 11. Gets scanline from screen. -//! 12. Deactives RWindow, destructs and closes all objects used. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults GetScanLine doesn't cause panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wgc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0221-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0221-0001-CreateContext_command05 - COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0221-0001-new_command06 - COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0221-0001-Construct_command07 - COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0221-0001-new_command08 - COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0221-0001-Construct_command09 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0221-0001-SetRequiredDisplayMode_command10 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0221-0001-SetBackgroundColor_command11 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0221-0001-SetAutoFlush_command13 - COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0221-0001-Activate_command14 - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND scrdev GetScanLine GRAPHICS-WSERV-WsScreenDevice-PublicApi-0221-0001-GetScanLine_command17 - COMMAND wgc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wgc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0221 - -//! START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0222 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0222 -//! @SYMAPI CWsScreenDevice::GetScanLine(TDes8 {ref}, const TPoint {ref}, TInt, TDisplayMode) -//! @SYMAuthor Allen CHANG -//! @SYMCreationDate 02/01/2008 -//! @SYMTestCaseDesc Test for a 10-length scanline with starting point (0, 0). -//! Sets the display mode to -1 within the GetScanLine call. -//! This case is used for regression test. -//! The function GetScanLine() call causes FAULT: KERN 0x00000004 (4), the emulator is forced to exit.(Defect) -//! @SYMTestActions 1. Creates a RWsSession object and connects to window server. -//! 2. Creates a CWsScreenDevice attached to the RWsSession object created before. -//! 3. Creates a CWindowGc object. -//! 4. Completes the construction. -//! 5. Creates a RWindowGroup object attached to the RWsSession object created before. -//! 6. Creates a RWindow object attached to the RWindowGroup object created before. -//! 7. Initializes the display mode of the screen. -//! 8. Sets background color of screen to red. -//! 9. Flushes the buffer to screen. -//! 10. Begins to draw screen, then end to draw screen. -//! 11. Gets scanline from screen. -//! 12. Deactives RWindow, destructs and closes all objects used. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. USER 23 panic received at Test Action 11. -//! 2. The length of the scanline buffer is as expected. The scanline data in the buffer is as expected. -//! @SYMTestType CIT -//! START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini -//! CREATE_OBJECT RWsSession ws -//! CREATE_OBJECT CWsScreenDevice scrdev -//! CREATE_OBJECT CWindowGc wgc -//! CREATE_OBJECT RWindowGroup wingrp -//! CREATE_OBJECT RWindow win -//! COMMAND ws new -//! COMMAND ws Connect -//! COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0222-0001-new_command03 -//! COMMAND scrdev Construct -//! COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0222-0001-CreateContext_command05 -//! COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0222-0001-new_command06 -//! COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0222-0001-Construct_command07 -//! COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0222-0001-new_command08 -//! COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0222-0001-Construct_command09 -//! COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0222-0001-SetRequiredDisplayMode_command10 -//! COMMAND win SetBackgroundColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0222-0001-SetBackgroundColor_command11 -//! COMMAND win Activate -//! COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0222-0001-SetAutoFlush_command13 -//! COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0222-0001-Activate_command14 -//! COMMAND win BeginRedraw -//! COMMAND win EndRedraw -//! COMMAND scrdev GetScanLine GRAPHICS-WSERV-WsScreenDevice-PublicApi-0222-0001-GetScanLine_command17 -//! COMMAND wgc Deactivate -//! COMMAND win Close -//! COMMAND wingrp Close -//! COMMAND wgc ~ -//! COMMAND scrdev ~ -//! COMMAND ws Close -//! END_TEST_BLOCK !PanicString=USER !PanicCode=23 -//! END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0222 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0223 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0223 -//! @SYMAPI CWsScreenDevice::GetScanLine(TDes8 {ref}, const TPoint {ref}, TInt, TDisplayMode) -//! @SYMAuthor Allen CHANG -//! @SYMCreationDate 02/01/2008 -//! @SYMTestCaseDesc Test for a 0-length scanline with starting point (0, 0). -//! @SYMTestActions 1. Creates a RWsSession object and connects to window server. -//! 2. Creates a CWsScreenDevice attached to the RWsSession object created before. -//! 3. Creates a CWindowGc object. -//! 4. Completes the construction. -//! 5. Creates a RWindowGroup object attached to the RWsSession object created before. -//! 6. Creates a RWindow object attached to the RWindowGroup object created before. -//! 7. Initializes the display mode of the screen. -//! 8. Sets background color of screen to red. -//! 9. Flushes the buffer to screen. -//! 10. Begins to draw screen, then end to draw screen. -//! 11. Gets scanline from screen. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults No panic received at Test Action 11. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wgc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0223-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0223-0001-CreateContext_command05 - COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0223-0001-new_command06 - COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0223-0001-Construct_command07 - COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0223-0001-new_command08 - COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0223-0001-Construct_command09 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0223-0001-SetRequiredDisplayMode_command10 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0223-0001-SetBackgroundColor_command11 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0223-0001-SetAutoFlush_command13 - COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0223-0001-Activate_command14 - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND scrdev GetScanLine GRAPHICS-WSERV-WsScreenDevice-PublicApi-0223-0001-GetScanLine_command17 - END_TEST_BLOCK - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0223 - - - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0230 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0230 -//! @SYMAPI CWsScreenDevice::ReleaseFont(CFont{ptr}) -//! @SYMAuthor Ray Liang -//! @SYMCreationDate 2/13/2008 -//! @SYMTestCaseDesc Verify the behaviour of ReleaseFont. -//! Get font and draw text use it, then release font, then use font to draw again, a panic will arise. -//! @SYMTestActions 1. Setup a CWindowGc to test and a RWindow to display its drawing result -//! 1.1 New and connect a RWsSession -//! 1.2 New and construct a CWsScreenDevice within the RWsSession -//! 1.3 Create a CWindowGc within the CWsScreenDevice (use CreateContext) -//! 1.4 New and construct a RWindowGroup within the RWsSession -//! 1.5 New and construct a RWindow as the child of the RWindowGroup -//! and SetRequiredDisplayMode (to EColor4K) for the RWindow -//! 1.6 SetAutoFlush to TRUE for the RWsSession -//! 1.7 Activate the CWindowGc to the RWindow -//! 2. Start a redraw cycle -//! 3. Set Gc pen color to TRgb(255,0,255) -//! 4. Get font in pixels for Arial, 30 pixels font. -//! 5. Use font to draw text. -//! 5.1 Gc uses font. -//! 5.2 Draw text at (50,100). -//! 5.3 Gc discard font. -//! 6. Release font. -//! 7. Use font to draw text. -//! 7.1 Gc uses font. -//! 7.2 Draw text at (50,100). -//! 7.3 Gc discard font. -//! 8. End a redraw cycle -//! 9.Deactive RWindow, destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults WSERV 14(13 for emulator DEBUG) panic received at Test Action 5.1. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wgc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT CFbsFont font - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0230-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0230-0001-CreateContext_command05 - COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0230-0001-new_command06 - COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0230-0001-Construct_command07 - COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0230-0001-new_command08 - COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0230-0001-Construct_command09 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0230-0001-SetRequiredDisplayMode_command10 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0230-0001-SetAutoFlush_command12 - COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0230-0001-Activate_command13 - COMMAND win BeginRedraw - COMMAND wgc SetPenColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0230-0001-SetPenColor_command015 - COMMAND scrdev GetNearestFontToDesignHeightInPixels GRAPHICS-WSERV-WsScreenDevice-PublicApi-0230-0001-GetNearestFontToDesignHeightInPixels_command016 - COMMAND wgc UseFont GRAPHICS-WSERV-WsScreenDevice-PublicApi-0230-0001-UseFont_command017 - COMMAND wgc DrawText GRAPHICS-WSERV-WsScreenDevice-PublicApi-0230-0001-DrawText_command018 - COMMAND wgc DiscardFont - COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicApi-0230-0001-ReleaseFont_command19 - COMMAND wgc UseFont GRAPHICS-WSERV-WsScreenDevice-PublicApi-0230-0001-UseFont_command020 - COMMAND wgc DrawText GRAPHICS-WSERV-WsScreenDevice-PublicApi-0230-0001-DrawText_command021 - COMMAND wgc DiscardFont - COMMAND win EndRedraw - COMMAND wgc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wgc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK !panicstring=WSERV !paniccode=14 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0230 - - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0231 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0231 -//! @SYMAPI CWsScreenDevice::ReleaseFont(CFont{ptr}) -//! @SYMAuthor Ray Liang -//! @SYMCreationDate 2/13/2008 -//! @SYMTestCaseDesc Negative test for NULL CFont. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create a CWsScreenDevice attached to RWsSession. -//! 3. Release font with NULL CFont pointer. -//! 4. Destruct the CWsScreenDevice object -//! 5. Close the RWsSession object -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults No panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CFbsFont font - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0231-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev ReleaseFont GRAPHICS-WSERV-WsScreenDevice-PublicApi-0231-0001-ReleaseFont_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0231 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0279 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0279 -//! @SYMAPI CWsScreenDevice::RectCompare(const TRect{ref}, const TRect{ref}) -//! @SYMAuthor Niandong Qiao -//! @SYMCreationDate 01/18/2007 -//! @SYMTestCaseDesc Compare two areas with sprite or text cursor over them. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create a CWsScreenDevice attached to RWsSession. -//! 3. Create a CWindowGc attached to CWsScreenDevice. -//! 4. Create a RWindowGroup attached to RWsSession. -//! 5. Create a RWindow, setup it and activate. -//! 6. SetAutoFlush to TRUE for the RWsSession. -//! 7. Active CWindowGc. -//! 8. Setup and draw 2 rectangles(60*60 size,filled with red, border is black)in 2 different regions with same content. -//! 9. Create 2 RWsSprite attached to RWsSession by using RWsSprite(RWsSession &aWs) and construct. -//! 10. Create 4 CFbsBitmap objects and load bitmaps. -//! 11. Append these CFbsBitmaps to RWsSprites. -//! 12. Set RWsSprites's position using SetPosition(). -//! 13. Compare 2 rectangles with sprites over them. -//! 13.1. Compare 2 rectangles with same graphics and a sprite over one of them. -//! 13.2. Compare 2 rectangles with different graphics and same sprites. -//! 14. Destruct CFbsBitmaps objects and close RWsSprite objects. -//! 15. Set a text cursor using RWindowGroup::SetTextCursor(). -//! 16. Compare 2 rectangles with a text cursor over one of them. -//! 16.1. Compare 2 rectangles with same graphics and a text cursor over one of them. -//! 16.2. Compare 2 rectangles with different graphics and a text cursor over one of them. -//! 17. Deactive RWindow, destruct and close all objects used. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. No panic -//! 2. Result of comparing 2 rectangles with sprites -//! 2.1. Step 13.1 return ETrue -//! 2.2. Step 13.2 return EFalse -//! 3. Result of comparing 2 rectangles with a text cursor -//! 3.1. Step 16.1 return ETrue -//! 3.2. Step 16.2 return EFalse -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wgc - CREATE_OBJECT CFbsBitmap fbsbmp1 - CREATE_OBJECT CFbsBitmap fbsbmp2 - CREATE_OBJECT CFbsBitmap fbsbmp3 - CREATE_OBJECT CFbsBitmap fbsbmp4 - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RWsSprite sprite1 - CREATE_OBJECT RWsSprite sprite2 - CREATE_OBJECT RWsSprite sprite3 - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-CreateContext_command05 - COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-new_command06 - COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-Construct_command07 - COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-new_command08 - COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-Construct_command09 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-SetAutoFlush_command11 - COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-Activate_command12 - COMMAND win BeginRedraw - COMMAND wgc SetBrushColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-SetBrushColor_command14 - COMMAND wgc SetBrushStyle GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-SetBrushStyle_command15 - COMMAND wgc SetPenColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-SetPenColor_command16 - COMMAND wgc DrawRect GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-DrawRect_command17 - COMMAND wgc DrawRect GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-DrawRect_command18 - COMMAND win EndRedraw - COMMAND sprite1 new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-new_command20 - COMMAND sprite1 Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-construct_command21 - COMMAND fbsbmp1 new - COMMAND fbsbmp1 Load GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-loadmask_command23 - - COMMAND fbsbmp2 new - COMMAND fbsbmp2 Load GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-load_command25 - COMMAND sprite1 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-appendmember_command26 - - COMMAND fbsbmp3 new - COMMAND fbsbmp3 Load GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-load_command28 - COMMAND sprite1 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-appendmember_command29 - - COMMAND fbsbmp4 new - COMMAND fbsbmp4 Load GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-load_command31 - COMMAND sprite1 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-appendmember_command32 - COMMAND sprite1 SetPosition GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-SetPosition_command33 - - COMMAND sprite2 new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-new_command34 - COMMAND sprite2 Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-construct_command35 - COMMAND sprite2 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-appendmember_command36 - COMMAND sprite2 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-appendmember_command37 - COMMAND sprite2 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-appendmember_command38 - COMMAND sprite2 SetPosition GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-SetPosition_command39 - - COMMAND sprite1 Activate - COMMAND sprite2 Activate - - DELAY 1000000 - - //! COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-RectCompare_command43 - //! COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-RectCompare_command44 - - COMMAND fbsbmp1 ~ - COMMAND fbsbmp2 ~ - COMMAND fbsbmp3 ~ - COMMAND fbsbmp4 ~ - COMMAND sprite1 Close - COMMAND sprite2 Close - - COMMAND wingrp SetTextCursor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-SetTextCursor_command51 - - DELAY 1000000 - - //!COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-RectCompare_command53 - //!COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-RectCompare_command54 - - COMMAND wgc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wgc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0279 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0280 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0280 -//! @SYMAPI CWsScreenDevice::RectCompare(const TRect{ref}, const TRect{ref}) -//! @SYMAuthor Niandong Qiao -//! @SYMCreationDate 01/07/2008 -//! @SYMTestCaseDesc Compare rectangles which are outside the screen. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create a CWsScreenDevice attached to RWsSession. -//! 3. Create a RWindowGroup attached to RWsSession. -//! 4. Create a RWindow, setup it and activate. -//! 5. RWsSession SetAutoFlush. -//! 6. Refresh window with white color. -//! 7. Compare two regions (rect1 (0,-50)-(50,50) & rect2 (50,-50)-(100,50)). -//! 8. Compare two regions (rect1 (-50,0)-(50,50) & rect2 (-50,50)-(50,100)). -//! 9. Compare two big regions (rect1 (-10000,-10000)-(0,0) & rect2 (0,0)-(10000,10000)). -//! 10. Destruct and Close. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Action 7 return EFalse. -//! 2. Action 8 return EFalse. -//! 3. Action 9 return EFalse. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wgc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0280-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0280-0001-CreateContext_command05 - COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0280-0001-new_command06 - COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0280-0001-Construct_command07 - COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0280-0001-new_command08 - COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0280-0001-Construct_command09 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0280-0001-SetRequiredDisplayMode_command10 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0280-0001-SetBackgroundColor_command11 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0280-0001-SetAutoFlush_command13 - COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0280-0001-Activate_command14 - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0280-0001-RectCompare_command23 - COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0280-0001-RectCompare_command24 - COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0280-0001-RectCompare_command25 - COMMAND wgc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wgc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0280 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0281 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0281 -//! @SYMAPI CWsScreenDevice::RectCompare(const TRect{ref}, const TRect{ref}, TUint) -//! @SYMAuthor Wekey Weng -//! @SYMCreationDate 01/07/2007 -//! @SYMTestCaseDesc Compares two areas of the screen to see if they have the same content with flag ERemoveSprite, EIncludeSprite or EIncludeTextCursor -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create a CWsScreenDevice attached to RWsSession. -//! 3. Create a CWindowGc attached to CWsScreenDevice. -//! 4. Create a RWindowGroup attached to RWsSession. -//! 5. Create a RWindow, setup it and activate. -//! 6. SetAutoFlush to TRUE for the RWsSession. -//! 7. Active CWindowGc. -//! 8. Setup and draw 2 rectangles(60*60 size,filled with red, border is black)in 2 different regions with same content. -//! 9. Create 3 RWsSprite attached to RWsSession by using RWsSprite(RWsSession &aWs) and construct. -//! 10. Create 4 CFbsBitmap objects and load bitmaps. -//! 11. Append these CFbsBitmaps to RWsSprites. -//! 12. Set RWsSprites's position using SetPosition(). -//! 13. Compare 2 rectangles with sprites. -//! 13.1. Compare 2 rectangles with same graphics and different sprites using flag ERemoveSprite. -//! 13.2. Compare 2 rectangles with different graphics and same sprites using flag ERemoveSprite. -//! 13.3. Compare 2 rectangles with same graphics and different sprites using flag EIncludeSprite. -//! 13.4. Compare 2 rectangles with different graphics and same sprites using flag EIncludeSprite. -//! 13.5. Compare 2 rectangles with same graphics and sprites using flag EIncludeSprite. -//! 14. Destruct CFbsBitmaps objects and close RWsSprite objects. -//! 15. Set a text cursor using RWindowGroup::SetTextCursor(). -//! 16. Compare 2 rectangles with a text cursor. -//! 16.1. Compare 2 rectangles with same graphics and a text cursor over one of them using flag ERemoveSprite. -//! 16.2. Compare 2 rectangles with different graphics and a text cursor over one of them using flag ERemoveSprite. -//! 16.3. Compare 2 rectangles with same graphics and a text cursor over one of them using flag EIncludeTextCursor. -//! 16.4. Compare 2 rectangles with different graphics and a text cursor over one of them using flag EIncludeTextCursor. -//! 16.5. Compare 2 rectangles with same graphics and no cursors using flag EIncludeTextCursor. -//! 17. Deactive RWindow, destruct and close all objects used. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. No panic -//! 2. Result of comparing 2 rectangles with sprites -//! 2.1. Step 13.1 returns ETrue -//! 2.2. Step 13.2 returns EFalse -//! 2.3. Step 13.3 returns EFalse -//! 2.4. Step 13.4 returns EFalse -//! 2.5. Step 13.5 returns ETrue -//! 3. Result of comparing 2 rectangles with a text cursor -//! 3.1. Step 16.1 returns ETrue -//! 3.2. Step 16.2 returns EFalse -//! 3.3. Step 16.3 returns EFalse -//! 3.4. Step 16.4 returns EFalse -//! 3.5. Step 16.5 returns ETrue -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wgc - CREATE_OBJECT CFbsBitmap fbsbmp1 - CREATE_OBJECT CFbsBitmap fbsbmp2 - CREATE_OBJECT CFbsBitmap fbsbmp3 - CREATE_OBJECT CFbsBitmap fbsbmp4 - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RWsSprite sprite1 - CREATE_OBJECT RWsSprite sprite2 - CREATE_OBJECT RWsSprite sprite3 - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-CreateContext_command05 - COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-new_command06 - COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-Construct_command07 - COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-new_command08 - COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-Construct_command09 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-SetAutoFlush_command11 - COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-Activate_command12 - COMMAND win BeginRedraw - COMMAND wgc SetBrushColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-SetBrushColor_command14 - COMMAND wgc SetBrushStyle GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-SetBrushStyle_command15 - COMMAND wgc SetPenColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-SetPenColor_command16 - COMMAND wgc DrawRect GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-DrawRect_command17 - COMMAND wgc DrawRect GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-DrawRect_command18 - COMMAND win EndRedraw - COMMAND sprite1 new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-new_command19 - COMMAND sprite1 Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-construct_command20 - COMMAND fbsbmp1 new - COMMAND fbsbmp1 Load GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-loadmask_command22 - - COMMAND fbsbmp2 new - COMMAND fbsbmp2 Load GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-load_command24 - COMMAND sprite1 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-appendmember_command25 - - COMMAND fbsbmp3 new - COMMAND fbsbmp3 Load GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-load_command27 - COMMAND sprite1 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-appendmember_command28 - - COMMAND fbsbmp4 new - COMMAND fbsbmp4 Load GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-load_command30 - COMMAND sprite1 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-appendmember_command31 - COMMAND sprite1 SetPosition GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-SetPosition_command32 - - COMMAND sprite2 new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-new_command33 - COMMAND sprite2 Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-construct_command34 - COMMAND sprite2 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-appendmember_command35 - COMMAND sprite2 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-appendmember_command36 - COMMAND sprite2 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-appendmember_command37 - COMMAND sprite2 SetPosition GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-SetPosition_command38 - - COMMAND sprite3 new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-new_command39 - COMMAND sprite3 Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-construct_command40 - COMMAND sprite3 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-appendmember_command41 - COMMAND sprite3 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-appendmember_command42 - COMMAND sprite3 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-appendmember_command43 - COMMAND sprite3 SetPosition GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-SetPosition_command44 - - COMMAND sprite1 Activate - COMMAND sprite2 Activate - COMMAND sprite3 Activate - - DELAY 1000000 - - //! COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-RectCompare_command49 - //! COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-RectCompare_command50 - - //! COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-RectCompare_command51 - //! COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-RectCompare_command52 - //! COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-RectCompare_command53 - - COMMAND fbsbmp1 ~ - COMMAND fbsbmp2 ~ - COMMAND fbsbmp3 ~ - COMMAND fbsbmp4 ~ - COMMAND sprite1 Close - COMMAND sprite2 Close - COMMAND sprite3 Close - - COMMAND wingrp SetTextCursor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-SetTextCursor_command61 - - DELAY 1000000 - - //! COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-RectCompare_command63 - //! COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-RectCompare_command64 - - //! COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-RectCompare_command65 - //! COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-RectCompare_command66 - //! COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-RectCompare_command67 - - COMMAND wgc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wgc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0281 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0282 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0282 -//! @SYMAPI CWsScreenDevice::RectCompare(const TRect{ref}, const TRect{ref}, TUint) -//! @SYMAuthor Wekey Weng -//! @SYMCreationDate 01/07/2007 -//! @SYMTestCaseDesc Compares two areas beyonding the screen to see if they have the same content with flag ERemoveSprite, EIncludeSprite or EIncludeTextCursor -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create a CWsScreenDevice attached to RWsSession. -//! 3. Create a CWindowGc attached to CWsScreenDevice. -//! 4. Create a RWindowGroup attached to RWsSession. -//! 5. Create a RWindow, setup it and activate. -//! 6. SetAutoFlush to TRUE for the RWsSession. -//! 7. Active CWindowGc. -//! 8. Setup and draw 2 rectangles(60*60 size,filled with red, border is black)in 2 different regions with same content. -//! 9. Create 3 RWsSprite attached to RWsSession by using RWsSprite(RWsSession &aWs) and construct. -//! 10. Create 4 CFbsBitmap objects and load bitmaps. -//! 11. Append these CFbsBitmaps to RWsSprites. -//! 12. Set RWsSprites's position using SetPosition(). -//! 13. Compare 2 rectangles beyonding the screen with sprites. -//! 13.1. Compare 2 rectangles beyonding the screen with same graphics and different sprites using flag ERemoveSprite. -//! 13.2. Compare 2 rectangles beyonding the screen with same graphics and sprites using flag EIncludeSprite. -//! 14. Destruct CFbsBitmaps objects and close RWsSprite objects. -//! 15. Set a text cursor using RWindowGroup::SetTextCursor(). -//! 16. Compare 2 rectangles beyonding the screen with a text cursor. -//! 16.1. Compare 2 rectangles beyonding the screen with same graphics and a text cursor over one of them using flag ERemoveSprite. -//! 16.2. Compare 2 rectangles beyonding the screen with same graphics and no cursors using flag EIncludeTextCursor. -//! 17. Deactive RWindow, destruct and close all objects used. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. No panic -//! 2. Result of comparing 2 rectangles beyonding the screen with sprites -//! 2.1. Step 13.1 returns EFalse -//! 2.2. Step 13.2 returns EFalse -//! 3. Result of comparing 2 rectangles beyonding the screen with a text cursor -//! 3.1. Step 16.1 returns EFalse -//! 3.2. Step 16.2 returns EFalse -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wgc - CREATE_OBJECT CFbsBitmap fbsbmp1 - CREATE_OBJECT CFbsBitmap fbsbmp2 - CREATE_OBJECT CFbsBitmap fbsbmp3 - CREATE_OBJECT CFbsBitmap fbsbmp4 - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RWsSprite sprite1 - CREATE_OBJECT RWsSprite sprite2 - CREATE_OBJECT RWsSprite sprite3 - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-CreateContext_command05 - COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-new_command06 - COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-Construct_command07 - COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-new_command08 - COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-Construct_command09 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-SetAutoFlush_command11 - COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-Activate_command12 - COMMAND win BeginRedraw - COMMAND wgc SetBrushColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-SetBrushColor_command14 - COMMAND wgc SetBrushStyle GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-SetBrushStyle_command15 - COMMAND wgc SetPenColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-SetPenColor_command16 - COMMAND wgc DrawRect GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-DrawRect_command17 - COMMAND wgc DrawRect GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-DrawRect_command18 - COMMAND win EndRedraw - - COMMAND sprite1 new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-new_command19 - COMMAND sprite1 Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-construct_command20 - COMMAND fbsbmp1 new - COMMAND fbsbmp1 Load GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-loadmask_command22 - - COMMAND fbsbmp2 new - COMMAND fbsbmp2 Load GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-load_command24 - COMMAND sprite1 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-appendmember_command25 - - COMMAND fbsbmp3 new - COMMAND fbsbmp3 Load GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-load_command27 - COMMAND sprite1 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-appendmember_command28 - - COMMAND fbsbmp4 new - COMMAND fbsbmp4 Load GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-load_command30 - COMMAND sprite1 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-appendmember_command31 - COMMAND sprite1 SetPosition GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-SetPosition_command32 - - COMMAND sprite2 new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-new_command33 - COMMAND sprite2 Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-construct_command34 - COMMAND sprite2 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-appendmember_command35 - COMMAND sprite2 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-appendmember_command36 - COMMAND sprite2 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-appendmember_command37 - COMMAND sprite2 SetPosition GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-SetPosition_command38 - - COMMAND sprite3 new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-new_command39 - COMMAND sprite3 Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-construct_command40 - COMMAND sprite3 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-appendmember_command41 - COMMAND sprite3 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-appendmember_command42 - COMMAND sprite3 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-appendmember_command43 - COMMAND sprite3 SetPosition GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-SetPosition_command44 - - COMMAND sprite1 Activate - COMMAND sprite2 Activate - COMMAND sprite3 Activate - - DELAY 1000000 - - COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-RectCompare_command49 - COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-RectCompare_command50 - - COMMAND fbsbmp1 ~ - COMMAND fbsbmp2 ~ - COMMAND fbsbmp3 ~ - COMMAND fbsbmp4 ~ - COMMAND sprite1 Close - COMMAND sprite2 Close - COMMAND sprite3 Close - - COMMAND wingrp SetTextCursor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-SetTextCursor_command58 - - DELAY 1000000 - - COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-RectCompare_command60 - COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-RectCompare_command61 - - COMMAND wgc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wgc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0282 - - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283 -//! @SYMAPI CWsScreenDevice::RectCompare(const TRect{ref}, const TRect{ref}, TUint) -//! @SYMAuthor Wekey Weng -//! @SYMCreationDate 01/07/2007 -//! @SYMTestCaseDesc Compares two areas with different sprite to see if they have the same content with flag ERemoveSprite and EIncludeSprite -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create a CWsScreenDevice attached to RWsSession. -//! 3. Create a CWindowGc attached to CWsScreenDevice. -//! 4. Create a RWindowGroup attached to RWsSession. -//! 5. Create a RWindow, setup it and activate. -//! 6. SetAutoFlush to TRUE for the RWsSession. -//! 7. Active CWindowGc. -//! 8. Create 2 RWsSprite attached to RWsSession by using RWsSprite(RWsSession &aWs) and construct. -//! 9. Create 4 CFbsBitmap objects and load bitmaps. -//! 10. Append these CFbsBitmaps to RWsSprites. -//! 11. Set RWsSprites's position using SetPosition(). -//! 12. Compare 2 rectangles. -//! 12.1. Compare 2 rectangles with same graphics and different sprite using flag ERemoveSprite. -//! 12.2. Compare 2 rectangles with same graphics and different sprite using flag EIncludeSprite. -//! 13. Deactive RWindow, destruct and close all objects used. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. No panic -//! 2. Result of comparing 2 rectangles with different sprite -//! 2.1. Step 12.1 returns EFalse -//! 2.2. Step 12.2 returns EFalse -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wgc - CREATE_OBJECT CFbsBitmap fbsbmp1 - CREATE_OBJECT CFbsBitmap fbsbmp2 - CREATE_OBJECT CFbsBitmap fbsbmp3 - CREATE_OBJECT CFbsBitmap fbsbmp4 - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RWsSprite sprite1 - CREATE_OBJECT RWsSprite sprite2 - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-CreateContext_command05 - COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-new_command06 - COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-Construct_command07 - COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-new_command08 - COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-Construct_command09 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-SetAutoFlush_command11 - COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-Activate_command12 - COMMAND win BeginRedraw - COMMAND win EndRedraw - - COMMAND sprite1 new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-new_command15 - COMMAND sprite1 Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-construct_command16 - COMMAND fbsbmp1 new - COMMAND fbsbmp1 Load GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-loadmask_command18 - - COMMAND fbsbmp2 new - COMMAND fbsbmp2 Load GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-load_command20 - COMMAND sprite1 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-appendmember_command21 - - COMMAND fbsbmp3 new - COMMAND fbsbmp3 Load GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-load_command23 - COMMAND sprite1 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-appendmember_command24 - - COMMAND sprite1 SetPosition GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-SetPosition_command25 - - COMMAND sprite2 new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-new_command26 - COMMAND sprite2 Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-construct_command27 - - COMMAND fbsbmp4 new - COMMAND fbsbmp4 Load GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-load_command29 - COMMAND sprite2 AppendMember GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-appendmember_command30 - COMMAND sprite2 SetPosition GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-SetPosition_command31 - - - COMMAND sprite1 Activate - COMMAND sprite2 Activate - - DELAY 1000000 - - //! COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-RectCompare_command34 - //! COMMAND scrdev RectCompare GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-RectCompare_command35 - - COMMAND fbsbmp1 ~ - COMMAND fbsbmp2 ~ - COMMAND fbsbmp3 ~ - COMMAND fbsbmp4 ~ - COMMAND sprite1 Close - COMMAND sprite2 Close - COMMAND wgc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wgc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283 - -//!START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0291 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0291 -//! @SYMAPI CWsScreenDevice::CopyScreenToBitmap(const CFbsBitmap {ptr}) -//! @SYMAuthor Dorothy Zhang -//! @SYMCreationDate 01/09/2007 -//! @SYMTestCaseDesc Negative test, uses the bitmap of NULL pointer. -//! Copy the entire screen which has a rectangle to the bitmap of NULL pointer. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create a CWsScreenDevice attached to RWsSession. -//! 3. Create a RWindowGroup attached to RWsSession. -//! 4. Create a RWindow and set its displaymode and background color and then activate it. -//! 5. RWsSession SetAutoFlush -//! 6. Draw a rectangle(100*100, filled with red, border is black). -//! 7. Copy the entire screen to a bitmap of NULL pointer. -//! 8. Destruct and close objects used. -//! @SYMTestExpectedResults KERN-EXEC 3 panic received at Test Action 7. -//! START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini -//! CREATE_OBJECT RWsSession ws -//! CREATE_OBJECT CWsScreenDevice scrdev -//! CREATE_OBJECT CWindowGc wgc -//! CREATE_OBJECT CFbsBitmap fbsbitmap -//! CREATE_OBJECT RWindowGroup wingrp -//! CREATE_OBJECT RWindow win -//! COMMAND ws new -//! COMMAND ws Connect -//! COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0291-0001-new_command03 -//! COMMAND scrdev Construct -//! COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0291-0001-CreateContext_command05 -//! COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0291-0001-new_command06 -//! COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0291-0001-Construct_command07 -//! COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0291-0001-new_command08 -//! COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0291-0001-Construct_command09 -//! COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0291-0001-SetRequiredDisplayMode_command10 -//! COMMAND win SetBackgroundColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0291-0001-SetBackgroundColor_command11 -//! COMMAND win Activate -//! COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0291-0001-SetAutoFlush_command13 -//! COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0291-0001-Activate_command14 -//! COMMAND win BeginRedraw -//! COMMAND wgc SetBrushColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0291-0001-SetBrushColor_command16 -//! COMMAND wgc SetBrushStyle GRAPHICS-WSERV-WsScreenDevice-PublicApi-0291-0001-SetBrushStyle_command17 -//! COMMAND wgc SetPenColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0291-0001-SetPenColor_command18 -//! COMMAND wgc DrawRect GRAPHICS-WSERV-WsScreenDevice-PublicApi-0291-0001-DrawRect_command19 -//! COMMAND win EndRedraw -//! COMMAND scrdev CopyScreenToBitmap GRAPHICS-WSERV-WsScreenDevice-PublicApi-0291-0001-CopyScreenToBitmap_command20 -//! COMMAND fbsbitmap ~ -//! COMMAND wgc Deactivate -//! COMMAND win Close -//! COMMAND wingrp Close -//! COMMAND wgc ~ -//! COMMAND scrdev ~ -//! COMMAND ws Close -//! END_TEST_BLOCK !PanicString=KERN-EXEC !PanicCode=3 -//! RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -//!END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0291 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0293 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0293 -//! @SYMAPI CWsScreenDevice::CopyScreenToBitmap(const CFbsBitmap{ptr}, const TRect{ref}) -//! @SYMAuthor Kevin Zeng -//! @SYMCreationDate 1/8/2007 -//! @SYMTestCaseDesc Negative test, copies a rect which is half in screen and half out of screen to a bitmap. -//! Set up and draw a 100*100 rect half in screen and half out of screen, copy the 100*100 rect to a 100*100 bitmap. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create a CWsScreenDevice attached to RWsSession. -//! 3. Create a RWindowGroup attached to RWsSession. -//! 4. Create a RWindow, setup it and activate. -//! 5. RWsSession SetAutoFlush. -//! 6. Setup and draw a rectangle(100*100 size, filled with red, border is black). The rectangle is half in the screen and half out of the screen. -//! 7. Create a CFbsBitmap which size is 100*100. -//! 8. Copy the rect to the bitmap. -//! 9. GetPixel from the bitmap, check the rectangle(inside is red, border is black, ouside is white). -//! 10. Destruct and Close. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. CopyScreenToBitmap methods return KErrNone. -//! 2. The bitmap which is copyed to is correct(The bitmap's upper half is white, below half is painted). -//! 2.1 The pixels (0,0) is color TRgb(255,255,255); The upper half is white. -//! 2.2 The pixels (99,99) is color TRgb(0,0,0); The border is black. -//! 2.3 The pixels (0,49) is color TRgb(255,255,255); The upper half is white. -//! 2.4 The pixels (99,49) is color TRgb(255,255,255); The upper half is white. -//! 2.5 The pixels (1,1) is color TRgb(255,255,255); The upper half is white. -//! 2.6 The pixels (0,99) is color TRgb(0,0,0); The border is black. -//! 2.7 The pixels (1,50) is color TRgb(255,0,0); below half, inside is red. -//! 2.8 The pixels (98,98) is color TRgb(255,0,0); below half, inside is red. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wgc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT CFbsBitmap fbsbitmap - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-CreateContext_command05 - COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-new_command06 - COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-Construct_command07 - COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-new_command08 - COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-Construct_command09 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-SetRequiredDisplayMode_command10 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-SetBackgroundColor_command11 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-SetAutoFlush_command13 - COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-Activate_command14 - COMMAND win BeginRedraw - COMMAND wgc SetBrushColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-SetBrushColor_command16 - COMMAND wgc SetBrushStyle GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-SetBrushStyle_command17 - COMMAND wgc SetPenColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-SetPenColor_command18 - COMMAND wgc DrawRect GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-DrawRect_command19 - COMMAND win EndRedraw - COMMAND fbsbitmap new - COMMAND fbsbitmap Create GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-Create_command22 - COMMAND scrdev CopyScreenToBitmap GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-CopyScreenToBitmap_command23 - COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-GetPixel_command24 - COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-GetPixel_command25 - COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-GetPixel_command26 - COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-GetPixel_command27 - COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-GetPixel_command28 - COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-GetPixel_command29 - COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-GetPixel_command30 - COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-GetPixel_command31 - COMMAND fbsbitmap ~ - COMMAND wgc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wgc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0293 - - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0294 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0294 -//! @SYMAPI CWsScreenDevice::CopyScreenToBitmap(const CFbsBitmap{ptr}, const TRect{ref}) -//! @SYMAuthor Kevin Zeng -//! @SYMCreationDate 1/8/2007 -//! @SYMTestCaseDesc Negative test, copies a very large rect to a very large bitmap. -//! Set up and draw a 100*100 rect on white screen, and copy a 1000*2000 rect to a 1000*2000 bitmap. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create a CWsScreenDevice attached to RWsSession. -//! 3. Create a RWindowGroup attached to RWsSession. -//! 4. Create a RWindow, setup it and activate. -//! 5. RWsSession SetAutoFlush. -//! 6. Setup and draw a rectangle(100*100 size,filled with red, border is black). -//! 7. Create a CFbsBitmap which size is 1000*2000. -//! 8. Copy the 1000*2000 rect to the 1000*2000 bitmap. -//! 9. GetPixel from the bitmap, check the rectangle(inside is red, border is black, ouside is white). -//! 10. Destruct and Close. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. CopyScreenToBitmap methods return KErrNone. -//! 2. The bitmap which is copyed to is correct. -//! 2.1 The pixels (0,0) is color TRgb(0,0,0); The border is black. -//! 2.2 The pixels (99,99) is color TRgb(0,0,0); The border is black. -//! 2.3 The pixels (50,99) is color TRgb(0,0,0); The border is black. -//! 2.4 The pixels (99,50) is color TRgb(0,0,0); The border is black. -//! 2.5 The pixels (1,1) is color TRgb(255,0,0); Inside is red. -//! 2.6 The pixels (98,98) is color TRgb(255,0,0); Inside is red. -//! 2.7 The pixels (100,100) is color TRgb(255,255,255); Outside is white. -//! 2.8 The pixels (999,1999) is color TRgb(255,255,255); Outside is white. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wgc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT CFbsBitmap fbsbitmap - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-CreateContext_command05 - COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-new_command06 - COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-Construct_command07 - COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-new_command08 - COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-Construct_command09 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-SetRequiredDisplayMode_command10 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-SetBackgroundColor_command11 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-SetAutoFlush_command13 - COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-Activate_command14 - COMMAND win BeginRedraw - COMMAND wgc SetBrushColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-SetBrushColor_command16 - COMMAND wgc SetBrushStyle GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-SetBrushStyle_command17 - COMMAND wgc SetPenColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-SetPenColor_command18 - COMMAND wgc DrawRect GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-DrawRect_command19 - COMMAND win EndRedraw - COMMAND fbsbitmap new - COMMAND fbsbitmap Create GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-Create_command22 - COMMAND scrdev CopyScreenToBitmap GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-CopyScreenToBitmap_command23 - COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-GetPixel_command24 - COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-GetPixel_command25 - COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-GetPixel_command26 - COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-GetPixel_command27 - COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-GetPixel_command28 - COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-GetPixel_command29 - COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-GetPixel_command30 - COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-GetPixel_command31 - COMMAND fbsbitmap ~ - COMMAND wgc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wgc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0294 - -//!START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0295 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0295 -//! @SYMAPI CWsScreenDevice::CopyScreenToBitmap(const CFbsBitmap{ptr}, const TRect{ref}) -//! @SYMAuthor Kevin Zeng -//! @SYMCreationDate 1/8/2007 -//! @SYMTestCaseDesc Negative test, copies a rect to a bitmap pointer which is NULL. -//! Set up and draw a 100*100 rect on white screen and copy the 100*100 rect in the screen to a bitmap, but the bitmap pointer is NULL. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create a CWsScreenDevice attached to RWsSession. -//! 3. Create a RWindowGroup attached to RWsSession. -//! 4. Create a RWindow, setup it and activate. -//! 5. RWsSession SetAutoFlush. -//! 6. Setup and draw a rectangle(100*100 size,filled with red, border is black). -//! 7. Create a CFbsBitmap wrapper, which's object pointer is NULL. -//! 8. Copy a 100*100 rect to a bitmap pointer which is NULL. -//! 9. Destruct and Close. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults KERN-EXEC 3 panic received at Test Action 8. -//! @SYMTestType CIT -//! START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini -//! CREATE_OBJECT RWsSession ws -//! CREATE_OBJECT CWsScreenDevice scrdev -//! CREATE_OBJECT CWindowGc wgc -//! CREATE_OBJECT RWindowGroup wingrp -//! CREATE_OBJECT RWindow win -//! CREATE_OBJECT CFbsBitmap fbsbitmap -//! COMMAND ws new -//! COMMAND ws Connect -//! COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0295-0001-new_command03 -//! COMMAND scrdev Construct -//! COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0295-0001-CreateContext_command05 -//! COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0295-0001-new_command06 -//! COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0295-0001-Construct_command07 -//! COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0295-0001-new_command08 -//! COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0295-0001-Construct_command09 -//! COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0295-0001-SetRequiredDisplayMode_command10 -//! COMMAND win SetBackgroundColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0295-0001-SetBackgroundColor_command11 -//! COMMAND win Activate -//! COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0295-0001-SetAutoFlush_command13 -//! COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0295-0001-Activate_command14 -//! COMMAND win BeginRedraw -//! COMMAND wgc SetBrushColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0295-0001-SetBrushColor_command16 -//! COMMAND wgc SetBrushStyle GRAPHICS-WSERV-WsScreenDevice-PublicApi-0295-0001-SetBrushStyle_command17 -//! COMMAND wgc SetPenColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0295-0001-SetPenColor_command18 -//! COMMAND wgc DrawRect GRAPHICS-WSERV-WsScreenDevice-PublicApi-0295-0001-DrawRect_command19 -//! COMMAND win EndRedraw -//! COMMAND scrdev CopyScreenToBitmap GRAPHICS-WSERV-WsScreenDevice-PublicApi-0295-0001-CopyScreenToBitmap_command20 -//! COMMAND wgc Deactivate -//! COMMAND win Close -//! COMMAND wingrp Close -//! COMMAND wgc ~ -//! COMMAND scrdev ~ -//! COMMAND ws Close -//! END_TEST_BLOCK !PanicString=KERN-EXEC !PanicCode=3 -//! RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -//!END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0295 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0296 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0296 -//! @SYMAPI CWsScreenDevice::CopyScreenToBitmap(const CFbsBitmap{ptr}, const TRect{ref}) -//! @SYMAuthor Kevin Zeng -//! @SYMCreationDate 1/8/2007 -//! @SYMTestCaseDesc Negative test, copies a rect to a bigger bitmap. -//! Set up and draw a 100*100 rect on white screen, and copy the 100*100 rect to a 200*200 bitmap. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create a CWsScreenDevice attached to RWsSession. -//! 3. Create a RWindowGroup attached to RWsSession. -//! 4. Create a RWindow, setup it and activate. -//! 5. RWsSession SetAutoFlush. -//! 6. Setup and draw a rectangle(100*100 size,filled with red, border is black). -//! 7. Create a CFbsBitmap which size is 200*200. -//! 8. Copy a 100*100 rect to the 200*200 bitmap. -//! 9. GetPixel from the bitmap, check the rectangle(inside is red, border is black, ouside is white). -//! 10. Destruct and Close. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. CopyScreenToBitmap methods return KErrNone. -//! 2. The bitmap which is copyed to is correct. -//! 2.1 The pixels (0,0) is color TRgb(0,0,0); The border is black. -//! 2.2 The pixels (99,99) is color TRgb(0,0,0); The border is black. -//! 2.3 The pixels (50,99) is color TRgb(0,0,0); The border is black. -//! 2.4 The pixels (99,50) is color TRgb(0,0,0); The border is black. -//! 2.5 The pixels (1,1) is color TRgb(255,0,0); Inside is red. -//! 2.6 The pixels (98,98) is color TRgb(255,0,0); Inside is red. -//! 2.7 The pixels (100,100) is color TRgb(255,255,255); Outside is white. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wgc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT CFbsBitmap fbsbitmap - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-CreateContext_command05 - COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-new_command06 - COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-Construct_command07 - COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-new_command08 - COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-Construct_command09 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-SetRequiredDisplayMode_command10 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-SetBackgroundColor_command11 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-SetAutoFlush_command13 - COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-Activate_command14 - COMMAND win BeginRedraw - COMMAND wgc SetBrushColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-SetBrushColor_command16 - COMMAND wgc SetBrushStyle GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-SetBrushStyle_command17 - COMMAND wgc SetPenColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-SetPenColor_command18 - COMMAND wgc DrawRect GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-DrawRect_command19 - COMMAND win EndRedraw - COMMAND fbsbitmap new - COMMAND fbsbitmap Create GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-Create_command22 - COMMAND scrdev CopyScreenToBitmap GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-CopyScreenToBitmap_command23 - COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-GetPixel_command24 - COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-GetPixel_command25 - COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-GetPixel_command26 - COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-GetPixel_command27 - COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-GetPixel_command28 - COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-GetPixel_command29 - COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-GetPixel_command30 - COMMAND fbsbitmap ~ - COMMAND wgc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wgc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0296 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0297 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0297 -//! @SYMAPI CWsScreenDevice::CopyScreenToBitmap(const CFbsBitmap{ptr}, const TRect{ref}) -//! @SYMAuthor Kevin Zeng -//! @SYMCreationDate 1/8/2007 -//! @SYMTestCaseDesc Negative test, copies a rect to a smaller bitmap. -//! Set up and draw a 100*100 rect on white screen, and copy the 100*100 rect to a 10*10 bitmap. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create a CWsScreenDevice attached to RWsSession. -//! 3. Create a RWindowGroup attached to RWsSession. -//! 4. Create a RWindow, setup it and activate. -//! 5. RWsSession SetAutoFlush. -//! 6. Setup and draw a rectangle(100*100 size,filled with red, border is black). -//! 7. Create a CFbsBitmap which size is 10*10. -//! 8. Copy a 100*100 rect to the 10*10 bitmap. -//! 9. GetPixel from the bitmap, check the rectangle(inside is red, border is black). -//! 10. Destruct and Close. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. CopyScreenToBitmap methods return KErrNone. -//! 2. The bitmap which is copyed to is correct. -//! 2.1 The pixels (0,0) is color TRgb(0,0,0); The border is black. -//! 2.2 The pixels (9,0) is color TRgb(0,0,0); The border is black. -//! 2.3 The pixels (0,9) is color TRgb(0,0,0); The border is black. -//! 2.4 The pixels (1,1) is color TRgb(255,0,0); Inside is red. -//! 2.5 The pixels (9,9) is color TRgb(255,0,0); Inside is red. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wgc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT CFbsBitmap fbsbitmap - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-CreateContext_command05 - COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-new_command06 - COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-Construct_command07 - COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-new_command08 - COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-Construct_command09 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-SetRequiredDisplayMode_command10 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-SetBackgroundColor_command11 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-SetAutoFlush_command13 - COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-Activate_command14 - COMMAND win BeginRedraw - COMMAND wgc SetBrushColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-SetBrushColor_command16 - COMMAND wgc SetBrushStyle GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-SetBrushStyle_command17 - COMMAND wgc SetPenColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-SetPenColor_command18 - COMMAND wgc DrawRect GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-DrawRect_command19 - COMMAND win EndRedraw - COMMAND fbsbitmap new - COMMAND fbsbitmap Create GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-Create_command22 - COMMAND scrdev CopyScreenToBitmap GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-CopyScreenToBitmap_command23 - COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-GetPixel_command24 - COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-GetPixel_command25 - COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-GetPixel_command26 - COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-GetPixel_command27 - COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-GetPixel_command28 - COMMAND fbsbitmap ~ - COMMAND wgc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wgc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0297 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0298 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0298 -//! @SYMAPI CWsScreenDevice::CopyScreenToBitmap(const CFbsBitmap{ptr}, const TRect{ref}) -//! @SYMAuthor Kevin Zeng -//! @SYMCreationDate 1/8/2007 -//! @SYMTestCaseDesc Negative test, copies a rect which is out of screen to a same size bitmap. -//! Set up and draw a 100*100 rect out of the screen, and copy the 100*100 rect to a 100*100 bitmap. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create a CWsScreenDevice attached to RWsSession. -//! 3. Create a RWindowGroup attached to RWsSession. -//! 4. Create a RWindow, setup it and activate. -//! 5. RWsSession SetAutoFlush. -//! 6. Setup and draw a rectangle out of the screen(100*100 size,filled with red, border is black). -//! 7. Create a CFbsBitmap which size is 100*100. -//! 8. Copy the 100*100 rect to the 100*100 bitmap. -//! 9. GetPixel from the bitmap, check the rectangle.(The whole bitmap is white). -//! 10. Destruct and Close. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. CopyScreenToBitmap methods return KErrNone. -//! 2. The bitmap which is copyed to is correct. -//! 2.1 The pixels (0,0) is color TRgb(255,255,255). -//! 2.2 The pixels (99,99) is color TRgb(255,255,255). -//! 2.3 The pixels (50,99) is color TRgb(255,255,255). -//! 2.4 The pixels (99,50) is color TRgb(255,255,255). -//! 2.5 The pixels (1,1) is color TRgb(255,255,255). -//! 2.6 The pixels (98,98) is color TRgb(255,255,255). -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wgc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT CFbsBitmap fbsbitmap - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-CreateContext_command05 - COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-new_command06 - COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-Construct_command07 - COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-new_command08 - COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-Construct_command09 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-SetRequiredDisplayMode_command10 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-SetBackgroundColor_command11 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-SetAutoFlush_command13 - COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-Activate_command14 - COMMAND win BeginRedraw - COMMAND wgc SetBrushColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-SetBrushColor_command16 - COMMAND wgc SetBrushStyle GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-SetBrushStyle_command17 - COMMAND wgc SetPenColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-SetPenColor_command18 - COMMAND wgc DrawRect GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-DrawRect_command19 - COMMAND win EndRedraw - COMMAND fbsbitmap new - COMMAND fbsbitmap Create GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-Create_command22 - COMMAND scrdev CopyScreenToBitmap GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-CopyScreenToBitmap_command23 - COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-GetPixel_command24 - COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-GetPixel_command25 - COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-GetPixel_command26 - COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-GetPixel_command27 - COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-GetPixel_command28 - COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-GetPixel_command29 - COMMAND fbsbitmap ~ - COMMAND wgc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wgc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0298 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0299 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0299 -//! @SYMAPI CWsScreenDevice::CopyScreenToBitmap(const CFbsBitmap{ptr}, const TRect{ref}) -//! @SYMAuthor Kevin Zeng -//! @SYMCreationDate 1/8/2007 -//! @SYMTestCaseDesc Negative test, copies a rect(-100,-100,0,0) to a same size bitmap. -//! Set up and draw a rect(-100,-100,0,0), and copy the 100*100 rect to a 100*100 bitmap. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create a CWsScreenDevice attached to RWsSession. -//! 3. Create a RWindowGroup attached to RWsSession. -//! 4. Create a RWindow, setup it and activate. -//! 5. RWsSession SetAutoFlush. -//! 6. Setup and draw a rectangle( at rect(-100,-100,0,0), filled with red, border is black). -//! 7. Create a CFbsBitmap which size is 100*100. -//! 8. Copy the 100*100 rect to the 100*100 bitmap. -//! 9. GetPixel from the bitmap, check the rectangle.(The whole bitmap is white). -//! 10. Destruct and Close. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. CopyScreenToBitmap methods return KErrNone. -//! 2. The bitmap which is copyed to is correct. -//! 2.1 The pixels (0,0) is color TRgb(255,255,255). -//! 2.2 The pixels (99,99) is color TRgb(255,255,255). -//! 2.3 The pixels (50,99) is color TRgb(255,255,255). -//! 2.4 The pixels (99,50) is color TRgb(255,255,255). -//! 2.5 The pixels (1,1) is color TRgb(255,255,255). -//! 2.6 The pixels (98,98) is color TRgb(255,255,255). -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CWindowGc wgc - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT CFbsBitmap fbsbitmap - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev CreateContext GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-CreateContext_command05 - COMMAND wingrp new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-new_command06 - COMMAND wingrp Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-Construct_command07 - COMMAND win new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-new_command08 - COMMAND win Construct GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-Construct_command09 - COMMAND win SetRequiredDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-SetRequiredDisplayMode_command10 - COMMAND win SetBackgroundColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-SetBackgroundColor_command11 - COMMAND win Activate - COMMAND ws SetAutoFlush GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-SetAutoFlush_command13 - COMMAND wgc Activate GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-Activate_command14 - COMMAND win BeginRedraw - COMMAND wgc SetBrushColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-SetBrushColor_command16 - COMMAND wgc SetBrushStyle GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-SetBrushStyle_command17 - COMMAND wgc SetPenColor GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-SetPenColor_command18 - COMMAND wgc DrawRect GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-DrawRect_command19 - COMMAND win EndRedraw - COMMAND fbsbitmap new - COMMAND fbsbitmap Create GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-Create_command22 - COMMAND scrdev CopyScreenToBitmap GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-CopyScreenToBitmap_command23 - COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-GetPixel_command24 - COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-GetPixel_command25 - COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-GetPixel_command26 - COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-GetPixel_command27 - COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-GetPixel_command28 - COMMAND fbsbitmap GetPixel GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-GetPixel_command29 - COMMAND fbsbitmap ~ - COMMAND wgc Deactivate - COMMAND win Close - COMMAND wingrp Close - COMMAND wgc ~ - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0299 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0300 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0300 -//! @SYMAPI CWsScreenDevice::GetScreenModeSizeAndRotation(TInt, TPixelsAndRotation{ref}) -//! @SYMAuthor Wekey Weng -//! @SYMCreationDate 12/29/2007 -//! @SYMTestCaseDesc Negative test, gets the screen rotation and size(in pixels) using mode -1 -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Get the screen size(in pixels) and rotation with mode -1 -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults WSERV 54 panic received at Test Action 4 -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0300-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev GetScreenModeSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0300-0001-GetScreenModeSizeAndRotation_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK !PanicString=WSERV !PanicCode=54 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0300 - - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0301 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0301 -//! @SYMAPI CWsScreenDevice::GetScreenModeSizeAndRotation(TInt, TPixelsTwipsAndRotation{ref}) -//! @SYMAuthor Wekey Weng -//! @SYMCreationDate 12/29/2007 -//! @SYMTestCaseDesc Negative test, gets the screen rotation and size(both in pixels and twips) using mode -1 -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Get the screen size(both in pixels and twips) and rotation with mode -1 -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults WSERV 54 panic received at Test Action 4 -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0301-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev GetScreenModeSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0301-0001-GetScreenModeSizeAndRotation_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK !PanicString=WSERV !PanicCode=54 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0301 - - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0302 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0302 -//! @SYMAPI CWsScreenDevice::GetRotationsList(TInt, CArrayFixFlat{ptr}) -//! @SYMAuthor Wekey Weng -//! @SYMCreationDate 12/29/2007 -//! @SYMTestCaseDesc Negative test, gets the list of valid rotations using mode -1 -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Get the list of valid rotations for mode -1 -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults WSERV 54 panic received at Test Action 4 -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0302-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev GetRotationsList GRAPHICS-WSERV-WsScreenDevice-PublicApi-0302-0001-GetRotationsList_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK !PanicString=WSERV !PanicCode=54 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0302 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0303 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0303 -//! @SYMAPI CWsScreenDevice::SetAppScreenMode(TInt) -//! @SYMAuthor Wekey Weng -//! @SYMCreationDate 12/29/2007 -//! @SYMTestCaseDesc Negative test, sets the application screen mode with mode -1 -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Set the application with mode -1 -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults WSERV 54 panic received at Test Action 4 -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0303-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev SetAppScreenMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0303-0001-SetAppScreenMode_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK !PanicString=WSERV !PanicCode=54 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0303 - - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0304 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0304 -//! @SYMAPI CWsScreenDevice::GetScreenModeOrigin(TInt) -//! @SYMAuthor Wekey Weng -//! @SYMCreationDate 12/29/2007 -//! @SYMTestCaseDesc Negative test,gets the origin of the screen using mode -1 -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Get the origin of the screen for mode -1 -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults WSERV 54 panic received at Test Action 4 -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0304-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev GetScreenModeOrigin GRAPHICS-WSERV-WsScreenDevice-PublicApi-0304-0001-GetScreenModeOrigin_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK !PanicString=WSERV !PanicCode=54 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0304 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0305 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0305 -//! @SYMAPI CWsScreenDevice::GetScreenModeScale(TInt) -//! @SYMAuthor Wekey Weng -//! @SYMCreationDate 12/29/2007 -//! @SYMTestCaseDesc Negative test, gets the scale using mode -1 -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Get the scale for mode -1 -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults WSERV 54 panic received at Test Action 4 -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0305-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev GetScreenModeScale GRAPHICS-WSERV-WsScreenDevice-PublicApi-0305-0001-GetScreenModeScale_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK !PanicString=WSERV !PanicCode=54 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0305 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0306 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0306 -//! @SYMAPI CWsScreenDevice::GetScreenModeScaledOrigin(TInt) -//! @SYMAuthor Wekey Weng -//! @SYMCreationDate 12/29/2007 -//! @SYMTestCaseDesc Negative test, gets the scaled origin for mode -1 -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Get the scaled origin for mode -1 -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults WSERV 54 panic received at Test Action 4 -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0306-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev GetScreenModeScaledOrigin GRAPHICS-WSERV-WsScreenDevice-PublicApi-0306-0001-GetScreenModeScaledOrigin_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK !PanicString=WSERV !PanicCode=54 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0306 - - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0307 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0307 -//! @SYMAPI CWsScreenDevice::GetScreenModeDisplayMode(TInt) -//! @SYMAuthor Wekey Weng -//! @SYMCreationDate 12/29/2007 -//! @SYMTestCaseDesc Negative test, gets the display mode for mode -1 -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Get the display mode for mode -1 -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults WSERV 54 panic received at Test Action 4 -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0307-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev GetScreenModeDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicApi-0307-0001-GetScreenModeDisplayMode_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK !PanicString=WSERV !PanicCode=54 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0307 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0308 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0308 -//! @SYMAPI CWsScreenDevice::SetScreenSizeAndRotation(const TPixelsAndRotation{ref}) -//! @SYMAuthor Niandong Qiao -//! @SYMCreationDate 12/29/2007 -//! @SYMTestCaseDesc Negative test, uses invalid input values -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Get the current screen size and rotation, and check them to be same as default value -//! 5. Set the current screen size in pixels and the rotation for the screen device with invalide values multi times -//! 5.1 Set screen size to (10000,10000), set rotation to EGraphicsOrientationNormal -//! 5.2 Set screen size to (1,1), set rotation to EGraphicsOrientationRotated90 -//! 5.3 Set screen size to (0,0), set rotation to EGraphicsOrientationRotated180 -//! 5.4 Set screen size to (-1,-1), set rotation to EGraphicsOrientationRotated270 -//! 5.5 Set screen size to (-10000,-10000), set rotation to EGraphicsOrientationNormal -//! 5.6 Set screen size to (240,640) for Emulator or (240, 320) for H4 board, set rotation to EGraphicsOrientationNormal -//! 5.7 Set screen size to (10000,640) for Emulator or (10000, 320) for H4 board, set rotation to EGraphicsOrientationNormal -//! 6. Get the current screen size and rotation, and check them to be same as default value -//! 7. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults No panic with invalid values and anything should not be changed. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0308-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev GetDefaultScreenSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0308-0001-GetDefaultScreenSizeAndRotation_command05 - COMMAND scrdev SetScreenSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0308-0001-SetScreenSizeAndRotation_command06 - COMMAND scrdev SetScreenSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0308-0001-SetScreenSizeAndRotation_command07 - COMMAND scrdev SetScreenSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0308-0001-SetScreenSizeAndRotation_command08 - COMMAND scrdev SetScreenSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0308-0001-SetScreenSizeAndRotation_command09 - COMMAND scrdev SetScreenSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0308-0001-SetScreenSizeAndRotation_command10 - COMMAND scrdev SetScreenSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0308-0001-SetScreenSizeAndRotation_command11 - COMMAND scrdev SetScreenSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0308-0001-SetScreenSizeAndRotation_command12 - COMMAND scrdev GetDefaultScreenSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0308-0001-GetDefaultScreenSizeAndRotation_command13 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0308 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0309 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0309 -//! @SYMAPI CWsScreenDevice::SetScreenSizeAndRotation(const TPixelsTwipsAndRotation{ref}) -//! @SYMAuthor Niandong Qiao -//! @SYMCreationDate 12/29/2007 -//! @SYMTestCaseDesc Negative test, uses invalid input values -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Get the current screen size and rotation, and check them to be same as default value -//! 5. Set the current screen size(in both twips and pixels) and the rotation for the screen device with invalide values multi times -//! 5.1 Set screen size in twips to (100000,100000), in pixels to(10000,10000), set rotation to EGraphicsOrientationNormal -//! 5.2 Set screen size in twips to (1,1), in pixels to(1,1), set rotation to EGraphicsOrientationRotated90 -//! 5.3 Set screen size in twips to (0,0), in pixels to(0,0), set rotation to EGraphicsOrientationRotated180 -//! 5.4 Set screen size in twips to (-1,-1), in pixels to(-1,-1), set rotation to EGraphicsOrientationRotated270 -//! 5.5 Set screen size in twips to (-100000,-100000), in pixels to(-10000,-10000), set rotation to EGraphicsOrientationNormal -//! 5.6 Set screen size in twips to (7620,2000) for Emulator or (4463, 2000) for H4 board, in pixels to (640,200) for Emulator or (340,200) for H4 board, set rotation to EGraphicsOrientationNormal -//! 5.7 Set screen size in twips to (2858,7620) for Emulator or (3041,4463) for H4 board, in pixels to (240,640) for Emulator or (240, 320) for H4 board, set rotation to EGraphicsOrientationNormal -//! 5.8 Set screen size in twips to (2858,2000) for Emulator or (3041,2000) for H4 board, in pixels to (240,640) for Emulator or (240, 320) for H4 board, set rotation to EGraphicsOrientationNormal -//! 5.9 Set screen size in twips to (2000,2000) for Emulator or (2000,2000) for H4 board, in pixels to (240,640) for Emulator or (240, 320) for H4 board, set rotation to EGraphicsOrientationNormal -//! 5.10 Set screen size in twips to (2000,2000) for Emulator or (2000,2000) for H4 board, in pixels to (240,200) for Emulator or (240, 200) for H4 board, set rotation to EGraphicsOrientationNormal -//! 6. Get the current screen size and rotation, and check them to be same as default value -//! 7. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority Critical -//! @SYMTestExpectedResults No panic with invalid values and anything should not be changed. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicApi-0309-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev GetDefaultScreenSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0309-0001-GetDefaultScreenSizeAndRotation_command05 - COMMAND scrdev SetScreenSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0309-0001-SetScreenSizeAndRotation_command06 - COMMAND scrdev SetScreenSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0309-0001-SetScreenSizeAndRotation_command07 - COMMAND scrdev SetScreenSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0309-0001-SetScreenSizeAndRotation_command08 - COMMAND scrdev SetScreenSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0309-0001-SetScreenSizeAndRotation_command09 - COMMAND scrdev SetScreenSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0309-0001-SetScreenSizeAndRotation_command10 - COMMAND scrdev SetScreenSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0309-0001-SetScreenSizeAndRotation_command11 - COMMAND scrdev SetScreenSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0309-0001-SetScreenSizeAndRotation_command12 - COMMAND scrdev SetScreenSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0309-0001-SetScreenSizeAndRotation_command13 - COMMAND scrdev SetScreenSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0309-0001-SetScreenSizeAndRotation_command14 - COMMAND scrdev SetScreenSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0309-0001-SetScreenSizeAndRotation_command15 - COMMAND scrdev GetDefaultScreenSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicApi-0309-0001-GetDefaultScreenSizeAndRotation_command16 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0309 - - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0310 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0310 -//! @SYMAPI CWsScreenDevice::GetScreenModeSizeAndRotation(TInt, TPixelsAndRotation{ref}) -//! @SYMAuthor Wekey Weng -//! @SYMCreationDate 12/29/2007 -//! @SYMTestCaseDesc Negative test, gets the screen rotation and size(in pixels) using mode 1000(too big) -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Get the screen size(in pixels) and rotation with mode 1000(too big) -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults WSERV 54 panic received at Test Action 4 -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0310-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev GetScreenModeSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0310-0001-GetScreenModeSizeAndRotation_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK !PanicString=WSERV !PanicCode=54 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0310 - - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0311 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0311 -//! @SYMAPI CWsScreenDevice::GetScreenModeSizeAndRotation(TInt, TPixelsTwipsAndRotation{ref}) -//! @SYMAuthor Wekey Weng -//! @SYMCreationDate 12/29/2007 -//! @SYMTestCaseDesc Negative test, gets the screen rotation and size(both in pixels and twips) using mode 1000(too big) -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Get the screen size(both in pixels and twips) and rotation with mode 1000(too big) -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults WSERV 54 panic received at Test Action 4 -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0311-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev GetScreenModeSizeAndRotation GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0311-0001-GetScreenModeSizeAndRotation_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK !PanicString=WSERV !PanicCode=54 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0311 - - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0312 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0312 -//! @SYMAPI CWsScreenDevice::GetRotationsList(TInt, CArrayFixFlat{ptr}) -//! @SYMAuthor Wekey Weng -//! @SYMCreationDate 12/29/2007 -//! @SYMTestCaseDesc Negative test, gets the list of valid rotations using mode 1000(too big) -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Get the list of valid rotations for mode 1000(too big) -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults WSERV 54 panic received at Test Action 4 -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0312-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev GetRotationsList GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0312-0001-GetRotationsList_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK !PanicString=WSERV !PanicCode=54 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0312 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0313 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0313 -//! @SYMAPI CWsScreenDevice::SetAppScreenMode(TInt) -//! @SYMAuthor Wekey Weng -//! @SYMCreationDate 12/29/2007 -//! @SYMTestCaseDesc Negative test, sets the application screen mode with mode 1000(too big) -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Set the application with mode 1000(too big) -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults WSERV 54 panic received at Test Action 4 -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0313-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev SetAppScreenMode GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0313-0001-SetAppScreenMode_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK !PanicString=WSERV !PanicCode=54 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0313 - - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0314 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0314 -//! @SYMAPI CWsScreenDevice::GetScreenModeOrigin(TInt) -//! @SYMAuthor Wekey Weng -//! @SYMCreationDate 12/29/2007 -//! @SYMTestCaseDesc Negative test,gets the origin of the screen using mode 1000(too big) -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Get the origin of the screen for mode 1000(too big) -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults WSERV 54 panic received at Test Action 4 -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0314-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev GetScreenModeOrigin GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0314-0001-GetScreenModeOrigin_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK !PanicString=WSERV !PanicCode=54 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0314 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0315 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0315 -//! @SYMAPI CWsScreenDevice::GetScreenModeScale(TInt) -//! @SYMAuthor Wekey Weng -//! @SYMCreationDate 12/29/2007 -//! @SYMTestCaseDesc Negative test, gets the scale using mode 1000(too big) -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Get the scale for mode 1000(too big) -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults WSERV 54 panic received at Test Action 4 -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0315-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev GetScreenModeScale GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0315-0001-GetScreenModeScale_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK !PanicString=WSERV !PanicCode=54 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0315 - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0316 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0316 -//! @SYMAPI CWsScreenDevice::GetScreenModeScaledOrigin(TInt) -//! @SYMAuthor Wekey Weng -//! @SYMCreationDate 12/29/2007 -//! @SYMTestCaseDesc Negative test, gets the scaled origin for mode 1000(too big) -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Get the scaled origin for mode 1000(too big) -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults WSERV 54 panic received at Test Action 4 -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0316-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev GetScreenModeScaledOrigin GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0316-0001-GetScreenModeScaledOrigin_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK !PanicString=WSERV !PanicCode=54 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0316 - - -START_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0317 -//! @SYMTestCaseID GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0317 -//! @SYMAPI CWsScreenDevice::GetScreenModeDisplayMode(TInt) -//! @SYMAuthor Wekey Weng -//! @SYMCreationDate 12/29/2007 -//! @SYMTestCaseDesc Negative test, gets the display mode for mode 1000(too big) -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create a CWsScreenDevice attached to RWsSession -//! 3. Complete the construction -//! 4. Get the display mode for mode 1000(too big) -//! 5. Destruct and close all objects used -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults WSERV 54 panic received at Test Action 4 -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - COMMAND ws new - COMMAND ws Connect - COMMAND scrdev new GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0317-0001-new_command03 - COMMAND scrdev Construct - COMMAND scrdev GetScreenModeDisplayMode GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0317-0001-GetScreenModeDisplayMode_command05 - COMMAND scrdev ~ - COMMAND ws Close - END_TEST_BLOCK !PanicString=WSERV !PanicCode=54 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0317 diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-WsSprite-PublicApi.script --- a/graphicsapitest/graphicssvs/wserv/scripts/GRAPHICS-WSERV-WsSprite-PublicApi.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1620 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// -//! @file -//! @SYMTestSuiteName GRAPHICS-WSERV-WsSprite-PublicApi -//! @SYMScriptTestEnvironment This test script requires a basic ROM. - -/////////////////////////////////////////////////////////////////////////////// -// GRAPHICS-WSERV-WsSprite-PublicApi.script -// -// Tests all public elements of the RWsSprite class -// as a means of confidence that the API works as expected. -// -// The purpose is to provide a regression test suite of PublishedAll APIs for -// RWsSprite related classes. -// Negative testing is performed to confirm that correct errors are returned -// when incorrect parameters are given. -// -// The tests are fully automated. -/////////////////////////////////////////////////////////////////////////////// - -LOAD_SUITE T_GraphicsWservAPI - -// **************************************************************************** -// RWsSprite -// **************************************************************************** - -START_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0001 -//! @SYMTestCaseID GRAPHICS-WSERV-WsSprite-PublicApi-0001 -//! @SYMAPI RWsSprite::RWsSprite() -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 28/11/2007 -//! @SYMTestCaseDesc Create a RWsSprite object with default construct. -//! @SYMTestActions 1.Create RWsSprite with default constructor. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults RWsSprite object was created without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini - CREATE_OBJECT RWsSprite sprite - COMMAND sprite new - COMMAND sprite Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0001 - - -START_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0002 -//! @SYMTestCaseID GRAPHICS-WSERV-WsSprite-PublicApi-0002 -//! @SYMAPI RWsSprite::RWsSprite(RWsSession{ref}) -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 28/11/2007 -//! @SYMTestCaseDesc Create a RWsSprite object. -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create RWsSprite with RWsSession by using RWsSprite(RWsSession &aWs). -//! 3. Close RWsSession. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults RWsSprite object was created without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWsSprite sprite - COMMAND ws new - COMMAND ws Connect - COMMAND sprite new GRAPHICS-WSERV-WsSprite-PublicApi-0002-0001-new_command004 - COMMAND sprite Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0002 - - -START_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0003 -//! @SYMTestCaseID GRAPHICS-WSERV-WsSprite-PublicApi-0003 -//! @SYMAPI RWsSprite::Construct(RWindowTreeNode{ref}, const TPoint{ref}, TInt) -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 28/11/2007 -//! @SYMTestCaseDesc Create a RWsSprite object with RWsSprite(RWsSession &aWs) and construct. -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Create RWsSprite with RWsSession by using RWsSprite(RWsSession &aWs). -//! 4. Construct RWsSprite. -//! 5. Close RWsSprite,RWsSession and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults RWsSprite object was constructed without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RWsSprite sprite - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WsSprite-Setup-0003-0001-new_command001 - COMMAND wingrp Construct GRAPHICS-WSERV-WsSprite-Setup-0003-0001-Construct_command003 - COMMAND win new GRAPHICS-WSERV-WsSprite-PublicApi-0003-0001-new_command004 - COMMAND win Construct GRAPHICS-WSERV-WsSprite-Setup-0003-0001-Construct_command002 - COMMAND sprite new GRAPHICS-WSERV-WsSprite-PublicApi-0003-0001-new_command006 - COMMAND sprite Construct GRAPHICS-WSERV-WsSprite-PublicApi-0003-0001-Construct_command007 - - COMMAND sprite Close - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0003 - - -START_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0004 -//! @SYMTestCaseID GRAPHICS-WSERV-WsSprite-PublicApi-0004 -//! @SYMAPI RWsSpriteBase::AppendMember(const TSpriteMember{ref}) -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 28/11/2007 -//! @SYMTestCaseDesc Create and construct a RWsSprite object with RWsSession and append sprite member. -//! mask1 is iMaskBitmap member of TSpriteMember and the other are iBitmap member of TSpriteMember. -//! @SYMTestActions 1. Create and connect a RWsSession, create 4 CFbsBitmap objects. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Create RWsSprite with RWsSession by using RWsSprite(RWsSession &aWs). -//! 4. Construct RWsSprite. -//! 5. Create CFbsBitmap object and load bitmap to initialize TSpriteMember. -//! 6. Append three different bitmaps to the sprite, each with the same mask. -//! 7. Destruct all created object and Close RWsSprite,RWsSession and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Adds sprite member to a sprite successfully and returns KErrNone. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT CFbsBitmap mask1 - CREATE_OBJECT CFbsBitmap bitmap1 - CREATE_OBJECT CFbsBitmap bitmap2 - CREATE_OBJECT CFbsBitmap bitmap3 - CREATE_OBJECT RWindow win - CREATE_OBJECT RWsSprite sprite - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WsSprite-Setup-0004-0001-new_command001 - COMMAND wingrp Construct GRAPHICS-WSERV-WsSprite-Setup-0004-0001-Construct_command003 - COMMAND win new GRAPHICS-WSERV-WsSprite-PublicApi-0004-0001-new_command004 - COMMAND win Construct GRAPHICS-WSERV-WsSprite-Setup-0004-0001-Construct_command002 - COMMAND sprite new GRAPHICS-WSERV-WsSprite-PublicApi-0004-0001-new_command006 - COMMAND sprite Construct GRAPHICS-WSERV-WsSprite-PublicApi-0004-0001-Construct_command007 - COMMAND mask1 new - COMMAND mask1 Load GRAPHICS-WSERV-WsSprite-PublicApi-0004-0001-Load_command009 - - COMMAND bitmap1 new - COMMAND bitmap1 Load GRAPHICS-WSERV-WsSprite-PublicApi-0004-0001-Load_command011 - COMMAND sprite AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0004-0001-AppendMember_command012 - - COMMAND bitmap2 new - COMMAND bitmap2 Load GRAPHICS-WSERV-WsSprite-PublicApi-0004-0001-Load_command014 - COMMAND sprite AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0004-0001-AppendMember_command015 - - COMMAND bitmap3 new - COMMAND bitmap3 Load GRAPHICS-WSERV-WsSprite-PublicApi-0004-0001-Load_command017 - COMMAND sprite AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0004-0001-AppendMember_command018 - - COMMAND sprite Close - COMMAND mask1 ~ - COMMAND bitmap1 ~ - COMMAND bitmap2 ~ - COMMAND bitmap3 ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0004 - - -START_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0005 -//! @SYMTestCaseID GRAPHICS-WSERV-WsSprite-PublicApi-0005 -//! @SYMAPI RWsSpriteBase::Activate() -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 28/11/2007 -//! @SYMTestCaseDesc Create spirte and append three member then activate it. -//! mask1 is iMaskBitmap member of TSpriteMember and the other are iBitmap member of TSpriteMember. -//! @SYMTestActions 1. Create and connect a RWsSession, create 4 CFbsBitmap objects. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Create RWsSprite with RWsSession by using RWsSprite(RWsSession &aWs). -//! 4. Construct RWsSprite. -//! 5. Create CFbsBitmap object and load bitmap to initialize TSpriteMember. -//! 6. Append three different bitmaps to the sprite, each with the same mask. -//! 7. Activate RWsSprite. -//! 8. Destruct all created object and Close RWsSprite,RWsSession and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Activates sprites successfully and returns KErrNone. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT CFbsBitmap mask1 - CREATE_OBJECT CFbsBitmap bitmap1 - CREATE_OBJECT CFbsBitmap bitmap2 - CREATE_OBJECT CFbsBitmap bitmap3 - CREATE_OBJECT RWindow win - CREATE_OBJECT RWsSprite sprite - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WsSprite-Setup-0005-0001-new_command001 - COMMAND wingrp Construct GRAPHICS-WSERV-WsSprite-Setup-0005-0001-Construct_command003 - COMMAND win new GRAPHICS-WSERV-WsSprite-PublicApi-0005-0001-new_command004 - COMMAND win Construct GRAPHICS-WSERV-WsSprite-Setup-0005-0001-Construct_command002 - COMMAND win Activate - COMMAND sprite new GRAPHICS-WSERV-WsSprite-PublicApi-0005-0001-new_command006 - COMMAND sprite Construct GRAPHICS-WSERV-WsSprite-PublicApi-0005-0001-Construct_command007 - COMMAND mask1 new - COMMAND mask1 Load GRAPHICS-WSERV-WsSprite-PublicApi-0005-0001-Load_command009 - - COMMAND bitmap1 new - COMMAND bitmap1 Load GRAPHICS-WSERV-WsSprite-PublicApi-0005-0001-Load_command011 - COMMAND sprite AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0005-0001-AppendMember_command012 - - COMMAND bitmap2 new - COMMAND bitmap2 Load GRAPHICS-WSERV-WsSprite-PublicApi-0005-0001-Load_command014 - COMMAND sprite AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0005-0001-AppendMember_command015 - - COMMAND bitmap3 new - COMMAND bitmap3 Load GRAPHICS-WSERV-WsSprite-PublicApi-0005-0001-Load_command017 - COMMAND sprite AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0005-0001-AppendMember_command018 - - COMMAND sprite Activate - - COMMAND sprite Close - COMMAND mask1 ~ - COMMAND bitmap1 ~ - COMMAND bitmap2 ~ - COMMAND bitmap3 ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0005 - - -START_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0006 -//! @SYMTestCaseID GRAPHICS-WSERV-WsSprite-PublicApi-0006 -//! @SYMAPI RWsSpriteBase::UpdateMember(TInt) -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 22/01/2008 -//! @SYMTestCaseDesc Create 2 sprite object with same 2 sprite member and update the first object's TSpriteMember bitmap size,then verify. -//! mask1 is iMaskBitmap member of TSpriteMember and the other are iBitmap member of TSpriteMember. -//! The bitmap size is (50,50), after activate sprite, we change the first sprite member bitmap size to (40,40) of first sprit object. -//! @SYMTestActions 1. Create and connect a RWsSession, create 5 CFbsBitmap objects. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Create RWsSprite with RWsSession by using RWsSprite(RWsSession &aWs). -//! 4. Construct RWsSprite at position(10,10). -//! 5. Create and construct the second sprite at position(10,70). -//! 6. Create CFbsBitmap object and load bitmap to initialize TSpriteMember. -//! 7. Append three different bitmaps to the two sprites, each with the same mask. -//! 8. Activate the two RWsSprite. -//! 9. Compare the rectangle(10,10,60,60) with (10,70,60,120) which the sprite objects located,they should be same. -//! 10. Change bitmap size of bitmap1 object which is the first TSpriteMember of first sprite object to (40,40). -//! 11. Update first sprite object's sprite member(index=0). -//! 12. Compare the two rectangles again, they should be NOT same. -//! 13. Destruct all created object and Close RWsSprite,RWsSession and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Call UpdateMember function without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CFbsBitmap mask1 - CREATE_OBJECT CFbsBitmap bitmap1 - CREATE_OBJECT CFbsBitmap bitmap2 - CREATE_OBJECT CFbsBitmap bitmap3 - CREATE_OBJECT CFbsBitmap bitmap4 - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RWsSprite sprite - CREATE_OBJECT RWsSprite sprite2 - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-Construct_command004 - COMMAND win new GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-new_command005 - COMMAND win Construct GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-Construct_command006 - COMMAND win Activate - COMMAND sprite new GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-new_command008 - COMMAND sprite Construct GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-Construct_command009 - COMMAND sprite2 new GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-new_command010 - COMMAND sprite2 Construct GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-Construct_command011 - - COMMAND mask1 new - COMMAND mask1 Load GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-Load_command013 - - COMMAND bitmap1 new - COMMAND bitmap1 Load GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-Load_command015 - COMMAND sprite AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-AppendMember_command016 - - COMMAND bitmap2 new - COMMAND bitmap2 Load GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-Load_command018 - COMMAND sprite AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-AppendMember_command019 - - COMMAND bitmap3 new - COMMAND bitmap3 Load GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-Load_command021 - COMMAND sprite2 AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-AppendMember_command022 - - COMMAND bitmap4 new - COMMAND bitmap4 Load GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-Load_command024 - COMMAND sprite2 AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-AppendMember_command025 - - COMMAND sprite Activate - COMMAND sprite2 Activate - - COMMAND scrdev new GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-new_command028 - COMMAND scrdev Construct - COMMAND win BeginRedraw - COMMAND win EndRedraw - //!COMMAND scrdev RectCompare GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-RectCompare_command032 - - COMMAND bitmap1 Resize GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-Resize_command033 - COMMAND sprite UpdateMember GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-UpdateMember_command034 - //!COMMAND scrdev RectCompare GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-RectCompare_command035 - - COMMAND sprite Close - COMMAND sprite2 Close - COMMAND mask1 ~ - COMMAND bitmap1 ~ - COMMAND bitmap2 ~ - COMMAND bitmap3 ~ - COMMAND bitmap4 ~ - COMMAND scrdev ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0006 - - -START_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0007 -//! @SYMTestCaseID GRAPHICS-WSERV-WsSprite-PublicApi-0007 -//! @SYMAPI RWsSpriteBase::UpdateMember(TInt, const TSpriteMember{ref}) -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 28/11/2007 -//! @SYMTestCaseDesc Update the sprite by changed bitmap of member data and verify. -//! mask1 is iMaskBitmap member of TSpriteMember and the other are iBitmap member of TSpriteMember. -//! @SYMTestActions 1. Create and connect a RWsSession, create 4 CFbsBitmap objects. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Create RWsSprite with RWsSession by using RWsSprite(RWsSession &aWs). -//! 4. Construct RWsSprite at position(10,10). -//! 5. Create and construct the second sprite at position(10,70). -//! 6. Create CFbsBitmap object and load bitmap to initialize TSpriteMember. -//! 7. Append 2 RWsSprite member with the same member data to the created 2 sprites. -//! 8. Activate the two RWsSprite. -//! 9. Compare the rectangle(10,10,60,60) with (10,70,60,120) which the sprite objects located,they should be same. -//! 10. Load a new bitmap to the first sprite then update. -//! 11. Compare the two rectangles again, they should be NOT same. -//! 12. Destruct all created object and Close RWsSprite,RWsSession and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults UpdateMember function successfully without causing panic and runs as expected. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CFbsBitmap mask1 - CREATE_OBJECT CFbsBitmap bitmap1 - CREATE_OBJECT CFbsBitmap bitmap2 - CREATE_OBJECT CFbsBitmap bitmap3 - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RWsSprite sprite - CREATE_OBJECT RWsSprite sprite2 - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-Construct_command004 - COMMAND win new GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-new_command005 - COMMAND win Construct GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-Construct_command006 - COMMAND win Activate - COMMAND sprite new GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-new_command008 - COMMAND sprite Construct GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-Construct_command009 - COMMAND sprite2 new GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-new_command010 - COMMAND sprite2 Construct GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-Construct_command011 - - COMMAND mask1 new - COMMAND mask1 Load GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-Load_command013 - - COMMAND bitmap1 new - COMMAND bitmap1 Load GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-Load_command015 - COMMAND sprite AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-AppendMember_command016 - COMMAND sprite2 AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-AppendMember_command017 - - COMMAND bitmap2 new - COMMAND bitmap2 Load GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-Load_command019 - COMMAND sprite AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-AppendMember_command020 - COMMAND sprite2 AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-AppendMember_command021 - - COMMAND sprite Activate - COMMAND sprite2 Activate - - COMMAND scrdev new GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-new_command24 - COMMAND scrdev Construct - COMMAND win BeginRedraw - COMMAND win EndRedraw - //!COMMAND scrdev RectCompare GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-RectCompare_command028 - - COMMAND bitmap3 new - COMMAND bitmap3 Load GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-Load_command030 - COMMAND sprite UpdateMember GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-UpdateMember_command031 - - //!COMMAND scrdev RectCompare GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-RectCompare_command032 - - COMMAND sprite Close - COMMAND sprite2 Close - COMMAND mask1 ~ - COMMAND bitmap1 ~ - COMMAND bitmap2 ~ - COMMAND bitmap3 ~ - COMMAND scrdev ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0007 - - -START_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0008 -//! @SYMTestCaseID GRAPHICS-WSERV-WsSprite-PublicApi-0008 -//! @SYMAPI RWsSprite::SetPosition(const TPoint{ref}) -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 28/11/2007 -//! @SYMTestCaseDesc Create sprite and set its position. -//! mask1 is iMaskBitmap member of TSpriteMember and the other are iBitmap member of TSpriteMember. -//! @SYMTestActions 1. Create and connect a RWsSession, create 4 CFbsBitmap objects. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Create RWsSprite with RWsSession by using RWsSprite(RWsSession &aWs). -//! 4. Construct RWsSprite. -//! 5. Create CFbsBitmap object and load bitmap to initialize TSpriteMember. -//! 6. Append three different bitmaps to the sprite, each with the same mask. -//! 7. SetPosition sprite position. -//! 8. Activate RWsSprite. -//! 9. SetPosition sprite again. -//! 10. Destruct all created object and Close RWsSprite,RWsSession and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Call SetPosition function without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CFbsBitmap mask1 - CREATE_OBJECT CFbsBitmap bitmap1 - CREATE_OBJECT CFbsBitmap bitmap2 - CREATE_OBJECT CFbsBitmap bitmap3 - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RWsSprite sprite - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WsSprite-Setup-0008-0001-new_command001 - COMMAND wingrp Construct GRAPHICS-WSERV-WsSprite-Setup-0008-0001-Construct_command003 - COMMAND win new GRAPHICS-WSERV-WsSprite-PublicApi-0008-0001-new_command004 - COMMAND win Construct GRAPHICS-WSERV-WsSprite-Setup-0008-0001-Construct_command002 - COMMAND win Activate - COMMAND sprite new GRAPHICS-WSERV-WsSprite-PublicApi-0008-0001-new_command006 - COMMAND sprite Construct GRAPHICS-WSERV-WsSprite-PublicApi-0008-0001-Construct_command007 - COMMAND mask1 new - COMMAND mask1 Load GRAPHICS-WSERV-WsSprite-PublicApi-0008-0001-Load_command009 - - COMMAND bitmap1 new - COMMAND bitmap1 Load GRAPHICS-WSERV-WsSprite-PublicApi-0008-0001-Load_command011 - COMMAND sprite AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0008-0001-AppendMember_command012 - - COMMAND bitmap2 new - COMMAND bitmap2 Load GRAPHICS-WSERV-WsSprite-PublicApi-0008-0001-Load_command014 - COMMAND sprite AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0008-0001-AppendMember_command015 - - COMMAND bitmap3 new - COMMAND bitmap3 Load GRAPHICS-WSERV-WsSprite-PublicApi-0008-0001-Load_command017 - COMMAND sprite AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0008-0001-AppendMember_command018 - - COMMAND sprite SetPosition GRAPHICS-WSERV-WsSprite-PublicApi-0008-0001-SetPosition_command019 - COMMAND sprite Activate - COMMAND sprite SetPosition GRAPHICS-WSERV-WsSprite-PublicApi-0008-0001-SetPosition_command021 - - COMMAND sprite Close - COMMAND mask1 ~ - COMMAND bitmap1 ~ - COMMAND bitmap2 ~ - COMMAND bitmap3 ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0008 - -START_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0009 -//! @SYMTestCaseID GRAPHICS-WSERV-WsSprite-PublicApi-0009 -//! @SYMAPI RWsSprite::Activate() -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 14/12/2007 -//! @SYMTestCaseDesc Create sprite then activate, verify the sprite are displayed after activation. -//! mask1 is iMaskBitmap member of TSpriteMember and the other are iBitmap member of TSpriteMember. -//! @SYMTestActions 1. Create and connect a RWsSession, and create 4 CFbsBitmap objects. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Create two RWsSprite with RWsSession by using RWsSprite(RWsSession &aWs). -//! 4. Construct the two RWsSprite. -//! 5. Create CFbsBitmap object and load bitmap to initialize TSpriteMember. -//! 6. Append three different bitmaps to the two sprites, each with the same mask. -//! 7. Set the two RWsSprite's position. -//! 8. Activate the first RWsSprite. -//! 9. Create CWsScreenDevice and compare the two rect before the second RWsSprite activate, they should be not same. -//! 10. Activate the second RWsSprite and compare the two rect again, they should be same. -//! 11. Destruct all created object and Close RWsSprite,RWsSession and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Compare two rect, one including sprite, the other not, so the two rect should not be same. -//! 2. Compare two rect with two sprite, they should be same. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CFbsBitmap mask1 - CREATE_OBJECT CFbsBitmap bitmap1 - CREATE_OBJECT CFbsBitmap bitmap2 - CREATE_OBJECT CFbsBitmap bitmap3 - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RWsSprite sprite - CREATE_OBJECT RWsSprite sprite2 - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WsSprite-Setup-0009-0001-new_command001 - COMMAND wingrp Construct GRAPHICS-WSERV-WsSprite-Setup-0009-0001-Construct_command003 - COMMAND win new GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-new_command004 - COMMAND win Construct GRAPHICS-WSERV-WsSprite-Setup-0009-0001-Construct_command002 - COMMAND win Activate - COMMAND sprite new GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-new_command006 - COMMAND sprite Construct GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-Construct_command007 - COMMAND sprite2 new GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-new_command006 - COMMAND sprite2 Construct GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-Construct_command007 - - COMMAND mask1 new - COMMAND mask1 Load GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-Load_command009 - - COMMAND bitmap1 new - COMMAND bitmap1 Load GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-Load_command011 - COMMAND sprite AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-AppendMember_command012 - COMMAND sprite2 AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-AppendMember_command012 - - COMMAND bitmap2 new - COMMAND bitmap2 Load GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-Load_command014 - COMMAND sprite AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-AppendMember_command015 - COMMAND sprite2 AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-AppendMember_command015 - - COMMAND bitmap3 new - COMMAND bitmap3 Load GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-Load_command017 - COMMAND sprite AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-AppendMember_command018 - COMMAND sprite2 AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-AppendMember_command018 - - COMMAND sprite SetPosition GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-SetPosition_command019 - COMMAND sprite2 SetPosition GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-SetPosition_command020 - COMMAND sprite Activate - - COMMAND scrdev new GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-new_command21 - COMMAND scrdev Construct - COMMAND win BeginRedraw - COMMAND win EndRedraw - //!COMMAND scrdev RectCompare GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-RectCompare_command23 - - COMMAND sprite2 Activate - //!COMMAND scrdev RectCompare GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-RectCompare_command24 - - COMMAND sprite Close - COMMAND sprite2 Close - COMMAND mask1 ~ - COMMAND bitmap1 ~ - COMMAND bitmap2 ~ - COMMAND bitmap3 ~ - COMMAND scrdev ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0009 - -START_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0010 -//! @SYMTestCaseID GRAPHICS-WSERV-WsSprite-PublicApi-0010 -//! @SYMAPI RWsSprite::Construct(RWindowTreeNode{ref}, const TPoint{ref}, TInt) -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 29/12/2007 -//! @SYMTestCaseDesc Create a RWsSprite object with RWsSession and construct with negative position(-20,-20) and flag 0. -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Create RWsSprite with RWsSession by using RWsSprite(RWsSession &aWs). -//! 4. Construct RWsSprite with negative position and flag 0. -//! 5. Close RWsSprite,RWsSession and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults RWsSprite object was constructed without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RWsSprite sprite - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WsSprite-PublicApi-0010-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-WsSprite-PublicApi-0010-0001-Construct_command004 - COMMAND win new GRAPHICS-WSERV-WsSprite-PublicApi-0010-0001-new_command005 - COMMAND win Construct GRAPHICS-WSERV-WsSprite-PublicApi-0010-0001-Construct_command006 - COMMAND sprite new GRAPHICS-WSERV-WsSprite-PublicApi-0010-0001-new_command007 - COMMAND sprite Construct GRAPHICS-WSERV-WsSprite-PublicApi-0010-0001-Construct_command008 - COMMAND sprite Close - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0010 - -START_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0011 -//! @SYMTestCaseID GRAPHICS-WSERV-WsSprite-PublicApi-0011 -//! @SYMAPI RWsSprite::Construct(RWindowTreeNode{ref}, const TPoint{ref}, TInt) -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 29/12/2007 -//! @SYMTestCaseDesc Construct sprite with ESpriteFlash flag. -//! Verify ESpriteFlash flag which be used when construct RWsSprite. -//! Create two sprite objects using the same bitmap data, but one set ESpriteFlash flag, and the other not. -//! mask1 is iMaskBitmap member of TSpriteMember and the other are iBitmap member of TSpriteMember. -//! @SYMTestActions 1. Create and connect a RWsSession, and create 4 CFbsBitmap objects. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Create two RWsSprite with RWsSession by using RWsSprite(RWsSession &aWs). -//! 4. Construct the two RWsSprite, one is constructed with ESpriteFlash flag, the other is constructed with flag 0. -//! 5. Create CFbsBitmap object and load bitmap to initialize TSpriteMember. -//! 6. Append three different bitmaps to the sprite, each with the same mask. -//! 7. Activate the two RWsSprite. -//! 8. Create CWsScreenDevice and compare the two rect which the two sprite located, they should differ. -//! 9. Destruct all created object and Close RWsSprite,RWsSession and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Constrcut RWsSprite with ESpriteFlash flag without panic. -//! 2. Compare two rect with two sprite, they should differ. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CFbsBitmap mask1 - CREATE_OBJECT CFbsBitmap bitmap1 - CREATE_OBJECT CFbsBitmap bitmap2 - CREATE_OBJECT CFbsBitmap bitmap3 - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RWsSprite sprite - CREATE_OBJECT RWsSprite sprite2 - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-Construct_command004 - COMMAND win new GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-new_command005 - COMMAND win Construct GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-Construct_command006 - COMMAND win Activate - COMMAND sprite new GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-new_command008 - COMMAND sprite Construct GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-Construct_command009 - COMMAND sprite2 new GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-new_command010 - COMMAND sprite2 Construct GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-Construct_command011 - - COMMAND mask1 new - COMMAND mask1 Load GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-Load_command013 - - COMMAND bitmap1 new - COMMAND bitmap1 Load GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-Load_command015 - COMMAND sprite AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-AppendMember_command016 - COMMAND sprite2 AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-AppendMember_command017 - - COMMAND bitmap2 new - COMMAND bitmap2 Load GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-Load_command019 - COMMAND sprite AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-AppendMember_command020 - COMMAND sprite2 AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-AppendMember_command021 - - COMMAND bitmap3 new - COMMAND bitmap3 Load GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-Load_command023 - COMMAND sprite AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-AppendMember_command024 - COMMAND sprite2 AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-AppendMember_command025 - - COMMAND sprite Activate - COMMAND sprite2 Activate - - COMMAND scrdev new GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-new_command28 - COMMAND scrdev Construct - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND scrdev RectCompare GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-RectCompare_command32 - - COMMAND sprite Close - COMMAND sprite2 Close - COMMAND mask1 ~ - COMMAND bitmap1 ~ - COMMAND bitmap2 ~ - COMMAND bitmap3 ~ - COMMAND scrdev ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0011 - -START_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0012 -//! @SYMTestCaseID GRAPHICS-WSERV-WsSprite-PublicApi-0012 -//! @SYMAPI RWsSprite::Construct(RWindowTreeNode{ref}, const TPoint{ref}, TInt) -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 29/12/2007 -//! @SYMTestCaseDesc Create a RWsSprite object with negative position(-20,-20) and ESpriteFlash flag. -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Create RWsSprite with RWsSession by using RWsSprite(RWsSession &aWs). -//! 4. Construct RWsSprite with negative position and ESpriteFlash flag. -//! 5. Close RWsSprite,RWsSession and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults RWsSprite object was constructed without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RWsSprite sprite - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WsSprite-PublicApi-0012-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-WsSprite-PublicApi-0012-0001-Construct_command004 - COMMAND win new GRAPHICS-WSERV-WsSprite-PublicApi-0012-0001-new_command005 - COMMAND win Construct GRAPHICS-WSERV-WsSprite-PublicApi-0012-0001-Construct_command006 - COMMAND sprite new GRAPHICS-WSERV-WsSprite-PublicApi-0012-0001-new_command007 - COMMAND sprite Construct GRAPHICS-WSERV-WsSprite-PublicApi-0012-0001-Construct_command008 - COMMAND sprite Close - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0012 - - -START_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0013 -//! @SYMTestCaseID GRAPHICS-WSERV-WsSprite-PublicApi-0013 -//! @SYMAPI RWsSprite::Construct(RWindowTreeNode{ref}, const TPoint{ref}, TInt) -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 29/12/2007 -//! @SYMTestCaseDesc Construct sprite with ESpriteNoChildClip flag. -//! Verify ESpriteNoChildClip flag which be used when construct RWsSprite. -//! Creates a window, and then creates its child window for the window. -//! After creating the windows, the first sprite is constructed with the parent window and the flag ESpriteNoChildClip, -//! and the second sprite is constructed with the parent window without the sprite flag. -//! Finally compare the first sprite and the second sprite to verify the behavior of the sprite flag. -//! mask1 is iMaskBitmap member of TSpriteMember and the other are iBitmap member of TSpriteMember. -//! @SYMTestActions 1. Create and connect a RWsSession, and create 4 CFbsBitmap objects. -//! 2. Create and construct RWindowGroup and RWindow, child window. -//! 3. Create two RWsSprite with RWsSession by using RWsSprite(RWsSession &aWs). -//! 4. Construct the two RWsSprite,one is constructed with ESpriteNoChildClip flag, then other is constructed with flag 0. -//! 5. Create CFbsBitmap object and load bitmap to initialize TSpriteMember. -//! 6. Append three different bitmaps to the two sprites, each with the same mask. -//! 7. Set the two window redraw and set the child window size,position. -//! 8. Activate the two window. -//! 9. Activate the two RWsSprite. -//! 10. Create CWsScreenDevice and compare the two rect which the two sprite located, they should be not same. -//! 11. Destruct all created object and Close RWsSprite,RWsSession and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Constrcut RWsSprite with ESpriteNoChildClip flag without panic. -//! 2. Compare two rect which two sprite(set/unset ESpriteNoChildClip flag) located, they should be not same. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CFbsBitmap mask1 - CREATE_OBJECT CFbsBitmap bitmap1 - CREATE_OBJECT CFbsBitmap bitmap2 - CREATE_OBJECT CFbsBitmap bitmap3 - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RWindow win2 - CREATE_OBJECT RWsSprite sprite - CREATE_OBJECT RWsSprite sprite2 - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-Construct_command004 - COMMAND win new GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-new_command005 - COMMAND win Construct GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-Construct_command006 - COMMAND win2 new GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-new_command007 - COMMAND win2 Construct GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-Construct_command008 - - COMMAND sprite new GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-new_command009 - COMMAND sprite Construct GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-Construct_command010 - COMMAND sprite2 new GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-new_command011 - COMMAND sprite2 Construct GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-Construct_command012 - - COMMAND mask1 new - COMMAND mask1 Load GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-Load_command014 - - COMMAND bitmap1 new - COMMAND bitmap1 Load GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-Load_command016 - COMMAND sprite AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-AppendMember_command017 - COMMAND sprite2 AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-AppendMember_command018 - - COMMAND bitmap2 new - COMMAND bitmap2 Load GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-Load_command020 - COMMAND sprite AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-AppendMember_command021 - COMMAND sprite2 AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-AppendMember_command022 - - COMMAND bitmap3 new - COMMAND bitmap3 Load GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-Load_command024 - COMMAND sprite AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-AppendMember_command025 - COMMAND sprite2 AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-AppendMember_command026 - - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND win2 BeginRedraw - COMMAND win2 EndRedraw - COMMAND win2 SetPosition GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-SetPosition_command031 - COMMAND win2 SetSize GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-SetSize_command032 - COMMAND win Activate - COMMAND win2 Activate - - COMMAND sprite Activate - COMMAND sprite2 Activate - - COMMAND scrdev new GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-new_command037 - COMMAND scrdev Construct - - //!COMMAND scrdev RectCompare GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-RectCompare_command039 - - COMMAND sprite Close - COMMAND sprite2 Close - COMMAND mask1 ~ - COMMAND bitmap1 ~ - COMMAND bitmap2 ~ - COMMAND bitmap3 ~ - COMMAND scrdev ~ - COMMAND win2 Close - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0013 - - -START_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0014 -//! @SYMTestCaseID GRAPHICS-WSERV-WsSprite-PublicApi-0014 -//! @SYMAPI RWsSprite::Construct(RWindowTreeNode{ref}, const TPoint{ref}, TInt) -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 29/12/2007 -//! @SYMTestCaseDesc Create a RWsSprite object with negative position(-20,-20) and ESpriteNoChildClip flag. -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Create RWsSprite with RWsSession by using RWsSprite(RWsSession &aWs). -//! 4. Construct RWsSprite with negative position and ESpriteNoChildClip flag. -//! 5. Close RWsSprite,RWsSession and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults RWsSprite object was constructed without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RWsSprite sprite - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WsSprite-PublicApi-0014-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-WsSprite-PublicApi-0014-0001-Construct_command004 - COMMAND win new GRAPHICS-WSERV-WsSprite-PublicApi-0014-0001-new_command005 - COMMAND win Construct GRAPHICS-WSERV-WsSprite-PublicApi-0014-0001-Construct_command006 - COMMAND sprite new GRAPHICS-WSERV-WsSprite-PublicApi-0014-0001-new_command007 - COMMAND sprite Construct GRAPHICS-WSERV-WsSprite-PublicApi-0014-0001-Construct_command008 - COMMAND sprite Close - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0014 - -START_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0015 -//! @SYMTestCaseID GRAPHICS-WSERV-WsSprite-PublicApi-0015 -//! @SYMAPI RWsSprite::Construct(RWindowTreeNode{ref}, const TPoint{ref}, TInt) -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 29/12/2007 -//! @SYMTestCaseDesc Construct sprite with ESpriteNoShadows flag. -//! Verify ESpriteNoShadows flag which be used when construct RWsSprite. -//! Create a window and create two sprite on it,one sprite with ESpriteNoShadows flag set,the other not set the flag; -//! Create another window over first window, and set its shadow can cover part of the two sprite. -//! mask1 is iMaskBitmap member of TSpriteMember and the other are iBitmap member of TSpriteMember. -//! @SYMTestActions 1. Create and connect a RWsSession, and create 4 CFbsBitmap objects. -//! 2. Create and construct RWindowGroup and two RWindow objects. -//! 3. Create two RWsSprite with RWsSession by using RWsSprite(RWsSession &aWs). -//! 4. Construct the two RWsSprite,one is constructed with ESpriteNoShadows flag, then other is constructed with flag 0. -//! 5. Create CFbsBitmap object and load bitmap to initialize TSpriteMember. -//! 6. Append three different bitmaps to the two sprite, each with the same mask. -//! 7. Set the two window redraw and set the second window size,position and shadow,make it over the first window. -//! 8. Activate the two window. -//! 9. Activate the two RWsSprite. -//! 10. Create CWsScreenDevice and compare the two rect which the two sprite located, they should be not same. -//! 11. Destruct all created object and Close RWsSprite,RWsSession and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Constrcut RWsSprite with ESpriteNoShadows flag without panic. -//! 2. Compare two rect which two sprite(set/unset ESpriteNoShadows) located, they should be not same. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CFbsBitmap mask1 - CREATE_OBJECT CFbsBitmap bitmap1 - CREATE_OBJECT CFbsBitmap bitmap2 - CREATE_OBJECT CFbsBitmap bitmap3 - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RWindow win2 - CREATE_OBJECT RWsSprite sprite - CREATE_OBJECT RWsSprite sprite2 - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-Construct_command004 - COMMAND win new GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-new_command005 - COMMAND win Construct GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-Construct_command006 - COMMAND win2 new GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-new_command007 - COMMAND win2 Construct GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-Construct_command008 - - COMMAND sprite new GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-new_command009 - COMMAND sprite Construct GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-Construct_command010 - COMMAND sprite2 new GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-new_command011 - COMMAND sprite2 Construct GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-Construct_command012 - - COMMAND mask1 new - COMMAND mask1 Load GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-Load_command014 - - COMMAND bitmap1 new - COMMAND bitmap1 Load GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-Load_command016 - COMMAND sprite AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-AppendMember_command017 - COMMAND sprite2 AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-AppendMember_command018 - - COMMAND bitmap2 new - COMMAND bitmap2 Load GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-Load_command020 - COMMAND sprite AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-AppendMember_command021 - COMMAND sprite2 AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-AppendMember_command022 - - COMMAND bitmap3 new - COMMAND bitmap3 Load GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-Load_command024 - COMMAND sprite AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-AppendMember_command025 - COMMAND sprite2 AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-AppendMember_command026 - - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND win2 BeginRedraw - COMMAND win2 EndRedraw - COMMAND win2 SetPosition GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-SetPosition_command031 - COMMAND win2 SetSize GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-SetSize_command032 - COMMAND win2 SetShadowHeight GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-SetShadowHeight_command033 - COMMAND win Activate - COMMAND win2 Activate - - COMMAND sprite Activate - COMMAND sprite2 Activate - - COMMAND scrdev new GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-new_command038 - COMMAND scrdev Construct - - COMMAND scrdev RectCompare GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-RectCompare_command040 - - COMMAND sprite Close - COMMAND sprite2 Close - COMMAND mask1 ~ - COMMAND bitmap1 ~ - COMMAND bitmap2 ~ - COMMAND bitmap3 ~ - COMMAND scrdev ~ - COMMAND win2 Close - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0015 - - -START_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0016 -//! @SYMTestCaseID GRAPHICS-WSERV-WsSprite-PublicApi-0016 -//! @SYMAPI RWsSprite::Construct(RWindowTreeNode{ref}, const TPoint{ref}, TInt) -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 29/12/2007 -//! @SYMTestCaseDesc Create a RWsSprite object with negative position(-20,-20) which out of screen and ESpriteNoShadows flag. -//! @SYMTestActions 1. Create and connect a RWsSession -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Create RWsSprite with RWsSession by using RWsSprite(RWsSession &aWs). -//! 4. Construct RWsSprite with negative position and ESpriteNoShadows flag. -//! 5. Close RWsSprite,RWsSession and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults RWsSprite object was constructed without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RWsSprite sprite - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WsSprite-PublicApi-0016-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-WsSprite-PublicApi-0016-0001-Construct_command004 - COMMAND win new GRAPHICS-WSERV-WsSprite-PublicApi-0016-0001-new_command005 - COMMAND win Construct GRAPHICS-WSERV-WsSprite-PublicApi-0016-0001-Construct_command006 - COMMAND sprite new GRAPHICS-WSERV-WsSprite-PublicApi-0016-0001-new_command007 - COMMAND sprite Construct GRAPHICS-WSERV-WsSprite-PublicApi-0016-0001-Construct_command008 - COMMAND sprite Close - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0016 - -START_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0017 -//! @SYMTestCaseID GRAPHICS-WSERV-WsSprite-PublicApi-0017 -//! @SYMAPI RWsSprite::SetPosition(const TPoint{ref}) -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 29/12/2007 -//! @SYMTestCaseDesc Create sprite with ESpriteFlash flag and set its position. -//! Construct sprite with ESpriteFlash flag and set its position to(-50,-50), (50,50), (5000,5000). -//! mask1 is iMaskBitmap member of TSpriteMember and the other are iBitmap member of TSpriteMember. -//! @SYMTestActions 1. Create and connect a RWsSession, create 4 CFbsBitmap objects. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Create RWsSprite with RWsSession by using RWsSprite(RWsSession &aWs). -//! 4. Construct RWsSprite with ESpriteFlash flag. -//! 5. Create CFbsBitmap object and load bitmap to initialize TSpriteMember. -//! 6. Append three different bitmaps to the sprite, each with the same mask. -//! 7. Activate RWsSprite. -//! 8. Set sprite position to (-50,-50). -//! 9. Set sprite position to (50,50). -//! 10. Set sprite position to (5000,5000). -//! 11. Destruct all created object and Close RWsSprite,RWsSession and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Call SetPosition function without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CFbsBitmap mask1 - CREATE_OBJECT CFbsBitmap bitmap1 - CREATE_OBJECT CFbsBitmap bitmap2 - CREATE_OBJECT CFbsBitmap bitmap3 - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RWsSprite sprite - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WsSprite-PublicApi-0017-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-WsSprite-PublicApi-0017-0001-Construct_command004 - COMMAND win new GRAPHICS-WSERV-WsSprite-PublicApi-0017-0001-new_command005 - COMMAND win Construct GRAPHICS-WSERV-WsSprite-PublicApi-0017-0001-Construct_command006 - COMMAND win Activate - COMMAND sprite new GRAPHICS-WSERV-WsSprite-PublicApi-0017-0001-new_command008 - COMMAND sprite Construct GRAPHICS-WSERV-WsSprite-PublicApi-0017-0001-Construct_command009 - COMMAND mask1 new - COMMAND mask1 Load GRAPHICS-WSERV-WsSprite-PublicApi-0017-0001-Load_command011 - - COMMAND bitmap1 new - COMMAND bitmap1 Load GRAPHICS-WSERV-WsSprite-PublicApi-0017-0001-Load_command013 - COMMAND sprite AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0017-0001-AppendMember_command014 - - COMMAND bitmap2 new - COMMAND bitmap2 Load GRAPHICS-WSERV-WsSprite-PublicApi-0017-0001-Load_command016 - COMMAND sprite AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0017-0001-AppendMember_command017 - - COMMAND bitmap3 new - COMMAND bitmap3 Load GRAPHICS-WSERV-WsSprite-PublicApi-0017-0001-Load_command019 - COMMAND sprite AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0017-0001-AppendMember_command020 - - COMMAND sprite Activate - COMMAND sprite SetPosition GRAPHICS-WSERV-WsSprite-PublicApi-0017-0001-SetPosition_command022 - COMMAND sprite SetPosition GRAPHICS-WSERV-WsSprite-PublicApi-0017-0001-SetPosition_command023 - COMMAND sprite SetPosition GRAPHICS-WSERV-WsSprite-PublicApi-0017-0001-SetPosition_command024 - - COMMAND sprite Close - COMMAND mask1 ~ - COMMAND bitmap1 ~ - COMMAND bitmap2 ~ - COMMAND bitmap3 ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0017 - -START_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0018 -//! @SYMTestCaseID GRAPHICS-WSERV-WsSprite-PublicApi-0018 -//! @SYMAPI RWsSprite::SetPosition(const TPoint{ref}) -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 29/12/2007 -//! @SYMTestCaseDesc Create sprite with ESpriteNoChildClip flag and set its position. -//! Construct sprite with ESpriteNoChildClip flag and set its position to(-50,-50), (50,50), (5000,5000). -//! mask1 is iMaskBitmap member of TSpriteMember and the other are iBitmap member of TSpriteMember. -//! @SYMTestActions 1. Create and connect a RWsSession, create 4 CFbsBitmap objects. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Create RWsSprite with RWsSession by using RWsSprite(RWsSession &aWs). -//! 4. Construct RWsSprite with ESpriteNoChildClip flag. -//! 5. Create CFbsBitmap object and load bitmap to initialize TSpriteMember. -//! 6. Append three different bitmaps to the sprite, each with the same mask. -//! 7. Activate RWsSprite. -//! 8. Set sprite position to (-50,-50). -//! 9. Set sprite position to (50,50). -//! 10. Set sprite position to (5000,5000). -//! 11. Destruct all created object and Close RWsSprite,RWsSession and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Call SetPosition function without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CFbsBitmap mask1 - CREATE_OBJECT CFbsBitmap bitmap1 - CREATE_OBJECT CFbsBitmap bitmap2 - CREATE_OBJECT CFbsBitmap bitmap3 - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RWsSprite sprite - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WsSprite-PublicApi-0018-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-WsSprite-PublicApi-0018-0001-Construct_command004 - COMMAND win new GRAPHICS-WSERV-WsSprite-PublicApi-0018-0001-new_command005 - COMMAND win Construct GRAPHICS-WSERV-WsSprite-PublicApi-0018-0001-Construct_command006 - COMMAND win Activate - COMMAND sprite new GRAPHICS-WSERV-WsSprite-PublicApi-0018-0001-new_command008 - COMMAND sprite Construct GRAPHICS-WSERV-WsSprite-PublicApi-0018-0001-Construct_command009 - COMMAND mask1 new - COMMAND mask1 Load GRAPHICS-WSERV-WsSprite-PublicApi-0018-0001-Load_command011 - - COMMAND bitmap1 new - COMMAND bitmap1 Load GRAPHICS-WSERV-WsSprite-PublicApi-0018-0001-Load_command013 - COMMAND sprite AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0018-0001-AppendMember_command014 - - COMMAND bitmap2 new - COMMAND bitmap2 Load GRAPHICS-WSERV-WsSprite-PublicApi-0018-0001-Load_command016 - COMMAND sprite AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0018-0001-AppendMember_command017 - - COMMAND bitmap3 new - COMMAND bitmap3 Load GRAPHICS-WSERV-WsSprite-PublicApi-0018-0001-Load_command019 - COMMAND sprite AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0018-0001-AppendMember_command020 - - COMMAND sprite Activate - COMMAND sprite SetPosition GRAPHICS-WSERV-WsSprite-PublicApi-0018-0001-SetPosition_command022 - COMMAND sprite SetPosition GRAPHICS-WSERV-WsSprite-PublicApi-0018-0001-SetPosition_command023 - COMMAND sprite SetPosition GRAPHICS-WSERV-WsSprite-PublicApi-0018-0001-SetPosition_command024 - - COMMAND sprite Close - COMMAND mask1 ~ - COMMAND bitmap1 ~ - COMMAND bitmap2 ~ - COMMAND bitmap3 ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0018 - -START_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0019 -//! @SYMTestCaseID GRAPHICS-WSERV-WsSprite-PublicApi-0019 -//! @SYMAPI RWsSprite::SetPosition(const TPoint{ref}) -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 29/12/2007 -//! @SYMTestCaseDesc Create sprite with ESpriteNoShadows flag and set its position. -//! Construct sprite with ESpriteNoShadows flag and set its position to(-50,-50), (50,50), (5000,5000). -//! mask1 is iMaskBitmap member of TSpriteMember and the other are iBitmap member of TSpriteMember. -//! @SYMTestActions 1. Create and connect a RWsSession, create 4 CFbsBitmap objects. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Create RWsSprite with RWsSession by using RWsSprite(RWsSession &aWs). -//! 4. Construct RWsSprite with ESpriteNoShadows flag. -//! 5. Create CFbsBitmap object and load bitmap to initialize TSpriteMember. -//! 6. Append three different bitmaps to the sprite, each with the same mask. -//! 7. Activate RWsSprite. -//! 8. Set sprite position to (-50,-50). -//! 9. Set sprite position to (50,50). -//! 10. Set sprite position to (5000,5000). -//! 11. Destruct all created object and Close RWsSprite,RWsSession and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Call SetPosition function without causing panic -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CFbsBitmap mask1 - CREATE_OBJECT CFbsBitmap bitmap1 - CREATE_OBJECT CFbsBitmap bitmap2 - CREATE_OBJECT CFbsBitmap bitmap3 - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RWsSprite sprite - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WsSprite-PublicApi-0019-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-WsSprite-PublicApi-0019-0001-Construct_command004 - COMMAND win new GRAPHICS-WSERV-WsSprite-PublicApi-0019-0001-new_command005 - COMMAND win Construct GRAPHICS-WSERV-WsSprite-PublicApi-0019-0001-Construct_command006 - COMMAND win Activate - COMMAND sprite new GRAPHICS-WSERV-WsSprite-PublicApi-0019-0001-new_command008 - COMMAND sprite Construct GRAPHICS-WSERV-WsSprite-PublicApi-0019-0001-Construct_command009 - COMMAND mask1 new - COMMAND mask1 Load GRAPHICS-WSERV-WsSprite-PublicApi-0019-0001-Load_command011 - - COMMAND bitmap1 new - COMMAND bitmap1 Load GRAPHICS-WSERV-WsSprite-PublicApi-0019-0001-Load_command013 - COMMAND sprite AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0019-0001-AppendMember_command014 - - COMMAND bitmap2 new - COMMAND bitmap2 Load GRAPHICS-WSERV-WsSprite-PublicApi-0019-0001-Load_command016 - COMMAND sprite AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0019-0001-AppendMember_command017 - - COMMAND bitmap3 new - COMMAND bitmap3 Load GRAPHICS-WSERV-WsSprite-PublicApi-0019-0001-Load_command019 - COMMAND sprite AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0019-0001-AppendMember_command020 - - COMMAND sprite Activate - COMMAND sprite SetPosition GRAPHICS-WSERV-WsSprite-PublicApi-0019-0001-SetPosition_command022 - COMMAND sprite SetPosition GRAPHICS-WSERV-WsSprite-PublicApi-0019-0001-SetPosition_command023 - COMMAND sprite SetPosition GRAPHICS-WSERV-WsSprite-PublicApi-0019-0001-SetPosition_command024 - - COMMAND sprite Close - COMMAND mask1 ~ - COMMAND bitmap1 ~ - COMMAND bitmap2 ~ - COMMAND bitmap3 ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0019 - -START_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0020 -//! @SYMTestCaseID GRAPHICS-WSERV-WsSprite-PublicApi-0020 -//! @SYMAPI RWsSprite::SetPosition(const TPoint{ref}) -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 29/12/2007 -//! @SYMTestCaseDesc Verify sprite position. -//! Compare two rect before sprite active,they should same;then move the sprite in one of the rect,compare again,they should be different. -//! mask1 is iMaskBitmap member of TSpriteMember and the other are iBitmap member of TSpriteMember. -//! @SYMTestActions 1. Create and connect a RWsSession, create 4 CFbsBitmap objects. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Create RWsSprite with RWsSession by using RWsSprite(RWsSession &aWs). -//! 4. Construct RWsSprite. -//! 5. Create CFbsBitmap object and load bitmap to initialize TSpriteMember. -//! 6. Append three different bitmaps to the sprite, each with the same mask. -//! 7. Compare two rect without sprite,they should be same. -//! 8. Activate RWsSprite. -//! 9. Set sprite position. -//! 10. Compare two rect with sprite, they should be different. -//! 11. Destruct all created object and Close RWsSprite,RWsSession and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults 1. Before activing the sprite, the two rect should be same. -//! 2. After activing and moving the sprite , the two rect should be different. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CWsScreenDevice scrdev - CREATE_OBJECT CFbsBitmap mask1 - CREATE_OBJECT CFbsBitmap bitmap1 - CREATE_OBJECT CFbsBitmap bitmap2 - CREATE_OBJECT CFbsBitmap bitmap3 - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RWsSprite sprite - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WsSprite-PublicApi-0020-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-WsSprite-PublicApi-0020-0001-Construct_command004 - COMMAND win new GRAPHICS-WSERV-WsSprite-PublicApi-0020-0001-new_command005 - COMMAND win Construct GRAPHICS-WSERV-WsSprite-PublicApi-0020-0001-Construct_command006 - COMMAND win Activate - COMMAND sprite new GRAPHICS-WSERV-WsSprite-PublicApi-0020-0001-new_command008 - COMMAND sprite Construct GRAPHICS-WSERV-WsSprite-PublicApi-0020-0001-Construct_command009 - COMMAND mask1 new - COMMAND mask1 Load GRAPHICS-WSERV-WsSprite-PublicApi-0020-0001-Load_command011 - - COMMAND bitmap1 new - COMMAND bitmap1 Load GRAPHICS-WSERV-WsSprite-PublicApi-0020-0001-Load_command013 - COMMAND sprite AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0020-0001-AppendMember_command014 - - COMMAND bitmap2 new - COMMAND bitmap2 Load GRAPHICS-WSERV-WsSprite-PublicApi-0020-0001-Load_command016 - COMMAND sprite AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0020-0001-AppendMember_command017 - - COMMAND bitmap3 new - COMMAND bitmap3 Load GRAPHICS-WSERV-WsSprite-PublicApi-0020-0001-Load_command019 - COMMAND sprite AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0020-0001-AppendMember_command020 - - COMMAND scrdev new GRAPHICS-WSERV-WsSprite-PublicApi-0020-0001-new_command021 - COMMAND win BeginRedraw - COMMAND win EndRedraw - COMMAND scrdev Construct - - //!COMMAND scrdev RectCompare GRAPHICS-WSERV-WsSprite-PublicApi-0020-0001-RectCompare_command025 - - COMMAND sprite Activate - COMMAND sprite SetPosition GRAPHICS-WSERV-WsSprite-PublicApi-0020-0001-SetPosition_command027 - - //!COMMAND scrdev RectCompare GRAPHICS-WSERV-WsSprite-PublicApi-0020-0001-RectCompare_command028 - - COMMAND sprite Close - COMMAND mask1 ~ - COMMAND bitmap1 ~ - COMMAND bitmap2 ~ - COMMAND bitmap3 ~ - COMMAND scrdev ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0020 - -START_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0022 -//! @SYMTestCaseID GRAPHICS-WSERV-WsSprite-PublicApi-0022 -//! @SYMAPI RWsSpriteBase::Activate() -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 03/01/2008 -//! @SYMTestCaseDesc Negative test, activate sprite without setting sprite member. -//! @SYMTestActions 1. Create and connect a RWsSession. -//! 2. Create and construct RWindowGroup & RWindow. -//! 3. Create RWsSprite with RWsSession by using RWsSprite(RWsSession &aWs). -//! 4. Construct RWsSprite. -//! 5. Activate RWsSprite without setting sprite member. -//! 6. Destruct all created object and Close RWsSprite,RWsSession and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults WSERV 63 panic when we Activate the sprite. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RWsSprite sprite - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WsSprite-PublicApi-0022-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-WsSprite-PublicApi-0022-0001-Construct_command004 - COMMAND win new GRAPHICS-WSERV-WsSprite-PublicApi-0022-0001-new_command005 - COMMAND win Construct GRAPHICS-WSERV-WsSprite-PublicApi-0022-0001-Construct_command006 - COMMAND win Activate - COMMAND sprite new GRAPHICS-WSERV-WsSprite-PublicApi-0022-0001-new_command008 - COMMAND sprite Construct GRAPHICS-WSERV-WsSprite-PublicApi-0022-0001-Construct_command009 - - COMMAND sprite Activate - - END_TEST_BLOCK !PanicString=WSERV !PanicCode=63 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0022 - -START_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0023 -//! @SYMTestCaseID GRAPHICS-WSERV-WsSprite-PublicApi-0023 -//! @SYMAPI RWsSpriteBase::UpdateMember(TInt, const TSpriteMember{ref}) -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 03/01/2008 -//! @SYMTestCaseDesc Negative test, update non-exist sprite member index(-1) with UpdateMember. -//! mask1 is iMaskBitmap member of TSpriteMember and the other are iBitmap member of TSpriteMember. -//! @SYMTestActions 1. Create and connect a RWsSession, create 4 CFbsBitmap objects. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Create RWsSprite with RWsSession by using RWsSprite(RWsSession &aWs). -//! 4. Construct RWsSprite. -//! 5. Create CFbsBitmap object and load bitmap to initialize TSpriteMember. -//! 6. Append three different bitmaps to the sprite, each with the same mask. -//! 7. Activate RWsSprite. -//! 8. Update sprite member with UpdateMember(TInt,const TSpriteMember &). -//! 9. Destruct all created object and Close RWsSprite,RWsSession and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Call UpdateMember function with non-exist sprite member index and return KErrArgument(-6). -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CFbsBitmap mask1 - CREATE_OBJECT CFbsBitmap bitmap1 - CREATE_OBJECT CFbsBitmap bitmap2 - CREATE_OBJECT CFbsBitmap bitmap3 - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RWsSprite sprite - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WsSprite-PublicApi-0023-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-WsSprite-PublicApi-0023-0001-Construct_command004 - COMMAND win new GRAPHICS-WSERV-WsSprite-PublicApi-0023-0001-new_command005 - COMMAND win Construct GRAPHICS-WSERV-WsSprite-PublicApi-0023-0001-Construct_command006 - COMMAND win Activate - COMMAND sprite new GRAPHICS-WSERV-WsSprite-PublicApi-0023-0001-new_command008 - COMMAND sprite Construct GRAPHICS-WSERV-WsSprite-PublicApi-0023-0001-Construct_command009 - COMMAND mask1 new - COMMAND mask1 Load GRAPHICS-WSERV-WsSprite-PublicApi-0023-0001-Load_command011 - - COMMAND bitmap1 new - COMMAND bitmap1 Load GRAPHICS-WSERV-WsSprite-PublicApi-0023-0001-Load_command013 - COMMAND sprite AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0023-0001-AppendMember_command014 - - COMMAND bitmap2 new - COMMAND bitmap2 Load GRAPHICS-WSERV-WsSprite-PublicApi-0023-0001-Load_command016 - COMMAND sprite AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0023-0001-AppendMember_command017 - - COMMAND bitmap3 new - COMMAND bitmap3 Load GRAPHICS-WSERV-WsSprite-PublicApi-0023-0001-Load_command019 - COMMAND sprite AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0023-0001-AppendMember_command020 - - COMMAND sprite Activate - COMMAND !Error=-6 sprite UpdateMember GRAPHICS-WSERV-WsSprite-PublicApi-0023-0001-UpdateMember_command022 - - COMMAND sprite Close - COMMAND mask1 ~ - COMMAND bitmap1 ~ - COMMAND bitmap2 ~ - COMMAND bitmap3 ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0023 - -START_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0024 -//! @SYMTestCaseID GRAPHICS-WSERV-WsSprite-PublicApi-0024 -//! @SYMAPI RWsSpriteBase::UpdateMember(TInt) -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 03/01/2008 -//! @SYMTestCaseDesc Negative test, Update non-exist sprite member index(-1) with UpdateMember. -//! mask1 is iMaskBitmap member of TSpriteMember and the other are iBitmap member of TSpriteMember. -//! @SYMTestActions 1. Create and connect a RWsSession, create 4 CFbsBitmap objects. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Create RWsSprite with RWsSession by using RWsSprite(RWsSession &aWs). -//! 4. Construct RWsSprite. -//! 5. Create CFbsBitmap object and load bitmap to initialize TSpriteMember. -//! 6. Append three different bitmaps to the sprite, each with the same mask. -//! 7. Activate RWsSprite. -//! 8. Update sprite member with UpdateMember(TInt). -//! 9. Destruct all created object and Close RWsSprite,RWsSession and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults Call UpdateMember function with non-exist sprite member index and without panic. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CFbsBitmap mask1 - CREATE_OBJECT CFbsBitmap bitmap1 - CREATE_OBJECT CFbsBitmap bitmap2 - CREATE_OBJECT CFbsBitmap bitmap3 - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RWsSprite sprite - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WsSprite-PublicApi-0024-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-WsSprite-PublicApi-0024-0001-Construct_command004 - COMMAND win new GRAPHICS-WSERV-WsSprite-PublicApi-0024-0001-new_command005 - COMMAND win Construct GRAPHICS-WSERV-WsSprite-PublicApi-0024-0001-Construct_command006 - COMMAND win Activate - COMMAND sprite new GRAPHICS-WSERV-WsSprite-PublicApi-0024-0001-new_command008 - COMMAND sprite Construct GRAPHICS-WSERV-WsSprite-PublicApi-0024-0001-Construct_command009 - COMMAND mask1 new - COMMAND mask1 Load GRAPHICS-WSERV-WsSprite-PublicApi-0024-0001-Load_command011 - - COMMAND bitmap1 new - COMMAND bitmap1 Load GRAPHICS-WSERV-WsSprite-PublicApi-0024-0001-Load_command013 - COMMAND sprite AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0024-0001-AppendMember_command014 - - COMMAND bitmap2 new - COMMAND bitmap2 Load GRAPHICS-WSERV-WsSprite-PublicApi-0024-0001-Load_command016 - COMMAND sprite AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0024-0001-AppendMember_command017 - - COMMAND bitmap3 new - COMMAND bitmap3 Load GRAPHICS-WSERV-WsSprite-PublicApi-0024-0001-Load_command019 - COMMAND sprite AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0024-0001-AppendMember_command020 - - COMMAND sprite Activate - COMMAND sprite UpdateMember GRAPHICS-WSERV-WsSprite-PublicApi-0024-0001-UpdateMember_command022 - - COMMAND sprite Close - COMMAND mask1 ~ - COMMAND bitmap1 ~ - COMMAND bitmap2 ~ - COMMAND bitmap3 ~ - COMMAND win Close - COMMAND wingrp Close - COMMAND ws Close - END_TEST_BLOCK -END_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0024 - -START_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0025 -//! @SYMTestCaseID GRAPHICS-WSERV-WsSprite-PublicApi-0025 -//! @SYMAPI RWsSpriteBase::UpdateMember(TInt, const TSpriteMember{ref}) -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 04/01/2008 -//! @SYMTestCaseDesc Negative test, update sprite member TSpriteMember with big size bitmap(200*200 dots per inch for mask). -//! mask1 is iMaskBitmap member of TSpriteMember and the other(bitmap1,bitmap2,bitmap3) are iBitmap member of TSpriteMember. -//! bitmap4 is big bitmap for iMaskBitmap member of TSpriteMember. -//! @SYMTestActions 1. Create and connect a RWsSession, create 4 CFbsBitmap objects. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Create RWsSprite with RWsSession by using RWsSprite(RWsSession &aWs). -//! 4. Construct RWsSprite. -//! 5. Create CFbsBitmap object and load bitmap to initialize TSpriteMember. -//! 6. Append three different bitmaps to the sprite, each with the same mask. -//! 7. Activate RWsSprite. -//! 8. Create and load big bitmap of TSpriteMember for update. -//! 9. Update sprite member with UpdateMember(TInt,const TSpriteMember &), this action will panic because the bitmap size bigger than mask bitmap. -//! 10. Destruct all created object and Close RWsSprite,RWsSession and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults WSERV 40 panic received when we call RWsSpriteBase::UpdateMember. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CFbsBitmap mask1 - CREATE_OBJECT CFbsBitmap bitmap1 - CREATE_OBJECT CFbsBitmap bitmap2 - CREATE_OBJECT CFbsBitmap bitmap3 - CREATE_OBJECT CFbsBitmap bitmap4 - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RWsSprite sprite - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WsSprite-PublicApi-0025-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-WsSprite-PublicApi-0025-0001-Construct_command004 - COMMAND win new GRAPHICS-WSERV-WsSprite-PublicApi-0025-0001-new_command005 - COMMAND win Construct GRAPHICS-WSERV-WsSprite-PublicApi-0025-0001-Construct_command006 - COMMAND win Activate - COMMAND sprite new GRAPHICS-WSERV-WsSprite-PublicApi-0025-0001-new_command008 - COMMAND sprite Construct GRAPHICS-WSERV-WsSprite-PublicApi-0025-0001-Construct_command009 - COMMAND mask1 new - COMMAND mask1 Load GRAPHICS-WSERV-WsSprite-PublicApi-0025-0001-Load_command011 - - COMMAND bitmap1 new - COMMAND bitmap1 Load GRAPHICS-WSERV-WsSprite-PublicApi-0025-0001-Load_command013 - COMMAND sprite AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0025-0001-AppendMember_command014 - - COMMAND bitmap2 new - COMMAND bitmap2 Load GRAPHICS-WSERV-WsSprite-PublicApi-0025-0001-Load_command016 - COMMAND sprite AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0025-0001-AppendMember_command017 - - COMMAND bitmap3 new - COMMAND bitmap3 Load GRAPHICS-WSERV-WsSprite-PublicApi-0025-0001-Load_command019 - COMMAND sprite AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0025-0001-AppendMember_command020 - - COMMAND sprite Activate - - COMMAND bitmap4 new - COMMAND bitmap4 Load GRAPHICS-WSERV-WsSprite-PublicApi-0025-0001-Load_command023 - - COMMAND sprite UpdateMember GRAPHICS-WSERV-WsSprite-PublicApi-0025-0001-UpdateMember_command024 - - END_TEST_BLOCK !PanicString=WSERV !PanicCode=40 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0025 - -START_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0026 -//! @SYMTestCaseID GRAPHICS-WSERV-WsSprite-PublicApi-0026 -//! @SYMAPI RWsSpriteBase::AppendMember(const TSpriteMember{ref}) -//! @SYMAuthor Jeffery Zhao -//! @SYMCreationDate 04/01/2008 -//! @SYMTestCaseDesc Negative test, append sprite member TSpriteMember with big size bitmap(200*200 dots per inch for mask). -//! mask1 is iMaskBitmap member of TSpriteMember and the other(bitmap1,bitmap2) are iBitmap member of TSpriteMember. -//! bitmap3 is big bitmap for iMaskBitmap member of TSpriteMember. -//! @SYMTestActions 1. Create and connect a RWsSession, create 4 CFbsBitmap objects. -//! 2. Create and construct RWindowGroup and RWindow. -//! 3. Create RWsSprite with RWsSession by using RWsSprite(RWsSession &aWs). -//! 4. Construct RWsSprite. -//! 5. Create CFbsBitmap object and load bitmap to initialize TSpriteMember. -//! 6. Append three different bitmaps to the sprite, each with the same mask; and the third one is bigger than mask bitmap. -//! 7. Activate RWsSprite, this action will panic because the bitmap size bigger than mask bitmap. -//! 8. Destruct all created object and Close RWsSprite,RWsSession and RWindow. -//! @SYMTestStatus Implemented -//! @SYMTestPriority High -//! @SYMTestExpectedResults WSERV 40 panic received when we Activate the sprite. -//! @SYMTestType CIT - START_TEST_BLOCK 10 T_GraphicsWservAPI \graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini - CREATE_OBJECT RWsSession ws - CREATE_OBJECT CFbsBitmap mask1 - CREATE_OBJECT CFbsBitmap bitmap1 - CREATE_OBJECT CFbsBitmap bitmap2 - CREATE_OBJECT CFbsBitmap bitmap3 - CREATE_OBJECT CFbsBitmap bitmap4 - CREATE_OBJECT RWindowGroup wingrp - CREATE_OBJECT RWindow win - CREATE_OBJECT RWsSprite sprite - COMMAND ws new - COMMAND ws Connect - COMMAND wingrp new GRAPHICS-WSERV-WsSprite-PublicApi-0026-0001-new_command003 - COMMAND wingrp Construct GRAPHICS-WSERV-WsSprite-PublicApi-0026-0001-Construct_command004 - COMMAND win new GRAPHICS-WSERV-WsSprite-PublicApi-0026-0001-new_command005 - COMMAND win Construct GRAPHICS-WSERV-WsSprite-PublicApi-0026-0001-Construct_command006 - COMMAND win Activate - COMMAND sprite new GRAPHICS-WSERV-WsSprite-PublicApi-0026-0001-new_command008 - COMMAND sprite Construct GRAPHICS-WSERV-WsSprite-PublicApi-0026-0001-Construct_command009 - COMMAND mask1 new - COMMAND mask1 Load GRAPHICS-WSERV-WsSprite-PublicApi-0026-0001-Load_command011 - - COMMAND bitmap1 new - COMMAND bitmap1 Load GRAPHICS-WSERV-WsSprite-PublicApi-0026-0001-Load_command013 - COMMAND sprite AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0026-0001-AppendMember_command014 - - COMMAND bitmap2 new - COMMAND bitmap2 Load GRAPHICS-WSERV-WsSprite-PublicApi-0026-0001-Load_command016 - COMMAND sprite AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0026-0001-AppendMember_command017 - - COMMAND bitmap3 new - COMMAND bitmap3 Load GRAPHICS-WSERV-WsSprite-PublicApi-0026-0001-Load_command019 - COMMAND sprite AppendMember GRAPHICS-WSERV-WsSprite-PublicApi-0026-0001-AppendMember_command020 - - COMMAND sprite Activate - - END_TEST_BLOCK !PanicString=WSERV !PanicCode=40 - RUN_TEST_STEP 100 T_GraphicsWservAPI utilityClearPanicDlg -END_TESTCASE GRAPHICS-WSERV-WsSprite-PublicApi-0026 diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/scripts/setup-T-GRAPHICS-WSERV-PublicApi.script --- a/graphicsapitest/graphicssvs/wserv/scripts/setup-T-GRAPHICS-WSERV-PublicApi.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,194 +0,0 @@ -// -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// - -RUN_UTILS MkDir ${SYSDRIVE}\graphics\ -RUN_UTILS MkDir ${SYSDRIVE}\graphics\wserv\ - -RUN_UTILS CopyFile z:\graphics\GRAPHICS-WSERV-PublicApi.script ${SYSDRIVE}\graphics\GRAPHICS-WSERV-PublicApi.script -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-WSERV-PublicApi.script - -RUN_UTILS CopyFile z:\graphics\t_graphics.tcs ${SYSDRIVE}\graphics\t_graphics.tcs -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\t_graphics.tcs -RUN_UTILS CopyFile z:\graphics\t_graphics_panic.tcs ${SYSDRIVE}\graphics\t_graphics_panic.tcs -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\t_graphics_panic.tcs - - -//T_DataWsSession -RUN_UTILS CopyFile z:\graphics\GRAPHICS-WSERV-Session-PublicApi.script ${SYSDRIVE}\graphics\GRAPHICS-WSERV-Session-PublicApi.script -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-WSERV-Session-PublicApi.script -RUN_UTILS CopyFile z:\graphics\GRAPHICS-WSERV-Session-PublicApi.ini ${SYSDRIVE}\graphics\GRAPHICS-WSERV-Session-PublicApi.ini -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-WSERV-Session-PublicApi.ini - -//T_DataWindowGroup -RUN_UTILS CopyFile z:\graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.script ${SYSDRIVE}\graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.script -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.script -RUN_UTILS CopyFile z:\graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini ${SYSDRIVE}\graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-WSERV-WindowGroup-PublicApi.ini - -//T_DataBlankWindow -RUN_UTILS CopyFile z:\graphics\GRAPHICS-WSERV-BlankWindow-PublicApi.script ${SYSDRIVE}\graphics\GRAPHICS-WSERV-BlankWindow-PublicApi.script -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-WSERV-BlankWindow-PublicApi.script -RUN_UTILS CopyFile z:\graphics\GRAPHICS-WSERV-BlankWindow-PublicApi.ini ${SYSDRIVE}\graphics\GRAPHICS-WSERV-BlankWindow-PublicApi.ini -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-WSERV-BlankWindow-PublicApi.ini - -//T_DataWindow -RUN_UTILS CopyFile z:\graphics\GRAPHICS-WSERV-Window-PublicApi.script ${SYSDRIVE}\graphics\GRAPHICS-WSERV-Window-PublicApi.script -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-WSERV-Window-PublicApi.script -RUN_UTILS CopyFile z:\graphics\GRAPHICS-WSERV-Window-PublicApi.ini ${SYSDRIVE}\graphics\GRAPHICS-WSERV-Window-PublicApi.ini -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-WSERV-Window-PublicApi.ini - -//T_DataBackedUpWindow -RUN_UTILS CopyFile z:\graphics\GRAPHICS-WSERV-BackedUpWindow-PublicApi.script ${SYSDRIVE}\graphics\GRAPHICS-WSERV-BackedUpWindow-PublicApi.script -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-WSERV-BackedUpWindow-PublicApi.script -RUN_UTILS CopyFile z:\graphics\GRAPHICS-WSERV-BackedUpWindow-PublicApi.ini ${SYSDRIVE}\graphics\GRAPHICS-WSERV-BackedUpWindow-PublicApi.ini -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-WSERV-BackedUpWindow-PublicApi.ini - -//T_DataWindowGc -RUN_UTILS CopyFile z:\graphics\GRAPHICS-WSERV-WindowGc-PublicApi.script ${SYSDRIVE}\graphics\GRAPHICS-WSERV-WindowGc-PublicApi.script -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-WSERV-WindowGc-PublicApi.script -RUN_UTILS CopyFile z:\graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini ${SYSDRIVE}\graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-WSERV-WindowGc-PublicApi.ini - -//T_DataWsBitmap -RUN_UTILS CopyFile z:\graphics\GRAPHICS-WSERV-WsBitmap-PublicApi.script ${SYSDRIVE}\graphics\GRAPHICS-WSERV-WsBitmap-PublicApi.script -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-WSERV-WsBitmap-PublicApi.script -RUN_UTILS CopyFile z:\graphics\GRAPHICS-WSERV-WsBitmap-PublicApi.ini ${SYSDRIVE}\graphics\GRAPHICS-WSERV-WsBitmap-PublicApi.ini -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-WSERV-WsBitmap-PublicApi.ini - -//T_DataGraphicBitmap -RUN_UTILS CopyFile z:\graphics\GRAPHICS-WSERV-WsGraphicBitmap-PublicApi.script ${SYSDRIVE}\graphics\GRAPHICS-WSERV-WsGraphicBitmap-PublicApi.script -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-WSERV-WsGraphicBitmap-PublicApi.script -RUN_UTILS CopyFile z:\graphics\GRAPHICS-WSERV-WsGraphicBitmap-PublicApi.ini ${SYSDRIVE}\graphics\GRAPHICS-WSERV-WsGraphicBitmap-PublicApi.ini -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-WSERV-WsGraphicBitmap-PublicApi.ini - -//T_DataGraphicMsgBuf -RUN_UTILS CopyFile z:\graphics\GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.script ${SYSDRIVE}\graphics\GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.script -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.script -RUN_UTILS CopyFile z:\graphics\GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.ini ${SYSDRIVE}\graphics\GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.ini -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.ini - -//T_DataWsEvent T_DataWsPriorityKeyEvent T_DataWsRedrawEvent -RUN_UTILS CopyFile z:\graphics\GRAPHICS-WSERV-Events-PublicApi.script ${SYSDRIVE}\graphics\GRAPHICS-WSERV-Events-PublicApi.script -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-WSERV-Events-PublicApi.script -RUN_UTILS CopyFile z:\graphics\GRAPHICS-WSERV-Events-PublicApi.ini ${SYSDRIVE}\graphics\GRAPHICS-WSERV-Events-PublicApi.ini -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\GRAPHICS-WSERV-Events-PublicApi.ini - -//T_DataDirectScreenAccess -RUN_UTILS CopyFile z:\graphics\GRAPHICS-WSERV-DirectScreenAccess-PublicApi.script c:\graphics\GRAPHICS-WSERV-DirectScreenAccess-PublicApi.script -RUN_UTILS MakeReadWrite c:\graphics\GRAPHICS-WSERV-DirectScreenAccess-PublicApi.script -RUN_UTILS CopyFile z:\graphics\GRAPHICS-WSERV-DirectScreenAccess-PublicApi.ini c:\graphics\GRAPHICS-WSERV-DirectScreenAccess-PublicApi.ini -RUN_UTILS MakeReadWrite c:\graphics\GRAPHICS-WSERV-DirectScreenAccess-PublicApi.ini - -//T_DataDsaSession -RUN_UTILS CopyFile z:\graphics\GRAPHICS-WSERV-DsaSession-PublicApi.script c:\graphics\GRAPHICS-WSERV-DsaSession-PublicApi.script -RUN_UTILS MakeReadWrite c:\graphics\GRAPHICS-WSERV-DsaSession-PublicApi.script -RUN_UTILS CopyFile z:\graphics\GRAPHICS-WSERV-DsaSession-PublicApi.ini c:\graphics\GRAPHICS-WSERV-DsaSession-PublicApi.ini -RUN_UTILS MakeReadWrite c:\graphics\GRAPHICS-WSERV-DsaSession-PublicApi.ini - -//T_DataWsSprite -RUN_UTILS CopyFile z:\graphics\GRAPHICS-WSERV-WsSprite-PublicApi.script c:\graphics\GRAPHICS-WSERV-WsSprite-PublicApi.script -RUN_UTILS MakeReadWrite c:\graphics\GRAPHICS-WSERV-WsSprite-PublicApi.script -RUN_UTILS CopyFile z:\graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini c:\graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini -RUN_UTILS MakeReadWrite c:\graphics\GRAPHICS-WSERV-WsSprite-PublicApi.ini - -//T_DataWsPointerCursor -RUN_UTILS CopyFile z:\graphics\GRAPHICS-WSERV-WsPointerCursor-PublicApi.script c:\graphics\GRAPHICS-WSERV-WsPointerCursor-PublicApi.script -RUN_UTILS MakeReadWrite c:\graphics\GRAPHICS-WSERV-WsPointerCursor-PublicApi.script -RUN_UTILS CopyFile z:\graphics\GRAPHICS-WSERV-WsPointerCursor-PublicApi.ini c:\graphics\GRAPHICS-WSERV-WsPointerCursor-PublicApi.ini -RUN_UTILS MakeReadWrite c:\graphics\GRAPHICS-WSERV-WsPointerCursor-PublicApi.ini - -//T_DataSoundPlugIn -RUN_UTILS CopyFile z:\graphics\GRAPHICS-WSERV-SoundPlugin-PublicAPI.script c:\graphics\GRAPHICS-WSERV-SoundPlugin-PublicAPI.script -RUN_UTILS MakeReadWrite c:\graphics\GRAPHICS-WSERV-SoundPlugin-PublicAPI.script -RUN_UTILS CopyFile z:\graphics\GRAPHICS-WSERV-SoundPlugin-PublicAPI.ini c:\graphics\GRAPHICS-WSERV-SoundPlugin-PublicAPI.ini -RUN_UTILS MakeReadWrite c:\graphics\GRAPHICS-WSERV-SoundPlugin-PublicAPI.ini - -//T_DataWSScreenDevice -RUN_UTILS CopyFile z:\graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.script c:\graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.script -RUN_UTILS MakeReadWrite c:\graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.script -RUN_UTILS CopyFile z:\graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini c:\graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini -RUN_UTILS MakeReadWrite c:\graphics\GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini - -//T_DataFrame -RUN_UTILS CopyFile z:\graphics\GRAPHICS-WSERV-Frame-PublicAPI.script c:\graphics\GRAPHICS-WSERV-Frame-PublicAPI.script -RUN_UTILS MakeReadWrite c:\graphics\GRAPHICS-WSERV-Frame-PublicAPI.script -RUN_UTILS CopyFile z:\graphics\GRAPHICS-WSERV-Frame-PublicAPI.ini c:\graphics\GRAPHICS-WSERV-Frame-PublicAPI.ini -RUN_UTILS MakeReadWrite c:\graphics\GRAPHICS-WSERV-Frame-PublicAPI.ini - -//T_DataWsGraphicBitmapAnimation -RUN_UTILS CopyFile z:\graphics\GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicAPI.script c:\graphics\GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicAPI.script -RUN_UTILS MakeReadWrite c:\graphics\GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicAPI.script -RUN_UTILS CopyFile z:\graphics\GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicAPI.ini c:\graphics\GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicAPI.ini -RUN_UTILS MakeReadWrite c:\graphics\GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicAPI.ini - -//T_DataAnim -RUN_UTILS CopyFile z:\graphics\GRAPHICS-WSERV-Anim-PublicAPI.script c:\graphics\GRAPHICS-WSERV-Anim-PublicAPI.script -RUN_UTILS MakeReadWrite c:\graphics\GRAPHICS-WSERV-Anim-PublicAPI.script -RUN_UTILS CopyFile z:\graphics\GRAPHICS-WSERV-Anim-PublicAPI.ini c:\graphics\GRAPHICS-WSERV-Anim-PublicAPI.ini -RUN_UTILS MakeReadWrite c:\graphics\GRAPHICS-WSERV-Anim-PublicAPI.ini - -//T_DataAnimDll -RUN_UTILS CopyFile z:\graphics\GRAPHICS-WSERV-AnimDll-PublicAPI.script c:\graphics\GRAPHICS-WSERV-AnimDll-PublicAPI.script -RUN_UTILS MakeReadWrite c:\graphics\GRAPHICS-WSERV-AnimDll-PublicAPI.script -RUN_UTILS CopyFile z:\graphics\GRAPHICS-WSERV-AnimDll-PublicAPI.ini c:\graphics\GRAPHICS-WSERV-AnimDll-PublicAPI.ini -RUN_UTILS MakeReadWrite c:\graphics\GRAPHICS-WSERV-AnimDll-PublicAPI.ini - -//T_DataAnimForMClass -RUN_UTILS CopyFile z:\graphics\GRAPHICS-WSERV-AnimGfwe-PublicAPI.script c:\graphics\GRAPHICS-WSERV-AnimGfwe-PublicAPI.script -RUN_UTILS MakeReadWrite c:\graphics\GRAPHICS-WSERV-AnimGfwe-PublicAPI.script -RUN_UTILS CopyFile z:\graphics\GRAPHICS-WSERV-AnimGfwe-PublicAPI.ini c:\graphics\GRAPHICS-WSERV-AnimGfwe-PublicAPI.ini -RUN_UTILS MakeReadWrite c:\graphics\GRAPHICS-WSERV-AnimGfwe-PublicAPI.ini - -RUN_UTILS CopyFile z:\graphics\GRAPHICS-WSERV-AnimWindowFunctions-PublicAPI.script c:\graphics\GRAPHICS-WSERV-AnimWindowFunctions-PublicAPI.script -RUN_UTILS MakeReadWrite c:\graphics\GRAPHICS-WSERV-AnimWindowFunctions-PublicAPI.script -RUN_UTILS CopyFile z:\graphics\GRAPHICS-WSERV-AnimWindowFunctions-PublicAPI.ini c:\graphics\GRAPHICS-WSERV-AnimWindowFunctions-PublicAPI.ini -RUN_UTILS MakeReadWrite c:\graphics\GRAPHICS-WSERV-AnimWindowFunctions-PublicAPI.ini - -RUN_UTILS CopyFile z:\graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicAPI.script c:\graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicAPI.script -RUN_UTILS MakeReadWrite c:\graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicAPI.script -RUN_UTILS CopyFile z:\graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicAPI.ini c:\graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicAPI.ini -RUN_UTILS MakeReadWrite c:\graphics\GRAPHICS-WSERV-AnimGeneralFunctions-PublicAPI.ini - -RUN_UTILS CopyFile z:\graphics\GRAPHICS-WSERV-AnimSpriteFunctions-PublicAPI.script c:\graphics\GRAPHICS-WSERV-AnimSpriteFunctions-PublicAPI.script -RUN_UTILS MakeReadWrite c:\graphics\GRAPHICS-WSERV-AnimSpriteFunctions-PublicAPI.script -RUN_UTILS CopyFile z:\graphics\GRAPHICS-WSERV-AnimSpriteFunctions-PublicAPI.ini c:\graphics\GRAPHICS-WSERV-AnimSpriteFunctions-PublicAPI.ini -RUN_UTILS MakeReadWrite c:\graphics\GRAPHICS-WSERV-AnimSpriteFunctions-PublicAPI.ini - - -RUN_UTILS MkDir \graphics\wserv - -//datafile test_board.mbm -RUN_UTILS CopyFile z:\graphics\wserv\test_board.mbm ${SYSDRIVE}\graphics\wserv\test_board.mbm -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\wserv\test_board.mbm - -//datafile test_mask.mbm -RUN_UTILS CopyFile z:\graphics\wserv\test_mask.mbm ${SYSDRIVE}\graphics\wserv\test_mask.mbm -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\wserv\test_mask.mbm - -//datafile test_alpha.mbm -RUN_UTILS CopyFile z:\graphics\wserv\test_alpha.mbm ${SYSDRIVE}\graphics\wserv\test_alpha.mbm -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\wserv\test_alpha.mbm -//datafile test_rwssprite_bitmap.mbm -RUN_UTILS CopyFile z:\graphics\wserv\test_rwssprite_bitmap.mbm ${SYSDRIVE}\graphics\wserv\test_rwssprite_bitmap.mbm -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\wserv\test_rwssprite_bitmap.mbm - -//datafile WsGraphicBitmapAnimation.mbm -RUN_UTILS CopyFile z:\graphics\wserv\WsGraphicBitmapAnimation.mbm ${SYSDRIVE}\graphics\wserv\WsGraphicBitmapAnimation.mbm -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\wserv\WsGraphicBitmapAnimation.mbm - -//datafile testfontws.gdr -RUN_UTILS CopyFile z:\graphics\wserv\testfontws.gdr ${SYSDRIVE}\graphics\wserv\testfontws.gdr -RUN_UTILS MakeReadWrite ${SYSDRIVE}\graphics\wserv\testfontws.gdr diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/src/T_DataAnim.cpp --- a/graphicsapitest/graphicssvs/wserv/src/T_DataAnim.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,699 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -#include "T_DataAnim.h" -#include "T_GraphicsUtil.h" -#include "T_AnimDef.h" - -#define KMaxBufSize 250 - -/*@{*/ -_LIT(KDataClassname, "RAnim"); - -/// Fields -_LIT(KFldAnimDll, "animdll"); -_LIT(KFldWin, "win"); -_LIT(KFldSprite, "sprite"); -_LIT(KFldType, "type"); -_LIT(KFldParam, "param"); -_LIT(KFldIpcArgs, "ipcargs"); -_LIT(KFldOpcode, "opcode"); -_LIT(KFldArgs, "args"); -_LIT(KFldIpcArg, "ipcargs%d"); -_LIT(KFldExpectedIpcArg, "expected_ipcargs%d"); - -// enum -_LIT(KEAnimWindows, "EKWindowAnim"); -_LIT(KEAnimSprite, "EKSpriteAnim"); -_LIT(KEAnimFreeTimer, "EKFreeTimerWindowAnim"); - - -_LIT(KEAnimCmdSync, "ECmdSync"); -_LIT(KEAnimCmdTestWithoutPara, "ECmdTestWithoutPara"); -_LIT(KEAnimCmdTestWithPara, "ECmdTestWithPara"); -_LIT(KEAnimCmdGetLast, "ECmdGetLast"); -_LIT(KEAnimCmdGetAnimInterval, "ECmdGetAnimInterval"); - - -// animate interval -_LIT(KFldCheckAnimateInterval, "CheckAnimateInterval"); -_LIT(KFldAnimIpcArgSlot, "AnimIpcArgSlot"); -_LIT(KFldAnimIntervalMin, "AnimIntervalMin"); -_LIT(KFldAnimIntervalMax, "AnimIntervalMax"); - -_LIT(KIpcArgNothing, "ENothing"); - -/// Commands -_LIT(KCmdnew, "new"); -_LIT(KCmdDestructorGeneral, "~"); -_LIT(KCmdDestructor, "~RAnim"); -_LIT(KCmdConstruct, "Construct"); -_LIT(KCmdCommandReply, "CommandReply"); -_LIT(KCmdCommand, "Command"); -_LIT(KCmdAsyncCommandReply, "AsyncCommandReply"); -_LIT(KCmdDestroy, "Destroy"); -_LIT(KCmdClose, "Close"); - -/// Logging -_LIT(KLogErrNum, "Error=%d"); -_LIT(KLogErrMissingPara, "Missing parameter '%S'"); -_LIT(KLogInfoCmdnewL1, "execute new RAnim(RAnimDll &)"); -_LIT(KLogInfoCmdnewL2, "execute new RAnim()"); -_LIT(KLogErrConstruct, "Construct return err = %d"); -_LIT(KLogInfoCmdConstruct1, "execute RAnim::Construct(const RWindowBase &, TInt, const TDesC8 &)"); -_LIT(KLogInfoCmdConstruct2, "execute RAnim::Construct(const RWindowBase &, TInt, const TDesC8 &, const TIpcArgs &)"); -_LIT(KLogInfoCmdConstruct3, "execute RAnim::Construct(const RWsSprite &, TInt, const TDesC8 &)"); -_LIT(KLogInfoCmdConstruct4, "execute RAnim::Construct(const RWsSprite &, TInt, const TDesC8 &, const TIpcArgs &)"); -_LIT(KLogErrCommandReply, "CommandReply return err = %d"); -_LIT(KLogInfoCmdCommandReply1, "execute RAnim::CommandReply(TInt)"); -_LIT(KLogInfoCmdCommandReply2, "execute RAnim::CommandReply(TInt, const TPtrC8 &)"); -_LIT(KLogInfoCmdCommandReply3, "execute RAnim::CommandReply(TInt, const TDesC8 &, const TIpcArgs &)"); -_LIT(KLogErrCommand, "Command return err = %d"); -_LIT(KLogErrCheckIpcValue, "Ipc arg compare fail expected=%S actual=%S"); -_LIT(KLogErrIpcValue, "Ipc arg return value err"); - -_LIT(KLogErrAnimInterval, "Animate interval error expected min=%d max=%d"); - -_LIT(KLogInfoAnimInterval, "Animate interval actual min=%d max=%d"); - -_LIT(KLogInfoCmdCommand1, "execute RAnim::Command(TInt, const TPtrC8 &)"); -_LIT(KLogInfoCmdCommand2, "execute RAnim::Command(TInt)"); -_LIT(KLogInfoCmdAsyncCommandReply1, "execute RAnim::AsyncCommandReply(TRequestStatus &, TInt, const TIpcArgs &)"); - -_LIT(KLogInfoCmdClose1, "execute RAnim::Close()"); -_LIT(KLogInfoCmdDestroy1, "execute RAnim::Destroy()"); -_LIT(KLogInfoCmdDestructor1, "execute ~RAnim()"); -/*@}*/ - -CT_DataAnim* CT_DataAnim::NewL() - { - CT_DataAnim* ret = new (ELeave) CT_DataAnim(); - CleanupStack::PushL(ret); - ret->ConstructL(); - CleanupStack::Pop(ret); - return ret; - } - -CT_DataAnim::CT_DataAnim() -: iActiveCallback(NULL) - ,iAnim(NULL) - { - } - -void CT_DataAnim::ConstructL() - { - iActiveCallback = CActiveCallback::NewL(*this); - iSendBuf.CreateL(KMaxBufSize); - - for (TInt i=0;i (aAny); - } - -void CT_DataAnim::DisownObjectL() - { - iAnim = NULL; - } - -void CT_DataAnim::DestroyData() - { - DoCmdDestructor(); - } - -/** -* Process a command read from the ini file -* -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* @param aAsyncErrorIndex index of command. used for async calls -* -* @return ETrue if the command is processed -*/ -TBool CT_DataAnim::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex) - { - TBool ret = ETrue; - - if ( aCommand==KCmdDestructorGeneral || aCommand==KCmdDestructor ) - { - DoCmdDestructor(); - } - else if ( aCommand==KCmdnew || aCommand==KDataClassname ) - { - DoCmdnewL(aSection); - } - else if ( aCommand==KCmdConstruct ) - { - DoCmdConstructL(aSection); - } - else if ( aCommand==KCmdCommandReply ) - { - DoCmdCommandReply(aSection); - } - else if ( aCommand==KCmdCommand ) - { - DoCmdCommand(aSection); - } - else if ( aCommand==KCmdAsyncCommandReply ) - { - DoCmdAsyncCommandReply(aSection, aAsyncErrorIndex); - } - else if ( aCommand==KCmdDestroy ) - { - DoCmdDestroy(); - } - else if ( aCommand==KCmdClose ) - { - DoCmdClose(); - } - else - { - ret=EFalse; - } - - return ret; - } - -void CT_DataAnim::DoCmdnewL(const TDesC& aSection) - { - DestroyData(); - - // Get test data for command input parameter(s) - TPtrC datDllName; - RAnimDll* animDll = NULL; - if ( GetStringFromConfig(aSection, KFldAnimDll, datDllName) ) - { - animDll = static_cast(GetDataObjectL(datDllName)); - } - - TInt err = KErrNone; - if ( animDll ) - { - // Execute command and log parameters - INFO_PRINTF1(KLogInfoCmdnewL1); - iAnim = new (ELeave) T_RAnimChild(*animDll) ; - } - else - { - // Execute command and log parameters - INFO_PRINTF1(KLogInfoCmdnewL2); - iAnim = new (ELeave) T_RAnimChild(); - } - } - -TBool CT_DataAnim::GetIpcArg(const TDesC& aSection) - { - TBool argexist=EFalse; - - TBuf <100> field; - TPtrC val; - for (TInt i=0;i0 ) - { - // get actual min interval - TPtrC val1=iIpcBuf[slot].Left(find); - TLex lex1(val1); - lex1.Val(amin); - - // get actual max interval - TPtrC val2=iIpcBuf[slot].Mid(find+1); - TLex lex2(val2); - lex2.Val(amax); - - INFO_PRINTF3(KLogInfoAnimInterval,amin,amax); - - // check is the interval in expected scope - if (aminmax) - { - ERR_PRINTF3(KLogErrAnimInterval, min,max); - } - else - result=ETrue; - } - } - } - - return result; - } -TBool CT_DataAnim::CheckIpcArg(const TDesC& aSection) - { - TBool result=ETrue; - - // check animate interval - TInt checkanim=0; - if ( GetIntFromConfig(aSection, KFldCheckAnimateInterval, checkanim) - && checkanim) - { - return CheckAnimateInterval(aSection); - } - - TBuf <100> field; - TPtrC val; - - // check ipc expected value - for (TInt i=0;i(GetDataObjectL(datWinName)); - } - else if ( GetStringFromConfig(aSection, KFldSprite, datSpriteName)) - { - sprite = static_cast(GetDataObjectL(datSpriteName)); - } - if (!win && !sprite ) - { - dataOk = EFalse; - ERR_PRINTF2(KLogErrMissingPara, &KFldWin); - ERR_PRINTF2(KLogErrMissingPara, &KFldSprite); - } - - //get "TInt aType" - TInt datType; - if ( !ReadAnimType(aSection, KFldType, datType)) - { - dataOk = EFalse; - ERR_PRINTF2(KLogErrMissingPara, &KFldType); - } - - // get "const TDesC8 &aArgs" - TPtrC inputStr; - TBool argexist=EFalse; - if( GetStringFromConfig(aSection, KFldParam, inputStr)) - { - CopyToSendBuf(inputStr); - argexist=ETrue; - } - - if (!argexist) - { - dataOk = EFalse; - ERR_PRINTF2(KLogErrMissingPara, &KFldParam); - } - - // get "const TIpcArgs &aIpcArgs" - TBool ipcexist= EFalse; - if ( GetIpcArg(aSection)) - ipcexist = ETrue; - - if ( !dataOk ) - { - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - if (win ) - { - if (!ipcexist) - { - INFO_PRINTF1(KLogInfoCmdConstruct1); - err = iAnim->Construct(*win, datType, iSendBuf); - } - else - { - INFO_PRINTF1(KLogInfoCmdConstruct2); - err = iAnim->Construct(*win, datType, iSendBuf, iIpcArgs); - } - } - else - { - if (!ipcexist ) - { - INFO_PRINTF1(KLogInfoCmdConstruct3); - err = iAnim->Construct(*sprite, datType, iSendBuf); - } - else - { - INFO_PRINTF1(KLogInfoCmdConstruct4); - err = iAnim->Construct(*sprite, datType, iSendBuf, iIpcArgs); - } - } - - // Check the command return code - if(err != KErrNone) - { - ERR_PRINTF2(KLogErrConstruct, err); - SetError(err); - } - else if (ipcexist && ! CheckIpcArg(aSection)) - { - ERR_PRINTF1(KLogErrIpcValue); - SetBlockResult(EFail); - } - } - } - -TDesC8& CT_DataAnim::CopyToSendBuf(const TDesC& buf) - { - TUint8 len=buf.Length(); - - iSendBuf.Zero(); - iSendBuf.Copy(&len,sizeof(len)); - if (len>0) - iSendBuf.Append(buf); - return iSendBuf; - } - -void CT_DataAnim::DoCmdCommandReply(const TDesC& aSection) - { - TInt err = KErrNone; - - // Get test data for command input parameter(s) - TBool dataOk = ETrue; - - // get "TInt aOpcode" - TInt datOpcode; - if ( !ReadAnimCommand(aSection, KFldOpcode, datOpcode)) - { - dataOk = EFalse; - ERR_PRINTF2(KLogErrMissingPara, &KFldOpcode); - } - - // get "const TPtrC8 &aArgs" or "const TDesC8 &aArgs" - TPtrC inputStr; - TBool argexist=EFalse; - if( GetStringFromConfig(aSection, KFldArgs, inputStr)) - { - CopyToSendBuf(inputStr); - argexist=ETrue; - } - - // get "const TIpcArgs &aIpcArgs" - TBool ipcexist= EFalse; - if ( GetIpcArg(aSection)) - ipcexist = ETrue; - - - if ( dataOk ) - { - if (!argexist) - { - INFO_PRINTF1(KLogInfoCmdCommandReply1); - err = iAnim->CommandReply(datOpcode); - } - else if (ipcexist) - { - INFO_PRINTF1(KLogInfoCmdCommandReply3); - err = iAnim->CommandReply(datOpcode, iSendBuf, iIpcArgs); - } - else - { - INFO_PRINTF1(KLogInfoCmdCommandReply2); - err = iAnim->CommandReply(datOpcode, iSendBuf); - } - - // Check the command return code - if(err != KErrNone) - { - ERR_PRINTF2(KLogErrCommandReply, err); - SetError(err); - } - else if (ipcexist && ! CheckIpcArg(aSection)) - { - ERR_PRINTF1(KLogErrIpcValue); - SetBlockResult(EFail); - } - } - else - SetBlockResult(EFail); - - } - -void CT_DataAnim::DoCmdCommand(const TDesC& aSection) - { - // Get test data for command input parameter(s) - TBool dataOk = ETrue; - - // get "TInt aOpcode" - TInt datOpcode; - if ( !ReadAnimCommand(aSection, KFldOpcode, datOpcode)) - { - dataOk = EFalse; - ERR_PRINTF2(KLogErrMissingPara, &KFldOpcode); - } - - // get "const TPtrC8 &aArgs" or "const TDesC8 &aArgs" - TPtrC inputStr; - TBool argexist=EFalse; - if( GetStringFromConfig(aSection, KFldArgs, inputStr)) - { - CopyToSendBuf(inputStr); - argexist=ETrue; - } - - if ( dataOk ) - { - if (!argexist) - { - INFO_PRINTF1(KLogInfoCmdCommand2); - iAnim->Command(datOpcode); - } - else - { - INFO_PRINTF1(KLogInfoCmdCommand1); - iAnim->Command(datOpcode, iSendBuf); - } - } - else - SetBlockResult(EFail); - - } - -void CT_DataAnim::DoCmdAsyncCommandReply(const TDesC& aSection, const TInt aAsyncErrorIndex) - { - // Get test data for command input parameter(s) - TBool dataOk = ETrue; - - // get "TInt aOpcode" - TInt datOpcode; - if ( !ReadAnimCommand(aSection, KFldOpcode, datOpcode)) - { - dataOk = EFalse; - ERR_PRINTF2(KLogErrMissingPara, &KFldOpcode); - } - - // get "const TIpcArgs &aIpcArgs" - TBool ipcexist= EFalse; - if ( GetIpcArg(aSection)) - ipcexist = ETrue; - - if (!ipcexist) - { - dataOk = EFalse; - ERR_PRINTF2(KLogErrMissingPara, &KFldIpcArgs); - } - - if ( !dataOk ) - { - SetBlockResult(EFail); - } - else - { - iAsyncCmdSection.Copy(aSection); - // Execute command and log parameters - INFO_PRINTF1(KLogInfoCmdAsyncCommandReply1); - iAnim->AsyncCommandReply(iActiveCallback->iStatus, datOpcode, iIpcArgs); - iActiveCallback->Activate(aAsyncErrorIndex); - IncOutstanding(); - } - - } - -void CT_DataAnim::RunL(CActive* aActive, TInt aIndex) - { - TInt err = aActive->iStatus.Int(); - - if (! CheckIpcArg(iAsyncCmdSection)) - { - ERR_PRINTF1(KLogErrIpcValue); - SetBlockResult(EFail); - } - - SetAsyncError(aIndex, err); - DecOutstanding(); - } - -void CT_DataAnim::DoCmdClose() - { - // Execute command and log parameters - if (iAnim != NULL) - { - INFO_PRINTF1(KLogInfoCmdClose1); - iAnim->Close(); - } - } - -void CT_DataAnim::DoCmdDestroy() - { - // Execute command and log parameters - if (iAnim != NULL) - { - INFO_PRINTF1(KLogInfoCmdDestroy1); - iAnim->Destroy(); - iAnim = NULL; - } - } - -void CT_DataAnim::DoCmdDestructor() - { - // Execute command and log parameters - INFO_PRINTF1(KLogInfoCmdDestructor1); - delete iAnim; - iAnim = NULL; - } - - -TBool CT_DataAnim::ReadAnimCommand(const TDesC& aSectName, const TDesC& aKeyName, TInt& aCommand) - { - TPtrC str; - TBool ret=GetStringFromConfig(aSectName, aKeyName, str); - if ( ret ) - { - if ( str==KEAnimCmdSync ) - { - aCommand=ECmdSync; - } - else if ( str==KEAnimCmdTestWithoutPara ) - { - aCommand=ECmdTestWithoutPara; - } - else if ( str==KEAnimCmdTestWithPara ) - { - aCommand=ECmdTestWithPara; - } - else if ( str==KEAnimCmdGetLast ) - { - aCommand=ECmdGetLast; - } - else if ( str==KEAnimCmdGetAnimInterval ) - { - aCommand=ECmdGetAnimInterval; - } - else - ret=EFalse; - } - - return ret; - } -TBool CT_DataAnim::ReadAnimType(const TDesC& aSectName, const TDesC& aKeyName, TInt& aType) - { - TPtrC str; - TBool ret=GetStringFromConfig(aSectName, aKeyName, str); - if ( ret ) - { - if ( str==KEAnimWindows) - { - aType=EKWindowAnim; - } - else if ( str==KEAnimSprite ) - { - aType=EKSpriteAnim; - } - else if ( str==KEAnimFreeTimer ) - { - aType=EKFreeTimerWindowAnim; - } - else - ret=EFalse; - } - - return ret; - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/src/T_DataAnimDll.cpp --- a/graphicsapitest/graphicssvs/wserv/src/T_DataAnimDll.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,229 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -#include "T_DataAnimDll.h" -#include "T_GraphicsUtil.h" - -/*@{*/ -_LIT(KDataClassname, "RAnimDll"); - -/// Fields -_LIT(KFldWs, "ws"); -_LIT(KPlugInFileName, "filename"); - -/// Commands -_LIT(KCmdnew, "new"); -_LIT(KCmdDestructorGeneral, "~"); -_LIT(KCmdDestructor, "~RAnimDll"); -_LIT(KCmdLoad, "Load"); -_LIT(KCmdDestroy, "Destroy"); -_LIT(KCmdClose, "Close"); - -/// Logging -_LIT(KLogErrNum, "Error=%d"); -_LIT(KLogErrMissingPara, "Missing parameter '%S'"); -_LIT(KLogErrLoad, "Load file error %d. File name: %S"); -_LIT(KLogInfoCmdnewL1, "execute new RAnimDll(RWsSession &)"); -_LIT(KLogInfoCmdnewL2, "execute new RAnimDll()"); -_LIT(KLogInfoCmdLoad1, "execute RAnimDll::Load(const TDesC &)"); -_LIT(KLogInfoCmdClose1, "execute RAnimDll::Close()"); -_LIT(KLogInfoCmdDestroy1, "execute RAnimDll::Destroy()"); -_LIT(KLogInfoCmdDestructor1,"execute ~RAnimDll()"); -/*@}*/ - -CT_DataAnimDll* CT_DataAnimDll::NewL() - { - CT_DataAnimDll* ret = new (ELeave) CT_DataAnimDll(); - CleanupStack::PushL(ret); - ret->ConstructL(); - CleanupStack::Pop(ret); - return ret; - } - -CT_DataAnimDll::CT_DataAnimDll() -: iAnimDll(NULL) - { - } - -void CT_DataAnimDll::ConstructL() - { - } - -CT_DataAnimDll::~CT_DataAnimDll() - { - DestroyData(); - } - -TAny* CT_DataAnimDll::GetObject() - { - return iAnimDll; - } - -void CT_DataAnimDll::SetObjectL(TAny* aAny) - { - DestroyData(); - iAnimDll = static_cast (aAny); - } - -void CT_DataAnimDll::DisownObjectL() - { - iAnimDll = NULL; - } - -void CT_DataAnimDll::DestroyData() - { - DoCmdDestructor(); - } - -MWsClientClass* CT_DataAnimDll::GetClientClass() const - { - return iAnimDll; - } - -/** -* Process a command read from the ini file -* -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* @param aAsyncErrorIndex index of command. used for async calls -* -* @return ETrue if the command is processed -*/ -TBool CT_DataAnimDll::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex) - { - TBool ret = ETrue; - - if ( aCommand==KCmdDestructorGeneral || aCommand==KCmdDestructor ) - { - DoCmdDestructor(); - } - else if ( aCommand==KCmdnew || aCommand==KDataClassname ) - { - DoCmdnewL(aSection); - } - else if ( aCommand==KCmdLoad ) - { - DoCmdLoad(aSection); - } - else if ( aCommand==KCmdDestroy ) - { - DoCmdDestroy(); - } - else if ( aCommand==KCmdClose ) - { - DoCmdClose(); - } - else - { - ret=CT_DataWsClientClass::DoCommandL(*this, aCommand, aSection, aAsyncErrorIndex); - } - - return ret; - } - -void CT_DataAnimDll::DoCmdnewL(const TDesC& aSection) - { - DestroyData(); - - // Get test data for command input parameter(s) - TPtrC wsName; - RWsSession* ws = NULL; - if ( GetStringFromConfig(aSection, KFldWs, wsName) ) - { - ws = static_cast(GetDataObjectL(wsName)); - } - - TInt err = KErrNone; - if ( ws!= NULL ) - { - // Execute command and log parameters - INFO_PRINTF1(KLogInfoCmdnewL1); - TRAP( err, iAnimDll = new (ELeave) RAnimDll(*ws) ); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(KLogInfoCmdnewL2); - TRAP(err, iAnimDll = new (ELeave) RAnimDll()); - } - - // Check the command return code - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogErrNum, err); - SetError(err); - } - } - -void CT_DataAnimDll::DoCmdLoad(const TDesC& aSection) - { - TInt err = KErrNone; - - // Get test data for command input parameter(s) - TPtrC fileName; - if(!GetStringFromConfig(aSection, KPlugInFileName(), fileName)) - { - ERR_PRINTF2(KLogErrMissingPara, &KPlugInFileName()); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - if (iAnimDll != NULL) - { - INFO_PRINTF1(KLogInfoCmdLoad1); - err = iAnimDll->Load(fileName); - } - - // Check the command return code - if(err != KErrNone) - { - ERR_PRINTF3(KLogErrLoad, err, &fileName); - SetError(err); - } - } - } - -void CT_DataAnimDll::DoCmdClose() - { - // Execute command and log parameters - if (iAnimDll != NULL) - { - INFO_PRINTF1(KLogInfoCmdClose1); - iAnimDll->Close(); - } - } - -void CT_DataAnimDll::DoCmdDestroy() - { - // Execute command and log parameters - if (iAnimDll != NULL) - { - INFO_PRINTF1(KLogInfoCmdDestroy1); - iAnimDll->Destroy(); - iAnimDll = NULL; - } - } - -void CT_DataAnimDll::DoCmdDestructor() - { - // Execute command and log parameters - INFO_PRINTF1(KLogInfoCmdDestructor1); - delete iAnimDll; - iAnimDll = NULL; - } - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/src/T_DataAnimForMClass.cpp --- a/graphicsapitest/graphicssvs/wserv/src/T_DataAnimForMClass.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,2369 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -#include "T_DataAnimForMClass.h" -#include "T_GraphicsUtil.h" -#include "T_AnimDef.h" -#include "../AnimPlugin/inc/T_AnimDef.h" -#include -#include -#include "w32std.h" -#define KMaxBufSize 250 - -/*@{*/ -_LIT(KDataClassname, "RAnimForMClass"); - -/// Fields - -_LIT(KFldWin, "win"); -_LIT(KFldWingrp, "wingrp"); -_LIT(KFldSprite, "sprite"); -_LIT(KFldType, "type"); - - -_LIT(KFldOpcode, "opcode"); - - -_LIT(KFldExpected, "expected"); -_LIT(KFldRect, "rect"); -_LIT(KFldState, "state"); -_LIT(KFldWs, "ws"); -_LIT(KFldWingrpId, "windowgroupid"); -_LIT(KFldOrdinalPosition, "pos"); -_LIT(KFldOrdinalPriority, "ordinalpriority"); -_LIT(KFldScreenNumb, "screennumber"); -_LIT(KFldFullOrdinPostn, "fullpos"); -_LIT(KFldExpectedPoint, "expectedpoint"); -_LIT(KFldGetEvent, "getevent"); -_LIT(KFldInterface, "interface"); -_LIT(KFldPostRawEvent, "rawevent"); - - - - -_LIT(KFldSyncMode, "animsync"); -_LIT(KFldInterval, "interval"); -_LIT(KFldNotifications, "notification"); -_LIT(KFldMessage, "message"); -_LIT(KFldHandleBitmap, "bitmap"); -_LIT(KFldHandleFont, "font"); -_LIT(KFldMemberIndex, "member_index"); -_LIT(KFldIsFullUpdate, "isfullupdate"); -_LIT(KFldIsActivate, "isactivate"); -_LIT(KFldSetReplyBufHandle1, "slot2"); -_LIT(KFldSetReplyBufHandle2, "slot3"); -_LIT(KFldPointPosition, "pos"); -_LIT(KFldRAnim, "anim"); - -_LIT(KESyncNone , "ESyncNone"); -_LIT(KESyncFlash, "ESyncFlash"); -_LIT(KESyncSecond, "ESyncSecond"); -_LIT(KESyncMinute, "ESyncMinute"); -_LIT(KESyncDay, "ESyncDay"); - -_LIT(KENone, "ENone"); -_LIT(KEPointerMove, "EPointerMove"); -_LIT(KEPointerSwitchOn, "EPointerSwitchOn"); -_LIT(KEKeyDown, "EKeyDown"); -_LIT(KEKeyUp, "EKeyUp"); -_LIT(KERedraw, "ERedraw"); -_LIT(KESwitchOn, "ESwitchOn"); -_LIT(KEActive, "EActive"); -_LIT(KEInactive, "EInactive"); -_LIT(KEUpdateModifiers, "EUpdateModifiers"); -_LIT(KEButton1Down, "EButton1Down"); -_LIT(KEButton1Up, "EButton1Up"); -_LIT(KEButton2Down, "EButton2Down"); -_LIT(KEButton2Up, "EButton2Up"); -_LIT(KEButton3Down, "EButton3Down"); -_LIT(KEButton3Up, "EButton3Up"); -_LIT(KESwitchOff, "ESwitchOff"); -_LIT(KEKeyRepeat, "EKeyRepeat"); -_LIT(KECaseOpen, "ECaseOpen"); -_LIT(KECaseClose, "ECaseClose"); -_LIT(KERestartSystem, "ERestartSystem"); - - - -/// Commands -_LIT(KCmdnew, "new"); -_LIT(KCmdDestructorGeneral, "~"); -_LIT(KCmdDestructor, "~RAnimForMClass"); -_LIT(KCmdConstruct, "Construct"); -_LIT(KCmdCommandReply, "CommandReply"); -_LIT(KCmdDestroy, "Destroy"); -_LIT(KCmdClose, "Close"); - -/// Logging -_LIT(KLogErrMissingPara, "Missing parameter '%S'"); - - -_LIT(KLogErrConstruct, "Construct return err = %d"); -_LIT(KLogInfoCmdConstruct1, "execute RAnimForMClass::Construct(const RWindowBase &, TInt, const TDesC8 &)"); - -_LIT(KLogInfoCmdConstruct3, "execute RAnimForMClass::Construct(const RWsSprite &, TInt, const TDesC8 &)"); - -_LIT(KLogErrCommandReply, "CommandReply return err = %d"); -_LIT(KLogInfoCmdCommandReply1, "execute RAnimForMClass::CommandReply(TInt),opcode=%d"); - -_LIT(KLogInfoCmdCommandReply3, "execute RAnimForMClass::CommandReply(TInt, const TDesC8 &, const TIpcArgs &),opcode=%d"); - -_LIT(KLogInfoCmdDestroy, "execute RAnimForMClass::Destroy()"); -_LIT(KLogInfoCmdDestructor1, "execute ~RAnimForMClass()"); -_LIT(KLogMissingParameter, "Missing parameter '%S'"); -_LIT(KlogDateTime, "DateTime"); -/*@}*/ - -CT_DataAnimForMClass* CT_DataAnimForMClass::NewL() - { - CT_DataAnimForMClass* ret = new (ELeave) CT_DataAnimForMClass(); - CleanupStack::PushL(ret); - ret->ConstructL(); - CleanupStack::Pop(ret); - return ret; - } - -CT_DataAnimForMClass::CT_DataAnimForMClass() -: iActiveCallback(NULL) - ,iAnim(NULL) - { - } - -void CT_DataAnimForMClass::ConstructL() - { - iSendBuf.CreateL(KMaxBufSize); - iSendBuf.FillZ(1); - - for (TInt i=0;i (aAny); - } - -void CT_DataAnimForMClass::DisownObjectL() - { - iAnim = NULL; - } - -void CT_DataAnimForMClass::DestroyData() - { - DoCmdDestroy(); - } - -/** -* Process a command read from the ini file -* -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* @return ETrue if the command is processed -*/ -TBool CT_DataAnimForMClass::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection,const TInt) - { - TBool ret = ETrue; - - if ( aCommand==KCmdDestructorGeneral || aCommand==KCmdDestructor ) - { - DoCmdDestructor(); - } - else if ( aCommand==KCmdnew || aCommand==KDataClassname ) - { - DoCmdnewL(aSection); - } - else if ( aCommand==KCmdConstruct ) - { - DoCmdConstructL(aSection); - } - else if ( aCommand==KCmdCommandReply ) - { - DoCmdCommandReplyL(aSection); - } - else if ( aCommand==KCmdDestroy ) - { - DoCmdDestroy(); - } - else if ( aCommand==KCmdClose ) - { - DoCmdClose(); - } - else - { - ret=EFalse; - } - - return ret; - } - -void CT_DataAnimForMClass::DoCmdnewL(const TDesC& aSection) - { - DestroyData(); - TPtrC datRAnimName ; - if ( GetStringFromConfig(aSection, KFldRAnim, datRAnimName)) - { - iAnim = static_cast(GetDataObjectL(datRAnimName)); - } - else - ERR_PRINTF2(KLogErrMissingPara, &KFldWin); - } - -void CT_DataAnimForMClass::ResetIpcArg() - { - for (TInt i=0; i(GetDataObjectL(datWinName)); - } - else if ( GetStringFromConfig(aSection, KFldSprite, datSpriteName)) - { - sprite = static_cast(GetDataObjectL(datSpriteName)); - } - if (!win && !sprite ) - { - dataOk = EFalse; - ERR_PRINTF2(KLogErrMissingPara, &KFldWin); - ERR_PRINTF2(KLogErrMissingPara, &KFldSprite); - } - - //Get "TInt aType" - TInt datType; - if ( !CT_GraphicsUtil::ReadAnimType(*this,aSection, KFldType, datType)) - { - dataOk = EFalse; - ERR_PRINTF2(KLogErrMissingPara, &KFldType); - } - - // Get "const TDesC8 &aArgs" - TPtrC inputStr; - - // get "const TIpcArgs &aIpcArgs" - - - if ( !dataOk ) - { - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - if (win) - { - INFO_PRINTF1(KLogInfoCmdConstruct1); - if (iAnim != NULL) - err = iAnim->Construct(*win, datType, iSendBuf); - } - - else - { - INFO_PRINTF1(KLogInfoCmdConstruct3); - TInt len=iSendBuf.Length(); - if (iAnim != NULL) - err = iAnim->Construct(*sprite, datType, iSendBuf); - - - } - - // Check the command return code - if(err != KErrNone) - { - ERR_PRINTF2(KLogErrConstruct, err); - SetError(err); - } - } - } - -void CT_DataAnimForMClass::DoCmdCommandReplyL(const TDesC& aSection) - { - - // Get test data for command input parameter(s) - TBool dataOk = ETrue; - - // Get "TInt aOpcode" - TInt datOpcode; - if ( !CT_GraphicsUtil::ReadAnimCommand(*this, aSection, KFldOpcode, - datOpcode))//ReadAnimCommand():Convert datOpcode from string type to Int type - { - dataOk = EFalse; - ERR_PRINTF2(KLogErrMissingPara, &KFldOpcode); - } - - if (!dataOk) - { - _LIT(KFailed, "Can not read the Operation code from the config file. Failed. "); - INFO_PRINTF1(KFailed); - SetBlockResult(EFail); - } - switch (datOpcode) - { - //Util - case ECmdRetrieveResult: - DoCmdRetrieveResult(aSection, datOpcode); - break; - case ECmdUtilEatupMemory: - DoCmdEatupMemory(datOpcode); - break; - case ECmdUtilFreeEatenMemory: - DoCmdFreeEatenMemory(datOpcode); - break; - // The MAnimGeneralFunctioins - case ECmdGeneralAnimate: - DoCmdGeneralAnimate(aSection, datOpcode); - break; - case ECmdGeneralClient: - DoCmdGeneralClient(aSection, datOpcode); - break; - case ECmdGeneralFlashStateOn: - DoCmdGeneralFlashStateOn(aSection, datOpcode); - break; - case ECmdGeneralPanic: - DoCmdGeneralPanic(aSection, datOpcode) ; - break; - case ECmdGeneralScreenDevice: - DoCmdGeneralScreenDevice(aSection, datOpcode) ; - break; - case ECmdGeneralExtendedInterface: - DoCmdGeneralExtendedInterface(aSection, datOpcode) ; - break; - case ECmdGeneralWindowExtension: - DoCmdGeneralWindowExtension(aSection, datOpcode) ; - break; - case ECmdGeneralNumOfExtInterfaces: - DoCmdGeneralNumOfExtInterfaces(aSection, datOpcode) ; - break; - case ECmdGeneralEventExtension: - DoCmdGeneralEventExtension(aSection, datOpcode) ; - break; - case ECmdGeneralGetRawEvents: - DoCmdGeneralGetRawEvents(aSection, datOpcode); - break; - case ECmdGeneralPostRawEvent: - DoCmdGeneralPostRawEvent(aSection, datOpcode); - break; - case ECmdGeneralPostKeyEvent: - DoCmdGeneralPostKeyEventL(aSection, datOpcode); - break; - case ECmdGeneralSetSync: - DoCmdGeneralSetSync(aSection, datOpcode); - break; - case ECmdGeneralSync: - DoCmdGeneralSync(aSection, datOpcode); - break; - case ECmdGeneralSetInterval: - DoCmdGeneralSetInterval(aSection, datOpcode); - break; - case ECmdGeneralSetNextInterval: - DoCmdGeneralSetNextInterval(aSection, datOpcode); - break; - case ECmdGeneralSystemTime: - DoCmdGeneralSystemTime(aSection, datOpcode); - break; - case ECmdGeneralRegisterForNotis: - DoCmdGeneralRegisterForNotis(aSection, datOpcode); - break; - case ECmdGeneralMessage: - DoCmdGeneralMessage(aSection, datOpcode); - break; - case ECmdGeneralDuplicateBitmapL: - DoCmdGeneralDuplicateBitmapL(aSection, datOpcode); - break; - case ECmdGeneralDuplicateFontL: - DoCmdGeneralDuplicateFontL(aSection, datOpcode); - break; - case ECmdGeneralCloseFont: - DoCmdGeneralCloseFontL(aSection, datOpcode); - break; - case ECmdGeneralReplyBuf8: - DoCmdGeneralReplyBuf8(aSection, datOpcode); - break; - case ECmdGeneralReplyBuf16: - DoCmdGeneralReplyBuf16(aSection, datOpcode); - break; - // the MAnimSpriteFunctioins - case ECmdSpriteGetSpriteMember: - DoCmdSpriteGetSpriteMember(aSection, datOpcode); - break; - case ECmdSpriteUpdateMember: - DoCmdSpriteUpdateMember(aSection, datOpcode) ; - break; - case ECmdSpriteActivate: - DoCmdSpriteActivate(aSection, datOpcode) ; - break; - case ECmdSpriteSpriteCanBeSeen: - DoCmdSpriteSpriteCanBeSeen(aSection, datOpcode) ; - break; - case ECmdSpriteSizeChangedL: - DoCmdSpriteSizeChangedL(aSection, datOpcode) ; - break; - case ECmdSpriteSetPosition: - DoCmdSpriteSetPosition(aSection, datOpcode) ; - break; - //MAnimWindowFunctions - case ECmdWindowActivateGc: - { - DoWindowActivateGc(datOpcode); - break; - } - case ECmdWindowSetRect: - case ECmdWindowIsStarted: - { - DoWindowSetRect(datOpcode, aSection); - break; - } - case ECmdWindowWindowSize: - { - DoWindowWindowSizeL(datOpcode, aSection); - break; - } - case ECmdWindowIsHidden: - { - DoWindowIsHidden(datOpcode, aSection); - break; - } - case ECmdWindowSetVisible: - { - DoWindowSetVisible(datOpcode, aSection); - break; - } - case ECmdWindowInvalidate: - { - DoWindowInvalidate(datOpcode, aSection); - break; - } - case ECmdWindowParameters: - { - DoWindowParametersL(datOpcode, aSection); - break; - } - case ECmdWindowVisibleRegion: - { - DoWindowVisibleRegion(datOpcode, aSection); - break; - - } - //MAnimGeneralFunctionsWindowExtension - case ECmdGfweScreens: - { - DoGeneralExtScreensL(datOpcode, aSection); - break; - } - case ECmdGfweFocusScreens: - { - DoGeneralExtFocusScreensL(datOpcode, aSection); - break; - } - case ECmdGfweSetFocusScreen: - { - DoGeneralExtSetFocusScreen(datOpcode, aSection); - break; - } - case ECmdGfweWindowGroups: - { - DoGeneralExtWindowGroupsL(datOpcode, aSection); - break; - } - case ECmdGfweWindowGroupInfo: - { - DoGeneralExtWindowGroupInfoL(datOpcode, aSection); - break; - } - case ECmdGfweWindowGroupName: - { - DoGeneralExtWindowGroupNameL(datOpcode, aSection); - break; - } - case ECmdGfweSetOrdinalPosition: - { - DoGeneralExtSetOrdinalPositionL(datOpcode, aSection); - break; - } - case ECmdGfweWindowConfig: - { - DoGeneralExtWindowConfigL(datOpcode, aSection); - break; - } - //MAnimFreeTimerWindowFunctions - case ECmdFreeTimerWinDeactivateGc: - { - DoFreeTimerWinDeactivateGc(datOpcode); - break; - } - case ECmdFreeTimerWinUpdate: - { - DoFreeTimerWinUpdate(datOpcode); - break; - } - default: - { - _LIT(KFailed2, "Unsupported operation code. "); - INFO_PRINTF1(KFailed2); - break; - } - } - } - -void CT_DataAnimForMClass::DoCmdClose() - { - iAnim = NULL ; - } - -void CT_DataAnimForMClass::DoCmdDestroy() - { - INFO_PRINTF1(KLogInfoCmdDestroy); - iAnim = NULL ; - } - -void CT_DataAnimForMClass::DoCmdDestructor() - { - // Execute command and log parameters - INFO_PRINTF1(KLogInfoCmdDestructor1); - iAnim = NULL; - } - -//*************************MAnimWindowFunctions verifying******************************** -void CT_DataAnimForMClass::DoWindowActivateGc(TInt aOpcode) - { - INFO_PRINTF2(KLogInfoCmdCommandReply1, aOpcode); - TInt err=iAnim->CommandReply(aOpcode); - INFO_PRINTF2(KLogErrCommandReply, err); - - if (err != KErrNone) - { - ERR_PRINTF2(KLogErrCommandReply, err); - SetError(err); - } - } - -void CT_DataAnimForMClass::DoWindowSetRect(TInt aOpcode, const TDesC& aSection) - { - switch (aOpcode) - { - case ECmdWindowSetRect: - { - TPtrC8 ptr; - TRect sendRect; - if (!GetRectFromConfig(aSection, KFldRect, sendRect)) - { - ERR_PRINTF2(KLogErrMissingPara, &KFldRect()); - SetBlockResult(EFail); - } - TPckgBuf sendVal(sendRect); - iIpcArgs.Set(0, TIpcArgs::ENothing); - iIpcArgs.Set(1, &sendVal); - - INFO_PRINTF2(KLogInfoCmdCommandReply3, aOpcode); - TInt err=iAnim->CommandReply(aOpcode, ptr, iIpcArgs); - INFO_PRINTF2(KLogErrCommandReply, err); - - if (err != KErrNone) - { - ERR_PRINTF2(KLogErrCommandReply, err); - SetError(err); - } - ResetIpcArg(); - break; - } - case ECmdWindowIsStarted: - { - INFO_PRINTF2(KLogInfoCmdCommandReply1, aOpcode); - TInt err=iAnim->CommandReply(aOpcode); - INFO_PRINTF2(KLogErrCommandReply, err); - if (err != KErrNone) - { - ERR_PRINTF2(KLogErrCommandReply, err); - SetError(err); - } - break; - } - } - } - -void CT_DataAnimForMClass::DoWindowWindowSizeL(TInt aOpcode,const TDesC& aSection) - { - TPtrC8 ptr; - TPtrC datWinName; - RWindowBase* win= NULL; - if (GetStringFromConfig(aSection, KFldWin, datWinName)) - { - win = static_cast(GetDataObjectL(datWinName)); - } - TSize expected=win->Size(); - TSize resultBuf; - TPckgBuf retrndPck(expected); - iIpcArgs.Set(0, TIpcArgs::ENothing); - iIpcArgs.Set(1, &retrndPck); - INFO_PRINTF2(KLogInfoCmdCommandReply3, aOpcode); - TInt err=iAnim->CommandReply(aOpcode, ptr, iIpcArgs); - INFO_PRINTF2(KLogErrCommandReply, err); - - resultBuf=retrndPck(); - if (expected!=resultBuf) - { - ERR_PRINTF5(_L("The returned value is not as expected, expected: (%d,%d), actual: (%d,%d)"), expected.iWidth,expected.iHeight, resultBuf.iWidth,resultBuf.iHeight); - SetBlockResult(EFail); - } - ResetIpcArg(); - } - -void CT_DataAnimForMClass::DoWindowIsHidden(TInt aOpcode,const TDesC& aSection) - { - TBool expectedVal; - - if (!GetBoolFromConfig(aSection, KFldExpected, expectedVal)) - { - ERR_PRINTF2(KLogErrMissingPara, &KFldExpected()); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF2(KLogInfoCmdCommandReply1, aOpcode); - TInt actual=iAnim->CommandReply(aOpcode); - INFO_PRINTF2(KLogErrCommandReply, actual); - if (actual!=expectedVal) - { - ERR_PRINTF3(_L("The returned value is not as expected, expected: %d, actual: %d"), expectedVal, actual); - SetBlockResult(EFail); - } - } - } - -void CT_DataAnimForMClass::DoWindowSetVisible(TInt aOpcode,const TDesC& aSection) - { - TBool setVisible; - TPtrC8 ptr; - - if (!GetBoolFromConfig(aSection, KFldState, setVisible)) - { - ERR_PRINTF2(KLogErrMissingPara, &KFldState()); - SetBlockResult(EFail); - } - - iIpcArgs.Set(0, TIpcArgs::ENothing); - TPckgBuf setVisiblePck(setVisible); - iIpcArgs.Set(1, &setVisiblePck); - INFO_PRINTF2(KLogInfoCmdCommandReply3, aOpcode); - TInt err=iAnim->CommandReply(aOpcode, ptr, iIpcArgs); - INFO_PRINTF2(KLogErrCommandReply, err); - if (err != KErrNone) - { - ERR_PRINTF2(KLogErrCommandReply, err); - SetError(err); - } - ResetIpcArg(); - } - -void CT_DataAnimForMClass::DoWindowInvalidate(TInt aOpcode,const TDesC& aSection) - { - - TPtrC datWinName; - TPtrC8 ptr; - TRect rectVal; - if (!GetRectFromConfig(aSection, KFldRect, rectVal)) - { - ERR_PRINTF2(KLogErrMissingPara, &KFldRect()); - SetBlockResult(EFail); - } - iIpcArgs.Set(0, TIpcArgs::ENothing); - TPckgBuf rectValPck(rectVal); - iIpcArgs.Set(1, &rectValPck); - INFO_PRINTF2(KLogInfoCmdCommandReply3, aOpcode); - TInt err=iAnim->CommandReply(aOpcode, ptr, iIpcArgs); - INFO_PRINTF2(KLogErrCommandReply, err); - if (err != KErrNone) - { - ERR_PRINTF2(KLogErrCommandReply, err); - SetError(err); - } - ResetIpcArg(); - } - -void CT_DataAnimForMClass::DoWindowParametersL(TInt aOpcode,const TDesC& aSection) - { - RWindowBase* win= NULL; - TSize expectedSize; - TInt expectedDisplyMd; - TPtrC val; - TPtrC8 ptr; - TPtrC datWinName; - TPckgBuf retrndWindowPostn; - TPckgBuf retrndDisplyMd; - iIpcArgs.Set(0, TIpcArgs::ENothing); - iIpcArgs.Set(1, &retrndWindowPostn); - iIpcArgs.Set(2, &retrndDisplyMd); - - //Send command to server - TInt err=iAnim->CommandReply(aOpcode, ptr, iIpcArgs); - INFO_PRINTF2(KLogErrCommandReply, err); - if (err != KErrNone) - { - ERR_PRINTF2(KLogErrCommandReply, err); - SetError(err); - } - else - { - //Get the window's Size and Displaymode - if (GetStringFromConfig(aSection, KFldWin, datWinName)) - { - win = static_cast(GetDataObjectL(datWinName)); - } - expectedSize=win->Size(); - expectedDisplyMd=win->DisplayMode(); - - TRect retrndWinInf=retrndWindowPostn(); - TSize retrndSize=retrndWinInf.Size(); - TInt retrndDisplyM=retrndDisplyMd(); - - if (retrndSize!=expectedSize) - { - ERR_PRINTF5(_L("The value is not as expected! expected: (%d,%d), actual: (%d,%d)"), expectedSize.iWidth,expectedSize.iHeight, retrndSize.iWidth,retrndSize.iHeight); - SetBlockResult(EFail); - } - if (retrndDisplyM!=expectedDisplyMd) - { - ERR_PRINTF3(_L("The value is not as expected! expected: %d, actual: %d"), expectedDisplyMd, retrndDisplyM); - SetBlockResult(EFail); - } - } - ResetIpcArg(); - } - -void CT_DataAnimForMClass::DoWindowVisibleRegion(TInt aOpcode,const TDesC& aSection) - { - TInt expecteValue; - TInt actual; - - if (!GetIntFromConfig(aSection, KFldExpected, expecteValue)) - { - ERR_PRINTF2(KLogErrMissingPara, &KFldExpected()); - SetBlockResult(EFail); - } - else - { - actual=iAnim->CommandReply(aOpcode); - INFO_PRINTF2(KLogErrCommandReply, actual); - if (actual!=expecteValue) - { - ERR_PRINTF3(_L("The returned value is not as expected, expected: %d, actual: %d"), expecteValue, actual); - SetBlockResult(EFail); - } - } - } - -//****************MAnimGeneralFunctionsWindowExtension verifying******************************* - -void CT_DataAnimForMClass::DoGeneralExtScreensL(TInt aOpcode,const TDesC& aSection) - { - RWsSession* ws; - TPtrC datWsName; - if (GetStringFromConfig(aSection, KFldWs, datWsName)) - { - ws = static_cast(GetDataObjectL(datWsName)); - } - TInt expectedScreenNumb=ws->NumberOfScreens(); - //Send Command, no data to server, check the returned value from Server by comparing with RWsSession::NumberOfScreens - TInt actualScreenNumb=iAnim->CommandReply(aOpcode); - INFO_PRINTF2(KLogErrCommandReply, actualScreenNumb); - if (actualScreenNumb!=expectedScreenNumb) - { - ERR_PRINTF3(_L("The returned value is not as expected, expected: %d, actual: %d"), expectedScreenNumb, actualScreenNumb); - SetBlockResult(EFail); - } - } - -void CT_DataAnimForMClass::DoGeneralExtFocusScreensL(TInt aOpcode,const TDesC& aSection) - { - RWsSession* ws; - TPtrC datWsName; - TInt expectedVal; - - TInt actual=iAnim->CommandReply(aOpcode); - INFO_PRINTF2(_L("FocuseScreens is %d"),actual); - - //If there is no expected value set in ini file, get the focus screen; - if (!GetIntFromConfig(aSection, KFldExpected, expectedVal)) - { - if (GetStringFromConfig(aSection, KFldWs, datWsName)) - { - ws = static_cast(GetDataObjectL(datWsName)); - } - - expectedVal=ws->GetFocusScreen(); - } - - if (actual!=expectedVal) - { - ERR_PRINTF3(_L("The returned value is not as expected, expected: %d, actual: %d"), expectedVal, actual); - SetBlockResult(EFail); - } - } - -void CT_DataAnimForMClass::DoGeneralExtSetFocusScreen(TInt aOpcode,const TDesC& aSection) - { - TInt screenNo; - TPtrC8 ptr; - TPtrC datWsName; - - if (!GetIntFromConfig(aSection, KFldScreenNumb, screenNo)) - { - ERR_PRINTF2(KLogMissingParameter, &KFldScreenNumb()); - SetBlockResult(EFail); - } - iIpcArgs.Set(0, TIpcArgs::ENothing); - TPckgBuf screenNoPck(screenNo); - iIpcArgs.Set(1, &screenNoPck); - TInt actual=iAnim->CommandReply(aOpcode, ptr, iIpcArgs); - INFO_PRINTF2(KLogErrCommandReply, actual); - - ResetIpcArg(); - } - -void CT_DataAnimForMClass::DoGeneralExtWindowGroupsL(TInt aOpcode,const TDesC& aSection) - { - TPtrC8 ptr; - TInt screenNo; - TPtrC datWsName; - RWsSession* ws; - if (!GetIntFromConfig(aSection, KFldScreenNumb, screenNo)) - { - ERR_PRINTF2(KLogErrMissingPara, &KFldScreenNumb()); - SetBlockResult(EFail); - } - iIpcArgs.Set(0, TIpcArgs::ENothing); - TPckgBuf screenNoPck(screenNo); - iIpcArgs.Set(1, &screenNoPck); - TInt actual=iAnim->CommandReply(aOpcode, ptr, iIpcArgs); - INFO_PRINTF2(KLogErrCommandReply, actual); - - if (!GetStringFromConfig(aSection, KFldWs, datWsName)) - { - ERR_PRINTF2(KLogErrMissingPara, &KFldWs()); - SetBlockResult(EFail); - } - ws = static_cast(GetDataObjectL(datWsName)); - TInt expectedVal=ws->NumWindowGroups(); - - if (actual!=expectedVal) - { - ERR_PRINTF3(_L("The returned value is not as expected, expected: %d, actual: %d"), expectedVal, actual); - SetBlockResult(EFail); - } - ResetIpcArg(); - } - -void CT_DataAnimForMClass::DoGeneralExtWindowGroupInfoL(TInt aOpcode,const TDesC& aSection) - { - TInt screenNo; - TPtrC8 ptr; - TPtrC datWingrpName; - TInt retrnPck; - TInt expectedGrpInfo; - RWindowGroup* wingrp; - //Get window group object in order to verify the window group's name's existance. - if (!GetStringFromConfig(aSection, KFldWingrp, datWingrpName)) - { - ERR_PRINTF2(KLogErrMissingPara, &KFldWingrp()); - SetBlockResult(EFail); - } - wingrp = static_cast(GetDataObjectL(datWingrpName)); - - //Get screen number from ini file and set to IPC slot 1. - if (!GetIntFromConfig(aSection, KFldScreenNumb, screenNo)) - { - ERR_PRINTF2(KLogErrMissingPara, &KFldScreenNumb()); - SetBlockResult(EFail); - } - iIpcArgs.Set(0, TIpcArgs::ENothing); - TPckgBuf screenNoPck(screenNo); - iIpcArgs.Set(1, &screenNoPck); - - //Get fullOrdipostion from ini or by using FullOrdinalPosition method and set to IPC slot 2. - TInt fullOrdiPostion; - if (!GetIntFromConfig(aSection, KFldFullOrdinPostn, fullOrdiPostion)) - { - fullOrdiPostion=wingrp->FullOrdinalPosition(); - } - TPckgBuf fullOrdiPostionPck(fullOrdiPostion); - iIpcArgs.Set(2, &fullOrdiPostionPck); - - //Set IPC slot 3 to receive ID of the TWindowGroupInfo. - TPckgBuf retrnWinGrpInfo; - iIpcArgs.Set(3, &retrnWinGrpInfo); - - TInt actual=iAnim->CommandReply(aOpcode, ptr, iIpcArgs); - INFO_PRINTF2(KLogErrCommandReply, actual); - TBool expectedVal; - if (!GetBoolFromConfig(aSection, KFldExpected, expectedVal)) - { - ERR_PRINTF2(KLogMissingParameter, &KFldExpected); - SetBlockResult(EFail); - } - if (actual!=expectedVal) - { - ERR_PRINTF3(_L("The returned value is not as expected, expected: %d, actual: %d"), expectedVal, actual); - SetBlockResult(EFail); - } - if (actual!=EFalse) - { - retrnPck=retrnWinGrpInfo();//Get returned window group ID - - expectedGrpInfo=wingrp->WindowGroupId(); - if (retrnPck!=expectedGrpInfo) - { - ERR_PRINTF3( - _L("The returned value is not as expected, expected: %d, actual: %d"), - expectedGrpInfo, retrnPck); - SetBlockResult(EFail); - } - } - ResetIpcArg(); - } - -void CT_DataAnimForMClass::DoGeneralExtWindowGroupNameL(TInt aOpcode,const TDesC& aSection) - { - TBuf<32> getWindowName; - TBool expectedVal; - TInt screenNo; - TInt fullOrdiPostion; - //Get Screen number from ini and set to IPC slot 1. - if (!GetIntFromConfig(aSection, KFldScreenNumb, screenNo)) - { - ERR_PRINTF2(KLogErrMissingPara, &KFldScreenNumb); - SetBlockResult(EFail); - } - TPtrC8 ptr; - TPckgBuf screenNoPck(screenNo); - iIpcArgs.Set(0, TIpcArgs::ENothing); - iIpcArgs.Set(1, &screenNoPck); - - TPtrC datWingrpName; - RWindowGroup* wingrp; - //Get window group object - if (!GetStringFromConfig(aSection, KFldWingrp, datWingrpName)) - { - ERR_PRINTF2(KLogErrMissingPara, &KFldWingrp()); - SetBlockResult(EFail); - } - wingrp = static_cast(GetDataObjectL(datWingrpName)); - //Get fullOrdinary position and set to IPC slot 2. - if (!GetIntFromConfig(aSection, KFldFullOrdinPostn, fullOrdiPostion)) - { - fullOrdiPostion=wingrp->FullOrdinalPosition(); - } - - TPckgBuf fullOrdiPostionPck(fullOrdiPostion); - iIpcArgs.Set(2, &fullOrdiPostionPck); - //Set IPC slot 3 to receive the window name returned from server side. - TBuf<32> retrnWindowName; - iIpcArgs.Set(3, &retrnWindowName); - - TInt actual=iAnim->CommandReply(aOpcode, ptr, iIpcArgs); - INFO_PRINTF2(KLogErrCommandReply, actual); - if (!GetBoolFromConfig(aSection, KFldExpected, expectedVal)) - { - ERR_PRINTF2(KLogMissingParameter, &KFldExpected); - SetBlockResult(EFail); - } - if (actual!=expectedVal) - { - ERR_PRINTF3(_L("The returned value is not as expected, expected: %d, actual: %d"), expectedVal, actual); - SetBlockResult(EFail); - } - //If commandreply returns ETrue then check the window group's name. - if (actual) - { - TInt result=wingrp->Name(getWindowName); - if (result!=KErrNone) - { - ERR_PRINTF1(_L("Failed to get the window group's name!")); - SetError(result); - } - INFO_PRINTF3(_L("Check the group name is expected. expected: %d,actual: %d"),&getWindowName,&retrnWindowName); - if (getWindowName!=retrnWindowName) - { - ERR_PRINTF1(_L("The returned window group name is not expected")); - SetBlockResult(EFail); - } - } - ResetIpcArg(); - } - -void CT_DataAnimForMClass::DoGeneralExtSetOrdinalPositionL(TInt aOpcode,const TDesC& aSection) - { - TInt expectedVal; - TPtrC8 ptr; - TInt wingrpid; - TInt newOrdinPrio; - TInt newOrdinaPostn; - TPtrC datWingrpName; - RWindowGroup* wingrp; - if (GetStringFromConfig(aSection, KFldWingrp, datWingrpName)) - { - wingrp = static_cast(GetDataObjectL(datWingrpName)); - } - //Before sending command, get window group ID from wrapper or ini as arg(IPC slot 1) - if (!GetIntFromConfig(aSection, KFldWingrpId, wingrpid)) - { - wingrpid=wingrp->WindowGroupId(); - INFO_PRINTF2(_L("RWindowTreeNode::WindowGroupId = %d"), wingrpid); - } - iIpcArgs.Set(0, TIpcArgs::ENothing); - TPckgBuf wingrpidPck(wingrpid); - iIpcArgs.Set(1, &wingrpidPck); - - //Get Group Id from wrapper or ini and send to server as IPC slot2 - if (!GetIntFromConfig(aSection, KFldOrdinalPosition, newOrdinaPostn)) - { - newOrdinaPostn = wingrp->OrdinalPosition(); - INFO_PRINTF2(_L("RWindowTreeNode::FullOrdinalPosition = %d"), newOrdinaPostn); - } - TPckgBuf newOrdinaPostnPck(newOrdinaPostn); - iIpcArgs.Set(2, &newOrdinaPostnPck); - - //Get new ordinal priority of the window as arg(IPC slot 3) from ini file; - if (!GetIntFromConfig(aSection, KFldOrdinalPriority, newOrdinPrio)) - { - newOrdinPrio = wingrp->OrdinalPriority(); - INFO_PRINTF2(_L("RWindowTreeNode::FullOrdinalPriority = %d"), newOrdinPrio); - } - TPckgBuf newOrdinPrioPck(newOrdinPrio); - iIpcArgs.Set(3, &newOrdinPrioPck); - - TInt err=iAnim->CommandReply(aOpcode, ptr, iIpcArgs); - if (!GetIntFromConfig(aSection, KFldExpected, expectedVal)) - { - ERR_PRINTF2(KLogMissingParameter, &KFldExpected); - SetBlockResult(EFail); - } - - if (err!=expectedVal) - { - ERR_PRINTF3(_L("The returned value is not as expected, expected: %d, actual: %d"), expectedVal, err); - SetBlockResult(EFail); - } - //Get the new OrdinalPostion and Priority using window group methods; - if (err!=KErrNotFound) - { - TInt retrnOrdinPostn=wingrp->OrdinalPosition(); - TInt retrnOrdinPrio=wingrp->OrdinalPriority(); - - if (retrnOrdinPostn!=newOrdinaPostn) - { - ERR_PRINTF3( - _L("The returned ordinalposition is not as expected, expected: %d, actual: %d"), - newOrdinaPostn, retrnOrdinPostn); - SetBlockResult(EFail); - } - - if (retrnOrdinPrio!=newOrdinPrio) - { - ERR_PRINTF3( - _L("The returned ordinalpriority is not as expected, expected: %d, actual: %d"), - newOrdinPrio, retrnOrdinPrio); - SetBlockResult(EFail); - } - } - ResetIpcArg(); - } - -void CT_DataAnimForMClass::DoGeneralExtIsFocusableL(TInt aOpcode, const TDesC& aSection) - { - TInt screenNub; - TBool expectedVal; - TInt sendFullOrdinPstn; - if (!GetIntFromConfig(aSection, KFldScreenNumb, screenNub)) - { - ERR_PRINTF2(KLogErrMissingPara, &KFldScreenNumb); - } - TPtrC8 ptr; - iIpcArgs.Set(0, TIpcArgs::ENothing); - TPckgBuf screenNubPck(screenNub); - iIpcArgs.Set(1, &screenNubPck); - - TPtrC datWingrpName; - RWindowGroup* wingrp; - if (GetStringFromConfig(aSection, KFldWingrp, datWingrpName)) - { - wingrp = static_cast(GetDataObjectL(datWingrpName)); - } - - //Get animation window's FullOrdinalPosition as arg(IPC slot 2) - - sendFullOrdinPstn = wingrp->FullOrdinalPosition(); - INFO_PRINTF2(_L("RWindowTreeNode::FullOrdinalPosition = %d"), sendFullOrdinPstn); - TPckgBuf sendFullOrdinPstnPck(sendFullOrdinPstn); - iIpcArgs.Set(2, &sendFullOrdinPstnPck); - - //Check the CommandReply return value - TInt err=iAnim->CommandReply(aOpcode, ptr, iIpcArgs); - if (!GetBoolFromConfig(aSection, KFldExpected, expectedVal)) - { - ERR_PRINTF2(KLogMissingParameter, &KFldExpected); - SetBlockResult(EFail); - } - - if (err!=expectedVal) - { - ERR_PRINTF3(_L("The returned value is not as expected, expected: %d, actual: %d"), expectedVal, err); - SetBlockResult(EFail); - } - ResetIpcArg(); - } - -void CT_DataAnimForMClass::DoGeneralExtWindowConfigL(TInt aOpcode, const TDesC& aSection) - { - TBool expectedVal; - if (!GetBoolFromConfig(aSection, KFldExpected, expectedVal)) - { - ERR_PRINTF2(KLogMissingParameter, &KFldExpected); - SetBlockResult(EFail); - } - else - { - TPtrC8 ptr; - TInt ret = iAnim->CommandReply(aOpcode, ptr); - if (ret != expectedVal) - { - ERR_PRINTF3(_L("The returned value is not as expected, expected: %d, actual: %d"), expectedVal, ret); - SetBlockResult(EFail); - } - } - } - -//*******************MAnimFreeTimerWindowFunction verifying******************************* -void CT_DataAnimForMClass::DoFreeTimerWinDeactivateGc(TInt aOpcode) - { - INFO_PRINTF2(_L("Excute %d"), aOpcode); - TPtrC8 ptr; - TInt err=iAnim->CommandReply(aOpcode, ptr); - if (err != KErrNone) - { - ERR_PRINTF2(KLogErrCommandReply, err); - SetError(err); - } - } - -void CT_DataAnimForMClass::DoFreeTimerWinUpdate(TInt aOpcode) - { - INFO_PRINTF1(KLogInfoCmdCommandReply1); - - TInt err=iAnim->CommandReply(aOpcode); - - if(err!=KErrNone) - { - ERR_PRINTF2(_L("CommandReply failed with error %d"), err); - SetError(err); - } - } - -//------------------------------------------------------------------------------------ -void CT_DataAnimForMClass::DoCmdRetrieveResult(const TDesC& aSectName , const TInt& datOpcode) - { - TInt result = iAnim->CommandReply(datOpcode); - TBool expectdVal; - //Get expected value from ini file. - if(!GetBoolFromConfig(aSectName,KFldExpected,expectdVal)) - { - if ( result != KErrNone) - ERR_PRINTF2( KLogErrCommandReply, result); - else // success - { - INFO_PRINTF1(_L("Retrieve Result event return ETrue")); - } - } - if(result!=expectdVal) - { - ERR_PRINTF3(_L("The returned value is not as expected, expected: %d, actual: %d"), expectdVal, result); - SetBlockResult (EFail); - } - else - { - INFO_PRINTF1(_L("Retrieve Result equals to the expected value")); - } - } - -void CT_DataAnimForMClass::DoCmdGeneralAnimate(const TDesC& aSectName, const TInt& datOpcode ) - { - //Get the datetime from the ini file - TDateTime dateTime ; - if(!GetDateTimeFromConfig(aSectName, dateTime)) - { - ERR_PRINTF2(KLogMissingParameter , &KlogDateTime); - SetBlockResult(EFail); - } - TPckgBuf sendPckg(dateTime); - iIpcArgs.Set(0,TIpcArgs::ENothing); - iIpcArgs.Set(1, &sendPckg); - - INFO_PRINTF1(KLogInfoCmdCommandReply3); - // Send the command to notify the server - TInt ret = iAnim->CommandReply(datOpcode, iSendBuf, iIpcArgs); - - // Check the command return code - if(ret == KErrNone) - { - ERR_PRINTF2( KLogErrCommandReply, ret); - SetBlockResult (EFail); - } - else - { - INFO_PRINTF1(_L("General Animate invoked succesffully and return successfully ")); - } - ResetIpcArg(); - } - - -void CT_DataAnimForMClass::DoCmdGeneralClient(const TDesC& /*aSectName*/, const TInt& datOpcode ) - { - // Send the command to notify the server - INFO_PRINTF1(KLogInfoCmdCommandReply3); - TInt ret = iAnim->CommandReply(datOpcode,iSendBuf,iIpcArgs); - - // Check the return thread id equals to the client thread or not. - TInt clientThreadId = RThread().Id().Id(); - - if ( ret == clientThreadId ) - { - INFO_PRINTF1(_L("General client invoked succesffully")); - } - else - { - ERR_PRINTF2( KLogErrCommandReply, ret); - SetBlockResult (EFail); - } - } - - -void CT_DataAnimForMClass::DoCmdGeneralFlashStateOn(const TDesC& aSectName, const TInt& datOpcode ) - { - // Send the command to notify the server. - INFO_PRINTF1(KLogInfoCmdCommandReply3); - TBool expected(EFalse); - TInt ret = -1 ; - - if ( !GetBoolFromConfig(aSectName,KFldExpected, expected) ) - { - ERR_PRINTF2(KLogMissingParameter , &KFldExpected); - SetBlockResult(EFail); - } - - ret = iAnim->CommandReply(datOpcode,iSendBuf,iIpcArgs); - //If ret return -1, the result value can not be trusted(Please refer to the code in AnimPlugin::WinAnim). - //So it need another calling untill the ret return a ETrue or EFalse. - while(ret == -1) - { - User::After(100000); - ret = iAnim->CommandReply(datOpcode,iSendBuf,iIpcArgs); - } - - - // Check if the return is ETrue (1) or EFalse(0) - if ( ret == static_cast(expected) ) - { - INFO_PRINTF1(_L("GeneralFlashStateOn invoked succesffully. Return code equals to expected vaule ")); - } - else - { - ERR_PRINTF2( KLogErrCommandReply, ret); - SetBlockResult (EFail); - } - } - -void CT_DataAnimForMClass::DoCmdGeneralPanic(const TDesC& /*aSectName*/ , const TInt& datOpcode) - { - //Send the command to notify the server. - INFO_PRINTF1(KLogInfoCmdCommandReply3); - TInt err = iAnim->CommandReply(datOpcode, iSendBuf , iIpcArgs ); - - //The client will be paniced by the server - INFO_PRINTF1(_L("GeneralPanic invoked successfully")); - } - -void CT_DataAnimForMClass::DoCmdGeneralScreenDevice(const TDesC& /*aSectName*/ , const TInt& datOpcode ) - { - //Send the command to notify the server . - INFO_PRINTF1(KLogInfoCmdCommandReply3); - TInt ret = iAnim->CommandReply(datOpcode, iSendBuf , iIpcArgs ); - - //Check if the return code is 0(Success) or not. - if ( ret == KErrNone ) - { - INFO_PRINTF1(_L("GeneralScreenDevice invoked succesffully.")); - } - else - { - ERR_PRINTF2( KLogErrCommandReply, ret); - SetBlockResult (EFail); - } - } - -void CT_DataAnimForMClass::DoCmdGeneralWindowExtension(const TDesC& /*aSectName*/, const TInt& datOpcode) - { - // Send the command to notify the server . - INFO_PRINTF1(KLogInfoCmdCommandReply3); - TInt ret = iAnim->CommandReply(datOpcode, iSendBuf, iIpcArgs); - - // Check if the return code is 0(Success) or not. - if (ret == KErrNone) - { - INFO_PRINTF1(_L("GeneralWindowExtension invoked succesffully.")); - } - else - { - ERR_PRINTF2( KLogErrCommandReply, ret); - SetBlockResult(EFail); - } - } - -void CT_DataAnimForMClass::DoCmdGeneralEventExtension( const TDesC& /*aSectName*/,const TInt& datOpcode) - { - // Send the command to notify the server . - INFO_PRINTF1(KLogInfoCmdCommandReply3); - TInt ret = iAnim->CommandReply(datOpcode, iSendBuf , iIpcArgs ); - - // Check if the return code is 0(Success) or not. - if ( ret == KErrNone ) - { - INFO_PRINTF1(_L("GeneralEventExtension invoked succesffully.")); - } - else - { - ERR_PRINTF2( KLogErrCommandReply, ret); - SetBlockResult (EFail); - } - } - - void CT_DataAnimForMClass::DoCmdGeneralExtendedInterface(const TDesC& aSectName , const TInt& datOpcode ) - { - TInt interface ; - //Get interface from ini file and set it as IpcArgs 1. - if ( !GetIntFromConfig(aSectName,KFldInterface, interface) ) - { - ERR_PRINTF2(KLogMissingParameter , &KFldInterface); - SetBlockResult (EFail); - } - TPckgBuf sendPckg(interface); - iIpcArgs.Set(0,TIpcArgs::ENothing); - iIpcArgs.Set(1, &sendPckg); - INFO_PRINTF1(KLogInfoCmdCommandReply3); - //Send the command to notify the server . - TInt result = iAnim->CommandReply(datOpcode, iSendBuf , iIpcArgs ); - - // Check the command return code - if ( interface == 0 ) - { - TInt expected ; - - if ( !GetIntFromConfig(aSectName,KFldExpected, expected) ) - { - ERR_PRINTF2(KLogMissingParameter , &KFldInterface); - SetBlockResult (EFail); - } - if ( result != expected ) /*so far, the expected value is 2.*/ - { - ERR_PRINTF2( KLogErrCommandReply, result); - SetBlockResult (EFail); - } - else - { - INFO_PRINTF1(_L("extended interface return is okay when the input paramter is 0")); - } - } - else if( interface == 1 ) - { - if ( result == 0) // server return 0 stands for okay. - { - INFO_PRINTF1(_L("extended interface return is okay when the input paramter is 1")); - } - else - { - ERR_PRINTF2( KLogErrCommandReply, result); - SetBlockResult (EFail); - } - } - else if( interface == 2 ) - { - if ( result == 0) // server return 0 stands for okay. - { - INFO_PRINTF1(_L("extended interface return is okay when the input paramter is 2")); - } - else - { - ERR_PRINTF2( KLogErrCommandReply, result); - SetBlockResult (EFail); - } - } - else - { - if ( result == 0) // server return 0 stands for okay. - { - INFO_PRINTF1(_L("extended interface return is a NULL pointer when the input paramter is OUT of 0~2")); - } - else - { - ERR_PRINTF2( KLogErrCommandReply, result); - SetBlockResult (EFail); - } - } - ResetIpcArg(); - } - -void CT_DataAnimForMClass::DoCmdGeneralNumOfExtInterfaces(const TDesC& aSectName,const TInt& datOpcode) - { - // Send the command to notify the server. - INFO_PRINTF1(KLogInfoCmdCommandReply3); - TInt result = iAnim->CommandReply(datOpcode, iSendBuf , iIpcArgs); - - INFO_PRINTF2(KLogErrCommandReply, result); - - // Check the return code - TInt expected; - if ( !GetIntFromConfig(aSectName,KFldExpected, expected) ) - { - ERR_PRINTF2(KLogMissingParameter , &KFldInterface); - SetBlockResult (EFail); - } - if (result != expected) // so far ,the expected value is 2. - { - ERR_PRINTF2( KLogErrCommandReply, result); - SetBlockResult (EFail); - } - else - { - INFO_PRINTF1(_L("NumberofExtendedInterfaces return is okay when the input paramter is 0")); - } - } - - - void CT_DataAnimForMClass::DoCmdGeneralGetRawEvents(const TDesC& aSectName , const TInt& datOpcode) - { - TBool bGetEvent; - //Get the rawevent parameter from ini file and set it as the IpcArgs 1 . - if ( !GetBoolFromConfig(aSectName,KFldGetEvent ,bGetEvent)) - { - ERR_PRINTF2(KLogMissingParameter , &KFldGetEvent); - SetBlockResult(EFail); - } - iIpcArgs.Set(0,TIpcArgs::ENothing); - TPckgBuf sendPckg(bGetEvent); - iIpcArgs.Set(1, &sendPckg); - - INFO_PRINTF1(KLogInfoCmdCommandReply3); - // Send the command to notify the server . - TInt result = iAnim->CommandReply(datOpcode, iSendBuf , iIpcArgs ); - - //Check the result is 0(Success) or not. - if (result != KErrNone ) - { - ERR_PRINTF2( KLogErrCommandReply, result); - SetBlockResult (EFail); - } - else - { - INFO_PRINTF1(_L("GetRawEvents return is okay ")); - } - } - - void CT_DataAnimForMClass::DoCmdGeneralPostRawEvent(const TDesC& aSectName , const TInt& datOpcode) - { - TRawEvent rawEvent; - TPtrC str; - //Get the post rawevent parameter from ini file and set it as the IpcArgs 1 . - if (!GetStringFromConfig(aSectName,KFldPostRawEvent,str)) - { - ERR_PRINTF2(KLogMissingParameter , &KFldPostRawEvent); - SetBlockResult(EFail); - } - TRawEvent::TType type; - if ( str == KENone ) - type = TRawEvent::ENone; - else if ( str == KEPointerMove ) - type = TRawEvent::EPointerMove; - else if ( str == KEPointerSwitchOn) - type = TRawEvent::EPointerSwitchOn; - else if ( str == KEKeyDown ) - type = TRawEvent::EKeyDown; - else if ( str == KEKeyUp ) - type = TRawEvent::EKeyUp; - else if ( str == KERedraw) - type = TRawEvent::ERedraw; - else if ( str == KESwitchOn ) - type = TRawEvent::ESwitchOn; - else if ( str == KEActive) - type = TRawEvent::EActive; - else if ( str == KEInactive) - type = TRawEvent::EInactive; - else if ( str == KEUpdateModifiers) - type = TRawEvent::EUpdateModifiers; - else if ( str == KEButton1Down) - type = TRawEvent::EButton1Down; - else if ( str == KEButton1Up) - type = TRawEvent::EButton1Up; - else if ( str == KEButton2Down) - type = TRawEvent::EButton2Down; - else if ( str == KEButton2Up) - type = TRawEvent::EButton2Up; - else if ( str == KEButton3Down) - type = TRawEvent::EButton3Down; - else if ( str == KEButton3Up) - type = TRawEvent::EButton3Up; - else if ( str == KESwitchOff) - type = TRawEvent::ESwitchOff; - else if ( str == KEKeyRepeat) - type = TRawEvent::EKeyRepeat; - else if ( str == KECaseOpen) - type = TRawEvent::ECaseOpen; - else if ( str == KECaseClose) - type = TRawEvent::ECaseClose; - else if ( str == KERestartSystem) - type = TRawEvent::ERestartSystem; - - rawEvent.Set(type); - TPckgBuf sendPckg(rawEvent); - - iIpcArgs.Set(0,TIpcArgs::ENothing); - iIpcArgs.Set(1, &sendPckg); - - INFO_PRINTF1(KLogInfoCmdCommandReply3); - //Send the command to notify the server . - TInt result = iAnim->CommandReply(datOpcode, iSendBuf , iIpcArgs ); - - //Check the result is 0(Success) or not. - if (result != KErrNone ) - { - ERR_PRINTF2(KLogErrCommandReply, result); - SetBlockResult (EFail); - } - else - { - INFO_PRINTF1(_L("PostRawEvent return is okay ")); - } - } - - - void CT_DataAnimForMClass::DoCmdGeneralPostKeyEventL(const TDesC& aSectName , const TInt& datOpcode) - { - /* - * 1.Use WinAnim plugin dll to post a key event. - * 2.Use an RWindowGroup object to capture the key event. - * */ - - TKeyEvent keyEvent; - TKeyCode aKeyCode; - _LIT( KCode , "Code"); - //Get the keycode from the ini file. - if (!CT_GraphicsUtil::ReadKeyCode(*this, aSectName, KCode , aKeyCode)) - { - ERR_PRINTF2(KLogMissingParameter , &KCode); - SetBlockResult(EFail); - } - // The keyEvent will be set as the IpcArg 1 . - TInt captureKey = aKeyCode; - keyEvent.iCode = aKeyCode; - keyEvent.iScanCode =aKeyCode; - keyEvent.iModifiers = 0; - keyEvent.iRepeats = 0; - - _LIT(KWindowGroup, "windowgroup"); - _LIT(KWsSession, "session"); - RWindowGroup* group = NULL; - RWsSession* session = NULL; - TPtrC datName; - if ( GetStringFromConfig(aSectName, KWindowGroup , datName) ) - { - group = static_cast(GetDataObjectL(datName)); - } - - if ( GetStringFromConfig(aSectName, KWsSession , datName) ) - { - session = static_cast(GetDataObjectL(datName)); - } - group->CaptureKey(captureKey, 0, 0); - TPckgBuf sendPckg(keyEvent); - iIpcArgs.Set(0,TIpcArgs::ENothing); - iIpcArgs.Set(1, &sendPckg); - TInt err = iAnim->CommandReply(datOpcode, iSendBuf , iIpcArgs ); - - //Check the result is 0(Success) or not. - if (err != KErrNone ) - { - ERR_PRINTF2(KLogErrCommandReply, err); - SetBlockResult (EFail); - } - else - { - INFO_PRINTF1(_L("PostKeyEvent return is okay ")); - } - TRequestStatus myStatus; - session->EventReady(&myStatus); - TBool bStop = ETrue; - TWsEvent we; - while(bStop) - { - User::WaitForRequest(myStatus); - session->GetEvent(we); - if(we.Type() == EEventKey) - { - bStop = EFalse; - TInt rst = we.Key()->iCode; - if(rst != captureKey) - { - ERR_PRINTF3(_L("The returned value is not as expected, expected: %d, actual: %d"), captureKey, rst); - SetBlockResult(EFail); - } - else - { - _LIT(KSuccess, "PostKeyEvent successfully"); - INFO_PRINTF1(KSuccess); - } - } - else - { - session->EventReady(&myStatus); - } - }//end while - } - - void CT_DataAnimForMClass::DoCmdGeneralSetSync(const TDesC& aSectName , const TInt& datOpcode ) - { - MAnimGeneralFunctions::TAnimSync syncmode ; - TPtrC str; - // Get the syncmode to be set from ini file and set it as IpcArg 1. - if ( !GetStringFromConfig(aSectName,KFldSyncMode ,str)) - { - ERR_PRINTF2(KLogMissingParameter , &KFldSyncMode); - SetBlockResult (EFail); - } - if (str == KESyncNone ) - syncmode = MAnimGeneralFunctions::ESyncNone ; - else if ( str == KESyncFlash) - syncmode = MAnimGeneralFunctions::ESyncFlash ; - else if ( str == KESyncSecond) - syncmode = MAnimGeneralFunctions::ESyncSecond ; - else if ( str == KESyncMinute) - syncmode = MAnimGeneralFunctions::ESyncMinute ; - else if ( str == KESyncDay) - syncmode = MAnimGeneralFunctions::ESyncDay ; - iIpcArgs.Set(0,TIpcArgs::ENothing); - TPckgBuf sendPckg(syncmode); - iIpcArgs.Set(1, &sendPckg); - - INFO_PRINTF1(KLogInfoCmdCommandReply3) ; - //Send the command to notify the server . - TInt result = iAnim->CommandReply(datOpcode, iSendBuf , iIpcArgs ); - - //Check the result is 0(Success) or not. - if (result != KErrNone ) - { - ERR_PRINTF2(KLogErrCommandReply, result); - SetBlockResult (EFail); - } - else - { - INFO_PRINTF1(_L("SetSync return is okay ")); - } - } - - void CT_DataAnimForMClass::DoCmdGeneralSync(const TDesC& aSectName , const TInt& datOpcode ) - { - TInt expectedsyncmode ; - TPtrC str; - // Get the expected syncmode from ini file. - if ( !GetStringFromConfig(aSectName,KFldExpected ,str)) - { - ERR_PRINTF2(KLogMissingParameter , &KFldExpected); - SetBlockResult(EFail); - } - if (str == KESyncNone ) - expectedsyncmode = MAnimGeneralFunctions::ESyncNone ; - else if ( str == KESyncFlash) - expectedsyncmode = MAnimGeneralFunctions::ESyncFlash ; - else if ( str == KESyncSecond) - expectedsyncmode = MAnimGeneralFunctions::ESyncSecond ; - else if ( str == KESyncMinute) - expectedsyncmode = MAnimGeneralFunctions::ESyncMinute ; - else if ( str == KESyncDay) - expectedsyncmode = MAnimGeneralFunctions::ESyncDay ; - - iIpcArgs.Set( 0, TIpcArgs::ENothing); - INFO_PRINTF1(KLogInfoCmdCommandReply3) ; - //Send the command to notify the server . - TInt result = iAnim->CommandReply(datOpcode, iSendBuf , iIpcArgs ); - - //Check the command return code . - if ( result != expectedsyncmode ) - { - ERR_PRINTF2( KLogErrCommandReply, result); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("GeneralSync invoked successfully")); - } - } - - void CT_DataAnimForMClass::DoCmdGeneralSetInterval(const TDesC& aSectName , const TInt& datOpcode) - { - // Get the interval from ini file and set it as IpcArg 1. - TInt interval ; - if ( !GetIntFromConfig(aSectName,KFldInterval ,interval)) - { - ERR_PRINTF2(KLogMissingParameter , &KFldInterval); - SetBlockResult(EFail); - } - iIpcArgs.Set(0,TIpcArgs::ENothing); - TPckgBuf sendPckg(interval) ; - iIpcArgs.Set(1, &sendPckg ); - INFO_PRINTF1(KLogInfoCmdCommandReply3) ; - //Send the command to notify the server . - TInt result = iAnim->CommandReply(datOpcode, iSendBuf , iIpcArgs ); - - //Check the result is 0(Success) or not. - if ( result != KErrNone ) - { - ERR_PRINTF2( KLogErrCommandReply, result); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("GeneralSetInterval invoked successfully")); - } - } - - void CT_DataAnimForMClass::DoCmdGeneralSetNextInterval(const TDesC& aSectName , const TInt& datOpcode) - { - //Read the interval from ini file - TInt interval; - if ( !GetIntFromConfig(aSectName,KFldInterval ,interval)) - { - ERR_PRINTF2(KLogMissingParameter , &KFldInterval); - return; - } - TPckgBuf sendPckg1(interval); - - TInt nextinterval ; - _LIT( KNextInterval , "nextinterval"); - //Read the next interval from ini file - if ( !GetIntFromConfig(aSectName,KNextInterval ,nextinterval)) - { - ERR_PRINTF2(KLogMissingParameter , &KNextInterval); - SetBlockResult(EFail); - } - TPckgBuf sendPckg2(nextinterval) ; - iIpcArgs.Set(0,TIpcArgs::ENothing); - iIpcArgs.Set(1, &sendPckg1); - iIpcArgs.Set(2, &sendPckg2); - INFO_PRINTF1(KLogInfoCmdCommandReply3) ; - //Send the command to notify the server. - TInt result = iAnim->CommandReply(datOpcode, iSendBuf , iIpcArgs ); - - //Check the result is 0(Success) or not. - if ( result != KErrNone ) - { - ERR_PRINTF2( KLogErrCommandReply, result); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("GeneralSetNextInterval invoked successfully")); - } - } - - - void CT_DataAnimForMClass::DoCmdGeneralSystemTime(const TDesC& aSectName , const TInt& datOpcode) - { - MAnimGeneralFunctions::TAnimSync syncmode; - TPtrC str; - _LIT(KExpected , "expected"); - _LIT( KSyncMode , "animsync"); - // Get the syncmode from ini file and set it as IpcArg 1. - if ( !GetStringFromConfig(aSectName,KSyncMode ,str)) - { - ERR_PRINTF2(KLogMissingParameter , &KSyncMode); - SetBlockResult(EFail); - } - if (str == KESyncNone ) - syncmode = MAnimGeneralFunctions::ESyncNone; - else if ( str == KESyncFlash) - syncmode = MAnimGeneralFunctions::ESyncFlash; - else if ( str == KESyncSecond) - syncmode = MAnimGeneralFunctions::ESyncSecond; - else if ( str == KESyncMinute) - syncmode = MAnimGeneralFunctions::ESyncMinute; - else if ( str == KESyncDay) - syncmode = MAnimGeneralFunctions::ESyncDay; - iIpcArgs.Set(0,TIpcArgs::ENothing); - TPckgBuf sendPckg(syncmode); - iIpcArgs.Set(1, &sendPckg); - INFO_PRINTF1(KLogInfoCmdCommandReply3); - TInt result = iAnim->CommandReply(datOpcode, iSendBuf , iIpcArgs ); - TBool expected; - if ( !GetBoolFromConfig(aSectName,KExpected ,expected)) - { - ERR_PRINTF2(KLogMissingParameter , &KExpected); - return; - } - if(result != static_cast(expected)) - { - ERR_PRINTF3(_L("The returned value is not as expected, expected: %d, actual: %d"), expected, result); - SetBlockResult (EFail); - } - else - { - INFO_PRINTF1(_L("GeneralSystemTime invoked is okay.")); - } - } - -void CT_DataAnimForMClass::DoCmdGeneralRegisterForNotis(const TDesC& aSectName , const TInt& datOpcode) - { - TInt notifications; - TEventCode expectedCode; - // Get the notifications value from ini file and set it as IpcArg 1. - if ( !GetIntFromConfig(aSectName,KFldNotifications ,notifications)) - { - ERR_PRINTF2(KLogMissingParameter, &KFldNotifications); - SetBlockResult(EFail); - } - - if(!CT_GraphicsUtil::ReadEventCode(*this, aSectName, KFldExpected, expectedCode)) - { - ERR_PRINTF2(KLogMissingParameter , &KFldExpected); - return; - } - - TPckgBuf sendPckg(notifications); - TPckgBuf sendPckg2(expectedCode); - iIpcArgs.Set(0, TIpcArgs::ENothing ); - iIpcArgs.Set(1, &sendPckg ); - iIpcArgs.Set(2, &sendPckg2); - - INFO_PRINTF1(KLogInfoCmdCommandReply3); - //Send the command to notify the server . - TInt result = iAnim->CommandReply(datOpcode,iSendBuf,iIpcArgs); - - //Check the result is 0(Success) or not. - if ( result != KErrNone ) - { - ERR_PRINTF2( KLogErrCommandReply, result); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("RegisterForNotis invoked successfully")); - } - } - - -void CT_DataAnimForMClass::DoCmdGeneralMessage(const TDesC& aSectName ,const TInt& datOpcode) - { - TPtrC str , expectedStr; - TBuf<100> returnStr; - // Get the sending message value from ini file and set it as IpcArg 1. - if ( !GetStringFromConfig(aSectName,KFldMessage ,str)) - { - ERR_PRINTF2(KLogMissingParameter , &KFldMessage); - SetBlockResult(EFail); - } - // Get the expected message value from ini file . - if ( !GetStringFromConfig(aSectName,KFldExpected ,expectedStr)) - { - ERR_PRINTF2(KLogMissingParameter , &KFldExpected); - SetBlockResult(EFail); - } - iIpcArgs.Set(0, TIpcArgs::ENothing ); - iIpcArgs.Set(1, &str); - iIpcArgs.Set(2, &returnStr); - - INFO_PRINTF1(KLogInfoCmdCommandReply3); - //Send the command to notify the server . - TInt result = iAnim->CommandReply(datOpcode,iSendBuf,iIpcArgs); - - if(expectedStr.Compare(returnStr)) - { - ERR_PRINTF3(_L("The returned value is not as expected, expected: %S, actual: %S"), &expectedStr, &returnStr); - SetBlockResult (EFail); - } - else - { - INFO_PRINTF1(_L("GeneralMessage invoked successfully")); - } - ResetIpcArg(); - } - - -void CT_DataAnimForMClass::DoCmdGeneralDuplicateBitmapL(const TDesC& aSectName , const TInt& datOpcode) - { - TPtrC str ; - TInt bmHandle; - CFbsBitmap* bmp; - // Get the object name of CFbsBitmap from ini file. - if ( !GetStringFromConfig(aSectName,KFldHandleBitmap,str)) - { - //giving a non-existed value to take the nagative case. - bmHandle = 9999; - } - else - { - bmp = static_cast(GetDataObjectL(str)); - bmHandle = bmp->Handle(); - } - - iIpcArgs.Set(0, TIpcArgs::ENothing ); - TPckgBuf sendPckg(bmHandle); - iIpcArgs.Set(1, &sendPckg ); - //Send the command to notify the server - INFO_PRINTF1(KLogInfoCmdCommandReply3); - iAnim->CommandReply(datOpcode,iSendBuf,iIpcArgs); - - //Print info - _LIT(KSuccess,"GeneralDuplicateBitmapL invoked successfully"); - INFO_PRINTF1(KSuccess); - ResetIpcArg(); - } - - -void CT_DataAnimForMClass::DoCmdGeneralDuplicateFontL(const TDesC& aSectName , const TInt& datOpcode) - { - TPtrC str; - TInt fntHandle; - CFbsFont* fnt; - TInt typeId; - // Get the object name of CFbsFont from ini file. - if ( !GetStringFromConfig(aSectName,KFldHandleFont,str)) - { - //giving a non-existed value to take the nagative case. - fntHandle = 9999; - } - else - { - fnt = static_cast(GetDataObjectL(str)); - typeId = fnt->TypeUid().iUid; //this is the expected value. - fntHandle = fnt->Handle(); - } - TInt result = 0; - TPckgBuf sendPckg(fntHandle); - TPckgBuf getPckg(result); - - iIpcArgs.Set(0, TIpcArgs::ENothing ); - iIpcArgs.Set(1, &sendPckg); - iIpcArgs.Set(2, &getPckg); - INFO_PRINTF1(KLogInfoCmdCommandReply3); - //Send the command to notify the server . - iAnim->CommandReply(datOpcode,iSendBuf,iIpcArgs); - result = getPckg(); - - //Check the result - if(result == typeId) - { - INFO_PRINTF1(_L("GeneralDuplicateFontL invoked successfully")); - } - else - { - ERR_PRINTF3(_L("The returned value is not as expected, expected: %d, actual: %d"), typeId, result); - SetError(KErrNoMemory); - } - ResetIpcArg(); - } - - -void CT_DataAnimForMClass::DoCmdGeneralCloseFontL(const TDesC& aSectName , const TInt& datOpcode) - { - TPtrC str ; - // Get the object name of CFbsFont from ini file. - if ( !GetStringFromConfig(aSectName,KFldHandleFont,str)) - { - ERR_PRINTF2(KLogMissingParameter , &KFldHandleFont); - SetBlockResult(EFail); - } - CFbsFont* fnt = static_cast(GetDataObjectL(str)); - TInt typeId = fnt->TypeUid().iUid; //this is the expected value . - TInt fntHandle = fnt->Handle(); - TInt result = 0; - TPckgBuf sendPckg(fntHandle); - TPckgBuf getPckg(result); - - iIpcArgs.Set(0, TIpcArgs::ENothing ); - iIpcArgs.Set(1, &sendPckg ); - iIpcArgs.Set(2, &getPckg); - INFO_PRINTF1(KLogInfoCmdCommandReply3); - iAnim->CommandReply(datOpcode,iSendBuf,iIpcArgs); - result = getPckg(); - if(result == typeId) - { - _LIT(KSuccess,"GeneralDuplicateFontL invoked successfully"); - INFO_PRINTF1(KSuccess); - } - else - { - ERR_PRINTF3(_L("The returned value is not as expected, expected: %d, actual: %d"), typeId, result); - SetBlockResult (EFail); - } - ResetIpcArg(); - } - -void CT_DataAnimForMClass::DoCmdGeneralReplyBuf8(const TDesC& aSectName, const TInt& datOpcode) - { - TPtrC str2; - - if ( !GetStringFromConfig(aSectName,KFldSetReplyBufHandle1,str2)) - { - ERR_PRINTF2(KLogMissingParameter , &KFldSetReplyBufHandle1); - SetBlockResult(EFail); - } - TBuf8<100> slot2; - slot2.Append(str2); - - TPtrC str3; - - if ( !GetStringFromConfig(aSectName,KFldSetReplyBufHandle2,str3)) - { - ERR_PRINTF2(KLogMissingParameter , &KFldSetReplyBufHandle2); - return ; - } - TBuf8<100> slot3; - slot3.Append(str3); - - TBuf8<100> result; - - iIpcArgs.Set(0, TIpcArgs::ENothing ); - iIpcArgs.Set(1, &result); - iIpcArgs.Set(2, &slot2); - iIpcArgs.Set(3, &slot3); - INFO_PRINTF1(KLogInfoCmdCommandReply3); - iAnim->CommandReply(datOpcode,iSendBuf,iIpcArgs); - - if(!result.Compare(slot3) && result.Compare(slot2)) - { - _LIT(KSuccess,"GeneralDuplicateFontL invoked successfully"); - INFO_PRINTF1(KSuccess); - } - else - { - ERR_PRINTF2(_L("The returned value is not as expected, result: %S"), &result); - SetBlockResult (EFail); - } - ResetIpcArg(); - } - -void CT_DataAnimForMClass::DoCmdGeneralReplyBuf16(const TDesC& aSectName, const TInt& datOpcode) - { - TPtrC str2; - - if ( !GetStringFromConfig(aSectName,KFldSetReplyBufHandle1,str2)) - { - ERR_PRINTF2(KLogMissingParameter , &KFldSetReplyBufHandle1); - SetBlockResult(EFail); - } - TBuf16<100> slot2(str2); - - TPtrC str3; - - if ( !GetStringFromConfig(aSectName,KFldSetReplyBufHandle2,str3)) - { - ERR_PRINTF2(KLogMissingParameter , &KFldSetReplyBufHandle2); - return ; - } - TBuf16<100> slot3(str3); - - TBuf16<100> result; - - iIpcArgs.Set(0, TIpcArgs::ENothing ); - iIpcArgs.Set(1, &result); - iIpcArgs.Set(2, &slot2); - iIpcArgs.Set(3, &slot3); - INFO_PRINTF1(KLogInfoCmdCommandReply3); - iAnim->CommandReply(datOpcode,iSendBuf,iIpcArgs); - - if(!result.Compare(slot3) && result.Compare(slot2)) - { - _LIT(KSuccess,"GeneralDuplicateFontL invoked successfully"); - INFO_PRINTF1(KSuccess); - } - else - { - ERR_PRINTF2(_L("The returned value is not as expected, result: %S"), &result); - SetBlockResult (EFail); - } - ResetIpcArg(); - } -//-------------------------------------------------The MAnimSpriteFunctions ---------------------------------------- -void CT_DataAnimForMClass::DoCmdSpriteGetSpriteMember(const TDesC& aSectName , const TInt& datOpcode) - { - TInt memberindex ; - // Get the sprite member index from ini file and set it as IpcArg 1 . - if ( !GetIntFromConfig(aSectName,KFldMemberIndex ,memberindex)) - { - ERR_PRINTF2(KLogMissingParameter , &KFldMemberIndex); - SetBlockResult(EFail); - } - iIpcArgs.Set(0, TIpcArgs::ENothing); - TPckgBuf pckg(memberindex); - TPckgBuf returnPckg; - iIpcArgs.Set(1,&pckg); - iIpcArgs.Set(2,&returnPckg); - - // Send the command to notify the server . - INFO_PRINTF1(KLogInfoCmdCommandReply3); - iAnim->CommandReply(datOpcode,iSendBuf,iIpcArgs); - - TPoint result=returnPckg(); - // Verify the result and the expected . - TPtrC spritename; - - TPoint expectedPoint; - // Get the expected point value from ini file. - if ( !GetPointFromConfig(aSectName, KFldExpectedPoint, expectedPoint)) - { - ERR_PRINTF2(KLogMissingParameter, &KFldExpectedPoint); - return; - } - - if ( result != expectedPoint) - { - ERR_PRINTF3(_L("The returned value is not as expected, expected.x: %d, expect.y: %d"), expectedPoint.iX , expectedPoint.iY); - ERR_PRINTF3(_L("The returned value is not as expected, result.x: %d, result.y: %d"), result.iX , result.iY); - SetBlockResult (EFail); - } - else - { - INFO_PRINTF1(_L("Get Sprite Member successfully")); - } - ResetIpcArg(); - } - -void CT_DataAnimForMClass::DoCmdSpriteUpdateMember(const TDesC& aSectName , const TInt& datOpcode) - { - TInt memberindex ; - TRect rect ; - TBool isfullupdate ; - //Get the sprite member index from ini file and set it as IpcArg 1. - if ( ! GetIntFromConfig(aSectName,KFldMemberIndex ,memberindex)) - { - ERR_PRINTF2(KLogMissingParameter , &KFldMemberIndex); - SetBlockResult(EFail); - } - //Get the rect value from ini file and set it as IpcArg 2. - if ( ! GetRectFromConfig(aSectName,KFldRect ,rect)) - { - ERR_PRINTF2(KLogMissingParameter , &KFldRect); - SetBlockResult(EFail); - } - //Get the isfullupdate flag from ini file and set it as IpcArg 3. - if ( ! GetBoolFromConfig(aSectName,KFldIsFullUpdate ,isfullupdate)) - { - ERR_PRINTF2(KLogMissingParameter , &KFldIsFullUpdate); - SetBlockResult(EFail); - } - - TPckgBuf memberPckg(memberindex); - TPckgBuf rectPckg(rect); - TPckgBuf updatePckg(isfullupdate); - - - iIpcArgs.Set(0, TIpcArgs::ENothing); - iIpcArgs.Set(1, &memberPckg); - iIpcArgs.Set(2, &rectPckg); - iIpcArgs.Set(3, &updatePckg); - - INFO_PRINTF1(KLogInfoCmdCommandReply3); - //Send the command to notify the server . - TInt result = iAnim->CommandReply(datOpcode,iSendBuf,iIpcArgs); - - //Check the result is 0(Success) or not. - if (result != KErrNone ) - { - ERR_PRINTF2(KLogErrCommandReply, result); - SetBlockResult (EFail); - } - else - { - INFO_PRINTF1(_L("UpdateSpriteMember return is okay ")); - } - } - - -void CT_DataAnimForMClass::DoCmdSpriteActivate(const TDesC& aSectName , const TInt& datOpcode) - { - TBool isactive; - // Get the isactive flag from ini file and set as IpcArg 1. - if ( !GetBoolFromConfig(aSectName,KFldIsActivate ,isactive)) - { - ERR_PRINTF2(KLogMissingParameter , &KFldIsActivate); - SetBlockResult(EFail); - } - TPckgBuf sendPkg(isactive) ; - iIpcArgs.Set(0, TIpcArgs::ENothing); - iIpcArgs.Set(1,&sendPkg); - - INFO_PRINTF1(KLogInfoCmdCommandReply3); - //Send the command to notify the server . - TInt result = iAnim->CommandReply(datOpcode,iSendBuf,iIpcArgs); - - //Check the result is 0(Success) or not. - if (result != KErrNone ) - { - ERR_PRINTF2(KLogErrCommandReply, result); - SetBlockResult (EFail); - } - else - { - INFO_PRINTF1(_L("SpriteActive return is okay ")); - } - } - -void CT_DataAnimForMClass::DoCmdSpriteSpriteCanBeSeen(const TDesC& aSectName , const TInt& datOpcode) - { - TBool expected; - // Get the expected boolean value from the ini file. - if ( !GetBoolFromConfig(aSectName, KFldExpected, expected)) - { - ERR_PRINTF2(KLogMissingParameter , &KFldExpected); - SetBlockResult(EFail); - } - TPckgBuf resultPkg(EFalse) ; - - - iIpcArgs.Set(0, TIpcArgs::ENothing); - iIpcArgs.Set(1,&resultPkg); - - INFO_PRINTF1(KLogInfoCmdCommandReply3); - //Send the command to notify the server . - iAnim->CommandReply(datOpcode,iSendBuf,iIpcArgs); - - //Verify the result and the expected - TBool result = resultPkg() ; - - if ( result != expected ) - { - ERR_PRINTF3(_L("The returned value is not as expected, expected: %d, actual: %d"), expected, (TInt)result); - SetBlockResult (EFail); - } - else - { - INFO_PRINTF1(_L("SpriteCanBeSeen return is okay ")); - } - ResetIpcArg(); - } - -void CT_DataAnimForMClass::DoCmdSpriteSizeChangedL(const TDesC& /*aSectName*/ , const TInt& datOpcode) - { - //Send the command to notify the server . - iIpcArgs.Set(0, TIpcArgs::ENothing); - - INFO_PRINTF1(KLogInfoCmdCommandReply3); - TInt result = iAnim->CommandReply(datOpcode,iSendBuf,iIpcArgs); - - //Check the result is 0(Success) or not. - if (result != KErrNone ) - { - ERR_PRINTF2(KLogErrCommandReply, result); - SetBlockResult (EFail); - } - else - { - INFO_PRINTF1(_L("SpriteSizeChangedL return is okay")); - } - } - -void CT_DataAnimForMClass::DoCmdSpriteSetPosition(const TDesC& aSectName , const TInt& datOpcode) - { - // Get the point value from ini file and set as IpcArg 1. - TPoint point ; - if ( !GetPointFromConfig(aSectName, KFldPointPosition, point)) - { - ERR_PRINTF2(KLogMissingParameter , &KFldPointPosition); - SetBlockResult(EFail); - } - TPckgBuf pkg(point) ; - iIpcArgs.Set(0, TIpcArgs::ENothing); - iIpcArgs.Set(1, &pkg) ; - INFO_PRINTF1(KLogInfoCmdCommandReply3); - //Send the command to notify the server . - TInt result = iAnim->CommandReply(datOpcode,iSendBuf,iIpcArgs); - - //Check the result is 0(Success) or not. - if (result != KErrNone ) - { - ERR_PRINTF2(KLogErrCommandReply, result); - SetBlockResult (EFail); - } - else - { - INFO_PRINTF1(_L("SpriteSetPosition return is okay")); - } - } - -void CT_DataAnimForMClass::DoCmdEatupMemory(const TInt& datOpcode) - { - TInt result = iAnim->CommandReply(datOpcode); - if (result != KErrNone ) - { - ERR_PRINTF2(KLogErrCommandReply, result); - SetBlockResult (EFail); - } - else - { - INFO_PRINTF1(_L("EatupMemory return is okay")); - } - } - -void CT_DataAnimForMClass::DoCmdFreeEatenMemory(const TInt& datOpcode) - { - TInt result = iAnim->CommandReply(datOpcode); - if (result != KErrNone ) - { - ERR_PRINTF2(KLogErrCommandReply, result); - SetBlockResult (EFail); - } - else - { - INFO_PRINTF1(_L("FreeEatenMemory return is okay")); - } - } - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/src/T_DataBackedUpWindow.cpp --- a/graphicsapitest/graphicssvs/wserv/src/T_DataBackedUpWindow.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,288 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -#include "T_DataBackedUpWindow.h" -#include "T_GraphicsUtil.h" - -/*@{*/ -_LIT(KDataClassname, "RBackedUpWindow"); - -//Commands -_LIT(KCmdnew, "new"); -_LIT(KCmdDestructor, "~"); -_LIT(KCmdConstruct, "Construct"); -_LIT(KCmdBitmapHandle, "BitmapHandle"); -_LIT(KCmdUpdateScreen, "UpdateScreen"); -_LIT(KCmdUpdateBackupBitmap, "UpdateBackupBitmap"); -_LIT(KCmdMaintainBackup, "MaintainBackup"); - -// Fields -_LIT(KFldDisplayMode, "displaymode"); -_LIT(KFldHandle, "handle"); -_LIT(KFldParent, "parent"); -_LIT(KFldRegion, "region"); -_LIT(KFldWs, "ws"); - -/// Logging -_LIT(KLogError, "Error=%d"); -_LIT(KLogMissingParameter, "Missing parameter '%S'"); -/*@}*/ - -////////////////////////////////////////////////////////////////////// -// Construction/Destruction -////////////////////////////////////////////////////////////////////// - -CT_DataBackedUpWindow* CT_DataBackedUpWindow::NewL() - { - CT_DataBackedUpWindow* ret=new (ELeave) CT_DataBackedUpWindow(); - CleanupStack::PushL(ret); - ret->ConstructL(); - CleanupStack::Pop(ret); - return ret; - } - -CT_DataBackedUpWindow::CT_DataBackedUpWindow() -: CT_DataDrawableWindow() -, iBackedUpWindow(NULL) - { - } - -void CT_DataBackedUpWindow::ConstructL() - { - } - -CT_DataBackedUpWindow::~CT_DataBackedUpWindow() - { - DestroyData(); - } - -void CT_DataBackedUpWindow::SetObjectL(TAny* aAny) - { - DestroyData(); - iBackedUpWindow = static_cast (aAny); - } - -void CT_DataBackedUpWindow::DestroyData() - { - delete iBackedUpWindow; - iBackedUpWindow=NULL; - } - -void CT_DataBackedUpWindow::DisownObjectL() - { - iBackedUpWindow = NULL; - } - -RDrawableWindow* CT_DataBackedUpWindow::GetDrawableWindow() const - { - return iBackedUpWindow; - } - -/** -* Process a command read from the ini file -* -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* @param aAsyncErrorIndex index of command. used for async calls -* -* @return ETrue if the command is processed -*/ -TBool CT_DataBackedUpWindow::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex) - { - TBool ret = ETrue; - - if ( aCommand==KCmdDestructor ) - { - DestroyData(); - } - else if ( aCommand==KCmdnew || aCommand==KDataClassname ) - { - DoCmdnewL(aSection); - } - else if ( aCommand==KCmdConstruct ) - { - DoCmdConstructL(aSection); - } - else if ( aCommand==KCmdBitmapHandle ) - { - DoCmdBitmapHandle(); - } - else if ( aCommand==KCmdUpdateScreen ) - { - DoCmdUpdateScreenL(aSection); - } - else if ( aCommand==KCmdUpdateBackupBitmap ) - { - DoCmdUpdateBackupBitmap(); - } - else if ( aCommand==KCmdMaintainBackup ) - { - DoCmdMaintainBackup(); - } - else - { - ret=CT_DataDrawableWindow::DoCommandL(aCommand, aSection, aAsyncErrorIndex); - } - - return ret; - } - - -void CT_DataBackedUpWindow::DoCmdnewL(const TDesC& aSection) - { - DestroyData(); - - // Get test data for command input parameter(s) - TPtrC wsName; - RWsSession* ws=NULL; - if ( GetStringFromConfig(aSection, KFldWs, wsName) ) - { - ws = static_cast(GetDataObjectL(wsName)); - } - - TInt err=KErrNone; - if ( ws!=NULL ) - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute new RBackedUpWindow(RWsSession)")); - TRAP( err, iBackedUpWindow = new (ELeave) RBackedUpWindow(*ws)); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute new RBackedUpWindow()")); - TRAP( err, iBackedUpWindow = new (ELeave) RBackedUpWindow()); - } - - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - } - - -void CT_DataBackedUpWindow::DoCmdConstructL(const TDesC& aSection) - { - TBool dataOk=ETrue; - - // Get test data for command input parameter(s) - TPtrC parentName; - RWindowTreeNode* parent=NULL; - if ( GetStringFromConfig(aSection, KFldParent, parentName) ) - { - parent = static_cast(GetDataObjectL(parentName)); - } - if ( parent==NULL ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldParent); - SetBlockResult(EFail); - } - - TDisplayMode datDisplayMode; - if ( !CT_GraphicsUtil::ReadDisplayMode(*this, aSection, KFldDisplayMode, datDisplayMode) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldDisplayMode); - SetBlockResult(EFail); - } - - TInt datHandle; - if ( !GetIntFromConfig(aSection, KFldHandle, datHandle) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldHandle); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute Construct(RWindowTreeNode, TDisplayMode, TUint32)")); - TInt returnCode = iBackedUpWindow->Construct(*parent, datDisplayMode, datHandle); - - // Check the command return code, if !=KErrNone then stop this command - if ( returnCode!=KErrNone ) - { - ERR_PRINTF2(KLogError, returnCode); - SetError(returnCode); - } - - // No command output parameter to display and check - } - } - - -void CT_DataBackedUpWindow::DoCmdBitmapHandle() - { - // Execute command and log parameters - TInt handle=iBackedUpWindow->BitmapHandle(); - INFO_PRINTF2(_L("BitmapHandle() %d"), handle); - SetHandle(handle); - } - - -void CT_DataBackedUpWindow::DoCmdUpdateScreenL(const TDesC& aSection) - { - // Get test data for command input parameter(s) - RRegion region(1); - CleanupClosePushL(region); - - if ( GetRegionFromConfig(aSection, KFldRegion, region) ) - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute UpdateScreen(TRegion)")); - iBackedUpWindow->UpdateScreen(region); - - // No command return value and output parameter to display and check - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute UpdateScreen()")); - iBackedUpWindow->UpdateScreen(); - - // No command return value and output parameter to display and check - } - - CleanupStack::PopAndDestroy(®ion); - } - - -void CT_DataBackedUpWindow::DoCmdUpdateBackupBitmap() - { - // No command input parameter to process - - // Execute command and log parameters - INFO_PRINTF1(_L("execute UpdateBackupBitmap()")); - iBackedUpWindow->UpdateBackupBitmap(); - - // No command return value and output parameter to display and check - } - - -void CT_DataBackedUpWindow::DoCmdMaintainBackup() - { - // No command input parameter to process - - // Execute command and log parameters - INFO_PRINTF1(_L("execute MaintainBackup()")); - iBackedUpWindow->MaintainBackup(); - - // No command return value and output parameter to display and check - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/src/T_DataBlankWindow.cpp --- a/graphicsapitest/graphicssvs/wserv/src/T_DataBlankWindow.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,284 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -#include "T_DataBlankWindow.h" - -/*@{*/ -_LIT(KDataClassname, "RBlankWindow"); - -//Commands -_LIT(KCmdnew, "new"); -_LIT(KCmdDestructor, "~"); -_LIT(KCmdConstruct, "Construct"); -_LIT(KCmdSetColor, "SetColor"); -_LIT(KCmdSetSize, "SetSize"); -_LIT(KCmdSetExtent, "SetExtent"); - -// Fields -_LIT(KFldColor, "color"); -_LIT(KFldHandle, "handle"); -_LIT(KFldParent, "parent"); -_LIT(KFldPoint, "point"); -_LIT(KFldSize, "size"); -_LIT(KFldWs, "ws"); - -/// Logging -_LIT(KLogError, "Error=%d"); -_LIT(KLogMissingParameter, "Missing parameter '%S'"); -/*@}*/ - -////////////////////////////////////////////////////////////////////// -// Construction/Destruction -////////////////////////////////////////////////////////////////////// - -CT_DataBlankWindow* CT_DataBlankWindow::NewL() - { - CT_DataBlankWindow* ret=new (ELeave) CT_DataBlankWindow(); - CleanupStack::PushL(ret); - ret->ConstructL(); - CleanupStack::Pop(ret); - return ret; - } - -CT_DataBlankWindow::CT_DataBlankWindow() -: CT_DataWindowBase() -, iBlankWindow(NULL) - { - } - -void CT_DataBlankWindow::ConstructL() - { - } - -CT_DataBlankWindow::~CT_DataBlankWindow() - { - DestroyData(); - } - -void CT_DataBlankWindow::SetObjectL(TAny* aAny) - { - DestroyData(); - iBlankWindow = static_cast (aAny); - } - -void CT_DataBlankWindow::DisownObjectL() - { - iBlankWindow = NULL; - } - -void CT_DataBlankWindow::DestroyData() - { - delete iBlankWindow; - iBlankWindow=NULL; - } - -RWindowBase* CT_DataBlankWindow::GetWindowBase() const - { - return iBlankWindow; - } - -/** -* Process a command read from the ini file -* -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* @param aAsyncErrorIndex index of command. used for async calls -* -* @return ETrue if the command is processed -*/ -TBool CT_DataBlankWindow::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex) - { - TBool ret = ETrue; - - if ( aCommand==KCmdDestructor ) - { - DestroyData(); - } - else if ( aCommand==KCmdnew || aCommand==KDataClassname ) - { - DoCmdnewL(aSection); - } - else if ( aCommand==KCmdConstruct ) - { - DoCmdConstructL(aSection); - } - else if ( aCommand==KCmdSetColor ) - { - DoCmdSetColor(aSection); - } - else if ( aCommand==KCmdSetSize ) - { - DoCmdSetSize(aSection); - } - else if ( aCommand==KCmdSetExtent ) - { - DoCmdSetExtent(aSection); - } - else - { - ret=CT_DataWindowBase::DoCommandL(aCommand, aSection, aAsyncErrorIndex); - } - - return ret; - } - - -void CT_DataBlankWindow::DoCmdnewL(const TDesC& aSection) - { - DestroyData(); - - // Get test data for command input parameter(s) - TPtrC wsName; - RWsSession* ws=NULL; - if ( GetStringFromConfig(aSection, KFldWs, wsName) ) - { - ws = static_cast(GetDataObjectL(wsName)); - } - - TInt err; - if ( ws != NULL ) - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute new RBlankWindow(RWsSession)")); - TRAP( err, iBlankWindow = new (ELeave) RBlankWindow(*ws) ); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute new RBlankWindow()")); - TRAP( err, iBlankWindow = new (ELeave) RBlankWindow() ); - } - - if ( err != KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - - // No command output parameter to display and check - } - - -void CT_DataBlankWindow::DoCmdConstructL(const TDesC& aSection) - { - TBool dataOk=ETrue; - - // Get test data for command input parameter(s) - TPtrC parentName; - RWindowTreeNode* parent=NULL; - if ( GetStringFromConfig(aSection, KFldParent, parentName) ) - { - parent = static_cast(GetDataObjectL(parentName)); - } - if ( parent==NULL ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldParent); - SetBlockResult(EFail); - } - - TInt datHandle; - if ( !GetIntFromConfig(aSection, KFldHandle, datHandle) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldHandle); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute Construct(RWindowTreeNode, TUint32)")); - TInt returnCode = iBlankWindow->Construct(*parent, datHandle); - - // Check the command return code, if !=KErrNone then stop this command - if ( returnCode != KErrNone ) - { - ERR_PRINTF2(KLogError, returnCode); - SetError(returnCode); - } - - // No command output parameter to display and check - } - } - - -void CT_DataBlankWindow::DoCmdSetColor(const TDesC& aSection) - { - // Get test data for command input parameter(s) - TRgb datColor; - if ( GetRgbFromConfig(aSection, KFldColor, datColor) ) - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute SetColor(TRgb)")); - iBlankWindow->SetColor(datColor); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute SetColor()")); - iBlankWindow->SetColor(); - } - } - - -void CT_DataBlankWindow::DoCmdSetSize(const TDesC& aSection) - { - // Get test data for command input parameter(s) - TSize datSize; - if ( !GetSizeFromConfig(aSection, KFldSize, datSize) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldSize); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute SetSize(TSize)")); - iBlankWindow->SetSize(datSize); - } - } - - -void CT_DataBlankWindow::DoCmdSetExtent(const TDesC& aSection) - { - TBool dataOk=ETrue; - - // Get test data for command input parameter(s) - TPoint datPoint; - if ( !GetPointFromConfig(aSection, KFldPoint, datPoint) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldPoint); - SetBlockResult(EFail); - } - - TSize datSize; - if ( !GetSizeFromConfig(aSection, KFldSize, datSize) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldSize); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute SetExtent(TPoint, TSize)")); - iBlankWindow->SetExtent(datPoint, datSize); - } - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/src/T_DataDirectScreenAccess.cpp --- a/graphicsapitest/graphicssvs/wserv/src/T_DataDirectScreenAccess.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,439 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ -#include -#include "T_GraphicsUtil.h" -#include "T_DataDirectScreenAccess.h" -#include "T_DataFbsScreenDevice.h" -#include "T_DataFbsBitGc.h" - -_LIT(KDataClassname, "CDirectScreenAccess"); -_LIT(KCmdDestructor, "~CDirectScreenAccess"); -_LIT(KCmdDestructorGeneral, "~"); - -//command -_LIT( KCmdNewL, "NewL" ); -_LIT( KCmdStart, "StartL" ); -_LIT( KCmdGc, "Gc" ); -_LIT( KCmdScreenDevice, "ScreenDevice" ); -_LIT( KCmdDrawRegion, "DrawingRegion" ); -_LIT( KCmdSetPriority, "SetPriority" ); -_LIT( KCmdBringAppFg, "Util_BringAppFg" ); - -// Fields -_LIT( KRWsSessionObj, "ws"); -_LIT( KCWsScreenDeviceObj, "scrdev"); -_LIT( KRWindowObj, "win"); -_LIT( KAppName, "app"); -_LIT( KPriorityObj, "Priority"); -_LIT( KFldGc, "gc"); -_LIT( KFldScreenDevice, "ScreenDevice"); -_LIT( KFldDrawRegion, "region1"); -_LIT( KWantedReasonObj, "reason"); - -//Error -_LIT( KErrNewL, "Create CDirectScreenAccess object failed."); -_LIT( KErrGc, "Execute CDirectScreenAccess::Gc failed. return value is NULL"); -_LIT( KErrScreenDevice, "Execute CDirectScreenAccess::ScreenDevices failed. return value is NULL"); -_LIT( KErrDrawRegion, "Execute CDirectScreenAccess::DrawRegion failed. return value is NULL"); -_LIT( KErrDrawRegionSetting, "Set DrawRegion failed."); -_LIT( KErrAbortNowReason, "the AbortNow's reason do not match the expected value."); -_LIT( KErrRestartReason, "the Restart's reason do not match the expected value."); -_LIT( KLogMissingParameter, "Missing parameter '%S'"); -_LIT( KLogMissingWrapper,"Missing Wrapper class '%S'"); - -//info -_LIT( KInfoNewL, "NewL() has been called."); -_LIT( KInfoStartL, "StartL() has been called"); -_LIT( KInfoGc, "Gc() has been called" ); -_LIT( KInfoScreenDevice, "ScreenDevice() has been called" ); -_LIT( KInfoDrawRegion, "DrawingRegion() has been called" ); -_LIT( KInfoSetPriority, "SetPriority() has been called" ); -_LIT( KInfoAbortNow, "AbortNow has been called, with the reason=%d"); -_LIT( KInfoRestart, "Restart has been called, with the reason=%d"); -_LIT( KInfoDestructor, "execute ~CDirectScreenAccess()"); - -const RDirectScreenAccess::TTerminationReasons KDefaultReason = RDirectScreenAccess::ETerminateRegion; - -////////////////////////////////////////////////////////////////////// -// Construction/Destruction -////////////////////////////////////////////////////////////////////// -/** - * Protected constructor. First phase construction - */ -CT_DataDirectScreenAccess::CT_DataDirectScreenAccess() : - iDirectScreenAccess(NULL), - iWantedReason(KDefaultReason) - { - } -/** - * Public destructor - */ -CT_DataDirectScreenAccess::~CT_DataDirectScreenAccess() - { - DestroyData(); - } - -/** - * Two phase constructor - */ -CT_DataDirectScreenAccess* CT_DataDirectScreenAccess::NewL() - { - CT_DataDirectScreenAccess* self = new (ELeave) CT_DataDirectScreenAccess(); - CleanupStack::PushL(self); - self->ConstructL(); - CleanupStack::Pop(self); - return self; - } - -/** - * Second phase construction - */ -void CT_DataDirectScreenAccess::ConstructL() - { - //nothing to do here. - } - -/** - * Set the object that the data wraps - * - * @param aObject object that the wrapper is testing - * - */ -void CT_DataDirectScreenAccess::SetObjectL(TAny* aAny) - { - DestroyData(); - iDirectScreenAccess = static_cast (aAny); - } - -/** - * The object will no longer be owned by this - * - * @leave KErrNotSupported if the the function is not supported - */ -void CT_DataDirectScreenAccess::DisownObjectL() - { - iDirectScreenAccess = NULL; - } - -void CT_DataDirectScreenAccess::DestroyData() - { - delete iDirectScreenAccess; - iDirectScreenAccess = NULL; - } - -/** - * Process a command read from the ini file - * - * @param aCommand the command to process - * @param aSection the entry in the ini file requiring the command to be processed - * @param aAsyncErrorIndex index of command. used for async calls - * - * @return ETrue if the command is processed - */ -TBool CT_DataDirectScreenAccess::DoCommandL(const TTEFFunction& aCommand, - const TTEFSectionName& aSection, const TInt aAsyncErrorIndex) - { - TBool result = ETrue; - - if ( !aCommand.Compare( KCmdNewL ) || !aCommand.Compare( KDataClassname ) ) - { - DoCmdnewL(aSection); - } - else if ( !aCommand.Compare(KCmdDestructor) || !aCommand.Compare(KCmdDestructorGeneral ) ) - { - DoCmdDestructor(); - } - else if ( !aCommand.Compare( KCmdStart ) ) - { - DoCmdStartL(aSection); - } - else if ( !aCommand.Compare( KCmdGc ) ) - { - DoCmdGcL(aSection); - } - else if ( !aCommand.Compare( KCmdScreenDevice ) ) - { - DoCmdScreenDeviceL(aSection); - } - else if ( !aCommand.Compare( KCmdDrawRegion ) ) - { - DoCmdDrawRegion(aSection); - } - else if ( !aCommand.Compare( KCmdSetPriority ) ) - { - DoCmdSetPriority(aSection); - } - else if ( !aCommand.Compare( KCmdBringAppFg ) ) - { - DoCmdBringAppFgL(aSection); - } - else - { - CDataWrapperActive::DoCommandL(aCommand, aSection, aAsyncErrorIndex); - } - - return result; - } - -/** - * test AbortNow() - */ -void CT_DataDirectScreenAccess::AbortNow(RDirectScreenAccess::TTerminationReasons aReason) - { - INFO_PRINTF2(KInfoAbortNow , aReason); - DecOutstanding(); - if( iWantedReason != aReason ) - { - ERR_PRINTF1(KErrAbortNowReason); - SetBlockResult(EFail); - } - - } - -/** - * Test Restart() - */ -void CT_DataDirectScreenAccess::Restart(RDirectScreenAccess::TTerminationReasons aReason) - { - INFO_PRINTF2(KInfoRestart , aReason); - DecOutstanding(); - if( iWantedReason != aReason ) - { - ERR_PRINTF1(KErrRestartReason); - SetBlockResult(EFail); - } - - } - -/** - * Helper method to get RWsSession - */ -RWsSession* CT_DataDirectScreenAccess::GetRWSessionL(const TDesC& aSection) - { - RWsSession* iClient( NULL ); //Window Session Client - TPtrC objectName; - - if ( GetStringFromConfig(aSection, KRWsSessionObj(), objectName) ) - { - iClient = static_cast(GetDataObjectL(objectName)); - } - - return iClient; - } - -/** - * Helper method to get CWsScreenDevice - */ -CWsScreenDevice* CT_DataDirectScreenAccess::GetDevicesL(const TDesC& aSection) - { - CWsScreenDevice* device = NULL; - - if ( !CT_GraphicsUtil::GetWsScreenDeviceL(*this, aSection, KCWsScreenDeviceObj, device) ) - { - ERR_PRINTF2(KLogMissingParameter , &KCWsScreenDeviceObj); - SetBlockResult(EFail); - } - - return device; - } - - -/** - * Helper method to get RWindow - */ -RWindow* CT_DataDirectScreenAccess::GetWindowL(const TDesC& aSection) - { - RWindow* window( NULL ); - TPtrC objectName; - - if( GetStringFromConfig(aSection, KRWindowObj, objectName)) - { - window = static_cast(GetDataObjectL(objectName)); - } - - return window; - - } - - -/** -* Test NewL() -*/ -void CT_DataDirectScreenAccess::DoCmdnewL(const TDesC& aSection) - { - // Execute command and log parameters - DestroyData(); - INFO_PRINTF1(KInfoNewL); - iDirectScreenAccess = CDirectScreenAccess::NewL(*GetRWSessionL(aSection), - *GetDevicesL(aSection), *GetWindowL(aSection), *this ); - - if(!iDirectScreenAccess) - { - ERR_PRINTF1(KErrNewL); - SetBlockResult(EFail); - } - - } - -/** -* Test Destructor() -*/ -void CT_DataDirectScreenAccess::DoCmdDestructor() - { - INFO_PRINTF1(KInfoDestructor); - delete iDirectScreenAccess; - iDirectScreenAccess = NULL; - } - -/** -* Test StartL() -*/ -void CT_DataDirectScreenAccess::DoCmdStartL(const TDesC& aSection) - { - INFO_PRINTF1(KInfoStartL); - if ( !CT_GraphicsUtil::ReadTerminateReason(*this , aSection , KWantedReasonObj, iWantedReason) ) - { - ERR_PRINTF2(KLogMissingParameter , &KWantedReasonObj); - SetBlockResult(EFail); - } - - iDirectScreenAccess->StartL(); - IncOutstanding(); - } - -/** -* Test Gc() -*/ -void CT_DataDirectScreenAccess::DoCmdGcL(const TDesC& aSection) - { - // Execute command and log parameters - INFO_PRINTF1(KInfoGc); - - TPtrC aGcName; - if(GetStringFromConfig(aSection, KFldGc, aGcName) ) - { - CFbsBitGc* iGc = iDirectScreenAccess->Gc(); - if(!iGc) - { - INFO_PRINTF1(KErrGc); - SetError(KErrNotFound); - } - else - { - SetDataObjectL(aGcName , iGc); - } - } - else - { - ERR_PRINTF2(KLogMissingParameter , &KFldGc); - } - - } - -/** -* Test ScreenDevice() -*/ -void CT_DataDirectScreenAccess::DoCmdScreenDeviceL(const TDesC& aSection) - { - // Execute command and log parameters - INFO_PRINTF1(KInfoScreenDevice); - TPtrC aScreenDeviceName; - if(GetStringFromConfig(aSection, KFldScreenDevice, aScreenDeviceName)) - { - CFbsScreenDevice* aScreenDevice = iDirectScreenAccess->ScreenDevice(); - if(!aScreenDevice) - { - ERR_PRINTF1(KErrScreenDevice); - SetError(KErrNotFound); - } - else - { - SetDataObjectL(aScreenDeviceName , aScreenDevice); - } - - } - else - { - ERR_PRINTF2(KLogMissingParameter , &KFldScreenDevice); - } - - } - -/** -* Test DrawRegion() -*/ -void CT_DataDirectScreenAccess::DoCmdDrawRegion(const TDesC& aSection) - { - // Execute command and log parameters - INFO_PRINTF1(KInfoDrawRegion); - TRegion* region; - region = iDirectScreenAccess->DrawingRegion(); - - if(!region) - { - ERR_PRINTF1(KErrDrawRegion); - SetError(KErrNotFound); - } - // Compare the region. - // read the exepected region size - TRect temp; - if( GetRectFromConfig(aSection ,KFldDrawRegion, temp )) - { - //compare the region - TRect temp2 = (*region)[0]; - - if(temp != temp2) - { - ERR_PRINTF1(KErrDrawRegionSetting); - SetBlockResult(EFail); - } - } - - } - -/** -* Test AbortNow() and Restart() by SetPriority() -*/ -void CT_DataDirectScreenAccess::DoCmdSetPriority(const TDesC& aSection) - { - INFO_PRINTF1(KInfoSetPriority); - CActive::TPriority priority; - IncOutstanding(); - if ( !CT_GraphicsUtil::ReadPriority(*this , aSection , KPriorityObj, priority) ) - { - ERR_PRINTF2(KLogMissingParameter , &KPriorityObj); - SetBlockResult(EFail); - } - iDirectScreenAccess->SetPriority(priority); - } - -/** -* Test AbortNow() and Restart() by bring a app to foreground -*/ -void CT_DataDirectScreenAccess::DoCmdBringAppFgL(const TDesC& aSection) - { - // Execute command and log parameters - TPtrC sessionKeyName(KRWsSessionObj); - TPtrC appKeyName(KAppName); - IncOutstanding(); - if ( !CT_GraphicsUtil::BringAppForegroundL(*this , aSection , sessionKeyName, appKeyName) ) - { - ERR_PRINTF2(KLogMissingParameter , &sessionKeyName); - SetBlockResult(EFail); - } - } - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/src/T_DataDrawableWindow.cpp --- a/graphicsapitest/graphicssvs/wserv/src/T_DataDrawableWindow.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,155 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -#include "T_DataDrawableWindow.h" - -/*@{*/ -//Commands -_LIT(KCmdScroll, "Scroll"); -_LIT(KCmdGetDrawRect, "GetDrawRect"); - -// Fields -_LIT(KFldClipRect, "cliprect"); -_LIT(KFldOffset, "offset"); -_LIT(KFldRect, "rect"); -_LIT(KFldExpected, "expected"); - -/// Logging -_LIT(KLogMissingParameter, "Missing parameter '%S'"); -_LIT(KLogMissingExpectedValue, "Missing expected value '%S'"); -_LIT(KLogNotAsExpectedValue, "'%S' is not as expected value"); - -/*@}*/ - -////////////////////////////////////////////////////////////////////// -// Construction/Destruction -////////////////////////////////////////////////////////////////////// - -CT_DataDrawableWindow::CT_DataDrawableWindow() -: CT_DataWindowBase() - { - } - -RWindowBase* CT_DataDrawableWindow::GetWindowBase() const - { - return GetDrawableWindow(); - } - - -/** -* Process a command read from the ini file -* -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* @param aAsyncErrorIndex index of command. used for async calls -* -* @return ETrue if the command is processed -*/ -TBool CT_DataDrawableWindow::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex) - { - TBool ret = ETrue; - - if ( aCommand==KCmdScroll ) - { - DoCmdScroll(aSection); - } - else if ( aCommand==KCmdGetDrawRect ) - { - DoCmdGetDrawRect(aSection); - } - else - { - ret=CT_DataWindowBase::DoCommandL(aCommand, aSection, aAsyncErrorIndex); - } - - return ret; - } - - -void CT_DataDrawableWindow::DoCmdScroll(const TDesC& aSection) - { - // Get test data for command input parameter(s) - TPoint datOffset; - - if ( !GetPointFromConfig(aSection, KFldOffset, datOffset) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldOffset); - SetBlockResult(EFail); - } - else - { - TRect datRect; - TBool hasRect = GetRectFromConfig(aSection, KFldRect, datRect); - - TRect datClipRect; - - // Execute command and log parameters - if ( GetRectFromConfig(aSection, KFldClipRect, datClipRect) ) - { - if ( hasRect ) - { - INFO_PRINTF1(_L("execute Scroll(TRect, TPoint, TRect)")); - GetDrawableWindow()->Scroll(datClipRect, datOffset, datRect); - } - else - { - INFO_PRINTF1(_L("execute Scroll(TRect, TPoint)")); - GetDrawableWindow()->Scroll(datClipRect, datOffset); - } - } - else - { - if ( hasRect ) - { - INFO_PRINTF1(_L("execute Scroll(TPoint, TRect)")); - GetDrawableWindow()->Scroll(datOffset, datRect); - } - else - { - INFO_PRINTF1(_L("execute Scroll(TPoint)")); - GetDrawableWindow()->Scroll(datOffset); - } - } - - // No command return value and output parameter to display and check - } - } - - -void CT_DataDrawableWindow::DoCmdGetDrawRect(const TDesC& aSection) - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute GetDrawRect()")); - TRect actual=GetDrawableWindow()->GetDrawRect(); - LogRect(_L("GetDrawableWindow()"), actual); - - // Diaplay command return value, check if it matches the expected value - TRect expected; - if ( !GetRectFromConfig(aSection, KFldExpected, expected) ) - { - ERR_PRINTF2(KLogMissingExpectedValue, &KFldExpected); - SetBlockResult(EFail); - } - else - { - if ( actual!=expected ) - { - ERR_PRINTF2(KLogNotAsExpectedValue, &KFldExpected); - SetBlockResult(EFail); - } - } - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/src/T_DataDsaSession.cpp --- a/graphicsapitest/graphicssvs/wserv/src/T_DataDsaSession.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,342 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -#include "T_GraphicsUtil.h" -#include "T_DataDsaSession.h" - -_LIT(KDataClassname, "RDirectScreenAccess"); -//command -_LIT( KCmdnewL, "new" ); -_LIT( KCmdConstruct, "Construct" ); -_LIT( KCmdClose, "Close" ); -_LIT( KCmdRequest, "Request" ); -_LIT( KCmdCompleted, "Completed" ); -_LIT( KCmdCancel, "Cancel" ); -_LIT( KCmdEatupMemory, "Util_EatupMemory" ); -_LIT( KCmdFreeEatenMemory, "Util_FreeEatenMemory" ); -// Fields -_LIT( KRWsSessionObj, "ws"); -_LIT( KRWindowObj, "win"); -_LIT( KFldRegion, "region1"); -_LIT( KFldMemLeft, "memleft"); - -//Error -_LIT( KErrNewL, "Create RDirectScreenAccess() failed."); -_LIT( KErrRequestRegionMatch, "Execute RDirectScreenAccess::Request() failed, Error: region size not match."); -_LIT( KLogMissingParameter, "Missing parameter '%S'"); -_LIT( KLogError, "Error=%d"); -_LIT( KStraySignal, "Stray signal"); - -//Info -_LIT( KRdsaNew1, "RDSA::new() has been called"); -_LIT( KRdsaNew2, "RDSA::new(session) has been called"); -_LIT( KInfoConstruct, "Construct() has been called" ); -_LIT( KInfoClose, "Close() has been called" ); -_LIT( KInfoRequest, "Request() has been called" ); -_LIT( KInfoCompleted, "Completed() has been called" ); -_LIT( KInfoCancel, "Cancel() has been called" ); -_LIT( KRunRequestReady, "RunRequestReady %d"); - -////////////////////////////////////////////////////////////////////// -// Construction/Destruction -////////////////////////////////////////////////////////////////////// -CT_DataDsaSession::CT_DataDsaSession() : - iDsaSession(NULL), - iActiveRequestReady(NULL) - { - } - -void CT_DataDsaSession::ConstructL() - { - iActiveRequestReady = CActiveCallback::NewL(*this); - } - -CT_DataDsaSession::~CT_DataDsaSession() - { - this->DestroyData(); - } - -CT_DataDsaSession* CT_DataDsaSession::NewL() - { - CT_DataDsaSession* self = new (ELeave) CT_DataDsaSession(); - CleanupStack::PushL(self); - self->ConstructL(); - CleanupStack::Pop(self); - return self; - } - -void CT_DataDsaSession::SetObjectL(TAny* aAny) - { - this->DestroyData(); - iDsaSession = static_cast(aAny); - } - -void CT_DataDsaSession::DisownObjectL() - { - iDsaSession = NULL; - } - -void CT_DataDsaSession::DestroyData() - { - delete iDsaSession; - iDsaSession = NULL; - delete iActiveRequestReady; - iActiveRequestReady = NULL; - } - -MWsClientClass* CT_DataDsaSession::GetClientClass() const - { - return iDsaSession; - } - -/** - * Process a command read from the ini file - * - * @param aCommand the command to process - * @param aSection the entry in the ini file requiring the command to be processed - * @param aAsyncErrorIndex index of command. used for async calls - * - * @return ETrue if the command is processed - */ -TBool CT_DataDsaSession::DoCommandL(const TTEFFunction& aCommand, const - TTEFSectionName& aSection, const TInt aAsyncErrorIndex) - { - TBool result( ETrue ); - INFO_PRINTF1(aCommand); - - if ( !aCommand.Compare( KCmdnewL ) || !aCommand.Compare( KDataClassname ) ) - { - DoCmdnewL(aSection); - } - else if ( !aCommand.Compare( KCmdConstruct ) ) - { - DoCmdConstruct(); - } - else if ( !aCommand.Compare( KCmdClose ) ) - { - DoCmdClose(); - } - else if ( !aCommand.Compare( KCmdRequest) ) - { - DoCmdRequestL(aSection , aAsyncErrorIndex); - } - else if ( !aCommand.Compare( KCmdCompleted ) ) - { - DoCmdCompleted(); - } - else if ( !aCommand.Compare( KCmdCancel ) ) - { - DoCmdCancel(); - } - else if ( !aCommand.Compare(KCmdEatupMemory)) - { - DoCmdEatupMemory(aSection); - } - else if (!aCommand.Compare(KCmdFreeEatenMemory)) - { - DoCmdFreeEatenMemory(); - } - else - { - result = EFalse; - } - - return result; - } - -/** - * Helper method to get RWsSession - */ -RWsSession* CT_DataDsaSession::GetRWSessionL(const TDesC& aSection) - { - RWsSession* iClient = NULL; //Window Session Client - TPtrC objectName; - - if ( GetStringFromConfig(aSection, KRWsSessionObj(), objectName) ) - { - iClient = static_cast(GetDataObjectL(objectName)); - } - - return iClient; - } - -/** - * Test NewL(); - */ -void CT_DataDsaSession::DoCmdnewL(const TDesC& aSection) - { - RWsSession* session = GetRWSessionL(aSection); - - if(!session) - { - //no parameter. - iDsaSession = new (ELeave) RDirectScreenAccess(); - INFO_PRINTF1(KRdsaNew1); - } - else - { - //with parameter - iDsaSession = new (ELeave) RDirectScreenAccess(*session); - INFO_PRINTF1(KRdsaNew2); - } - - if(!iDsaSession) - { - ERR_PRINTF1(KErrNewL); - SetBlockResult(EFail); - } - - } - - -/** - * Test ConstructL(); - */ -void CT_DataDsaSession::DoCmdConstruct() - { - INFO_PRINTF1(KInfoConstruct); - TInt result = iDsaSession->Construct(); - - if(result) - { - ERR_PRINTF2(KLogError, result); - SetBlockResult(EFail); - } - - } - - -/** - * Test Close(); - */ -void CT_DataDsaSession::DoCmdClose() - { - INFO_PRINTF1(KInfoClose); - iDsaSession->Close(); - } - - -/** - * Test RequestL(); - */ -void CT_DataDsaSession::DoCmdRequestL(const TDesC& aSection, const TInt aAsyncErrorIndex) - { - INFO_PRINTF1(KInfoRequest); - RWindowBase* iWindow = NULL; - TPtrC objectName; - - if ( GetStringFromConfig(aSection, KRWindowObj(), objectName)) - { - iWindow = static_cast (GetDataObjectL(objectName)); - } - - if(!iWindow) - { - ERR_PRINTF2(KLogMissingParameter , &KRWindowObj); - SetBlockResult(EFail); - } - - RRegion* aRegion = NULL; - - TInt result = iDsaSession->Request(aRegion, iActiveRequestReady->iStatus, *iWindow); - if(result) - { - ERR_PRINTF2(KLogError, result); - SetError(result); - } - else - { - TRect temp; - if( GetRectFromConfig(aSection ,KFldRegion, temp ) && aRegion->Count()) - { - //compare the region - TRect temp2 = (*aRegion)[0]; - if(temp != temp2) - { - ERR_PRINTF1(KErrRequestRegionMatch); - SetBlockResult(EFail); - } - - } - - iActiveRequestReady->Activate(aAsyncErrorIndex); - IncOutstanding(); - } - - } - -/** - * Test Completed(); - */ -void CT_DataDsaSession::DoCmdCompleted() - { - INFO_PRINTF1(KInfoCompleted); - iDsaSession->Completed(); - } - -/** - * Test Cancel(); - */ -void CT_DataDsaSession::DoCmdCancel() - { - INFO_PRINTF1(KInfoCancel); - iDsaSession->Cancel(); - } - -void CT_DataDsaSession::DoCmdEatupMemory(const TDesC& aSection) - { - CT_GraphicsUtil::EatupMemory(*this,aSection,KFldMemLeft); - } -void CT_DataDsaSession::DoCmdFreeEatenMemory() - { - CT_GraphicsUtil::FreeEatenMemory(*this); - } - -void CT_DataDsaSession::RunL(CActive* aActive, TInt aIndex) - { - if ( iActiveRequestReady == aActive ) - { - RunRequestReady(aIndex); - } - else - { - ERR_PRINTF1(KStraySignal); - SetBlockResult(EFail); - } - - } - -void CT_DataDsaSession::RunRequestReady( const TInt aIndex) - { - DecOutstanding(); - TInt err = iActiveRequestReady->iStatus.Int(); - INFO_PRINTF2(KRunRequestReady, err); - - if ( KErrNone != err ) - { - ERR_PRINTF2(KLogError, err); - SetAsyncError(aIndex, err); - } - - } - -void CT_DataDsaSession::DoCancel(CActive* /*aActive*/, TInt /*aIndex*/) - { - //nothing. - } - - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/src/T_DataFrame.cpp --- a/graphicsapitest/graphicssvs/wserv/src/T_DataFrame.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,348 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -#include "T_GraphicsUtil.h" -#include "T_DataFrame.h" -#include - -/*@{*/ -//Commands -_LIT(KCmdNew, "NewL"); -_LIT(KCmdDestroy, "~"); -_LIT(KCmdFrameInfo, "FrameInfo"); -_LIT(KCmdSetFrameInfo, "SetFrameInfo"); -_LIT(KCmdBitmap, "Bitmap"); -_LIT(KCmdSetBitmap, "SetBitmap"); -_LIT(KCmdMask, "Mask"); -_LIT(KCmdSetMask, "SetMask"); -// Fields -_LIT(KFldFrameInfo, "frameinfostate"); -_LIT(KFldTFrame, "frame%d"); -_LIT(KFldUid, "uid"); -_LIT(KFldTWsGraphicId, "graphicid"); -_LIT(KFldSecureId, "secureid"); -_LIT(KFldSetMask, "setmask"); -_LIT(KFldSetFrameInfo, "setframeinfo"); -_LIT(KFldSetBitmap, "setbitmap"); -_LIT(KFldMask, "expected_mask"); -_LIT(KFldBitmap, "expected_bitmap"); -_LIT(KFldGotMask, "got_mask"); -_LIT(KFldGotBitmap, "got_bitmap"); -/// Logging -_LIT(KLogError, "Error=%d"); -_LIT(KLogMissingParameter, "Missing parameter '%S'"); -_LIT(KLogNotExpectedValue, "Not expected value"); - -_LIT(KLogNew, "execute CT_DataFrame::NewL()"); -_LIT(KLogFrameInfo, "execute CT_DataFrame::FrameInfo()"); -_LIT(KLogSetFrameInfo, "execute CT_DataFrame::SetFrameInfo(const TFrameInfo &aFrameInfo)"); -_LIT(KLogBitmap, "execute CT_DataFrame::Bitmap()"); -_LIT(KLogSetBitmap, "execute CT_DataFrame::SetBitmap(CFbsBitmap *aBitmap)"); -_LIT(KLogMask, "execute CT_DataFrame::Mask()"); -_LIT(KLogSetMask, "execute CT_DataFrame::SetMask(CFbsBitmap *aMask)"); -/*@}*/ - -////////////////////////////////////////////////////////////////////// -// Construction/Destruction -////////////////////////////////////////////////////////////////////// - -CT_DataFrame::CT_DataFrame() -: CDataWrapperBase(),iFrame(NULL) - { - } - -CT_DataFrame* CT_DataFrame::NewL() - { - CT_DataFrame* ret=new (ELeave) CT_DataFrame(); - CleanupStack::PushL(ret); - ret->ConstructL(); - CleanupStack::Pop(ret); - return ret; - } - -void CT_DataFrame::ConstructL() - { - } - -CT_DataFrame::~CT_DataFrame() - { - DoCmdDestroy(); - } - -/** - * Called by TEF framework to set object. - * - * @param: None - * - * @return: None - */ -void CT_DataFrame::SetObjectL(TAny* aAny) - { - DoCmdDestroy(); - iFrame = static_cast (aAny); - } - -/** - * Called by TEF framework to disown the object. - * - * @param: None - * - * @return: None - */ -void CT_DataFrame::DisownObjectL() - { - iFrame = NULL; - } - -/** - * Destroy the object which has been constructed. - * - * @param: None - * - * @return: None - */ -void CT_DataFrame::DoCmdDestroy() - { - delete iFrame; - iFrame = NULL; - } - -/** -* Process a command read from the ini file -* -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* @param aAsyncErrorIndex index of command. used for async calls -* -* @return ETrue if the command is processed -*/ -TBool CT_DataFrame::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt /*aAsyncErrorIndex*/) - { - TBool ret = ETrue; - - if ( aCommand==KCmdNew ) - { - DoCmdNewL(); - } - else if ( aCommand==KCmdDestroy ) - { - DoCmdDestroy(); - } - else if ( aCommand==KCmdFrameInfo ) - { - DoCmdFrameInfo(aSection); - } - else if ( aCommand==KCmdSetFrameInfo ) - { - DoCmdSetFrameInfo(aSection); - } - else if ( aCommand==KCmdBitmap ) - { - DoCmdBitmapL(aSection); - } - else if ( aCommand==KCmdSetBitmap ) - { - DoCmdSetBitmapL(aSection); - } - else if ( aCommand==KCmdMask ) - { - DoCmdMaskL(aSection); - } - else if ( aCommand==KCmdSetMask ) - { - DoCmdSetMaskL(aSection); - } - else - { - ret=EFalse; - } - - return ret; - } - -/** - * Process new command - * - * @return: None - */ -void CT_DataFrame::DoCmdNewL() - { - // Execute command and log parameters - INFO_PRINTF1(KLogNew); - TInt err=KErrNone; - TRAP( err, iFrame=CWsGraphicBitmapAnimation::CFrame::NewL()); - - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - // No command return value and output parameter to display and check - } - -/** - * Process FrameInfo command - * - * @param aSection the entry in the ini file requiring the command to be processed - * - * @return: None - */ -void CT_DataFrame::DoCmdFrameInfo(const TDesC& aSection) - { - INFO_PRINTF1(KLogFrameInfo); - TFrameInfo frameinfo = iFrame->FrameInfo(); - - // Get test data for command input parameter(s) - TFrameInfo expected; - if ( CT_GraphicsUtil::GetFrameInfo(*this, aSection, expected) ) - { - if( frameinfo.iFlags!= expected.iFlags) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - -/** - * Process SetFrameInfo command - * - * @param aSection the entry in the ini file requiring the command to be processed - * - * @return: None - */ -void CT_DataFrame::DoCmdSetFrameInfo(const TDesC& aSection) - { - TFrameInfo frameinfo; - - if ( CT_GraphicsUtil::GetFrameInfo(*this,aSection, frameinfo) ) - { - INFO_PRINTF1(KLogSetFrameInfo); - iFrame->SetFrameInfo(frameinfo); - } - else - { - ERR_PRINTF2(KLogMissingParameter,KFldSetFrameInfo); - SetBlockResult(EFail); - } - } - -/** - * Process Bitmap command - * - * @param aSection the entry in the ini file requiring the command to be processed - * - * @return: None -*/ - void CT_DataFrame::DoCmdBitmapL(const TDesC& aSection) - { - INFO_PRINTF1(KLogBitmap); - CFbsBitmap* bitmap=const_cast(iFrame->Bitmap()); - - TPtrC gotBitmap; - if(GetStringFromConfig(aSection,KFldGotBitmap,gotBitmap)) - { - SetDataObjectL(gotBitmap,bitmap); - } - - // Get test data for command input parameter(s) - CFbsBitmap* expected=NULL; - if ( CT_GraphicsUtil::GetFbsBitmapL(*this,aSection, KFldBitmap, expected) ) - { - if ( bitmap!=expected ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - -/** - * Process SetBitmap command - * - * @param aSection the entry in the ini file requiring the command to be processed - * - * @return: None -*/ - void CT_DataFrame::DoCmdSetBitmapL(const TDesC& aSection) - { - CFbsBitmap* bitmap=NULL; - - if ( CT_GraphicsUtil::GetFbsBitmapL(*this,aSection, KFldSetBitmap, bitmap) ) - { - INFO_PRINTF1(KLogSetBitmap); - iFrame->SetBitmap(bitmap); - } - else - { - ERR_PRINTF2(KLogMissingParameter,KFldSetBitmap); - SetBlockResult(EFail); - } - } - -/** - * Process Mask command - * - * @param aSection the entry in the ini file requiring the command to be processed - * - * @return: None -*/ - void CT_DataFrame::DoCmdMaskL(const TDesC& aSection) - { - INFO_PRINTF1(KLogMask); - CFbsBitmap* mask=const_cast(iFrame->Mask()); - - TPtrC gotMask; - if(GetStringFromConfig(aSection,KFldGotMask,gotMask)) - { - SetDataObjectL(gotMask,mask); - } - - // Get test data for command input parameter(s) - CFbsBitmap* expected=NULL; - if ( CT_GraphicsUtil::GetFbsBitmapL(*this,aSection, KFldMask, expected) ) - { - if ( mask!=expected ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - -/** - * Process SetMask command - * - * @param aSection the entry in the ini file requiring the command to be processed - * - * @return: None -*/ - void CT_DataFrame::DoCmdSetMaskL(const TDesC& aSection) - { - CFbsBitmap* bitmap=NULL; - - if ( CT_GraphicsUtil::GetFbsBitmapL(*this,aSection, KFldSetMask, bitmap) ) - { - INFO_PRINTF1(KLogSetMask); - iFrame->SetMask(bitmap); - } - else - { - ERR_PRINTF2(KLogMissingParameter,KFldSetMask); - SetBlockResult(EFail); - } - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/src/T_DataSoundPlugIn.cpp --- a/graphicsapitest/graphicssvs/wserv/src/T_DataSoundPlugIn.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,474 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -/** -@test -@internalComponent - -This contains CT_DataSoundPlugIn -*/ - -#include "T_DataSoundPlugIn.h" - -/*@{*/ -/// Parameters -_LIT(KExpectedBool, "expected_bool"); -_LIT(KEnabled, "enabled"); -_LIT(KPlugInFileName, "filename"); -_LIT(KOpcode, "opcode"); -_LIT(KPackagedArgs, "args"); -_LIT(KUid, "uid"); -_LIT(KChangableBool, "isChangeable"); - -/// Commands -_LIT(KCmdNew, "new"); -_LIT(KCmdConstruct, "Construct"); -_LIT(KCmdClose, "Close"); -_LIT(KCmdDestroy, "Destroy"); -_LIT(KCmdIsLoaded, "IsLoaded"); -_LIT(KCmdUnload, "Unload"); -_LIT(KCmdLoad, "Load"); -_LIT(KCmdSetKeyClick, "SetKeyClick"); -_LIT(KCmdKeyClickEnabled, "KeyClickEnabled"); -_LIT(KCmdSetPenClick, "SetPenClick"); -_LIT(KCmdPenClickEnabled, "PenClickEnabled"); -_LIT(KCmdCommandReply, "CommandReply"); - -// Fields -_LIT(KFldWs, "ws"); - -// Log -_LIT(KLogMissingParameter, "Missing parameter '%S'"); - -/*@}*/ - -/** -* Two phase constructor -*/ -CT_DataSoundPlugIn* CT_DataSoundPlugIn::NewL() - { - CT_DataSoundPlugIn* ret = new (ELeave) CT_DataSoundPlugIn(); - CleanupStack::PushL(ret); - ret->ConstructL(); - CleanupStack::Pop(ret); - return ret; - } - -/** -* Protected constructor. First phase construction -*/ -CT_DataSoundPlugIn::CT_DataSoundPlugIn() -: iSoundPlugIn(NULL) - { - } - -/** -* Second phase construction -*/ -void CT_DataSoundPlugIn::ConstructL() - { - } - -/** -* Protected destructor. -*/ -CT_DataSoundPlugIn::~CT_DataSoundPlugIn() - { - Cleanup(); - } - -void CT_DataSoundPlugIn::Cleanup() - { - delete iSoundPlugIn; - iSoundPlugIn = NULL; - } -/** - * Return a pointer to the object that the data wraps. Not implemented, returns NULL. - * - * @return pointer to the object that the data wraps. Not implemented, returns NULL. - */ - TAny* CT_DataSoundPlugIn::GetObject() - { - return NULL; - } - - MWsClientClass* CT_DataSoundPlugIn::GetClientClass() const - { - return iSoundPlugIn; - } - -/** -* Process a command read from the ini file -* -* @param aDataWrapper test step requiring command to be processed -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* -* @return ETrue if the command is processed -*/ -TBool CT_DataSoundPlugIn::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt /*aAsyncErrorIndex*/) - { - TBool retVal=ETrue; - - if(aCommand == KCmdNew) - { - DoCmdNewL(aSection); - } - else if(aCommand == KCmdConstruct) - { - DoCmdConstruct(aSection); - } - else if(aCommand == KCmdClose) - { - DoCmdClose(); - } - else if(aCommand == KCmdDestroy) - { - DoCmdDestroy(); - } - else if(aCommand == KCmdIsLoaded) - { - DoCmdIsLoaded(aSection); - } - else if(aCommand == KCmdUnload) - { - DoCmdUnload(); - } - else if(aCommand == KCmdLoad) - { - DoCmdLoad(aSection); - } - else if(aCommand == KCmdSetKeyClick) - { - DoCmdSetKeyClick(aSection); - } - else if(aCommand == KCmdKeyClickEnabled) - { - DoCmdKeyClickEnabled(aSection); - } - else if(aCommand == KCmdSetPenClick) - { - DoCmdSetPenClick(aSection); - } - else if(aCommand == KCmdPenClickEnabled) - { - DoCmdPenClickEnabled(aSection); - } - else if(aCommand == KCmdCommandReply) - { - DoCmdCommandReply(aSection); - } - else - { - retVal = EFalse; - } - - return retVal; - } - -/** RSoundPlugIn::RSoundPlugIn() Call */ -void CT_DataSoundPlugIn::DoCmdNewL(const TDesC& aSection) - { - // Cleanup if already created - Cleanup(); - - TPtrC wsName; - RWsSession* ws = NULL; - if(GetStringFromConfig(aSection, KFldWs, wsName)) - { - ws = static_cast(GetDataObjectL(wsName)); - } - - - TInt err = KErrNone; - - if(ws == NULL) - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute new RSoundPlugIn()")); - TRAP(err, iSoundPlugIn = new (ELeave) RSoundPlugIn); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute new RSoundPlugIn(RWsSession)")); - TRAP(err, iSoundPlugIn = new (ELeave) RSoundPlugIn(*ws)); - } - - // Check error code - if(err != KErrNone) - { - ERR_PRINTF2(_L("Error creation instance: %d"), err); - SetError(err); - } - } - -/** RSoundPlugIn::Construct() Call */ -void CT_DataSoundPlugIn::DoCmdConstruct(const TDesC& aSection) - { - TInt err = KErrNone; - - if(0 == aSection.Length()) - { - INFO_PRINTF1(_L("Calls RSoundPlugIn::Construct() with TUid::Null()")); - - // Call Construct() - err = iSoundPlugIn->Construct(); - } - else - { - INFO_PRINTF1(_L("Calls RSoundPlugIn::Construct() with a plug-in DLL's third UID")); - - // Get UID from parameters - TInt uid; - if(!GetIntFromConfig(aSection, KUid(), uid)) - { - ERR_PRINTF2(KLogMissingParameter, &KUid()); - SetBlockResult(EFail); - } - else - { - //Call Construct() - err = iSoundPlugIn->Construct(TUid::Uid(uid)); - } - } - - // Check error code - if(err != KErrNone) - { - ERR_PRINTF2(_L("Calls Construct() error %d"), err); - SetError(err); - } - } - - -/** RSoundPlugIn::Close() Call */ -void CT_DataSoundPlugIn::DoCmdClose() - { - INFO_PRINTF1(_L("Calls RSoundPlugIn::Close()")); - - // Call Close() - iSoundPlugIn->Close(); - } - -/** RSoundPlugIn::Destroy() Call */ -void CT_DataSoundPlugIn::DoCmdDestroy() - { - INFO_PRINTF1(_L("Calls RSoundPlugIn::Destroy()")); - - // Call Destroy() - iSoundPlugIn->Destroy(); - iSoundPlugIn = NULL; - } - -/** RSoundPlugIn::IsLoaded() Call */ -void CT_DataSoundPlugIn::DoCmdIsLoaded(const TDesC& aSection) - { - TBool actualValue,actualChangeable; - TBool setChangable = EFalse; - TBool expectedValue = EFalse; - - if ( !GetBoolFromConfig(aSection, KExpectedBool(), expectedValue)) - { - ERR_PRINTF2(KLogMissingParameter, &KExpectedBool()); - SetBlockResult (EFail); - } - else - { - actualValue = iSoundPlugIn->IsLoaded (actualChangeable); - INFO_PRINTF2(_L("Calls RSoundPlugIn::IsLoaded() %d"), actualValue); - - if ( expectedValue != actualValue) - { - ERR_PRINTF3(_L("The returned value is not as expected, expected: %d, actual: %d"), expectedValue, actualValue); - SetBlockResult (EFail); - } - else if (actualValue) - { - if ( !GetBoolFromConfig(aSection, KChangableBool(), setChangable)) - { - ERR_PRINTF2(KLogMissingParameter, &KChangableBool()); - SetBlockResult (EFail); - } - else - { - if (actualChangeable) - actualChangeable=ETrue; - if (actualChangeable != setChangable) - { - ERR_PRINTF3(_L("The IsChangeable is not as expected, expected: %d, actual: %d"), setChangable, actualChangeable); - SetBlockResult (EFail); - } - } - } - } - } - -/** RSoundPlugIn::Unload() Call */ -void CT_DataSoundPlugIn::DoCmdUnload() - { - INFO_PRINTF1(_L("Calls RSoundPlugIn::Unload()")); - - // Call Unload to get actual return value - TInt err = iSoundPlugIn->Unload(); - if(err != KErrNone) - { - ERR_PRINTF2(_L("Call Unload() error %d"), err); - SetError(err); - } - } - -/** RSoundPlugIn::Load() Call */ -void CT_DataSoundPlugIn::DoCmdLoad(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls RSoundPlugIn::Load()")); - - // Get file name from parameters - TPtrC fileName; - if(!GetStringFromConfig(aSection, KPlugInFileName(), fileName)) - { - ERR_PRINTF2(KLogMissingParameter, &KPlugInFileName()); - SetBlockResult(EFail); - } - else - { - // Call Load() - TInt err = iSoundPlugIn->Load(fileName); - - // Check error code - if(err != KErrNone) - { - ERR_PRINTF3(_L("Load file error %d. File name: %S"), err, &fileName); - SetError(err); - } - } - } - -/** RSoundPlugIn::SetKeyClick() Call */ -void CT_DataSoundPlugIn::DoCmdSetKeyClick(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls RSoundPlugIn::SetKeyClick()")); - - // Get bool value from parameters - TBool keyClickEnabled = ETrue; - if(!GetBoolFromConfig(aSection, KEnabled(), keyClickEnabled)) - { - ERR_PRINTF2(KLogMissingParameter, &KEnabled()); - SetBlockResult(EFail); - } - else - { - // Call SetKeyClick() - iSoundPlugIn->SetKeyClick(keyClickEnabled); - } - } - -/** RSoundPlugIn::KeyClickEnabled() Call */ -void CT_DataSoundPlugIn::DoCmdKeyClickEnabled(const TDesC& aSection) - { - // Call KeyClickEnabled() to get actual value - TBool actualValue = iSoundPlugIn->KeyClickEnabled(); - INFO_PRINTF2(_L("Calls RSoundPlugIn::KeyClickEnabled() %d"), actualValue); - - // Get expected value from parameters - TBool expectedValue = EFalse; - if(GetBoolFromConfig(aSection, KExpectedBool(), expectedValue)) - { - if(expectedValue != actualValue) - { - ERR_PRINTF3(_L("The returned value is not as expected, expected: %d, actual: %d"), expectedValue, actualValue); - SetBlockResult(EFail); - } - } - } - -/** RSoundPlugIn::SetPenClick() Call */ -void CT_DataSoundPlugIn::DoCmdSetPenClick(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls RSoundPlugIn::SetPenClick()")); - - // Get bool value from parameters - TBool penClickEnabled = ETrue; - if(!GetBoolFromConfig(aSection, KEnabled(), penClickEnabled)) - { - ERR_PRINTF2(KLogMissingParameter, &KEnabled()); - SetBlockResult(EFail); - } - else - { - // Call SetPenClick() - iSoundPlugIn->SetPenClick(penClickEnabled); - } - } - -/** RSoundPlugIn::PenClickEnabled() Call */ -void CT_DataSoundPlugIn::DoCmdPenClickEnabled(const TDesC& aSection) - { - // Call PenClickEnabled() to get actual value - TBool actualValue = iSoundPlugIn->PenClickEnabled(); - INFO_PRINTF2(_L("Calls RSoundPlugIn::PenClickEnabled() %d"), actualValue); - - // Get expected value from parameters - TBool expectedValue = EFalse; - if(GetBoolFromConfig(aSection, KExpectedBool(), expectedValue)) - { - if(expectedValue != actualValue) - { - ERR_PRINTF3(_L("The returned value is not as expected, expected: %d, actual: %d"), expectedValue, actualValue); - SetBlockResult(EFail); - } - } - } - -/** RSoundPlugIn::DoCmdCommandReply() Call */ -void CT_DataSoundPlugIn::DoCmdCommandReply(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls RSoundPlugIn::DoCmdCommandReply()")); - - TBool dataOK = ETrue; - - // Get Opcode from parameters - TInt opcode = 0; - if(!GetIntFromConfig(aSection, KOpcode(), opcode)) - { - ERR_PRINTF2(KLogMissingParameter, &KOpcode()); - SetBlockResult(EFail); - dataOK = EFalse; - } - - // Get packeaged args from parameters - TPtrC theString; - if(!GetStringFromConfig(aSection, KPackagedArgs(), theString)) - { - ERR_PRINTF2(KLogMissingParameter, &KPackagedArgs()); - SetBlockResult(EFail); - dataOK = EFalse; - } - - if(dataOK) - { - // Call CommandReply() - TInt err = iSoundPlugIn->CommandReply(opcode, TPckgC(theString)); - - // Check error code - if ( err!=KErrNone ) - { - ERR_PRINTF2(_L("CommandReply failed with error %d"), err); - SetError(err); - } - } - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/src/T_DataWindow.cpp --- a/graphicsapitest/graphicssvs/wserv/src/T_DataWindow.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,716 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -#include "T_DataWindow.h" -#include "T_GraphicsUtil.h" - -/*@{*/ -_LIT(KDataClassname, "RWindow"); - -//Commands -_LIT(KCmdnew, "new"); -_LIT(KCmdDestructor, "~"); -_LIT(KCmdConstruct, "Construct"); -_LIT(KCmdBeginRedraw, "BeginRedraw"); -_LIT(KCmdEndRedraw, "EndRedraw"); -_LIT(KCmdInvalidate, "Invalidate"); -_LIT(KCmdGetInvalidRegion, "GetInvalidRegion"); -_LIT(KCmdSetBackgroundColor, "SetBackgroundColor"); -_LIT(KCmdSetSize, "SetSize"); -_LIT(KCmdSetExtent, "SetExtent"); -_LIT(KCmdHandleTransparencyUpdate, "HandleTransparencyUpdate"); -_LIT(KCmdSetTransparencyFactor, "SetTransparencyFactor"); -_LIT(KCmdSetTransparencyBitmap, "SetTransparencyBitmap"); -_LIT(KCmdSetTransparencyWsBitmap, "SetTransparencyWsBitmap"); -_LIT(KCmdSetNonTransparent, "SetNonTransparent"); -_LIT(KCmdEnableRedrawStore, "EnableRedrawStore"); -_LIT(KCmdSetTransparencyAlphaChannel, "SetTransparencyAlphaChannel"); -_LIT(KCmdSetTransparentRegion, "SetTransparentRegion"); -_LIT(KCmdSetTransparencyPolicy, "SetTransparencyPolicy"); -_LIT(KCmdIsRedrawStoreEnabled, "IsRedrawStoreEnabled"); -_LIT(KCmdEnableOSB, "EnableOSB"); - -// Fields -_LIT(KFldColor, "color"); -_LIT(KFldEnabled, "enabled"); -_LIT(KFldExpected, "expected"); -_LIT(KFldFlag, "flag"); -_LIT(KFldHandle, "handle"); -_LIT(KFldParent, "parent"); -_LIT(KFldPoint, "point"); -_LIT(KFldPolicy, "policy"); -_LIT(KFldRect, "rect"); -_LIT(KFldRegion, "region"); -_LIT(KFldSize, "size"); -_LIT(KFldTransparencyBitmap, "transparencybitmap"); -_LIT(KFldTransparencyFactor, "transparencyfactor"); -_LIT(KFldWs, "ws"); - -/// Logging -_LIT(KLogError, "Error=%d"); -_LIT(KLogMissingParameter, "Missing parameter '%S'"); -_LIT(KLogMissingExpectedValue, "Missing expected value '%S'"); -_LIT(KLogNotExpectedValueInt, "'%S' is not as expected=%d, actual=%d"); - -/*@}*/ - -////////////////////////////////////////////////////////////////////// -// Construction/Destruction -////////////////////////////////////////////////////////////////////// - -CT_DataWindow* CT_DataWindow::NewL() - { - CT_DataWindow* ret=new (ELeave) CT_DataWindow(); - CleanupStack::PushL(ret); - ret->ConstructL(); - CleanupStack::Pop(ret); - return ret; - } - -CT_DataWindow::CT_DataWindow() -: CT_DataDrawableWindow() -, iWindow(NULL) - { - } - -void CT_DataWindow::ConstructL() - { - } - -CT_DataWindow::~CT_DataWindow() - { - DestroyData(); - } - -void CT_DataWindow::SetObjectL(TAny* aAny) - { - DestroyData(); - iWindow = static_cast (aAny); - } - -void CT_DataWindow::DisownObjectL() - { - iWindow = NULL; - } - -void CT_DataWindow::DestroyData() - { - delete iWindow; - iWindow=NULL; - } - -RDrawableWindow* CT_DataWindow::GetDrawableWindow() const - { - return iWindow; - } - -/** -* Process a command read from the ini file -* -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* @param aAsyncErrorIndex index of command. used for async calls -* -* @return ETrue if the command is processed -*/ -TBool CT_DataWindow::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex) - { - TBool ret = ETrue; - - if ( aCommand==KCmdDestructor ) - { - DestroyData(); - } - else if ( aCommand==KCmdnew || aCommand==KDataClassname ) - { - DoCmdnewL(aSection); - } - else if ( aCommand==KCmdConstruct ) - { - DoCmdConstructL(aSection); - } - else if ( aCommand==KCmdBeginRedraw ) - { - DoCmdBeginRedraw(aSection); - } - else if ( aCommand==KCmdEndRedraw ) - { - DoCmdEndRedraw(); - } - else if ( aCommand==KCmdInvalidate ) - { - DoCmdInvalidate(aSection); - } - else if ( aCommand==KCmdGetInvalidRegion ) - { - DoCmdGetInvalidRegionL(aSection); - } - else if ( aCommand==KCmdSetBackgroundColor ) - { - DoCmdSetBackgroundColor(aSection); - } - else if ( aCommand==KCmdSetSize ) - { - DoCmdSetSize(aSection); - } - else if ( aCommand==KCmdSetExtent ) - { - DoCmdSetExtent(aSection); - } - else if ( aCommand==KCmdHandleTransparencyUpdate ) - { - DoCmdHandleTransparencyUpdate(); - } - else if ( aCommand==KCmdSetTransparencyFactor ) - { - DoCmdSetTransparencyFactor(aSection); - } - else if ( aCommand==KCmdSetTransparencyBitmap ) - { - DoCmdSetTransparencyBitmapL(aSection); - } - else if ( aCommand==KCmdSetTransparencyWsBitmap ) - { - DoCmdSetTransparencyWsBitmapL(aSection); - } - else if ( aCommand==KCmdSetNonTransparent ) - { - DoCmdSetNonTransparent(); - } - else if ( aCommand==KCmdEnableRedrawStore ) - { - DoCmdEnableRedrawStore(aSection); - } - else if ( aCommand==KCmdSetTransparencyAlphaChannel ) - { - DoCmdSetTransparencyAlphaChannel(); - } - else if ( aCommand==KCmdSetTransparentRegion ) - { - DoCmdSetTransparentRegionL(aSection); - } - else if ( aCommand==KCmdSetTransparencyPolicy ) - { - DoCmdSetTransparencyPolicy(aSection); - } - else if ( aCommand==KCmdIsRedrawStoreEnabled ) - { - DoCmdIsRedrawStoreEnabled(aSection); - } - else if ( aCommand==KCmdEnableOSB ) - { - DoCmdEnableOSB(aSection); - } - else - { - ret=CT_DataDrawableWindow::DoCommandL(aCommand, aSection, aAsyncErrorIndex); - } - - return ret; - } - - -void CT_DataWindow::DoCmdnewL(const TDesC& aSection) - { - DestroyData(); - - // Get test data for command input parameter(s) - TPtrC wsName; - RWsSession* ws=NULL; - if ( GetStringFromConfig(aSection, KFldWs, wsName) ) - { - ws = static_cast(GetDataObjectL(wsName)); - } - - TInt err=KErrNone; - if ( ws!=NULL ) - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute new RWindow(RWsSession)")); - TRAP( err, iWindow = new (ELeave) RWindow(*ws)); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute new RWindow()")); - TRAP( err, iWindow = new (ELeave) RWindow()); - } - - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - } - - -void CT_DataWindow::DoCmdConstructL(const TDesC& aSection) - { - TBool dataOk=ETrue; - - // Get test data for command input parameter(s) - TPtrC parentName; - RWindowTreeNode* parent=NULL; - if ( GetStringFromConfig(aSection, KFldParent, parentName) ) - { - parent = static_cast(GetDataObjectL(parentName)); - } - if ( parent==NULL ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldParent); - SetBlockResult(EFail); - } - - TInt datHandle; - if ( !GetIntFromConfig(aSection, KFldHandle, datHandle) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldHandle); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute Construct(RWindowTreeNode, TUint32)")); - TInt returnCode = iWindow->Construct(*parent, datHandle); - - // Check the command return code, if !=KErrNone then stop this command - if ( returnCode!=KErrNone ) - { - ERR_PRINTF2(KLogError, returnCode); - SetError(returnCode); - } - - // No command output parameter to display and check - } - } - - -void CT_DataWindow::DoCmdBeginRedraw(const TDesC& aSection) - { - // Get test data for command input parameter(s) - TRect datRect; - - if ( GetRectFromConfig(aSection, KFldRect, datRect) ) - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute BeginRedraw(TRect)")); - iWindow->BeginRedraw(datRect); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute BeginRedraw()")); - iWindow->BeginRedraw(); - } - - // No command return value and output parameter to display and check - } - - -void CT_DataWindow::DoCmdEndRedraw() - { - // No command input parameter to process - - // Execute command and log parameters - INFO_PRINTF1(_L("execute EndRedraw()")); - iWindow->EndRedraw(); - - // No command return value and output parameter to display and check - } - - -void CT_DataWindow::DoCmdInvalidate(const TDesC& aSection) - { - // Get test data for command input parameter(s) - TRect datRect; - - if ( GetRectFromConfig(aSection, KFldRect, datRect) ) - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute Invalidate(TRect)")); - iWindow->Invalidate(datRect); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute Invalidate()")); - iWindow->Invalidate(); - } - - // No command return value and output parameter to display and check - } - - -void CT_DataWindow::DoCmdGetInvalidRegionL(const TDesC& aSection) - { - RRegion region(1); - CleanupClosePushL(region); - - // No command input parameter to process - - // Execute command and log parameters - INFO_PRINTF1(_L("execute GetInvalidRegion(RRegion)")); - iWindow->GetInvalidRegion(region); - - // Diaplay command return value, check if it matches the expected value - LogRegion(_L("GetInvalidRegion()"), region); - - RRegion expectedRegion(1); - CleanupClosePushL(expectedRegion); - if ( GetRegionFromConfig(aSection, KFldExpected, expectedRegion) ) - { - region.SubRegion(expectedRegion); - if ( !region.IsEmpty() ) - { - ERR_PRINTF1(_L("Region not as expected")); - LogRegion(_L("Region mismatch"), region); - SetBlockResult(EFail); - } - } - - CleanupStack::PopAndDestroy(2, ®ion); - } - - -void CT_DataWindow::DoCmdSetBackgroundColor(const TDesC& aSection) - { - // Get test data for command input parameter(s) - TRgb datColor; - - if ( GetRgbFromConfig(aSection, KFldColor, datColor) ) - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute SetBackgroundColor(TRgb)")); - iWindow->SetBackgroundColor(datColor); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute SetBackgroundColor()")); - iWindow->SetBackgroundColor(); - } - - // No command return value and output parameter to display and check - } - - -void CT_DataWindow::DoCmdSetSize(const TDesC& aSection) - { - // Get test data for command input parameter(s) - TSize datSize; - if ( !GetSizeFromConfig(aSection, KFldSize, datSize) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldSize); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute SetSize(TSize)")); - iWindow->SetSize(datSize); - - // No command return value and output parameter to display and check - } - } - - -void CT_DataWindow::DoCmdSetExtent(const TDesC& aSection) - { - TBool dataOk=ETrue; - - // Get test data for command input parameter(s) - TPoint datPoint; - if ( !GetPointFromConfig(aSection, KFldPoint, datPoint) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldPoint); - SetBlockResult(EFail); - } - - TSize datSize; - if ( !GetSizeFromConfig(aSection, KFldSize, datSize) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldSize); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute SetExtent(TPoint, TSize)")); - iWindow->SetExtent(datPoint, datSize); - - // No command return value and output parameter to display and check - } - } - - -void CT_DataWindow::DoCmdHandleTransparencyUpdate() - { - // No command input parameter to process - - // Execute command and log parameters - INFO_PRINTF1(_L("execute HandleTransparencyUpdate()")); - iWindow->HandleTransparencyUpdate(); - - // No command return value and output parameter to display and check - } - - -void CT_DataWindow::DoCmdSetTransparencyFactor(const TDesC& aSection) - { - // Get test data for command input parameter(s) - TRgb datTransparencyFactor; - - if ( !GetRgbFromConfig(aSection, KFldTransparencyFactor, datTransparencyFactor) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldTransparencyFactor); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute SetTransparencyFactor(TRgb)")); - TInt returnCode = iWindow->SetTransparencyFactor(datTransparencyFactor); - - // Check the command return code, if !=KErrNone then stop this command - if ( returnCode!=KErrNone ) - { - ERR_PRINTF2(KLogError, returnCode); - SetError(returnCode); - } - - // No command output parameter to display and check - } - } - - -void CT_DataWindow::DoCmdSetTransparencyBitmapL(const TDesC& aSection) - { - // Get test data for command input parameter(s) - CFbsBitmap* transparencyBitmap = NULL; - - if ( !CT_GraphicsUtil::GetFbsBitmapL(*this, aSection, KFldTransparencyBitmap, transparencyBitmap) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldTransparencyBitmap); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute SetTransparencyBitmap(CFbsBitmap)")); - TInt returnCode = iWindow->SetTransparencyBitmap(*transparencyBitmap); - - // Check the command return code, if !=KErrNone then stop this command - if ( returnCode!=KErrNone ) - { - ERR_PRINTF2(KLogError, returnCode); - SetError(returnCode); - } - - // No command output parameter to display and check - } - } - - -void CT_DataWindow::DoCmdSetTransparencyWsBitmapL(const TDesC& aSection) - { - // Get test data for command input parameter(s) - CWsBitmap* transparencyBitmap = NULL; - - if ( !CT_GraphicsUtil::GetWsBitmapL(*this, aSection, KFldTransparencyBitmap, transparencyBitmap) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldTransparencyBitmap); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute SetTransparencyWsBitmap(CWsBitmap)")); - TInt returnCode = iWindow->SetTransparencyWsBitmap(*transparencyBitmap); - - // Check the command return code, if !=KErrNone then stop this command - if ( returnCode!=KErrNone ) - { - ERR_PRINTF2(KLogError, returnCode); - SetError(returnCode); - } - - // No command output parameter to display and check - } - } - - -void CT_DataWindow::DoCmdSetNonTransparent() - { - // No command input parameter to process - - // Execute command and log parameters - INFO_PRINTF1(_L("execute SetNonTransparent()")); - iWindow->SetNonTransparent(); - - // No command return value and output parameter to display and check - } - - -void CT_DataWindow::DoCmdEnableRedrawStore(const TDesC& aSection) - { - // Get test data for command input parameter(s) - TBool datEnabled; - - if ( !GetBoolFromConfig(aSection, KFldEnabled, datEnabled) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldEnabled); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute EnableRedrawStore(TBool)")); - iWindow->EnableRedrawStore(datEnabled); - - // No command return value and output parameter to display and check - } - } - - -void CT_DataWindow::DoCmdSetTransparencyAlphaChannel() - { - // No command input parameter to process - - // Execute command and log parameters - INFO_PRINTF1(_L("execute SetTransparencyAlphaChannel()")); - TInt returnCode = iWindow->SetTransparencyAlphaChannel(); - - // Check the command return code, if !=KErrNone then stop this command - if ( returnCode!=KErrNone ) - { - ERR_PRINTF2(KLogError, returnCode); - SetError(returnCode); - } - - // No command output parameter to display and check - } - - -void CT_DataWindow::DoCmdSetTransparentRegionL(const TDesC& aSection) - { - // Get test data for command input parameter(s) - RRegion region(1); - CleanupClosePushL(region); - - if ( !GetRegionFromConfig(aSection, KFldRegion, region) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldRegion); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute SetTransparentRegion(TRegion)")); - TInt returnCode = iWindow->SetTransparentRegion(region); - - // Check the command return code, if !=KErrNone then stop this command - if ( returnCode!=KErrNone ) - { - ERR_PRINTF2(KLogError, returnCode); - SetError(returnCode); - } - - // No command output parameter to display and check - } - - CleanupStack::PopAndDestroy(®ion); - } - - -void CT_DataWindow::DoCmdSetTransparencyPolicy(const TDesC& aSection) - { - // Get test data for command input parameter(s) - TWsTransparencyPolicy datPolicy; - - if ( !CT_GraphicsUtil::ReadWsTransparencyPolicy(*this, aSection, KFldPolicy, datPolicy) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldPolicy); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute SetTransparencyPolicy(TWsTransparencyPolicy)")); - TInt returnCode = iWindow->SetTransparencyPolicy(datPolicy); - - // Check the command return code, if !=KErrNone then stop this command - if ( returnCode!=KErrNone ) - { - ERR_PRINTF2(KLogError, returnCode); - SetError(returnCode); - } - - // No command output parameter to display and check - } - } - - -void CT_DataWindow::DoCmdIsRedrawStoreEnabled(const TDesC& aSection) - { - // No command input parameter to process - - // Execute command and log parameters - INFO_PRINTF1(_L("execute IsRedrawStoreEnabled()")); - TBool actualResult = iWindow->IsRedrawStoreEnabled(); - - // Diaplay command return value, check if it matches the expected value - TBool expectResult; - if ( !GetBoolFromConfig(aSection, KFldExpected, expectResult) ) - { - ERR_PRINTF2(KLogMissingExpectedValue, &KFldExpected()); - SetBlockResult(EFail); - } - else if ( actualResult != expectResult ) - { - ERR_PRINTF4(KLogNotExpectedValueInt, &KFldExpected, expectResult, actualResult); - SetBlockResult(EFail); - } - - // No command output parameter to display and check - } - - -void CT_DataWindow::DoCmdEnableOSB(const TDesC& aSection) - { - // Get test data for command input parameter(s) - TBool datFlag; - - if ( !GetBoolFromConfig(aSection, KFldFlag, datFlag) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldFlag); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute EnableOSB(TBool)")); - iWindow->EnableOSB(datFlag); - - // No command return value and output parameter to display and check - } - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/src/T_DataWindowBase.cpp --- a/graphicsapitest/graphicssvs/wserv/src/T_DataWindowBase.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1211 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -#include "T_DataWindowBase.h" -#include "T_GraphicsUtil.h" - - -/*@{*/ -//Commands -_LIT(KCmdActivate, "Activate"); -_LIT(KCmdSetPosition, "SetPosition"); -_LIT(KCmdSetSizeErr, "SetSizeErr"); -_LIT(KCmdSetExtentErr, "SetExtentErr"); -_LIT(KCmdSize, "Size"); -_LIT(KCmdInquireOffset, "InquireOffset"); -_LIT(KCmdPointerFilter, "PointerFilter"); -_LIT(KCmdSetPointerGrab, "SetPointerGrab"); -_LIT(KCmdClaimPointerGrab, "ClaimPointerGrab"); -_LIT(KCmdSetPointerCapture, "SetPointerCapture"); -_LIT(KCmdSetPointerCapturePriority, "SetPointerCapturePriority"); -_LIT(KCmdGetPointerCapturePriority, "GetPointerCapturePriority"); -_LIT(KCmdSetVisible, "SetVisible"); -_LIT(KCmdSetShadowHeight, "SetShadowHeight"); -_LIT(KCmdSetShadowDisabled, "SetShadowDisabled"); -_LIT(KCmdPosition, "Position"); -_LIT(KCmdAbsPosition, "AbsPosition"); -_LIT(KCmdSetCornerType, "SetCornerType"); -_LIT(KCmdSetShape, "SetShape"); -_LIT(KCmdSetRequiredDisplayMode, "SetRequiredDisplayMode"); -_LIT(KCmdDisplayMode, "DisplayMode"); -_LIT(KCmdEnableBackup, "EnableBackup"); -_LIT(KCmdRequestPointerRepeatEvent, "RequestPointerRepeatEvent"); -_LIT(KCmdCancelPointerRepeatEventRequest, "CancelPointerRepeatEventRequest"); -_LIT(KCmdAllocPointerMoveBuffer, "AllocPointerMoveBuffer"); -_LIT(KCmdFreePointerMoveBuffer, "FreePointerMoveBuffer"); -_LIT(KCmdEnablePointerMoveBuffer, "EnablePointerMoveBuffer"); -_LIT(KCmdDisablePointerMoveBuffer, "DisablePointerMoveBuffer"); -_LIT(KCmdRetrievePointerMoveBuffer, "RetrievePointerMoveBuffer"); -_LIT(KCmdDiscardPointerMoveBuffer, "DiscardPointerMoveBuffer"); -_LIT(KCmdAddKeyRect, "AddKeyRect"); -_LIT(KCmdRemoveAllKeyRects, "RemoveAllKeyRects"); -_LIT(KCmdPasswordWindow, "PasswordWindow"); -_LIT(KCmdFadeBehind, "FadeBehind"); -_LIT(KCmdIsFaded, "IsFaded"); -_LIT(KCmdIsNonFading, "IsNonFading"); -_LIT(KCmdMoveToGroup, "MoveToGroup"); - -// Fields -_LIT(KFldActivatedByPointerSwitchOn, "activatedbypointerswitchon"); -_LIT(KFldBackupType, "backuptype"); -_LIT(KFldCornerFlags, "cornerflags"); -_LIT(KFldCornerType, "cornertype"); -_LIT(KFldExpected, "expected"); -_LIT(KFldExpectedNumOfPoints, "expected_numofpoints"); -_LIT(KFldFade, "fade"); -_LIT(KFldFlags, "flags"); -_LIT(KFldHeight, "height"); -_LIT(KFldIdentifier, "identifier"); -_LIT(KFldIdentifier_Name, "identifier_name"); -_LIT(KFldMaxPoints, "maxpoints"); -_LIT(KFldMode, "mode"); -_LIT(KFldPasswordMode, "passwordmode"); -_LIT(KFldPoint, "point"); -_LIT(KFldPriority, "priority"); -_LIT(KFldRect, "rect"); -_LIT(KFldRegion, "region"); -_LIT(KFldScanCode, "scancode"); -_LIT(KFldSendUpEvent, "sendupevent"); -_LIT(KFldSize, "size"); -_LIT(KFldState, "state"); -_LIT(KFldTime, "time"); -_LIT(KFldWindow, "window"); -_LIT(KFldFilterMask, "filterMask"); -_LIT(KFldFilter, "filter"); - -/// Logging -_LIT(KLogError, "Error=%d"); -_LIT(KLogMissingParameter, "Missing parameter '%S'"); -_LIT(KLogMissingExpectedValue, "Missing expected value '%S'"); -_LIT(KLogNotAsExpectedValue, "'%S' is not as expected value"); -_LIT(KLogNotExpectedValueInt, "'%S' is not as expected=%d, actual=%d"); -/*@}*/ - -////////////////////////////////////////////////////////////////////// -// Construction/Destruction -////////////////////////////////////////////////////////////////////// - -CT_DataWindowBase::CT_DataWindowBase() -: CT_DataWindowTreeNode() - { - } - -RWindowTreeNode* CT_DataWindowBase::GetWindowTreeNode() const - { - return GetWindowBase(); - } - - -/** -* Process a command read from the ini file -* -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* @param aAsyncErrorIndex index of command. used for async calls -* -* @return ETrue if the command is processed -*/ -TBool CT_DataWindowBase::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex) - { - TBool ret = ETrue; - - if ( aCommand==KCmdActivate ) - { - DoCmdActivate(); - } - else if ( aCommand==KCmdSetPosition ) - { - DoCmdSetPosition(aSection); - } - else if ( aCommand==KCmdSetSizeErr ) - { - DoCmdSetSizeErr(aSection); - } - else if ( aCommand==KCmdSetExtentErr ) - { - DoCmdSetExtentErr(aSection); - } - else if ( aCommand==KCmdSize ) - { - DoCmdSize(aSection); - } - else if ( aCommand==KCmdInquireOffset ) - { - DoCmdInquireOffsetL(aSection); - } - else if ( aCommand==KCmdPointerFilter ) - { - DoCmdPointerFilter(aSection); - } - else if ( aCommand==KCmdSetPointerGrab ) - { - DoCmdSetPointerGrab(aSection); - } - else if ( aCommand==KCmdClaimPointerGrab ) - { - DoCmdClaimPointerGrab(aSection); - } - else if ( aCommand==KCmdSetPointerCapture ) - { - DoCmdSetPointerCapture(aSection); - } - else if ( aCommand==KCmdSetPointerCapturePriority ) - { - DoCmdSetPointerCapturePriority(aSection); - } - else if ( aCommand==KCmdGetPointerCapturePriority ) - { - DoCmdGetPointerCapturePriority(aSection); - } - else if ( aCommand==KCmdSetVisible ) - { - DoCmdSetVisible(aSection); - } - else if ( aCommand==KCmdSetShadowHeight ) - { - DoCmdSetShadowHeight(aSection); - } - else if ( aCommand==KCmdSetShadowDisabled ) - { - DoCmdSetShadowDisabled(aSection); - } - else if ( aCommand==KCmdPosition ) - { - DoCmdPosition(aSection); - } - else if ( aCommand==KCmdAbsPosition ) - { - DoCmdAbsPosition(aSection); - } - else if ( aCommand==KCmdSetCornerType ) - { - DoCmdSetCornerType(aSection); - } - else if ( aCommand==KCmdSetShape ) - { - DoCmdSetShapeL(aSection); - } - else if ( aCommand==KCmdSetRequiredDisplayMode ) - { - DoCmdSetRequiredDisplayMode(aSection); - } - else if ( aCommand==KCmdDisplayMode ) - { - DoCmdDisplayMode(aSection); - } - else if ( aCommand==KCmdEnableBackup ) - { - DoCmdEnableBackup(aSection); - } - else if ( aCommand==KCmdRequestPointerRepeatEvent ) - { - DoCmdRequestPointerRepeatEvent(aSection); - } - else if ( aCommand==KCmdCancelPointerRepeatEventRequest ) - { - DoCmdCancelPointerRepeatEventRequest(); - } - else if ( aCommand==KCmdAllocPointerMoveBuffer ) - { - DoCmdAllocPointerMoveBuffer(aSection); - } - else if ( aCommand==KCmdFreePointerMoveBuffer ) - { - DoCmdFreePointerMoveBuffer(); - } - else if ( aCommand==KCmdEnablePointerMoveBuffer ) - { - DoCmdEnablePointerMoveBuffer(); - } - else if ( aCommand==KCmdDisablePointerMoveBuffer ) - { - DoCmdDisablePointerMoveBuffer(); - } - else if ( aCommand==KCmdRetrievePointerMoveBuffer ) - { - DoCmdRetrievePointerMoveBufferL(aSection); - } - else if ( aCommand==KCmdDiscardPointerMoveBuffer ) - { - DoCmdDiscardPointerMoveBuffer(); - } - else if ( aCommand==KCmdAddKeyRect ) - { - DoCmdAddKeyRect(aSection); - } - else if ( aCommand==KCmdRemoveAllKeyRects ) - { - DoCmdRemoveAllKeyRects(); - } - else if ( aCommand==KCmdPasswordWindow ) - { - DoCmdPasswordWindow(aSection); - } - else if ( aCommand==KCmdFadeBehind ) - { - DoCmdFadeBehind(aSection); - } - else if ( aCommand==KCmdIsFaded ) - { - DoCmdIsFaded(aSection); - } - else if ( aCommand==KCmdIsNonFading ) - { - DoCmdIsNonFading(aSection); - } - else if ( aCommand==KCmdMoveToGroup ) - { - DoCmdMoveToGroupL(aSection); - } - else - { - ret=CT_DataWindowTreeNode::DoCommandL(aCommand, aSection, aAsyncErrorIndex); - } - - return ret; - } - - -void CT_DataWindowBase::DoCmdActivate() - { - // No command input parameter to process - - // Execute command and log parameters - INFO_PRINTF1(_L("execute Activate()")); - GetWindowBase()->Activate(); - - // No command return value and output parameter to display and check - } - - -void CT_DataWindowBase::DoCmdSetPosition(const TDesC& aSection) - { - // Get test data for command input parameter(s) - TPoint datPoint; - - if ( !GetPointFromConfig(aSection, KFldPoint, datPoint) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldPoint); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute SetPosition(TPoint)")); - GetWindowBase()->SetPosition(datPoint); - - // No command return value and output parameter to display and check - } - } - - -void CT_DataWindowBase::DoCmdSetSizeErr(const TDesC& aSection) - { - // Get test data for command input parameter(s) - TSize datSize; - - if ( !GetSizeFromConfig(aSection, KFldSize, datSize) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldSize); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute SetSizeErr(TSize)")); - TInt returnCode = GetWindowBase()->SetSizeErr(datSize); - - // Check the command return code, if !=KErrNone then stop this command - if ( returnCode!=KErrNone ) - { - ERR_PRINTF2(KLogError, returnCode); - SetError(returnCode); - } - - // No command output parameter to display and check - } - } - - -void CT_DataWindowBase::DoCmdSetExtentErr(const TDesC& aSection) - { - TBool dataOk=ETrue; - - // Get test data for command input parameter(s) - TPoint datPoint; - if ( !GetPointFromConfig(aSection, KFldPoint, datPoint) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldPoint); - SetBlockResult(EFail); - } - - TSize datSize; - if ( !GetSizeFromConfig(aSection, KFldSize, datSize) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldSize); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute SetExtentErr(TPoint, TSize)")); - TInt returnCode = GetWindowBase()->SetExtentErr(datPoint, datSize); - - // Check the command return code, if !=KErrNone then stop this command - if ( returnCode!=KErrNone ) - { - ERR_PRINTF2(KLogError, returnCode); - SetError(returnCode); - } - - // No command output parameter to display and check - } - } - - -void CT_DataWindowBase::DoCmdSize(const TDesC& aSection) - { - // No command input parameter to process - - // Execute command and log parameters - INFO_PRINTF1(_L("execute Size()")); - TSize actualResult = GetWindowBase()->Size(); - - // Diaplay command return value, check if it matches the expected value - TSize expectResult; - - if ( !GetSizeFromConfig(aSection, KFldExpected, expectResult) ) - { - ERR_PRINTF2(KLogMissingExpectedValue, &KFldExpected); - SetBlockResult(EFail); - } - else if ( actualResult!=expectResult ) - { - ERR_PRINTF2(KLogNotAsExpectedValue, &KFldExpected); - SetBlockResult(EFail); - } - } - - -void CT_DataWindowBase::DoCmdInquireOffsetL(const TDesC& aSection) - { - // Get test data for command input parameter(s) - TPtrC windowName; - RWindowTreeNode* window=NULL; - if ( GetStringFromConfig(aSection, KFldWindow, windowName) ) - { - window = static_cast(GetDataObjectL(windowName)); - } - - if ( window==NULL ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldWindow); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute InquireOffset(RWindowTreeNode)")); - TPoint actualResult = GetWindowBase()->InquireOffset(*window); - - // Diaplay command return value, check if it matches the expected value - TPoint expectResult; - - if ( !GetPointFromConfig(aSection, KFldExpected, expectResult) ) - { - ERR_PRINTF2(KLogMissingExpectedValue, &KFldExpected); - SetBlockResult(EFail); - } - else if ( actualResult!=expectResult ) - { - ERR_PRINTF2(KLogNotAsExpectedValue, &KFldExpected); - SetBlockResult(EFail); - } - } - } - - -void CT_DataWindowBase::DoCmdPointerFilter(const TDesC& aSection) - { - TBool dataOk=ETrue; - - TUint32 eventFilterMask=0; - if ( !CT_GraphicsUtil::ReadPointerFilter(*this, aSection, KFldFilterMask, (TUint&)eventFilterMask) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldFilterMask); - SetBlockResult(EFail); - } - - TUint32 eventFilter=0; - if ( !CT_GraphicsUtil::ReadPointerFilter(*this, aSection, KFldFilter, (TUint&)eventFilter) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldFilter); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - INFO_PRINTF3(_L("execute PointerFilter(0x%x, 0x%x)"), eventFilterMask, eventFilter); - GetWindowBase()->PointerFilter(eventFilterMask, eventFilter); - } - } - - -void CT_DataWindowBase::DoCmdSetPointerGrab(const TDesC& aSection) - { - // Get test data for command input parameter(s) - TBool datState = EFalse; - - if ( !GetBoolFromConfig(aSection, KFldState, datState) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldState); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute SetPointerGrab(TBool)")); - GetWindowBase()->SetPointerGrab(datState); - - // No command return value and output parameter to display and check - } - } - - -void CT_DataWindowBase::DoCmdClaimPointerGrab(const TDesC& aSection) - { - // Get test data for command input parameter(s) - TBool datSendUpEvent = EFalse; - - if ( !GetBoolFromConfig(aSection, KFldSendUpEvent, datSendUpEvent) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldSendUpEvent); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute ClaimPointerGrab(TBool)")); - GetWindowBase()->ClaimPointerGrab(datSendUpEvent); - - // No command return value and output parameter to display and check - } - } - - -void CT_DataWindowBase::DoCmdSetPointerCapture(const TDesC& aSection) - { - // Get test data for command input parameter(s) - RWindowBase::TCaptureFlags datFlags; - - if ( !CT_GraphicsUtil::ReadCaptureFlags(*this, aSection, KFldFlags, (TUint&)datFlags) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldFlags); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute SetPointerCapture(TInt)")); - GetWindowBase()->SetPointerCapture(datFlags); - - // No command return value and output parameter to display and check - } - } - - -void CT_DataWindowBase::DoCmdSetPointerCapturePriority(const TDesC& aSection) - { - // Get test data for command input parameter(s) - TInt datPriority; - - if ( !GetIntFromConfig(aSection, KFldPriority, datPriority) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldPriority); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute SetPointerCapturePriority(TInt)")); - GetWindowBase()->SetPointerCapturePriority(datPriority); - - // No command return value and output parameter to display and check - } - } - - -void CT_DataWindowBase::DoCmdGetPointerCapturePriority(const TDesC& aSection) - { - // No command input parameter to process - - // Execute command and log parameters - INFO_PRINTF1(_L("execute GetPointerCapturePriority()")); - TInt actualResult = GetWindowBase()->GetPointerCapturePriority(); - - // Diaplay command return value, check if it matches the expected value - TInt expectResult; - if ( !GetIntFromConfig(aSection, KFldExpected, expectResult) ) - { - ERR_PRINTF2(KLogMissingExpectedValue, &KFldExpected); - SetBlockResult(EFail); - } - else if ( actualResult!=expectResult ) - { - ERR_PRINTF4(KLogNotExpectedValueInt, &KFldExpected, expectResult, actualResult); - SetBlockResult(EFail); - } - - // No command output parameter to display and check - } - - -void CT_DataWindowBase::DoCmdSetVisible(const TDesC& aSection) - { - // Get test data for command input parameter(s) - TBool datState = EFalse; - - if ( !GetBoolFromConfig(aSection, KFldState, datState) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldState); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute SetVisible(TBool)")); - GetWindowBase()->SetVisible(datState); - - // No command return value and output parameter to display and check - } - } - - -void CT_DataWindowBase::DoCmdSetShadowHeight(const TDesC& aSection) - { - // Get test data for command input parameter(s) - TInt datHeight; - - if ( !GetIntFromConfig(aSection, KFldHeight, datHeight) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldHeight); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute SetShadowHeight(TInt)")); - GetWindowBase()->SetShadowHeight(datHeight); - - // No command return value and output parameter to display and check - } - } - - -void CT_DataWindowBase::DoCmdSetShadowDisabled(const TDesC& aSection) - { - // Get test data for command input parameter(s) - TBool datState = EFalse; - - if ( !GetBoolFromConfig(aSection, KFldState, datState) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldState); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute SetShadowDisabled(TBool)")); - GetWindowBase()->SetShadowDisabled(datState); - - // No command return value and output parameter to display and check - } - } - - -void CT_DataWindowBase::DoCmdPosition(const TDesC& aSection) - { - TPoint actual=GetWindowBase()->Position(); - INFO_PRINTF3(_L("execute Position()=(%d,%d)"), actual.iX, actual.iY); - - // Diaplay command return value, check if it matches the expected value - TPoint expected; - if ( !GetPointFromConfig(aSection, KFldExpected, expected) ) - { - ERR_PRINTF2(KLogMissingExpectedValue, &KFldExpected); - SetBlockResult(EFail); - } - else - { - if ( actual!=expected ) - { - ERR_PRINTF2(KLogNotAsExpectedValue, &KFldExpected); - SetBlockResult(EFail); - } - } - } - - -void CT_DataWindowBase::DoCmdAbsPosition(const TDesC& aSection) - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute AbsPosition()")); - TPoint actual=GetWindowBase()->AbsPosition(); - - // Diaplay command return value, check if it matches the expected value - TPoint expected; - if ( !GetPointFromConfig(aSection, KFldExpected, expected) ) - { - ERR_PRINTF2(KLogMissingExpectedValue, &KFldExpected); - SetBlockResult(EFail); - } - else - { - if ( actual!=expected ) - { - ERR_PRINTF2(KLogNotAsExpectedValue, &KFldExpected); - SetBlockResult(EFail); - } - } - } - - -void CT_DataWindowBase::DoCmdSetCornerType(const TDesC& aSection) - { - TBool dataOk=ETrue; - - // Get test data for command input parameter(s) - TCornerType datCornerType; - if ( !CT_GraphicsUtil::ReadCornerType(*this, aSection, KFldCornerType, datCornerType) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldCornerType); - SetBlockResult(EFail); - } - - TInt datCornerFlags; - if ( !GetHexFromConfig(aSection, KFldCornerFlags, datCornerFlags) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldCornerFlags); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute SetCornerType(TCornerType, TInt)")); - GetWindowBase()->SetCornerType(datCornerType, datCornerFlags); - } - } - - -void CT_DataWindowBase::DoCmdSetShapeL(const TDesC& aSection) - { - // Get test data for command input parameter(s) - RRegion region(1); - CleanupClosePushL(region); - - if ( !GetRegionFromConfig(aSection, KFldRegion, region) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldRegion); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute SetShape(TRegion)")); - TInt err=GetWindowBase()->SetShape(region); - - // Check the command return code, if !=KErrNone then stop this command - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - - // No command output parameter to display and check - } - CleanupStack::PopAndDestroy(®ion); - } - - -void CT_DataWindowBase::DoCmdSetRequiredDisplayMode(const TDesC& aSection) - { - // Get test data for command input parameter(s) - TDisplayMode datMode; - - if ( !CT_GraphicsUtil::ReadDisplayMode(*this, aSection, KFldMode, datMode) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldMode); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - TInt actual=GetWindowBase()->SetRequiredDisplayMode(datMode); - INFO_PRINTF2(_L("execute SetRequiredDisplayMode(TDisplayMode)=%d"), actual); - - // Diaplay command return value, check if it matches the expected value - TDisplayMode expected; - if ( CT_GraphicsUtil::ReadDisplayMode(*this, aSection, KFldExpected, expected) ) - { - if ( actual!=expected ) - { - ERR_PRINTF2(KLogNotAsExpectedValue, &KFldExpected); - SetBlockResult(EFail); - } - } - } - } - -void CT_DataWindowBase::DoCmdDisplayMode(const TDesC& aSection) - { - // No command input parameter to process - - // Execute command and log parameters - INFO_PRINTF1(_L("execute DisplayMode()")); - TDisplayMode actualResult = GetWindowBase()->DisplayMode(); - - // Diaplay command return value, check if it matches the expected value - TDisplayMode expectResult; - if ( !CT_GraphicsUtil::ReadDisplayMode(*this, aSection, KFldExpected, expectResult) ) - { - ERR_PRINTF2(KLogMissingExpectedValue, &KFldExpected); - SetBlockResult(EFail); - } - else if ( actualResult!=expectResult ) - { - ERR_PRINTF4(KLogNotExpectedValueInt, &KFldExpected, expectResult, actualResult); - SetBlockResult(EFail); - } - } - - -void CT_DataWindowBase::DoCmdEnableBackup(const TDesC& aSection) - { - // Get test data for command input parameter(s) - TWindowBackupType datBackupType; - - if ( !CT_GraphicsUtil::ReadWindowBackupType(*this, aSection, KFldBackupType, (TUint&)datBackupType) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldBackupType); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute EnableBackup(TUint)")); - GetWindowBase()->EnableBackup(datBackupType); - - // No command return value and output parameter to display and check - } - } - - -void CT_DataWindowBase::DoCmdRequestPointerRepeatEvent(const TDesC& aSection) - { - TBool dataOk=ETrue; - - // Get test data for command input parameter(s) - TInt datTime=0; - if ( !GetIntFromConfig(aSection, KFldTime, datTime) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldTime); - SetBlockResult(EFail); - } - - TRect datRect; - if ( !GetRectFromConfig(aSection, KFldRect, datRect) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldRect); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute RequestPointerRepeatEvent(TTimeIntervalMicroSeconds32, TRect)")); - GetWindowBase()->RequestPointerRepeatEvent((TTimeIntervalMicroSeconds32)datTime, datRect); - - // No command return value and output parameter to display and check - } - } - -void CT_DataWindowBase::DoCmdCancelPointerRepeatEventRequest() - { - // No command input parameter to process - - // Execute command and log parameters - INFO_PRINTF1(_L("execute CancelPointerRepeatEventRequest()")); - GetWindowBase()->CancelPointerRepeatEventRequest(); - - // No command return value and output parameter to display and check - } - - -void CT_DataWindowBase::DoCmdAllocPointerMoveBuffer(const TDesC& aSection) - { - TBool dataOk=ETrue; - - // Get test data for command input parameter(s) - TInt datMaxPoints; - if ( !GetIntFromConfig(aSection, KFldMaxPoints, datMaxPoints) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldMaxPoints); - SetBlockResult(EFail); - } - - TInt datFlags; - if ( !GetIntFromConfig(aSection, KFldFlags, datFlags) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldFlags); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute AllocPointerMoveBuffer(TInt, TUint)")); - TInt returnCode = GetWindowBase()->AllocPointerMoveBuffer(datMaxPoints, datFlags); - - // Check the command return code, if !=KErrNone then stop this command - if ( returnCode!=KErrNone ) - { - ERR_PRINTF2(KLogError, returnCode); - SetError(returnCode); - } - - // No command output parameter to display and check - } - } - - -void CT_DataWindowBase::DoCmdFreePointerMoveBuffer() - { - // No command input parameter to process - - // Execute command and log parameters - INFO_PRINTF1(_L("execute FreePointerMoveBuffer()")); - GetWindowBase()->FreePointerMoveBuffer(); - - // No command return value and output parameter to display and check - } - - -void CT_DataWindowBase::DoCmdEnablePointerMoveBuffer() - { - // No command input parameter to process - - // Execute command and log parameters - INFO_PRINTF1(_L("execute EnablePointerMoveBuffer()")); - GetWindowBase()->EnablePointerMoveBuffer(); - - // No command return value and output parameter to display and check - } - - -void CT_DataWindowBase::DoCmdDisablePointerMoveBuffer() - { - // No command input parameter to process - - // Execute command and log parameters - INFO_PRINTF1(_L("execute DisablePointerMoveBuffer()")); - GetWindowBase()->DisablePointerMoveBuffer(); - - // No command return value and output parameter to display and check - } - -void CT_DataWindowBase::DoCmdRetrievePointerMoveBufferL(const TDesC& aSection) - { - const TInt KPointerMoveBufferSize = 50; - TInt maxPoints=KPointerMoveBufferSize; - GetIntFromConfig(aSection, KFldMaxPoints, maxPoints); - - TPoint* pnts = new (ELeave) TPoint[maxPoints]; - CleanupArrayDeletePushL(pnts); - TPtr8 ptr((TUint8 *)pnts,sizeof(TPoint)*maxPoints); - - INFO_PRINTF1(_L("execute RetrievePointerMoveBuffer(TDes8&)")); - TInt err=GetWindowBase()->RetrievePointerMoveBuffer(ptr); - - if ( err tempStore; - tempStore.Format(_L("%S%d"), &KFldExpected, i+1); - - TPoint expectedPoint; - if ( GetPointFromConfig(aSection, tempStore, expectedPoint) ) - { - expectedNumOfPoints++; - if ( iDiscardPointerMoveBuffer(); - - // No command return value and output parameter to display and check - } - - -void CT_DataWindowBase::DoCmdAddKeyRect(const TDesC& aSection) - { - TBool dataOk=ETrue; - - // Get test data for command input parameter(s) - TRect datRect; - if ( !GetRectFromConfig(aSection, KFldRect, datRect) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldRect); - SetBlockResult(EFail); - } - - TInt datScanCode; - if ( !CT_GraphicsUtil::ReadStdScanCode(*this, aSection, KFldScanCode, (TStdScanCode&)datScanCode) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldScanCode); - SetBlockResult(EFail); - } - - TBool datActivatedByPointerSwitchOn; - if ( !GetBoolFromConfig(aSection, KFldActivatedByPointerSwitchOn, datActivatedByPointerSwitchOn) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldActivatedByPointerSwitchOn); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute AddKeyRect(TRect, TInt, TBool)")); - TInt returnCode = GetWindowBase()->AddKeyRect(datRect, datScanCode, datActivatedByPointerSwitchOn); - - // Check the command return code, if !=KErrNone then stop this command - if ( returnCode!=KErrNone ) - { - ERR_PRINTF2(KLogError, returnCode); - SetError(returnCode); - } - - // No command output parameter to display and check - } - } - - -void CT_DataWindowBase::DoCmdRemoveAllKeyRects() - { - // No command input parameter to process - - // Execute command and log parameters - INFO_PRINTF1(_L("execute RemoveAllKeyRects()")); - GetWindowBase()->RemoveAllKeyRects(); - - // No command return value and output parameter to display and check - } - - -void CT_DataWindowBase::DoCmdPasswordWindow(const TDesC& aSection) - { - // Get test data for command input parameter(s) - TPasswordMode datPasswordMode; - - if ( !CT_GraphicsUtil::ReadPasswordMode(*this, aSection, KFldPasswordMode, datPasswordMode) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldPasswordMode); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute PasswordWindow(TPasswordMode)")); - TInt returnCode = GetWindowBase()->PasswordWindow(datPasswordMode); - - // Check the command return code, if !=KErrNone then stop this command - if ( returnCode!=KErrNone ) - { - ERR_PRINTF2(KLogError, returnCode); - SetError(returnCode); - } - - // No command output parameter to display and check - } - } - - -void CT_DataWindowBase::DoCmdFadeBehind(const TDesC& aSection) - { - // Get test data for command input parameter(s) - TBool datFade; - - if ( !GetBoolFromConfig(aSection, KFldFade, datFade) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldFade); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute FadeBehind(TBool)")); - GetWindowBase()->FadeBehind(datFade); - - // No command return value and output parameter to display and check - } - } - - -void CT_DataWindowBase::DoCmdIsFaded(const TDesC& aSection) - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute IsFaded()")); - TBool actualResult = GetWindowBase()->IsFaded(); - - // Diaplay command return value, check if it matches the expected value - TBool expectResult; - if ( !GetBoolFromConfig(aSection, KFldExpected, expectResult) ) - { - ERR_PRINTF2(KLogMissingExpectedValue, &KFldExpected()); - SetBlockResult(EFail); - } - else - { - if ( (actualResult!=0) != expectResult ) - { - ERR_PRINTF4(KLogNotExpectedValueInt, &KFldExpected, expectResult, actualResult); - SetBlockResult(EFail); - } - } - } - - -void CT_DataWindowBase::DoCmdIsNonFading(const TDesC& aSection) - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute IsNonFading()")); - TBool actualResult = GetWindowBase()->IsNonFading(); - - // Diaplay command return value, check if it matches the expected value - TBool expectResult; - if ( !GetBoolFromConfig(aSection, KFldExpected, expectResult) ) - { - ERR_PRINTF2(KLogMissingExpectedValue, &KFldExpected()); - SetBlockResult(EFail); - } - else - { - if ( (actualResult!=0) != expectResult ) - { - ERR_PRINTF4(KLogNotExpectedValueInt, &KFldExpected, expectResult, actualResult); - SetBlockResult(EFail); - } - } - } - - -void CT_DataWindowBase::DoCmdMoveToGroupL(const TDesC& aSection) - { - TBool dataOk=ETrue; - - // Get test data for command input parameter(s) - TInt datIdentifier; - if ( !GetIntFromConfig(aSection, KFldIdentifier, datIdentifier) ) - { - TPtrC identifierName; - RWindowGroup* identifier = NULL; - if ( GetStringFromConfig(aSection, KFldIdentifier_Name, identifierName) ) - { - identifier = static_cast(GetDataObjectL(identifierName)); - } - - if ( identifier==NULL ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldIdentifier); - SetBlockResult(EFail); - } - else - { - datIdentifier = identifier->Identifier(); - INFO_PRINTF3(_L("get '%S_name' identifier = %d to MoveToGroup"), &KFldIdentifier, datIdentifier); - } - } - - if ( dataOk ) - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute MoveToGroup(TInt)")); - TInt returnCode = GetWindowBase()->MoveToGroup(datIdentifier); - - // Check the command return code, if !=KErrNone then stop this command - if ( returnCode!=KErrNone ) - { - ERR_PRINTF2(KLogError, returnCode); - SetError(returnCode); - } - - // No command output parameter to display and check - } - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/src/T_DataWindowGc.cpp --- a/graphicsapitest/graphicssvs/wserv/src/T_DataWindowGc.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,437 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -#include "T_DataWindowGc.h" -#include "T_GraphicsUtil.h" - -/*@{*/ -_LIT(KDataClassname, "CWindowGc"); - -//Commands -_LIT(KCmdnew, "new"); -_LIT(KCmdDestructor, "~CWindowGc"); -_LIT(KCmdDestructorGeneral, "~"); -_LIT(KCmdConstruct, "Construct"); -_LIT(KCmdActivate, "Activate"); -_LIT(KCmdDeactivate, "Deactivate"); -_LIT(KCmdBitBlt, "BitBlt"); -_LIT(KCmdBitBltMasked, "BitBltMasked"); -_LIT(KCmdSetDitherOrigin, "SetDitherOrigin"); -_LIT(KCmdSetOpaque, "SetOpaque"); -_LIT(KCmdDrawWsGraphic, "DrawWsGraphic"); - -// Fields -_LIT(KFldData, "data"); -_LIT(KFldWsga, "wsga"); -_LIT(KFldDestRect, "destrect"); -_LIT(KFldDestination, "destination"); -_LIT(KFldDevice, "device"); -_LIT(KFldId, "id"); -_LIT(KFldInvertMask, "invertmask"); -_LIT(KFldMaskBitmap, "maskbitmap"); -_LIT(KFldPoint, "point"); -_LIT(KFldSource, "source"); -_LIT(KFldSourceRect, "sourcerect"); -_LIT(KFldWsBitmap, "wsbitmap"); -_LIT(KFldDrawOpaque, "drawOpaque"); - -/// Logging -_LIT(KLogError, "Error=%d"); -_LIT(KLogMissingParameter, "Missing parameter '%S'"); -/*@}*/ - -////////////////////////////////////////////////////////////////////// -// Construction/Destruction -////////////////////////////////////////////////////////////////////// - -CT_DataWindowGc* CT_DataWindowGc::NewL() - { - CT_DataWindowGc* ret=new (ELeave) CT_DataWindowGc(); - CleanupStack::PushL(ret); - ret->ConstructL(); - CleanupStack::Pop(ret); - return ret; - } - -CT_DataWindowGc::CT_DataWindowGc() -: CT_DataBitmapContext() -, iWindowGc(NULL) - { - } - -void CT_DataWindowGc::ConstructL() - { - } - -CT_DataWindowGc::~CT_DataWindowGc() - { - DestroyData(); - } - -void CT_DataWindowGc::SetObjectL(TAny* aAny) - { - DestroyData(); - iWindowGc = static_cast (aAny); - } - -void CT_DataWindowGc::DisownObjectL() - { - iWindowGc = NULL; - } - -void CT_DataWindowGc::DestroyData() - { - delete iWindowGc; - iWindowGc=NULL; - } - -MWsClientClass* CT_DataWindowGc::GetClientClass() const - { - return iWindowGc; - } - -CBitmapContext* CT_DataWindowGc::GetBitmapContext() const - { - return iWindowGc; - } - -CGraphicsContext* CT_DataWindowGc::GetGraphicsContext() const - { - return iWindowGc; - } - - - -/** -* Process a command read from the ini file -* -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* @param aAsyncErrorIndex index of command. used for async calls -* -* @return ETrue if the command is processed -*/ -TBool CT_DataWindowGc::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex) - { - TBool ret = ETrue; - - if ( aCommand==KCmdDestructor || aCommand==KCmdDestructorGeneral ) - { - DoCmdDestructor(); - } - else if ( aCommand==KCmdnew || aCommand==KDataClassname ) - { - DoCmdnewL(aSection); - } - else if ( aCommand==KCmdConstruct ) - { - DoCmdConstruct(); - } - else if ( aCommand==KCmdActivate ) - { - DoCmdActivateL(aSection); - } - else if ( aCommand==KCmdDeactivate ) - { - DoCmdDeactivate(); - } - else if ( aCommand==KCmdBitBlt ) - { - DoCmdBitBltL(aCommand, aSection, aAsyncErrorIndex); - } - else if ( aCommand==KCmdBitBltMasked ) - { - DoCmdBitBltMaskedL(aCommand, aSection, aAsyncErrorIndex); - } - else if ( aCommand==KCmdSetDitherOrigin ) - { - DoCmdSetDitherOrigin(aSection); - } - else if ( aCommand==KCmdSetOpaque ) - { - DoCmdSetOpaque(aSection); - } - else if ( aCommand==KCmdDrawWsGraphic ) - { - DoCmdDrawWsGraphicL(aSection); - } - else if ( CT_DataBitmapContext::DoCommandL(aCommand, aSection, aAsyncErrorIndex) ) - { - } - else - { - ret=CT_DataWsClientClass::DoCommandL(*this, aCommand, aSection, aAsyncErrorIndex); - } - - return ret; - } - - -void CT_DataWindowGc::DoCmdnewL(const TDesC& aSection) - { - DestroyData(); - - // Get test data for command input parameter(s) - CWsScreenDevice* device = NULL; - if ( !CT_GraphicsUtil::GetWsScreenDeviceL(*this, aSection, KFldDevice, device) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldDevice); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("execute new CWindowGc(CWsScreenDevice)")); - TRAPD( err, iWindowGc = new (ELeave) CWindowGc(device) ); - if ( err != KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - } - } - -void CT_DataWindowGc::DoCmdDestructor() - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute ~CWindowGc()")); - delete iWindowGc; - iWindowGc=NULL; - } - - -void CT_DataWindowGc::DoCmdConstruct() - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute Construct()")); - TInt returnCode = iWindowGc->Construct(); - - // Check the command return code, if !=KErrNone then stop this command - if ( returnCode!=KErrNone ) - { - ERR_PRINTF2(KLogError, returnCode); - SetError(returnCode); - } - } - - -void CT_DataWindowGc::DoCmdActivateL(const TDesC& aSection) - { - // Get test data for command input parameter(s) - RDrawableWindow *device = NULL; - - if ( !CT_GraphicsUtil::GetDrawableWindowL(*this, aSection, KFldDevice, device) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldDevice); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute Activate(RDrawableWindow)")); - iWindowGc->Activate(*device); - - // No command return value and output parameter to display and check - } - } - - -void CT_DataWindowGc::DoCmdDeactivate() - { - // No command input parameter to process - - // Execute command and log parameters - INFO_PRINTF1(_L("execute Deactivate()")); - iWindowGc->Deactivate(); - - // No command return value and output parameter to display and check - } - -void CT_DataWindowGc::DoCmdBitBltL(const TDesC& aCommand, const TDesC& aSection, const TInt aAsyncErrorIndex) - { - TBool dataOk=ETrue; - - CWsBitmap* wsBitmap=NULL; - if ( !CT_GraphicsUtil::GetWsBitmapL(*this, aSection, KFldWsBitmap, wsBitmap) ) - { - CT_DataBitmapContext::DoCommandL(aCommand, aSection, aAsyncErrorIndex); - } - else - { - TPoint point; - if ( GetPointFromConfig(aSection, KFldPoint, point) ) - { - if ( dataOk ) - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute BitBlt(TPoint, CWsBitmap*)")); - iWindowGc->BitBlt(point, wsBitmap); - } - } - else - { - TPoint destination; - if ( !GetPointFromConfig(aSection, KFldDestination, destination) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldDestination()); - SetBlockResult(EFail); - } - - TRect source; - if ( !GetRectFromConfig(aSection, KFldSource, source) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldSource()); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute BitBlt(TRect, CWsBitmap*, TRect)")); - iWindowGc->BitBlt(destination, wsBitmap, source); - } - } - } - } - - -void CT_DataWindowGc::DoCmdBitBltMaskedL(const TDesC& aCommand, const TDesC& aSection, const TInt aAsyncErrorIndex) - { - TBool dataOk=ETrue; - - CWsBitmap* wsBitmap=NULL; - if ( !CT_GraphicsUtil::GetWsBitmapL(*this, aSection, KFldWsBitmap, wsBitmap) ) - { - CT_DataBitmapContext::DoCommandL(aCommand, aSection, aAsyncErrorIndex); - } - else - { - // Get test data for command input parameter(s) - TPoint point; - if ( !GetPointFromConfig(aSection, KFldPoint, point) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldPoint()); - SetBlockResult(EFail); - } - - TRect sourceRect; - if ( !GetRectFromConfig(aSection, KFldSourceRect, sourceRect) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldSourceRect()); - SetBlockResult(EFail); - } - - TBool invertMask; - if ( !GetBoolFromConfig(aSection, KFldInvertMask, invertMask) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldInvertMask()); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - CWsBitmap* maskBitmap=NULL; - CT_GraphicsUtil::GetWsBitmapL(*this, aSection, KFldMaskBitmap, maskBitmap); - - // Execute command and log parameters - INFO_PRINTF1(_L("execute BitBltMasked(TPoint, CWsBitmap*, TRect, CWsBitmap*, TBool)")); - iWindowGc->BitBltMasked(point, wsBitmap, sourceRect, maskBitmap, invertMask); - } - } - } - -void CT_DataWindowGc::DoCmdSetDitherOrigin(const TDesC& aSection) - { - TPoint point; - if ( GetPointFromConfig(aSection, KFldPoint, point) ) - { - INFO_PRINTF1(_L("CWindowGc::SetDitherOrigin")); - iWindowGc->SetDitherOrigin(point); - } - else - { - ERR_PRINTF2(_L("Missing parameter %S"), &KFldPoint()); - SetBlockResult(EFail); - } - } - -void CT_DataWindowGc::DoCmdSetOpaque(const TDesC& aSection) - { - TBool drawOpaque=ETrue; - if( GetBoolFromConfig(aSection, KFldDrawOpaque(), drawOpaque)) - { - INFO_PRINTF1(_L("CWindowGc::SetOpaque")); - iWindowGc->SetOpaque(drawOpaque); - } - else - { - ERR_PRINTF2(_L("Missing parameter %S"), &KFldDrawOpaque()); - SetBlockResult(EFail); - } - } - -void CT_DataWindowGc::DoCmdDrawWsGraphicL(const TDesC& aSection) - { - TBool dataOk=ETrue; - - // Get test data for command input parameter(s) - TWsGraphicId datId(0); - if ( !GetWsGraphicIdFromConfigL(aSection, KFldId, datId) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldId); - SetBlockResult(EFail); - } - - TRect datDestRect; - if ( !GetRectFromConfig(aSection, KFldDestRect, datDestRect) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldDestRect); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - RWsGraphicMsgBuf* pData = NULL; - TWsGraphicAnimation* pWsga = NULL; - if ( CT_GraphicsUtil::GetWsGraphicMsgBufL(*this, aSection, KFldData, pData) ) - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute DrawWsGraphic(TWsGraphicId, TRect, TDesC8)")); - iWindowGc->DrawWsGraphic(datId, datDestRect, pData->Pckg()); - } - else if( CT_GraphicsUtil::GetWsGraphicAnimationL(*this, aSection, KFldWsga, pWsga) ) - { - INFO_PRINTF1(_L("execute DrawWsGraphic(TWsGraphicId, TRect, TDesC8)")); - iWindowGc->DrawWsGraphic(datId, datDestRect, pWsga->Pckg()); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute DrawWsGraphic(TWsGraphicId, TRect)")); - iWindowGc->DrawWsGraphic(datId, datDestRect); - } - // No command return value and output parameter to display and check - } - } - - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/src/T_DataWindowGroup.cpp --- a/graphicsapitest/graphicssvs/wserv/src/T_DataWindowGroup.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1236 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -#include "T_DataWindowGroup.h" -#include "T_GraphicsUtil.h" - -/*@{*/ -_LIT(KDataClassname, "RWindowGroup"); - -// Fields -_LIT(KFldAdjust ,"adjust"); -_LIT(KFldCaptureKey ,"capturekey"); -_LIT(KFldClientHandle ,"clienthandle"); -_LIT(KFldClipRect ,"cliprect"); -_LIT(KFldCursor ,"cursor"); -_LIT(KFldDeviceNumber ,"devicenumber"); -_LIT(KFldFlags ,"flags"); -_LIT(KFldIdOfParentWindowGroup ,"idofparentwindowgroup"); -_LIT(KFldInputKeyCode ,"inputkeycode"); -_LIT(KFldIsFocusable ,"isfocusable"); -_LIT(KFldKeycode ,"keycode"); -_LIT(KFldModifier ,"modifier"); -_LIT(KFldModifierMask ,"modifiermask"); -_LIT(KFldOrdinalPriority ,"ordinalpriority"); -_LIT(KFldOutputKeyCode ,"outputkeycode"); -_LIT(KFldPos ,"pos"); -_LIT(KFldProcessSID ,"processsid"); -_LIT(KFldPriority ,"priority"); -_LIT(KFldRepeatTime ,"repeattime"); -_LIT(KFldScanCode ,"scancode"); -_LIT(KFldScreenDevice ,"screendevice"); -_LIT(KFldState ,"state"); -_LIT(KFldStdScanCode ,"stdscancode"); -_LIT(KFldTip ,"tip"); -_LIT(KFldType ,"type"); -_LIT(KFldWin ,"win"); -_LIT(KFldWs ,"ws"); -_LIT(KFldID ,"id"); -_LIT(KFldIDName ,"id_name"); - -//Parameters -_LIT(KinputWGN, "inputWGN"); -_LIT(KexpectedReturnWGN, "expectRtnWGN"); -_LIT(KOwningWGIdentifier, "OwningWGId"); -_LIT(KOwningWGIdName, "OwningWGId_name"); - -//Commands -_LIT(KCmdnew, "new"); -_LIT(KCmdDestructor, "~"); -_LIT(KCmdConstruct, "Construct"); -_LIT(KCmdConstructChildApp, "ConstructChildApp"); -_LIT(KCmdAllowProcessToCreateChildWindowGroups, "AllowProcessToCreateChildWindowGroups"); -_LIT(KCmdEnableReceiptOfFocus, "EnableReceiptOfFocus"); -_LIT(KCmdAutoForeground, "AutoForeground"); -_LIT(KCmdSetOrdinalPriorityAdjust, "SetOrdinalPriorityAdjust"); -_LIT(KCmdSetOrdinalPositionErr, "SetOrdinalPositionErr"); -_LIT(KCmdCaptureKey, "CaptureKey"); -_LIT(KCmdCancelCaptureKey, "CancelCaptureKey"); -_LIT(KCmdCaptureKeyUpAndDowns, "CaptureKeyUpAndDowns"); -_LIT(KCmdCancelCaptureKeyUpAndDowns, "CancelCaptureKeyUpAndDowns"); -_LIT(KCmdCaptureLongKey, "CaptureLongKey"); -_LIT(KCmdCancelCaptureLongKey, "CancelCaptureLongKey"); -_LIT(KCmdAddPriorityKey, "AddPriorityKey"); -_LIT(KCmdRemovePriorityKey, "RemovePriorityKey"); -_LIT(KCmdSetTextCursor, "SetTextCursor"); -_LIT(KCmdCancelTextCursor, "CancelTextCursor"); -_LIT(KCmdSetOwningWindowGroup, "SetOwningWindowGroup"); -_LIT(KCmdDefaultOwningWindow, "DefaultOwningWindow"); -_LIT(KCmdSetName, "SetName"); -_LIT(KCmdName, "Name"); -_LIT(KCmdIdentifier, "Identifier"); -_LIT(KCmdDisableKeyClick, "DisableKeyClick"); -_LIT(KCmdEnableScreenChangeEvents, "EnableScreenChangeEvents"); -_LIT(KCmdDisableScreenChangeEvents, "DisableScreenChangeEvents"); -_LIT(KCmdSimulatePointerEvent, "SimulatePointerEvent"); -_LIT(KCmdSetChildGroup, "SetChildGroup"); -_LIT(KCmdClearChildGroup, "ClearChildGroup"); - -/// Logging -_LIT(KLogError, "Error=%d"); -_LIT(KLogMissingParameter, "Missing parameter '%S'"); -_LIT(KLogMissingExpectedValue, "Missing expected value '%S'"); -_LIT(KLogNotExpectedValueString, "'%S' is not as expected='%S', actual='%S'"); -/*@}*/ - -////////////////////////////////////////////////////////////////////// -// Construction/Destruction -////////////////////////////////////////////////////////////////////// - -CT_DataWindowGroup* CT_DataWindowGroup::NewL() - { - CT_DataWindowGroup* ret=new (ELeave) CT_DataWindowGroup(); - CleanupStack::PushL(ret); - ret->ConstructL(); - CleanupStack::Pop(ret); - return ret; - } - -CT_DataWindowGroup::CT_DataWindowGroup() -: CT_DataWindowTreeNode() -, iWindowGroup(NULL) -, iCaptureKeyHandle(0) - { - } - -void CT_DataWindowGroup::ConstructL() - { - } - -CT_DataWindowGroup::~CT_DataWindowGroup() - { - DestroyData(); - } - -void CT_DataWindowGroup::SetObjectL(TAny* aAny) - { - DestroyData(); - iWindowGroup = static_cast (aAny); - } - -void CT_DataWindowGroup::DisownObjectL() - { - iWindowGroup = NULL; - } - -void CT_DataWindowGroup::DestroyData() - { - delete iWindowGroup; - iWindowGroup=NULL; - } - -RWindowTreeNode* CT_DataWindowGroup::GetWindowTreeNode() const - { - return iWindowGroup; - } - -/** -* Process a command read from the ini file -* -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* @param aAsyncErrorIndex index of command. used for async calls -* -* @return ETrue if the command is processed -*/ -TBool CT_DataWindowGroup::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex) - { - TBool ret = ETrue; - - if ( aCommand==KCmdDestructor ) - { - DoCmdDestructor(); - } - else if ( aCommand==KCmdnew || aCommand==KDataClassname ) - { - DoCmdnewL(aSection); - } - else if ( aCommand==KCmdConstruct ) - { - DoCmdConstructL(aSection); - } - else if ( aCommand==KCmdConstructChildApp ) - { - DoCmdConstructChildAppL(aSection); - } - else if ( aCommand==KCmdAllowProcessToCreateChildWindowGroups ) - { - DoCmdAllowProcessToCreateChildWindowGroups(aSection); - } - else if ( aCommand==KCmdEnableReceiptOfFocus ) - { - DoCmdEnableReceiptOfFocus(aSection); - } - else if ( aCommand==KCmdAutoForeground ) - { - DoCmdAutoForeground(aSection); - } - else if ( aCommand==KCmdSetOrdinalPriorityAdjust ) - { - DoCmdSetOrdinalPriorityAdjust(aSection); - } - else if ( aCommand==KCmdSetOrdinalPositionErr ) - { - DoCmdSetOrdinalPositionErr(aSection); - } - else if ( aCommand==KCmdCaptureKey ) - { - DoCmdCaptureKey(aSection); - } - else if ( aCommand==KCmdCancelCaptureKey ) - { - DoCmdCancelCaptureKey(aSection); - } - else if ( aCommand==KCmdCaptureKeyUpAndDowns ) - { - DoCmdCaptureKeyUpAndDowns(aSection); - } - else if ( aCommand==KCmdCancelCaptureKeyUpAndDowns ) - { - DoCmdCancelCaptureKeyUpAndDowns(aSection); - } - else if ( aCommand==KCmdCaptureLongKey ) - { - DoCmdCaptureLongKey(aSection); - } - else if ( aCommand==KCmdCancelCaptureLongKey ) - { - DoCmdCancelCaptureLongKey(aSection); - } - else if ( aCommand==KCmdAddPriorityKey ) - { - DoCmdAddPriorityKey(aSection); - } - else if ( aCommand==KCmdRemovePriorityKey ) - { - DoCmdRemovePriorityKey(aSection); - } - else if ( aCommand==KCmdSetTextCursor ) - { - DoCmdSetTextCursorL(aSection); - } - else if ( aCommand==KCmdCancelTextCursor ) - { - DoCmdCancelTextCursor(); - } - else if ( aCommand==KCmdSetOwningWindowGroup ) - { - DoCmdSetOwningWindowGroupL(aSection); - } - else if ( aCommand==KCmdDefaultOwningWindow ) - { - DoCmdDefaultOwningWindow(); - } - else if ( aCommand==KCmdSetName ) - { - DoCmdSetName(aSection); - } - else if ( aCommand==KCmdName ) - { - DoCmdName(aSection); - } - else if ( aCommand==KCmdIdentifier ) - { - DoCmdIdentifier(); - } - else if ( aCommand==KCmdDisableKeyClick ) - { - DoCmdDisableKeyClick(aSection); - } - else if ( aCommand==KCmdEnableScreenChangeEvents ) - { - DoCmdEnableScreenChangeEvents(); - } - else if ( aCommand==KCmdDisableScreenChangeEvents ) - { - DoCmdDisableScreenChangeEvents(); - } - else if ( aCommand==KCmdSimulatePointerEvent ) - { - DoCmdSimulatePointerEvent(aSection); - } - else if ( aCommand==KCmdSetChildGroup ) - { - DoCmdSetChildGroupL(aSection); - } - else if ( aCommand==KCmdClearChildGroup ) - { - DoCmdClearChildGroup(); - } - else - { - ret=CT_DataWindowTreeNode::DoCommandL(aCommand, aSection, aAsyncErrorIndex); - } - - return ret; - } - - -void CT_DataWindowGroup::DoCmdnewL(const TDesC& aSection) - { - DestroyData(); - - // Get test data for command input parameter(s) - TPtrC wsName; - RWsSession* ws=NULL; - if ( GetStringFromConfig(aSection, KFldWs, wsName) ) - { - ws = static_cast(GetDataObjectL(wsName)); - } - - TInt err=KErrNone; - if ( ws!=NULL ) - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute new RWindowGroup(RWsSession)")); - TRAP( err, iWindowGroup = new (ELeave) RWindowGroup(*ws)); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute new RWindowGroup()")); - TRAP( err, iWindowGroup = new (ELeave) RWindowGroup()); - } - - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - } - - -void CT_DataWindowGroup::DoCmdDestructor() - { - DestroyData(); - } - - -void CT_DataWindowGroup::DoCmdConstructL(const TDesC& aSection) - { - TInt returnCode=KErrNone; - - // Get test data for command input parameter(s) - TInt datClientHandle; - TBool hasClientHandle = GetIntFromConfig(aSection, KFldClientHandle, datClientHandle); - if ( !hasClientHandle ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldClientHandle); - SetBlockResult(EFail); - } - else - { - TBool datIsFocusable; - TBool hasIsFocusable = GetBoolFromConfig(aSection, KFldIsFocusable, datIsFocusable); - -#if defined(SYMBIAN_WSERV_AND_CONE_MULTIPLE_SCREENS) - CWsScreenDevice* screenDevice=NULL; - // Execute command and log parameters - if ( CT_GraphicsUtil::GetWsScreenDeviceL(*this, aSection, KFldScreenDevice, screenDevice) ) - { - if ( hasIsFocusable ) - { - INFO_PRINTF1(_L("execute Construct(TUint32, TBool, CWsScreenDevice)")); - returnCode = iWindowGroup->Construct(datClientHandle, datIsFocusable, screenDevice); - } - else - { - INFO_PRINTF1(_L("execute Construct(TUint32, CWsScreenDevice)")); - returnCode = iWindowGroup->Construct(datClientHandle, screenDevice); - } - } - else -#endif - { - if ( hasIsFocusable ) - { - INFO_PRINTF1(_L("execute Construct(TUint32, TBool)")); - returnCode = iWindowGroup->Construct(datClientHandle, datIsFocusable); - } - else - { - INFO_PRINTF1(_L("execute Construct(TUint32)")); - returnCode = iWindowGroup->Construct(datClientHandle); - } - } - } - - // Check the command return code, if !=KErrNone then stop this command - if ( returnCode!=KErrNone ) - { - ERR_PRINTF2(KLogError, returnCode); - SetError(returnCode); - } - - // No command output parameter to display and check - } - - -void CT_DataWindowGroup::DoCmdConstructChildAppL(const TDesC& aSection) - { - TBool dataOk=ETrue; - TInt returnCode=KErrNone; - - // Get test data for command input parameter(s) - TInt datIdOfParentWindowGroup; - if ( !GetIntFromConfig(aSection, KFldIdOfParentWindowGroup, datIdOfParentWindowGroup) ) - { - CDataWrapperBase* wrapper=NULL; - TPtrC objectName; - if ( GetStringFromConfig(aSection, KFldIdOfParentWindowGroup(), objectName) ) - { - wrapper=static_cast(GetDataWrapperL(objectName)); - - } - - if ( wrapper==NULL ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldIdOfParentWindowGroup); - SetBlockResult(EFail); - } - else - { - datIdOfParentWindowGroup = wrapper->GetIdentifier(); - } - } - - TInt datClientHandle; - if ( !GetIntFromConfig(aSection, KFldClientHandle, datClientHandle) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldClientHandle); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - TBool datIsFocusable; - if ( GetBoolFromConfig(aSection, KFldIsFocusable, datIsFocusable) ) - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute ConstructChildApp(TInt, TUint32, TBool)")); - returnCode = iWindowGroup->ConstructChildApp(datIdOfParentWindowGroup, datClientHandle, datIsFocusable); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute ConstructChildApp(TInt, TUint32)")); - returnCode = iWindowGroup->ConstructChildApp(datIdOfParentWindowGroup, datClientHandle); - } - - // Check the command return code, if !=KErrNone then stop this command - if ( returnCode!=KErrNone ) - { - ERR_PRINTF2(KLogError, returnCode); - SetError(returnCode); - } - - // No command output parameter to display and check - } - } - - -void CT_DataWindowGroup::DoCmdAllowProcessToCreateChildWindowGroups(const TDesC& aSection) - { - // Get test data for command input parameter(s) - TInt datProcess; - if ( !GetIntFromConfig(aSection, KFldProcessSID, datProcess) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldProcessSID); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute AllowProcessToCreateChildWindowGroups(TUid)")); - iWindowGroup->AllowProcessToCreateChildWindowGroups(TUid::Uid(datProcess)); - } - - // No command return value and output parameter to display and check - } - - -void CT_DataWindowGroup::DoCmdEnableReceiptOfFocus(const TDesC& aSection) - { - // Get test data for command input parameter(s) - TBool datState; - if ( !GetBoolFromConfig(aSection, KFldState, datState) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldState); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute EnableReceiptOfFocus(TBool)")); - iWindowGroup->EnableReceiptOfFocus(datState); - } - - // No command return value and output parameter to display and check - } - - -void CT_DataWindowGroup::DoCmdAutoForeground(const TDesC& aSection) - { - // Get test data for command input parameter(s) - TBool datState; - if ( !GetBoolFromConfig(aSection, KFldState, datState) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldState); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute AutoForeground(TBool)")); - iWindowGroup->AutoForeground(datState); - } - - // No command return value and output parameter to display and check - } - - -void CT_DataWindowGroup::DoCmdSetOrdinalPriorityAdjust(const TDesC& aSection) - { - // Get test data for command input parameter(s) - TInt datAdjust; - if ( !GetIntFromConfig(aSection, KFldAdjust, datAdjust) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldAdjust); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute SetOrdinalPriorityAdjust(TInt)")); - iWindowGroup->SetOrdinalPriorityAdjust(datAdjust); - } - - // No command return value and output parameter to display and check - } - - -void CT_DataWindowGroup::DoCmdSetOrdinalPositionErr(const TDesC& aSection) - { - TBool dataOk=ETrue; - - // Get test data for command input parameter(s) - TInt datPos; - if ( !GetIntFromConfig(aSection, KFldPos, datPos) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldPos); - SetBlockResult(EFail); - } - - TInt datOrdinalPriority; - if ( !GetIntFromConfig(aSection, KFldOrdinalPriority, datOrdinalPriority) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldOrdinalPriority); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute SetOrdinalPositionErr(TInt, TInt)")); - TInt returnCode = iWindowGroup->SetOrdinalPositionErr(datPos, datOrdinalPriority); - - // Check the command return code, if !=KErrNone then stop this command - if ( returnCode!=KErrNone ) - { - ERR_PRINTF2(KLogError, returnCode); - SetError(returnCode); - } - - // No command output parameter to display and check - } - } - -void CT_DataWindowGroup::DoCmdCaptureKey(const TDesC& aSection) - { - TBool dataOk=ETrue; - - TKeyCode keyCode; - if ( !CT_GraphicsUtil::ReadKeyCode(*this, aSection, KFldKeycode, keyCode) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldKeycode); - SetBlockResult(EFail); - } - - TUint modifierMask; - if ( !CT_GraphicsUtil::ReadEventModifier(*this, aSection, KFldModifierMask, modifierMask) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldModifierMask); - SetBlockResult(EFail); - } - - TUint modifier; - if ( !CT_GraphicsUtil::ReadEventModifier(*this, aSection, KFldModifier, modifier) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldModifier); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - TInt ret=KErrNone; - TInt priority; - if ( GetIntFromConfig(aSection, KFldPriority, priority) ) - { - INFO_PRINTF1(_L("execute CaptureKey(keyCode, modifierMask, modifier, priority)")); - ret=iWindowGroup->CaptureKey(keyCode, modifierMask, modifier, priority); - } - else - { - INFO_PRINTF1(_L("execute CaptureKey(keyCode, modifierMask, modifier)")); - ret=iWindowGroup->CaptureKey(keyCode, modifierMask, modifier); - } - if ( retCancelCaptureKey(iCaptureKeyHandle); - } - else - { - iWindowGroup->CancelCaptureKey(captureKey); - } - } - } - - -void CT_DataWindowGroup::DoCmdCaptureKeyUpAndDowns(const TDesC& aSection) - { - TBool dataOk=ETrue; - - TUint scanCode; - if ( !CT_GraphicsUtil::ReadStdScanCode(*this, aSection, KFldScanCode, (TStdScanCode&)scanCode) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldScanCode); - SetBlockResult(EFail); - } - - TUint modifierMask; - if ( !CT_GraphicsUtil::ReadEventModifier(*this, aSection, KFldModifierMask, modifierMask) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldModifierMask); - SetBlockResult(EFail); - } - - TUint modifier; - if ( !CT_GraphicsUtil::ReadEventModifier(*this, aSection, KFldModifier, modifier) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldModifier); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - TInt ret=KErrNone; - TInt priority; - if ( !GetIntFromConfig(aSection, KFldPriority, priority) ) - { - INFO_PRINTF1(_L("execute CaptureKeyUpAndDowns(TUint, TUint, TUint)")); - ret=iWindowGroup->CaptureKeyUpAndDowns(scanCode, modifierMask, modifier); - } - else - { - INFO_PRINTF1(_L("execute CaptureKeyUpAndDowns(TUint, TUint, TUint, TInt)")); - ret=iWindowGroup->CaptureKeyUpAndDowns(scanCode, modifierMask, modifier, priority); - } - - if ( ret < KErrNone ) - { - ERR_PRINTF2(KLogError, ret); - SetError(ret); - } - else - { - iCaptureKeyHandle=ret; - } - } - } - - -void CT_DataWindowGroup::DoCmdCancelCaptureKeyUpAndDowns(const TDesC& aSection) - { - // Get test data for command input parameter(s) - TInt captureKey; - if ( !GetIntFromConfig(aSection, KFldCaptureKey, captureKey) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldCaptureKey); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("execute CancelCaptureKeyUpAndDowns(captureKey)")); - if ( captureKey == -1 ) - { - iWindowGroup->CancelCaptureKeyUpAndDowns(iCaptureKeyHandle); - } - else - { - iWindowGroup->CancelCaptureKeyUpAndDowns(captureKey); - } - } - } - - -void CT_DataWindowGroup::DoCmdCaptureLongKey(const TDesC& aSection) - { - TBool dataOk=ETrue; - - TKeyCode inputKeyCode; - if ( !CT_GraphicsUtil::ReadKeyCode(*this, aSection, KFldInputKeyCode, inputKeyCode) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldInputKeyCode); - SetBlockResult(EFail); - } - - TKeyCode outputKeyCode; - if ( !CT_GraphicsUtil::ReadKeyCode(*this, aSection, KFldOutputKeyCode, outputKeyCode) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldOutputKeyCode); - SetBlockResult(EFail); - } - - TUint modifierMask; - if ( !CT_GraphicsUtil::ReadEventModifier(*this, aSection, KFldModifierMask, modifierMask) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldModifierMask); - SetBlockResult(EFail); - } - - TUint modifier; - if ( !CT_GraphicsUtil::ReadEventModifier(*this, aSection, KFldModifier, modifier) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldModifier); - SetBlockResult(EFail); - } - - TInt priority; - if ( !GetIntFromConfig(aSection, KFldPriority, priority) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldPriority); - SetBlockResult(EFail); - } - - TLongCaptureFlags flags; - if ( !CT_GraphicsUtil::ReadLongCaptureFlags(*this, aSection, KFldFlags, flags) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldFlags); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - TInt ret=KErrNone; - TInt repeatTime; - if ( GetIntFromConfig(aSection, KFldRepeatTime, repeatTime) ) - { - TTimeIntervalMicroSeconds32 theRepeatTime(repeatTime); - - // Execute command and log parameters - INFO_PRINTF1(_L("execute CaptureLongKey(repeatTime, inputKeyCode, iutputKeyCode, modifierMask, modifier, priority, flags)")); - ret=iWindowGroup->CaptureLongKey(theRepeatTime, inputKeyCode, outputKeyCode, modifierMask, modifier, priority, flags); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute CaptureLongKey(inputKeyCode, outputKeyCode, modifierMask, modifier, priority, flags)")); - ret=iWindowGroup->CaptureLongKey(inputKeyCode, outputKeyCode, modifierMask, modifier, priority, flags); - } - - // Check the command return code, if !=KErrNone then stop this command - if ( retCancelCaptureLongKey(iCaptureKeyHandle); - } - else - { - iWindowGroup->CancelCaptureLongKey(captureKey); - } - } - } - - -void CT_DataWindowGroup::DoCmdAddPriorityKey(const TDesC& aSection) - { - TBool dataOk=ETrue; - - // Get test data for command input parameter(s) - TKeyCode keyCode; - if ( !CT_GraphicsUtil::ReadKeyCode(*this, aSection, KFldKeycode, keyCode) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldKeycode); - SetBlockResult(EFail); - } - - TUint modifierMask; - if ( !CT_GraphicsUtil::ReadEventModifier(*this, aSection, KFldModifierMask, modifierMask) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldModifierMask); - SetBlockResult(EFail); - } - - TUint modifier; - if ( !CT_GraphicsUtil::ReadEventModifier(*this, aSection, KFldModifier, modifier) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldModifier); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute AddPriorityKey(TUint, TUint, TUint)")); - TInt ret=iWindowGroup->AddPriorityKey(keyCode, modifierMask, modifier); - - // Check the command return code, if RemovePriorityKey(keyCode, modifierMask, modifier); - } - } - - -void CT_DataWindowGroup::DoCmdSetTextCursorL(const TDesC& aSection) - { - TBool dataOk=ETrue; - - TPtrC datWinName; - RWindowBase* win = NULL; - if ( !GetStringFromConfig(aSection, KFldWin, datWinName) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldWin); - SetBlockResult(EFail); - dataOk=EFalse; - } - else - { - win = static_cast(GetDataObjectL(datWinName)); - } - - TPoint datPos; - if ( !GetPointFromConfig(aSection, KFldPos, datPos) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldPos); - SetBlockResult(EFail); - dataOk=EFalse; - } - - TTextCursor datCursor; - if ( !CT_GraphicsUtil::GetTextCursor(*this, aSection, KFldCursor, datCursor) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldCursor); - SetBlockResult(EFail); - dataOk=EFalse; - } - - if ( dataOk ) - { - // get rectangle top left x-coordinate from parameters - TRect datClipRect; - if ( GetRectFromConfig(aSection, KFldClipRect, datClipRect) ) - { - INFO_PRINTF1(_L("execute SetTextCursor(RWindowBase, const TPoint, const TTextCursor, const TRect)")); - iWindowGroup->SetTextCursor(*win, datPos, datCursor, datClipRect); - } - else - { - INFO_PRINTF1(_L("execute SetTextCursor(RWindowBase, const TPoint, const TTextCursor)")); - iWindowGroup->SetTextCursor(*win, datPos, datCursor); - } - } - } - - -void CT_DataWindowGroup::DoCmdCancelTextCursor() - { - INFO_PRINTF1(_L("RWindowGroup::CancelTextCursor() call")); - iWindowGroup->CancelTextCursor(); - } - - -void CT_DataWindowGroup::DoCmdSetOwningWindowGroupL(const TDesC& aSection) - { - TInt winGroupId=0; - TBool hasWGIdentifier=ETrue; - - if ( !GetIntFromConfig(aSection, KOwningWGIdentifier(), winGroupId) ) - { - - CDataWrapperBase* wrapper=NULL; - TPtrC objectName; - if ( GetStringFromConfig(aSection, KOwningWGIdName(), objectName) ) - { - wrapper=static_cast(GetDataWrapperL(objectName)); - } - - if ( wrapper!=NULL ) - { - winGroupId = wrapper->GetIdentifier(); - - INFO_PRINTF2(_L("get id:%d"), winGroupId); - } - else - { - ERR_PRINTF2(KLogMissingParameter, &KOwningWGIdentifier); - SetBlockResult(EFail); - hasWGIdentifier = EFalse; - } - } - - if ( !hasWGIdentifier ) - { - ERR_PRINTF2(KLogMissingParameter, &KOwningWGIdentifier); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("execute SetOwningWindowGroup(TInt)")); - iWindowGroup->SetOwningWindowGroup(winGroupId); - } - } - - -void CT_DataWindowGroup::DoCmdDefaultOwningWindow() - { - INFO_PRINTF1(_L("execute DefaultOwningWindow()")); - iWindowGroup->DefaultOwningWindow(); - } - - -void CT_DataWindowGroup::DoCmdSetName(const TDesC& aSection) - { - TPtrC theNameString; - - if ( !GetStringFromConfig(aSection, KinputWGN(), theNameString) ) - { - ERR_PRINTF2(KLogMissingParameter, &KinputWGN); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("execute SetName(const TDesC)")); - TInt err = iWindowGroup->SetName(theNameString); - - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - } - } - -void CT_DataWindowGroup::DoCmdName(const TDesC& aSection) - { - TBuf storeBuffer; - - INFO_PRINTF1(_L("execute Name(TDes&)")); - TInt err = iWindowGroup->Name(storeBuffer); - - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - else - { - INFO_PRINTF2(_L("the length of name:%d"), storeBuffer.Length()); - INFO_PRINTF1(_L("the name of window group:")); - INFO_PRINTF1(storeBuffer); - - TPtrC returnWGName; - if ( !GetStringFromConfig(aSection, KexpectedReturnWGN(), returnWGName) ) - { - ERR_PRINTF2(KLogMissingExpectedValue, &KexpectedReturnWGN()); - SetBlockResult(EFail); - } - else - { - if (storeBuffer!=returnWGName) - { - ERR_PRINTF4(KLogNotExpectedValueString, &KexpectedReturnWGN, &returnWGName, &storeBuffer); - SetBlockResult(EFail); - } - } - } - } - - -void CT_DataWindowGroup::DoCmdIdentifier() - { - INFO_PRINTF1(_L("execute Identifier()")); - TInt actualWGId=iWindowGroup->Identifier(); - INFO_PRINTF2(_L("Identifier:%d"),actualWGId); - SetIdentifier(actualWGId); - } - - -void CT_DataWindowGroup::DoCmdDisableKeyClick(const TDesC& aSection) - { - // Get test data for command input parameter(s) - TBool datState; - if ( !GetBoolFromConfig(aSection, KFldState, datState) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldState); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute DisableKeyClick(TBool)")); - iWindowGroup->DisableKeyClick(datState); - } - - // No command return value and output parameter to display and check - } - - -void CT_DataWindowGroup::DoCmdEnableScreenChangeEvents() - { - INFO_PRINTF1(_L("execute EnableScreenChangeEvents()")); - TInt err = iWindowGroup->EnableScreenChangeEvents(); - - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - } - - -void CT_DataWindowGroup::DoCmdDisableScreenChangeEvents() - { - INFO_PRINTF1(_L("execute DisableScreenChangeEvents()")); - iWindowGroup->DisableScreenChangeEvents(); - } - - -void CT_DataWindowGroup::DoCmdSimulatePointerEvent(const TDesC& aSection) - { - TBool dataOk=ETrue; - TRawEvent event; - - TRawEvent::TType type=TRawEvent::ENone; - if ( !CT_GraphicsUtil::ReadType(*this, aSection, KFldType(), type) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldType()); - SetBlockResult(EFail); - } - else - { - event.Set(type); - } - - TStdScanCode stdScanCode; - if ( CT_GraphicsUtil::ReadStdScanCode(*this, aSection, KFldStdScanCode(), stdScanCode) ) - { - event.Set(type, stdScanCode); - } - - TInt deviceNumber; - if ( GetIntFromConfig(aSection, KFldDeviceNumber, deviceNumber) ) - { - event.SetDeviceNumber(deviceNumber); - } - - TPoint pointerPos(0,0); - if ( GetPointFromConfig(aSection, KFldPos, pointerPos) ) - { - event.Set(type, pointerPos.iX, pointerPos.iY); - } - - TBool tip; - if ( GetBoolFromConfig(aSection, KFldTip, tip) ) - { - event.SetTip(tip); - } - - if ( dataOk ) - { - INFO_PRINTF1(_L("execute SimulatePointerEvent(TRawEvent)")); - iWindowGroup->SimulatePointerEvent(event); - } - } - - -void CT_DataWindowGroup::DoCmdSetChildGroupL(const TDesC& aSection) - { - TBool dataOk = ETrue; - - TInt id; - if ( !GetIntFromConfig(aSection, KFldID, id) ) - { - CDataWrapperBase* wrapper=NULL; - TPtrC objectName; - if ( GetStringFromConfig(aSection, KFldIDName(), objectName) ) - { - wrapper=static_cast(GetDataWrapperL(objectName)); - //handle=wrapper->GetHandle(); - } - - if ( wrapper!=NULL ) - { - id = wrapper->GetIdentifier(); - - INFO_PRINTF3(_L("get '%S_name' identifier = %d' to set child group"), &KFldID, id); - } - else - { - ERR_PRINTF2(KLogMissingParameter, &KFldID); - SetBlockResult(EFail); - dataOk = EFalse; - } - } - - if ( dataOk ) - { - INFO_PRINTF1(_L("execute SetChildGroup(TInt)")); - TInt returnCode = iWindowGroup->SetChildGroup(id); - - if ( returnCode!=KErrNone ) - { - ERR_PRINTF2(KLogError, returnCode); - SetError(returnCode); - } - } - } - -void CT_DataWindowGroup::DoCmdClearChildGroup() - { - INFO_PRINTF1(_L("execute ClearChildGroup()")); - TInt returnCode = iWindowGroup->ClearChildGroup(); - - if ( returnCode!=KErrNone ) - { - ERR_PRINTF2(KLogError, returnCode); - SetError(returnCode); - } - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/src/T_DataWindowInfo.cpp --- a/graphicsapitest/graphicssvs/wserv/src/T_DataWindowInfo.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,193 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -#include "T_DataWindowInfo.h" - -/*@{*/ -/// Commands -_LIT(KCmdnew, "new"); -_LIT(KCmdDestructor, "~"); -_LIT(KCmdGetRedrawRegionAndRedrawShadowRegion, "GetRedrawRegionAndRedrawShadowRegion"); - -/// Fields -_LIT(KFldNullExpected, "nullexpected"); - -/// Logging -_LIT(KLogError, "Error=%d"); -/*@}*/ - -////////////////////////////////////////////////////////////////////// -// Construction/Destruction -////////////////////////////////////////////////////////////////////// - -CT_DataWindowInfo* CT_DataWindowInfo::NewL() -/** - * Two phase constructor - */ - { - CT_DataWindowInfo* ret=new (ELeave) CT_DataWindowInfo(); - CleanupStack::PushL(ret); - ret->ConstructL(); - CleanupStack::Pop(ret); - return ret; - } - -CT_DataWindowInfo::CT_DataWindowInfo() -/** - * Protected constructor. First phase construction - */ -: CDataWrapperBase() -, iWindowInfo(NULL) -, iRedrawRegion(NULL) -, iRedrawShadowRegion(NULL) - { - } - -void CT_DataWindowInfo::ConstructL() -/** - * Second phase construction - */ - { - } - -CT_DataWindowInfo::~CT_DataWindowInfo() -/** - * Public destructor - */ - { - DestroyData(); - } - -TAny* CT_DataWindowInfo::GetObject() -/** - * Return a pointer to the object that the data wraps - * - * @return pointer to the object that the data wraps - */ - { - return iWindowInfo; - } - -void CT_DataWindowInfo::SetObjectL(TAny* aAny) -/** - * Set the object that the data wraps - * - * @param aObject object that the wrapper is testing - * - */ - { - DestroyData(); - iWindowInfo = static_cast (aAny); - } - -void CT_DataWindowInfo::DisownObjectL() -/** - * The object will no longer be owned by this - * - * @leave KErrNotSupported if the the function is not supported - */ - { - iWindowInfo = NULL; - } - -void CT_DataWindowInfo::DestroyData() - { - delete iWindowInfo; - iWindowInfo=NULL; - } - - -/** -* Process a command read from the ini file -* -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* @param aAsyncErrorIndex index of command. used for async calls -* -* @return ETrue if the command is processed -*/ -TBool CT_DataWindowInfo::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt /*aAsyncErrorIndex*/) - { - TBool ret = ETrue; - - if ( aCommand==KCmdDestructor ) - { - DoCmdDestructor(); - } - else if ( aCommand==KCmdnew ) - { - DoCmdnew(); - } - else if ( aCommand==KCmdGetRedrawRegionAndRedrawShadowRegion ) - { - DoCmdGetRedrawRegionAndRedrawShadowRegion(aSection); - } - else - { - ret=EFalse; - } - - return ret; - } - - -void CT_DataWindowInfo::DoCmdnew() - { - DestroyData(); - - // Execute command and log parameters - INFO_PRINTF1(_L("execute new()")); - TRAPD(err, iWindowInfo=new (ELeave) TWindowInfo()); - if ( err != KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - } - -void CT_DataWindowInfo::DoCmdDestructor() - { - INFO_PRINTF1(_L("execute ~")); - DestroyData(); - } - -void CT_DataWindowInfo::DoCmdGetRedrawRegionAndRedrawShadowRegion(const TDesC& aSection) - { - INFO_PRINTF1(_L("GetRedrawRegionAndRedrawShadowRegion")); - iWindowInfo->GetRedrawRegionAndRedrawShadowRegion(iRedrawRegion, iRedrawShadowRegion); - - TBool nullExpected; - if ( GetBoolFromConfig(aSection, KFldNullExpected(), nullExpected) ) - { - if ( nullExpected ) - { - if ( (iRedrawRegion!=NULL) || (iRedrawShadowRegion!=NULL) ) - { - ERR_PRINTF3(_L("NULL pointers expected. RedrawRegion=0x%x, RedrawShadowRegion=0x%x"), iRedrawRegion, iRedrawShadowRegion); - SetBlockResult(EFail); - } - } - else - { - if ( (iRedrawRegion==NULL) || (iRedrawShadowRegion==NULL) ) - { - ERR_PRINTF3(_L("Non NULL pointers expected. RedrawRegion=0x%x, RedrawShadowRegion=0x%x"), iRedrawRegion, iRedrawShadowRegion); - SetBlockResult(EFail); - } - } - } - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/src/T_DataWindowTreeNode.cpp --- a/graphicsapitest/graphicssvs/wserv/src/T_DataWindowTreeNode.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,682 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -#include "T_DataWindowTreeNode.h" - - -//Parameters -_LIT(KObjectName, "objectName"); -_LIT(KExpected, "expected"); -_LIT(KInputWindowPosition, "inputWindowPosition"); -_LIT(KInputWindowPriority, "inputWindowPriority"); -_LIT(KInputCursorNumber, "inputCursorNumber"); -_LIT(KInputEventControl, "inputEventControl"); -_LIT(KInputEventModifier, "inputEventModifier"); -_LIT(KInputNonFading, "inputNonFading"); -_LIT(KInputFaded, "inputFaded"); -_LIT(KInputFadeControl, "inputFadeControl"); -_LIT(KInputBlackMap, "inputBlackMap"); -_LIT(KInputWhiteMap, "inputWhiteMap"); - -_LIT(KFldPointerCursor, "pointerCursor"); -//Commands -_LIT(KCmdClose, "Close"); -_LIT(KCmdDestroy, "Destroy"); -_LIT(KCmdParent, "Parent"); -_LIT(KCmdPrevSibling, "PrevSibling"); -_LIT(KCmdNextSibling, "NextSibling"); -_LIT(KCmdChild, "Child"); -_LIT(KCmdOrdinalPriority, "OrdinalPriority"); -_LIT(KCmdOrdinalPosition, "OrdinalPosition"); -_LIT(KCmdFullOrdinalPosition, "FullOrdinalPosition"); -_LIT(KCmdSetOrdinalPosition, "SetOrdinalPosition"); -_LIT(KCmdWindowGroupId, "WindowGroupId"); -_LIT(KCmdSetPointerCursor, "SetPointerCursor"); -_LIT(KCmdSetCustomPointerCursor, "SetCustomPointerCursor"); -_LIT(KCmdEnableOnEvents, "EnableOnEvents"); -_LIT(KCmdDisableOnEvents, "DisableOnEvents"); -_LIT(KCmdEnableGroupChangeEvents, "EnableGroupChangeEvents"); -_LIT(KCmdDisableGroupChangeEvents, "DisableGroupChangeEvents"); -_LIT(KCmdEnableFocusChangeEvents, "EnableFocusChangeEvents"); -_LIT(KCmdDisableFocusChangeEvents, "DisableFocusChangeEvents"); -_LIT(KCmdEnableGroupListChangeEvents, "EnableGroupListChangeEvents"); -_LIT(KCmdDisableGroupListChangeEvents, "DisableGroupListChangeEvents"); -_LIT(KCmdEnableVisibilityChangeEvents, "EnableVisibilityChangeEvents"); -_LIT(KCmdDisableVisibilityChangeEvents, "DisableVisibilityChangeEvents"); -_LIT(KCmdEnableErrorMessages, "EnableErrorMessages"); -_LIT(KCmdDisableErrorMessages, "DisableErrorMessages"); -_LIT(KCmdEnableModifierChangedEvents, "EnableModifierChangedEvents"); -_LIT(KCmdDisableModifierChangedEvents, "DisableModifierChangedEvents"); -_LIT(KCmdSetNonFading, "SetNonFading"); -_LIT(KCmdSetFaded, "SetFaded"); -_LIT(KCmdClearPointerCursor, "ClearPointerCursor"); - -/*@}*/ - -////////////////////////////////////////////////////////////////////// -// Construction/Destruction -////////////////////////////////////////////////////////////////////// - -CT_DataWindowTreeNode::CT_DataWindowTreeNode() -: CDataWrapperBase() - { - } - -MWsClientClass* CT_DataWindowTreeNode::GetClientClass() const - { - return GetWindowTreeNode(); - } - -/** -* Process a command read from the ini file -* -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* @param aAsyncErrorIndex index of command. used for async calls -* -* @return ETrue if the command is processed -*/ -TBool CT_DataWindowTreeNode::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex) - { - TBool ret = ETrue; - - if ( aCommand==KCmdClose ) - { - DoCmdClose(); - } - else if ( aCommand==KCmdDestroy ) - { - DoCmdDestroyL(); - } - else if ( aCommand==KCmdParent ) - { - DoCmdParent(aSection); - } - else if ( aCommand==KCmdPrevSibling ) - { - DoCmdPrevSibling(aSection); - } - else if ( aCommand==KCmdNextSibling ) - { - DoCmdNextSibling(aSection); - } - else if ( aCommand==KCmdChild ) - { - DoCmdChild(aSection); - } - else if ( aCommand==KCmdOrdinalPriority ) - { - DoCmdOrdinalPriority(aSection); - } - else if ( aCommand==KCmdOrdinalPosition ) - { - DoCmdOrdinalPosition(aSection); - } - else if ( aCommand==KCmdFullOrdinalPosition ) - { - DoCmdFullOrdinalPosition(aSection); - } - else if ( aCommand==KCmdSetOrdinalPosition ) - { - DoCmdSetOrdinalPosition(aSection); - } - else if ( aCommand==KCmdWindowGroupId ) - { - DoCmdWindowGroupId(); - } - else if ( aCommand==KCmdSetPointerCursor ) - { - DoCmdSetPointerCursor(aSection); - } - else if ( aCommand==KCmdSetCustomPointerCursor ) - { - DoCmdSetCustomPointerCursorL(aSection); - } - else if ( aCommand==KCmdEnableOnEvents ) - { - DoCmdEnableOnEvents(aSection); - } - else if ( aCommand==KCmdDisableOnEvents ) - { - DoCmdDisableOnEvents(); - } - else if ( aCommand==KCmdEnableGroupChangeEvents ) - { - DoCmdEnableGroupChangeEvents(); - } - else if ( aCommand==KCmdDisableGroupChangeEvents ) - { - DoCmdDisableGroupChangeEvents(); - } - else if ( aCommand==KCmdEnableFocusChangeEvents ) - { - DoCmdEnableFocusChangeEvents(); - } - else if ( aCommand==KCmdDisableFocusChangeEvents ) - { - DoCmdDisableFocusChangeEvents(); - } - else if ( aCommand==KCmdEnableGroupListChangeEvents ) - { - DoCmdEnableGroupListChangeEvents(); - } - else if ( aCommand==KCmdDisableGroupListChangeEvents ) - { - DoCmdDisableGroupListChangeEvents(); - } - else if ( aCommand==KCmdEnableVisibilityChangeEvents ) - { - DoCmdEnableVisibilityChangeEvents(); - } - else if ( aCommand==KCmdDisableVisibilityChangeEvents ) - { - DoCmdDisableVisibilityChangeEvents(); - } - else if ( aCommand==KCmdEnableErrorMessages ) - { - DoCmdEnableErrorMessages(aSection); - } - else if ( aCommand==KCmdDisableErrorMessages ) - { - DoCmdDisableErrorMessages(); - } - else if ( aCommand==KCmdEnableModifierChangedEvents ) - { - DoCmdEnableModifierChangedEvents(aSection); - } - else if ( aCommand==KCmdDisableModifierChangedEvents ) - { - DoCmdDisableModifierChangedEvents(); - } - else if ( aCommand==KCmdSetNonFading ) - { - DoCmdSetNonFading(aSection); - } - else if ( aCommand==KCmdSetFaded ) - { - DoCmdSetFaded(aSection); - } - else if ( aCommand==KCmdClearPointerCursor ) - { - DoCmdClearPointerCursor(); - } - else - { - ret=CT_DataWsClientClass::DoCommandL(*this, aCommand, aSection, aAsyncErrorIndex); - } - - return ret; - } - -void CT_DataWindowTreeNode::DoCmdClose() - { - GetWindowTreeNode()->Close(); - INFO_PRINTF1(_L("RWindowTreeNode::Close")); - } - -void CT_DataWindowTreeNode::DoCmdDestroyL() - { - RWindowTreeNode* node=GetWindowTreeNode(); - - // We disown the object as Destroy() also deletes it - DisownObjectL(); - INFO_PRINTF1(_L("RWindowTreeNode::Destroy")); - node->Destroy(); - } - -void CT_DataWindowTreeNode::DoCmdParent(const TDesC& aSection) - { - TUint32 actual = GetWindowTreeNode()->Parent(); - INFO_PRINTF2(_L("RWindowTreeNode::Parent = %d"), actual); - - TInt expected = 0; - if( GetIntFromConfig(aSection, KExpected(), expected)) - { - if ( actual!=(TUint32)expected ) - { - ERR_PRINTF1(_L("Parent is not as expected!")); - SetBlockResult(EFail); - } - } - else - { - ERR_PRINTF2(_L("Missing parameter %S"), &KExpected()); - SetBlockResult(EFail); - } - } - - -void CT_DataWindowTreeNode::DoCmdPrevSibling(const TDesC& aSection) - { - TUint32 actual = GetWindowTreeNode()->PrevSibling(); - INFO_PRINTF2(_L("RWindowTreeNode::PrevSibling = %d"), actual); - - TInt expected = 0; - if( GetIntFromConfig(aSection, KExpected(), expected)) - { - if ( actual!=(TUint32)expected ) - { - ERR_PRINTF1(_L("PrevSibling is not as expected!")); - SetBlockResult(EFail); - } - } - else - { - ERR_PRINTF2(_L("Missing parameter %S"), &KExpected()); - SetBlockResult(EFail); - } - } - - -void CT_DataWindowTreeNode::DoCmdNextSibling(const TDesC& aSection) - { - TUint32 actual = GetWindowTreeNode()->NextSibling(); - INFO_PRINTF2(_L("RWindowTreeNode::NextSibling = %d"), actual); - - TInt expected = 0; - if( GetIntFromConfig(aSection, KExpected(), expected)) - { - if ( actual!=(TUint32)expected ) - { - ERR_PRINTF1(_L("NextSibling is not as expected!")); - SetBlockResult(EFail); - } - } - else - { - ERR_PRINTF2(_L("Missing parameter %S"), &KExpected()); - SetBlockResult(EFail); - } - } - - -void CT_DataWindowTreeNode::DoCmdChild(const TDesC& aSection) - { - TUint32 actual = GetWindowTreeNode()->Child(); - INFO_PRINTF2(_L("RWindowTreeNode::Child = %d"), actual); - - TInt expected = 0; - if( GetIntFromConfig(aSection, KExpected(), expected)) - { - if ( actual!=(TUint32)expected ) - { - ERR_PRINTF1(_L("Child is not as expected!")); - SetBlockResult(EFail); - } - } - else - { - ERR_PRINTF2(_L("Missing parameter %S"), &KExpected()); - SetBlockResult(EFail); - } - } - - -void CT_DataWindowTreeNode::DoCmdOrdinalPriority(const TDesC& aSection) - { - TInt actual = GetWindowTreeNode()->OrdinalPriority(); - INFO_PRINTF2(_L("RWindowTreeNode::OrdinalPriority = %d"), actual); - - TInt expected = 0; - if( GetIntFromConfig(aSection, KExpected(), expected)) - { - if( actual != expected ) - { - ERR_PRINTF1(_L("OrdinalPriority is not as expected!")); - SetBlockResult(EFail); - } - } - else - { - ERR_PRINTF2(_L("Missing parameter %S"), &KExpected()); - SetBlockResult(EFail); - } - } - - -void CT_DataWindowTreeNode::DoCmdOrdinalPosition(const TDesC& aSection) - { - TInt actual = GetWindowTreeNode()->OrdinalPosition(); - INFO_PRINTF2(_L("RWindowTreeNode::OrdinalPosition = %d"), actual); - - TInt expected = 0; - if( GetIntFromConfig(aSection, KExpected(), expected)) - { - if( actual != expected ) - { - ERR_PRINTF1(_L("OrdinalPosition is not as expected!")); - SetBlockResult(EFail); - } - } - else - { - ERR_PRINTF2(_L("Missing parameter %S"), &KExpected()); - SetBlockResult(EFail); - } - } - - -void CT_DataWindowTreeNode::DoCmdFullOrdinalPosition(const TDesC& aSection) - { - TInt actual = GetWindowTreeNode()->FullOrdinalPosition(); - INFO_PRINTF2(_L("RWindowTreeNode::FullOrdinalPosition = %d"), actual); - - TInt expected = 0; - if( GetIntFromConfig(aSection, KExpected(), expected)) - { - if( actual != expected ) - { - ERR_PRINTF1(_L("FullOrdinalPosition is not as expected!")); - SetBlockResult(EFail); - } - } - else - { - ERR_PRINTF2(_L("Missing parameter %S"), &KExpected()); - SetBlockResult(EFail); - } - } - - -void CT_DataWindowTreeNode::DoCmdSetOrdinalPosition(const TDesC& aSection) - { - TInt inputWindowPosition=0; - if( GetIntFromConfig(aSection, KInputWindowPosition(), inputWindowPosition)) - { - TInt inputWindowPriority=0; - if( GetIntFromConfig(aSection, KInputWindowPriority(), inputWindowPriority)) - { - GetWindowTreeNode()->SetOrdinalPosition(inputWindowPosition, inputWindowPriority); - INFO_PRINTF1(_L("RWindowTreeNode::SetOrdinalPosition (Priority)")); - } - else - { - GetWindowTreeNode()->SetOrdinalPosition(inputWindowPosition); - INFO_PRINTF1(_L("RWindowTreeNode::SetOrdinalPosition")); - } - } - else - { - ERR_PRINTF2(_L("Missing parameter %S"), &KInputWindowPosition()); - SetBlockResult(EFail); - } - } - - -void CT_DataWindowTreeNode::DoCmdWindowGroupId() - { - TInt actual = GetWindowTreeNode()->WindowGroupId(); - INFO_PRINTF2(_L("RWindowTreeNode::WindowGroupId = %d"), actual); - SetIdentifier(actual); - } - - -void CT_DataWindowTreeNode::DoCmdSetPointerCursor(const TDesC& aSection) - { - TPointerCursorMode inputCursorNumber=EPointerCursorNormal; - if ( CT_GraphicsUtil::ReadPointerCursorMode(*this, aSection, KInputCursorNumber(), inputCursorNumber) ) - { - TInt err=GetWindowTreeNode()->SetPointerCursor(inputCursorNumber); - if ( err!=KErrNone ) - { - ERR_PRINTF2(_L("**** SetPointerCursor failed with error %d"), err); - SetError(err); - } - - INFO_PRINTF1(_L("RWindowTreeNode::SetPointerCursor")); - } - else - { - ERR_PRINTF2(_L("Missing parameter %S"), &KInputCursorNumber()); - SetBlockResult(EFail); - } - } - - -void CT_DataWindowTreeNode::DoCmdSetCustomPointerCursorL(const TDesC& aSection) - { - TPtrC objectName; - if( GetStringFromConfig(aSection, KObjectName(), objectName) ) - { - RWsSession* wsSession = static_cast(GetDataObjectL(objectName)); - RWsPointerCursor pointerCursor(*wsSession); - User::LeaveIfError(pointerCursor.Construct(0)); - CleanupClosePushL(pointerCursor); - - INFO_PRINTF1(_L("RWindowTreeNode::SetCustomPointerCursor")); - GetWindowTreeNode()->SetCustomPointerCursor(pointerCursor); - - CleanupStack::PopAndDestroy(&pointerCursor); - } - else - { - TPtrC pointerCursorName; - - if( GetStringFromConfig(aSection, KFldPointerCursor(), pointerCursorName) ) - { - RWsPointerCursor* pointerCursor = static_cast(GetDataObjectL(pointerCursorName)); - - INFO_PRINTF1(_L("RWindowTreeNode::SetCustomPointerCursor")); - GetWindowTreeNode()->SetCustomPointerCursor(*pointerCursor); - } - - else - { - ERR_PRINTF3(_L("Missing parameter %S or %S"), &KFldPointerCursor(),&KObjectName()); - SetBlockResult(EFail); - } - } - - } - - -void CT_DataWindowTreeNode::DoCmdEnableOnEvents(const TDesC& aSection) - { - TEventControl eventControl=EEventControlOnlyWithKeyboardFocus; - CT_GraphicsUtil::ReadEventControl(*this, aSection, KInputEventControl(), eventControl); - - INFO_PRINTF1(_L("RWindowTreeNode::EnableOnEvents")); - TInt err=GetWindowTreeNode()->EnableOnEvents(eventControl); - if ( err!=KErrNone ) - { - ERR_PRINTF2(_L("**** EnableOnEvents failed with error %d"), err); - SetError(err); - } - } - - -void CT_DataWindowTreeNode::DoCmdDisableOnEvents() - { - INFO_PRINTF1(_L("RWindowTreeNode::DisableOnEvents")); - GetWindowTreeNode()->DisableOnEvents(); - } - - -void CT_DataWindowTreeNode::DoCmdEnableGroupChangeEvents() - { - INFO_PRINTF1(_L("RWindowTreeNode::EnableGroupChangeEvents")); - TInt err = GetWindowTreeNode()->EnableGroupChangeEvents(); - if ( err!=KErrNone ) - { - ERR_PRINTF2(_L("**** EnableGroupChangeEvents failed with error %d"), err); - SetError(err); - } - } - - -void CT_DataWindowTreeNode::DoCmdDisableGroupChangeEvents() - { - INFO_PRINTF1(_L("RWindowTreeNode::DisableGroupChangeEvents")); - GetWindowTreeNode()->DisableGroupChangeEvents(); - } - - -void CT_DataWindowTreeNode::DoCmdEnableFocusChangeEvents() - { - INFO_PRINTF1(_L("RWindowTreeNode::EnableFocusChangeEvents")); - TInt err = GetWindowTreeNode()->EnableFocusChangeEvents(); - if ( err!=KErrNone ) - { - ERR_PRINTF2(_L("**** EnableFocusChangeEvents failed with error %d"), err); - SetError(err); - } - } - - -void CT_DataWindowTreeNode::DoCmdDisableFocusChangeEvents() - { - INFO_PRINTF1(_L("RWindowTreeNode::DisableFocusChangeEvents")); - GetWindowTreeNode()->DisableFocusChangeEvents(); - } - - -void CT_DataWindowTreeNode::DoCmdEnableGroupListChangeEvents() - { - INFO_PRINTF1(_L("RWindowTreeNode::EnableGroupListChangeEvents")); - TInt err = GetWindowTreeNode()->EnableGroupListChangeEvents(); - if ( err!=KErrNone ) - { - ERR_PRINTF2(_L("**** EnableGroupListChangeEvents failed with error %d"), err); - SetError(err); - } - } - - -void CT_DataWindowTreeNode::DoCmdDisableGroupListChangeEvents() - { - INFO_PRINTF1(_L("RWindowTreeNode::DisableGroupListChangeEvents")); - GetWindowTreeNode()->DisableGroupListChangeEvents(); - } - - -void CT_DataWindowTreeNode::DoCmdEnableVisibilityChangeEvents() - { - INFO_PRINTF1(_L("RWindowTreeNode::EnableVisibilityChangeEvents")); - TInt err = GetWindowTreeNode()->EnableVisibilityChangeEvents(); - if ( err!=KErrNone ) - { - ERR_PRINTF2(_L("**** EnableVisibilityChangeEvents failed with error %d"), err); - SetError(err); - } - } - - -void CT_DataWindowTreeNode::DoCmdDisableVisibilityChangeEvents() - { - INFO_PRINTF1(_L("RWindowTreeNode::DisableVisibilityChangeEvents")); - GetWindowTreeNode()->DisableVisibilityChangeEvents(); - } - - -void CT_DataWindowTreeNode::DoCmdEnableErrorMessages(const TDesC& aSection) - { - TEventControl eventControl=EEventControlOnlyWithKeyboardFocus; - CT_GraphicsUtil::ReadEventControl(*this, aSection, KInputEventControl(), eventControl); - - INFO_PRINTF1(_L("RWindowTreeNode::EnableErrorMessages")); - TInt err=GetWindowTreeNode()->EnableErrorMessages(eventControl); - if ( err!=KErrNone ) - { - ERR_PRINTF2(_L("**** EnableErrorMessages failed with error %d"), err); - SetError(err); - } - } - - -void CT_DataWindowTreeNode::DoCmdDisableErrorMessages() - { - INFO_PRINTF1(_L("RWindowTreeNode::DisableErrorMessages")); - GetWindowTreeNode()->DisableErrorMessages(); - } - - -void CT_DataWindowTreeNode::DoCmdEnableModifierChangedEvents(const TDesC& aSection) - { - TEventModifier eventModifier = EModifierAutorepeatable; - CT_GraphicsUtil::ReadEventModifier(*this, aSection, KInputEventModifier(), eventModifier); - - TEventControl eventControl = EEventControlOnlyWithKeyboardFocus; - CT_GraphicsUtil::ReadEventControl(*this, aSection, KInputEventControl(), eventControl); - - INFO_PRINTF1(_L("RWindowTreeNode::EnableModifierChangedEvents")); - TInt err=GetWindowTreeNode()->EnableModifierChangedEvents(eventModifier, eventControl); - if ( err!=KErrNone ) - { - ERR_PRINTF2(_L("**** EnableModifierChangedEvents failed with error %d"), err); - SetError(err); - } - } - - -void CT_DataWindowTreeNode::DoCmdDisableModifierChangedEvents() - { - INFO_PRINTF1(_L("RWindowTreeNode::DisableModifierChangedEvents")); - GetWindowTreeNode()->DisableModifierChangedEvents(); - } - - -void CT_DataWindowTreeNode::DoCmdSetNonFading(const TDesC& aSection) - { - TBool inputNonFading=ETrue; - if( GetBoolFromConfig(aSection, KInputNonFading(), inputNonFading)) - { - INFO_PRINTF1(_L("RWindowTreeNode::SetNonFading")); - GetWindowTreeNode()->SetNonFading(inputNonFading); - } - else - { - ERR_PRINTF2(_L("Missing parameter %S"), &KInputNonFading()); - SetBlockResult(EFail); - } - } - - -void CT_DataWindowTreeNode::DoCmdSetFaded(const TDesC& aSection) - { - TBool inputFaded=ETrue; - if( !GetBoolFromConfig(aSection, KInputFaded(), inputFaded)) - { - ERR_PRINTF2(_L("Missing parameter %S"), &KInputFaded()); - SetBlockResult(EFail); - } - else - { - RWindowTreeNode::TFadeControl fadeControl=RWindowTreeNode::EFadeIncludeChildren; - CT_GraphicsUtil::ReadFadeControl(*this, aSection, KInputFadeControl(), fadeControl); - - TInt inputBlackMap=0; - TInt inputWhiteMap=255; - if( GetIntFromConfig(aSection, KInputBlackMap(), inputBlackMap) && - GetIntFromConfig(aSection, KInputWhiteMap(), inputWhiteMap) ) - { - INFO_PRINTF1(_L("RWindowTreeNode::SetFaded (Map Fading)")); - GetWindowTreeNode()->SetFaded(inputFaded, fadeControl, (TUint8) inputBlackMap, (TUint8) inputWhiteMap); - } - else - { - INFO_PRINTF1(_L("RWindowTreeNode::SetFaded")); - GetWindowTreeNode()->SetFaded(inputFaded, fadeControl); - } - } - } - - -void CT_DataWindowTreeNode::DoCmdClearPointerCursor() - { - INFO_PRINTF1(_L("RWindowTreeNode::ClearPointerCursor")); - GetWindowTreeNode()->ClearPointerCursor(); - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/src/T_DataWsBitmap.cpp --- a/graphicsapitest/graphicssvs/wserv/src/T_DataWsBitmap.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,351 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -#include "T_DataWsBitmap.h" -#include "T_GraphicsUtil.h" - -/*@{*/ -_LIT(KDataClassname, "CWsBitmap"); - -//Commands -_LIT(KCmdnew, "new"); -_LIT(KCmdDestructor, "~CWsBitmap"); -_LIT(KCmdDestructorGeneral, "~"); -_LIT(KCmdCreate, "Create"); -_LIT(KCmdDuplicate, "Duplicate"); -_LIT(KCmdLoad, "Load"); -_LIT(KCmdInternalizeL, "InternalizeL"); -_LIT(KCmdReset, "Reset"); - -// Fields -_LIT(KFldDispMode, "dispmode"); -_LIT(KFldFileName, "filename"); -_LIT(KFldHandle, "handle"); -_LIT(KFldHandle_Name, "handle_name"); -_LIT(KFldId, "id"); -_LIT(KFldShareIfLoaded, "shareifloaded"); -_LIT(KFldSizeInPixels, "sizeinpixels"); -_LIT(KFldUseClosedStream, "use_closed_stream"); -_LIT(KFldWs, "ws"); - -/// Logging -_LIT(KLogError, "Error=%d"); -_LIT(KLogMissingParameter, "Missing parameter '%S'"); -/*@}*/ - -////////////////////////////////////////////////////////////////////// -// Construction/Destruction -////////////////////////////////////////////////////////////////////// - -CT_DataWsBitmap* CT_DataWsBitmap::NewL() - { - CT_DataWsBitmap* ret=new (ELeave) CT_DataWsBitmap(); - CleanupStack::PushL(ret); - ret->ConstructL(); - CleanupStack::Pop(ret); - return ret; - } - -CT_DataWsBitmap::CT_DataWsBitmap() -: CT_DataFbsBitmap() -, iWsBitmap(NULL) - { - } - -void CT_DataWsBitmap::ConstructL() - { - CT_DataFbsBitmap::ConstructL(); - } - -CT_DataWsBitmap::~CT_DataWsBitmap() - { - DestroyData(); - } - -void CT_DataWsBitmap::SetObjectL(TAny* aAny) - { - DestroyData(); - iWsBitmap = static_cast (aAny); - } - -void CT_DataWsBitmap::DestroyData() - { - delete iWsBitmap; - iWsBitmap=NULL; - } - -void CT_DataWsBitmap::DisownObjectL() - { - iWsBitmap = NULL; - } - -MWsClientClass* CT_DataWsBitmap::GetClientClass() const - { - return iWsBitmap; - } - - -/** -* Process a command read from the ini file -* -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* @param aAsyncErrorIndex index of command. used for async calls -* -* @return ETrue if the command is processed -*/ -TBool CT_DataWsBitmap::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex) - { - TBool ret = ETrue; - - if ( aCommand==KCmdDestructor || aCommand==KCmdDestructorGeneral ) - { - DoCmdDestructor(); - } - else if ( aCommand==KCmdnew || aCommand==KDataClassname ) - { - DoCmdnewL(aSection); - } - else if ( aCommand==KCmdCreate ) - { - DoCmdCreate(aSection); - } - else if ( aCommand==KCmdDuplicate ) - { - DoCmdDuplicateL(aSection); - } - else if ( aCommand==KCmdLoad ) - { - DoCmdLoad(aSection); - } - else if ( aCommand==KCmdInternalizeL ) - { - DoCmdInternalizeL(aSection); - } - else if ( aCommand==KCmdReset ) - { - DoCmdReset(); - } - else if ( !CT_DataWsClientClass::DoCommandL(*this, aCommand, aSection, aAsyncErrorIndex) ) - { - CT_DataFbsBitmap::SetObjectL(iWsBitmap); - ret = CT_DataFbsBitmap::DoCommandL(aCommand, aSection, aAsyncErrorIndex); - CT_DataFbsBitmap::DisownObjectL(); - } - - return ret; - } - - -void CT_DataWsBitmap::DoCmdnewL(const TDesC& aSection) - { - DestroyData(); - - // Get test data for command input parameter(s) - TPtrC wsName; - RWsSession* ws=NULL; - if ( GetStringFromConfig(aSection, KFldWs, wsName) ) - { - ws = static_cast(GetDataObjectL(wsName)); - } - - TInt err=KErrNone; - if ( ws!=NULL ) - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute new CWsBitmap(RWsSession)")); - TRAP( err, iWsBitmap = new (ELeave) CWsBitmap(*ws)); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute new CWsBitmap()")); - TRAP( err, iWsBitmap = new (ELeave) CWsBitmap()); - } - - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - } - - -void CT_DataWsBitmap::DoCmdDestructor() - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute ~CWsBitmap()")); - delete iWsBitmap; - iWsBitmap=NULL; - } - - -void CT_DataWsBitmap::DoCmdCreate(const TDesC& aSection) - { - TBool dataOk=ETrue; - - // Get test data for command input parameter(s) - TSize datSizeInPixels; - if ( !GetSizeFromConfig(aSection, KFldSizeInPixels, datSizeInPixels) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldSizeInPixels); - SetBlockResult(EFail); - } - - TDisplayMode datDispMode; - if ( !CT_GraphicsUtil::ReadDisplayMode(*this, aSection, KFldDispMode, datDispMode) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldDispMode); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute Create(TSize, TDisplayMode)")); - TInt returnCode = iWsBitmap->Create (datSizeInPixels, datDispMode); - - // Check the command return code, if !=KErrNone then stop this command - if ( returnCode!=KErrNone ) - { - ERR_PRINTF2(KLogError, returnCode); - SetError(returnCode); - } - } - } - - -void CT_DataWsBitmap::DoCmdDuplicateL(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CFbsBitmap::Duplicate()")); - TInt handle=GetHandle(); - TPtrC objectName; - if ( GetStringFromConfig(aSection, KFldHandle_Name(), objectName) ) - { - CDataWrapperBase* wrapper=static_cast(GetDataWrapperL(objectName)); - handle=wrapper->GetHandle(); - } - else - { - GetIntFromConfig(aSection, KFldHandle(), handle); - } - - // call Duplicate() - TInt err = iWsBitmap->Duplicate(handle); - if (err != KErrNone) - { - ERR_PRINTF2(_L("Duplicate error: %d"), err); - SetError(err); - } - } - - -void CT_DataWsBitmap::DoCmdLoad(const TDesC& aSection) - { - TBool dataOk=ETrue; - - // Get test data for command input parameter(s) - TPtrC datFileName; - if ( !GetStringFromConfig(aSection, KFldFileName, datFileName) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldFileName); - SetBlockResult(EFail); - } - - TInt datId; - if ( !GetIntFromConfig(aSection, KFldId, datId) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldId); - SetBlockResult(EFail); - } - - TBool datShareIfLoaded; - if ( !GetBoolFromConfig(aSection, KFldShareIfLoaded, datShareIfLoaded) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldShareIfLoaded); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute Load(TDesC, TInt32, TBool)")); - TInt returnCode = iWsBitmap->Load(datFileName, datId, datShareIfLoaded); - - // Check the command return code, if !=KErrNone then stop this command - if ( returnCode!=KErrNone ) - { - ERR_PRINTF2(KLogError, returnCode); - SetError(returnCode); - } - } - } - - -void CT_DataWsBitmap::DoCmdInternalizeL(const TDesC& aSection) - { - // Get test data for command input parameter(s) - TBool datUseClosedStream=EFalse; - GetBoolFromConfig(aSection, KFldUseClosedStream, datUseClosedStream); - - TPtrC datFileName; - if ( !GetStringFromConfig(aSection, KFldFileName, datFileName) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldUseClosedStream); - SetBlockResult(EFail); - } - else - { - CDirectFileStore* readstore = CDirectFileStore::OpenL(FileServer(), datFileName, EFileStream | EFileRead); - CleanupStack::PushL(readstore); - TInt popCount=1; - - TStreamId headerid = readstore->Root(); - RStoreReadStream readstrm; - if ( !datUseClosedStream ) - { - readstrm.OpenL(*readstore, headerid); - CleanupClosePushL(readstrm); - popCount=2; - } - - // Execute command and log parameters - INFO_PRINTF1(_L("execute InternalizeL(RReadStream)")); - TRAPD(err, iWsBitmap->InternalizeL(readstrm)); - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - - // Cleanup - CleanupStack::PopAndDestroy(popCount, readstore); - } - } - - -void CT_DataWsBitmap::DoCmdReset() - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute Reset()")); - iWsBitmap->Reset(); - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/src/T_DataWsClientClass.cpp --- a/graphicsapitest/graphicssvs/wserv/src/T_DataWsClientClass.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,94 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -#include "T_DataWsClientClass.h" - -/*@{*/ -//Commands -_LIT(KCmdWsHandle, "WsHandle"); - -// Fields -_LIT(KFldExpected, "expected"); -_LIT(KFldExpectNot, "expectnot"); - -/// Logging -_LIT(KLogNotExpectedValueInt, "'%S' is not as expected=%d, actual=%d"); -_LIT(KLogAsExpectedValueInt, "actual value as '%S'=%d"); -/*@}*/ - - -/** -* Process a command read from the ini file -* -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* @param aAsyncErrorIndex index of command. used for async calls -* -* @return ETrue if the command is processed -*/ -TBool CT_DataWsClientClass::DoCommandL(CDataWrapperBase& aDataWrapper, const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt /*aAsyncErrorIndex*/) - { - TBool ret = ETrue; - - if ( aCommand==KCmdWsHandle ) - { - DoCmdWsHandle(aDataWrapper, aSection); - } - else - { - ret=EFalse; - } - - return ret; - } - - -void CT_DataWsClientClass::DoCmdWsHandle(CDataWrapperBase& aDataWrapper, const TDesC& aSection) - { - // Execute command and log parameters - aDataWrapper.INFO_PRINTF1(_L("execute WsHandle()")); - TInt actualResult = GetClientClass()->WsHandle(); - - // Diaplay command return value, check if it matches the expected value - TInt expnotResult; - if ( aDataWrapper.GetIntFromConfig(aSection, KFldExpectNot, expnotResult) ) - { - if ( actualResult==expnotResult ) - { - aDataWrapper.ERR_PRINTF4(KLogNotExpectedValueInt, &KFldExpectNot, expnotResult, actualResult); - aDataWrapper.SetBlockResult(EFail); - } - else - { - aDataWrapper.INFO_PRINTF3(KLogAsExpectedValueInt, &KFldExpectNot, actualResult); - } - } - - TInt expectResult; - if ( aDataWrapper.GetIntFromConfig(aSection, KFldExpected, expectResult) ) - { - if ( actualResult!=expectResult ) - { - aDataWrapper.ERR_PRINTF4(KLogNotExpectedValueInt, &KFldExpected, expectResult, actualResult); - aDataWrapper.SetBlockResult(EFail); - } - else - { - aDataWrapper.INFO_PRINTF3(KLogAsExpectedValueInt, &KFldExpected, actualResult); - } - } - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/src/T_DataWsEvent.cpp --- a/graphicsapitest/graphicssvs/wserv/src/T_DataWsEvent.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,557 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -#include "T_DataWsEvent.h" -#include "T_GraphicsUtil.h" - -/*@{*/ -/// Commands -_LIT(KCmdnew, "new"); -_LIT(KCmdDestructor, "~"); -_LIT(KCmdErrorMessage, "ErrorMessage"); -_LIT(KCmdEventData, "EventData"); -_LIT(KCmdHandle, "Handle"); -_LIT(KCmdInt, "Int"); -_LIT(KCmdKey, "Key"); -_LIT(KCmdModifiersChanged, "ModifiersChanged"); -_LIT(KCmdPointer, "Pointer"); -_LIT(KCmdSetHandle, "SetHandle"); -_LIT(KCmdSetTimeNow, "SetTimeNow"); -_LIT(KCmdSetType, "SetType"); -_LIT(KCmdTime, "Time"); -_LIT(KCmdType, "Type"); -_LIT(KCmdVisibilityChanged, "VisibilityChanged"); - -/// Fields -_LIT(KFldExpected, "expected"); -_LIT(KFldType, "type"); -_LIT(KFldError, "error"); -_LIT(KFldErrorCategory, "errorcategory"); -_LIT(KFldExpectedCategory, "expectedcategory"); -_LIT(KFldExpectedError, "expectederror"); -_LIT(KFldExpected_Code, "expected_code"); -_LIT(KFldExpected_ChangedModifier, "expected_changedmodifier"); -_LIT(KFldExpected_Modifier, "expected_modifier"); -_LIT(KFldExpected_Repeats, "expected_repeats"); -_LIT(KFldExpected_ScanCode, "expected_scancode"); -_LIT(KFldExpected_Type, "expected_type"); -_LIT(KFldExpected_Pos, "expected_pos"); -_LIT(KFldHandle, "handle"); -_LIT(KFldNew_Value, "new_value"); -_LIT(KFldUseConst, "useconst"); - -/// Logging -_LIT(KLogMissingParameter, "Missing parameter %S"); -_LIT(KLogMissingExpectedValue, "Missing expected value '%S'"); -_LIT(KLogNotExpectedValue, "Not expected value"); -_LIT(KLogNotExpectedValueInt, "'%S' is not as expected=%d, actual=%d"); -_LIT(KLogNotExpectedValueHex, "'%S' is not as expected=0x%x, actual=0x%x"); -/*@}*/ - -////////////////////////////////////////////////////////////////////// -// Construction/Destruction -////////////////////////////////////////////////////////////////////// - -CT_DataWsEvent* CT_DataWsEvent::NewL() -/** - * Two phase constructor - */ - { - CT_DataWsEvent* ret=new (ELeave) CT_DataWsEvent(); - CleanupStack::PushL(ret); - ret->ConstructL(); - CleanupStack::Pop(ret); - return ret; - } - -CT_DataWsEvent::CT_DataWsEvent() -/** - * Protected constructor. First phase construction - */ -: CDataWrapperBase() -, iWsEvent(NULL) - { - } - -void CT_DataWsEvent::ConstructL() -/** - * Second phase construction - */ - { - } - -CT_DataWsEvent::~CT_DataWsEvent() -/** - * Public destructor - */ - { - DestroyData(); - } - -TAny* CT_DataWsEvent::GetObject() -/** - * Return a pointer to the object that the data wraps - * - * @return pointer to the object that the data wraps - */ - { - return iWsEvent; - } - -void CT_DataWsEvent::SetObjectL(TAny* aAny) -/** - * Set the object that the data wraps - * - * @param aObject object that the wrapper is testing - * - */ - { - DestroyData(); - iWsEvent = static_cast (aAny); - } - -void CT_DataWsEvent::DisownObjectL() -/** - * The object will no longer be owned by this - * - * @leave KErrNotSupported if the the function is not supported - */ - { - iWsEvent = NULL; - } - -void CT_DataWsEvent::DestroyData() - { - delete iWsEvent; - iWsEvent=NULL; - } - -/** -* Process a command read from the ini file -* -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* @param aAsyncErrorIndex index of command. used for async calls -* -* @return ETrue if the command is processed -*/ -TBool CT_DataWsEvent::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt /*aAsyncErrorIndex*/) - { - TBool ret = ETrue; - if ( aCommand==KCmdnew ) - { - DoCmdnew(); - } - else if ( aCommand==KCmdDestructor ) - { - DestroyData(); - } - else if ( aCommand==KCmdErrorMessage ) - { - DoCmdErrorMessage(aSection); - } - else if ( aCommand==KCmdEventData ) - { - DoCmdEventData(aSection); - } - else if ( aCommand==KCmdHandle ) - { - DoCmdHandle(aSection); - } - else if ( aCommand==KCmdInt ) - { - DoCmdInt(aSection); - } - else if ( aCommand==KCmdKey ) - { - DoCmdKey(aSection); - } - else if ( aCommand==KCmdModifiersChanged ) - { - DoCmdModifiersChanged(aSection); - } - else if ( aCommand==KCmdPointer ) - { - DoCmdPointer(aSection); - } - else if ( aCommand==KCmdSetHandle ) - { - DoCmdSetHandle(aSection); - } - else if ( aCommand==KCmdSetTimeNow ) - { - DoCmdSetTimeNow(); - } - else if ( aCommand==KCmdSetType ) - { - DoCmdSetType(aSection); - } - else if ( aCommand==KCmdTime ) - { - DoCmdTime(); - } - else if ( aCommand==KCmdType ) - { - DoCmdType(aSection); - } - else if ( aCommand==KCmdVisibilityChanged ) - { - DoCmdVisibilityChanged(aSection); - } - else - { - ret=EFalse; - } - - return ret; - } - -void CT_DataWsEvent::DoCmdnew() - { - INFO_PRINTF1(_L("new TWsEvent()")); - DestroyData(); - TRAPD(err, iWsEvent = new (ELeave) TWsEvent()); - if(err != KErrNone) - { - ERR_PRINTF2(_L("**** TWsEvent Constructor failed with error %d"), err); - SetError(err); - } - } - -void CT_DataWsEvent::DoCmdErrorMessage(const TDesC& aSection) - { - const TWsEvent* wsEvent=iWsEvent; - TWsErrorMessage* actual=wsEvent->ErrorMessage(); - INFO_PRINTF3(_L("ErrorMessage: Category %d. Error %d"), actual->iErrorCategory, actual->iError); - - TWsErrorMessage expected; - if ( CT_GraphicsUtil::ReadErrorCategory(*this, aSection, KFldExpectedCategory(), expected.iErrorCategory) ) - { - if ( actual->iErrorCategory!=expected.iErrorCategory ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - - TWsErrorMessage::TErrorCategory expectedError; - if ( CT_GraphicsUtil::ReadErrorCategory(*this, aSection, KFldExpectedError(), expectedError) ) - { - if ( actual->iErrorCategory!=expectedError ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - - CT_GraphicsUtil::ReadErrorCategory(*this, aSection, KFldErrorCategory(), actual->iErrorCategory); - - TInt error; - if ( GetIntFromConfig(aSection, KFldError(), error) ) - { - actual->iError=(TUint)error; - } - } - -void CT_DataWsEvent::DoCmdEventData(const TDesC& aSection) - { - TBuf tempStore; - - TUint8* actual=iWsEvent->EventData(); - INFO_PRINTF2(_L("EventData: FirstByte %d"), *actual); - - TInt index=0; - for ( index=0; indexSetHandle((TUint)handle); - } - } - -void CT_DataWsEvent::DoCmdHandle(const TDesC& aSection) - { - TUint actual=iWsEvent->Handle(); - INFO_PRINTF2(_L("Handle() actual=%d"), actual); - SetHandle(actual); - - TInt expected; - if ( !GetIntFromConfig(aSection, KFldExpected(), expected) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldExpected()); - SetBlockResult(EFail); - } - else - { - if ( expected!=(TInt)actual ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - -void CT_DataWsEvent::DoCmdSetType(const TDesC& aSection) - { - TEventCode eventCode; - if ( !CT_GraphicsUtil::ReadEventCode(*this, aSection, KFldType(), eventCode) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldType()); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("SetType()")); - iWsEvent->SetType(eventCode); - } - } - -void CT_DataWsEvent::DoCmdType(const TDesC& aSection) - { - TInt actual=iWsEvent->Type(); - INFO_PRINTF2(_L("Type() actual Type:%d"), actual); - - TEventCode expected; - if ( !CT_GraphicsUtil::ReadEventCode(*this, aSection, KFldExpected(), expected) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldExpected()); - SetBlockResult(EFail); - } - else - { - if ( actual!=expected ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - -void CT_DataWsEvent::DoCmdVisibilityChanged(const TDesC& aSection) - { - const TWsVisibilityChangedEvent* actual=NULL; - - TBool useConst=EFalse; - GetBoolFromConfig(aSection, KFldUseConst(), useConst); - if ( useConst ) - { - INFO_PRINTF1(_L("const VisibilityChanged")); - const TWsEvent* wsEvent=iWsEvent; - actual=wsEvent->VisibilityChanged(); - } - else - { - INFO_PRINTF1(_L("VisibilityChanged")); - TWsVisibilityChangedEvent* actualNonConst=iWsEvent->VisibilityChanged(); - actual=actualNonConst; - } - INFO_PRINTF2(_L("VisibilityChanged:%d"), actual->iFlags); - - TWsVisibilityChangedEvent expected; - if ( CT_GraphicsUtil::ReadWsVisibilityChangedEvent(*this, aSection, KFldExpected(), expected) ) - { - if ( actual->iFlags!=expected.iFlags ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - -void CT_DataWsEvent::DoCmdSetTimeNow() - { - INFO_PRINTF1(_L("SetTimeNow()")); - iWsEvent->SetTimeNow(); - } - -void CT_DataWsEvent::DoCmdTime() - { - INFO_PRINTF1(_L("Time()")); - TTime eventTime=iWsEvent->Time(); - - TDateTime dateTime = eventTime.DateTime(); - INFO_PRINTF4(_L("Time() returned %d/%d/%d"), dateTime.Year(), dateTime.Month(), dateTime.Day()); - INFO_PRINTF5(_L("Time() returned %d:%d:%d.%d"), dateTime.Hour(), dateTime.Minute(), dateTime.Second(), dateTime.MicroSecond()); - } - -void CT_DataWsEvent::DoCmdInt(const TDesC& aSection) - { - TInt* actual=iWsEvent->Int(); - INFO_PRINTF2(_L("Int:0x%x"), *actual); - - TInt expected; - if ( GetIntFromConfig(aSection, KFldExpected(), expected) ) - { - if ( *actual!=expected ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - - GetIntFromConfig(aSection, KFldNew_Value(), *actual); - } - -void CT_DataWsEvent::DoCmdKey(const TDesC& aSection) - { - INFO_PRINTF1(_L("Key()")); - TKeyEvent* eventKey=iWsEvent->Key(); - - TKeyCode keyCode; - if ( CT_GraphicsUtil::ReadKeyCode(*this, aSection, KFldExpected_Code, keyCode) ) - { - if ( (TUint)keyCode != eventKey->iCode ) - { - ERR_PRINTF4(KLogNotExpectedValueInt, &KFldExpected_Code, keyCode, eventKey->iCode); - SetBlockResult(EFail); - } - } - else - { - ERR_PRINTF2(KLogMissingExpectedValue, &KFldExpected_Code); - SetBlockResult(EFail); - } - - TStdScanCode scanCode; - if ( CT_GraphicsUtil::ReadStdScanCode(*this, aSection, KFldExpected_ScanCode, scanCode) ) - { - if ( scanCode != eventKey->iScanCode ) - { - ERR_PRINTF4(KLogNotExpectedValueInt, &KFldExpected_ScanCode, scanCode, eventKey->iScanCode); - SetBlockResult(EFail); - } - } - - TUint modifiers; - if ( CT_GraphicsUtil::ReadEventModifier(*this, aSection, KFldExpected_Modifier, modifiers) ) - { - if ( modifiers != eventKey->iModifiers ) - { - ERR_PRINTF4(KLogNotExpectedValueInt, &KFldExpected_Modifier, modifiers, eventKey->iModifiers); - SetBlockResult(EFail); - } - } - - TInt repeats; - if ( GetIntFromConfig(aSection, KFldExpected_Repeats, repeats) ) - { - if ( repeats != eventKey->iRepeats ) - { - ERR_PRINTF4(KLogNotExpectedValueInt, &KFldExpected_Repeats, repeats, eventKey->iRepeats); - SetBlockResult(EFail); - } - } - } - -void CT_DataWsEvent::DoCmdModifiersChanged(const TDesC& aSection) - { - INFO_PRINTF1(_L("ModifiersChanged()")); - TModifiersChangedEvent* event=iWsEvent->ModifiersChanged(); - INFO_PRINTF3(_L("TModifiersChangedEvent: iChangedModifiers=0x%x iModifiers=0x%x"), event->iChangedModifiers, event->iModifiers); - - TUint changedModifiers; - if ( CT_GraphicsUtil::ReadEventModifier(*this, aSection, KFldExpected_ChangedModifier, changedModifiers) ) - { - if ( changedModifiers!=event->iChangedModifiers ) - { - ERR_PRINTF4(KLogNotExpectedValueHex, &KFldExpected_Modifier, changedModifiers, event->iChangedModifiers); - SetBlockResult(EFail); - } - } - - TUint modifiers; - if ( CT_GraphicsUtil::ReadEventModifier(*this, aSection, KFldExpected_Modifier, modifiers) ) - { - if ( modifiers!=(event->iModifiers&event->iChangedModifiers) ) - { - ERR_PRINTF4(KLogNotExpectedValueHex, &KFldExpected_Modifier, modifiers, event->iModifiers); - SetBlockResult(EFail); - } - } - } - -void CT_DataWsEvent::DoCmdPointer(const TDesC& aSection) - { - INFO_PRINTF1(_L("Pointer()")); - TPointerEvent* actual=iWsEvent->Pointer(); - INFO_PRINTF2(_L("iType =%d"), actual->iType); - INFO_PRINTF2(_L("iModifiers =0x%x"), actual->iModifiers); - INFO_PRINTF3(_L("iPosition =(%d,%d)"), actual->iPosition.iX, actual->iPosition.iY); - INFO_PRINTF3(_L("iParentPosition =(%d,%d)"), actual->iParentPosition.iX, actual->iParentPosition.iY); - - TPointerEvent::TType expectedType; - if ( CT_GraphicsUtil::ReadType(*this, aSection, KFldExpected_Type, expectedType) ) - { - if ( actual->iType!=expectedType ) - { - ERR_PRINTF4(KLogNotExpectedValueHex, &KFldExpected_Type, expectedType, actual->iType); - SetBlockResult(EFail); - } - } - - TUint modifiers; - if ( CT_GraphicsUtil::ReadEventModifier(*this, aSection, KFldExpected_Modifier, modifiers) ) - { - if ( modifiers!=(actual->iModifiers&actual->iType) ) - { - ERR_PRINTF4(KLogNotExpectedValueHex, &KFldExpected_Modifier, modifiers, actual->iModifiers); - SetBlockResult(EFail); - } - } - - TPoint position; - if ( GetPointFromConfig(aSection, KFldExpected_Pos, position) ) - { - if ( position!=actual->iPosition ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/src/T_DataWsGraphic.cpp --- a/graphicsapitest/graphicssvs/wserv/src/T_DataWsGraphic.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,251 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -#include "T_DataWsGraphic.h" - -/*@{*/ -//Commands -_LIT(KCmdDestructor, "~CWsGraphic"); -_LIT(KCmdDestroy, "Destroy"); -_LIT(KCmdId, "Id"); -_LIT(KCmdIsActive, "IsActive"); -_LIT(KCmdShare, "Share"); -_LIT(KCmdShareGlobally, "ShareGlobally"); -_LIT(KCmdUnShare, "UnShare"); -_LIT(KCmdUnShareGlobally, "UnShareGlobally"); - -/// Fields -_LIT(KFldClientId, "clientid"); -_LIT(KFldExpected, "expected"); -_LIT(KFldExpectNot, "expectnot"); - -/// Logging -_LIT(KLogError, "Error=%d"); -_LIT(KLogMissingParameter, "Missing parameter '%S'"); -_LIT(KLogNotExpectedValue, "Not expected value"); -/*@}*/ - -////////////////////////////////////////////////////////////////////// -// Construction/Destruction -////////////////////////////////////////////////////////////////////// - -CT_DataWsGraphic::CT_DataWsGraphic() -: CDataWrapperBase() - { - } - -/** -* Process a command read from the ini file -* -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* @param aAsyncErrorIndex index of command. used for async calls -* -* @return ETrue if the command is processed -*/ -TBool CT_DataWsGraphic::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt /*aAsyncErrorIndex*/) - { - TBool ret = ETrue; - - if ( aCommand==KCmdDestructor ) - { - DoCmdDestructorL(); - } - else if ( aCommand==KCmdDestroy ) - { - DoCmdDestroy(); - } - else if ( aCommand==KCmdId ) - { - DoCmdIdL(aSection); - } - else if ( aCommand==KCmdIsActive ) - { - DoCmdIsActive(aSection); - } - else if ( aCommand==KCmdShare ) - { - DoCmdShare(aSection); - } - else if ( aCommand==KCmdShareGlobally ) - { - DoCmdShareGlobally(); - } - else if ( aCommand==KCmdUnShare ) - { - DoCmdUnShare(aSection); - } - else if ( aCommand==KCmdUnShareGlobally ) - { - DoCmdUnShareGlobally(); - } - else - { - ret=EFalse; - } - - return ret; - } - -void CT_DataWsGraphic::DoCmdDestructorL() - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute ~CWsGraphic()")); - CWsGraphic* graphic=GetWsGraphic(); - CleanupStack::PushL(graphic); - DisownObjectL(); - CleanupStack::PopAndDestroy(graphic); - } - -void CT_DataWsGraphic::DoCmdDestroy() - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute Destroy()")); - GetWsGraphic()->Destroy(); - } - -void CT_DataWsGraphic::DoCmdIdL(const TDesC& aSection) - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute Id()")); - const TWsGraphicId& actual=GetWsGraphic()->Id(); - SetId(actual); - INFO_PRINTF3(_L("GetWsGraphic() Uid=0x%x Id=0x%x"), actual.Uid().iUid, actual.Id()); - - // Diaplay command return value, check if it matches the expected value - TWsGraphicId expected(0); - if ( GetWsGraphicIdFromConfigL(aSection, KFldExpectNot, expected) ) - { - if ( actual.Id()==expected.Uid().iUid ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - else - { - if ( !GetWsGraphicIdFromConfigL(aSection, KFldExpected, expected) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldExpectNot); - ERR_PRINTF2(KLogMissingParameter, &KFldExpected); - SetBlockResult(EFail); - } - else - { - if ( actual.Uid()!=expected.Uid() ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - } - -void CT_DataWsGraphic::DoCmdIsActive(const TDesC& aSection) - { - // Execute command and log parameters - TBool actual=GetWsGraphic()->IsActive(); - INFO_PRINTF2(_L("execute IsActive()=%d"), actual); - - // Diaplay command return value, check if it matches the expected value - TBool expected; - if ( !GetBoolFromConfig(aSection, KFldExpected, expected) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldExpected()); - SetBlockResult(EFail); - } - else - { - if ( actual!=expected ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - -void CT_DataWsGraphic::DoCmdShare(const TDesC& aSection) - { - // Get test data for command input parameter(s) - TInt datId; - - if ( !GetIntFromConfig(aSection, KFldClientId, datId) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldClientId()); - SetBlockResult(EFail); - } - else - { - _LIT_SECURE_ID(datClientId, datId); - - // Execute command and log parameters - INFO_PRINTF1(_L("execute Share(TSecureId)")); - TInt err=Share(datClientId); - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - } - } - -void CT_DataWsGraphic::DoCmdShareGlobally() - { - INFO_PRINTF1(_L("execute ShareGlobally()")); - TInt err=ShareGlobally(); - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - } - -void CT_DataWsGraphic::DoCmdUnShare(const TDesC& aSection) - { - // Get test data for command input parameter(s) - TInt datId; - - if ( !GetIntFromConfig(aSection, KFldClientId, datId) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldClientId()); - SetBlockResult(EFail); - } - else - { - _LIT_SECURE_ID(datClientId, datId); - - // Execute command and log parameters - INFO_PRINTF1(_L("execute UnShare(TSecureId)")); - TInt err=UnShare(datClientId); - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - } - } - -void CT_DataWsGraphic::DoCmdUnShareGlobally() - { - INFO_PRINTF1(_L("execute UnShareGlobally()")); - TInt err=UnShareGlobally(); - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/src/T_DataWsGraphicAnimation.cpp --- a/graphicsapitest/graphicssvs/wserv/src/T_DataWsGraphicAnimation.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,262 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -#include "T_DataWsGraphicAnimation.h" - -/*@{*/ -/// Commands -_LIT(KCmdnew, "new"); -_LIT(KCmdIsPaused, "IsPaused"); -_LIT(KCmdIsPlaying, "IsPlaying"); -_LIT(KCmdIsStopped, "IsStopped"); -_LIT(KCmdIsStopping, "IsStopping"); -_LIT(KCmdLoops, "Loops"); -_LIT(KCmdPause, "Pause"); -_LIT(KCmdPlay, "Play"); -_LIT(KCmdStop, "Stop"); - -/// Fields -_LIT(KFldExpected, "expected"); -_LIT(KFldLoop, "loop"); -_LIT(KFldImmediately, "immediately"); - -/// Logging -_LIT(KLogError, "Error=%d"); -_LIT(KLogMissingParameter, "Missing parameter '%S'"); -_LIT(KLogNotExpectedValue, "Not expected value"); -/*@}*/ - -////////////////////////////////////////////////////////////////////// -// Construction/Destruction -////////////////////////////////////////////////////////////////////// - -CT_DataWsGraphicAnimation::CT_DataWsGraphicAnimation() -: CT_DataWsGraphicMsgFixedBase() -, iWsGraphicAnimation(NULL) - { - } - -CT_DataWsGraphicAnimation::~CT_DataWsGraphicAnimation() - { - DestroyData(); - } - -void CT_DataWsGraphicAnimation::DestroyData() - { - delete iWsGraphicAnimation; - iWsGraphicAnimation=NULL; - } - -/** - * Return a pointer to the object that the data wraps - * - * @return pointer to the object that the data wraps - */ -TAny* CT_DataWsGraphicAnimation::GetObject() - { - return iWsGraphicAnimation; - } - -TWsGraphicMsgFixedBase* CT_DataWsGraphicAnimation::GetWsGraphicMsgFixedBase() const - { - return iWsGraphicAnimation; - } - -/** -* Process a command read from the ini file -* -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* @param aAsyncErrorIndex index of command. used for async calls -* -* @return ETrue if the command is processed -*/ -TBool CT_DataWsGraphicAnimation::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex) - { - TBool ret=ETrue; - - if ( aCommand==KCmdnew ) - { - DoCmdnew(); - } - else if ( aCommand==KCmdIsPaused ) - { - DoCmdIsPaused(aSection); - } - else if ( aCommand==KCmdIsPlaying ) - { - DoCmdIsPlaying(aSection); - } - else if ( aCommand==KCmdIsStopped ) - { - DoCmdIsStopped(aSection); - } - else if ( aCommand==KCmdIsStopping ) - { - DoCmdIsStopping(aSection); - } - else if ( aCommand==KCmdLoops ) - { - DoCmdLoops(aSection); - } - else if ( aCommand==KCmdPause ) - { - DoCmdPause(); - } - else if ( aCommand==KCmdPlay ) - { - DoCmdPlay(aSection); - } - else if ( aCommand==KCmdStop ) - { - DoCmdStop(aSection); - } - else - { - ret=CT_DataWsGraphicMsgFixedBase::DoCommandL(aCommand, aSection, aAsyncErrorIndex); - } - - return ret; - } - -void CT_DataWsGraphicAnimation::DoCmdnew() - { - INFO_PRINTF1(_L("execute new")); - DestroyData(); - TRAPD(err, iWsGraphicAnimation=new (ELeave) TWsGraphicAnimation()); - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - } - -void CT_DataWsGraphicAnimation::DoCmdIsPaused(const TDesC& aSection) - { - TBool actual=iWsGraphicAnimation->IsPaused(); - INFO_PRINTF2(_L("execute IsPaused() = %d"), actual); - - TBool expected; - if ( GetBoolFromConfig(aSection, KFldExpected, expected) ) - { - if ( expected!=actual ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - -void CT_DataWsGraphicAnimation::DoCmdIsPlaying(const TDesC& aSection) - { - TBool actual=iWsGraphicAnimation->IsPlaying(); - INFO_PRINTF2(_L("execute IsPlaying() = %d"), actual); - - TBool expected; - if ( GetBoolFromConfig(aSection, KFldExpected, expected) ) - { - if ( expected!=actual ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - -void CT_DataWsGraphicAnimation::DoCmdIsStopped(const TDesC& aSection) - { - TBool actual=iWsGraphicAnimation->IsStopped(); - INFO_PRINTF2(_L("execute IsStopped() = %d"), actual); - - TBool expected; - if ( GetBoolFromConfig(aSection, KFldExpected, expected) ) - { - if ( expected!=actual ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - -void CT_DataWsGraphicAnimation::DoCmdIsStopping(const TDesC& aSection) - { - TBool actual=iWsGraphicAnimation->IsStopping(); - INFO_PRINTF2(_L("execute IsStopping() = %d"), actual); - - TBool expected; - if ( GetBoolFromConfig(aSection, KFldExpected, expected) ) - { - if ( expected!=actual ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - -void CT_DataWsGraphicAnimation::DoCmdLoops(const TDesC& aSection) - { - TBool actual=iWsGraphicAnimation->Loops(); - INFO_PRINTF2(_L("execute Loops() = %d"), actual); - - TBool expected; - if ( GetBoolFromConfig(aSection, KFldExpected, expected) ) - { - if ( expected!=actual ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - -void CT_DataWsGraphicAnimation::DoCmdPause() - { - iWsGraphicAnimation->Pause(); - INFO_PRINTF1(_L("execute Pause()")); - } - -void CT_DataWsGraphicAnimation::DoCmdPlay(const TDesC& aSection) - { - TBool loop; - if ( !GetBoolFromConfig(aSection, KFldLoop, loop) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldLoop()); - SetBlockResult(EFail); - } - else - { - iWsGraphicAnimation->Play(loop); - INFO_PRINTF1(_L("execute Play(TBool)")); - } - } - -void CT_DataWsGraphicAnimation::DoCmdStop(const TDesC& aSection) - { - TBool immediately; - if ( !GetBoolFromConfig(aSection, KFldImmediately, immediately) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldImmediately()); - SetBlockResult(EFail); - } - else - { - iWsGraphicAnimation->Stop(immediately); - INFO_PRINTF1(_L("execute Stop(TBool)")); - } - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/src/T_DataWsGraphicBitmap.cpp --- a/graphicsapitest/graphicssvs/wserv/src/T_DataWsGraphicBitmap.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,186 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -#include "T_DataWsGraphicBitmap.h" -#include "T_GraphicsUtil.h" - -/*@{*/ -/// Commands -_LIT(KCmdNewL, "NewL"); -_LIT(KCmdDestructor, "~CWsGraphicBitmap"); -_LIT(KCmdDestructorGeneral, "~"); - -/// Fields -_LIT(KFldBitmap, "bitmap"); -_LIT(KFldMask, "mask"); -_LIT(KFldReplace, "replace"); -_LIT(KFldUid, "uid"); - -/// Logging -_LIT(KLogError, "Error=%d"); -/*@}*/ - -////////////////////////////////////////////////////////////////////// -// Construction/Destruction -////////////////////////////////////////////////////////////////////// - -CT_DataWsGraphicBitmap* CT_DataWsGraphicBitmap::NewL() - { - CT_DataWsGraphicBitmap* ret=new (ELeave) CT_DataWsGraphicBitmap(); - CleanupStack::PushL(ret); - ret->ConstructL(); - CleanupStack::Pop(ret); - return ret; - } - -CT_DataWsGraphicBitmap::CT_DataWsGraphicBitmap() -: CT_DataWsGraphic() -, iWsGraphicBitmap(NULL) - { - } - -void CT_DataWsGraphicBitmap::ConstructL() - { - } - -CT_DataWsGraphicBitmap::~CT_DataWsGraphicBitmap() - { - DestroyData(); - } - -void CT_DataWsGraphicBitmap::SetObjectL(TAny* aAny) - { - DestroyData(); - iWsGraphicBitmap = static_cast (aAny); - } - -void CT_DataWsGraphicBitmap::DisownObjectL() - { - iWsGraphicBitmap = NULL; - } - -void CT_DataWsGraphicBitmap::DestroyData() - { - delete iWsGraphicBitmap; - iWsGraphicBitmap=NULL; - } - -// CT_DataWsGraphic Implementation -CWsGraphic* CT_DataWsGraphicBitmap::GetWsGraphic() const - { - return iWsGraphicBitmap; - } - -TInt CT_DataWsGraphicBitmap::Share(TSecureId aClientId) - { - return iWsGraphicBitmap->Share(aClientId); - } - -TInt CT_DataWsGraphicBitmap::ShareGlobally() - { - return iWsGraphicBitmap->ShareGlobally(); - } - -TInt CT_DataWsGraphicBitmap::UnShare(TSecureId aClientId) - { - return iWsGraphicBitmap->UnShare(aClientId); - } - -TInt CT_DataWsGraphicBitmap::UnShareGlobally() - { - return iWsGraphicBitmap->UnShareGlobally(); - } - -/** - * Process a command read from the ini file - * - * @param aCommand the command to process - * @param aSection the entry in the ini file requiring the command to be processed - * @param aAsyncErrorIndex index of command. used for async calls - * - * @return ETrue if the command is processed - */ -TBool CT_DataWsGraphicBitmap::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex) - { - TBool ret = ETrue; - - if ( aCommand==KCmdDestructor || aCommand==KCmdDestructorGeneral ) - { - DoCmdDestructor(); - } - else if ( aCommand==KCmdNewL ) - { - DoCmdNewL(aSection); - } - else - { - ret=CT_DataWsGraphic::DoCommandL(aCommand, aSection, aAsyncErrorIndex); - } - - return ret; - } - -void CT_DataWsGraphicBitmap::DoCmdNewL(const TDesC& aSection) - { - DestroyData(); - - // Get test data for command input parameter(s) - CFbsBitmap* bitmap = NULL; - CT_GraphicsUtil::GetFbsBitmapL(*this, aSection, KFldBitmap, bitmap); - - CFbsBitmap* mask = NULL; - CT_GraphicsUtil::GetFbsBitmapL(*this, aSection, KFldMask, mask); - - TInt err=KErrNone; - - TInt datUid; - if ( GetIntFromConfig(aSection, KFldUid, datUid) ) - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute NewL(TUid , CFbsBitmap*, CFbsBitmap*)")); - TRAP(err, iWsGraphicBitmap = CWsGraphicBitmap::NewL(TUid::Uid(datUid), bitmap, mask)); - } - else - { - TWsGraphicId datReplace(TWsGraphicId::EUninitialized); - if ( GetWsGraphicIdFromConfigL(aSection, KFldReplace, datReplace) ) - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute NewL(TWsGraphicId , CFbsBitmap*, CFbsBitmap*)")); - TRAP(err, iWsGraphicBitmap = CWsGraphicBitmap::NewL(datReplace, bitmap, mask)); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute NewL(CFbsBitmap*, CFbsBitmap*)")); - TRAP(err, iWsGraphicBitmap = CWsGraphicBitmap::NewL(bitmap, mask)); - } - } - - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - } - -void CT_DataWsGraphicBitmap::DoCmdDestructor() - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute ~CWsGraphicBitmap()")); - DestroyData(); - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/src/T_DataWsGraphicBitmapAnimation.cpp --- a/graphicsapitest/graphicssvs/wserv/src/T_DataWsGraphicBitmapAnimation.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,303 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -#include "T_GraphicsUtil.h" -#include "T_DataWsGraphicBitmapAnimation.h" - -/*@{*/ -//Commands -_LIT(KCmdNew, "NewL"); -_LIT(KCmdDestroy, "~"); -_LIT(KCmdUtil_StartAnimTesterClientL, "Util_StartAnimTesterClientL"); -_LIT(KCmdUtil_CloseAnimTesterClientL, "Util_CloseAnimTesterClientL"); - -// Fields -_LIT(KFldFrameCount, "framescount"); -_LIT(KFldTFrame, "frame%d"); -_LIT(KFldUid, "uid"); -_LIT(KFldReplace, "replace"); -/// Logging -_LIT(KLogError, "Error=%d"); -_LIT(KLogMissingParameter, "Missing parameter '%S'"); - -_LIT(KLogNew, "execute CWsGraphicBitmapAnimation::NewL(const TFrames &aFrames)"); -_LIT(KLogNew2, "execute CWsGraphicBitmapAnimation::NewL(TUid aUid, const TFrames &aFrames)"); -_LIT(KLogNew3, "execute CWsGraphicBitmapAnimation::NewL(const TWsGraphicId &aReplace, const TFrames &aFrames)"); -_LIT(KLogUtil_StartAnimTesterClientL, "execute CWsGraphicBitmapAnimation::Util_StartAnimTesterClientL(const TDesC& aSection)"); -_LIT(KLogUtil_CloseAnimTesterClientL, "execute CWsGraphicBitmapAnimation::Util_CloseAnimTesterClientL()"); -/*@}*/ - -////////////////////////////////////////////////////////////////////// -// Construction/Destruction -////////////////////////////////////////////////////////////////////// - -CT_DataWsGraphicBitmapAnimation::CT_DataWsGraphicBitmapAnimation() -: CT_DataWsGraphic(),iWsGraphicBitmapAnimation(NULL) - { - } - -CT_DataWsGraphicBitmapAnimation* CT_DataWsGraphicBitmapAnimation::NewL() - { - CT_DataWsGraphicBitmapAnimation* ret=new (ELeave) CT_DataWsGraphicBitmapAnimation(); - CleanupStack::PushL(ret); - ret->ConstructL(); - CleanupStack::Pop(ret); - return ret; - } - -void CT_DataWsGraphicBitmapAnimation::ConstructL() - { - } - -CT_DataWsGraphicBitmapAnimation::~CT_DataWsGraphicBitmapAnimation() - { - DoCmdDestroy(); - } - -/** - * Called by TEF framework to set object. - * - * @param: None - * - * @return: None - */ -void CT_DataWsGraphicBitmapAnimation::SetObjectL(TAny* aAny) - { - DoCmdDestroy(); - iWsGraphicBitmapAnimation = static_cast (aAny); - } - -/** - * Called by TEF framework to disown the object. - * - * @param: None - * - * @return: None - */ -void CT_DataWsGraphicBitmapAnimation::DisownObjectL() - { - iWsGraphicBitmapAnimation = NULL; - } - -/** - * Destroy the object which has been constructed. - * - * @param: None - * - * @return: None - */ -void CT_DataWsGraphicBitmapAnimation::DoCmdDestroy() - { - delete iWsGraphicBitmapAnimation; - iWsGraphicBitmapAnimation = NULL; - } - -/** -* Process a command read from the ini file -* -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* @param aAsyncErrorIndex index of command. used for async calls -* -* @return ETrue if the command is processed -*/ -TBool CT_DataWsGraphicBitmapAnimation::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex) - { - TBool ret = ETrue; - - if ( aCommand==KCmdNew ) - { - DoCmdNewL(aSection); - } - else if ( aCommand==KCmdDestroy ) - { - DoCmdDestroy(); - } - else if ( aCommand==KCmdUtil_StartAnimTesterClientL ) - { - Util_StartAnimTesterClientL(aSection); - } - else if ( aCommand==KCmdUtil_CloseAnimTesterClientL ) - { - Util_CloseAnimTesterClientL(aSection); - } - else - { - ret=CT_DataWsGraphic::DoCommandL(aCommand,aSection,aAsyncErrorIndex); - } - - return ret; - } - -/** - * Process new command - * - * @param aSection the entry in the ini file requiring the command to be processed - * - * @return: None - */ -void CT_DataWsGraphicBitmapAnimation::DoCmdNewL(const TDesC& aSection) - { - TBool dataOk=ETrue; - RPointerArray frames; - - //CWsGraphicBitmapAnimation::TFrames frames; - TInt nFrameCount=0; - - if(!GetIntFromConfig(aSection,KFldFrameCount,nFrameCount)) - { - ERR_PRINTF2(KLogMissingParameter,KFldFrameCount); - SetBlockResult(EFail); - dataOk=EFalse; - } - else - { - RBuf info; - info.Create(256); - TPtrC framename; - for(TInt i=0;i(GetDataObjectL(framename))); - } - } - info.Close(); - } - - TInt err=KErrNone; - - if ( dataOk ) - { - TInt ndata; - TWsGraphicId datReplace(TWsGraphicId::EUninitialized); - if(GetIntFromConfig(aSection,KFldUid,ndata)) - { - // Execute command and log parameters - INFO_PRINTF1(KLogNew2); - TRAP( err, iWsGraphicBitmapAnimation=CWsGraphicBitmapAnimation::NewL(TUid::Uid(ndata),frames.Array())); - } - else if(GetWsGraphicIdFromConfigL(aSection, KFldReplace, datReplace)) - { - // Execute command and log parameters - INFO_PRINTF1(KLogNew3); - TRAP( err, iWsGraphicBitmapAnimation=CWsGraphicBitmapAnimation::NewL(datReplace,frames.Array())); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(KLogNew); - TRAP( err, iWsGraphicBitmapAnimation=CWsGraphicBitmapAnimation::NewL(frames.Array())); - } - } - - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - // No command return value and output parameter to display and check - } - -/** - * Process Util_StartAnimTesterClientL command - * - * @param aSection the entry in the ini file requiring the command to be processed - * - * @return: None - */ -void CT_DataWsGraphicBitmapAnimation::Util_StartAnimTesterClientL(const TDesC& aSection) - { - TInt dataOK; - TRAPD( err, dataOK = CT_GraphicsUtil::StartAnimTesterClientL(*this, aSection) ); - if( dataOK ) - { - if ( KErrNone == err ) - { - INFO_PRINTF1(KLogUtil_StartAnimTesterClientL); - } - else - { - ERR_PRINTF2(KLogError, err); - SetBlockResult(EFail); - } - } - else - { - ERR_PRINTF2(KLogMissingParameter, KLogUtil_StartAnimTesterClientL); - } - } - -/** - * Process Util_CloseAnimTesterClientL command - * - * @param: None - * - * @return: None - */ -void CT_DataWsGraphicBitmapAnimation::Util_CloseAnimTesterClientL(const TDesC& aSection) - { - TInt dataOK; - TRAPD( err, dataOK = CT_GraphicsUtil::CloseAnimTesterClientL(*this, aSection) ); - if( dataOK ) - { - if ( KErrNone == err ) - { - INFO_PRINTF1(KLogUtil_CloseAnimTesterClientL); - } - else - { - ERR_PRINTF2(KLogError, err); - SetBlockResult(EFail); - } - } - else - { - ERR_PRINTF2(KLogMissingParameter, KLogUtil_CloseAnimTesterClientL); - } - } - - -TInt CT_DataWsGraphicBitmapAnimation::ShareGlobally() - { - return iWsGraphicBitmapAnimation->ShareGlobally(); - } - -TInt CT_DataWsGraphicBitmapAnimation::UnShareGlobally() - { - return iWsGraphicBitmapAnimation->UnShareGlobally(); - } - - - TInt CT_DataWsGraphicBitmapAnimation::Share(TSecureId aClientId) - { - return iWsGraphicBitmapAnimation->Share(aClientId); - } - - - TInt CT_DataWsGraphicBitmapAnimation::UnShare(TSecureId aClientId) - { - return iWsGraphicBitmapAnimation->UnShare(aClientId); - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/src/T_DataWsGraphicFrameRate.cpp --- a/graphicsapitest/graphicssvs/wserv/src/T_DataWsGraphicFrameRate.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,99 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -#include "T_DataWsGraphicFrameRate.h" - -/*@{*/ -/// Commands -_LIT(KCmdnew, "new"); - -/// Logging -_LIT(KLogError, "Error=%d"); -/*@}*/ - -////////////////////////////////////////////////////////////////////// -// Construction/Destruction -////////////////////////////////////////////////////////////////////// - -CT_DataWsGraphicFrameRate::CT_DataWsGraphicFrameRate() -: CT_DataWsGraphicMsgFixedBase() -, iWsGraphicFrameRate(NULL) - { - } - -CT_DataWsGraphicFrameRate::~CT_DataWsGraphicFrameRate() - { - DestroyData(); - } - -void CT_DataWsGraphicFrameRate::DestroyData() - { - delete iWsGraphicFrameRate; - iWsGraphicFrameRate=NULL; - } - -/** - * Return a pointer to the object that the data wraps - * - * @return pointer to the object that the data wraps - */ -TAny* CT_DataWsGraphicFrameRate::GetObject() - { - return iWsGraphicFrameRate; - } - -TWsGraphicMsgFixedBase* CT_DataWsGraphicFrameRate::GetWsGraphicMsgFixedBase() const - { - return iWsGraphicFrameRate; - } - -/** -* Process a command read from the ini file -* -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* @param aAsyncErrorIndex index of command. used for async calls -* -* @return ETrue if the command is processed -*/ -TBool CT_DataWsGraphicFrameRate::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex) - { - TBool ret=ETrue; - - if ( aCommand==KCmdnew ) - { - DoCmdnew(); - } - else - { - ret=CT_DataWsGraphicMsgFixedBase::DoCommandL(aCommand, aSection, aAsyncErrorIndex); - } - - return ret; - } - -void CT_DataWsGraphicFrameRate::DoCmdnew() - { - INFO_PRINTF1(_L("execute new")); - DestroyData(); - TRAPD(err, iWsGraphicFrameRate=new (ELeave) TWsGraphicFrameRate()); - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/src/T_DataWsGraphicMsgBuf.cpp --- a/graphicsapitest/graphicssvs/wserv/src/T_DataWsGraphicMsgBuf.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,381 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -#include "T_DataWsGraphicMsgBuf.h" - -/*@{*/ -//Parameters -_LIT(KExpected, "expected"); -_LIT(KInputTypeId, "inputTypeId"); -_LIT(KInputText, "inputText"); -_LIT(KInputUseText8, "inputUseText8"); -_LIT(KInputMsgLen, "inputMsgLen"); -_LIT(KInputMsgPosition, "inputMsgPosition"); -_LIT(KInputFormat, "inputFormat"); - -//Commands -_LIT(KCmdnew, "new"); -_LIT(KCmdClose, "Close"); -_LIT(KCmdCleanupClosePushL, "CleanupClosePushL"); -_LIT(KCmdAppend, "Append"); -_LIT(KCmdRemove, "Remove"); -_LIT(KCmdCount, "Count"); -_LIT(KCmdTypeId, "TypeId"); -_LIT(KCmdData, "Data"); -_LIT(KCmdGetFixedMsg, "GetFixedMsg"); -_LIT(KCmdPckg, "Pckg"); -/*@}*/ - -////////////////////////////////////////////////////////////////////// -// Construction/Destruction -////////////////////////////////////////////////////////////////////// - -CT_DataWsGraphicMsgBuf* CT_DataWsGraphicMsgBuf::NewL() - { - CT_DataWsGraphicMsgBuf* ret=new (ELeave) CT_DataWsGraphicMsgBuf(); - CleanupStack::PushL(ret); - ret->ConstructL(); - CleanupStack::Pop(ret); - return ret; - } - -CT_DataWsGraphicMsgBuf::CT_DataWsGraphicMsgBuf() -: CDataWrapperBase() -, iWsGraphicMsgBuf(NULL) - { - } - -void CT_DataWsGraphicMsgBuf::ConstructL() - { - } - -CT_DataWsGraphicMsgBuf::~CT_DataWsGraphicMsgBuf() - { - DestroyData(); - } - -void CT_DataWsGraphicMsgBuf::SetObjectL(TAny* aAny) - { - DestroyData(); - iWsGraphicMsgBuf = static_cast (aAny); - } - -void CT_DataWsGraphicMsgBuf::DisownObjectL() - { - iWsGraphicMsgBuf = NULL; - } - -void CT_DataWsGraphicMsgBuf::DestroyData() - { - delete iWsGraphicMsgBuf; - iWsGraphicMsgBuf=NULL; - } - - -/** -* Process a command read from the ini file -* -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* @param aAsyncErrorIndex index of command. used for async calls -* -* @return ETrue if the command is processed -*/ -TBool CT_DataWsGraphicMsgBuf::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt /*aAsyncErrorIndex*/) - { - TBool ret = ETrue; - - if ( aCommand==KCmdnew ) - { - DoCmdnew(); - } - else if ( aCommand==KCmdClose ) - { - DoCmdClose(); - } - else if ( aCommand==KCmdCleanupClosePushL ) - { - DoCmdCleanupClosePushL(); - } - else if ( aCommand==KCmdAppend ) - { - DoCmdAppendL(aSection); - } - else if ( aCommand==KCmdRemove ) - { - DoCmdRemove(aSection); - } - else if ( aCommand==KCmdCount ) - { - DoCmdCount(aSection); - } - else if ( aCommand==KCmdTypeId ) - { - DoCmdTypeId(aSection); - } - else if ( aCommand==KCmdData ) - { - DoCmdDataL(aSection); - } - else if( aCommand==KCmdGetFixedMsg) - { - DoCmdGetFixedMsg(aSection); - } - else if ( aCommand==KCmdPckg ) - { - DoCmdPckg(); - } - else - { - ret=EFalse; - } - - return ret; - } - - -void CT_DataWsGraphicMsgBuf::DoCmdnew() - { - DestroyData(); - - TRAPD(err, iWsGraphicMsgBuf = new (ELeave) RWsGraphicMsgBuf()); - if(err != KErrNone) - { - ERR_PRINTF2(_L("**** RWsGraphicMsgBuf Constructor failed with error %d"), err); - SetError(err); - } - - INFO_PRINTF1(_L("RWsGraphicMsgBuf::RWsGraphicMsgBuf")); - } - -void CT_DataWsGraphicMsgBuf::DoCmdClose() - { - iWsGraphicMsgBuf->Close(); - INFO_PRINTF1(_L("RWsGraphicMsgBuf::Close")); - } - -void CT_DataWsGraphicMsgBuf::DoCmdCleanupClosePushL() - { - iWsGraphicMsgBuf->CleanupClosePushL(); - CleanupStack::PopAndDestroy(iWsGraphicMsgBuf); - INFO_PRINTF1(_L("RWsGraphicMsgBuf::CleanupClosePushL")); - } - -void CT_DataWsGraphicMsgBuf::DoCmdAppendL(const TDesC& aSection) - { - TInt err=KErrNone; - TInt inputTypeId=0; - if( GetIntFromConfig(aSection, KInputTypeId(), inputTypeId)) - { - TUid uid = TUid::Uid(inputTypeId); - TPtrC inputStr; - if( !GetStringFromConfig(aSection, KInputText(), inputStr) ) - { - ERR_PRINTF2(_L("Missing parameter %S"), &KInputText()); - SetBlockResult(EFail); - } - else - { - TBool useBuf8=EFalse; - GetBoolFromConfig(aSection, KInputUseText8(), useBuf8); - if ( useBuf8 ) - { - TInt inputMsgLen=0; - HBufC8* tempStr = HBufC8::NewLC(inputStr.Length()); - tempStr->Des().Copy(inputStr); - if( GetIntFromConfig(aSection, KInputMsgLen(), inputMsgLen)) - { - // Test iWsGraphicMsgBuf->Append(TUid aTypeId, TInt aLen, TPtr8 &aPtr); - TPtr8 tempInputStr(tempStr->Des()); - err = iWsGraphicMsgBuf->Append(uid, inputMsgLen, tempInputStr); - INFO_PRINTF1(_L("RWsGraphicMsgBuf::Append (TPtr8)")); - } - else - { - // Test iWsGraphicMsgBuf->Append(TUid aTypeId, const TDesC8 &aData); - err = iWsGraphicMsgBuf->Append(uid, *tempStr); - INFO_PRINTF1(_L("RWsGraphicMsgBuf::Append (TDesC8)")); - } - CleanupStack::PopAndDestroy(tempStr); - } - else - { - // Test iWsGraphicMsgBuf->Append(TUid aTypeId, const TDesC16 &aData); - err = iWsGraphicMsgBuf->Append(uid, inputStr); - INFO_PRINTF1(_L("RWsGraphicMsgBuf::Append (TDesC16)")); - } - } - } - else - { - TWsGraphicFrameRate frameRate; - err = iWsGraphicMsgBuf->Append(frameRate); - INFO_PRINTF1(_L("RWsGraphicMsgBuf::Append (TWsGraphicMsgFixedBase)")); - } - - if(err != KErrNone) - { - ERR_PRINTF2(_L("**** Append failed with error %d"), err); - SetError(err); - } - } - -void CT_DataWsGraphicMsgBuf::DoCmdRemove(const TDesC& aSection) - { - TInt inputMsgPosition=0; - if( GetIntFromConfig(aSection, KInputMsgPosition(), inputMsgPosition)) - { - iWsGraphicMsgBuf->Remove(inputMsgPosition); - INFO_PRINTF1(_L("RWsGraphicMsgBuf::Remove")); - } - else - { - ERR_PRINTF2(_L("Missing parameter %S"), &KInputMsgPosition()); - SetBlockResult(EFail); - } - } - -void CT_DataWsGraphicMsgBuf::DoCmdCount(const TDesC& aSection) - { - TInt actual = iWsGraphicMsgBuf->Count(); - INFO_PRINTF2(_L("RWsGraphicMsgBuf::Count = %d"), actual); - - TInt expected = 0; - if( GetIntFromConfig(aSection, KExpected(), expected)) - { - if( actual != expected ) - { - ERR_PRINTF1(_L("Count is not as expected!")); - SetBlockResult(EFail); - } - } - else - { - ERR_PRINTF2(_L("Missing parameter %S"), &KExpected()); - SetBlockResult(EFail); - } - } - -void CT_DataWsGraphicMsgBuf::DoCmdTypeId(const TDesC& aSection) - { - TInt inputMsgPosition=0; - if( GetIntFromConfig(aSection, KInputMsgPosition(), inputMsgPosition)) - { - TUid actual = iWsGraphicMsgBuf->TypeId(inputMsgPosition); - INFO_PRINTF2(_L("RWsGraphicMsgBuf::TypeId = %d"), actual.iUid); - - TInt expected = 0; - if( GetIntFromConfig(aSection, KExpected(), expected)) - { - TUid expectedUid = TUid::Uid(expected); - - if( actual != expectedUid ) - { - ERR_PRINTF1(_L("TypeId is not as expected!")); - SetBlockResult(EFail); - } - } - else - { - ERR_PRINTF2(_L("Missing parameter %S"), &KExpected()); - SetBlockResult(EFail); - } - } - else - { - ERR_PRINTF2(_L("Missing parameter %S"), &KInputMsgPosition()); - SetBlockResult(EFail); - } - } - -void CT_DataWsGraphicMsgBuf::DoCmdDataL(const TDesC& aSection) - { - TInt inputMsgPosition=0; - if( !GetIntFromConfig(aSection, KInputMsgPosition(), inputMsgPosition) ) - { - ERR_PRINTF2(_L("Missing parameter %S"), &KInputMsgPosition()); - SetBlockResult(EFail); - } - else - { - TPtrC format; - if( GetStringFromConfig(aSection, KInputFormat(), format) ) - { - // Test modifiable Data - TPtr8 actual=iWsGraphicMsgBuf->Data(inputMsgPosition); - HBufC* buffer=HBufC::NewLC(actual.Length()); - TPtr bufferPtr=buffer->Des(); - - bufferPtr.Copy(actual); - INFO_PRINTF1(_L("RWsGraphicMsgBuf::Data =")); - INFO_PRINTF1(bufferPtr); - bufferPtr.Format(format, &bufferPtr); - actual.Copy(bufferPtr); - CleanupStack::PopAndDestroy(buffer); - } - else - { - // Test non-modifiable Data - const RWsGraphicMsgBuf* wsGraphicMsgBuf=iWsGraphicMsgBuf; - TPtrC8 actual=wsGraphicMsgBuf->Data(inputMsgPosition); - HBufC* buffer=HBufC::NewLC(actual.Length()); - TPtr bufferPtr=buffer->Des(); - - bufferPtr.Copy(actual); - INFO_PRINTF1(_L("RWsGraphicMsgBuf::Data =")); - INFO_PRINTF1(bufferPtr); - TPtrC expected; - if( !GetStringFromConfig(aSection, KExpected(), expected) ) - { - ERR_PRINTF2(_L("Missing parameter %S"), &KInputMsgPosition()); - SetBlockResult(EFail); - } - else - { - if( bufferPtr!=expected ) - { - ERR_PRINTF1(_L("Data is not as expected!")); - SetBlockResult(EFail); - } - } - CleanupStack::PopAndDestroy(buffer); - } - } - } - -void CT_DataWsGraphicMsgBuf::DoCmdGetFixedMsg(const TDesC& aSection) - { - TInt inputMsgPosition=0; - if( GetIntFromConfig(aSection, KInputMsgPosition(), inputMsgPosition)) - { - TWsGraphicFrameRate frameRate; - iWsGraphicMsgBuf->GetFixedMsg(frameRate, inputMsgPosition); - INFO_PRINTF1(_L("RWsGraphicMsgBuf::GetFixedMsg")); - } - else - { - ERR_PRINTF2(_L("Missing parameter %S"), &KInputMsgPosition()); - SetBlockResult(EFail); - } - } - -void CT_DataWsGraphicMsgBuf::DoCmdPckg() - { - TBuf8 msg; - msg = iWsGraphicMsgBuf->Pckg(); - INFO_PRINTF1(_L("RWsGraphicMsgBuf::Pckg")); - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/src/T_DataWsGraphicMsgFixedBase.cpp --- a/graphicsapitest/graphicssvs/wserv/src/T_DataWsGraphicMsgFixedBase.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,115 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -#include "T_DataWsGraphicMsgFixedBase.h" - -/*@{*/ -/// Commands -_LIT(KCmdPckg, "Pckg"); -_LIT(KCmdSize, "Size"); -_LIT(KCmdTypeId, "TypeId"); - -// Fields -_LIT(KFldExpected, "expected"); - -/// Logging -_LIT(KLogNotExpectedValue, "Not expected value"); -/*@}*/ - -////////////////////////////////////////////////////////////////////// -// Construction/Destruction -////////////////////////////////////////////////////////////////////// - -CT_DataWsGraphicMsgFixedBase::CT_DataWsGraphicMsgFixedBase() -: CDataWrapperBase() - { - } - -CT_DataWsGraphicMsgFixedBase::~CT_DataWsGraphicMsgFixedBase() - { - } - -/** -* Process a command read from the ini file -* -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* @param aAsyncErrorIndex index of command. used for async calls -* -* @return ETrue if the command is processed -*/ -TBool CT_DataWsGraphicMsgFixedBase::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt /*aAsyncErrorIndex*/) - { - TBool ret=ETrue; - - if ( aCommand==KCmdPckg ) - { - DoCmdPckg(); - } - else if ( aCommand==KCmdSize ) - { - DoCmdSize(aSection); - } - else if ( aCommand==KCmdTypeId ) - { - DoCmdTypeId(aSection); - } - else - { - ret=EFalse; - } - - return ret; - } - -void CT_DataWsGraphicMsgFixedBase::DoCmdPckg() - { - INFO_PRINTF1(_L("execute Pckg()")); - iPckg.Set(GetWsGraphicMsgFixedBase()->Pckg()); - } - -void CT_DataWsGraphicMsgFixedBase::DoCmdSize(const TDesC& aSection) - { - TInt size=GetWsGraphicMsgFixedBase()->Size(); - INFO_PRINTF2(_L("execute Size() = %d"), size); - - TInt expected; - if ( GetIntFromConfig(aSection, KFldExpected, expected) ) - { - if ( expected!=size ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - -void CT_DataWsGraphicMsgFixedBase::DoCmdTypeId(const TDesC& aSection) - { - TUid uid=GetWsGraphicMsgFixedBase()->TypeId(); - INFO_PRINTF2(_L("execute TypeId() = 0x%x"), uid.iUid); - - TInt expected; - if ( GetHexFromConfig(aSection, KFldExpected, expected) ) - { - if ( expected!=uid.iUid ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/src/T_DataWsPointerCursor.cpp --- a/graphicsapitest/graphicssvs/wserv/src/T_DataWsPointerCursor.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,213 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -#include "T_GraphicsUtil.h" -#include "T_DataWsPointerCursor.h" - -/*@{*/ -//Commands -_LIT(KCmdNew, "new"); -_LIT(KCmdConstruct, "Construct"); - -// Fields -_LIT(KFldWs, "ws"); -_LIT(KFldFlag, "flag"); - -/// Logging -_LIT(KLogError, "Error=%d"); -_LIT(KLogMissingParameter, "Missing parameter '%S'"); - -_LIT(KLogConstruct, "execute Construct(TInt aFlags)"); -_LIT(KLogNew, "execute new RWsPointerCursor()"); -_LIT(KLogNew2, "execute new RWsPointerCursor(RWsSession)"); -/*@}*/ - -////////////////////////////////////////////////////////////////////// -// Construction/Destruction -////////////////////////////////////////////////////////////////////// - -CT_DataWsPointerCursor::CT_DataWsPointerCursor() -: CT_DataWsSpriteBase(),iWsPointerCursor(NULL) - { - } - -CT_DataWsPointerCursor* CT_DataWsPointerCursor::NewL() - { - CT_DataWsPointerCursor* ret=new (ELeave) CT_DataWsPointerCursor(); - CleanupStack::PushL(ret); - ret->ConstructL(); - CleanupStack::Pop(ret); - return ret; - } - -void CT_DataWsPointerCursor::ConstructL() - { - } - -CT_DataWsPointerCursor::~CT_DataWsPointerCursor() - { - DestroyData(); - } - -/** - * Called by TEF framework to set object. - * - * @param: None - * - * @return: None - */ -void CT_DataWsPointerCursor::SetObjectL(TAny* aAny) - { - DestroyData(); - iWsPointerCursor=static_cast (aAny); - } - -/** - * Called by TEF framework to disown the object. - * - * @param: None - * - * @return: None - */ -void CT_DataWsPointerCursor::DisownObjectL() - { - iWsPointerCursor=NULL; - } - -/** - * Destroy the object which has been constructed. - * - * @param: None - * - * @return: None - */ -void CT_DataWsPointerCursor::DestroyData() - { - delete iWsPointerCursor; - iWsPointerCursor=NULL; - } - - -/** -* Process a command read from the ini file -* -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* @param aAsyncErrorIndex index of command. used for async calls -* -* @return ETrue if the command is processed -*/ -TBool CT_DataWsPointerCursor::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex) - { - TBool ret=ETrue; - - if ( aCommand==KCmdNew ) - { - DoCmdNewL(aSection); - } - else if ( aCommand==KCmdConstruct ) - { - DoCmdConstructL(aSection); - } - else - { - ret=CT_DataWsSpriteBase::DoCommandL(aCommand,aSection,aAsyncErrorIndex); - } - - return ret; - } - -/** - * Process new command - * - * @param aSection the entry in the ini file requiring the command to be processed - * - * @return: None - */ -void CT_DataWsPointerCursor::DoCmdNewL(const TDesC& aSection) - { - TPtrC wsName; - RWsSession* ws=NULL; - - if ( GetStringFromConfig(aSection, KFldWs, wsName) ) - { - ws=static_cast(GetDataObjectL(wsName)); - } - - TInt err=KErrNone; - - if ( ws!=NULL ) - { - // Execute command and log parameters - INFO_PRINTF1(KLogNew2); - TRAP( err, iWsPointerCursor = new (ELeave) RWsPointerCursor(*ws)); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(KLogNew); - TRAP( err, iWsPointerCursor = new (ELeave) RWsPointerCursor()); - } - - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - // No command return value and output parameter to display and check - } - - -/** - * Process Construct command - * - * @param aSection the entry in the ini file requiring the command to be processed - * - * @return: None - */ -void CT_DataWsPointerCursor::DoCmdConstructL(const TDesC& aSection) - { - // Execute command and log parameters - INFO_PRINTF1(KLogConstruct); - TBool dataOk=ETrue; - - // Get test data for command input parameter(s) - TUint aSpriteFlags=0; - - if(!CT_GraphicsUtil::ReadSpriteFlags(*this,aSection,KFldFlag,aSpriteFlags)) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldFlag); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - // Execute command and log parameters - INFO_PRINTF1(KLogConstruct); - TInt returnCode=iWsPointerCursor->Construct(aSpriteFlags); - - // Check the command return code, if !=KErrNone then stop this command - if ( returnCode!=KErrNone ) - { - ERR_PRINTF2(KLogError, returnCode); - SetError(returnCode); - } - - // No command output parameter to display and check - } - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/src/T_DataWsPriorityKeyEvent.cpp --- a/graphicsapitest/graphicssvs/wserv/src/T_DataWsPriorityKeyEvent.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,234 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -#include "T_DataWsPriorityKeyEvent.h" -#include "T_GraphicsUtil.h" - -/*@{*/ -//Commands -_LIT(KCmdnew, "new"); -_LIT(KCmdDestructor, "~"); -_LIT(KCmdHandle, "Handle"); -_LIT(KCmdKey, "Key"); -_LIT(KCmdSetHandle, "SetHandle"); - -// Fields -_LIT(KFldExpected, "expected"); -_LIT(KFldExpected_Code, "expected_code"); -_LIT(KFldExpected_Modifier, "expected_modifier"); -_LIT(KFldExpected_Repeats, "expected_repeats"); -_LIT(KFldExpected_ScanCode, "expected_scancode"); -_LIT(KFldHandle, "handle"); - -/// Logging -_LIT(KLogError, "Error=%d"); -_LIT(KLogMissingParameter, "Missing parameter '%S'"); -_LIT(KLogMissingExpectedValue, "Missing expected value '%S'"); -_LIT(KLogNotExpectedValueInt, "'%S' is not as expected=%d, actual=%d"); -/*@}*/ - -////////////////////////////////////////////////////////////////////// -// Construction/Destruction -////////////////////////////////////////////////////////////////////// - -CT_DataWsPriorityKeyEvent* CT_DataWsPriorityKeyEvent::NewL() - { - CT_DataWsPriorityKeyEvent* ret=new (ELeave) CT_DataWsPriorityKeyEvent(); - CleanupStack::PushL(ret); - ret->ConstructL(); - CleanupStack::Pop(ret); - return ret; - } - -CT_DataWsPriorityKeyEvent::CT_DataWsPriorityKeyEvent() -: CDataWrapperBase() -, iWsPriorityKeyEvent(NULL) - { - } - -void CT_DataWsPriorityKeyEvent::ConstructL() - { - } - -CT_DataWsPriorityKeyEvent::~CT_DataWsPriorityKeyEvent() - { - DestroyData(); - } - -void CT_DataWsPriorityKeyEvent::SetObjectL(TAny* aAny) - { - DestroyData(); - iWsPriorityKeyEvent = static_cast (aAny); - } - -void CT_DataWsPriorityKeyEvent::DisownObjectL() - { - iWsPriorityKeyEvent = NULL; - } - -void CT_DataWsPriorityKeyEvent::DestroyData() - { - delete iWsPriorityKeyEvent; - iWsPriorityKeyEvent=NULL; - } - -/** -* Process a command read from the ini file -* -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* @param aAsyncErrorIndex index of command. used for async calls -* -* @return ETrue if the command is processed -*/ -TBool CT_DataWsPriorityKeyEvent::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt /*aAsyncErrorIndex*/) - { - TBool ret = ETrue; - if ( aCommand==KCmdnew ) - { - DoCmdnew(); - } - else if ( aCommand==KCmdDestructor ) - { - DestroyData(); - } - else if ( aCommand==KCmdHandle ) - { - DoCmdHandle(aSection); - } - else if ( aCommand==KCmdKey ) - { - DoCmdKey(aSection); - } - else if ( aCommand==KCmdSetHandle ) - { - DoCmdSetHandle(aSection); - } - else - { - ret=EFalse; - } - - return ret; - } - - - -void CT_DataWsPriorityKeyEvent::DoCmdnew() - { - DestroyData(); - INFO_PRINTF1(_L("execute new TWsPriorityKeyEvent()")); - TRAPD(err, iWsPriorityKeyEvent = new (ELeave) TWsPriorityKeyEvent()); - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - } - - -void CT_DataWsPriorityKeyEvent::DoCmdSetHandle(const TDesC& aSection) - { - TInt handle; - - if ( !GetIntFromConfig(aSection, KFldHandle(), handle) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldHandle); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("execute SetHandle(TUint)")); - iWsPriorityKeyEvent->SetHandle((TUint)handle); - } - } - - -void CT_DataWsPriorityKeyEvent::DoCmdHandle(const TDesC& aSection) - { - INFO_PRINTF1(_L("execute Handle()")); - TUint actual=iWsPriorityKeyEvent->Handle(); - SetHandle(actual); - - TInt expected; - if ( GetIntFromConfig(aSection, KFldExpected, expected) ) - { - if ( actual!= (TUint)expected ) - { - ERR_PRINTF4(KLogNotExpectedValueInt, &KFldExpected, expected, actual); - SetBlockResult(EFail); - } - } - else - { - ERR_PRINTF2(KLogMissingExpectedValue, &KFldExpected); - SetBlockResult(EFail); - } - } - - -void CT_DataWsPriorityKeyEvent::DoCmdKey(const TDesC& aSection) - { - INFO_PRINTF1(_L("execute Key()")); - TKeyEvent* eventKey=iWsPriorityKeyEvent->Key(); - - TKeyCode keyCode; - if ( CT_GraphicsUtil::ReadKeyCode(*this, aSection, KFldExpected_Code, keyCode) ) - { - if ( (TUint)keyCode != eventKey->iCode ) - { - ERR_PRINTF4(KLogNotExpectedValueInt, &KFldExpected_Code, keyCode, eventKey->iCode); - SetBlockResult(EFail); - } - } - else - { - ERR_PRINTF2(KLogMissingExpectedValue, &KFldExpected_Code); - SetBlockResult(EFail); - } - - TStdScanCode scanCode; - if ( CT_GraphicsUtil::ReadStdScanCode(*this, aSection, KFldExpected_ScanCode, scanCode) ) - { - if ( scanCode != eventKey->iScanCode ) - { - ERR_PRINTF4(KLogNotExpectedValueInt, &KFldExpected_ScanCode, scanCode, eventKey->iScanCode); - SetBlockResult(EFail); - } - } - - TUint modifiers; - if ( CT_GraphicsUtil::ReadEventModifier(*this, aSection, KFldExpected_Modifier, modifiers) ) - { - if ( modifiers != eventKey->iModifiers ) - { - ERR_PRINTF4(KLogNotExpectedValueInt, &KFldExpected_Modifier, modifiers, eventKey->iModifiers); - SetBlockResult(EFail); - } - } - - TInt repeats; - if ( GetIntFromConfig(aSection, KFldExpected_Repeats, repeats) ) - { - if ( repeats != eventKey->iRepeats ) - { - ERR_PRINTF4(KLogNotExpectedValueInt, &KFldExpected_Repeats, repeats, eventKey->iRepeats); - SetBlockResult(EFail); - } - } - } - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/src/T_DataWsRedrawEvent.cpp --- a/graphicsapitest/graphicssvs/wserv/src/T_DataWsRedrawEvent.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,176 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -#include "T_DataWsRedrawEvent.h" - -/*@{*/ -//Commands -_LIT(KCmdnew, "new"); -_LIT(KCmdDestructor, "~"); -_LIT(KCmdHandle, "Handle"); -_LIT(KCmdRect, "Rect"); - -/// Fields -_LIT(KFldExpected, "expected"); - -/// Logging -_LIT(KLogError, "Error=%d"); -_LIT(KLogMissingExpectedValue, "Missing expected value '%S'"); -_LIT(KLogNotAsExpectedValue, "'%S' is not as expected value"); -_LIT(KLogNotExpectedValueInt, "'%S' is not as expected=%d, actual=%d"); -/*@}*/ - -////////////////////////////////////////////////////////////////////// -// Construction/Destruction -////////////////////////////////////////////////////////////////////// - -CT_DataWsRedrawEvent* CT_DataWsRedrawEvent::NewL() - { - CT_DataWsRedrawEvent* ret=new (ELeave) CT_DataWsRedrawEvent(); - CleanupStack::PushL(ret); - ret->ConstructL(); - CleanupStack::Pop(ret); - return ret; - } - -CT_DataWsRedrawEvent::CT_DataWsRedrawEvent() -: CDataWrapperBase() -, iWsRedrawEvent(NULL) - { - } - -void CT_DataWsRedrawEvent::ConstructL() - { - } - -CT_DataWsRedrawEvent::~CT_DataWsRedrawEvent() - { - DestroyData(); - } - -void CT_DataWsRedrawEvent::SetObjectL(TAny* aAny) - { - DestroyData(); - iWsRedrawEvent = static_cast (aAny); - } - -void CT_DataWsRedrawEvent::DisownObjectL() - { - iWsRedrawEvent = NULL; - } - -void CT_DataWsRedrawEvent::DestroyData() - { - delete iWsRedrawEvent; - iWsRedrawEvent=NULL; - } - -/** -* Process a command read from the ini file -* -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* @param aAsyncErrorIndex index of command. used for async calls -* -* @return ETrue if the command is processed -*/ -TBool CT_DataWsRedrawEvent::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt /*aAsyncErrorIndex*/) - { - TBool ret = ETrue; - if ( aCommand==KCmdnew ) - { - DoCmdnew(); - } - else if ( aCommand==KCmdDestructor ) - { - DestroyData(); - } - else if ( aCommand==KCmdHandle ) - { - DoCmdHandle(aSection); - } - else if ( aCommand==KCmdRect ) - { - DoCmdRect(aSection); - } - else - { - ret=EFalse; - } - - return ret; - } - - -void CT_DataWsRedrawEvent::DoCmdnew() - { - DestroyData(); - INFO_PRINTF1(_L("execute new TWsRedrawEvent()")); - TRAPD(err, iWsRedrawEvent = new (ELeave) TWsRedrawEvent()); - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - } - - -void CT_DataWsRedrawEvent::DoCmdHandle(const TDesC& aSection) - { - INFO_PRINTF1(_L("execute Handle()")); - TUint actual=iWsRedrawEvent->Handle(); - SetHandle(actual); - - TInt expected; - if ( !GetIntFromConfig(aSection, KFldExpected, expected) ) - { - ERR_PRINTF2(KLogMissingExpectedValue, &KFldExpected); - SetBlockResult(EFail); - } - else - { - if ( actual!=(TUint)expected ) - { - ERR_PRINTF4(KLogNotExpectedValueInt, &KFldExpected, expected, actual); - SetBlockResult(EFail); - } - } - } - - -void CT_DataWsRedrawEvent::DoCmdRect(const TDesC& aSection) - { - INFO_PRINTF1(_L("execute Rect()")); - TRect actual=iWsRedrawEvent->Rect(); - LogRect(_L("Rect()"), actual); - - TRect expected; - if ( !GetRectFromConfig(aSection, KFldExpected, expected) ) - { - ERR_PRINTF2(KLogMissingExpectedValue, &KFldExpected); - SetBlockResult(EFail); - } - else - { - if ( actual!=expected ) - { - ERR_PRINTF2(KLogNotAsExpectedValue, &KFldExpected); - SetBlockResult(EFail); - } - } - } - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/src/T_DataWsScreenDevice.cpp --- a/graphicsapitest/graphicssvs/wserv/src/T_DataWsScreenDevice.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1523 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -#include "T_DataWsScreenDevice.h" -#include "T_GraphicsUtil.h" - -/*@{*/ -_LIT(KDataClassname, "CWsScreenDevice"); - -/// Fields -_LIT(KFldAlgStyle, "alg_style"); -_LIT(KFldBackLight, "backlight"); -_LIT(KFldBitmap, "bitmap"); -_LIT(KFldDefaultScreenNumber, "defaultscreennumber"); -_LIT(KFldExpected, "expected"); -_LIT(KFldExpectedCount, "expectedcount"); -_LIT(KFldFinish, "finish"); -_LIT(KFldFlags, "flags"); -_LIT(KFldFormatFieldNumber, "%S%d"); -_LIT(KFldFontUid, "font_uid"); -_LIT(KFldMode, "mode"); -_LIT(KFldPalette, "palette"); -_LIT(KFldPixel, "pixel"); -_LIT(KFldPixelSize, "pixelsize"); -_LIT(KFldRect, "rect"); -_LIT(KFldRect1, "rect1"); -_LIT(KFldRect2, "rect2"); -_LIT(KFldRotation, "rotation"); -_LIT(KFldStart, "start"); -_LIT(KFldTwips, "twips"); -_LIT(KFldTwipsSize, "twipssize"); -_LIT(KFldWindowGc, "windowgc"); -_LIT(KFldWs, "ws"); -_LIT(KFldFont, "font"); -_LIT(KFldContext, "context"); - -/// Commands -_LIT(KCmdnew, "new"); -_LIT(KCmddisown, "disown"); -_LIT(KCmdDestructor, "~CWsScreenDevice"); -_LIT(KCmdDestructorGeneral, "~"); -_LIT(KCmdConstruct, "Construct"); -_LIT(KCmdCopyScreenToBitmap, "CopyScreenToBitmap"); -_LIT(KCmdCreateContext, "CreateContext"); -_LIT(KCmdCurrentScreenMode, "CurrentScreenMode"); -_LIT(KCmdGetCurrentScreenModeScale, "GetCurrentScreenModeScale"); -_LIT(KCmdGetCurrentScreenModeScaledOrigin, "GetCurrentScreenModeScaledOrigin"); -_LIT(KCmdGetDefaultScreenModeOrigin, "GetDefaultScreenModeOrigin"); -_LIT(KCmdGetDefaultScreenSizeAndRotation, "GetDefaultScreenSizeAndRotation"); -_LIT(KCmdGetFontById, "GetFontById"); -_LIT(KCmdGetRotationsList, "GetRotationsList"); -_LIT(KCmdGetScreenModeDisplayMode, "GetScreenModeDisplayMode"); -_LIT(KCmdGetScreenModeOrigin, "GetScreenModeOrigin"); -_LIT(KCmdGetScreenModeScale, "GetScreenModeScale"); -_LIT(KCmdGetScreenModeScaledOrigin, "GetScreenModeScaledOrigin"); -_LIT(KCmdGetScreenModeSizeAndRotation, "GetScreenModeSizeAndRotation"); -_LIT(KCmdGetScreenNumber, "GetScreenNumber"); -_LIT(KCmdGetScreenSizeModeList, "GetScreenSizeModeList"); -_LIT(KCmdNumScreenModes, "NumScreenModes"); -_LIT(KCmdRectCompare, "RectCompare"); -_LIT(KCmdPointerRect, "PointerRect"); -_LIT(KCmdScreenModeEnforcement, "ScreenModeEnforcement"); -_LIT(KCmdSetAppScreenMode, "SetAppScreenMode"); -_LIT(KCmdSetBackLight, "SetBackLight"); -_LIT(KCmdSetCustomPalette, "SetCustomPalette"); -_LIT(KCmdSetScreenSizeAndRotation, "SetScreenSizeAndRotation"); - -_LIT(KCmdcheckPixels, "checkPixels"); -_LIT(KCmdcheckLineColor, "checkLineColor"); -_LIT(KCmdcheckRectColor, "checkRectColor"); - -_LIT(KFormatFieldNumber, "%S%d"); - -/// Logging -_LIT(KLogColor, "Color Red=%d Green=%d Blue=%d Alpha=%d"); -_LIT(KLogPoint, "Point X=%d Y=%d"); -_LIT(KLogError, "Error=%d"); -_LIT(KLogMissingParameter, "Missing parameter '%S'"); -_LIT(KLogNotExpectedValue, "Not expected value"); -/*@}*/ - -////////////////////////////////////////////////////////////////////// -// Construction/Destruction -////////////////////////////////////////////////////////////////////// - -CT_DataWsScreenDevice* CT_DataWsScreenDevice::NewL() -/** - * Two phase constructor - */ - { - CT_DataWsScreenDevice* ret=new (ELeave) CT_DataWsScreenDevice(); - CleanupStack::PushL(ret); - ret->ConstructL(); - CleanupStack::Pop(ret); - return ret; - } - -CT_DataWsScreenDevice::CT_DataWsScreenDevice() -/** - * Protected constructor. First phase construction - */ -: CT_DataBitmapDevice() -, iWsScreenDevice(NULL) - { - } - -void CT_DataWsScreenDevice::ConstructL() -/** - * Second phase construction - */ - { - } - -CT_DataWsScreenDevice::~CT_DataWsScreenDevice() -/** - * Public destructor - */ - { - DestroyData(); - } - -TAny* CT_DataWsScreenDevice::GetObject() -/** - * Return a pointer to the object that the data wraps - * - * @return pointer to the object that the data wraps - */ - { - return iWsScreenDevice; - } - -void CT_DataWsScreenDevice::SetObjectL(TAny* aAny) -/** - * Set the object that the data wraps - * - * @param aObject object that the wrapper is testing - * - */ - { - DestroyData(); - iWsScreenDevice = static_cast (aAny); - } - -void CT_DataWsScreenDevice::DisownObjectL() -/** - * The object will no longer be owned by this - * - * @leave KErrNotSupported if the the function is not supported - */ - { - iWsScreenDevice = NULL; - } - -void CT_DataWsScreenDevice::DestroyData() - { - delete iWsScreenDevice; - iWsScreenDevice=NULL; - } - -MWsClientClass* CT_DataWsScreenDevice::GetClientClass() const - { - return iWsScreenDevice; - } - -MGraphicsDeviceMap* CT_DataWsScreenDevice::GetGraphicsDeviceMap() const - { - return iWsScreenDevice; - } - -CGraphicsDevice* CT_DataWsScreenDevice::GetGraphicsDevice() const - { - return iWsScreenDevice; - } - -CBitmapDevice* CT_DataWsScreenDevice::GetBitmapDevice() const - { - return iWsScreenDevice; - } - - -/** -* Process a command read from the ini file -* -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* @param aAsyncErrorIndex index of command. used for async calls -* -* @return ETrue if the command is processed -*/ -TBool CT_DataWsScreenDevice::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex) - { - TBool ret = ETrue; - - if ( aCommand==KCmdDestructor || aCommand==KCmdDestructorGeneral ) - { - DoCmdDestructor(); - } - else if ( aCommand==KCmdnew || aCommand==KDataClassname ) - { - DoCmdnewL(aSection); - } - else if ( aCommand==KCmddisown ) - { - DisownObjectL(); - } - else if ( aCommand==KCmdConstruct ) - { - DoCmdConstruct(aSection); - } - else if ( aCommand==KCmdCopyScreenToBitmap ) - { - DoCmdCopyScreenToBitmapL(aSection); - } - else if ( aCommand==KCmdCreateContext ) - { - DoCmdCreateContextL(aSection); - } - else if ( aCommand==KCmdCurrentScreenMode ) - { - DoCmdCurrentScreenMode(aSection); - } - else if ( aCommand==KCmdGetCurrentScreenModeScale ) - { - DoCmdGetCurrentScreenModeScale(aSection); - } - else if ( aCommand==KCmdGetCurrentScreenModeScaledOrigin ) - { - DoCmdGetCurrentScreenModeScaledOrigin(aSection); - } - else if ( aCommand==KCmdGetDefaultScreenModeOrigin ) - { - DoCmdGetDefaultScreenModeOrigin(aSection); - } - else if ( aCommand==KCmdGetDefaultScreenSizeAndRotation ) - { - DoCmdGetDefaultScreenSizeAndRotation(aSection); - } - else if ( aCommand==KCmdGetFontById ) - { - DoCmdGetFontByIdL(aSection); - } - else if ( aCommand==KCmdGetRotationsList ) - { - DoCmdGetRotationsListL(aSection); - } - else if ( aCommand==KCmdGetScreenModeDisplayMode ) - { - DoCmdGetScreenModeDisplayMode(aSection); - } - else if ( aCommand==KCmdGetScreenModeOrigin ) - { - DoCmdGetScreenModeOrigin(aSection); - } - else if ( aCommand==KCmdGetScreenModeScale ) - { - DoCmdGetScreenModeScale(aSection); - } - else if ( aCommand==KCmdGetScreenModeScaledOrigin ) - { - DoCmdGetScreenModeScaledOrigin(aSection); - } - else if ( aCommand==KCmdGetScreenModeSizeAndRotation ) - { - DoCmdGetScreenModeSizeAndRotation(aSection); - } - else if ( aCommand==KCmdGetScreenNumber ) - { - DoCmdGetScreenNumber(aSection); - } - else if ( aCommand==KCmdGetScreenSizeModeList ) - { - DoCmdGetScreenSizeModeListL(aSection); - } - else if ( aCommand==KCmdNumScreenModes ) - { - DoCmdNumScreenModes(aSection); - } - else if ( aCommand==KCmdPointerRect ) - { - DoCmdPointerRect(aSection); - } - else if ( aCommand==KCmdRectCompare ) - { - DoCmdRectCompare(aSection); - } - else if ( aCommand==KCmdScreenModeEnforcement ) - { - DoCmdScreenModeEnforcement(aSection); - } - else if ( aCommand==KCmdSetAppScreenMode ) - { - DoCmdSetAppScreenMode(aSection); - } - else if ( aCommand==KCmdSetBackLight ) - { - DoCmdSetBackLight(aSection); - } - else if ( aCommand==KCmdSetCustomPalette ) - { - DoCmdSetCustomPaletteL(aSection); - } - else if ( aCommand==KCmdSetScreenSizeAndRotation ) - { - DoCmdSetScreenSizeAndRotation(aSection); - } - else if ( aCommand==KCmdcheckPixels ) - { - DoCmdcheckPixels(aSection); - } - else if ( aCommand==KCmdcheckLineColor ) - { - DoCmdcheckLineColor(aSection); - } - else if ( aCommand==KCmdcheckRectColor ) - { - DoCmdcheckRectColor(aSection); - } - else if ( CT_DataBitmapDevice::DoCommandL(aCommand, aSection, aAsyncErrorIndex) ) - { - } - else - { - ret=CT_DataWsClientClass::DoCommandL(*this, aCommand, aSection, aAsyncErrorIndex); - } - - return ret; - } - -/** -Test Constructor -*/ -void CT_DataWsScreenDevice::DoCmdnewL(const TDesC& aSection) - { - DestroyData(); - - // Get test data for command input parameter(s) - RWsSession* ws=NULL; - TPtrC wsName; - if ( GetStringFromConfig(aSection, KFldWs, wsName) ) - { - ws = static_cast(GetDataObjectL(wsName)); - } - - TInt err; - if ( ws!= NULL ) - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute new CWsScreenDevice(RWsSession)")); - TRAP( err, iWsScreenDevice = new (ELeave) CWsScreenDevice(*ws) ); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute new CWsScreenDevice()")); - TRAP(err, iWsScreenDevice = new (ELeave) CWsScreenDevice()); - } - - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - } - -/** -Test Destructor -*/ -void CT_DataWsScreenDevice::DoCmdDestructor() - { - INFO_PRINTF1(_L("execute ~CWsScreenDevice()")); - DestroyData(); - } - -/** -Test Construct() -*/ -void CT_DataWsScreenDevice::DoCmdConstruct(const TDesC& aSection) - { - // Get test data for command input parameter(s) - TInt err=KErrNone; - - TInt datDefaultScreenNumber; - if ( GetIntFromConfig(aSection, KFldDefaultScreenNumber, datDefaultScreenNumber) ) - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute Construct(TInt)")); - err=iWsScreenDevice->Construct(datDefaultScreenNumber); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute Construct()")); - err=iWsScreenDevice->Construct(); - } - - // Check the command return code. - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - } - -/** -Test CopyScreenToBitmap() -*/ -void CT_DataWsScreenDevice::DoCmdCopyScreenToBitmapL(const TDesC& aSection) - { - // Get test data for command input parameter(s) - CFbsBitmap* bitmap=NULL; - TBool hasBitmap=CT_GraphicsUtil::GetFbsBitmapL(*this, aSection, KFldBitmap, bitmap); - if ( !hasBitmap ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldBitmap); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - TInt err=KErrNone; - - TRect datRect; - if ( GetRectFromConfig(aSection, KFldRect, datRect) ) - { - INFO_PRINTF1(_L("execute CopyScreenToBitmap(CFbsBitmap, TRect)")); - err=iWsScreenDevice->CopyScreenToBitmap(bitmap, datRect); - } - else - { - INFO_PRINTF1(_L("execute CopyScreenToBitmap(CFbsBitmap)")); - err=iWsScreenDevice->CopyScreenToBitmap(bitmap); - } - - // Check the command return code. - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - } - } - -/** -Test CreateContext() -*/ -void CT_DataWsScreenDevice::DoCmdCreateContextL(const TDesC& aSection) - { - // Get test data for command input parameter(s) - TPtrC datWindowGc; - if ( !GetStringFromConfig(aSection, KFldWindowGc, datWindowGc) ) - { - //CT_DataBitmapDevice::DoCommandL(aCommand, aSection, aAsyncErrorIndex); - - // get BitmapUtilData object from parameters - if ( !GetStringFromConfig(aSection, KFldContext, datWindowGc) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldContext()); - SetBlockResult(EFail); - } - else - { - CGraphicsContext* context=NULL; - INFO_PRINTF1(_L("execute CreateContext(CGraphicsContext*&)")); - TInt returnCode=GetGraphicsDevice()->CreateContext(context); - // Check the command return code. - if ( returnCode!=KErrNone ) - { - ERR_PRINTF2(KLogError, returnCode); - SetError(returnCode); - } - else - { - SetDataObjectL(datWindowGc, context); - } - } - } - else - { - // Execute command and log parameters - CWindowGc* windowGc; - - INFO_PRINTF1(_L("execute CreateContext(CWindowGc)")); - TInt returnCode = iWsScreenDevice->CreateContext(windowGc); - - // Check the command return code. - if ( returnCode!=KErrNone ) - { - ERR_PRINTF2(KLogError, returnCode); - SetError(returnCode); - } - else - { - SetDataObjectL(datWindowGc, windowGc); - } - } - } - -/** -Test CurrentScreenMode() -*/ -void CT_DataWsScreenDevice::DoCmdCurrentScreenMode(const TDesC& aSection) - { - TInt actual=iWsScreenDevice->CurrentScreenMode(); - INFO_PRINTF2(_L("CurrentScreenMode()=%d"), actual); - - TInt expected; - if ( !GetIntFromConfig(aSection, KFldExpected, expected) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldExpected); - SetBlockResult(EFail); - } - else - { - if ( actual!=expected ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - -/** -Test GetCurrentScreenModeScale() -*/ -void CT_DataWsScreenDevice::DoCmdGetCurrentScreenModeScale(const TDesC& aSection) - { - TSize actual=iWsScreenDevice->GetCurrentScreenModeScale(); - INFO_PRINTF3(_L("GetCurrentScreenModeScale(TInt) height=%d width=%d"), actual.iHeight, actual.iWidth); - - TSize expected; - if ( !GetSizeFromConfig(aSection, KFldExpected, expected) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldExpected); - SetBlockResult(EFail); - } - else - { - if ( actual!=expected ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - -/** -Test GetCurrentScreenModeScaledOrigin() -*/ -void CT_DataWsScreenDevice::DoCmdGetCurrentScreenModeScaledOrigin(const TDesC& aSection) - { - TPoint actual=iWsScreenDevice->GetCurrentScreenModeScaledOrigin(); - INFO_PRINTF3(_L("GetCurrentScreenModeScaledOrigin() x=%d y=%d"), actual.iX, actual.iY); - - TPoint expected; - if ( !GetPointFromConfig(aSection, KFldExpected, expected) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldExpected); - SetBlockResult(EFail); - } - else - { - if ( actual!=expected ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - -/** -Test GetDefaultScreenModeOrigin() -*/ -void CT_DataWsScreenDevice::DoCmdGetDefaultScreenModeOrigin(const TDesC& aSection) - { - TPoint actual=iWsScreenDevice->GetDefaultScreenModeOrigin(); - INFO_PRINTF3(_L("GetDefaultScreenModeOrigin() x=%d y=%d"), actual.iX, actual.iY); - - TPoint expected; - if ( !GetPointFromConfig(aSection, KFldExpected, expected) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldExpected); - SetBlockResult(EFail); - } - else - { - if ( actual!=expected ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - -/** -Test GetDefaultScreenSizeAndRotation() -*/ -void CT_DataWsScreenDevice::DoCmdGetDefaultScreenSizeAndRotation(const TDesC& aSection) - { - CFbsBitGc::TGraphicsOrientation rotation; - TBool checkRotation=CT_GraphicsUtil::ReadGraphicsOrientation(*this, aSection, KFldRotation, rotation); - - TSize pixelSize; - TBool checkPixelSize=GetSizeFromConfig(aSection, KFldPixelSize, pixelSize); - - TBool twips=EFalse; - GetBoolFromConfig(aSection, KFldTwips, twips); - if ( twips ) - { - TPixelsTwipsAndRotation param; - iWsScreenDevice->GetDefaultScreenSizeAndRotation(param); - INFO_PRINTF2(_L("GetDefaultScreenSizeAndRotation(TPixelsTwipsAndRotation) Rotation=%d"), param.iRotation); - INFO_PRINTF3(_L("Pixel height=%d width=%d"), param.iPixelSize.iHeight, param.iPixelSize.iWidth); - INFO_PRINTF3(_L("Twips height=%d width=%d"), param.iTwipsSize.iHeight, param.iTwipsSize.iWidth); - - if ( checkRotation ) - { - if ( rotation!=param.iRotation ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - - if ( checkPixelSize ) - { - if ( pixelSize!=param.iPixelSize ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - - TSize twipsSize; - if ( GetSizeFromConfig(aSection, KFldTwipsSize, twipsSize) ) - { - if ( twipsSize!=param.iTwipsSize ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - else - { - TPixelsAndRotation param; - iWsScreenDevice->GetDefaultScreenSizeAndRotation(param); - INFO_PRINTF2(_L("GetDefaultScreenSizeAndRotation(TPixelsAndRotation) Rotation=%d"), param.iRotation); - INFO_PRINTF3(_L("Pixel height=%d width=%d"), param.iPixelSize.iHeight, param.iPixelSize.iWidth); - - if ( checkRotation ) - { - if ( rotation!=param.iRotation ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - - if ( checkPixelSize ) - { - if ( pixelSize!=param.iPixelSize ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - } - -/** -Test GetFontById() -*/ -void CT_DataWsScreenDevice::DoCmdGetFontByIdL(const TDesC& aSection) - { - INFO_PRINTF1(_L("Call GetFontById()")); - TBool dataOk=ETrue; - - // get font uid from parameters - TInt fontUid; - if(!GetIntFromConfig(aSection, KFldFontUid(), fontUid)) - { - dataOk=EFalse; - ERR_PRINTF2(_L("No %S"), &KFldFontUid()); - SetBlockResult(EFail); - } - // get TAlgStyle from parameters - TAlgStyle* algStyle=NULL; - CT_GraphicsUtil::GetAlgStyleL(*this, aSection, KFldAlgStyle(), algStyle); - if ( algStyle==NULL ) - { - dataOk=EFalse; - ERR_PRINTF2(_L("No %S"), &KFldAlgStyle()); - SetBlockResult(EFail); - } - // get font wrapper name - TPtrC datFbsFont; - if( !GetStringFromConfig(aSection, KFldFont, datFbsFont) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldFont()); - SetBlockResult(EFail); - } - // call GetFontById() - else - { - if ( dataOk ) - { - CFont* fbsFont=NULL; - INFO_PRINTF1(_L("execute GetFontById(CFont *&aFont, TUid aUid, const TAlgStyle &aAlgStyle)")); - TInt err = iWsScreenDevice->GetFontById(fbsFont, TUid::Uid(fontUid), *algStyle); - - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - else - { - SetDataObjectL(datFbsFont, fbsFont); - } - } - } - } - -/** -Test GetRotationsList() -*/ -void CT_DataWsScreenDevice::DoCmdGetRotationsListL(const TDesC& aSection) - { - CArrayFixFlat* rotations=new(ELeave) CArrayFixFlat(1); - CleanupStack::PushL(rotations); - - TInt mode=0; - if ( !GetIntFromConfig(aSection, KFldMode, mode) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldMode); - SetBlockResult(EFail); - } - else - { - TInt err=iWsScreenDevice->GetRotationsList(mode, rotations); - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - else - { - INFO_PRINTF2(_L("GetRotationsList count=%d"), rotations->Count()); - TInt expectedCount; - if ( GetIntFromConfig(aSection, KFldExpectedCount, expectedCount) ) - { - if ( expectedCount!=rotations->Count() ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("Check elements in the rotations list")); - TBuf tempStore; - - TBool ok=ETrue; - for ( TInt index = 0; (index < expectedCount) && (ok); ) - { - tempStore.Format(KFormatFieldNumber, &KFldRotation, ++index); - - CFbsBitGc::TGraphicsOrientation rotation; - ok = CT_GraphicsUtil::ReadGraphicsOrientation(*this, aSection, tempStore, rotation); - if ( !ok ) - { - ERR_PRINTF2(KLogMissingParameter, &tempStore); - SetBlockResult(EFail); - } - else - { - if( rotation != (*rotations)[index-1]) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - ok = EFalse; - } - } - } - } - } - } - } - - CleanupStack::PopAndDestroy(); - } - -/** -Test GetScreenModeDisplayMode() -*/ -void CT_DataWsScreenDevice::DoCmdGetScreenModeDisplayMode(const TDesC& aSection) - { - TInt mode=0; - if ( !GetIntFromConfig(aSection, KFldMode, mode) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldMode); - SetBlockResult(EFail); - } - else - { - TDisplayMode actual=iWsScreenDevice->GetScreenModeDisplayMode(mode); - INFO_PRINTF2(_L("GetScreenModeDisplayMode(TInt)=%d"), actual); - - TDisplayMode expected; - if ( !CT_GraphicsUtil::ReadDisplayMode(*this, aSection, KFldExpected, expected) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldExpected); - SetBlockResult(EFail); - } - else - { - if ( actual!=expected ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - } - -/** -Test GetScreenModeOrigin() -*/ -void CT_DataWsScreenDevice::DoCmdGetScreenModeOrigin(const TDesC& aSection) - { - TInt mode=0; - if ( !GetIntFromConfig(aSection, KFldMode, mode) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldMode); - SetBlockResult(EFail); - } - else - { - TPoint actual=iWsScreenDevice->GetScreenModeOrigin(mode); - INFO_PRINTF3(_L("GetScreenModeOrigin(TInt) x=%d y=%d"), actual.iX, actual.iY); - - TPoint expected; - if ( !GetPointFromConfig(aSection, KFldExpected, expected) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldExpected); - SetBlockResult(EFail); - } - else - { - if ( actual!=expected ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - } - -/** -Test GetScreenModeScale() -*/ -void CT_DataWsScreenDevice::DoCmdGetScreenModeScale(const TDesC& aSection) - { - TInt mode=0; - if ( !GetIntFromConfig(aSection, KFldMode, mode) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldMode); - SetBlockResult(EFail); - } - else - { - TSize actual=iWsScreenDevice->GetScreenModeScale(mode); - INFO_PRINTF3(_L("GetScreenModeScale(TInt) height=%d width=%d"), actual.iHeight, actual.iWidth); - - TSize expected; - if ( !GetSizeFromConfig(aSection, KFldExpected, expected) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldExpected); - SetBlockResult(EFail); - } - else - { - if ( actual!=expected ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - } - -/** -Test GetScreenModeScaledOrigin() -*/ -void CT_DataWsScreenDevice::DoCmdGetScreenModeScaledOrigin(const TDesC& aSection) - { - TInt mode=0; - if ( !GetIntFromConfig(aSection, KFldMode, mode) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldMode); - SetBlockResult(EFail); - } - else - { - TPoint actual=iWsScreenDevice->GetScreenModeScaledOrigin(mode); - INFO_PRINTF3(_L("GetScreenModeScaledOrigin(TInt) x=%d y=%d"), actual.iX, actual.iY); - - TPoint expected; - if ( !GetPointFromConfig(aSection, KFldExpected, expected) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldExpected); - SetBlockResult(EFail); - } - else - { - if ( actual!=expected ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - } - -/** -Test GetScreenModeSizeAndRotation() -*/ -void CT_DataWsScreenDevice::DoCmdGetScreenModeSizeAndRotation(const TDesC& aSection) - { - TInt mode=0; - if ( !GetIntFromConfig(aSection, KFldMode, mode) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldMode); - SetBlockResult(EFail); - } - - CFbsBitGc::TGraphicsOrientation rotation; - TBool checkRotation=CT_GraphicsUtil::ReadGraphicsOrientation(*this, aSection, KFldRotation, rotation); - - TSize pixelSize; - TBool checkPixelSize=GetSizeFromConfig(aSection, KFldPixelSize, pixelSize); - - TBool twips=EFalse; - GetBoolFromConfig(aSection, KFldTwips, twips); - if ( twips ) - { - TPixelsTwipsAndRotation param; - iWsScreenDevice->GetScreenModeSizeAndRotation(mode, param); - INFO_PRINTF2(_L("GetScreenModeSizeAndRotation(TInt, TPixelsTwipsAndRotation) Rotation=%d"), param.iRotation); - INFO_PRINTF3(_L("Pixel height=%d width=%d"), param.iPixelSize.iHeight, param.iPixelSize.iWidth); - INFO_PRINTF3(_L("Twips height=%d width=%d"), param.iTwipsSize.iHeight, param.iTwipsSize.iWidth); - - if ( checkRotation ) - { - if ( rotation!=param.iRotation ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - - if ( checkPixelSize ) - { - if ( pixelSize!=param.iPixelSize ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - - TSize twipsSize; - if ( GetSizeFromConfig(aSection, KFldTwipsSize, twipsSize) ) - { - if ( twipsSize!=param.iTwipsSize ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - else - { - TPixelsAndRotation param; - iWsScreenDevice->GetScreenModeSizeAndRotation(mode, param); - INFO_PRINTF2(_L("GetScreenModeSizeAndRotation(TInt, TPixelsAndRotation) Rotation=%d"), param.iRotation); - INFO_PRINTF3(_L("Pixel height=%d width=%d"), param.iPixelSize.iHeight, param.iPixelSize.iWidth); - - if ( checkRotation ) - { - if ( rotation!=param.iRotation ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - - if ( checkPixelSize ) - { - if ( pixelSize!=param.iPixelSize ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - } - -/** -Test GetScreenNumber() -*/ -void CT_DataWsScreenDevice::DoCmdGetScreenNumber(const TDesC& aSection) - { - // Execute command and log parameters - TInt actual=iWsScreenDevice->GetScreenNumber(); - INFO_PRINTF2(_L("execute GetScreenNumber()=%d"), actual); - - // Diaplay command return value, check if it matches the expected value - TInt expected; - if ( !GetIntFromConfig(aSection, KFldExpected, expected) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldExpected); - SetBlockResult(EFail); - } - else - { - if ( actual!=expected ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - -/** -Test GetScreenSizeModeList() -*/ -void CT_DataWsScreenDevice::DoCmdGetScreenSizeModeListL(const TDesC& aSection) - { - RArray screenModes; - CleanupClosePushL(screenModes); - - TInt number = iWsScreenDevice->GetScreenSizeModeList(&screenModes); - - if (number < 0) - { - ERR_PRINTF2(KLogError, number); - SetError(number); - } - else - { - INFO_PRINTF2(_L("GetScreenSizeModeList count=%d"), screenModes.Count()); - TInt expectedCount; - if ( GetIntFromConfig(aSection, KFldExpectedCount, expectedCount) ) - { - if ( expectedCount!=screenModes.Count() || expectedCount != number) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("Check elements in the modes list")); - TBuf tempStore; - - TBool ok=ETrue; - for ( TInt index = 0; (index < number) && (ok); ) - { - tempStore.Format(KFormatFieldNumber, &KFldMode, ++index); - - TInt expectedMode = 0; - ok=GetIntFromConfig(aSection, tempStore, expectedMode); - if ( !ok ) - { - ERR_PRINTF2(KLogMissingParameter, &tempStore); - SetBlockResult(EFail); - } - else - { - if( expectedMode != screenModes[index-1]) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - ok = EFalse; - } - } - } - } - } - } - - CleanupStack::PopAndDestroy(&screenModes); - } - -/** -Test NumScreenModes() -*/ -void CT_DataWsScreenDevice::DoCmdNumScreenModes(const TDesC& aSection) - { - TInt actual=iWsScreenDevice->NumScreenModes(); - INFO_PRINTF2(_L("NumScreenModes()=%d"), actual); - - TInt expected; - if ( GetIntFromConfig(aSection, KFldExpected, expected) ) - { - if ( actual!=expected ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - -/** -Test PointerRect() -*/ -void CT_DataWsScreenDevice::DoCmdPointerRect(const TDesC& aSection) - { - TRect actual=iWsScreenDevice->PointerRect(); - LogRect(_L("PointerRect()"), actual); - - TRect expected; - if ( GetRectFromConfig(aSection, KFldExpected, expected) ) - { - if ( actual!=expected ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - -/** -Test RectCompare() -*/ -void CT_DataWsScreenDevice::DoCmdRectCompare(const TDesC& aSection) - { - TBool dataOk=ETrue; - - // Get test data for command input parameter(s) - TRect datRect1; - if ( !GetRectFromConfig(aSection, KFldRect1, datRect1) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldRect1); - SetBlockResult(EFail); - } - - TRect datRect2; - if ( !GetRectFromConfig(aSection, KFldRect2, datRect2) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldRect2); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - TBool actual=EFalse; - - // Execute command and log parameters - TUint datFlags; - if ( CT_GraphicsUtil::ReadSpriteInCompare(*this, aSection, KFldFlags, datFlags) ) - { - actual=iWsScreenDevice->RectCompare(datRect1, datRect2, datFlags); - INFO_PRINTF2(_L("execute RectCompare(TRect, TRect, TUint)=%d"), actual); - } - else - { - actual=iWsScreenDevice->RectCompare(datRect1, datRect2); - INFO_PRINTF2(_L("execute RectCompare(TRect, TRect)=%d"), actual); - } - - // Diaplay command return value, check if it matches the expected value - TBool expected; - if ( !GetBoolFromConfig(aSection, KFldExpected, expected) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldExpected); - SetBlockResult(EFail); - } - else - { - if ( actual!=expected ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - } - -/** -Test ScreenModeEnforcement() -*/ -void CT_DataWsScreenDevice::DoCmdScreenModeEnforcement(const TDesC& aSection) - { - TScreenModeEnforcement actual=iWsScreenDevice->ScreenModeEnforcement(); - INFO_PRINTF2(_L("execute ScreenModeEnforcement()=%d"), actual); - - TScreenModeEnforcement expected; - if ( CT_GraphicsUtil::ReadScreenModeEnforcement(*this, aSection, KFldExpected, expected) ) - { - if ( actual!=expected ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - -/** -Test SetAppScreenMode() -*/ -void CT_DataWsScreenDevice::DoCmdSetAppScreenMode(const TDesC& aSection) - { - TInt mode; - if ( !GetIntFromConfig(aSection, KFldMode, mode) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldRect2); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("SetAppScreenMode()")); - iWsScreenDevice->SetAppScreenMode(mode); - } - } - -/** -Test SetBackLight() -*/ -void CT_DataWsScreenDevice::DoCmdSetBackLight(const TDesC& aSection) - { - TBool backLight; - if ( !GetBoolFromConfig(aSection, KFldBackLight, backLight) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldBackLight); - SetBlockResult(EFail); - } - else - { - TInt err=iWsScreenDevice->SetBackLight(backLight); - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - } - } - -/** -Test SetCustomPalette() -*/ -void CT_DataWsScreenDevice::DoCmdSetCustomPaletteL(const TDesC& aSection) - { - INFO_PRINTF1(_L("Calls CWsScreenDevice::SetCustomPalette() by previously created palette")); - - // get CPalette object passed as a parameter - CPalette* palette = NULL; - - if(!CT_GraphicsUtil::GetPaletteL(*this, aSection, KFldPalette(), palette)) - { - ERR_PRINTF2(KLogMissingParameter, &KFldPalette); - SetBlockResult(EFail); - } - else - { - // call SetPalette() - TInt err = iWsScreenDevice->SetCustomPalette(palette); - if(err != KErrNone) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - } - } - -/** -Test SetScreenSizeAndRotation() -*/ -void CT_DataWsScreenDevice::DoCmdSetScreenSizeAndRotation(const TDesC& aSection) - { - TBool dataOk=ETrue; - - CFbsBitGc::TGraphicsOrientation rotation; - if ( !CT_GraphicsUtil::ReadGraphicsOrientation(*this, aSection, KFldRotation, rotation) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldRotation); - SetBlockResult(EFail); - } - - TSize pixelSize; - if ( !GetSizeFromConfig(aSection, KFldPixelSize, pixelSize) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldPixelSize); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - TSize twipsSize; - if ( GetSizeFromConfig(aSection, KFldTwipsSize, twipsSize) ) - { - TPixelsTwipsAndRotation param; - param.iPixelSize=pixelSize; - param.iRotation=rotation; - param.iTwipsSize=twipsSize; - INFO_PRINTF1(_L("execute SetScreenSizeAndRotation(const TPixelsTwipsAndRotation&)")); - iWsScreenDevice->SetScreenSizeAndRotation(param); - } - else - { - TPixelsAndRotation param; - param.iPixelSize=pixelSize; - param.iRotation=rotation; - INFO_PRINTF1(_L("execute SetScreenSizeAndRotation(const TPixelsAndRotation&)")); - iWsScreenDevice->SetScreenSizeAndRotation(param); - } - } - } - -/** -* The source codes hereafter are NOT simple wrapper functions of CWsScreenDevice class, -* but use combinations of CWsScreenDevice (and other) class functions to check if what -* take from the CWsScreenDevice matches with the expected value specified in TEF testdata. -* -*/ - -/** -* DoCmdcheckPixels: to check the color of specified pixels on the screen device, and compare -* with the expected color specidied in the TEF testdata. -* pixel: specify the position of the screen device to check -* expected: specify the expected color to be compared with -* -*/ -void CT_DataWsScreenDevice::DoCmdcheckPixels(const TDesC& aSection) - { - TBuf tempStore; - - TBool moreData=ETrue; - for ( TInt index=1; moreData; ++index ) - { - // get the pixel position on the screen to check/verify - tempStore.Format(KFldFormatFieldNumber, &KFldPixel, index); - TPoint point; - if ( !GetPointFromConfig(aSection, tempStore, point) ) - { - moreData=EFalse; - } - else - { - TRgb actual; - iWsScreenDevice->GetPixel(actual, point); - - tempStore.Format(KFldFormatFieldNumber, &KFldExpected, index); - TRgb expected; - if ( GetRgbFromConfig(aSection, tempStore, expected) ) - { - if ( actual!=expected ) - { - ERR_PRINTF5(KLogColor, actual.Red(), actual.Green(), actual.Blue(), actual.Alpha()); - ERR_PRINTF5(KLogColor, expected.Red(), expected.Green(), expected.Blue(), expected.Alpha()); - SetBlockResult(EFail); - } - } - } - } - } - -/** -* DoCmdcheckLineColor: to check the color of specified lines on the screen device, and compare -* with the expected color specidied in the TEF testdata. -* start: specify the starting position of the line on the screen device to check -* finish: specify the finish position of the line on the screen device to check -* expected: specify the expected color to be compared with -* Note: the straight line (from start to the finish points) is constructed by TLinearDDA -* -*/ -void CT_DataWsScreenDevice::DoCmdcheckLineColor(const TDesC& aSection) - { - TBuf tempStore; - - CPalette* palette=NULL; - iWsScreenDevice->GetPalette(palette); - - TBool moreData=ETrue; - for ( TInt index=1; moreData; ++index ) - { - // get the the start and finish points of the line to check/verify - tempStore.Format(KFldFormatFieldNumber, &KFldStart, index); - TPoint startPoint; - if ( !GetPointFromConfig(aSection, tempStore, startPoint) ) - { - moreData=EFalse; - } - - tempStore.Format(KFldFormatFieldNumber, &KFldFinish, index); - TPoint endPoint; - if ( !GetPointFromConfig(aSection, tempStore, endPoint) ) - { - moreData=EFalse; - } - - if ( moreData ) - { - // get the expected color from testdata - tempStore.Format(KFldFormatFieldNumber, &KFldExpected, index); - TRgb expected; - if ( !GetRgbFromConfig(aSection, tempStore, expected) ) - { - ERR_PRINTF2(KLogMissingParameter, &tempStore); - SetBlockResult(EFail); - } - else - { - if ( palette!=NULL ) - { - expected=palette->NearestEntry(expected); - } - - TLinearDDA lineDDA; - lineDDA.Construct(startPoint, endPoint, TLinearDDA::ECenter); - - // for each pixels on the line (from start to finish points), check if its color matches expected - TPoint point; - while ( !lineDDA.SingleStep(point) ) - { - TRgb actual; - iWsScreenDevice->GetPixel(actual, point); - - if ( actual!=expected ) - { - ERR_PRINTF5(KLogColor, actual.Red(), actual.Green(), actual.Blue(), actual.Alpha()); - ERR_PRINTF5(KLogColor, expected.Red(), expected.Green(), expected.Blue(), expected.Alpha()); - ERR_PRINTF3(KLogPoint, point.iX, point.iY); - SetBlockResult(EFail); - } - } - } - } - } - - delete palette; - } - -/** -* DoCmdcheckRectColor: to check the color of specified rectangle on the screen device, and -* compare with the expected color specidied in the TEF testdata. -* rect: specify the rectangle area on the screen device to check -* expected: specify the expected color to be compared with -* -*/ -void CT_DataWsScreenDevice::DoCmdcheckRectColor(const TDesC& aSection) - { - TBuf tempStore; - - CPalette* palette=NULL; - iWsScreenDevice->GetPalette(palette); - - TBool moreData=ETrue; - for ( TInt index=1; moreData; ++index ) - { - // get the the rectangle to check/verify - tempStore.Format(KFldFormatFieldNumber, &KFldRect, index); - TRect rect; - if ( !GetRectFromConfig(aSection, tempStore, rect) ) - { - moreData=EFalse; - } - else - { - // get the expected color from testdata - tempStore.Format(KFldFormatFieldNumber, &KFldExpected, index); - TRgb expected; - if ( !GetRgbFromConfig(aSection, tempStore, expected) ) - { - ERR_PRINTF2(KLogMissingParameter, &tempStore); - SetBlockResult(EFail); - } - else - { - if ( palette!=NULL ) - { - expected=palette->NearestEntry(expected); - } - - TPoint point; - for ( point.iX=rect.iTl.iX; point.iXGetPixel(actual, point); - - if ( actual!=expected ) - { - ERR_PRINTF5(KLogColor, actual.Red(), actual.Green(), actual.Blue(), actual.Alpha()); - ERR_PRINTF5(KLogColor, expected.Red(), expected.Green(), expected.Blue(), expected.Alpha()); - ERR_PRINTF3(KLogPoint, point.iX, point.iY); - SetBlockResult(EFail); - } - } - } - } - } - } - - delete palette; - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/src/T_DataWsSession.cpp --- a/graphicsapitest/graphicssvs/wserv/src/T_DataWsSession.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,2439 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -#include "T_DataWsSession.h" -#include "T_GraphicsUtil.h" -#include "T_DataWindowGroup.h" - -// EPOC Includes -#include -#include -#include - -/*@{*/ -_LIT(KDataClassname, "RWsSession"); - -/// Fields -_LIT(KFldCheckWithStore, "checkwithstore"); -_LIT(KFldExpected, "expected"); -_LIT(KFldKeyCode, "keycode"); -_LIT(KFldModifier, "modifier"); -_LIT(KFldModifierMask, "modifiermask"); -_LIT(KFldModifiers, "modifiers"); -_LIT(KFldNullPointer, "nullpointer"); -_LIT(KFldOffset, "offset"); -_LIT(KFldRepeats, "repeats"); -_LIT(KFldStdScanCode, "stdscancode"); -_LIT(KFldType, "type"); -_LIT(KFldStore, "store"); -_LIT(KFldPos, "pos"); -_LIT(KFldDeviceNumber, "devicenumber"); -_LIT(KFldTip, "tip"); -_LIT(KFldIdentifier, "identifier"); -_LIT(KFldSpriteMember, "spritemember"); -_LIT(KFldSpriteFlags, "spriteflags"); -_LIT(KFldAlignment, "alignment"); -_LIT(KFldWindowGroup, "windowgroup"); - -/// Parameters - -_LIT(KLogMessage, "logMessage"); -_LIT(KLogCommand, "logCommand"); -_LIT(KTPoint, "point"); -_LIT(KInputWGId, "inputWGId"); -_LIT(KBGColour, "bgcolour"); -_LIT(KInputCursorNumber, "inputcursornumber"); -_LIT(KComputeMode, "computemode"); -_LIT(KInputScrnNo, "inputscreenno"); -_LIT(KDefDisplayMode, "defDisplayMode"); -_LIT(KDefModeMaxNumColor, "defModeMaxNumColor"); -_LIT(KDefModeMaxNumGray, "defModeMaxNumGray"); -_LIT(KWindowGroupIdentifier, "wgIdentifier"); -_LIT(KInputDefaultCursorNumber, "defaultsyscurnum"); -_LIT(KUseRfs, "userfs"); -_LIT(KExpectedHeapCount, "heapCount"); -_LIT(KExpectPtrCursorMode, "expectptrcurmode"); -_LIT(KExpectBgColour, "expectbgcolour"); -_LIT(KExpectedDiff, "expected_diff"); -_LIT(KSetBuffer, "setbuffer"); -_LIT(KSetMaxBuffer, "setmaxbuffer"); -_LIT(KSetFocusScreen, "setfocusscreen"); -_LIT(KSetEventOffOn, "seteventoffon"); -_LIT(KWTreeNodeObj, "treenodeobj"); -_LIT(KExpectShadowVector, "expectshdwvet"); -_LIT(KAutoFlushState, "newFlushstate"); -_LIT(KExpectFlushState, "expectedFlushstate"); -_LIT(KVersionBuild, "build"); -_LIT(KVersionMajor, "major"); -_LIT(KVersionMinor, "minor"); -_LIT(KWGUseArray, "usearray"); -_LIT(KWGListPriority, "priority"); -_LIT(KWGGivenPriority, "givenwgpriority"); -_LIT(KWGSpecifieScrnNo, "specifiescrnno"); -_LIT(KWGScreenNumber, "screennum"); -_LIT(KWGOrdinalId, "identifier"); -_LIT(KWGOrdinalPosition, "position"); -_LIT(KWGOrdinalPriority, "wgid"); -_LIT(KWGinquiredId, "inquiredwgid"); -_LIT(KFindWGPreId, "prewgid"); -_LIT(KMatchWGString, "matchwgname"); -_LIT(KThreadId, "threadid"); -_LIT(KRequestEvent, "requestevent"); -_LIT(KRequestRedraw, "requestRedraw"); -_LIT(KPKPriorityKey, "prioritykey"); -_LIT(KSetHotKey, "hotkey"); -_LIT(KClsHotKey, "clshotkey"); -_LIT(KRestoreDefHotKey, "restoredefhk"); -_LIT(KSetKeyCode, "keycode"); -_LIT(KDblClickInterval, "maxinterval"); -_LIT(KDblClickDistance, "maxdistance"); -_LIT(KExpectedDblMaxInitialTime, "expecteddblmaxinittime"); -_LIT(KExpectedDblDistance, "expecteddblmaxdistance"); -_LIT(KSetKBRepRateInterval, "kbreprateinterval"); -_LIT(KSetKBRepRateTime, "kbrepratetime"); -_LIT(KWGGetExpectedKBInitialTime, "expectedkbinittime"); -_LIT(KWGGetExpectedKBRepeatTime, "expectedkbRepeattime"); -_LIT(KSetSysFading, "sysfadonoff"); -_LIT(KSetblackMapFading, "blackmapfading"); -_LIT(KSetwhiteMapFading, "whitemapfading"); -_LIT(KSetDefblackMapFading, "defblackmapfading"); -_LIT(KSetDefwhiteMapFading, "defwhitemapfading"); -_LIT(KSetShadowVec, "shadowvector"); -_LIT(KSetScrnSizeMode, "screensizemode"); -_LIT(KSetPtrCurPosValue, "ptrcurpos"); -_LIT(KPtrCurPosArea, "ptrcurarea"); -_LIT(KSetPtrCurMode, "pointercurmode"); -_LIT(KSetCltCurMode, "cltcurmode"); -_LIT(KInputPermanentModifier, "inputpermanmodif"); -_LIT(KInputPermanentModifierState, "inputpermanmodifstate"); - -//Commands -_LIT(KCmdnew, "new"); -_LIT(KCmdConnect, "Connect"); -_LIT(KCmdClose, "Close"); -_LIT(KCmdVersion, "Version"); -_LIT(KCmdSetHotKey, "SetHotKey"); -_LIT(KCmdClearHotKeys, "ClearHotKeys"); -_LIT(KCmdRestoreDefaultHotKey, "RestoreDefaultHotKey"); -_LIT(KCmdEventReady, "EventReady"); -_LIT(KCmdEventReadyCancel, "EventReadyCancel"); -_LIT(KCmdGetEvent, "GetEvent"); -_LIT(KCmdPurgePointerEvents, "PurgePointerEvents"); -_LIT(KCmdRedrawReady, "RedrawReady"); -_LIT(KCmdRedrawReadyCancel, "RedrawReadyCancel"); -_LIT(KCmdGetRedraw, "GetRedraw"); -_LIT(KCmdPriorityKeyReady, "PriorityKeyReady"); -_LIT(KCmdPriorityKeyReadyCancel, "PriorityKeyReadyCancel"); -_LIT(KCmdGetPriorityKey, "GetPriorityKey"); -_LIT(KCmdFlush, "Flush"); -_LIT(KCmdSetAutoFlush, "SetAutoFlush"); -_LIT(KCmdSetKeyboardRepeatRate, "SetKeyboardRepeatRate"); -_LIT(KCmdGetKeyboardRepeatRate, "GetKeyboardRepeatRate"); -_LIT(KCmdGetDoubleClickSettings, "GetDoubleClickSettings"); -_LIT(KCmdSetDoubleClick, "SetDoubleClick"); -_LIT(KCmdNumWindowGroups, "NumWindowGroups"); -_LIT(KCmdWindowGroupList, "WindowGroupList"); -_LIT(KCmdGetFocusWindowGroup, "GetFocusWindowGroup"); -_LIT(KCmdGetDefaultOwningWindow, "GetDefaultOwningWindow"); -_LIT(KCmdSetWindowGroupOrdinalPosition, "SetWindowGroupOrdinalPosition"); -_LIT(KCmdGetWindowGroupClientThreadId, "GetWindowGroupClientThreadId"); -_LIT(KCmdGetWindowGroupHandle, "GetWindowGroupHandle"); -_LIT(KCmdGetWindowGroupOrdinalPriority, "GetWindowGroupOrdinalPriority"); -_LIT(KCmdGetWindowGroupNameFromIdentifier, "GetWindowGroupNameFromIdentifier"); -_LIT(KCmdFindWindowGroupIdentifier, "FindWindowGroupIdentifier"); -_LIT(KCmdFetchMessage, "FetchMessage"); -_LIT(KCmdSetShadowVector, "SetShadowVector"); -_LIT(KCmdShadowVector, "ShadowVector"); -_LIT(KCmdSetBackgroundColor, "SetBackgroundColor"); -_LIT(KCmdGetBackgroundColor, "GetBackgroundColor"); -_LIT(KCmdSetSystemPointerCursor, "SetSystemPointerCursor"); -_LIT(KCmdClearSystemPointerCursor, "ClearSystemPointerCursor"); -_LIT(KCmdClaimSystemPointerCursorList, "ClaimSystemPointerCursorList"); -_LIT(KCmdFreeSystemPointerCursorList, "FreeSystemPointerCursorList"); -_LIT(KCmdSetCustomTextCursor, "SetCustomTextCursor"); -_LIT(KCmdResourceCount, "ResourceCount"); -_LIT(KCmdPasswordEntered, "PasswordEntered"); -_LIT(KCmdComputeMode, "ComputeMode"); -_LIT(KCmdHeapCount, "HeapCount"); -_LIT(KCmdSetModifierState, "SetModifierState"); -_LIT(KCmdGetModifierState, "GetModifierState"); -_LIT(KCmdRequestOffEvents, "RequestOffEvents"); -_LIT(KCmdGetDefModeMaxNumColors, "GetDefModeMaxNumColors"); -_LIT(KCmdGetColorModeList, "GetColorModeList"); -_LIT(KCmdSetPointerCursorArea, "SetPointerCursorArea"); -_LIT(KCmdPointerCursorArea, "PointerCursorArea"); -_LIT(KCmdSetPointerCursorMode, "SetPointerCursorMode"); -_LIT(KCmdSetClientCursorMode, "SetClientCursorMode"); -_LIT(KCmdPointerCursorMode, "PointerCursorMode"); -_LIT(KCmdSetDefaultSystemPointerCursor, "SetDefaultSystemPointerCursor"); -_LIT(KCmdClearDefaultSystemPointerCursor, "ClearDefaultSystemPointerCursor"); -_LIT(KCmdSetPointerCursorPosition, "SetPointerCursorPosition"); -_LIT(KCmdPointerCursorPosition, "PointerCursorPosition"); -_LIT(KCmdSetDefaultFadingParameters, "SetDefaultFadingParameters"); -_LIT(KCmdPrepareForSwitchOff, "PrepareForSwitchOff"); -_LIT(KCmdSetBufferSizeL, "SetBufferSizeL"); -_LIT(KCmdSetMaxBufferSizeL, "SetMaxBufferSizeL"); -_LIT(KCmdSetSystemFaded, "SetSystemFaded"); -_LIT(KCmdSetFocusScreen, "SetFocusScreen"); -_LIT(KCmdGetFocusScreen, "GetFocusScreen"); -_LIT(KCmdClearAllRedrawStores, "ClearAllRedrawStores"); -_LIT(KCmdLogCommand, "LogCommand"); -_LIT(KCmdLogMessage, "LogMessage"); -_LIT(KCmdNumberOfScreens, "NumberOfScreens"); -_LIT(KCmdSimulateRawEvent, "SimulateRawEvent"); -_LIT(KCmdSimulateKeyEvent, "SimulateKeyEvent"); - -/// Logging -_LIT(KLogError, "Error=%d"); -_LIT(KLogMissingParameter, "Missing parameter '%S'"); -_LIT(KLogNotExpectedValue, "Not expected value"); - -//constants -const TInt KGroupNameMaxSize =100; - -/*@}*/ - -////////////////////////////////////////////////////////////////////// -// Construction/Destruction -////////////////////////////////////////////////////////////////////// - -CT_DataWsSession* CT_DataWsSession::NewL() - { - CT_DataWsSession* ret=new (ELeave) CT_DataWsSession(); - CleanupStack::PushL(ret); - ret->ConstructL(); - CleanupStack::Pop(ret); - return ret; - } - -CT_DataWsSession::CT_DataWsSession() -: CDataWrapperBase() -, iWsSession(NULL) -, iResourceCount(0) -, iNumWinGroup(0) -, iColorModeCount(0) -, iWindowGroupIdentifier(0) -, iActiveEventReady(NULL) -, iActivePriorityKeyReady(NULL) -, iActiveRedrawReady(NULL) - { - } - -void CT_DataWsSession::ConstructL() - { - iActiveEventReady=CActiveCallback::NewL(*this); - iActivePriorityKeyReady=CActiveCallback::NewL(*this); - iActiveRedrawReady=CActiveCallback::NewL(*this); - } - -CT_DataWsSession::~CT_DataWsSession() - { - DestroyData(); - delete iActiveRedrawReady; - iActiveRedrawReady=NULL; - delete iActivePriorityKeyReady; - iActivePriorityKeyReady=NULL; - delete iActiveEventReady; - iActiveEventReady=NULL; - } - -void CT_DataWsSession::SetObjectL(TAny* aAny) - { - DestroyData(); - iWsSession = static_cast (aAny); - } - -void CT_DataWsSession::DisownObjectL() - { - iWsSession = NULL; - } - -void CT_DataWsSession::DestroyData() - { - delete iWsSession; - iWsSession=NULL; - } - -MWsClientClass* CT_DataWsSession::GetClientClass() const - { - return iWsSession; - } - - -/** -* Process a command read from the ini file -* -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* @param aAsyncErrorIndex index of command. used for async calls -* -* @return ETrue if the command is processed -*/ -TBool CT_DataWsSession::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex) - { - TBool ret = ETrue; - - if ( aCommand==KCmdnew || aCommand==KDataClassname ) - { - DoCmdnew(); - } - else if ( aCommand==KCmdConnect ) - { - DoCmdConnectL(aSection); - } - else if ( aCommand==KCmdClose ) - { - DoCmdClose(); - } - else if ( aCommand==KCmdVersion ) - { - DoCmdVersion(aSection); - } - else if ( aCommand==KCmdSetHotKey ) - { - DoCmdSetHotKey(aSection); - } - else if ( aCommand==KCmdClearHotKeys ) - { - DoCmdClearHotKeys(aSection); - } - else if ( aCommand==KCmdRestoreDefaultHotKey ) - { - DoCmdRestoreDefaultHotKey(aSection); - } - else if ( aCommand==KCmdEventReady ) - { - DoCmdEventReady(aSection, aAsyncErrorIndex); - } - else if ( aCommand==KCmdEventReadyCancel ) - { - DoCmdEventReadyCancel(); - } - else if ( aCommand==KCmdGetEvent ) - { - DoCmdGetEventL(aSection); - } - else if ( aCommand==KCmdPurgePointerEvents ) - { - DoCmdPurgePointerEvents(); - } - else if ( aCommand==KCmdRedrawReady ) - { - DoCmdRedrawReady(aSection, aAsyncErrorIndex); - } - else if ( aCommand==KCmdRedrawReadyCancel ) - { - DoCmdRedrawReadyCancel(); - } - else if ( aCommand==KCmdGetRedraw ) - { - DoCmdGetRedrawL(aSection); - } - else if ( aCommand==KCmdPriorityKeyReady ) - { - DoCmdPriorityKeyReady(aSection, aAsyncErrorIndex); - } - else if ( aCommand==KCmdPriorityKeyReadyCancel ) - { - DoCmdPriorityKeyReadyCancel(); - } - else if ( aCommand==KCmdGetPriorityKey ) - { - DoCmdGetPriorityKeyL(aSection); - } - else if ( aCommand==KCmdFlush ) - { - DoCmdFlush(); - } - else if ( aCommand==KCmdSetAutoFlush ) - { - DoCmdSetAutoFlush(aSection); - } - else if ( aCommand==KCmdSetKeyboardRepeatRate ) - { - DoCmdSetKeyboardRepeatRate(aSection); - } - else if ( aCommand==KCmdGetKeyboardRepeatRate ) - { - DoCmdGetKeyboardRepeatRate(aSection); - } - else if ( aCommand==KCmdGetDoubleClickSettings ) - { - DoCmdGetDoubleClickSettings(aSection); - } - else if ( aCommand==KCmdSetDoubleClick ) - { - DoCmdSetDoubleClick(aSection); - } - else if ( aCommand==KCmdNumWindowGroups ) - { - DoCmdNumWindowGroups(aSection); - } - else if ( aCommand==KCmdWindowGroupList ) - { - DoCmdWindowGroupListL(aSection); - } - else if ( aCommand==KCmdGetFocusWindowGroup ) - { - DoCmdGetFocusWindowGroup(aSection); - } - else if ( aCommand==KCmdGetDefaultOwningWindow ) - { - DoCmdGetDefaultOwningWindow(aSection); - } - else if ( aCommand==KCmdSetWindowGroupOrdinalPosition ) - { - DoCmdSetWindowGroupOrdinalPosition(aSection); - } - else if ( aCommand==KCmdGetWindowGroupClientThreadId ) - { - DoCmdGetWindowGroupClientThreadId(aSection); - } - else if ( aCommand==KCmdGetWindowGroupHandle ) - { - DoCmdGetWindowGroupHandle(aSection); - } - else if ( aCommand==KCmdGetWindowGroupOrdinalPriority ) - { - DoCmdGetWindowGroupOrdinalPriority(aSection); - } - else if ( aCommand==KCmdGetWindowGroupNameFromIdentifier ) - { - DoCmdGetWindowGroupNameFromIdentifier(aSection); - } - else if ( aCommand==KCmdFindWindowGroupIdentifier ) - { - DoCmdFindWindowGroupIdentifier(aSection); - } - else if ( aCommand==KCmdFetchMessage ) - { - DoCmdFetchMessage(aSection); - } - else if ( aCommand==KCmdSetShadowVector ) - { - DoCmdSetShadowVector(aSection); - } - else if ( aCommand==KCmdShadowVector ) - { - DoCmdShadowVector(aSection); - } - else if ( aCommand==KCmdSetBackgroundColor ) - { - DoCmdSetBackgroundColor(aSection); - } - else if ( aCommand==KCmdGetBackgroundColor ) - { - DoCmdGetBackgroundColor(aSection); - } - else if ( aCommand==KCmdSetSystemPointerCursor ) - { - DoCmdSetSystemPointerCursor(aSection); - } - else if ( aCommand==KCmdClearSystemPointerCursor ) - { - DoCmdClearSystemPointerCursor(aSection); - } - else if ( aCommand==KCmdClaimSystemPointerCursorList ) - { - DoCmdClaimSystemPointerCursorList(); - } - else if ( aCommand==KCmdFreeSystemPointerCursorList ) - { - DoCmdFreeSystemPointerCursorList(); - } - else if ( aCommand==KCmdSetCustomTextCursor ) - { - DoCmdSetCustomTextCursorL(aSection); - } - else if ( aCommand==KCmdResourceCount ) - { - DoCmdResourceCount(aSection); - } - else if ( aCommand==KCmdPasswordEntered ) - { - DoCmdPasswordEntered(); - } - else if ( aCommand==KCmdComputeMode ) - { - DoCmdComputeMode(aSection); - } - else if ( aCommand==KCmdHeapCount ) - { - DoCmdHeapCount(aSection); - } - else if ( aCommand==KCmdSetModifierState ) - { - DoCmdSetModifierState(aSection); - } - else if ( aCommand==KCmdGetModifierState ) - { - DoCmdGetModifierState(aSection); - } - else if ( aCommand==KCmdRequestOffEvents ) - { - DoCmdRequestOffEventsL(aSection); - } - else if ( aCommand==KCmdGetDefModeMaxNumColors ) - { - DoCmdGetDefModeMaxNumColors(aSection); - } - else if ( aCommand==KCmdGetColorModeList ) - { - DoCmdGetColorModeListL(aSection); - } - else if ( aCommand==KCmdSetPointerCursorArea ) - { - DoCmdSetPointerCursorArea(aSection); - } - else if ( aCommand==KCmdPointerCursorArea ) - { - DoCmdPointerCursorArea(aSection); - } - else if ( aCommand==KCmdSetPointerCursorMode ) - { - DoCmdSetPointerCursorMode(aSection); - } - else if ( aCommand==KCmdSetClientCursorMode ) - { - DoCmdSetClientCursorMode(aSection); - } - else if ( aCommand==KCmdPointerCursorMode ) - { - DoCmdPointerCursorMode(aSection); - } - else if ( aCommand==KCmdSetDefaultSystemPointerCursor ) - { - DoCmdSetDefaultSystemPointerCursor(aSection); - } - else if ( aCommand==KCmdClearDefaultSystemPointerCursor ) - { - DoCmdClearDefaultSystemPointerCursor(); - } - else if ( aCommand==KCmdSetPointerCursorPosition ) - { - DoCmdSetPointerCursorPosition(aSection); - } - else if ( aCommand==KCmdPointerCursorPosition ) - { - DoCmdPointerCursorPosition(aSection); - } - else if ( aCommand==KCmdSetDefaultFadingParameters ) - { - DoCmdSetDefaultFadingParameters(aSection); - } - else if ( aCommand==KCmdPrepareForSwitchOff ) - { - DoCmdPrepareForSwitchOff(); - } - else if ( aCommand==KCmdSetBufferSizeL ) - { - DoCmdSetBufferSizeL(aSection); - } - else if ( aCommand==KCmdSetMaxBufferSizeL ) - { - DoCmdSetMaxBufferSizeL(aSection); - } - else if ( aCommand==KCmdSetSystemFaded ) - { - DoCmdSetSystemFaded(aSection); - } - else if ( aCommand==KCmdSetFocusScreen ) - { - DoCmdSetFocusScreen(aSection); - } - else if ( aCommand==KCmdGetFocusScreen ) - { - DoCmdGetFocusScreen(aSection); - } - else if ( aCommand==KCmdClearAllRedrawStores ) - { - DoCmdClearAllRedrawStores(); - } - else if ( aCommand==KCmdLogCommand ) - { - DoCmdLogCommand(aSection); - } - else if ( aCommand==KCmdLogMessage ) - { - DoCmdLogMessage(aSection); - } - else if ( aCommand==KCmdNumberOfScreens ) - { - DoCmdNumberOfScreens(aSection); - } - else if ( aCommand==KCmdSimulateRawEvent ) - { - DoCmdSimulateRawEvent(aSection); - } - else if ( aCommand==KCmdSimulateKeyEvent ) - { - DoCmdSimulateKeyEvent(aSection); - } - else - { - ret=CT_DataWsClientClass::DoCommandL(*this, aCommand, aSection, aAsyncErrorIndex); - } - - return ret; - } - - -void CT_DataWsSession::DoCmdnew() - { - INFO_PRINTF1(_L("Session is going to create")); - TRAPD(err, iWsSession = new (ELeave) RWsSession()); - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - } - -void CT_DataWsSession::DoCmdConnectL(const TDesC& aSection) - { - TBool useRfs=EFalse; - GetBoolFromConfig(aSection, KUseRfs(), useRfs); - - TInt err=KErrNone; - if ( useRfs ) - { - INFO_PRINTF1(_L("RWsSession::Connect(RFs&) call")); - err=iWsSession->Connect(FileServer()); - } - else - { - INFO_PRINTF1(_L("RWsSession::Connect() call")); - err=iWsSession->Connect(); - } - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - } - -void CT_DataWsSession::DoCmdClose() - { - INFO_PRINTF1(_L("RWsSession::Close() call")); - iWsSession->Close(); - } - -void CT_DataWsSession::DoCmdVersion(const TDesC& aSection) - { - INFO_PRINTF1(_L("WsSession::Version() call")); - - TVersion version = iWsSession->Version(); - - INFO_PRINTF2(_L("Version build : %d"), (TInt)version.iBuild); - INFO_PRINTF2(_L("Version major : %d"), (TInt)version.iMajor); - INFO_PRINTF2(_L("Version minor : %d"), (TInt)version.iMinor); - TInt intTemp; - if ( GetIntFromConfig(aSection, KVersionBuild(), intTemp) ) - { - if ( intTemp != version.iBuild ) - { - ERR_PRINTF1(_L("Build does not match expected build")); - SetBlockResult(EFail); - } - } - - if ( GetIntFromConfig(aSection, KVersionMajor(), intTemp) ) - { - if ( intTemp != version.iMajor ) - { - ERR_PRINTF1(_L("Major does not match expected major")); - SetBlockResult(EFail); - } - } - - if ( GetIntFromConfig(aSection, KVersionMinor(), intTemp) ) - { - if ( intTemp != version.iMinor ) - { - ERR_PRINTF1(_L("Minor does not match expected minor")); - SetBlockResult(EFail); - } - } - - if (version.Name() == _L("") && version.iBuild == 0 && version.iMajor == 0 && version.iMinor == 0) - { - ERR_PRINTF1(_L("Some version fields are not set!")); - SetBlockResult(EFail); - } - } - -void CT_DataWsSession::DoCmdSetHotKey(const TDesC& aSection) - { - TBool dataOk=ETrue; - - THotKey hotKey; - TInt err=KErrNone; - - if ( !CT_GraphicsUtil::ReadHotKey(*this, aSection, KSetHotKey(), hotKey) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KSetHotKey()); - SetBlockResult(EFail); - } - - TKeyCode keyCode; - if ( !CT_GraphicsUtil::ReadKeyCode(*this, aSection, KSetKeyCode(), keyCode) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KSetKeyCode()); - SetBlockResult(EFail); - } - - TUint modifierMask=EModifierAlt | EModifierCtrl | EModifierShift | EModifierFunc | EModifierCapsLock; - CT_GraphicsUtil::ReadEventModifier(*this, aSection, KFldModifierMask, modifierMask); - TUint modifier=EModifierAlt | EModifierCtrl | EModifierShift | EModifierFunc | EModifierCapsLock; - CT_GraphicsUtil::ReadEventModifier(*this, aSection, KFldModifier, modifier); - if ( dataOk ) - { - err = iWsSession->SetHotKey(hotKey, keyCode, modifierMask, modifier); - } - - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - } - -void CT_DataWsSession::DoCmdClearHotKeys(const TDesC& aSection) - { - THotKey hotKey; - - TInt err=KErrNone; - if ( !CT_GraphicsUtil::ReadHotKey(*this, aSection, KClsHotKey(), hotKey) ) - { - ERR_PRINTF2(KLogMissingParameter, &KClsHotKey()); - SetBlockResult(EFail); - } - else - { - err = iWsSession->ClearHotKeys(hotKey); - } - - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - } - -void CT_DataWsSession::DoCmdRestoreDefaultHotKey(const TDesC& aSection) - { - THotKey hotKey; - - TInt err=KErrNone; - if ( !CT_GraphicsUtil::ReadHotKey(*this, aSection, KRestoreDefHotKey(), hotKey) ) - { - ERR_PRINTF2(KLogMissingParameter, &KRestoreDefHotKey()); - SetBlockResult(EFail); - } - else - { - err=iWsSession->RestoreDefaultHotKey(hotKey); - } - - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - - } - -void CT_DataWsSession::DoCmdEventReady(const TDesC& aSection, TInt aAsyncErrorIndex) - { - CActive::TPriority priority=CActive::EPriorityHigh; - CT_GraphicsUtil::ReadPriority(*this, aSection, KRequestEvent(), priority); - - iActiveEventReady->SetPriority(priority); - INFO_PRINTF1(_L("RWsSession::EventReady() call")); - iWsSession->EventReady(&iActiveEventReady->iStatus); - iActiveEventReady->Activate(aAsyncErrorIndex); - IncOutstanding(); - } - -void CT_DataWsSession::DoCmdEventReadyCancel() - { - iWsSession->EventReadyCancel(); - } - -void CT_DataWsSession::DoCmdGetEventL(const TDesC& aSection) - { - TWsEvent event; - - iWsSession->GetEvent(event); - INFO_PRINTF1(_L("RWsSession::GetEvent() call")); - - TWsEvent* store=NULL; - if ( CT_GraphicsUtil::GetWsEventL(*this, aSection, KFldStore(), store) ) - { - *store=event; - } - } - -void CT_DataWsSession::DoCmdPurgePointerEvents() - { - // Execute command and log parameters - INFO_PRINTF3(_L("execute %S::%S()"), &KDataClassname, &KCmdPurgePointerEvents); - iWsSession->PurgePointerEvents(); - } - -void CT_DataWsSession::DoCmdRedrawReady(const TDesC& aSection, TInt aAsyncErrorIndex) - { - CActive::TPriority priority=CActive::EPriorityHigh; - CT_GraphicsUtil::ReadPriority(*this, aSection, KRequestRedraw(), priority); - - iActiveRedrawReady->SetPriority(priority); - INFO_PRINTF1(_L("RWsSession::RedrawReady() call")); - iWsSession->RedrawReady(&iActiveRedrawReady->iStatus); - iActiveRedrawReady->Activate(aAsyncErrorIndex); - IncOutstanding(); - } - -void CT_DataWsSession::DoCmdRedrawReadyCancel() - { - INFO_PRINTF1(_L("RWsSession::RedrawReadyCancel() call")); - iWsSession->RedrawReadyCancel(); - } - -void CT_DataWsSession::DoCmdGetRedrawL(const TDesC& aSection) - { - TWsRedrawEvent redrawEvent; - - iWsSession->GetRedraw(redrawEvent); - INFO_PRINTF1(_L("RWsSession::GetRedraw() call")); - - TWsRedrawEvent* store=NULL; - if ( CT_GraphicsUtil::GetWsRedrawEventL(*this, aSection, KFldStore(), store) ) - { - *store=redrawEvent; - } - } - -void CT_DataWsSession::DoCmdPriorityKeyReady(const TDesC& aSection, TInt aAsyncErrorIndex) - { - CActive::TPriority priority=CActive::EPriorityHigh; - CT_GraphicsUtil::ReadPriority(*this, aSection, KPKPriorityKey(), priority); - - iActivePriorityKeyReady->SetPriority(priority); - INFO_PRINTF1(_L("RWsSession::PriorityKeyReady() call")); - iWsSession->PriorityKeyReady(&iActivePriorityKeyReady->iStatus); - iActivePriorityKeyReady->Activate(aAsyncErrorIndex); - IncOutstanding(); - } - - -void CT_DataWsSession::DoCmdPriorityKeyReadyCancel() - { - INFO_PRINTF1(_L("RWsSession::PriorityKeyReadyCancel() call")); - iWsSession->PriorityKeyReadyCancel(); - } - -void CT_DataWsSession::DoCmdGetPriorityKeyL(const TDesC& aSection) - { - TWsPriorityKeyEvent event; - - iWsSession->GetPriorityKey(event); - INFO_PRINTF1(_L("RWsSession::GetPriorityKey() call")); - - TWsPriorityKeyEvent * store=NULL; - if ( CT_GraphicsUtil::GetWsPriorityKeyEventL(*this, aSection, KFldStore(), store) ) - { - *store=event; - } - } - -void CT_DataWsSession::DoCmdFlush() - { - INFO_PRINTF1(_L("RWsSession::Flush() call")); - iWsSession->Flush(); - } - -void CT_DataWsSession::DoCmdSetAutoFlush(const TDesC& aSection) - { - TBool actualFlushstate; - TBool setFlushState=EFalse; - TBool expectedFlush=EFalse; - - if ( !GetBoolFromConfig(aSection, KAutoFlushState(), setFlushState) ) - { - ERR_PRINTF2(KLogMissingParameter, &KAutoFlushState()); - SetBlockResult(EFail); - } - else - { - actualFlushstate = iWsSession->SetAutoFlush(setFlushState); - INFO_PRINTF2(_L("Flush State: %d"),actualFlushstate); - - if ( !GetBoolFromConfig(aSection, KExpectFlushState(), expectedFlush) ) - { - ERR_PRINTF2(KLogMissingParameter, &KExpectFlushState()); - SetBlockResult(EFail); - } - else - { - if ( actualFlushstate!=expectedFlush) - { - ERR_PRINTF1(_L("SetAutoFlush is not as expected!")); - SetBlockResult(EFail); - } - } - } - } - -void CT_DataWsSession::DoCmdSetKeyboardRepeatRate(const TDesC& aSection) - { - TInt setInputInterval=iKeyboardRepeateRateInitialTime.Int(); - GetIntFromConfig(aSection, KSetKBRepRateInterval(), setInputInterval); - - TInt setInputTime=iKeyboardRepeateRateTime.Int(); - GetIntFromConfig(aSection, KSetKBRepRateTime(), setInputTime); - - TTimeIntervalMicroSeconds32 changeInitialTime(setInputInterval); - TTimeIntervalMicroSeconds32 changeTime(setInputTime); - iWsSession->SetKeyboardRepeatRate(changeInitialTime, changeTime); - } - -void CT_DataWsSession::DoCmdGetKeyboardRepeatRate(const TDesC& aSection) - { - TTimeIntervalMicroSeconds32 actualInitialTime; - TTimeIntervalMicroSeconds32 actualTime; - iWsSession->GetKeyboardRepeatRate(actualInitialTime, actualTime); - INFO_PRINTF2(_L("actual Interval Time: %d"), actualInitialTime.Int()); - INFO_PRINTF2(_L("actual Time: %d"), actualTime.Int()); - - TInt expectInitialTime; - if( GetIntFromConfig(aSection, KWGGetExpectedKBInitialTime(), expectInitialTime)) - { - if ( actualInitialTime.Int()!=expectInitialTime ) - { - ERR_PRINTF1(_L("GetKeyboardRepeatRate is not as expected!")); - SetBlockResult(EFail); - } - } - - TInt expectTime; - if ( GetIntFromConfig(aSection, KWGGetExpectedKBRepeatTime(), expectTime) ) - { - if ( actualTime.Int()!=expectTime) - { - ERR_PRINTF1(_L("GetKeyboardRepeatRate is not as expected!")); - SetBlockResult(EFail); - } - } - - TBool checkWithStore=FALSE; - GetBoolFromConfig(aSection, KFldCheckWithStore(), checkWithStore); - if ( checkWithStore ) - { - if ( iKeyboardRepeateRateInitialTime!=actualInitialTime ) - { - ERR_PRINTF1(_L("GetKeyboardRepeatRate is not as expected!")); - SetBlockResult(EFail); - } - if ( iKeyboardRepeateRateTime!=actualTime ) - { - ERR_PRINTF1(_L("GetKeyboardRepeatRate is not as expected!")); - SetBlockResult(EFail); - } - } - - TBool store=FALSE; - GetBoolFromConfig(aSection, KFldStore(), store); - if ( store ) - { - iKeyboardRepeateRateInitialTime=actualInitialTime; - iKeyboardRepeateRateTime=actualTime; - } - } - -void CT_DataWsSession::DoCmdSetDoubleClick(const TDesC& aSection) - { - TBool dataOk=ETrue; - TInt setMaxInputInterval; - if ( !GetIntFromConfig(aSection, KDblClickInterval(), setMaxInputInterval) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KDblClickInterval()); - SetBlockResult(EFail); - } - - TInt setMaxDistance; - if ( !GetIntFromConfig(aSection, KDblClickDistance(), setMaxDistance) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KDblClickDistance()); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - TTimeIntervalMicroSeconds32 changeMaxIntervalTime(setMaxInputInterval); - iWsSession->SetDoubleClick(changeMaxIntervalTime, setMaxDistance); - } - } - -void CT_DataWsSession::DoCmdGetDoubleClickSettings(const TDesC& aSection) - { - TTimeIntervalMicroSeconds32 actualMaxIntervalValue; - TInt actualMaxDistanceValue; - iWsSession->GetDoubleClickSettings(actualMaxIntervalValue, actualMaxDistanceValue); - INFO_PRINTF2(_L("Maximum interval: %d"), actualMaxIntervalValue.Int()); - INFO_PRINTF2(_L("Maximum distance : %d"), actualMaxDistanceValue); - - TInt expectMaxIntervalValue; - if ( !GetIntFromConfig(aSection, KExpectedDblMaxInitialTime(), expectMaxIntervalValue)) - { - ERR_PRINTF2(KLogMissingParameter, &KExpectedDblMaxInitialTime()); - SetBlockResult(EFail); - } - else - { - if ( actualMaxIntervalValue.Int()!=expectMaxIntervalValue ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - - TInt expectMaxDistanceValue; - if ( !GetIntFromConfig(aSection, KExpectedDblDistance(), expectMaxDistanceValue)) - { - ERR_PRINTF2(KLogMissingParameter, &KExpectedDblDistance()); - SetBlockResult(EFail); - } - else - { - if ( actualMaxDistanceValue!=expectMaxDistanceValue) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - -void CT_DataWsSession::DoCmdNumWindowGroups(const TDesC& aSection) - { - TBool dataOk=ETrue; - TInt previousCount=iNumWinGroup; - -#if defined(SYMBIAN_WSERV_AND_CONE_MULTIPLE_SCREENS) - TInt priority; - if ( GetIntFromConfig(aSection, KWGGivenPriority(), priority) ) - { - TInt screenNumber=0; - if ( !GetIntFromConfig(aSection, KWGSpecifieScrnNo(), screenNumber) ) - { - iNumWinGroup=iWsSession->NumWindowGroups(priority); - INFO_PRINTF2(_L("NumWindowGroups(TInt aPriority):%d"), iNumWinGroup); - } - else - { - iNumWinGroup=iWsSession->NumWindowGroups(screenNumber, priority); - INFO_PRINTF2(_L("NumWindowGroups(TInt aScreenNumber, TInt aPriority):%d"), iNumWinGroup); - } - } - else -#endif - { - iNumWinGroup=iWsSession->NumWindowGroups(); - INFO_PRINTF2(_L("NumWindowGroups():%d"), iNumWinGroup); - } - - if ( dataOk ) - { - TInt difference=0; - if ( GetIntFromConfig(aSection, KExpectedDiff(), difference) ) - { - if ( (iNumWinGroup-previousCount)!=difference ) - { - ERR_PRINTF2(_L("Previous count:%d"), previousCount); - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - } - -void CT_DataWsSession::DoCmdWindowGroupListL(const TDesC& aSection) - { - INFO_PRINTF2(_L("iNumWinGroup:%d"), iNumWinGroup); - RArray numWGListRArray(1); - CArrayFixFlat* numWGListCArray=new (ELeave) CArrayFixFlat(iNumWinGroup); - CleanupStack::PushL(numWGListCArray); - CleanupClosePushL(numWGListRArray); - - //True:CArrayFixFlat Flase:RArray - TInt priority; -#if defined(SYMBIAN_WSERV_AND_CONE_MULTIPLE_SCREENS) - TBool hasPriority=CT_GraphicsUtil::ReadPriorities(*this, aSection, KWGListPriority(), priority); -#else - TBool hasPriority=GetIntFromConfig(aSection, KWGListPriority(), priority); -#endif - - TBool useClassArray; - if ( !GetBoolFromConfig(aSection, KWGUseArray(), useClassArray) ) - { - ERR_PRINTF2(KLogMissingParameter, &KWGUseArray()); - SetBlockResult(EFail); - } - else - { - TInt err=KErrNone; - INFO_PRINTF2(_L("Use Class array:%d"), useClassArray); - - if ( useClassArray ) - { - if( hasPriority ) - { -#if defined(SYMBIAN_WSERV_AND_CONE_MULTIPLE_SCREENS) - TInt theScrnNum; - if( GetIntFromConfig(aSection, KWGScreenNumber(), theScrnNum)) - { - INFO_PRINTF1(_L("WindowGroupList(CArrayFixFlat< TInt >*, TInt, TInt)")); - err=iWsSession->WindowGroupList(numWGListCArray, theScrnNum, priority); - } - else -#endif - { - INFO_PRINTF1(_L("WindowGroupList(TInt, CArrayFixFlat*)")); - err=iWsSession->WindowGroupList(priority, numWGListCArray); - } - } - else - { - INFO_PRINTF1(_L("WindowGroupList(CArrayFixFlat*)")); - err=iWsSession->WindowGroupList(numWGListCArray); - } - } - else - { - if ( hasPriority ) - { - INFO_PRINTF1(_L("WindowGroupList(TInt, RArray*)")); - err=iWsSession->WindowGroupList(priority, &numWGListRArray); - } - else - { - INFO_PRINTF1(_L("WindowGroupList(RArray)")); - err=iWsSession->WindowGroupList(&numWGListRArray); - } - } - - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - else - { - if ( useClassArray ) - { - TInt actual=0; - INFO_PRINTF2(_L("numWGListCArray:%d"), numWGListCArray->Count()); - for ( TInt index=0; indexCount(); ++index ) - { - // Gets a list of identifiers of all window groups in all window server sessions - actual=(*numWGListCArray)[index]; - INFO_PRINTF3(_L("CArrayFixFlat[%d]= :%d"), index, actual); - } - } - else - { - RWsSession::TWindowGroupChainInfo actual; - INFO_PRINTF2(_L("numWGListRArray:%d"), numWGListRArray.Count()); - for ( TInt index=0; indexGetFocusWindowGroup(theScrnNum); - } - else -#endif - { - INFO_PRINTF1(_L("RWsSession::GetFocusWindowGroup() call")); - actual=iWsSession->GetFocusWindowGroup(); - } - INFO_PRINTF2(_L("Window Group Identifier:%d"), actual); - - TInt expected=0; - if ( GetIntFromConfig(aSection, KFldExpected(), expected) ) - { - if ( actual!=expected ) - { - ERR_PRINTF1(_L("Window group identifier is not as expected!")); - SetBlockResult(EFail); - } - } - } - -void CT_DataWsSession::DoCmdGetDefaultOwningWindow(const TDesC& aSection) - { - TInt actual=0; - TBool dataOk=ETrue; - - TInt theScrnNum=0; - if( GetIntFromConfig(aSection, KWGScreenNumber(), theScrnNum)) - { -#if defined(SYMBIAN_WSERV_AND_CONE_MULTIPLE_SCREENS) - INFO_PRINTF1(_L("RWsSession::GetDefaultOwningWindow(TInt aScreenNumber) call")); - actual=iWsSession->GetDefaultOwningWindow(theScrnNum); -#else - dataOk=EFalse; - ERR_PRINTF1(_L("SYMBIAN_WSERV_AND_CONE_MULTIPLE_SCREENS Not Supported")); - SetBlockResult(EFail); -#endif - } - else - { - INFO_PRINTF1(_L("RWsSession::GetDefaultOwningWindow() call")); - actual=iWsSession->GetDefaultOwningWindow(); - } - - if ( dataOk ) - { - INFO_PRINTF2(_L("default owning window:%d"), actual); - - TInt expected=0; - if ( !GetIntFromConfig(aSection, KFldExpected(), expected) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldExpected()); - SetBlockResult(EFail); - } - else - { - if ( actual!=expected) - { - ERR_PRINTF1(_L("Default Owning Window is not as expected!")); - SetBlockResult(EFail); - } - } - } - } - -void CT_DataWsSession::DoCmdSetWindowGroupOrdinalPosition(const TDesC& aSection) - { - TBool dataOk=ETrue; - - TInt inputWGId; - if ( !GetIntFromConfig(aSection, KWGOrdinalId(), inputWGId) ) - { - TPtrC objectName; - if ( GetStringFromConfig(aSection, KFldWindowGroup(), objectName) ) - { - INFO_PRINTF1(_L("Get CT_DataWindowGroup's wrapper. ")); - CDataWrapperBase* wrapper = NULL; - wrapper = static_cast(GetDataWrapperL(objectName)); - if(wrapper) - { - inputWGId=wrapper->GetIdentifier(); - INFO_PRINTF2(_L("Window group's identifier is: %d"), inputWGId); - } - else - { - dataOk=EFalse; - ERR_PRINTF1(_L("Window group's wrapper pointer is NULL")); - SetBlockResult(EFail); - } - } - else - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KWGOrdinalId()); - SetBlockResult(EFail); - } - } - - TInt inputWGOrdinalPos; - if ( !GetIntFromConfig(aSection, KWGOrdinalPosition(), inputWGOrdinalPos) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KWGOrdinalPosition()); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - TInt err=iWsSession->SetWindowGroupOrdinalPosition(inputWGId, inputWGOrdinalPos); - - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - } - } - -void CT_DataWsSession::DoCmdGetWindowGroupClientThreadId(const TDesC& aSection) - { - TInt inputWindowGroupIdentifier=0; - if ( !GetIntFromConfig(aSection, KWindowGroupIdentifier(), inputWindowGroupIdentifier) ) - { - ERR_PRINTF2(KLogMissingParameter, &KWindowGroupIdentifier()); - SetBlockResult(EFail); - } - else - { - TThreadId threadId; - TInt err=iWsSession->GetWindowGroupClientThreadId(inputWindowGroupIdentifier, threadId); - TUint64 actual=threadId.Id(); - INFO_PRINTF1(_L("RWsSession::GetWindowGroupClientThreadId")); - INFO_PRINTF2(_L("actual ThreadId:%d"), actual); - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - } - } - -void CT_DataWsSession::DoCmdGetWindowGroupHandle(const TDesC& aSection) - { - TInt inputWGId=0; - if ( !GetIntFromConfig(aSection, KInputWGId(), inputWGId) ) - { - ERR_PRINTF2(KLogMissingParameter, &KInputWGId()); - SetBlockResult(EFail); - } - else - { - TInt actual=iWsSession->GetWindowGroupHandle(inputWGId); - INFO_PRINTF2(_L("Window group handle :%d"), actual); - } - } - -void CT_DataWsSession::DoCmdGetWindowGroupOrdinalPriority(const TDesC& aSection) - { - TInt inputWGId=0; - if ( !GetIntFromConfig(aSection, KWGOrdinalPriority(), inputWGId)) - { - ERR_PRINTF2(KLogMissingParameter, &KWGOrdinalPriority()); - SetBlockResult(EFail); - } - else - { - TInt actual=iWsSession->GetWindowGroupOrdinalPriority(inputWGId); - INFO_PRINTF2(_L("Window Group Ordinal Priority:%d"), actual); - - TInt expected; - if ( GetIntFromConfig(aSection, KFldExpected(), expected) ) - { - if ( actual!=expected ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - } - -void CT_DataWsSession::DoCmdGetWindowGroupNameFromIdentifier(const TDesC& aSection) - { - TInt inquiredWGId=0; - TInt rtnStatus; - - if ( !GetIntFromConfig(aSection, KWGinquiredId(), inquiredWGId) ) - { - ERR_PRINTF2(KLogMissingParameter, &KWGinquiredId()); - SetBlockResult(EFail); - } - else - { - TBuf storeAWindowName; - INFO_PRINTF2(_L("Window Group inquired Id:%d"),inquiredWGId); - rtnStatus= iWsSession->GetWindowGroupNameFromIdentifier(inquiredWGId, storeAWindowName); - INFO_PRINTF2(_L("return status:%d"),rtnStatus); - - if (rtnStatus==KErrNone) - { - INFO_PRINTF2(_L("the length of buffer:%d"),storeAWindowName.Length()); - INFO_PRINTF1(_L("the name of window group:")); - INFO_PRINTF1(storeAWindowName); - } - else - { - ERR_PRINTF1(_L("GetWindowGroupNameFromIdentifier function is fail!")); - SetBlockResult(EFail); - } - } - } - -void CT_DataWsSession::DoCmdFindWindowGroupIdentifier(const TDesC& aSection) - { - TInt previousId=iWindowGroupIdentifier; - GetIntFromConfig(aSection, KFindWGPreId(), previousId); - INFO_PRINTF2(_L("previous window group id:%d"), previousId); - - TInt nextId; - TPtrC matchString; - if ( GetStringFromConfig(aSection, KMatchWGString(), matchString) ) - { - TInt offset=0; - GetIntFromConfig(aSection, KFldOffset(), offset); - nextId=iWsSession->FindWindowGroupIdentifier(previousId, matchString, offset); - } - else - { - RThread proc; - TThreadId threadId=proc.Id(); - - TInt id; - if ( GetIntFromConfig(aSection, KThreadId(), id) ) - { - threadId=id; - } - nextId=iWsSession->FindWindowGroupIdentifier(previousId, threadId); - } - - if ( nextId<0 ) - { - ERR_PRINTF1(_L("failed to find Window group name function !")); - SetError(nextId); - } - else - { - iWindowGroupIdentifier=nextId; - } - } - -void CT_DataWsSession::DoCmdFetchMessage(const TDesC& aSection) - { - TUid uid; - TPtr8 params(NULL,0); - TWsEvent event; - TInt err=iWsSession->FetchMessage(uid, params, event); - TInt expected; - if ( GetIntFromConfig(aSection, KFldExpected(), expected) ) - { - if ( err!=expected ) - { - ERR_PRINTF2(KLogError, err); - SetBlockResult(EFail); - } - } - } - -void CT_DataWsSession::DoCmdSetShadowVector(const TDesC& aSection) - { - // Get test data for command input parameter(s) - TPoint setPtShdwVet; - if ( !GetPointFromConfig(aSection, KSetShadowVec(), setPtShdwVet) ) - { - ERR_PRINTF2(KLogMissingParameter, &KSetShadowVec()); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute SetShadowVector(const TPoint &aVector)")); - iWsSession->SetShadowVector(setPtShdwVet); - } - } - -void CT_DataWsSession::DoCmdShadowVector(const TDesC& aSection) - { - // Get test data for command input parameter(s) - TPoint actual=iWsSession->ShadowVector(); - INFO_PRINTF3(_L("execute ShadowVector() x=%d y=%d"), actual.iX, actual.iY); - - TPoint expected; - if ( !GetPointFromConfig(aSection, KExpectShadowVector(), expected) ) - { - ERR_PRINTF2(KLogMissingParameter, &KExpectShadowVector()); - SetBlockResult(EFail); - } - else - { - if ( actual!=expected ) - { - ERR_PRINTF1(_L("The current value of the shadow vector is not as expected!")); - SetBlockResult(EFail); - } - } - } - -void CT_DataWsSession::DoCmdSetBackgroundColor(const TDesC& aSection) - { - TRgb datColour; - if ( !GetRgbFromConfig(aSection, KBGColour, datColour) ) - { - ERR_PRINTF2(KLogMissingParameter, &KBGColour()); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute SetColor(TRgb)")); - iWsSession->SetBackgroundColor(datColour); - } - } - -void CT_DataWsSession::DoCmdGetBackgroundColor(const TDesC& aSection) - { - // Get test data for command input parameter(s) - TRgb actualBgColour=iWsSession->GetBackgroundColor(); - - TRgb expectBgColour; - if ( !GetRgbFromConfig(aSection, KExpectBgColour(), expectBgColour) ) - { - ERR_PRINTF2(KLogMissingParameter, &KExpectBgColour()); - SetBlockResult(EFail); - } - else - { - if ( actualBgColour!=expectBgColour ) - { - ERR_PRINTF1(_L("The current value of the shadow vector is not as expected!")); - SetBlockResult(EFail); - } - } - } - -void CT_DataWsSession::DoCmdSetSystemPointerCursor(const TDesC& aSection) - { - RWsPointerCursor sysPointerCursor=RWsPointerCursor(*iWsSession); - - INFO_PRINTF1(_L("RWsSession::SetSystemPointerCursor() call")); - TInt inputCursorNumber=0; - if ( !GetIntFromConfig(aSection, KInputCursorNumber(), inputCursorNumber) ) - { - ERR_PRINTF2(KLogMissingParameter, &KExpectBgColour()); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF2(_L("CursorNumber:%d"),inputCursorNumber); - TInt err=iWsSession->SetSystemPointerCursor(sysPointerCursor,inputCursorNumber); - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - } - } - -void CT_DataWsSession::DoCmdClearSystemPointerCursor(const TDesC& aSection) - { - TInt inputCursorNumber=0; - - if ( !GetIntFromConfig(aSection, KInputCursorNumber(), inputCursorNumber) ) - { - ERR_PRINTF2(KLogMissingParameter, &KInputCursorNumber()); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF2(_L("CursorNumber:%d"),inputCursorNumber); - INFO_PRINTF1(_L("RWsSession::ClearSystemPointerCursor")); - iWsSession->ClearSystemPointerCursor(inputCursorNumber); - } - } - -void CT_DataWsSession::DoCmdClaimSystemPointerCursorList() - { - INFO_PRINTF1(_L("RWsSession::ClaimSystemPointerCursorList() call")); - TInt err=iWsSession->ClaimSystemPointerCursorList(); - - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - } - -void CT_DataWsSession::DoCmdFreeSystemPointerCursorList() - { - INFO_PRINTF1(_L("RWsSession::FreeSystemPointerCursorList() call")); - iWsSession->FreeSystemPointerCursorList(); - } - -void CT_DataWsSession::DoCmdSetCustomTextCursorL(const TDesC& aSection) - { - TBool dataOk=ETrue; - - TInt identifier; - if ( !GetIntFromConfig(aSection, KFldIdentifier(), identifier) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldIdentifier); - SetBlockResult(EFail); - } - - CArrayFixFlat* spriteMember = new (ELeave) CArrayFixFlat(1); - if ( !CT_GraphicsUtil::GetSpriteMemberListL(*this, aSection, KFldSpriteMember, *spriteMember) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldSpriteMember); - SetBlockResult(EFail); - } - TArray spriteArray = spriteMember->Array(); - - TSpriteFlags spriteFlags; - if ( !CT_GraphicsUtil::ReadSpriteFlags(*this, aSection, KFldSpriteFlags, spriteFlags) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldSpriteFlags); - SetBlockResult(EFail); - } - - RWsSession::TCustomTextCursorAlignment alignment; - if ( !CT_GraphicsUtil::ReadCustomTextCursorAlignment(*this, aSection, KFldAlignment, alignment) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldAlignment); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - INFO_PRINTF1(_L("SetCustomTextCursor(TInt, TArray< TSpriteMember >, TUint, TCustomTextCursorAlignment)")); - TInt err=iWsSession->SetCustomTextCursor(identifier, spriteArray, (TUint)spriteFlags, alignment); - - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - } - } - -void CT_DataWsSession::DoCmdResourceCount(const TDesC& aSection) - { - TInt resourceCount=iWsSession->ResourceCount(); - INFO_PRINTF2(_L("RWsSession::ResourceCount() %d"), resourceCount); - - // get expected difference from parameters - TInt expectedDifference; - if ( GetIntFromConfig(aSection, KExpectedDiff(), expectedDifference) ) - { - TInt actualDifference=resourceCount-iResourceCount; - if ( actualDifference != expectedDifference ) - { - ERR_PRINTF3(_L("Resource count difference is not as expected! expected: %d, actual: %d"), expectedDifference, actualDifference); - SetBlockResult(EFail); - } - } - iResourceCount = resourceCount; - } - -void CT_DataWsSession::DoCmdPasswordEntered() - { - INFO_PRINTF1(_L("RWsSession::PasswordEntered() call")); - iWsSession->PasswordEntered(); - } - -void CT_DataWsSession::DoCmdComputeMode(const TDesC& aSection) - { - RWsSession::TComputeMode mode; - - INFO_PRINTF1(_L("RWsSession::ComputeMode() call")); - if ( !CT_GraphicsUtil::ReadComputeMode(*this, aSection, KComputeMode(), mode) ) - { - ERR_PRINTF2(KLogMissingParameter, &KComputeMode()); - SetBlockResult(EFail); - } - else - { - iWsSession->ComputeMode(mode); - } - } - - -void CT_DataWsSession::DoCmdHeapCount(const TDesC& aSection) - { - TInt expectedCount; - TInt heapCount; - - if ( !GetIntFromConfig(aSection, KExpectedHeapCount(), expectedCount) ) - { - ERR_PRINTF2(KLogMissingParameter, &KExpectedHeapCount()); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF2(_L("expected count: %d"), expectedCount); - INFO_PRINTF1(_L("RWsSession::HeapCount() call")); - heapCount=iWsSession->HeapCount(); - INFO_PRINTF2(_L("RWsSession::HeapCount(): %d"), heapCount); - if ( expectedCount > heapCount ) - { - ERR_PRINTF3(_L("Heap count is lower than expected! expected: %d, actual: %d"), expectedCount, heapCount); - SetBlockResult(EFail); - } - } - } - -void CT_DataWsSession::DoCmdSetModifierState(const TDesC& aSection) - { - TBool dataOk=ETrue; - - TEventModifier eventModifier; - if ( !CT_GraphicsUtil::ReadEventModifier(*this, aSection, KInputPermanentModifier(), eventModifier) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KInputPermanentModifier()); - SetBlockResult(EFail); - } - - TModifierState modifierState; - if( !CT_GraphicsUtil::ReadModifierState(*this, aSection, KInputPermanentModifierState(), modifierState) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KInputPermanentModifierState()); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - INFO_PRINTF1(_L("RWsSession::SetModifierState")); - TInt err = iWsSession->SetModifierState(eventModifier, modifierState); - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - } - } - -void CT_DataWsSession::DoCmdGetModifierState(const TDesC& aSection) - { - TInt actual=iWsSession->GetModifierState(); - INFO_PRINTF2(_L("GetModifierState:%d"), actual); - - TUint expected=0; - if ( CT_GraphicsUtil::ReadEventModifier(*this, aSection, KFldExpected(), expected) ) - { - if ( actual!=(TInt)expected ) - { - ERR_PRINTF1(_L("ModifierState is not as expected!")); - SetBlockResult(EFail); - } - } - } - -void CT_DataWsSession::DoCmdRequestOffEventsL(const TDesC& aSection) - { - TBool eventOffOn; - if ( !GetBoolFromConfig(aSection, KSetEventOffOn(), eventOffOn) ) - { - ERR_PRINTF2(KLogMissingParameter, &KSetEventOffOn()); - SetBlockResult(EFail); - } - else - { - RWindowTreeNode* treeNodeObj=NULL; - TPtrC treeNodeObjectName; - if ( GetStringFromConfig(aSection, KWTreeNodeObj(), treeNodeObjectName) ) - { - treeNodeObj = static_cast(GetDataObjectL(treeNodeObjectName)); - } - - INFO_PRINTF1(_L("RWsSession::RequestOffEvents(TBool, RWindowTreeNode*) call")); - TInt err=iWsSession->RequestOffEvents(eventOffOn, treeNodeObj); - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - } - } - -void CT_DataWsSession::DoCmdGetDefModeMaxNumColors(const TDesC& aSection) - { - TInt colors; - TInt grays; - - INFO_PRINTF1(_L("RWsSession::GetDefModeMaxNumColors(TInt &aColor, TInt &aGray) call")); - - TDisplayMode displayMode; -#if defined(SYMBIAN_WSERV_AND_CONE_MULTIPLE_SCREENS) - TInt theScrnNum=0; - if ( GetIntFromConfig(aSection, KWGScreenNumber(), theScrnNum) ) - { - displayMode=iWsSession->GetDefModeMaxNumColors(theScrnNum, colors, grays); - } - else -#endif - { - displayMode=iWsSession->GetDefModeMaxNumColors(colors, grays); - } - INFO_PRINTF4(_L("RWsSession::GetDefModeMaxNumColors() DisplayMode:%d Colors:%d Grays:%d"), displayMode, colors, grays); - - TDisplayMode expectedDisplayMode; - if ( CT_GraphicsUtil::ReadDisplayMode(*this, aSection, KDefDisplayMode(), expectedDisplayMode) ) - { - if ( expectedDisplayMode!=displayMode ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - TInt expected=0; - if ( GetIntFromConfig(aSection, KDefModeMaxNumColor(), expected) ) - { - if ( expected!=colors ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - if ( GetIntFromConfig(aSection, KDefModeMaxNumGray(), expected) ) - { - if ( expected!=grays ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - -void CT_DataWsSession::DoCmdGetColorModeListL(const TDesC& aSection) - { - TBool nullPointer=EFalse; - GetBoolFromConfig(aSection, KFldNullPointer(), nullPointer); - - CArrayFixFlat* modeList=NULL; - if ( !nullPointer ) - { - modeList=new (ELeave) CArrayFixFlat(iColorModeCount); - } - CleanupStack::PushL(modeList); - - TBool dataOk=ETrue; - TInt err=KErrNone; -#if defined(SYMBIAN_WSERV_AND_CONE_MULTIPLE_SCREENS) - TInt inputScreenNo=0; - if ( GetIntFromConfig(aSection, KInputScrnNo(), inputScreenNo)) - { - INFO_PRINTF1(_L("RWsSession::GetColorModeList(TInt aScreenNumber, CArrayFixFlat< TInt > *aModeList) call")); - err=iWsSession->GetColorModeList(inputScreenNo, modeList); - } - else -#endif - { - INFO_PRINTF1(_L("RWsSession::GetColorModeList(CArrayFixFlat< TInt > *aModeList) call")); - err=iWsSession->GetColorModeList(modeList); - } - - if ( errCount()); - for ( TInt index=0; indexCount(); ++index ) - { - INFO_PRINTF2(_L("Content of Color Mode List:%d"), (*modeList)[index]); - } - } - } - } - - CleanupStack::PopAndDestroy(modeList); - } - -void CT_DataWsSession::DoCmdSetPointerCursorArea(const TDesC& aSection) - { - // Get test data for command input parameter(s) - TRect setRectArea; - if ( !GetRectFromConfig(aSection, KPtrCurPosArea, setRectArea) ) - { - ERR_PRINTF2(KLogMissingParameter, &KPtrCurPosArea()); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute SetPointerCursorPosition(TPoint)")); - - TInt setScrnSizeMode; - if ( !GetIntFromConfig(aSection, KSetScrnSizeMode, setScrnSizeMode) ) - { - iWsSession->SetPointerCursorArea(setRectArea); - } - else - { - iWsSession->SetPointerCursorArea(setScrnSizeMode,setRectArea); - } - } - } - -void CT_DataWsSession::DoCmdPointerCursorArea(const TDesC& aSection) - { - // Get test data for command input parameter(s) - TRect actual; - TInt theScreenSizeMode=0; - if ( !GetIntFromConfig(aSection, KSetScrnSizeMode, theScreenSizeMode) ) - { - actual=iWsSession->PointerCursorArea(); - LogRect(_L("PointerCursorArea()"), actual); - } - else - { - actual=iWsSession->PointerCursorArea(theScreenSizeMode); - LogRect(_L("PointerCursorArea(TInt)"), actual); - } - - TRect expected; - if ( !GetRectFromConfig(aSection, KPtrCurPosArea, expected) ) - { - ERR_PRINTF2(KLogMissingParameter, &KPtrCurPosArea); - SetBlockResult(EFail); - } - else - { - if ( actual!=expected ) - { - ERR_PRINTF1(KLogNotExpectedValue); - SetBlockResult(EFail); - } - } - } - - -void CT_DataWsSession::DoCmdSetPointerCursorMode(const TDesC& aSection) - { - TPointerCursorMode mode; - if ( !CT_GraphicsUtil::ReadPointerCursorMode(*this, aSection, KSetPtrCurMode(), mode) ) - { - ERR_PRINTF2(KLogMissingParameter, &KSetPtrCurMode()); - SetBlockResult(EFail); - } - else - { - iWsSession->SetPointerCursorMode(mode); - } - } - -void CT_DataWsSession::DoCmdSetClientCursorMode(const TDesC& aSection) - { - TPointerCursorMode mode; - if ( !CT_GraphicsUtil::ReadPointerCursorMode(*this, aSection, KSetCltCurMode(), mode) ) - { - ERR_PRINTF2(KLogMissingParameter, &KSetCltCurMode()); - SetBlockResult(EFail); - } - else - { - iWsSession->SetClientCursorMode(mode); - } - } - -void CT_DataWsSession::DoCmdPointerCursorMode(const TDesC& aSection) - { - INFO_PRINTF1(_L("RWsSession::PointerCursorMode() call")); - TPointerCursorMode actual=iWsSession->PointerCursorMode(); - INFO_PRINTF2(_L("actual Pointer Cursor Mode:%d"), actual); - - TPointerCursorMode expected; - if ( !CT_GraphicsUtil::ReadPointerCursorMode(*this, aSection, KFldExpected(), expected) ) - { - ERR_PRINTF2(KLogMissingParameter, &KExpectPtrCursorMode()); - SetBlockResult(EFail); - } - else - { - if ( actual!=expected ) - { - ERR_PRINTF1(_L("Pointer cursor mode is not as expected!")); - SetBlockResult(EFail); - } - } - } - -void CT_DataWsSession::DoCmdSetDefaultSystemPointerCursor(const TDesC& aSection) - { - TInt inputDefCursorNumber=0; - INFO_PRINTF1(_L("RWsSession::SetDefaultSystemPointerCursor() call")); - - if ( !GetIntFromConfig(aSection, KInputDefaultCursorNumber(), inputDefCursorNumber)) - { - ERR_PRINTF2(KLogMissingParameter, &KInputDefaultCursorNumber()); - SetBlockResult(EFail); - } - else - { - iWsSession->SetDefaultSystemPointerCursor(inputDefCursorNumber); - } - } - -void CT_DataWsSession::DoCmdClearDefaultSystemPointerCursor() - { - INFO_PRINTF1(_L("RWsSession::ClearDefaultSystemPointerCursor() call")); - iWsSession->ClearDefaultSystemPointerCursor(); - } - -void CT_DataWsSession::DoCmdSetPointerCursorPosition(const TDesC& aSection) - { - // Get test data for command input parameter(s) - TPoint ptrCurPost; - if ( !GetPointFromConfig(aSection, KSetPtrCurPosValue, ptrCurPost) ) - { - ERR_PRINTF2(KLogMissingParameter, &KSetPtrCurPosValue); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute SetPointerCursorPosition(TPoint)")); - iWsSession->SetPointerCursorPosition(ptrCurPost); - } - } - -void CT_DataWsSession::DoCmdPointerCursorPosition(const TDesC& aSection) - { - // Get test data for command input parameter(s) - TPoint actualPtrCurPost=iWsSession->PointerCursorPosition(); - - TPoint expectPtrCurPost; - if ( !GetPointFromConfig(aSection, KTPoint, expectPtrCurPost) ) - { - ERR_PRINTF2(KLogMissingParameter, &KTPoint); - SetBlockResult(EFail); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(_L("execute SetPointerCursorPosition(TPoint)")); - if ((expectPtrCurPost.iX!=expectPtrCurPost.iX)||(expectPtrCurPost.iY!=expectPtrCurPost.iY)) - { - ERR_PRINTF1(_L("The cursor position is not as expected!")); - SetBlockResult(EFail); - } - } - } - -void CT_DataWsSession::DoCmdSetDefaultFadingParameters(const TDesC& aSection) - { - TBool dataOk=ETrue; - TInt setBlackMap; - TInt setWhiteMap; - - if ( !GetIntFromConfig(aSection, KSetDefblackMapFading(), setBlackMap) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KSetDefblackMapFading); - SetBlockResult(EFail); - } - - if ( !GetIntFromConfig(aSection, KSetDefwhiteMapFading(), setWhiteMap) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KSetDefwhiteMapFading); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - iWsSession->SetDefaultFadingParameters(setBlackMap, setWhiteMap); - } - } - -void CT_DataWsSession::DoCmdPrepareForSwitchOff() - { - INFO_PRINTF1(_L("RWsSession::PrepareForSwitchOff() call")); - iWsSession->PrepareForSwitchOff(); - } - - -void CT_DataWsSession::DoCmdSetBufferSizeL(const TDesC& aSection) - { - TInt theBuffersize; - - if ( !GetIntFromConfig(aSection, KSetBuffer(), theBuffersize) ) - { - ERR_PRINTF2(KLogMissingParameter, &KSetBuffer); - SetBlockResult(EFail); - } - else - { - iWsSession->SetBufferSizeL(theBuffersize); - INFO_PRINTF1(_L("RWsSession::SetBufferSizeL")); - } - } - -void CT_DataWsSession::DoCmdSetMaxBufferSizeL(const TDesC& aSection) - { - TInt theMaxBuffersize; - - if ( !GetIntFromConfig(aSection, KSetMaxBuffer(), theMaxBuffersize) ) - { - ERR_PRINTF2(KLogMissingParameter, &KSetBuffer); - SetBlockResult(EFail); - } - else - { - iWsSession->SetMaxBufferSizeL(theMaxBuffersize); - INFO_PRINTF1(_L("RWsSession::SetMaxBufferSizeL")); - } - } - -void CT_DataWsSession::DoCmdSetSystemFaded(const TDesC& aSection) - { - TBool systemFadOffOn; - TInt blackMap; - TInt whiteMap; - - if ( !GetBoolFromConfig(aSection, KSetSysFading(), systemFadOffOn) ) - { - ERR_PRINTF2(KLogMissingParameter, &KSetSysFading()); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF2(_L("the status of fad window :%d"),systemFadOffOn); - if( GetIntFromConfig(aSection, KSetblackMapFading(), blackMap)) - { - if ( !GetIntFromConfig(aSection, KSetwhiteMapFading(), whiteMap) ) - { - ERR_PRINTF2(KLogMissingParameter, &KSetwhiteMapFading); - SetBlockResult(EFail); - } - else - { - iWsSession->SetSystemFaded(systemFadOffOn,blackMap,whiteMap); - INFO_PRINTF1(_L("RWsSession::SetSystemFaded")); - } - } - else - { - iWsSession->SetSystemFaded(systemFadOffOn); - INFO_PRINTF1(_L("RWsSession::SetSystemFaded")); - } - } - } - -void CT_DataWsSession::DoCmdSetFocusScreen(const TDesC& aSection) - { - TInt theScreenNo; - if ( !GetIntFromConfig(aSection, KSetFocusScreen(), theScreenNo) ) - { - ERR_PRINTF2(KLogMissingParameter, &KSetFocusScreen()); - SetBlockResult(EFail); - } - else - { - iWsSession->SetFocusScreen(theScreenNo); - INFO_PRINTF1(_L("RWsSession::SetFocusScreen")); - } - } - -void CT_DataWsSession::DoCmdGetFocusScreen(const TDesC& aSection) - { - TInt actual=iWsSession->GetFocusScreen(); - INFO_PRINTF2(_L("RWsSession::GetFocusScreen()=%d"), actual); - - TInt expected; - if ( !GetIntFromConfig(aSection, KFldExpected(), expected) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldExpected()); - SetBlockResult(EFail); - } - else - { - if ( actual!=expected ) - { - ERR_PRINTF1(_L("GetFocusScreen is not as expected!")); - SetBlockResult(EFail); - } - } - } - -void CT_DataWsSession::DoCmdClearAllRedrawStores() - { - INFO_PRINTF1(_L("RWsSession::ClearAllRedrawStores() call")); - iWsSession->ClearAllRedrawStores(); - } - - -void CT_DataWsSession::DoCmdLogCommand(const TDesC& aSection) - { - RWsSession::TLoggingCommand inputCommand; - if ( !CT_GraphicsUtil::ReadLoggingCommand(*this, aSection, KLogCommand(), inputCommand) ) - { - ERR_PRINTF2(KLogMissingParameter, &KLogCommand()); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("RWsSession::LogCommand() call")); - iWsSession->LogCommand(inputCommand); - } - } - - -void CT_DataWsSession::DoCmdLogMessage(const TDesC& aSection) - { - TPtrC theMessage; - - if ( !GetStringFromConfig(aSection, KLogMessage(), theMessage) ) - { - ERR_PRINTF2(KLogMissingParameter, &KLogMessage()); - SetBlockResult(EFail); - } - else - { - INFO_PRINTF1(_L("RWsSession::LogMessage() call")); - iWsSession->LogMessage(theMessage); - } - } - -#if defined(SYMBIAN_WSERV_AND_CONE_MULTIPLE_SCREENS) -void CT_DataWsSession::DoCmdNumberOfScreens(const TDesC& aSection) - { - TInt actual=iWsSession->NumberOfScreens(); - INFO_PRINTF2(_L("NumberOfScreens:%d"), actual); - - TInt expected=0; - if ( !GetIntFromConfig(aSection, KFldExpected(), expected) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldExpected()); - SetBlockResult(EFail); - } - else - { - if ( actual!=expected ) - { - ERR_PRINTF1(_L("NumberOfScreens is not as expected!")); - SetBlockResult(EFail); - } - } - } -#else -void CT_DataWsSession::DoCmdNumberOfScreens(const TDesC& /*aSection*/) - { - ERR_PRINTF1(_L("SYMBIAN_WSERV_AND_CONE_MULTIPLE_SCREENS Not Supported")); - SetBlockResult(EFail); - } -#endif - -void CT_DataWsSession::DoCmdSimulateRawEvent(const TDesC& aSection) - { - TBool dataOk=ETrue; - TRawEvent event; - - TRawEvent::TType type=TRawEvent::ENone; - if ( !CT_GraphicsUtil::ReadType(*this, aSection, KFldType(), type) ) - { - dataOk=EFalse; - ERR_PRINTF2(_L("Missing parameter %S"), &KFldType()); - SetBlockResult(EFail); - } - else - { - event.Set(type); - } - - TStdScanCode stdScanCode; - if ( CT_GraphicsUtil::ReadStdScanCode(*this, aSection, KFldStdScanCode(), stdScanCode) ) - { - event.Set(type, stdScanCode); - } - - TInt deviceNumber; - if ( GetIntFromConfig(aSection, KFldDeviceNumber, deviceNumber) ) - { - event.SetDeviceNumber(deviceNumber); - } - - TPoint pointerPos(0,0); - if ( GetPointFromConfig(aSection, KFldPos, pointerPos) ) - { - event.Set(type, pointerPos.iX, pointerPos.iY); - } - - TBool tip; - if ( GetBoolFromConfig(aSection, KFldTip, tip) ) - { - event.SetTip(tip); - } - - if ( dataOk ) - { - INFO_PRINTF1(_L("RWsSession::SimulateRawEvent(TRawEvent) call")); - iWsSession->SimulateRawEvent(event); - } - } - -void CT_DataWsSession::DoCmdSimulateKeyEvent(const TDesC& aSection) - { - TBool dataOk=ETrue; - - TKeyCode keyCode; - if ( !CT_GraphicsUtil::ReadKeyCode(*this, aSection, KFldKeyCode(), keyCode) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldKeyCode()); - SetBlockResult(EFail); - } - - TUint modifiers=0; - CT_GraphicsUtil::ReadEventModifier(*this, aSection, KFldModifiers(), modifiers); - - TInt repeats=0; - GetIntFromConfig(aSection, KFldRepeats(), repeats); - - if ( dataOk ) - { - TKeyEvent event; - - event.iCode=keyCode; - event.iScanCode=keyCode; - event.iModifiers=modifiers; - event.iRepeats=repeats; - INFO_PRINTF1(_L("RWsSession::SimulateKeyEvent(TKeyEvent) call")); - iWsSession->SimulateKeyEvent(event); - } - } - -/** - Virtual RunL - Called on completion of an asynchronous command - @see MTPActiveCallback - @param aActive Active Object that RunL has been called on - @pre N/A - @post N/A - @leave system wide error code -*/ -void CT_DataWsSession::RunL(CActive* aActive, const TInt aIndex) - { - if ( aActive==iActiveEventReady ) - { - RunEventReady(aIndex); - } - else if ( aActive==iActivePriorityKeyReady ) - { - RunPriorityKeyReady(aIndex); - } - else if ( aActive==iActiveRedrawReady ) - { - RunRedrawReady(aIndex); - } - else - { - ERR_PRINTF1(_L("Stray signal")); - SetBlockResult(EFail); - } - DecOutstanding(); - } - -/** - Virtual DoCancel - Request to cancel the asynchronous command - @see - MTPActiveCallback - @param aActive Active Object that DoCancel has been called on - @pre - N/A - @post - N/A - @leave system wide error code -*/ -void CT_DataWsSession::DoCancel(CActive* aActive, const TInt aIndex) - { - if ( aActive==iActiveEventReady ) - { - DoCancelEventReady(aIndex); - } - else if ( aActive==iActivePriorityKeyReady ) - { - DoCancelPriorityKeyReady(aIndex); - } - else if ( aActive==iActiveRedrawReady ) - { - DoCancelRedrawReady(aIndex); - } - else - { - ERR_PRINTF1(_L("Stray signal")); - SetBlockResult(EFail); - } - DecOutstanding(); - } - -void CT_DataWsSession::RunEventReady(const TInt aIndex) - { - TInt err=iActiveEventReady->iStatus.Int(); - INFO_PRINTF2(_L("RunEventReady %d"), err); - if ( err!=KErrNone ) - { - ERR_PRINTF2(_L("RunL Error %d"), err); - SetAsyncError(aIndex, err); - } - } - -void CT_DataWsSession::DoCancelEventReady(const TInt /*aIndex*/) - { - } - -void CT_DataWsSession::RunPriorityKeyReady(const TInt aIndex) - { - TInt err=iActivePriorityKeyReady->iStatus.Int(); - INFO_PRINTF2(_L("RunPriorityKeyReady %d"), err); - if ( err!=KErrNone ) - { - ERR_PRINTF2(_L("RunL Error %d"), err); - SetAsyncError(aIndex, err); - } - } - -void CT_DataWsSession::DoCancelPriorityKeyReady(const TInt /*aIndex*/) - { - } - -void CT_DataWsSession::RunRedrawReady(const TInt aIndex) - { - TInt err=iActiveRedrawReady->iStatus.Int(); - INFO_PRINTF2(_L("RunRedrawReady %d"), err); - if ( err!=KErrNone ) - { - ERR_PRINTF2(_L("RunL Error %d"), err); - SetAsyncError(aIndex, err); - } - } - -void CT_DataWsSession::DoCancelRedrawReady(const TInt /*aIndex*/) - { - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/src/T_DataWsSprite.cpp --- a/graphicsapitest/graphicssvs/wserv/src/T_DataWsSprite.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,265 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -#include "T_GraphicsUtil.h" -#include "T_DataWsSprite.h" - -/*@{*/ -//Commands -_LIT(KCmdNew, "new"); -_LIT(KCmdConstruct, "Construct"); -_LIT(KCmdSetPosition, "SetPosition"); - -// Fields -_LIT(KFldWs, "ws"); -_LIT(KFldFlag, "flag"); -_LIT(KFldPoint, "pos"); -_LIT(KFldWindow, "win"); -/// Logging -_LIT(KLogError, "Error=%d"); -_LIT(KLogMissingParameter, "Missing parameter '%S'"); - -_LIT(KLogNew, "execute new RWsSprite()"); -_LIT(KLogNew2, "execute new RWsSprite(RWsSession)"); -_LIT(KLogConstruct, "execute Construct(RWindowTreeNode, const TPoint, TInt)"); -_LIT(KLogSetPosition, "execute SetPosition(TPoint)"); -/*@}*/ - -////////////////////////////////////////////////////////////////////// -// Construction/Destruction -////////////////////////////////////////////////////////////////////// - -CT_DataWsSprite::CT_DataWsSprite() -: CT_DataWsSpriteBase(),iWsSprite(NULL) - { - } - -CT_DataWsSprite* CT_DataWsSprite::NewL() - { - CT_DataWsSprite* ret=new (ELeave) CT_DataWsSprite(); - CleanupStack::PushL(ret); - ret->ConstructL(); - CleanupStack::Pop(ret); - return ret; - } - -void CT_DataWsSprite::ConstructL() - { - } - -CT_DataWsSprite::~CT_DataWsSprite() - { - DestroyData(); - } - -/** - * Called by TEF framework to set object. - * - * @param: None - * - * @return: None - */ -void CT_DataWsSprite::SetObjectL(TAny* aAny) - { - DestroyData(); - iWsSprite = static_cast (aAny); - } - -/** - * Called by TEF framework to disown the object. - * - * @param: None - * - * @return: None - */ -void CT_DataWsSprite::DisownObjectL() - { - iWsSprite = NULL; - } - -/** - * Destroy the object which has been constructed. - * - * @param: None - * - * @return: None - */ -void CT_DataWsSprite::DestroyData() - { - delete iWsSprite; - iWsSprite = NULL; - } - -/** -* Process a command read from the ini file -* -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* @param aAsyncErrorIndex index of command. used for async calls -* -* @return ETrue if the command is processed -*/ -TBool CT_DataWsSprite::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex) - { - TBool ret = ETrue; - - if ( aCommand==KCmdNew ) - { - DoCmdNewL(aSection); - } - else if ( aCommand==KCmdConstruct ) - { - DoCmdConstructL(aSection); - } - else if ( aCommand==KCmdSetPosition ) - { - DoCmdSetPosition(aSection); - } - else - { - ret=CT_DataWsSpriteBase::DoCommandL(aCommand,aSection,aAsyncErrorIndex); - } - - return ret; - } - -/** - * Process new command - * - * @param aSection the entry in the ini file requiring the command to be processed - * - * @return: None - */ -void CT_DataWsSprite::DoCmdNewL(const TDesC& aSection) - { - TPtrC wsName; - RWsSession* ws=NULL; - - if ( GetStringFromConfig(aSection, KFldWs, wsName) ) - { - ws = static_cast(GetDataObjectL(wsName)); - } - - TInt err=KErrNone; - - if ( ws!=NULL ) - { - // Execute command and log parameters - INFO_PRINTF1(KLogNew2); - TRAP( err, iWsSprite=new (ELeave) RWsSprite(*ws)); - } - else - { - // Execute command and log parameters - INFO_PRINTF1(KLogNew); - TRAP( err, iWsSprite=new (ELeave) RWsSprite()); - } - - if ( err!=KErrNone ) - { - ERR_PRINTF2(KLogError, err); - SetError(err); - } - // No command return value and output parameter to display and check - } - -/** - * Process Construct command - * - * @param aSection the entry in the ini file requiring the command to be processed - * - * @return: None - */ -void CT_DataWsSprite::DoCmdConstructL(const TDesC& aSection) - { - TBool dataOk=ETrue; - - // Get test data for command input parameter(s) - TPtrC winName; - RWindow* win=NULL; - - if ( GetStringFromConfig(aSection, KFldWindow, winName) ) - { - win=static_cast(GetDataObjectL(winName)); - } - - if ( win==NULL ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldWindow); - SetBlockResult(EFail); - } - - TUint aSpriteFlags=0; - - if(!CT_GraphicsUtil::ReadSpriteFlags(*this,aSection,KFldFlag,aSpriteFlags)) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldFlag); - SetBlockResult(EFail); - } - - TPoint dataPoint; - - if ( !GetPointFromConfig(aSection, KFldPoint, dataPoint) ) - { - dataPoint=TPoint(0,0); - } - - if ( dataOk ) - { - // Execute command and log parameters - INFO_PRINTF1(KLogConstruct); - TInt returnCode=iWsSprite->Construct(*win, dataPoint,aSpriteFlags); - - // Check the command return code, if !=KErrNone then stop this command - if ( returnCode!=KErrNone ) - { - ERR_PRINTF2(KLogError, returnCode); - SetError(returnCode); - } - } - } - -/** - * Process SetPosition command - * - * @param aSection the entry in the ini file requiring the command to be processed - * - * @return: None - */ -void CT_DataWsSprite::DoCmdSetPosition(const TDesC& aSection) - { - TBool dataOk=ETrue; - TPoint dataPoint; - - if ( !GetPointFromConfig(aSection, KFldPoint, dataPoint) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldPoint); - SetBlockResult(EFail); - } - - if ( dataOk ) - { - // Execute command and log parameters - INFO_PRINTF1(KLogSetPosition); - iWsSprite->SetPosition(dataPoint); - // No command return value and output parameter to display and check - } - // No command return value and output parameter to display and check - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/src/T_DataWsSpriteBase.cpp --- a/graphicsapitest/graphicssvs/wserv/src/T_DataWsSpriteBase.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,223 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -#include "T_GraphicsUtil.h" -#include "T_DataWsSpriteBase.h" - -/*@{*/ -//Commands -_LIT(KCmdActivate, "Activate"); -_LIT(KCmdAppendMember, "AppendMember"); -_LIT(KCmdUpdateMember, "UpdateMember"); -_LIT(KCmdClose, "Close"); - -// Fields -_LIT(KFldIndex, "index"); -_LIT(KFldOneParameter, "oneparameter"); -_LIT(KFldSpriteMember, "spritemember"); -/// Logging -_LIT(KLogError, "Error=%d"); -_LIT(KLogMissingParameter, "Missing parameter '%S'"); - - -_LIT(KLogActivate, "execute Activate()"); -_LIT(KLogAppendMember, "execute AppendMember(const TSpriteMember &aMemberData)"); -_LIT(KLogUpdateMember, "execute UpdateMember(TInt aIndex)"); -_LIT(KLogUpdateMember2, "execute UpdateMember(TInt aIndex, const TSpriteMember &aMemberData)"); -_LIT(KLogClose, "execute Close()"); -/*@}*/ - -////////////////////////////////////////////////////////////////////// -// Construction/Destruction -////////////////////////////////////////////////////////////////////// - -CT_DataWsSpriteBase::CT_DataWsSpriteBase():CDataWrapperBase() - { - } - -MWsClientClass* CT_DataWsSpriteBase::GetClientClass() const - { - return GetWsSpriteBase(); - } -/** -* Process a command read from the ini file -* -* @param aCommand the command to process -* @param aSection the entry in the ini file requiring the command to be processed -* @param aAsyncErrorIndex index of command. used for async calls -* -* @return ETrue if the command is processed -*/ -TBool CT_DataWsSpriteBase::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt /*aAsyncErrorIndex*/) - { - TBool ret = ETrue; - - if ( aCommand==KCmdActivate ) - { - DoCmdActivate(); - } - else if ( aCommand==KCmdAppendMember ) - { - DoCmdAppendMemberL(aSection); - } - else if ( aCommand==KCmdUpdateMember ) - { - DoCmdUpdateMemberL(aSection); - } - else if ( aCommand==KCmdClose ) - { - DoCmdClose(); - } - else - { - ret=EFalse; - } - - return ret; - } - -/** - * Process Activate command - * - * @param: None - * - * @return: None - */ -void CT_DataWsSpriteBase::DoCmdActivate() - { - // Execute command and log parameters - INFO_PRINTF1(KLogActivate); - TInt nErr=GetWsSpriteBase()->Activate(); - - if(nErr!=KErrNone) - { - ERR_PRINTF2(KLogError, nErr); - SetError(nErr); - } - - // No command return value and output parameter to display and check - } - -/** - * Process AppendMember command - * - * @param: aSection the entry in the ini file requiring the command to be processed - * - * @return: None - */ -void CT_DataWsSpriteBase::DoCmdAppendMemberL(const TDesC& aSection) - { - // Execute command and log parameters - INFO_PRINTF1(KLogAppendMember); - - //Init TSpriteMember - TSpriteMember spriteMember; - - if ( !CT_GraphicsUtil::GetSpriteMemberL(*this, aSection, KFldSpriteMember, spriteMember) ) - { - ERR_PRINTF2(KLogMissingParameter, &KFldSpriteMember); - SetBlockResult(EFail); - } - - TInt returnCode=GetWsSpriteBase()->AppendMember(spriteMember); - - if(KErrNone!=returnCode) - { - ERR_PRINTF2(KLogError, returnCode); - SetError(returnCode); - } - - // No command return value and output parameter to display and check - } - -/** - * Process UpdateMember command - * - * @param: aSection the entry in the ini file requiring the command to be processed - * - * @return: None - */ -void CT_DataWsSpriteBase::DoCmdUpdateMemberL(const TDesC& aSection) - { - TBool dataOk=ETrue; - //get update index - TInt datIndex; - - if ( !GetIntFromConfig(aSection, KFldIndex, datIndex) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldIndex); - } - //get if one parameter - TBool bOneParameter=TRUE; - - if ( !GetBoolFromConfig(aSection, KFldOneParameter, bOneParameter) ) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldOneParameter); - } - - //Init new TSpriteMember - TSpriteMember spriteMember; - - if ( !CT_GraphicsUtil::GetSpriteMemberL(*this, aSection, KFldSpriteMember, spriteMember) ) - { - if(!bOneParameter) - { - dataOk=EFalse; - ERR_PRINTF2(KLogMissingParameter, &KFldSpriteMember); - SetBlockResult(EFail); - } - } - - if(dataOk) - { - TInt returnCode=KErrNone; - - if(bOneParameter) - { - INFO_PRINTF1(KLogUpdateMember); - GetWsSpriteBase()->UpdateMember(datIndex); - } - else - { - INFO_PRINTF1(KLogUpdateMember2); - returnCode=GetWsSpriteBase()->UpdateMember(datIndex,spriteMember); - } - - if(returnCode!=KErrNone) - { - ERR_PRINTF2(KLogError, returnCode); - SetError(returnCode); - } - } - // No command return value and output parameter to display and check - } - -/** - * Process Close command - * - * @param: None - * - * @return: None - */ -void CT_DataWsSpriteBase::DoCmdClose() - { - // Execute command and log parameters - INFO_PRINTF1(KLogClose); - GetWsSpriteBase()->Close(); - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/src/T_GraphicsWservAPIServer.cpp --- a/graphicsapitest/graphicssvs/wserv/src/T_GraphicsWservAPIServer.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,383 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -#include "T_GraphicsWservAPIServer.h" -#include "T_DataWsSession.h" -#include "T_DataWindowGroup.h" -#include "T_DataBlankWindow.h" -#include "T_DataWindow.h" -#include "T_DataBackedUpWindow.h" -#include "T_DataWindowGc.h" -#include "T_DataWsBitmap.h" -#include "T_DataWsGraphicBitmap.h" -#include "T_DataWsGraphicMsgBuf.h" -#include "T_DataWindowInfo.h" -#include "T_DataWsScreenDevice.h" -#include "T_DataFbsSession.h" -#include "T_DataFbsFont.h" -#include "T_DataFbsBitmap.h" -#include "T_DataBitmapUtil.h" -#include "T_DataFbsTypefaceStore.h" -#include "T_DataFbsColor256BitmapUtil.h" -#include "T_DataPalette.h" -#include "T_DataFbsBitmapDevice.h" -#include "T_DataFbsScreenDevice.h" -#include "T_DataAlgStyle.h" -#include "T_DataMeasureTextInput.h" -#include "T_DataMeasureTextOutput.h" -#include "T_DataWsGraphicAnimation.h" -#include "T_DataWsGraphicFrameRate.h" -#include "T_DataWsEvent.h" -#include "T_DataWsRedrawEvent.h" -#include "T_DataWsPriorityKeyEvent.h" -#include "T_DataSoundPlugIn.h" -#include "T_DataFbsFont.h" -#include "T_DataWsSprite.h" -#include "T_DataWsPointerCursor.h" -#include "T_DataDirectScreenAccess.h" -#include "T_DataDsaSession.h" -#include "T_DataFbsBitGc.h" -#include "T_DataAnimDll.h" -#include "T_DataAnim.h" -#include "T_DataAnimForMClass.h" -#include "T_DataWsGraphicBitmapAnimation.h" -#include "T_DataFrame.h" -// EPOC Includes -#include - -/** - * @enum Constant Literals used. - */ -/*@{*/ -// Graphics WSERV API -_LIT(KDataWsSession, "RWsSession"); -_LIT(KDataWindowGroup, "RWindowGroup"); -_LIT(KDataBlankWindow, "RBlankWindow"); -_LIT(KDataWindow, "RWindow"); -_LIT(KDataBackedUpWindow, "RBackedUpWindow"); -_LIT(KDataWindowGc, "CWindowGc"); -_LIT(KDataWsBitmap, "CWsBitmap"); -_LIT(KDataWsGraphicBitmap, "CWsGraphicBitmap"); -_LIT(KDataWsGraphicMsgBuf, "RWsGraphicMsgBuf"); -_LIT(KDataWsEvent, "TWsEvent"); -_LIT(KDataWsPriorityKeyEvent, "TWsPriorityKeyEvent"); -_LIT(KDataWsRedrawEvent, "TWsRedrawEvent"); -_LIT(KDataWindowInfo, "TWindowInfo"); -_LIT(KDataWsScreenDevice, "CWsScreenDevice"); -_LIT(KDataWsGraphicAnimation, "TWsGraphicAnimation"); -_LIT(KDataWsGraphicFrameRate, "TWsGraphicFrameRate"); -_LIT(KDataSoundPlugIn, "RSoundPlugIn"); -_LIT(KDataFbsFont, "CFbsFont"); -_LIT(KDataWsSprite, "RWsSprite"); -_LIT(KDataWsPointerCursor, "RWsPointerCursor"); -_LIT(KDataCDirectScreenAccess, "CDirectScreenAccess"); -_LIT(KDataRDirectScreenAccess, "RDirectScreenAccess"); -_LIT(KDataFbsBitGc, "CFbsBitGc"); -_LIT(KDataAnimDll, "RAnimDll"); -_LIT(KDataAnim, "RAnim"); -_LIT(KDataAnimForMClass, "RAnimForMClass"); -_LIT(KDataWsGraphicBitmapAnimation, "CWsGraphicBitmapAnimation"); -_LIT(KDataFrame, "CFrame"); -//from T_FBServAPI -_LIT(KRFbsSessionData, "RFbsSession"); -_LIT(KCFbsFontData, "CFbsFont"); -_LIT(KCFbsBitmapData, "CFbsBitmap"); -_LIT(KTBitmapUtilData, "TBitmapUtil"); -_LIT(KCFbsTypefaceStoreData, "CFbsTypefaceStore"); -_LIT(KCFbsColor256BitmapUtil, "CFbsColor256BitmapUtil"); -_LIT(KCPalette, "CPalette"); -_LIT(KCFbsBitmapDevice, "CFbsBitmapDevice"); -_LIT(KCFbsScreenDevice, "CFbsScreenDevice"); -_LIT(KTAlgStyle, "TAlgStyle"); -_LIT(KTMeasureTextInput, "TMeasureTextInput"); -_LIT(KTMeasureTextOutput, "TMeasureTextOutput"); -/*@}*/ - - -inline CDataWrapper* CT_GraphicsWservAPIServer::CT_GraphicsWservAPIBlock::CreateDataL( const TDesC& aData ) - { - CDataWrapper* wrapper = NULL; - - if ( aData==KDataWsSession ) - { - wrapper=CT_DataWsSession::NewL(); - } - else if ( aData==KDataWindowGroup ) - { - wrapper=CT_DataWindowGroup::NewL(); - } - else if ( aData==KDataBlankWindow ) - { - wrapper=CT_DataBlankWindow::NewL(); - } - if ( aData==KDataWindow ) - { - wrapper=CT_DataWindow::NewL(); - } - else if ( aData==KDataBackedUpWindow ) - { - wrapper=CT_DataBackedUpWindow::NewL(); - } - else if ( aData==KDataWindowGc ) - { - wrapper=CT_DataWindowGc::NewL(); - } - else if ( aData==KDataWsBitmap ) - { - wrapper=CT_DataWsBitmap::NewL(); - } - else if ( aData==KDataWsGraphicBitmap ) - { - wrapper=CT_DataWsGraphicBitmap::NewL(); - } - else if ( aData==KDataWsGraphicMsgBuf ) - { - wrapper=CT_DataWsGraphicMsgBuf::NewL(); - } - else if ( aData==KDataWsEvent ) - { - wrapper=CT_DataWsEvent::NewL(); - } - else if ( aData==KDataWsPriorityKeyEvent ) - { - wrapper=CT_DataWsPriorityKeyEvent::NewL(); - } - else if ( aData==KDataWsRedrawEvent ) - { - wrapper=CT_DataWsRedrawEvent::NewL(); - } - else if ( aData==KDataWindowInfo ) - { - wrapper=CT_DataWindowInfo::NewL(); - } - else if ( aData==KDataWsScreenDevice ) - { - wrapper=CT_DataWsScreenDevice::NewL(); - } - else if( aData == KDataSoundPlugIn) - { - wrapper = CT_DataSoundPlugIn::NewL(); - } - else if (aData==KDataCDirectScreenAccess) - { - wrapper=CT_DataDirectScreenAccess::NewL(); - } - else if (aData==KDataRDirectScreenAccess) - { - wrapper=CT_DataDsaSession::NewL(); - } -// from T_FBServAPI - else if (aData == KRFbsSessionData) - { - wrapper=CT_DataFbsSession::NewL(); - } - else if (aData == KCFbsFontData) - { - wrapper=CT_DataFbsFont::NewL(); - } - else if (aData == KCFbsBitmapData) - { - wrapper=CT_DataFbsBitmap::NewL(); - } - else if (aData == KTBitmapUtilData) - { - wrapper=CT_DataBitmapUtil::NewL(); - } - else if (aData == KCFbsTypefaceStoreData) - { - wrapper=CT_DataFbsTypefaceStore::NewL(); - } - else if (aData == KCFbsColor256BitmapUtil) - { - wrapper=CT_DataFbsColor256BitmapUtil::NewL(); - } - else if (aData == KCPalette) - { - wrapper=CT_DataPalette::NewL(); - } - else if ( aData==KCFbsBitmapDevice ) - { - wrapper=CT_DataFbsBitmapDevice::NewL(); - } - else if ( aData==KCFbsScreenDevice ) - { - wrapper=CT_DataFbsScreenDevice::NewL(); - } - else if ( aData==KTAlgStyle ) - { - wrapper=CT_DataAlgStyle::NewL(); - } - else if ( aData==KTMeasureTextInput ) - { - wrapper=CT_DataMeasureTextInput::NewL(); - } - else if ( aData==KTMeasureTextOutput ) - { - wrapper=CT_DataMeasureTextOutput::NewL(); - } - else if ( aData==KDataWsGraphicAnimation ) - { - wrapper=new (ELeave) CT_DataWsGraphicAnimation(); - } - else if ( aData==KDataWsGraphicFrameRate ) - { - wrapper=new (ELeave) CT_DataWsGraphicFrameRate(); - } - else if (aData==KDataFbsFont) - { - wrapper=CT_DataFbsFont::NewL(); - } - //for RWsSprite - else if (aData==KDataWsSprite) - { - wrapper= CT_DataWsSprite::NewL(); - } - //for RWsPointerCursor - else if (aData==KDataWsPointerCursor) - { - wrapper=CT_DataWsPointerCursor::NewL(); - } - else if (aData == KDataFbsBitGc) - { - wrapper=CT_DataFbsBitGc::NewL(); - } - else if( aData == KDataAnimDll) - { - wrapper = CT_DataAnimDll::NewL(); - } - else if( aData == KDataAnim) - { - wrapper = CT_DataAnim::NewL(); - } - else if(aData==KDataAnimForMClass) - { - wrapper=CT_DataAnimForMClass::NewL(); - } - else if( aData == KDataWsGraphicBitmapAnimation) - { - wrapper = CT_DataWsGraphicBitmapAnimation::NewL(); - } - else if( aData == KDataFrame) - { - wrapper = CT_DataFrame::NewL(); - } - return wrapper; - } - -CT_GraphicsWservAPIServer* CT_GraphicsWservAPIServer::NewL() -/** - * @return - Instance of the test server - * Same code for Secure and non-secure variants - * Called inside the MainL() function to create and start the - * CTestServer derived server. - */ - { - CT_GraphicsWservAPIServer* server = new (ELeave) CT_GraphicsWservAPIServer(); - CleanupStack::PushL(server); - // CServer base class call - //RProcess handle = RProcess(); - //TParsePtrC serverName(handle.FileName()); - server->ConstructL(); /*Parsing the server name from the file name*/ - CleanupStack::Pop(server); - return server; - } - - -TInt LoadDrivers() - { -#ifdef __WINS__ - #define KPDDName _L("ECDRV") - #define KLDDName _L("ECOMM") -#else - #define KPDDName _L("EUART1") - #define KLDDName _L("ECOMM") -#endif - TInt rerr = KErrNone; - - rerr = StartC32(); - if( rerr!=KErrNone && rerr!=KErrAlreadyExists ) - { - return rerr; - } - - rerr = User::LoadPhysicalDevice(KPDDName); - if(rerr != KErrNone && rerr != KErrAlreadyExists) - { - return rerr; - } - rerr = User::LoadLogicalDevice(KLDDName); - if(rerr != KErrNone && rerr != KErrAlreadyExists) - { - return rerr; - } - return KErrNone; - } - -LOCAL_C void MainL() -/** - * Secure variant - * Much simpler, uses the new Rendezvous() call to sync with the client - */ - { -#if (defined __DATA_CAGING__) - RProcess().DataCaging(RProcess::EDataCagingOn); - RProcess().SecureApi(RProcess::ESecureApiOn); -#endif - CActiveScheduler* sched=NULL; - sched=new(ELeave) CActiveScheduler; - CActiveScheduler::Install(sched); - CT_GraphicsWservAPIServer* server = NULL; - // Create the CTestServer derived server - TRAPD(err,server = CT_GraphicsWservAPIServer::NewL()); - if(!err) - { - // Sync with the client and enter the active scheduler - RProcess::Rendezvous(KErrNone); - sched->Start(); - } - delete server; - delete sched; - } - -GLDEF_C TInt E32Main() -/** - * @return - Standard Epoc error code on process exit - * Secure variant only - * Process entry point. Called by client using RProcess API - */ - { - TInt rerr = LoadDrivers(); - if( rerr != KErrNone ) - { - return rerr; - } - - __UHEAP_MARK; - CTrapCleanup* cleanup = CTrapCleanup::New(); - if(cleanup == NULL) - { - return KErrNoMemory; - } -#if (defined TRAP_IGNORE) - TRAP_IGNORE(MainL()); -#else - TRAPD(err,MainL()); -#endif - delete cleanup; - __UHEAP_MARKEND; - return KErrNone; - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/src/T_RAnimChild.cpp --- a/graphicsapitest/graphicssvs/wserv/src/T_RAnimChild.cpp Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,72 +0,0 @@ -/* -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -#include "T_RAnimChild.h" - -T_RAnimChild::T_RAnimChild() -{ -} -T_RAnimChild::T_RAnimChild(RAnimDll &aDll):RAnim(aDll) -{ - // No implementation required -} - -T_RAnimChild::~T_RAnimChild() -{ -} - -TInt T_RAnimChild::Construct(const RWindowBase &aDevice, TInt aType, const TDesC8 &aParams) - { - return RAnim::Construct(aDevice, aType, aParams); - } -TInt T_RAnimChild::Construct(const RWindowBase &aDevice, TInt aType, const TDesC8 &aParams, const TIpcArgs& aIpcArgs) - { - return RAnim::Construct(aDevice, aType, aParams, aIpcArgs); - } -TInt T_RAnimChild::Construct(const RWsSprite &aDevice, TInt aType, const TDesC8 &aParams) - { - return RAnim::Construct(aDevice, aType, aParams); - } -TInt T_RAnimChild::Construct(const RWsSprite &aDevice, TInt aType, const TDesC8 &aParams, const TIpcArgs& aIpcArgs) - { - return RAnim::Construct(aDevice, aType, aParams, aIpcArgs); - } -TInt T_RAnimChild::CommandReply(TInt aOpcode) - { - return RAnim::CommandReply(aOpcode); - } -TInt T_RAnimChild::CommandReply(TInt aOpcode, const TPtrC8 &aArgs) - { - return RAnim::CommandReply(aOpcode, aArgs); - } -TInt T_RAnimChild::CommandReply(TInt aOpcode, const TDesC8 &aArgs, const TIpcArgs &aIpcArgs) - { - return RAnim::CommandReply( aOpcode, aArgs,aIpcArgs); - } -void T_RAnimChild::Command(TInt aOpcode, const TPtrC8 &aArgs) - { - RAnim::Command( aOpcode, aArgs); - } -void T_RAnimChild::Command(TInt aOpcode) - { - RAnim::Command(aOpcode); - } -void T_RAnimChild::AsyncCommandReply(TRequestStatus& aRequestStatus,TInt aOpcode, const TIpcArgs& aIpcArgs) - { - RAnim::AsyncCommandReply( aRequestStatus, aOpcode, aIpcArgs); - } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/testdata/GRAPHICS-WSERV-Anim-PublicAPI.ini --- a/graphicsapitest/graphicssvs/wserv/testdata/GRAPHICS-WSERV-Anim-PublicAPI.ini Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,483 +0,0 @@ -[include] -file1=\graphics\t_graphics.ini - -[ws] -name=ws - -[win] -name=win - -[wingrp] -name=wingrp - -[sprite] -name=sprite - -[mask1] -name=mask1 - -[bitmap1] -name=bitmap1 - -[bitmap2] -name=bitmap2 - -[bitmap3] -name=bitmap3 - -[animdll] -name=animdll - -[anim] -name=anim - - -[GRAPHICS-WSERV-Anim-PublicAPI-0002-0001-new_Command03] -ws=ws -[GRAPHICS-WSERV-Anim-PublicAPI-0002-0001-Load_Command04] -filename={default_wserv,def_anim_plugin} -[GRAPHICS-WSERV-Anim-PublicAPI-0002-0001-new_Command05] -animdll=animdll - -[GRAPHICS-WSERV-Anim-PublicAPI-0005-0001-new_Command03] -ws=ws -[GRAPHICS-WSERV-Anim-PublicAPI-0005-0001-Load_Command04] -filename={default_wserv,def_anim_plugin} -[GRAPHICS-WSERV-Anim-PublicAPI-0005-0001-new_Command05] -animdll=animdll - -[GRAPHICS-WSERV-Anim-PublicAPI-0006-0001-new_Command03] -ws=ws -[GRAPHICS-WSERV-Anim-PublicAPI-0006-0001-Load_Command04] -filename={default_wserv,def_anim_plugin} -[GRAPHICS-WSERV-Anim-PublicAPI-0006-0001-new_Command05] -animdll=animdll - - -[GRAPHICS-WSERV-Anim-PublicAPI-0007-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-Anim-PublicAPI-0007-0001-Construct_command04] -clienthandle=1 -[GRAPHICS-WSERV-Anim-PublicAPI-0007-0001-new_command05] -ws=ws -[GRAPHICS-WSERV-Anim-PublicAPI-0007-0001-Construct_command06] -parent=wingrp -handle=2 -[GRAPHICS-WSERV-Anim-PublicAPI-0007-0001-SetAutoFlush_command08] -newFlushstate=true -expectedFlushstate=false -[GRAPHICS-WSERV-Anim-PublicAPI-0007-0001-new_Command09] -ws=ws -[GRAPHICS-WSERV-Anim-PublicAPI-0007-0001-Load_Command10] -filename={default_wserv,def_anim_plugin} -[GRAPHICS-WSERV-Anim-PublicAPI-0007-0001-new_Command11] -animdll=animdll -[GRAPHICS-WSERV-Anim-PublicAPI-0007-0001-Construct_Command12] -win=win -type=EKWindowAnim -param=10,10;20,0;0;20,20;255,0,0;2,4; -[GRAPHICS-WSERV-Anim-PublicAPI-0007-0001-CommandReply_Command13] -opcode=ECmdGetLast -args= -ipcargs0=ENothing -ipcargs1= -expected_ipcargs1=1 10,10;20,0;0;20,20;255,0,0;2,4; - - -[GRAPHICS-WSERV-Anim-PublicAPI-0008-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-Anim-PublicAPI-0008-0001-Construct_command04] -clienthandle=1 -[GRAPHICS-WSERV-Anim-PublicAPI-0008-0001-new_command05] -ws=ws -[GRAPHICS-WSERV-Anim-PublicAPI-0008-0001-Construct_command06] -parent=wingrp -handle=2 -[GRAPHICS-WSERV-Anim-PublicAPI-0008-0001-SetAutoFlush_command08] -newFlushstate=true -expectedFlushstate=false -[GRAPHICS-WSERV-Anim-PublicAPI-0008-0001-new_Command09] -ws=ws -[GRAPHICS-WSERV-Anim-PublicAPI-0008-0001-Load_Command10] -filename={default_wserv,def_anim_plugin} -[GRAPHICS-WSERV-Anim-PublicAPI-0008-0001-new_Command11] -animdll=animdll -[GRAPHICS-WSERV-Anim-PublicAPI-0008-0001-Construct_Command12] -win=win -type=EKWindowAnim -param=10,10;20,0;0;20,20;255,0,0;2,4; -ipcargs0=ENothing -ipcargs1= -expected_ipcargs1=1 10,10;20,0;0;20,20;255,0,0;2,4; - - -[GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-Construct_command04] -clienthandle=1 -[GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-new_command05] -ws=ws -[GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-Construct_command06] -parent=wingrp -handle=2 -[GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-SetAutoFlush_command08] -newFlushstate=true -expectedFlushstate=false -[GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-new_command09] -ws=ws -[GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-Construct_command10] -win=win -flag=1 -[GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-Load_command12] -bitmap_id =0 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile=FALSE -[GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-Load_command14] -bitmap_id =1 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile=FALSE -[GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-AppendMember_command15] -spritemember_bitmap =bitmap1 -spritemember_maskbitmap =mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask =FALSE; -[GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-Load_command17] -bitmap_id =2 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE -[GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-AppendMember_command18] -spritemember_bitmap =bitmap2 -spritemember_maskbitmap=mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; -[GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-Load_command20] -bitmap_id =3 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE -[GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-AppendMember_command21] -spritemember_bitmap =bitmap3 -spritemember_maskbitmap=mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; -[GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-SetPosition_command22] -pos_x=10 -pos_y=10 -[GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-new_Command24] -ws=ws -[GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-Load_Command25] -filename={default_wserv,def_anim_plugin} -[GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-new_Command26] -animdll=animdll -[GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-Construct_Command27] -sprite=sprite -type=EKSpriteAnim -param=10,10;20,0; -[GRAPHICS-WSERV-Anim-PublicAPI-0009-0001-CommandReply_Command28] -opcode=ECmdGetLast -args= -ipcargs0=ENothing -ipcargs1= -expected_ipcargs1=2 10,10;20,0; - - -[GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-Construct_command04] -clienthandle=1 -[GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-new_command05] -ws=ws -[GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-Construct_command06] -parent=wingrp -handle=2 -[GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-SetAutoFlush_command08] -newFlushstate=true -expectedFlushstate=false -[GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-new_command09] -ws=ws -[GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-Construct_command10] -win=win -flag=1 -[GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-Load_command12] -bitmap_id =0 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile=FALSE -[GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-Load_command14] -bitmap_id =1 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile=FALSE -[GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-AppendMember_command15] -spritemember_bitmap =bitmap1 -spritemember_maskbitmap =mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask =FALSE; -[GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-Load_command17] -bitmap_id =2 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE -[GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-AppendMember_command18] -spritemember_bitmap =bitmap2 -spritemember_maskbitmap=mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; -[GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-Load_command20] -bitmap_id =3 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE -[GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-AppendMember_command21] -spritemember_bitmap =bitmap3 -spritemember_maskbitmap=mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; -[GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-SetPosition_command22] -pos_x=10 -pos_y=10 -[GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-new_Command24] -ws=ws -[GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-Load_Command25] -filename={default_wserv,def_anim_plugin} -[GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-new_Command26] -animdll=animdll -[GRAPHICS-WSERV-Anim-PublicAPI-0010-0001-Construct_Command27] -sprite=sprite -type=EKSpriteAnim -param=10,10;20,0; -ipcargs0=ENothing -ipcargs1= -expected_ipcargs1=2 10,10;20,0; - - -[GRAPHICS-WSERV-Anim-PublicAPI-0011-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-Anim-PublicAPI-0011-0001-Construct_command04] -clienthandle=1 -[GRAPHICS-WSERV-Anim-PublicAPI-0011-0001-new_command05] -ws=ws -[GRAPHICS-WSERV-Anim-PublicAPI-0011-0001-Construct_command06] -parent=wingrp -handle=2 -[GRAPHICS-WSERV-Anim-PublicAPI-0011-0001-SetAutoFlush_command08] -newFlushstate=true -expectedFlushstate=false -[GRAPHICS-WSERV-Anim-PublicAPI-0011-0001-new_Command09] -ws=ws -[GRAPHICS-WSERV-Anim-PublicAPI-0011-0001-Load_Command10] -filename={default_wserv,def_anim_plugin} -[GRAPHICS-WSERV-Anim-PublicAPI-0011-0001-new_Command11] -animdll=animdll -[GRAPHICS-WSERV-Anim-PublicAPI-0011-0001-Construct_Command12] -win=win -type=EKWindowAnim -param=10,10;20,0;0;20,20;255,0,0;2,4; -[GRAPHICS-WSERV-Anim-PublicAPI-0011-0001-CommandReply_Command13] -opcode=ECmdTestWithoutPara -[GRAPHICS-WSERV-Anim-PublicAPI-0011-0001-CommandReply_Command14] -opcode=ECmdGetLast -args= -ipcargs0=ENothing -ipcargs1= -expected_ipcargs1=100 - - -[GRAPHICS-WSERV-Anim-PublicAPI-0012-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-Anim-PublicAPI-0012-0001-Construct_command04] -clienthandle=1 -[GRAPHICS-WSERV-Anim-PublicAPI-0012-0001-new_command05] -ws=ws -[GRAPHICS-WSERV-Anim-PublicAPI-0012-0001-Construct_command06] -parent=wingrp -handle=2 -[GRAPHICS-WSERV-Anim-PublicAPI-0012-0001-SetAutoFlush_command08] -newFlushstate=true -expectedFlushstate=false -[GRAPHICS-WSERV-Anim-PublicAPI-0012-0001-new_Command09] -ws=ws -[GRAPHICS-WSERV-Anim-PublicAPI-0012-0001-Load_Command10] -filename={default_wserv,def_anim_plugin} -[GRAPHICS-WSERV-Anim-PublicAPI-0012-0001-new_Command11] -animdll=animdll -[GRAPHICS-WSERV-Anim-PublicAPI-0012-0001-Construct_Command12] -win=win -type=EKWindowAnim -param=10,10;20,0;0;20,20;255,0,0;2,4; -[GRAPHICS-WSERV-Anim-PublicAPI-0012-0001-CommandReply_Command13] -opcode=ECmdTestWithPara -args=test -[GRAPHICS-WSERV-Anim-PublicAPI-0012-0001-CommandReply_Command14] -opcode=ECmdGetLast -args= -ipcargs0=ENothing -ipcargs1= -expected_ipcargs1=101 test - - -[GRAPHICS-WSERV-Anim-PublicAPI-0013-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-Anim-PublicAPI-0013-0001-Construct_command04] -clienthandle=1 -[GRAPHICS-WSERV-Anim-PublicAPI-0013-0001-new_command05] -ws=ws -[GRAPHICS-WSERV-Anim-PublicAPI-0013-0001-Construct_command06] -parent=wingrp -handle=2 -[GRAPHICS-WSERV-Anim-PublicAPI-0013-0001-SetAutoFlush_command08] -newFlushstate=true -expectedFlushstate=false -[GRAPHICS-WSERV-Anim-PublicAPI-0013-0001-new_Command09] -ws=ws -[GRAPHICS-WSERV-Anim-PublicAPI-0013-0001-Load_Command10] -filename={default_wserv,def_anim_plugin} -[GRAPHICS-WSERV-Anim-PublicAPI-0013-0001-new_Command11] -animdll=animdll -[GRAPHICS-WSERV-Anim-PublicAPI-0013-0001-Construct_Command12] -win=win -type=EKWindowAnim -param=10,10;20,0;0;20,20;255,0,0;2,4; -[GRAPHICS-WSERV-Anim-PublicAPI-0013-0001-CommandReply_Command13] -opcode=ECmdTestWithPara -args=test -ipcargs0=ENothing -ipcargs1= -expected_ipcargs1=101 test - - -[GRAPHICS-WSERV-Anim-PublicAPI-0014-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-Anim-PublicAPI-0014-0001-Construct_command04] -clienthandle=1 -[GRAPHICS-WSERV-Anim-PublicAPI-0014-0001-new_command05] -ws=ws -[GRAPHICS-WSERV-Anim-PublicAPI-0014-0001-Construct_command06] -parent=wingrp -handle=2 -[GRAPHICS-WSERV-Anim-PublicAPI-0014-0001-SetAutoFlush_command08] -newFlushstate=true -expectedFlushstate=false -[GRAPHICS-WSERV-Anim-PublicAPI-0014-0001-new_Command09] -ws=ws -[GRAPHICS-WSERV-Anim-PublicAPI-0014-0001-Load_Command10] -filename={default_wserv,def_anim_plugin} -[GRAPHICS-WSERV-Anim-PublicAPI-0014-0001-new_Command11] -animdll=animdll -[GRAPHICS-WSERV-Anim-PublicAPI-0014-0001-Construct_Command12] -win=win -type=EKWindowAnim -param=10,10;20,0;0;20,20;255,0,0;2,4; -[GRAPHICS-WSERV-Anim-PublicAPI-0014-0001-Command_Command13] -opcode=ECmdTestWithPara -args=test -[GRAPHICS-WSERV-Anim-PublicAPI-0014-0001-CommandReply_Command14] -opcode=ECmdGetLast -args= -ipcargs0=ENothing -ipcargs1= -expected_ipcargs1=101 test - - -[GRAPHICS-WSERV-Anim-PublicAPI-0015-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-Anim-PublicAPI-0015-0001-Construct_command04] -clienthandle=1 -[GRAPHICS-WSERV-Anim-PublicAPI-0015-0001-new_command05] -ws=ws -[GRAPHICS-WSERV-Anim-PublicAPI-0015-0001-Construct_command06] -parent=wingrp -handle=2 -[GRAPHICS-WSERV-Anim-PublicAPI-0015-0001-SetAutoFlush_command08] -newFlushstate=true -expectedFlushstate=false -[GRAPHICS-WSERV-Anim-PublicAPI-0015-0001-new_Command09] -ws=ws -[GRAPHICS-WSERV-Anim-PublicAPI-0015-0001-Load_Command10] -filename={default_wserv,def_anim_plugin} -[GRAPHICS-WSERV-Anim-PublicAPI-0015-0001-new_Command11] -animdll=animdll -[GRAPHICS-WSERV-Anim-PublicAPI-0015-0001-Construct_Command12] -win=win -type=EKWindowAnim -param=10,10;20,0;0;20,20;255,0,0;2,4; -[GRAPHICS-WSERV-Anim-PublicAPI-0015-0001-Command_Command13] -opcode=ECmdTestWithoutPara -[GRAPHICS-WSERV-Anim-PublicAPI-0015-0001-CommandReply_Command14] -opcode=ECmdGetLast -args= -ipcargs0=ENothing -ipcargs1= -expected_ipcargs1=100 - -[GRAPHICS-WSERV-Anim-PublicAPI-0016-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-Anim-PublicAPI-0016-0001-Construct_command04] -clienthandle=1 -[GRAPHICS-WSERV-Anim-PublicAPI-0016-0001-new_command05] -ws=ws -[GRAPHICS-WSERV-Anim-PublicAPI-0016-0001-Construct_command06] -parent=wingrp -handle=2 -[GRAPHICS-WSERV-Anim-PublicAPI-0016-0001-SetAutoFlush_command08] -newFlushstate=true -expectedFlushstate=false -[GRAPHICS-WSERV-Anim-PublicAPI-0016-0001-new_Command09] -ws=ws -[GRAPHICS-WSERV-Anim-PublicAPI-0016-0001-Load_Command10] -filename={default_wserv,def_anim_plugin} -[GRAPHICS-WSERV-Anim-PublicAPI-0016-0001-new_Command11] -animdll=animdll -[GRAPHICS-WSERV-Anim-PublicAPI-0016-0001-Construct_Command12] -win=win -type=EKWindowAnim -param=10,10;20,0;0;20,20;255,0,0;2,4; -[GRAPHICS-WSERV-Anim-PublicAPI-0016-0001-AsyncCommandReply_Command13] -opcode=ECmdTestWithoutPara -ipcargs0=ENothing -ipcargs1=ENothing -ipcargs2= -expected_ipcargs2=100 - - - - - - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/testdata/GRAPHICS-WSERV-AnimDll-PublicAPI.ini --- a/graphicsapitest/graphicssvs/wserv/testdata/GRAPHICS-WSERV-AnimDll-PublicAPI.ini Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,84 +0,0 @@ -[include] -file1=\graphics\t_graphics.ini - -[animdll] -name=animdll - -[animdll2] -name=animdll2 - -[ws] -name=ws - -[GRAPHICS-WSERV-AnimDll-PublicAPI-0002-0001-new_Command001] -ws=ws - -[GRAPHICS-WSERV-AnimDll-PublicAPI-0005-001-new_Command01] -ws=ws - -[GRAPHICS-WSERV-AnimDll-PublicAPI-0006-001-new_Command01] -ws=ws - -[GRAPHICS-WSERV-AnimDll-PublicAPI-0007-001-new_Command01] -ws=ws - -[GRAPHICS-WSERV-AnimDll-PublicAPI-0007-001-Load_Command02] -filename={default_wserv, def_anim_plugin} - -[GRAPHICS-WSERV-AnimDll-PublicAPI-0007-001-Load_Command04] -filename={default_wserv, def_anim_plugin} - -[GRAPHICS-WSERV-AnimDll-PublicAPI-0008-001-new_Command01] -ws=ws - -[GRAPHICS-WSERV-AnimDll-PublicAPI-0008-001-Load_Command02] -filename=Tbmpanim.dll - -[GRAPHICS-WSERV-AnimDll-PublicAPI-0009-001-new_Command01] -ws=ws - -[GRAPHICS-WSERV-AnimDll-PublicAPI-0009-001-Load_Command02] -filename=bmpanim.dll - -[GRAPHICS-WSERV-AnimDll-PublicAPI-0011-0001-new_Command003] -ws=ws - -[GRAPHICS-WSERV-AnimDll-PublicAPI-0011-0001-Load_Command004] -filename={default_wserv, def_anim_plugin} - -[GRAPHICS-WSERV-AnimDll-PublicAPI-0012-0001-new_Command003] -ws=ws - -[GRAPHICS-WSERV-AnimDll-PublicAPI-0012-0001-Load_Command004] -filename={default_wserv, def_anim_plugin} - -[GRAPHICS-WSERV-AnimDll-PublicAPI-0013-0001-new_Command003] -ws=ws - -[GRAPHICS-WSERV-AnimDll-PublicAPI-0013-0001-Load_Command004] -filename={default_wserv, def_anim_plugin} - -[GRAPHICS-WSERV-AnimDll-PublicAPI-0013-0001-Load_Command005] -filename={default_wserv, def_anim_plugin} - -[GRAPHICS-WSERV-AnimDll-PublicAPI-0014-0001-new_Command003] -ws=ws - -[GRAPHICS-WSERV-AnimDll-PublicAPI-0014-0001-Load_Command004] -filename={default_wserv, def_anim_plugin} - -[GRAPHICS-WSERV-AnimDll-PublicAPI-0014-0001-Load_Command005] -filename=BMPANSRV.DLL - -[GRAPHICS-WSERV-AnimDll-PublicAPI-0015-0001-new_Command003] -ws=ws - -[GRAPHICS-WSERV-AnimDll-PublicAPI-0015-0001-new_Command004] -ws=ws - -[GRAPHICS-WSERV-AnimDll-PublicAPI-0015-0001-Load_Command005] -filename={default_wserv, def_anim_plugin} - -[GRAPHICS-WSERV-AnimDll-PublicAPI-0015-0001-Load_Command006] -filename={default_wserv, def_anim_plugin} - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/testdata/GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini --- a/graphicsapitest/graphicssvs/wserv/testdata/GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi.ini Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,2389 +0,0 @@ -[include] -file1=\graphics\t_graphics.ini - - -[ws] -name=ws - -[wingp] -name=wingp - -[win] -name=win - -[animdll] -name=animdll - -[anim] -name=anim - -[animformc] -name=animformc - -[scrdev] -name=scrdev - -[dsa] -name=dsa - -[win2] -name=win2 - -[bitmap] -name=bitmap - -[font] -name=font - -[wingc] -name=wingc - - - - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0001-0001-new_Command03] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0001-0001-Construct_Command04] -clienthandle = 1 - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0001-0001-new_Command05] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0001-0001-Construct_Command06] -handle = 3 -parent = wingp - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0001-0001-SetAutoFlush_Command08] -expectedFlushstate = false -newFlushstate = true - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0001-0001-new_Command09] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0001-0001-Load_Command10] -filename ={default_wserv,def_anim_plugin} - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0001-0001-new_Command11] -animdll =animdll - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0001-0001-new_Command12] -anim =anim - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0001-0001-Construct_Command13] -param =10,10;20,0;0;20,20;255,0,0;2,4; -type =EKWindowAnim -win = win - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0001-0001-CommandReply_Command14] -day = 01 -expected = true -hour = 12 -microsecond = 555555 -minute = 30 -month = 10 -opcode = ECmdGeneralAnimate -second = 20 -year = 2008 - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0002-0001-new_Command03] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0002-0001-Construct_Command04] -clienthandle = 1 - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0002-0001-new_Command05] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0002-0001-Construct_Command06] -handle = 3 -parent = wingp - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0002-0001-SetAutoFlush_Command08] -expectedFlushstate = false -newFlushstate = true - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0002-0001-new_Command09] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0002-0001-Load_Command10] -filename ={default_wserv,def_anim_plugin} - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0002-0001-new_Command11] -animdll =animdll - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0002-0001-new_Command12] -anim =anim - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0002-0001-Construct_Command13] -param =10,10;20,0;0;20,20;255,0,0;2,4; -type =EKWindowAnim -win = win - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0002-0001-CommandReply_Command14] -opcode = ECmdGeneralClient - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0003-0001-new_Command03] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0003-0001-Construct_Command04] -clienthandle = 1 - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0003-0001-new_Command05] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0003-0001-Construct_Command06] -handle = 3 -parent = wingp - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0003-0001-SetAutoFlush_Command08] -expectedFlushstate = false -newFlushstate = true - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0003-0001-new_Command09] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0003-0001-Load_Command10] -filename ={default_wserv,def_anim_plugin} - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0003-0001-new_Command11] -animdll =animdll - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0003-0001-new_Command12] -anim =anim - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0003-0001-Construct_Command13] -param =10,10;20,0;0;20,20;255,0,0;2,4; -type =EKWindowAnim -win = win - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0003-0001-CommandReply_Command14] -expected = true -opcode = ECmdGeneralFlashStateOn - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0004-0001-new_Command03] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0004-0001-Construct_Command04] -clienthandle = 1 - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0004-0001-new_Command05] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0004-0001-Construct_Command06] -handle = 3 -parent = wingp - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0004-0001-SetAutoFlush_Command08] -expectedFlushstate = false -newFlushstate = true - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0004-0001-new_Command09] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0004-0001-Load_Command10] -filename ={default_wserv,def_anim_plugin} - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0004-0001-new_Command11] -animdll =animdll - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0004-0001-new_Command12] -anim =anim - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0004-0001-Construct_Command13] -param =10,10;20,0;0;20,20;255,0,0;2,4; -type =EKWindowAnim -win = win - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0004-0001-CommandReply_Command14] -opcode = ECmdGeneralPanic - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0005-0001-new_Command03] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0005-0001-Construct_Command04] -clienthandle = 1 - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0005-0001-new_Command05] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0005-0001-Construct_Command06] -handle = 3 -parent = wingp - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0005-0001-SetAutoFlush_Command08] -expectedFlushstate = false -newFlushstate = true - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0005-0001-new_Command09] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0005-0001-Load_Command10] -filename ={default_wserv,def_anim_plugin} - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0005-0001-new_Command11] -animdll =animdll - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0005-0001-new_Command12] -anim =anim - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0005-0001-Construct_Command13] -param =10,10;20,0;0;20,20;255,0,0;2,4; -type =EKWindowAnim -win = win - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0005-0001-CommandReply_Command14] -opcode = ECmdGeneralScreenDevice - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0006-0001-new_Command03] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0006-0001-Construct_Command04] -clienthandle = 1 - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0006-0001-new_Command05] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0006-0001-Construct_Command06] -handle = 3 -parent = wingp - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0006-0001-SetAutoFlush_Command08] -expectedFlushstate = false -newFlushstate = true - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0006-0001-new_Command09] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0006-0001-Load_Command10] -filename ={default_wserv,def_anim_plugin} - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0006-0001-new_Command11] -animdll =animdll - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0006-0001-new_Command12] -anim =anim - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0006-0001-Construct_Command13] -param =10,10;20,0;0;20,20;255,0,0;2,4; -type =EKWindowAnim -win = win - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0006-0001-CommandReply_Command14] -expected = 2 -interface = 0 -opcode = ECmdGeneralExtendedInterface - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0007-0001-new_Command03] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0007-0001-Construct_Command04] -clienthandle = 1 - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0007-0001-new_Command05] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0007-0001-Construct_Command06] -handle = 3 -parent = wingp - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0007-0001-SetAutoFlush_Command08] -expectedFlushstate = false -newFlushstate = true - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0007-0001-new_Command09] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0007-0001-Load_Command10] -filename ={default_wserv,def_anim_plugin} - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0007-0001-new_Command11] -animdll =animdll - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0007-0001-new_Command12] -anim =anim - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0007-0001-Construct_Command13] -param =10,10;20,0;0;20,20;255,0,0;2,4; -type =EKWindowAnim -win = win - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0007-0001-CommandReply_Command14] -interface = 1 -opcode = ECmdGeneralExtendedInterface - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0008-0001-new_Command03] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0008-0001-Construct_Command04] -clienthandle = 1 - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0008-0001-new_Command05] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0008-0001-Construct_Command06] -handle = 3 -parent = wingp - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0008-0001-SetAutoFlush_Command08] -expectedFlushstate = false -newFlushstate = true - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0008-0001-new_Command09] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0008-0001-Load_Command10] -filename ={default_wserv,def_anim_plugin} - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0008-0001-new_Command11] -animdll =animdll - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0008-0001-new_Command12] -anim =anim - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0008-0001-Construct_Command13] -param =10,10;20,0;0;20,20;255,0,0;2,4; -type =EKWindowAnim -win = win - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0008-0001-CommandReply_Command14] -interface = 2 -opcode = ECmdGeneralExtendedInterface - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0009-0001-new_Command03] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0009-0001-Construct_Command04] -clienthandle = 1 - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0009-0001-new_Command05] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0009-0001-Construct_Command06] -handle = 3 -parent = wingp - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0009-0001-SetAutoFlush_Command08] -expectedFlushstate = false -newFlushstate = true - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0009-0001-new_Command09] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0009-0001-Load_Command10] -filename ={default_wserv,def_anim_plugin} - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0009-0001-new_Command11] -animdll =animdll - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0009-0001-new_Command12] -anim =anim - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0009-0001-Construct_Command13] -param =10,10;20,0;0;20,20;255,0,0;2,4; -type =EKWindowAnim -win = win - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0009-0001-CommandReply_Command14] -interface = 4 -opcode = ECmdGeneralExtendedInterface - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0010-0001-new_Command03] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0010-0001-Construct_Command04] -clienthandle = 1 - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0010-0001-new_Command05] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0010-0001-Construct_Command06] -handle = 3 -parent = wingp - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0010-0001-SetAutoFlush_Command08] -expectedFlushstate = false -newFlushstate = true - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0010-0001-new_Command09] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0010-0001-Load_Command10] -filename ={default_wserv,def_anim_plugin} - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0010-0001-new_Command11] -animdll =animdll - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0010-0001-new_Command12] -anim =anim - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0010-0001-Construct_Command13] -param =10,10;20,0;0;20,20;255,0,0;2,4; -type =EKWindowAnim -win = win - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0010-0001-CommandReply_Command14] -opcode = ECmdGeneralWindowExtension - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0011-0001-new_Command03] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0011-0001-Construct_Command04] -clienthandle = 1 - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0011-0001-new_Command05] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0011-0001-Construct_Command06] -handle = 3 -parent = wingp - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0011-0001-SetAutoFlush_Command08] -expectedFlushstate = false -newFlushstate = true - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0011-0001-new_Command09] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0011-0001-Load_Command10] -filename ={default_wserv,def_anim_plugin} - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0011-0001-new_Command11] -animdll =animdll - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0011-0001-new_Command12] -anim =anim - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0011-0001-Construct_Command13] -param =10,10;20,0;0;20,20;255,0,0;2,4; -type =EKWindowAnim -win = win - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0011-0001-CommandReply_Command14] -expected = 2 -opcode =ECmdGeneralNumOfExtInterfaces - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0012-0001-new_Command03] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0012-0001-Construct_Command04] -clienthandle = 1 - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0012-0001-new_Command05] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0012-0001-Construct_Command06] -handle = 3 -parent = wingp - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0012-0001-SetAutoFlush_Command08] -expectedFlushstate = false -newFlushstate = true - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0012-0001-new_Command09] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0012-0001-Load_Command10] -filename ={default_wserv,def_anim_plugin} - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0012-0001-new_Command11] -animdll =animdll - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0012-0001-new_Command12] -anim =anim - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0012-0001-Construct_Command13] -param =10,10;20,0;0;20,20;255,0,0;2,4; -type =EKWindowAnim -win = win - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0012-0001-CommandReply_Command14] -opcode = ECmdGeneralEventExtension - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0013-0001-new_Command03] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0013-0001-Construct_Command04] -clienthandle = 1 - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0013-0001-new_Command05] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0013-0001-Construct_Command06] -handle = 3 -parent = wingp - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0013-0001-SetAutoFlush_Command08] -expectedFlushstate = false -newFlushstate = true - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0013-0001-new_Command09] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0013-0001-Load_Command10] -filename ={default_wserv,def_anim_plugin} - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0013-0001-new_Command11] -animdll =animdll - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0013-0001-new_Command12] -anim =anim - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0013-0001-Construct_Command13] -param =10,10;20,0;0;20,20;255,0,0;2,4; -type =EKWindowAnim -win = win - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0013-0001-CommandReply_Command14] -getevent = true -opcode = ECmdGeneralGetRawEvents - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0013-0001-CommandReply_Command15] -getevent = false -opcode = ECmdGeneralGetRawEvents - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0014-0001-new_Command03] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0014-0001-Construct_Command04] -clienthandle = 1 - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0014-0001-new_Command05] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0014-0001-Construct_Command06] -handle = 3 -parent = wingp - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0014-0001-SetAutoFlush_Command08] -expectedFlushstate = false -newFlushstate = true - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0014-0001-new_Command09] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0014-0001-Load_Command10] -filename ={default_wserv,def_anim_plugin} - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0014-0001-new_Command11] -animdll =animdll - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0014-0001-new_Command12] -anim =anim - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0014-0001-Construct_Command13] -param =10,10;20,0;0;20,20;255,0,0;2,4; -type =EKWindowAnim -win = win - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0014-0001-CommandReply_Command14] -getevent = true -opcode = ECmdGeneralGetRawEvents - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0014-0001-CommandReply_Command15] -opcode = ECmdGeneralPostRawEvent -rawevent = EButton3Up - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0014-0001-CommandReply_Command17] -expected = true -opcode = ECmdRetrieveResult - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0014-0001-CommandReply_Command18] -getevent = false -opcode = ECmdGeneralGetRawEvents - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0014-0001-CommandReply_Command19] -opcode = ECmdGeneralPostRawEvent -rawevent = EButton3Up - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0014-0001-CommandReply_Command21] -expected = false -opcode = ECmdRetrieveResult - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0015-0001-new_Command03] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0015-0001-Construct_Command04] -clienthandle = 1 - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0015-0001-new_Command05] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0015-0001-Construct_Command06] -handle = 3 -parent = wingp - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0015-0001-SetAutoFlush_Command08] -expectedFlushstate = false -newFlushstate = true - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0015-0001-new_Command09] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0015-0001-Load_Command10] -filename ={default_wserv,def_anim_plugin} - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0015-0001-new_Command11] -animdll =animdll - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0015-0001-new_Command12] -anim =anim - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0015-0001-Construct_Command13] -param =10,10;20,0;0;20,20;255,0,0;2,4; -type =EKWindowAnim -win = win - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0015-0001-CommandReply_Command14] -Code =EKeyEnter -opcode = ECmdGeneralPostKeyEvent -session =ws -windowgroup =wingp - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0016-0001-new_Command03] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0016-0001-Construct_Command04] -clienthandle = 1 - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0016-0001-new_Command05] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0016-0001-Construct_Command06] -handle = 3 -parent = wingp - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0016-0001-SetAutoFlush_Command08] -expectedFlushstate = false -newFlushstate = true - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0016-0001-new_Command09] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0016-0001-Load_Command10] -filename ={default_wserv,def_anim_plugin} - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0016-0001-new_Command11] -animdll =animdll - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0016-0001-new_Command12] -anim =anim - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0016-0001-Construct_Command13] -param =10,10;20,0;0;20,20;255,0,0;2,4; -type =EKWindowAnim -win = win - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0016-0001-CommandReply_Command14] -expected = ESyncNone -opcode = ECmdGeneralSync - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-new_Command03] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-Construct_Command04] -clienthandle = 1 - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-new_Command05] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-Construct_Command06] -handle = 3 -parent = wingp - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-SetAutoFlush_Command08] -expectedFlushstate = false -newFlushstate = true - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-new_Command09] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-Load_Command10] -filename ={default_wserv,def_anim_plugin} - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-new_Command11] -animdll =animdll - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-new_Command12] -anim =anim - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-Construct_Command13] -param =10,10;20,0;0;20,20;255,0,0;2,4; -type =EKWindowAnim -win = win - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-CommandReply_Command14] -animsync = ESyncNone -opcode = ECmdGeneralSetSync - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-CommandReply_Command15] -expected = ESyncNone -opcode = ECmdGeneralSync - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-CommandReply_Command16] -animsync = ESyncFlash -opcode = ECmdGeneralSetSync - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-CommandReply_Command17] -expected = ESyncFlash -opcode = ECmdGeneralSync - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-CommandReply_Command18] -animsync = ESyncSecond -opcode = ECmdGeneralSetSync - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-CommandReply_Command19] -expected = ESyncSecond -opcode = ECmdGeneralSync - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-CommandReply_Command20] -animsync = ESyncMinute -opcode = ECmdGeneralSetSync - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-CommandReply_Command21] -expected = ESyncMinute -opcode = ECmdGeneralSync - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-CommandReply_Command22] -animsync = ESyncDay -opcode = ECmdGeneralSetSync - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0017-0001-CommandReply_Command23] -expected = ESyncDay -opcode = ECmdGeneralSync - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0018-0001-new_Command03] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0018-0001-Construct_Command04] -clienthandle = 1 - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0018-0001-new_Command05] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0018-0001-Construct_Command06] -handle = 3 -parent = wingp - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0018-0001-SetAutoFlush_Command08] -expectedFlushstate = false -newFlushstate = true - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0018-0001-new_Command09] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0018-0001-Load_Command10] -filename ={default_wserv,def_anim_plugin} - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0018-0001-new_Command11] -animdll =animdll - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0018-0001-new_Command12] -anim =anim - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0018-0001-Construct_Command13] -param =10,10;20,0;0;20,20;255,0,0;2,4; -type =EKWindowAnim -win = win - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0018-0001-CommandReply_Command14] -animsync = ESyncNone -opcode = ECmdGeneralSetSync - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0018-0001-CommandReply_Command15] -interval = 4 -opcode = ECmdGeneralSetInterval - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0018-0001-CommandReply_Command17] -expected = true -opcode = ECmdRetrieveResult - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0018-0001-CommandReply_Command18] -interval = 1 -opcode = ECmdGeneralSetInterval - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0018-0001-CommandReply_Command20] -expected = true -opcode = ECmdRetrieveResult - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0019-0001-new_Command03] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0019-0001-Construct_Command04] -clienthandle = 1 - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0019-0001-new_Command05] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0019-0001-Construct_Command06] -handle = 3 -parent = wingp - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0019-0001-SetAutoFlush_Command08] -expectedFlushstate = false -newFlushstate = true - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0019-0001-new_Command09] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0019-0001-Load_Command10] -filename ={default_wserv,def_anim_plugin} - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0019-0001-new_Command11] -animdll =animdll - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0019-0001-new_Command12] -anim =anim - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0019-0001-Construct_Command13] -param =10,10;20,0;0;20,20;255,0,0;2,4; -type =EKWindowAnim -win = win - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0019-0001-CommandReply_Command14] -animsync = ESyncNone -opcode = ECmdGeneralSetSync - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0019-0001-CommandReply_Command15] -interval = 4 -opcode = ECmdGeneralSetInterval - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0019-0001-CommandReply_Command17] -interval = 0 -opcode = ECmdGeneralSetInterval - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0019-0001-CommandReply_Command19] -expected = true -opcode = ECmdRetrieveResult - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0020-0001-new_Command03] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0020-0001-Construct_Command04] -clienthandle = 1 - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0020-0001-new_Command05] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0020-0001-Construct_Command06] -handle = 3 -parent = wingp - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0020-0001-SetAutoFlush_Command08] -expectedFlushstate = false -newFlushstate = true - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0020-0001-new_Command09] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0020-0001-Load_Command10] -filename ={default_wserv,def_anim_plugin} - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0020-0001-new_Command11] -animdll =animdll - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0020-0001-new_Command12] -anim =anim - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0020-0001-Construct_Command13] -param =10,10;20,0;0;20,20;255,0,0;2,4; -type =EKWindowAnim -win = win - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0020-0001-CommandReply_Command14] -animsync = ESyncNone -opcode = ECmdGeneralSetSync - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0020-0001-CommandReply_Command15] -interval = 4 -opcode = ECmdGeneralSetInterval - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0020-0001-CommandReply_Command17] -expected = true -opcode = ECmdRetrieveResult - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0020-0001-CommandReply_Command18] -interval = -4 -opcode = ECmdGeneralSetInterval - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0020-0001-CommandReply_Command20] -expected = true -opcode = ECmdRetrieveResult - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0021-0001-new_Command03] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0021-0001-Construct_Command04] -clienthandle = 1 - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0021-0001-new_Command05] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0021-0001-Construct_Command06] -handle = 3 -parent = wingp - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0021-0001-SetAutoFlush_Command08] -expectedFlushstate = false -newFlushstate = true - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0021-0001-new_Command09] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0021-0001-Load_Command10] -filename ={default_wserv,def_anim_plugin} - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0021-0001-new_Command11] -animdll =animdll - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0021-0001-new_Command12] -anim =anim - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0021-0001-Construct_Command13] -param =10,10;20,0;0;20,20;255,0,0;2,4; -type =EKWindowAnim -win = win - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0021-0001-CommandReply_Command14] -animsync =ESyncFlash -opcode = ECmdGeneralSetSync - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0021-0001-CommandReply_Command15] -interval = 1 -opcode =ECmdGeneralSetInterval - - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0025-0001-new_Command03] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0025-0001-Construct_Command04] -clienthandle = 1 - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0025-0001-new_Command05] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0025-0001-Construct_Command06] -handle = 3 -parent = wingp - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0025-0001-SetAutoFlush_Command08] -expectedFlushstate = false -newFlushstate = true - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0025-0001-new_Command09] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0025-0001-Load_Command10] -filename ={default_wserv,def_anim_plugin} - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0025-0001-new_Command11] -animdll =animdll - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0025-0001-new_Command12] -anim =anim - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0025-0001-Construct_Command13] -param =10,10;20,0;0;20,20;255,0,0;2,4; -type =EKWindowAnim -win = win - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0025-0001-CommandReply_Command14] -animsync = ESyncNone -opcode = ECmdGeneralSetSync - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0025-0001-CommandReply_Command15] -interval = 4 -nextinterval = 2 -opcode = ECmdGeneralSetNextInterval - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0025-0001-CommandReply_Command17] -expected = true -opcode = ECmdRetrieveResult - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0026-0001-new_Command03] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0026-0001-Construct_Command04] -clienthandle = 1 - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0026-0001-new_Command05] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0026-0001-Construct_Command06] -handle = 3 -parent = wingp - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0026-0001-SetAutoFlush_Command08] -expectedFlushstate = false -newFlushstate = true - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0026-0001-new_Command09] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0026-0001-Load_Command10] -filename ={default_wserv,def_anim_plugin} - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0026-0001-new_Command11] -animdll =animdll - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0026-0001-new_Command12] -anim =anim - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0026-0001-Construct_Command13] -param =10,10;20,0;0;20,20;255,0,0;2,4; -type =EKWindowAnim -win = win - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0026-0001-CommandReply_Command14] -animsync = ESyncFlash -opcode = ECmdGeneralSetSync - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0026-0001-CommandReply_Command15] -interval = 1 -nextinterval = 1 -opcode = ECmdGeneralSetNextInterval - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0030-0001-new_Command03] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0030-0001-Construct_Command04] -clienthandle = 1 - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0030-0001-new_Command05] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0030-0001-Construct_Command06] -handle = 3 -parent = wingp - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0030-0001-SetAutoFlush_Command08] -expectedFlushstate = false -newFlushstate = true - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0030-0001-new_Command09] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0030-0001-Load_Command10] -filename ={default_wserv,def_anim_plugin} - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0030-0001-new_Command11] -animdll =animdll - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0030-0001-new_Command12] -anim =anim - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0030-0001-Construct_Command13] -param =10,10;20,0;0;20,20;255,0,0;2,4; -type =EKWindowAnim -win = win - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0030-0001-CommandReply_Command14] -animsync = ESyncNone -opcode = ECmdGeneralSetSync - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0030-0001-CommandReply_Command15] -interval = 4 -nextinterval = 0 -opcode = ECmdGeneralSetNextInterval - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0030-0001-CommandReply_Command17] -expected = true -opcode = ECmdRetrieveResult - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0030-0001-CommandReply_Command18] -interval = 4 -nextinterval = -2 -opcode = ECmdGeneralSetNextInterval - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0030-0001-CommandReply_Command20] -expected = true -opcode = ECmdRetrieveResult - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0031-0001-new_Command03] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0031-0001-Construct_Command04] -clienthandle = 1 - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0031-0001-new_Command05] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0031-0001-Construct_Command06] -handle = 3 -parent = wingp - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0031-0001-SetAutoFlush_Command08] -expectedFlushstate = false -newFlushstate = true - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0031-0001-new_Command09] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0031-0001-Load_Command10] -filename ={default_wserv,def_anim_plugin} - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0031-0001-new_Command11] -animdll =animdll - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0031-0001-new_Command12] -anim =anim - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0031-0001-Construct_Command13] -param =10,10;20,0;0;20,20;255,0,0;2,4; -type =EKWindowAnim -win = win - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0031-0001-CommandReply_Command14] -expected = EEventDirectScreenAccessBegin -notification = 1 -opcode = ECmdGeneralRegisterForNotis - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0031-0001-new_Command15] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0031-0001-NewL_Command17] -dsa = dsa -scrdev = scrdev -win = win -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0031-0001-StartL_Command18] -reason = ETerminateRegion - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0031-0001-CommandReply_Command21] -expected = true -opcode = ECmdRetrieveResult - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0031-0001-CommandReply_Command22] -expected = EEventDirectScreenAccessBegin -notification = 0 -opcode = ECmdGeneralRegisterForNotis - - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0034-0001-new_Command03] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0034-0001-Construct_Command04] -clienthandle = 1 - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0034-0001-new_Command05] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0034-0001-Construct_Command06] -handle = 3 -parent = wingp - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0034-0001-SetAutoFlush_Command08] -expectedFlushstate = false -newFlushstate = true - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0034-0001-new_Command09] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0034-0001-Load_Command10] -filename ={default_wserv,def_anim_plugin} - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0034-0001-new_Command11] -animdll =animdll - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0034-0001-new_Command12] -anim =anim - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0034-0001-Construct_Command13] -param =10,10;20,0;0;20,20;255,0,0;2,4; -type =EKWindowAnim -win = win - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0034-0001-CommandReply_Command14] -expected = send message -message = send message -opcode = ECmdGeneralMessage - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0035-0001-new_Command03] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0035-0001-Construct_Command04] -clienthandle = 1 - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0035-0001-new_Command05] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0035-0001-Construct_Command06] -handle = 3 -parent = wingp - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0035-0001-SetAutoFlush_Command07] -expectedFlushstate = false -newFlushstate = true - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0035-0001-new_Command08] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0035-0001-Load_Command09] -filename ={default_wserv,def_anim_plugin} - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0035-0001-new_Command10] -animdll =animdll - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0035-0001-new_Command11] -anim =anim - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0035-0001-Construct_Command12] -param =10,10;20,0;0;20,20;255,0,0;2,4; -type =EKWindowAnim -win = win - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0035-0001-SetRequiredDisplayMode_Command13] -mode = EColor64K - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0035-0001-SetBackgroundColor_Command14] -blue = 0 -green = 0 -red = 0 - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0035-0001-new_Command15] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0035-0001-Load_Command21] -bitmap_id = 0 -file_name = \graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded = FALSE -use_rfile = FALSE - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0035-0001-CommandReply_Command22] -bitmap = bitmap -opcode = ECmdGeneralDuplicateBitmapL - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0035-0001-RectCompare_Command23] -expected =false -flags =EIncludeSprite -rect1_bottom = 100 -rect1_left = 0 -rect1_right = 100 -rect1_top = 0 -rect2_bottom = 100 -rect2_left = 200 -rect2_right = 300 -rect2_top = 0 - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0036-0001-new_Command03] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0036-0001-Construct_Command04] -clienthandle = 1 - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0036-0001-new_Command05] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0036-0001-Construct_Command06] -handle = 3 -parent = wingp - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0036-0001-SetAutoFlush_Command08] -expectedFlushstate = false -newFlushstate = true - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0036-0001-new_Command09] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0036-0001-Load_Command10] -filename ={default_wserv,def_anim_plugin} - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0036-0001-new_Command11] -animdll =animdll - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0036-0001-new_Command12] -anim =anim - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0036-0001-Construct_Command13] -param =10,10;20,0;0;20,20;255,0,0;2,4; -type =EKWindowAnim -win = win - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0036-0001-SetRequiredDisplayMode_Command14] -mode = EColor64K - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0036-0001-SetBackgroundColor_Command15] -blue = 0 -green = 0 -red = 0 - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0036-0001-Load_Command17] -bitmap_id = 0 -file_name = \graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded = FALSE -use_rfile = FALSE - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0036-0001-CommandReply_Command18] -opcode = ECmdGeneralDuplicateBitmapL - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037-0001-new_Command03] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037-0001-Construct_Command04] -clienthandle = 1 - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037-0001-new_Command05] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037-0001-Construct_Command06] -handle = 3 -parent = wingp - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037-0001-SetAutoFlush_Command07] -expectedFlushstate = false -newFlushstate = true - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037-0001-new_Command08] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037-0001-Load_Command09] -filename ={default_wserv,def_anim_plugin} - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037-0001-new_Command10] -animdll =animdll - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037-0001-new_Command11] -anim =anim - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037-0001-Construct_Command12] -param =10,10;20,0;0;20,20;255,0,0;2,4; -type =EKWindowAnim -win = win - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037-0001-SetRequiredDisplayMode_Command13] -mode = EColor64K - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037-0001-SetBackgroundColor_Command14] -blue = 0 -green = 0 -red = 0 - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037-0001-new_Command15] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037-0001-Load_Command21] -bitmap_id = 0 -file_name = \graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded = FALSE -use_rfile = FALSE - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037-0001-CommandReply_Command22] -opcode =ECmdUtilEatupMemory - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037-0001-CommandReply_Command23] -bitmap = bitmap -opcode = ECmdGeneralDuplicateBitmapL - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037-0001-CommandReply_Command24] -opcode =ECmdUtilFreeEatenMemory - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0037-0001-RectCompare_Command25] -expected =true -flags =EIncludeSprite -rect1_bottom = 100 -rect1_left = 0 -rect1_right = 100 -rect1_top = 0 -rect2_bottom = 100 -rect2_left = 200 -rect2_right = 300 -rect2_top = 0 - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0038-0001-new_Command03] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0038-0001-Construct_Command04] -clienthandle = 1 - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0038-0001-new_Command05] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0038-0001-Construct_Command06] -handle = 3 -parent = wingp - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0038-0001-SetAutoFlush_Command07] -expectedFlushstate = false -newFlushstate = true - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0038-0001-new_Command08] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0038-0001-Load_Command09] -filename ={default_wserv,def_anim_plugin} - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0038-0001-new_Command10] -animdll =animdll - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0038-0001-new_Command11] -anim =anim - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0038-0001-Construct_Command12] -param =10,10;20,0;0;20,20;255,0,0;2,4; -type =EKWindowAnim -win = win - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0038-0001-SetRequiredDisplayMode_Command13] -mode = EColor64K - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0038-0001-SetBackgroundColor_Command14] -blue = 0 -green = 0 -red = 0 - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0038-0001-new_Command18] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0038-0001-GetNearestFontToDesignHeightInTwips_Command20] -font = font -font_height = 150 -font_name = Arial - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0038-0001-CommandReply_Command21] -font = font -opcode =ECmdGeneralDuplicateFontL - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0039-0001-new_Command03] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0039-0001-Construct_Command04] -clienthandle = 1 - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0039-0001-new_Command05] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0039-0001-Construct_Command06] -handle = 3 -parent = wingp - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0039-0001-SetAutoFlush_Command08] -expectedFlushstate = false -newFlushstate = true - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0039-0001-new_Command09] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0039-0001-Load_Command10] -filename ={default_wserv,def_anim_plugin} - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0039-0001-new_Command11] -animdll =animdll - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0039-0001-new_Command12] -anim =anim - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0039-0001-Construct_Command13] -param =10,10;20,0;0;20,20;255,0,0;2,4; -type =EKWindowAnim -win = win - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0039-0001-SetRequiredDisplayMode_Command14] -mode = EColor64K - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0039-0001-SetBackgroundColor_Command15] -blue = 0 -green = 0 -red = 0 - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0039-0001-CommandReply_Command16] -opcode = ECmdGeneralDuplicateFontL - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040-0001-new_Command03] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040-0001-Construct_Command04] -clienthandle = 1 - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040-0001-new_Command05] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040-0001-Construct_Command06] -handle = 3 -parent = wingp - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040-0001-SetAutoFlush_Command07] -expectedFlushstate = false -newFlushstate = true - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040-0001-new_Command08] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040-0001-Load_Command09] -filename ={default_wserv,def_anim_plugin} - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040-0001-new_Command10] -animdll =animdll - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040-0001-new_Command11] -anim =anim - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040-0001-Construct_Command12] -param =10,10;20,0;0;20,20;255,0,0;2,4; -type =EKWindowAnim -win = win - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040-0001-SetRequiredDisplayMode_Command13] -mode = EColor64K - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040-0001-SetBackgroundColor_Command14] -blue = 0 -green = 0 -red = 0 - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040-0001-new_Command18] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040-0001-GetNearestFontToDesignHeightInTwips_Command20] -font = font -font_height = 150 -font_name = Arial - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040-0001-CommandReply_Command21] -opcode =ECmdUtilEatupMemory - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040-0001-CommandReply_Command22] -font = font -opcode =ECmdGeneralDuplicateFontL - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0040-0001-CommandReply_Command23] -opcode =ECmdUtilFreeEatenMemory - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0041-0001-new_Command03] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0041-0001-Construct_Command04] -clienthandle = 1 - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0041-0001-new_Command05] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0041-0001-Construct_Command06] -handle = 3 -parent = wingp - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0041-0001-SetAutoFlush_Command08] -expectedFlushstate = false -newFlushstate = true - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0041-0001-new_Command09] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0041-0001-Load_Command10] -filename ={default_wserv,def_anim_plugin} - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0041-0001-new_Command11] -animdll =animdll - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0041-0001-new_Command12] -anim =anim - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0041-0001-Construct_Command13] -param =10,10;20,0;0;20,20;255,0,0;2,4; -type =EKWindowAnim -win = win - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0041-0001-SetRequiredDisplayMode_Command14] -mode = EColor64K - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0041-0001-SetBackgroundColor_Command15] -blue = 0 -green = 0 -red = 0 - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0041-0001-new_Command16] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0041-0001-GetNearestFontToDesignHeightInTwips_Command18] -font = font -font_height = 150 -font_name = Arial - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0041-0001-CommandReply_Command19] -font = font -opcode =ECmdGeneralCloseFont - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0042-0001-new_Command03] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0042-0001-Construct_Command04] -clienthandle = 1 - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0042-0001-new_Command05] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0042-0001-Construct_Command06] -handle = 3 -parent = wingp - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0042-0001-SetAutoFlush_Command08] -expectedFlushstate = false -newFlushstate = true - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0042-0001-new_Command09] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0042-0001-Load_Command10] -filename ={default_wserv,def_anim_plugin} - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0042-0001-new_Command11] -animdll =animdll - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0042-0001-new_Command12] -anim =anim - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0042-0001-Construct_Command13] -param =10,10;20,0;0;20,20;255,0,0;2,4; -type =EKWindowAnim -win = win - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0042-0001-CommandReply_Command14] -opcode = ECmdGeneralReplyBuf8 -slot2 = test1 -slot3 = test2 - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0043-0001-new_Command03] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0043-0001-Construct_Command04] -clienthandle = 1 - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0043-0001-new_Command05] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0043-0001-Construct_Command06] -handle = 3 -parent = wingp - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0043-0001-SetAutoFlush_Command08] -expectedFlushstate = false -newFlushstate = true - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0043-0001-new_Command09] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0043-0001-Load_Command10] -filename ={default_wserv,def_anim_plugin} - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0043-0001-new_Command11] -animdll =animdll - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0043-0001-new_Command12] -anim =anim - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0043-0001-Construct_Command13] -param =10,10;20,0;0;20,20;255,0,0;2,4; -type =EKWindowAnim -win = win - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0043-0001-CommandReply_Command14] -opcode = ECmdGeneralReplyBuf16 -slot2 = test1 -slot3 = test2 - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0044-0001-new_Command03] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0044-0001-Construct_Command04] -clienthandle = 1 - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0044-0001-new_Command05] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0044-0001-Construct_Command06] -handle = 3 -parent = wingp - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0044-0001-SetAutoFlush_Command08] -expectedFlushstate = false -newFlushstate = true - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0044-0001-new_Command09] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0044-0001-Load_Command10] -filename ={default_wserv,def_anim_plugin} - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0044-0001-new_Command11] -animdll =animdll - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0044-0001-new_Command12] -anim =anim - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0044-0001-Construct_Command13] -param =10,10;20,0;0;20,20;255,0,0;2,4; -type =EKWindowAnim -win = win - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0044-0001-CommandReply_Command14] -animsync =ESyncDay -expected =true -opcode =ECmdGeneralSystemTime - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0045-0001-new_Command03] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0045-0001-Construct_Command04] -clienthandle = 1 - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0045-0001-new_Command05] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0045-0001-Construct_Command06] -handle = 3 -parent = wingp - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0045-0001-SetAutoFlush_Command08] -expectedFlushstate = false -newFlushstate = true - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0045-0001-new_Command09] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0045-0001-Load_Command10] -filename ={default_wserv,def_anim_plugin} - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0045-0001-new_Command11] -animdll =animdll - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0045-0001-new_Command12] -anim =anim - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0045-0001-Construct_Command13] -param =10,10;20,0;0;20,20;255,0,0;2,4; -type =EKWindowAnim -win = win - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0045-0001-CommandReply_Command14] -animsync =ESyncMinute -expected =true -opcode =ECmdGeneralSystemTime - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0046-0001-new_Command03] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0046-0001-Construct_Command04] -clienthandle = 1 - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0046-0001-new_Command05] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0046-0001-Construct_Command06] -handle = 3 -parent = wingp - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0046-0001-SetAutoFlush_Command08] -expectedFlushstate = false -newFlushstate = true - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0046-0001-new_Command09] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0046-0001-Load_Command10] -filename ={default_wserv,def_anim_plugin} - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0046-0001-new_Command11] -animdll =animdll - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0046-0001-new_Command12] -anim =anim - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0046-0001-Construct_Command13] -param =10,10;20,0;0;20,20;255,0,0;2,4; -type =EKWindowAnim -win = win - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0046-0001-CommandReply_Command14] -animsync =ESyncSecond -expected =true -opcode =ECmdGeneralSystemTime - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0047-0001-new_Command03] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0047-0001-Construct_Command04] -clienthandle = 1 - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0047-0001-new_Command05] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0047-0001-Construct_Command06] -handle = 3 -parent = wingp - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0047-0001-SetAutoFlush_Command08] -expectedFlushstate = false -newFlushstate = true - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0047-0001-new_Command09] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0047-0001-Load_Command10] -filename ={default_wserv,def_anim_plugin} - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0047-0001-new_Command11] -animdll =animdll - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0047-0001-new_Command12] -anim =anim - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0047-0001-Construct_Command13] -param =10,10;20,0;0;20,20;255,0,0;2,4; -type =EKWindowAnim -win = win - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0047-0001-CommandReply_Command14] -animsync =ESyncFlash -expected =true -opcode =ECmdGeneralSystemTime - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0048-0001-new_Command03] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0048-0001-Construct_Command04] -clienthandle = 1 - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0048-0001-new_Command05] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0048-0001-Construct_Command06] -handle = 3 -parent = wingp - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0048-0001-SetAutoFlush_Command08] -expectedFlushstate = false -newFlushstate = true - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0048-0001-new_Command09] -ws = ws - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0048-0001-Load_Command10] -filename ={default_wserv,def_anim_plugin} - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0048-0001-new_Command11] -animdll =animdll - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0048-0001-new_Command12] -anim =anim - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0048-0001-Construct_Command13] -param =10,10;20,0;0;20,20;255,0,0;2,4; -type =EKWindowAnim -win = win - - -[GRAPHICS-WSERV-AnimGeneralFunctions-PublicApi-0048-0001-CommandReply_Command14] -animsync =ESyncNone -expected =true -opcode =ECmdGeneralSystemTime - - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/testdata/GRAPHICS-WSERV-AnimGfwe-PublicAPI.ini --- a/graphicsapitest/graphicssvs/wserv/testdata/GRAPHICS-WSERV-AnimGfwe-PublicAPI.ini Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,694 +0,0 @@ -[include] -file1 =\graphics\t_graphics.ini - -[ws] -name =ws - -[wingrp] -name =wingrp - -[wingrp1] -name =wingrp1 - -[win] -name =win - -[win1] -name =win1 - -[animdll] -name =animdll - -[anim] -name =anim - -[animformc] -name =animformc - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0001-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0001-0001-Construct_command004] -clienthandle =1 - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0001-0001-new_command005] -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0001-0001-Construct_command006] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0001-0001-new_command008] -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0001-0001-Load_command009] -filename ={default_wserv,def_anim_plugin} - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0001-0001-new_command010] -animdll =animdll - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0001-0001-new_command011] -anim =anim - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0001-0001-Construct_command012] -win =win -type =EKWindowAnim - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0001-0001-CommandReply_command013] -opcode =ECmdGfweScreens -args = -ws =ws - - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0002-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0002-0001-Construct_command004] -clienthandle =1 - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0002-0001-new_command005] -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0002-0001-Construct_command006] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0002-0001-new_command008] -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0002-0001-Load_command009] -filename ={default_wserv,def_anim_plugin} - - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0002-0001-new_command010] -animdll =animdll - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0002-0001-new_command011] -anim =anim - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0002-0001-Construct_command012] -win =win -type =EKWindowAnim - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0002-0001-CommandReply_command013] -opcode =ECmdGfweFocusScreens -args = -ws =ws - - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0003-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0003-0001-Construct_command004] -clienthandle =1 - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0003-0001-new_command005] -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0003-0001-Construct_command006] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0003-0001-new_command008] -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0003-0001-Load_command009] -filename ={default_wserv,def_anim_plugin} - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0003-0001-new_command010] -animdll =animdll - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0003-0001-new_command011] -anim =anim - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0003-0001-Construct_command012] -win =win -type =EKWindowAnim - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0003-0001-CommandReply_command013] -opcode =ECmdGfweSetFocusScreen -args = -screennumber =0 -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0003-0001-CommandReply_command014] -opcode =ECmdGfweFocusScreens -args = -ws =ws -expected =0 - - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0004-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0004-0001-Construct_command004] -clienthandle =1 - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0004-0001-new_command005] -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0004-0001-Construct_command006] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0004-0001-new_command008] -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0004-0001-Load_command009] -filename ={default_wserv,def_anim_plugin} - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0004-0001-new_command010] -animdll =animdll - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0004-0001-new_command011] -anim =anim - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0004-0001-Construct_command012] -win =win -type =EKWindowAnim - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0004-0001-CommandReply_command013] -opcode =ECmdGfweWindowGroups -args = -screennumber =0 -ws =ws - - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0005-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0005-0001-Construct_command004] -clienthandle =1 - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0005-0001-new_command005] -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0005-0001-Construct_command006] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0005-0001-new_command008] -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0005-0001-Load_command009] -filename ={default_wserv,def_anim_plugin} - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0005-0001-new_command010] -animdll =animdll - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0005-0001-new_command011] -anim =anim - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0005-0001-Construct_command012] -win =win -type =EKWindowAnim - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0005-0001-CommandReply_command013] -opcode =ECmdGfweWindowGroupInfo -args = -screennumber =0 -expected =true -wingrp =wingrp - - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0006-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0006-0001-Construct_command004] -clienthandle =1 - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0006-0001-new_command005] -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0006-0001-ConstructChildApp_command006] -idofparentwindowgroup =wingrp -clienthandle =2 - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0006-0001-EnableReceiptOfFocus_command007] -state =false - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0006-0001-SetName_command008] -inputWGN =MyWindowGroup - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0006-0001-new_command009] -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0006-0001-Construct_command010] -parent =wingrp1 -handle =3 - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0006-0001-new_command012] -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0006-0001-Load_command013] -filename ={default_wserv,def_anim_plugin} - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0006-0001-new_command014] -animdll =animdll - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0006-0001-new_command015] -anim =anim - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0006-0001-Construct_command016] -win =win -type =EKWindowAnim - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0006-0001-CommandReply_command017] -opcode =ECmdGfweWindowGroupInfo -args = -screennumber =0 -expected =true -wingrp =wingrp - - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0007-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0007-0001-Construct_command004] -clienthandle =1 - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0007-0001-new_command005] -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0007-0001-Construct_command006] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0007-0001-new_command008] -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0007-0001-Load_command009] -filename ={default_wserv,def_anim_plugin} - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0007-0001-new_command010] -animdll =animdll - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0007-0001-new_command011] -anim =anim - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0007-0001-Construct_command012] -win =win -type =EKWindowAnim - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0007-0001-CommandReply_command013] -opcode =ECmdGfweWindowGroupInfo -args = -screennumber =0 -fullpos =12345 -expected =false -wingrp =wingrp - - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0008-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0008-0001-Construct_command004] -clienthandle =1 - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0008-0001-new_command005] -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0008-0001-Construct_command006] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0008-0001-new_command008] -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0008-0001-Load_command009] -filename ={default_wserv,def_anim_plugin} - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0008-0001-new_command010] -animdll =animdll - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0008-0001-new_command011] -anim =anim - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0008-0001-Construct_command012] -win =win -type =EKWindowAnim - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0008-0001-CommandReply_command013] -opcode =ECmdGfweWindowGroupName -args = -screennumber =0 -expected =true -wingrp =wingrp - - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0009-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0009-0001-Construct_command004] -clienthandle =1 - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0009-0001-SetName_command005] -inputWGN =MyWindowGroup - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0009-0001-new_command006] -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0009-0001-Construct_command007] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0009-0001-new_command009] -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0009-0001-Load_command010] -filename ={default_wserv,def_anim_plugin} - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0009-0001-new_command011] -animdll =animdll - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0009-0001-new_command012] -anim =anim - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0009-0001-Construct_command013] -win =win -type =EKWindowAnim - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0009-0001-CommandReply_command014] -opcode =ECmdGfweWindowGroupName -args = -screennumber =0 -expected =true -wingrp =wingrp - - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0010-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0010-0001-Construct_command004] -clienthandle =1 - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0010-0001-new_command005] -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0010-0001-Construct_command006] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0010-0001-new_command008] -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0010-0001-Load_command009] -filename ={default_wserv,def_anim_plugin} - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0010-0001-new_command010] -animdll =animdll - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0010-0001-new_command011] -anim =anim - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0010-0001-Construct_command012] -win =win -type =EKWindowAnim - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0010-0001-CommandReply_command013] -opcode =ECmdGfweWindowGroupName -args = -screennumber =0 -fullpos =12345 -expected =false -wingrp =wingrp - - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0011-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0011-0001-Construct_command004] -clienthandle =1 - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0011-0001-new_command005] -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0011-0001-Construct_command006] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0011-0001-new_command008] -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0011-0001-Load_command009] -filename ={default_wserv,def_anim_plugin} - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0011-0001-new_command010] -animdll =animdll - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0011-0001-new_command011] -anim =anim - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0011-0001-Construct_command012] -win =win -type =EKWindowAnim - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0011-0001-CommandReply_command013] -opcode =ECmdGfweSetOrdinalPosition -args = -ordinalpriority =3 -expected =0 -wingrp =wingrp - - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0012-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0012-0001-Construct_command004] -clienthandle =1 - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0012-0001-new_command005] -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0012-0001-Construct_command006] -clienthandle =2 - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0012-0001-new_command007] -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0012-0001-Construct_command008] -parent =wingrp -handle =4 - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0012-0001-new_command010] -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0012-0001-Load_command011] -filename ={default_wserv,def_anim_plugin} - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0012-0001-new_command012] -animdll =animdll - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0012-0001-new_command013] -anim =anim - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0012-0001-Construct_command014] -win =win -type =EKWindowAnim - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0012-0001-CommandReply_command015] -opcode =ECmdGfweSetOrdinalPosition -args = -pos =1 -expected =0 -wingrp =wingrp1 - - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0013-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0013-0001-Construct_command004] -clienthandle =1 - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0013-0001-new_command005] -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0013-0001-Construct_command006] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0013-0001-new_command008] -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0013-0001-Load_command009] -filename ={default_wserv,def_anim_plugin} - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0013-0001-new_command010] -animdll =animdll - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0013-0001-new_command011] -anim =anim - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0013-0001-Construct_command012] -win =win -type =EKWindowAnim - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0013-0001-CommandReply_command013] -opcode =ECmdGfweSetOrdinalPosition -args = -windowgroupid =-1 -pos =0 -ordinalpriority =3 -expected =-1 - - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0014-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0014-0001-Construct_command004] -clienthandle =1 - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0014-0001-new_command005] -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0014-0001-Construct_command006] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0014-0001-new_command008] -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0014-0001-Load_command009] -filename ={default_wserv,def_anim_plugin} - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0014-0001-new_command010] -animdll =animdll - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0014-0001-new_command011] -animd =anim - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0014-0001-Construct_command012] -win =win -type =EKWindowAnim - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0014-0001-CommandReply_command013] -opcode =ECmdGfweIsFocusable -args = -expected =true - - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0015-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0015-0001-Construct_command004] -clienthandle =1 - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0015-0001-new_command005] -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0015-0001-Construct_command006] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0015-0001-SetExtent_command007] -size_height =100 -size_width =100 -point_x =50 -point_y =50 - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0015-0001-new_command009] -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0015-0001-Load_command010] -filename ={default_wserv,def_anim_plugin} - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0015-0001-new_command011] -animdll =animdll - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0015-0001-new_command012] -anim =anim - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0015-0001-Construct_command013] -win =win -type =EKWindowAnim - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0015-0001-new_command014] -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0015-0001-Construct_command015] -parent =wingrp -handle =3 - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0015-0001-CommandReply_command017] -opcode =ECmdGfweIsFocusable -args = -screennumber =0 -expected =false - - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0016-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0016-0001-Construct_command004] -clienthandle =1 - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0016-0001-new_command005] -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0016-0001-Construct_command006] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0016-0001-new_command008] -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0016-0001-Load_command009] -filename ={default_wserv,def_anim_plugin} - - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0016-0001-new_command010] -animdll =animdll - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0016-0001-new_command011] -anim =anim - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0016-0001-Construct_command012] -win =win -type =EKWindowAnim - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0016-0001-CommandReply_command013] -opcode =ECmdGfweWindowConfig -args = -expected =false - - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0017-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0017-0001-Construct_command004] -clienthandle =1 - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0017-0001-new_command005] -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0017-0001-Construct_command006] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0017-0001-SetTransparencyFactor_command007] -transparencyfactor_red =99 -transparencyfactor_green=99 -transparencyfactor_blue =99 - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0017-0001-new_command009] -ws =ws - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0017-0001-Load_command010] -filename ={default_wserv,def_anim_plugin} - - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0017-0001-new_command011] -animdll =animdll - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0017-0001-new_command012] -anim =anim - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0017-0001-Construct_command013] -win =win -type =EKWindowAnim - -[GRAPHICS-WSERV-AnimGfwe-PublicApi-0017-0001-CommandReply_command014] -opcode =ECmdGfweWindowConfig -args = -expected =true - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/testdata/GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi.ini --- a/graphicsapitest/graphicssvs/wserv/testdata/GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi.ini Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1141 +0,0 @@ -[include] -file1 =\graphics\t_graphics.ini - - -[ws] -name=ws - -[wingp] -name=wingp - -[win] -name=win - -[sprite] -name=sprite - -[animdll] -name=animdll - -[anim] -name=anim - -[animformc] -name=animformc - -[mask1] -name=mask1 - -[bitmap1] -name=bitmap1 - -[bitmap2] -name=bitmap2 - -[scrdev] -name=scrdev - -[win2] -name=win2 - -[bitmap3] -name=bitmap3 - -[bitmap4] -name=bitmap4 - - - - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001-0001-new_Command03] -ws = ws - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001-0001-Construct_Command04] -clienthandle = 1 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001-0001-new_Command05] -ws = ws - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001-0001-Construct_Command06] -handle = 3 -parent = wingp - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001-0001-new_Command07] -ws = ws - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001-0001-Construct_Command08] -flag = 1 -pos = -win = win - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001-0001-Load_Command10] -bitmap_id = 0 -file_name = \graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded = FALSE -use_rfile = FALSE - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001-0001-Load_Command12] -bitmap_id = 1 -file_name = \graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded = FALSE -use_rfile = FALSE - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001-0001-AppendMember_Command13] -spritemember_bitmap = bitmap1 -spritemember_drawmode = EDrawModeAND -spritemember_interval = 1000 -spritemember_invertmask = FALSE; -spritemember_maskbitmap = mask1 -spritemember_offset_x = 5 -spritemember_offset_y = 5 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001-0001-Load_Command15] -bitmap_id = 2 -file_name = \graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded = FALSE -use_rfile = FALSE - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001-0001-AppendMember_Command16] -spritemember_bitmap = bitmap2 -spritemember_drawmode = EDrawModeAND -spritemember_interval = 1000 -spritemember_invertmask = FALSE; -spritemember_maskbitmap = mask1 -spritemember_offset_x = 25 -spritemember_offset_y = 25 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001-0001-SetPosition_Command17] -pos_x =10 -pos_y =10 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001-0001-new_Command19] -ws = ws - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001-0001-Load_Command20] -filename ={default_wserv,def_anim_plugin} - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001-0001-new_Command21] -animdll =animdll - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001-0001-new_Command22] -anim =anim - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001-0001-Construct_Command23] -param =10,10;20,0; -sprite =sprite -type =EKSpriteAnim - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0001-0001-CommandReply_Command24] -expectedpoint_x = 5 -expectedpoint_y = 5 -member_index = 0 -opcode = ECmdSpriteGetSpriteMember - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-new_Command03] -ws = ws - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-Construct_Command04] -clienthandle = 1 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-new_Command05] -ws = ws - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-Construct_Command06] -handle = 3 -parent = wingp - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-new_Command07] -ws = ws - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-SetRequiredDisplayMode_Command09] -mode = EColor256 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-SetBackgroundColor_Command10] -blue = 255 -green = 255 -red = 255 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-new_Command14] -ws = ws - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-Construct_Command15] -flag = 1 -pos = -win = win - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-Load_Command17] -bitmap_id = 0 -file_name = \graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded = FALSE -use_rfile = FALSE - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-Load_Command19] -bitmap_id = 1 -file_name = \graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded = FALSE -use_rfile = FALSE - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-AppendMember_Command20] -spritemember_bitmap = bitmap1 -spritemember_drawmode = EDrawModeAND -spritemember_interval = 1000 -spritemember_invertmask = FALSE; -spritemember_maskbitmap = mask1 -spritemember_offset_x = 5 -spritemember_offset_y = 5 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-SetPosition_Command21] -pos_x =10 -pos_y =10 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-new_Command23] -ws = ws - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-Load_Command24] -filename ={default_wserv,def_anim_plugin} - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-new_Command25] -animdll =animdll - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-new_Command26] -anim =anim - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-Construct_Command27] -param =10,10;20,0; -sprite =sprite -type =EKSpriteAnim - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-CommandReply_Command28] -isactivate = false -opcode = ECmdSpriteActivate - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-RectCompare_Command29] -expected =true -flags =EIncludeSprite -rect1_bottom = 100 -rect1_left = 0 -rect1_right = 100 -rect1_top = 0 -rect2_bottom = 100 -rect2_left = 200 -rect2_right = 300 -rect2_top = 0 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-CommandReply_Command30] -isactivate = true -opcode = ECmdSpriteActivate - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0002-0001-RectCompare_Command31] -expected = false -flags =EIncludeSprite -rect1_bottom = 100 -rect1_left = 0 -rect1_right = 100 -rect1_top = 0 -rect2_bottom = 100 -rect2_left = 200 -rect2_right = 300 -rect2_top = 0 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-new_Command03] -ws = ws - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-Construct_Command04] -clienthandle = 1 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-new_Command05] -ws = ws - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-Construct_Command06] -handle = 3 -parent = wingp - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-new_Command07] -ws = ws - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-SetRequiredDisplayMode_Command09] -mode = EColor256 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-SetBackgroundColor_Command10] -blue = 255 -green = 255 -red = 255 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-new_Command14] -ws = ws - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-Construct_Command15] -flag = 1 -pos = -win = win - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-Load_Command17] -bitmap_id = 0 -file_name = \graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded = FALSE -use_rfile = FALSE - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-Load_Command19] -bitmap_id = 1 -file_name = \graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded = FALSE -use_rfile = FALSE - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-AppendMember_Command20] -spritemember_bitmap = bitmap1 -spritemember_drawmode = EDrawModeAND -spritemember_interval = 1000 -spritemember_invertmask = FALSE; -spritemember_maskbitmap = mask1 -spritemember_offset_x = 5 -spritemember_offset_y = 5 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-SetPosition_Command21] -pos_x =10 -pos_y =10 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-new_Command23] -ws = ws - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-Load_Command24] -filename ={default_wserv,def_anim_plugin} - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-new_Command25] -animdll =animdll - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-new_Command26] -anim =anim - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-Construct_Command27] -param =10,10;20,0; -sprite =sprite -type =EKSpriteAnim - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-RectCompare_Command28] -expected = false -flags =EIncludeSprite -rect1_bottom = 100 -rect1_left = 0 -rect1_right = 100 -rect1_top = 0 -rect2_bottom = 100 -rect2_left = 200 -rect2_right = 300 -rect2_top = 0 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-CommandReply_Command29] -opcode = ECmdSpriteSetPosition -pos_x =100 -pos_y =100 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-RectCompare_Command30] -expected = true -flags =EIncludeSprite -rect1_bottom = 100 -rect1_left = 0 -rect1_right = 100 -rect1_top = 0 -rect2_bottom = 100 -rect2_left = 200 -rect2_right = 300 -rect2_top = 0 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0003-0001-RectCompare_Command31] -expected = false -flags =EIncludeSprite -rect1_bottom = 200 -rect1_left = 100 -rect1_right = 200 -rect1_top = 100 -rect2_bottom = 100 -rect2_left = 200 -rect2_right = 300 -rect2_top = 0 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-new_Command03] -ws = ws - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-Construct_Command04] -clienthandle = 1 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-new_Command05] -ws = ws - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-Construct_Command06] -handle = 3 -parent = wingp - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-new_Command07] -ws = ws - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-SetRequiredDisplayMode_Command09] -mode = EColor256 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-SetBackgroundColor_Command10] -blue = 255 -green = 255 -red = 255 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-new_Command14] -ws = ws - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-Construct_Command15] -flag = 1 -pos = -win = win - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-Load_Command17] -bitmap_id = 0 -file_name = \graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded = FALSE -use_rfile = FALSE - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-Load_Command19] -bitmap_id = 1 -file_name = \graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded = FALSE -use_rfile = FALSE - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-AppendMember_Command20] -spritemember_bitmap = bitmap1 -spritemember_drawmode = EDrawModeAND -spritemember_interval = 1000 -spritemember_invertmask = FALSE; -spritemember_maskbitmap = mask1 -spritemember_offset_x = 5 -spritemember_offset_y = 5 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-SetPosition_Command21] -pos_x =10 -pos_y =10 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-new_Command23] -ws = ws - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-Load_Command24] -filename ={default_wserv,def_anim_plugin} - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-new_Command25] -animdll =animdll - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-new_Command26] -anim =anim - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-Construct_Command27] -param =10,10;20,0; -sprite =sprite -type =EKSpriteAnim - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-CommandReply_Command28] -isactivate = false -opcode = ECmdSpriteActivate - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-RectCompare_Command29] -expected = true -flags =EIncludeSprite -rect1_bottom = 100 -rect1_left = 0 -rect1_right = 100 -rect1_top = 0 -rect2_bottom = 100 -rect2_left = 200 -rect2_right = 300 -rect2_top = 0 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-CommandReply_Command30] -expected = false -opcode = ECmdSpriteSpriteCanBeSeen - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-CommandReply_Command31] -isactivate = true -opcode = ECmdSpriteActivate - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-RectCompare_Command32] -expected = false -flags =EIncludeSprite -rect1_bottom = 100 -rect1_left = 0 -rect1_right = 100 -rect1_top = 0 -rect2_bottom = 100 -rect2_left = 200 -rect2_right = 300 -rect2_top = 0 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0004-0001-CommandReply_Command33] -expected = true -opcode = ECmdSpriteSpriteCanBeSeen - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-new_Command03] -ws = ws - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-Construct_Command04] -clienthandle = 1 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-new_Command05] -ws = ws - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-Construct_Command06] -handle = 3 -parent = wingp - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-SetRequiredDisplayMode_Command09] -mode = EColor256 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-SetBackgroundColor_Command10] -blue = 255 -green = 255 -red = 255 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-new_Command14] -ws = ws - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-Construct_Command15] -flag = 1 -pos = -win = win - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-Load_Command17] -bitmap_id = 0 -file_name = \graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded = FALSE -use_rfile = FALSE - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-Load_Command19] -bitmap_id = 1 -file_name = \graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded = FALSE -use_rfile = FALSE - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-AppendMember_Command20] -spritemember_bitmap = bitmap1 -spritemember_drawmode = EDrawModeAND -spritemember_interval = 1000 -spritemember_invertmask = FALSE; -spritemember_maskbitmap = mask1 -spritemember_offset_x = 5 -spritemember_offset_y = 5 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-SetPosition_Command21] -pos_x =10 -pos_y =10 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-new_Command23] -ws = ws - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-Load_Command24] -filename ={default_wserv,def_anim_plugin} - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-new_Command25] -animdll =animdll - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-new_Command26] -anim =anim - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-Construct_Command27] -param =10,10;20,0; -sprite =sprite -type =EKSpriteAnim - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-CommandReply_Command28] -expected = true -opcode = ECmdSpriteSpriteCanBeSeen - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-new_Command29] -ws = ws - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-Construct_Command30] -handle = 4 -parent = wingp - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-SetRequiredDisplayMode_Command31] -mode = EColor256 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-SetBackgroundColor_Command32] -blue = 0 -green = 255 -red = 255 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0005-0001-CommandReply_Command36] -expected = false -opcode = ECmdSpriteSpriteCanBeSeen - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006-0001-new_Command03] -ws = ws - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006-0001-Construct_Command04] -clienthandle = 1 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006-0001-new_Command05] -ws = ws - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006-0001-Construct_Command06] -handle = 3 -parent = wingp - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006-0001-new_Command07] -ws = ws - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006-0001-Construct_Command08] -flag = 1 -pos = -win = win - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006-0001-Load_Command10] -bitmap_id = 0 -file_name = \graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded = FALSE -use_rfile = FALSE - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006-0001-Load_Command12] -bitmap_id = 1 -file_name = \graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded = FALSE -use_rfile = FALSE - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006-0001-AppendMember_Command13] -spritemember_bitmap = bitmap1 -spritemember_drawmode = EDrawModeAND -spritemember_interval = 1000 -spritemember_invertmask = FALSE; -spritemember_maskbitmap = mask1 -spritemember_offset_x = 5 -spritemember_offset_y = 5 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006-0001-Load_Command15] -bitmap_id = 2 -file_name = \graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded = FALSE -use_rfile = FALSE - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006-0001-AppendMember_Command16] -spritemember_bitmap = bitmap2 -spritemember_drawmode = EDrawModeAND -spritemember_interval = 1000 -spritemember_invertmask = FALSE; -spritemember_maskbitmap = mask1 -spritemember_offset_x = 25 -spritemember_offset_y = 25 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006-0001-SetPosition_Command17] -pos_x =10 -pos_y =10 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006-0001-new_Command19] -ws = ws - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006-0001-Load_Command20] -filename ={default_wserv,def_anim_plugin} - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006-0001-new_Command21] -animdll =animdll - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006-0001-new_Command22] -anim =anim - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006-0001-Construct_Command23] -param =10,10;20,0; -sprite =sprite -type =EKSpriteAnim - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0006-0001-CommandReply_Command24] -isfullupdate = true -member_index = 2 -opcode = ECmdSpriteUpdateMember -rect_bottom = 100 -rect_left = 50 -rect_right = 100 -rect_top = 50 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007-0001-new_Command03] -ws = ws - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007-0001-Construct_Command04] -clienthandle = 1 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007-0001-new_Command05] -ws = ws - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007-0001-Construct_Command06] -handle = 3 -parent = wingp - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007-0001-new_Command07] -ws = ws - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007-0001-Construct_Command08] -flag = 1 -pos = -win = win - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007-0001-Load_Command10] -bitmap_id = 0 -file_name = \graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded = FALSE -use_rfile = FALSE - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007-0001-Load_Command12] -bitmap_id = 1 -file_name = \graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded = FALSE -use_rfile = FALSE - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007-0001-AppendMember_Command13] -spritemember_bitmap = bitmap1 -spritemember_drawmode = EDrawModePEN -spritemember_interval = 1000 -spritemember_invertmask = FALSE; -spritemember_maskbitmap = mask1 -spritemember_offset_x = 5 -spritemember_offset_y = 5 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007-0001-Load_Command15] -bitmap_id = 2 -file_name = \graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded = FALSE -use_rfile = FALSE - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007-0001-AppendMember_Command16] -spritemember_bitmap = bitmap2 -spritemember_drawmode = EDrawModePEN -spritemember_interval = 1000 -spritemember_invertmask = FALSE; -spritemember_maskbitmap = mask1 -spritemember_offset_x = 25 -spritemember_offset_y = 25 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007-0001-SetPosition_Command17] -pos_x =10 -pos_y =10 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007-0001-new_Command19] -ws = ws - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007-0001-Load_Command20] -filename ={default_wserv,def_anim_plugin} - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007-0001-new_Command21] -animdll =animdll - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007-0001-new_Command22] -anim =anim - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007-0001-Construct_Command23] -param =10,10;20,0; -sprite =sprite -type =EKSpriteAnim - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0007-0001-CommandReply_Command24] -isfullupdate = false -member_index = 1 -opcode = ECmdSpriteUpdateMember -rect_bottom = 100 -rect_left = 50 -rect_right = 100 -rect_top = 50 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-new_Command03] -ws = ws - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-Construct_Command04] -clienthandle = 1 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-new_Command05] -ws = ws - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-Construct_Command06] -handle = 3 -parent = wingp - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-new_Command07] -ws = ws - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-Construct_Command08] -flag = 1 -pos = -win = win - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-Load_Command10] -bitmap_id = 0 -file_name = \graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded = FALSE -use_rfile = FALSE - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-Resize_Command11] -height =500 -width =500 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-Load_Command13] -bitmap_id = 1 -file_name = \graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded = FALSE -use_rfile = FALSE - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-AppendMember_Command14] -spritemember_bitmap = bitmap1 -spritemember_drawmode = EDrawModeAND -spritemember_interval = 1000 -spritemember_invertmask = FALSE; -spritemember_maskbitmap = mask1 -spritemember_offset_x = 5 -spritemember_offset_y = 5 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-Load_Command16] -bitmap_id = 2 -file_name = \graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded = FALSE -use_rfile = FALSE - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-AppendMember_Command17] -spritemember_bitmap = bitmap2 -spritemember_drawmode = EDrawModeAND -spritemember_interval = 1000 -spritemember_invertmask = FALSE; -spritemember_maskbitmap = mask1 -spritemember_offset_x = 25 -spritemember_offset_y = 25 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-SetPosition_Command18] -pos_x = 10 -pos_y = 10 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-new_Command20] -ws = ws - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-Load_Command21] -filename = {default_wserv,def_anim_plugin} - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-new_Command22] -animdll = animdll - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-new_Command23] -anim = anim - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-Construct_Command24] -param = 10,10;20,0; -sprite = sprite -type = EKSpriteAnim - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-Resize_Command25] -height =300 -width =300 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0008-0001-CommandReply_Command26] -opcode = ECmdSpriteSizeChangedL - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-new_Command03] -ws = ws - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-Construct_Command04] -clienthandle = 1 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-new_Command05] -ws = ws - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-Construct_Command06] -handle = 3 -parent = wingp - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-new_Command10] -ws =ws - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-new_Command12] -ws = ws - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-Construct_Command13] -flag = 1 -pos = -win = win - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-Load_Command15] -bitmap_id = 0 -file_name = \graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded = FALSE -use_rfile = FALSE - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-Load_Command17] -bitmap_id = 1 -file_name = \graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded = FALSE -use_rfile = FALSE - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-AppendMember_Command18] -spritemember_bitmap = bitmap1 -spritemember_drawmode = EDrawModeAND -spritemember_interval = 2000000 -spritemember_invertmask = FALSE; -spritemember_maskbitmap = mask1 -spritemember_offset_x = 5 -spritemember_offset_y = 5 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-Load_Command20] -bitmap_id = 2 -file_name = \graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded = FALSE -use_rfile = FALSE - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-AppendMember_Command21] -spritemember_bitmap = bitmap2 -spritemember_drawmode = EDrawModeAND -spritemember_interval = 2000000 -spritemember_invertmask = FALSE; -spritemember_maskbitmap = mask1 -spritemember_offset_x = 25 -spritemember_offset_y = 25 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-Load_Command23] -bitmap_id = 3 -file_name = \graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded = FALSE -use_rfile = FALSE - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-AppendMember_Command24] -spritemember_bitmap = bitmap3 -spritemember_drawmode = EDrawModeAND -spritemember_interval = 2000000 -spritemember_invertmask = FALSE; -spritemember_maskbitmap = mask1 -spritemember_offset_x = 50 -spritemember_offset_y = 50 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-Load_Command26] -bitmap_id = 4 -file_name = \graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded = FALSE -use_rfile = FALSE - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-AppendMember_Command27] -spritemember_bitmap = bitmap4 -spritemember_drawmode = EDrawModeAND -spritemember_interval = 2000000 -spritemember_invertmask = FALSE; -spritemember_maskbitmap = mask1 -spritemember_offset_x = 75 -spritemember_offset_y = 75 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-SetPosition_Command28] -pos_x = 10 -pos_y = 10 - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-new_Command30] -ws = ws - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-Load_Command31] -filename = {default_wserv,def_anim_plugin} - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-new_Command32] -animdll = animdll - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-new_Command33] -anim = anim - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-Construct_Command34] -param = 10,10;20,0; -sprite = sprite -type = EKSpriteAnim - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-CommandReply_Command36] -opcode = ECmdSpriteSizeChangedL - - -[GRAPHICS-WSERV-AnimSpriteFunctions-PublicApi-0009-0001-RectCompare_Command38] -expected = false -flags =EIncludeSprite -rect1_bottom = 75 -rect1_left = 50 -rect1_right = 75 -rect1_top = 50 -rect2_bottom = 25 -rect2_left = 200 -rect2_right = 225 -rect2_top = 0 - - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/testdata/GRAPHICS-WSERV-AnimWindowFunctions-PublicApi.ini --- a/graphicsapitest/graphicssvs/wserv/testdata/GRAPHICS-WSERV-AnimWindowFunctions-PublicApi.ini Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,789 +0,0 @@ -[include] -file1 =\graphics\t_graphics.ini - -[ws] -name =ws - -[scrdev] -name =scrdev - -[wingc] -name =wingc - -[wingrp] -name =wingrp - -[win] -name =win - -[win1] -name =win1 - -[animdll] -name =animdll - -[anim] -name =anim - -[animformc] -name =animformc - - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0001-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0001-0001-Construct_command004] -clienthandle =1 - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0001-0001-new_command005] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0001-0001-Construct_command006] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0001-0001-new_command008] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0001-0001-Load_command009] -filename ={default_wserv,def_anim_plugin} - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0001-0001-new_command010] -animdll =animdll - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0001-0001-new_command011] -anim =anim - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0001-0001-Construct_command012] -win =win -type =EKWindowAnim - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0001-0001-CommandReply_command013] -opcode =ECmdWindowActivateGc -args = - - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0002-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0002-0001-Construct_command004] -clienthandle =1 - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0002-0001-new_command005] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0002-0001-Construct_command006] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0002-0001-new_command008] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0002-0001-Load_command009] -filename ={default_wserv,def_anim_plugin} - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0002-0001-new_command010] -animdll =animdll - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0002-0001-new_command011] -anim =anim - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0002-0001-Construct_command012] -win =win -type =EKWindowAnim - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0002-0001-CommandReply_command013] -opcode =ECmdWindowParameters -args = -win =win - - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0003-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0003-0001-Construct_command004] -clienthandle =1 - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0003-0001-new_command005] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0003-0001-Construct_command006] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0003-0001-new_command008] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0003-0001-Load_command009] -filename ={default_wserv,def_anim_plugin} - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0003-0001-new_command010] -animdll =animdll - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0003-0001-new_command011] -anim =anim - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0003-0001-Construct_command012] -win =win -type =EKWindowAnim - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0003-0001-CommandReply_command013] -opcode =ECmdWindowWindowSize -args = -win =win - - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0004-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0004-0001-Construct_command004] -clienthandle =1 - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0004-0001-new_command005] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0004-0001-Construct_command006] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0004-0001-SetExtent_command007] -size_height =60 -size_width =60 -point_x =40 -point_y =40 - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0004-0001-new_command009] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0004-0001-Load_command010] -filename ={default_wserv,def_anim_plugin} - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0004-0001-new_command011] -animdll =animdll - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0004-0001-new_command012] -anim =anim - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0004-0001-Construct_command013] -win =win -type =EKWindowAnim - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0004-0001-new_command014] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0004-0001-Construct_command015] -parent =wingrp -handle =3 - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0004-0001-SetExtent_command016] -size_height =100 -size_width =100 -point_x =20 -point_y =20 - - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0004-0001-CommandReply_command018] -opcode =ECmdWindowIsHidden -args = -expected =true - - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0005-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0005-0001-Construct_command004] -clienthandle =1 - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0005-0001-new_command005] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0005-0001-Construct_command006] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0005-0001-SetExtent_command007] -size_height =60 -size_width =60 -point_x =40 -point_y =40 - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0005-0001-new_command009] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0005-0001-Load_command010] -filename ={default_wserv,def_anim_plugin} - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0005-0001-new_command011] -animdll =animdll - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0005-0001-new_command012] -anim =anim - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0005-0001-Construct_command013] -win =win -type =EKWindowAnim - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0005-0001-new_command014] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0005-0001-Construct_command015] -parent =wingrp -handle =3 - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0005-0001-SetExtent_command016] -size_height =60 -size_width =60 -point_x =40 -point_y =40 - - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0005-0001-CommandReply_command018] -opcode =ECmdWindowIsHidden -args = -expected =true - - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0006-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0006-0001-Construct_command004] -clienthandle =1 - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0006-0001-new_command005] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0006-0001-Construct_command006] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0006-0001-SetExtent_command007] -size_height =60 -size_width =60 -point_x =40 -point_y =40 - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0006-0001-new_command009] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0006-0001-Load_command010] -filename ={default_wserv,def_anim_plugin} - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0006-0001-new_command011] -animdll =animdll - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0006-0001-new_command012] -anim =anim - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0006-0001-Construct_command013] -win =win -type =EKWindowAnim - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0006-0001-new_command014] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0006-0001-Construct_command015] -parent =wingrp -handle =3 - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0006-0001-SetExtent_command016] -size_height =20 -size_width =20 -point_x =40 -point_y =40 - - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0006-0001-CommandReply_command018] -opcode =ECmdWindowIsHidden -args = -expected =false - - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0007-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0007-0001-Construct_command004] -clienthandle =1 - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0007-0001-new_command005] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0007-0001-Construct_command006] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0007-0001-SetExtent_command007] -size_height =60 -size_width =60 -point_x =40 -point_y =40 - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0007-0001-new_command009] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0007-0001-Load_command010] -filename ={default_wserv,def_anim_plugin} - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0007-0001-new_command011] -animdll =animdll - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0007-0001-new_command012] -anim =anim - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0007-0001-Construct_command013] -win =win -type =EKWindowAnim - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0007-0001-new_command014] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0007-0001-Construct_command015] -parent =wingrp -handle =3 - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0007-0001-SetExtent_command016] -size_height =100 -size_width =100 -point_x =20 -point_y =20 - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0007-0001-CommandReply_command018] -opcode =ECmdWindowVisibleRegion -args = -expected =0 - - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0008-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0008-0001-Construct_command004] -clienthandle =1 - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0008-0001-new_command005] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0008-0001-Construct_command006] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0008-0001-SetExtent_command007] -size_height =60 -size_width =60 -point_x =40 -point_y =40 - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0008-0001-new_command009] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0008-0001-Load_command010] -filename ={default_wserv,def_anim_plugin} - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0008-0001-new_command011] -animdll =animdll - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0008-0001-new_command012] -anim =anim - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0008-0001-Construct_command013] -win =win -type =EKWindowAnim - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0008-0001-new_command014] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0008-0001-Construct_command015] -parent =wingrp -handle =3 - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0008-0001-SetExtent_command016] -size_height =60 -size_width =60 -point_x =40 -point_y =40 - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0008-0001-CommandReply_command018] -opcode =ECmdWindowVisibleRegion -args = -expected =0 - - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0009-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0009-0001-Construct_command004] -clienthandle =1 - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0009-0001-new_command005] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0009-0001-Construct_command006] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0009-0001-SetExtent_command007] -size_height =60 -size_width =60 -point_x =40 -point_y =40 - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0009-0001-new_command009] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0009-0001-Load_command010] -filename ={default_wserv,def_anim_plugin} - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0009-0001-new_command011] -animdll =animdll - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0009-0001-new_command012] -anim =anim - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0009-0001-Construct_command013] -win =win -type =EKWindowAnim - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0009-0001-new_command014] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0009-0001-Construct_command015] -parent =wingrp -handle =3 - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0009-0001-SetExtent_command016] -size_height =20 -size_width =20 -point_x =40 -point_y =40 - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0009-0001-CommandReply_command018] -opcode =ECmdWindowVisibleRegion -args = -expected =2 - - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0010-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0010-0001-Construct_command004] -clienthandle =1 - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0010-0001-new_command005] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0010-0001-Construct_command006] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0010-0001-new_command008] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0010-0001-Load_command009] -filename ={default_wserv,def_anim_plugin} - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0010-0001-new_command010] -animdll =animdll - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0010-0001-new_command011] -anim =anim - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0010-0001-Construct_command012] -win =win -type =EKWindowAnim - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0010-0001-CommandReply_command013] -opcode =ECmdWindowSetVisible -args = -state =false - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0010-0001-CommandReply_command014] -opcode =ECmdWindowIsHidden -args = -expected =true - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0010-0001-CommandReply_command015] -opcode =ECmdWindowSetVisible -args = -state =true - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0010-0001-CommandReply_command016] -opcode =ECmdWindowIsHidden -args = -expected =false - - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0011-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0011-0001-Construct_command004] -clienthandle =1 - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0011-0001-new_command005] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0011-0001-Construct_command006] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0011-0001-new_command008] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0011-0001-Load_command009] -filename ={default_wserv,def_anim_plugin} - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0011-0001-new_command010] -animdll =animdll - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0011-0001-new_command011] -anim =anim - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0011-0001-Construct_command012] -win =win -type =EKWindowAnim - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0011-0001-CommandReply_command013] -opcode =ECmdWindowSetRect -args = -rect_top =100 -rect_left =100 -rect_bottom =150 -rect_right =150 - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0011-0001-CommandReply_command014] -opcode =ECmdWindowIsStarted -args = - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0011-0001-CommandReply_command016] -opcode =ECmdRetrieveResult -args = -expected =true - - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0012-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0012-0001-Construct_command004] -clienthandle =1 - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0012-0001-new_command005] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0012-0001-Construct_command006] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0012-0001-new_command008] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0012-0001-Load_command009] -filename ={default_wserv,def_anim_plugin} - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0012-0001-new_command010] -animdll =animdll - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0012-0001-new_command011] -anim =anim - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0012-0001-Construct_command012] -win =win -type =EKWindowAnim - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0012-0001-CommandReply_command013] -opcode =ECmdWindowSetRect -args = -rect_top =90 -rect_left =90 -rect_bottom =160 -rect_right =160 - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0012-0001-new_command014] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0012-0001-Construct_command015] -parent =wingrp -handle =3 - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0012-0001-CommandReply_command017] -opcode =ECmdWindowIsStarted -args = - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0012-0001-CommandReply_command019] -opcode =ECmdRetrieveResult -args = -expected =false - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0012-0001-CommandReply_command021] -opcode =ECmdWindowIsStarted -args = - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0012-0001-CommandReply_command023] -opcode =ECmdRetrieveResult -args = -expected =true - - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0013-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0013-0001-CreateContext_command005] -context =wingc - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0013-0001-new_command006] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0013-0001-Construct_command007] -clienthandle =1 - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0013-0001-new_command008] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0013-0001-Construct_command009] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0013-0001-Activate_command011] -device =win - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0013-0001-new_command016] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0013-0001-Load_command017] -filename ={default_wserv,def_anim_plugin} - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0013-0001-new_command018] -animdll =animdll - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0013-0001-new_command019] -anim =anim - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0013-0001-Construct_command020] -win =win -type =EKWindowAnim - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0013-0001-CommandReply_command021] -opcode =ECmdWindowInvalidate -args = -rect_top =10 -rect_left =10 -rect_bottom =50 -rect_right =50 - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0013-0001-RectCompare_command022] -rect1_top =10 -rect1_left =10 -rect1_bottom =50 -rect1_right =50 -rect2_top =10 -rect2_left =110 -rect2_bottom =50 -rect2_right =150 -expected =true -flags =EIncludeSprite - - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0014-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0014-0001-Construct_command004] -clienthandle =1 - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0014-0001-new_command005] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0014-0001-Construct_command006] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0014-0001-new_command008] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0014-0001-Load_command009] -filename ={default_wserv,def_anim_plugin} - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0014-0001-new_command010] -animdll =animdll - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0014-0001-new_command011] -anim =anim - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0014-0001-Construct_command012] -win =win -type =EKFreeTimerWindowAnim - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0014-0001-CommandReply_command013] -opcode =ECmdFreeTimerWinUpdate -args = - - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0015-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0015-0001-Construct_command004] -clienthandle =1 - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0015-0001-new_command005] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0015-0001-Construct_command006] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0015-0001-new_command008] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0015-0001-Load_command009] -filename ={default_wserv,def_anim_plugin} - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0015-0001-new_command010] -animdll =animdll - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0015-0001-new_command011] -anim =anim - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0015-0001-Construct_command012] -win =win -type =EKFreeTimerWindowAnim - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0015-0001-CommandReply_command013] -opcode =ECmdFreeTimerWinDeactivateGc -args = - - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0016-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0016-0001-Construct_command004] -clienthandle =1 - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0016-0001-new_command005] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0016-0001-Construct_command006] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0016-0001-new_command009] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0016-0001-Construct_command010] -parent =wingrp -handle =3 - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0016-0001-new_command013] -ws =ws - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0016-0001-Load_command014] -filename ={default_wserv,def_anim_plugin} - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0016-0001-new_command015] -animdll =animdll - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0016-0001-new_command016] -anim =anim - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0016-0001-Construct_command017] -win =win -type =EKFreeTimerWindowAnim - -[GRAPHICS-WSERV-AnimWindowFunctions-PublicApi-0016-0001-CommandReply_command018] -opcode =ECmdFreeTimerWinDeactivateGc -args = - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/testdata/GRAPHICS-WSERV-BackedUpWindow-PublicApi.ini --- a/graphicsapitest/graphicssvs/wserv/testdata/GRAPHICS-WSERV-BackedUpWindow-PublicApi.ini Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,542 +0,0 @@ -[include] -file1 =\graphics\t_graphics.ini - - -[backupwin] -name =backupwin - -[wingc] -name =wingc - -[fbsbmp] -name =fbsbmp - -[ws] -name =ws - -[wingrp] -name =wingrp - -[scrdev] -name =scrdev - -[bmputil] -name =bmputil - - -[GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-new_command04] -ws =ws - -[GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-CreateContext_command06] -windowgc =wingc - -[GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-new_command08] -ws =ws - -[GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-Construct_command09] -clienthandle =1 - -[GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-new_command11] -ws =ws - -[GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-Construct_command12] -displaymode ={default_wserv,display_mode} -handle =2 -parent =wingrp - -[GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-SetExtentErr_command13] -size_height =80 -size_width =80 -point_x =0 -point_y =0 - -[GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-SetAutoFlush_command16] -newFlushstate =TRUE -expectedFlushstate =FALSE - -[GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-Activate_command18] -device =backupwin - -[GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-SetBrushColor_command19] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-WSERV-BackedUpWindow-Setup-0002-0001-SetBrushStyle_command20] -brushstyle =ESolidBrush - - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0002-0001-new_command04] -ws =ws - - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0003-0001-new_command04] -ws =ws - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0003-0001-Construct_command05] -clienthandle =1 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0003-0001-new_command07] -ws =ws - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0003-0001-WsHandle_command08] -expected =0 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0003-0001-Construct_command09] -displaymode ={default_wserv,display_mode} -handle =2 -parent =wingrp - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0003-0001-WsHandle_command10] -expectnot =0 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0003-0001-DisplayMode_command11] -expected ={default_wserv,display_mode} - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0003-0001-AbsPosition_command12] -expected_y =0 -expected_x =0 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0003-0001-Size_command13] -expected_height =0 -expected_width =0 - - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0004-0001-new_command04] -ws =ws - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0004-0001-Construct_command05] -clienthandle =1 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0004-0001-new_command07] -ws =ws - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0004-0001-Construct_command08] -displaymode ={default_wserv,display_mode} -handle =2 -parent =wingrp - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0004-0001-Duplicate_command11] -fbs_bitmap_name =backupwin - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0004-0001-SizeInPixels_command12] -width =0 -height =0 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0004-0001-DisplayMode_command13] -displaymode ={default_wserv,display_mode} - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0004-0001-SetSizeErr_command15] -size_height =80 -size_width =80 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0004-0001-SizeInPixels_command17] -width =80 -height =80 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0004-0001-GetPixel_command18] -point_x =10 -point_y =10 -red =255 -green =255 -blue =255 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0004-0001-GetPixel_command19] -point_x =50 -point_y =50 -red =255 -green =255 -blue =255 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0004-0001-GetPixel_command20] -point_x =60 -point_y =60 -red =255 -green =255 -blue =255 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0004-0001-GetPixel_command21] -point_x =70 -point_y =70 -red =255 -green =255 -blue =255 - - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0005-0001-Duplicate_command03] -fbs_bitmap_name =backupwin - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0005-0001-New_command04] -bitmap =fbsbmp - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0005-0001-Begin_command05] -point_x =10 -point_y =10 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0005-0001-SetPixel_command06] -color =15 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0005-0001-SetPos_command07] -point_x =10 -point_y =12 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0005-0001-SetPixel_command08] -color =240 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0005-0001-SetPos_command09] -point_x =12 -point_y =10 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0005-0001-SetPixel_command10] -color =3840 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0005-0001-SetPos_command11] -point_x =12 -point_y =12 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0005-0001-SetPixel_command12] -color =255 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0005-0001-checkPixels_command15] -pixel1_x =10 -pixel1_y =10 -expected1_red =255 -expected1_green =255 -expected1_blue =255 -pixel2_x =10 -pixel2_y =12 -expected2_red =255 -expected2_green =255 -expected2_blue =255 -pixel3_x =12 -pixel3_y =10 -expected3_red =255 -expected3_green =255 -expected3_blue =255 -pixel4_x =12 -pixel4_y =12 -expected4_red =255 -expected4_green =255 -expected4_blue =255 - - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0006-0001-Duplicate_command03] -fbs_bitmap_name =backupwin - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0006-0001-New_command04] -bitmap =fbsbmp - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0006-0001-Begin_command05] -point_x =10 -point_y =10 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0006-0001-SetPixel_command06] -color =15 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0006-0001-SetPos_command07] -point_x =10 -point_y =12 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0006-0001-SetPixel_command08] -color =240 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0006-0001-SetPos_command09] -point_x =12 -point_y =10 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0006-0001-SetPixel_command10] -color =3840 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0006-0001-SetPos_command11] -point_x =12 -point_y =12 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0006-0001-SetPixel_command12] -color =255 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0006-0001-checkPixels_command15] -pixel1_x =10 -pixel1_y =10 -expected1_red =255 -expected1_green =255 -expected1_blue =255 -pixel2_x =10 -pixel2_y =12 -expected2_red =255 -expected2_green =255 -expected2_blue =255 -pixel3_x =12 -pixel3_y =10 -expected3_red =255 -expected3_green =255 -expected3_blue =255 -pixel4_x =12 -pixel4_y =12 -expected4_red =255 -expected4_green =255 -expected4_blue =255 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0006-0001-UpdateScreen_command17] -region1_top =0 -region1_left =0 -region1_bottom =11 -region1_right =11 -region2_top =11 -region2_left =11 -region2_bottom =20 -region2_right =20 - - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0007-0001-Duplicate_command03] -fbs_bitmap_name =backupwin - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0007-0001-DrawRect_command04] -rect_top =0 -rect_left =0 -rect_bottom =55 -rect_right =55 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0007-0001-GetPixel_command06] -point_x =0 -point_y =0 -red =255 -green =255 -blue =255 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0007-0001-GetPixel_command07] -point_x =50 -point_y =50 -red =255 -green =255 -blue =255 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0007-0001-GetPixel_command08] -point_x =60 -point_y =60 -red =255 -green =255 -blue =255 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0007-0001-GetPixel_command09] -point_x =70 -point_y =70 -red =255 -green =255 -blue =255 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0007-0001-GetPixel_command13] -point_x =0 -point_y =0 -red =0 -green =0 -blue =0 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0007-0001-GetPixel_command14] -point_x =50 -point_y =50 -red =255 -green =0 -blue =0 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0007-0001-GetPixel_command15] -point_x =60 -point_y =60 -red =255 -green =255 -blue =255 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0007-0001-GetPixel_command16] -point_x =70 -point_y =70 -red =255 -green =255 -blue =255 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0007-0001-DrawRect_command18] -rect_top =50 -rect_left =50 -rect_bottom =65 -rect_right =65 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0007-0001-GetPixel_command20] -point_x =0 -point_y =0 -red =0 -green =0 -blue =0 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0007-0001-GetPixel_command21] -point_x =50 -point_y =50 -red =255 -green =0 -blue =0 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0007-0001-GetPixel_command22] -point_x =60 -point_y =60 -red =255 -green =255 -blue =255 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0007-0001-GetPixel_command23] -point_x =70 -point_y =70 -red =255 -green =255 -blue =255 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0007-0001-GetPixel_command27] -point_x =0 -point_y =0 -red =0 -green =0 -blue =0 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0007-0001-GetPixel_command28] -point_x =50 -point_y =50 -red =0 -green =0 -blue =0 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0007-0001-GetPixel_command29] -point_x =60 -point_y =60 -red =255 -green =0 -blue =0 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0007-0001-GetPixel_command30] -point_x =70 -point_y =70 -red =255 -green =255 -blue =255 - - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0008-0001-Duplicate_command03] -fbs_bitmap_name =backupwin - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0008-0001-GetPixel_command04] -point_x =0 -point_y =0 -red =255 -green =255 -blue =255 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0008-0001-GetPixel_command05] -point_x =50 -point_y =50 -red =255 -green =255 -blue =255 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0008-0001-GetPixel_command06] -point_x =60 -point_y =60 -red =255 -green =255 -blue =255 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0008-0001-GetPixel_command07] -point_x =70 -point_y =70 -red =255 -green =255 -blue =255 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0008-0001-DrawRect_command09] -rect_top =0 -rect_left =0 -rect_bottom =55 -rect_right =55 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0008-0001-GetPixel_command11] -point_x =0 -point_y =0 -red =0 -green =0 -blue =0 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0008-0001-GetPixel_command12] -point_x =50 -point_y =50 -red =255 -green =0 -blue =0 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0008-0001-GetPixel_command13] -point_x =60 -point_y =60 -red =255 -green =255 -blue =255 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0008-0001-GetPixel_command14] -point_x =70 -point_y =70 -red =255 -green =255 -blue =255 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0008-0001-DrawRect_command16] -rect_top =50 -rect_left =50 -rect_bottom =65 -rect_right =65 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0008-0001-GetPixel_command18] -point_x =0 -point_y =0 -red =0 -green =0 -blue =0 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0008-0001-GetPixel_command19] -point_x =50 -point_y =50 -red =0 -green =0 -blue =0 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0008-0001-GetPixel_command20] -point_x =60 -point_y =60 -red =255 -green =0 -blue =0 - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-0008-0001-GetPixel_command21] -point_x =70 -point_y =70 -red =255 -green =255 -blue =255 -// **************************************************************************** -// Negative testcases of RBackedUpWindow -// **************************************************************************** - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-1004-0001-Construct_command01] -parent =wingrp -displaymode =-1 -handle =2 - - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-1005-0001-Construct_command01] -parent =wingrp -displaymode =10000 -handle =2 - - -[GRAPHICS-WSERV-BackedUpWindow-PublicApi-1008-0001-UpdateScreen_command01] -region1_top =0 -region1_left =0 -region1_bottom =11 -region1_right =11 -region2_top =11 -region2_left =11 -region2_bottom =20 -region2_right =20 - - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/testdata/GRAPHICS-WSERV-BlankWindow-PublicApi.ini --- a/graphicsapitest/graphicssvs/wserv/testdata/GRAPHICS-WSERV-BlankWindow-PublicApi.ini Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,204 +0,0 @@ -[include] -file1 =\graphics\t_graphics.ini - - -[bnkwin] -name =bnkwin - -[wingrp] -name =wingrp - -[scrdev] -name =scrdev - -[ws] -name =ws - - -[GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-new_command04] -ws =ws - -[GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-new_command07] -ws =ws - -[GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-Construct_command08] -clienthandle =1 - -[GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-new_command10] -ws =ws - -[GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-Construct_command11] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-SetRequiredDisplayMode_command12] -mode ={default_wserv,display_mode} - -[GRAPHICS-WSERV-BlankWindow-Setup-0002-0001-SetAutoFlush_command15] -newFlushstate =TRUE -expectedFlushstate =FALSE - - -[GRAPHICS-WSERV-BlankWindow-PublicApi-0002-0001-new_command04] -ws =ws - - -[GRAPHICS-WSERV-BlankWindow-PublicApi-0003-0001-new_command04] -ws =ws - -[GRAPHICS-WSERV-BlankWindow-PublicApi-0003-0001-Construct_command05] -clienthandle =1 - -[GRAPHICS-WSERV-BlankWindow-PublicApi-0003-0001-new_command07] -ws =ws - -[GRAPHICS-WSERV-BlankWindow-PublicApi-0003-0001-Construct_command08] -parent =wingrp -handle =2 - - -[GRAPHICS-WSERV-BlankWindow-PublicApi-0004-0001-SetColor_command01] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-WSERV-BlankWindow-PublicApi-0004-0001-checkRectColor_command03] -rect1_top =0 -rect1_left =0 -rect1_bottom =20 -rect1_right =20 -expected1_red =255 -expected1_green =0 -expected1_blue =0 -rect2_top =0 -rect2_left =180 -rect2_bottom =20 -rect2_right =200 -expected2_red =255 -expected2_green =0 -expected2_blue =0 -rect3_top =180 -rect3_left =0 -rect3_bottom =200 -rect3_right =20 -expected3_red =255 -expected3_green =0 -expected3_blue =0 -rect4_top =180 -rect4_left =180 -rect4_bottom =200 -rect4_right =200 -expected4_red =255 -expected4_green =0 -expected4_blue =0 - - -[GRAPHICS-WSERV-BlankWindow-PublicApi-0005-0001-checkRectColor_command03] -rect1_top =0 -rect1_left =0 -rect1_bottom =20 -rect1_right =20 -expected1_red =255 -expected1_green =255 -expected1_blue =255 -rect2_top =0 -rect2_left =180 -rect2_bottom =20 -rect2_right =200 -expected2_red =255 -expected2_green =255 -expected2_blue =255 -rect3_top =180 -rect3_left =0 -rect3_bottom =200 -rect3_right =20 -expected3_red =255 -expected3_green =255 -expected3_blue =255 -rect4_top =180 -rect4_left =180 -rect4_bottom =200 -rect4_right =200 -expected4_red =255 -expected4_green =255 -expected4_blue =255 - - -[GRAPHICS-WSERV-BlankWindow-PublicApi-0006-0001-SetSize_command01] -size_height =30 -size_width =40 - -[GRAPHICS-WSERV-BlankWindow-PublicApi-0006-0001-Size_command02] -expected_height =30 -expected_width =40 - -[GRAPHICS-WSERV-BlankWindow-PublicApi-0006-0001-SetColor_command03] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-WSERV-BlankWindow-PublicApi-0006-0001-checkRectColor_command05] -rect1_top =0 -rect1_left =0 -rect1_bottom =30 -rect1_right =40 -expected1_red =255 -expected1_green =0 -expected1_blue =0 - - -[GRAPHICS-WSERV-BlankWindow-PublicApi-0007-0001-SetExtent_command01] -size_height =40 -size_width =30 -point_x =10 -point_y =11 - -[GRAPHICS-WSERV-BlankWindow-PublicApi-0007-0001-AbsPosition_command02] -expected_y =11 -expected_x =10 - -[GRAPHICS-WSERV-BlankWindow-PublicApi-0007-0001-Size_command03] -expected_height =40 -expected_width =30 - -[GRAPHICS-WSERV-BlankWindow-PublicApi-0007-0001-SetColor_command04] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-WSERV-BlankWindow-PublicApi-0007-0001-checkRectColor_command06] -rect1_top =11 -rect1_left =10 -rect1_bottom =51 -rect1_right =40 -expected1_red =255 -expected1_green =0 -expected1_blue =0 - - - - -// **************************************************************************** -// Negative testcases of RBlankWindow -// **************************************************************************** - -[GRAPHICS-WSERV-BlankWindow-PublicApi-1005-0001-SetSize_command01] -size_height =-30 -size_width =-40 - -[GRAPHICS-WSERV-BlankWindow-PublicApi-1005-0001-Size_command02] -expected_height =0 -expected_width =0 - - -[GRAPHICS-WSERV-BlankWindow-PublicApi-1006-0001-SetExtent_command01] -size_height =-40 -size_width =-30 -point_x =10 -point_y =11 - -[GRAPHICS-WSERV-BlankWindow-PublicApi-1006-0001-Size_command02] -expected_height =0 -expected_width =0 - - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/testdata/GRAPHICS-WSERV-DirectScreenAccess-PublicApi.ini --- a/graphicsapitest/graphicssvs/wserv/testdata/GRAPHICS-WSERV-DirectScreenAccess-PublicApi.ini Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,416 +0,0 @@ -[include] -file1 = \graphics\t_graphics.ini - -[ws] -name = ws - -[win] -name = win - -[win2] -name = win2 - -[wingrp] -name = wingrp - -[scrdev] -name = scrdev - -[dsa] -name = dsa - -[dsa2] -name = dsa2 - -[bgc] -name = bgc - -[fbsScreenDevice] -name = fbsScreenDevice - -[GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-new_command003] -ws = ws - -[GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-Construct_command006] -clienthandle = 1 - - -[GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-Construct_command007] -clienthandle = 2 - -[GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-Construct_command008] -parent = wingrp -handle = 3 - -[GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-Construct_command009] -parent = wingrp -handle = 4 - -[GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-NewL_command009] -ws = ws -scrdev = scrdev -win = win -dsa = dsa - -[GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-NewL_command010] -ws = ws -scrdev = scrdev -win = win2 -dsa = dsa2 - -[GRAPHICS-WSERV-DirectScreenAccess-Setup-0006-0001-SetShape_command010] -region1_top = 0 -region1_left = 0 -region1_bottom = 50 -region1_right = 50 - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0022-0001-BringAppFg_command011] -app = System -ws = ws - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0022-0001-SetPriority_command001] -Priority = EPriorityHigh - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0022-0001-StartL_command001] -reason = ETerminateRegion - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0022-0001-GC_command001] -gc = bgc - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0022-0001-GC_command002] -device = fbsScreenDevice - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0022-0001-ScreenDevice_command001] -ScreenDevice = fbsScreenDevice - -[GRAPHICS-WSERV-DirectScreenAccess-Setup-0001-0001-NewL_command010] -ws = ws -win = win -dsa = dsa - -[GRAPHICS-WSERV-DirectScreenAccess-Setup-0004-0001-DrawLine_command017] -point1_x = 25 -point1_y = 26 -point2_x = 50 -point2_y = 60 - -[GRAPHICS-WSERV-DirectScreenAccess-Setup-0004-0002-DrawLine_command017] -point1_x = -10000 -point1_y = -10000 -point2_x = 500000 -point2_y = 600000 - - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0010-0001-new_command003] -ws = ws - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0010-0001-new_command004] -ws = ws - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0010-0001-Construct_command005] -clienthandle = 1 - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0010-0001-new_command006] -ws = ws - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0010-0001-Construct_command007] -parent = wingrp -handle = 3 - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0010-0001-NewL_command008] -ws = ws -scrdev = scrdev -win = win -dsa = dsa - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0011-0001-new_command003] -ws = ws - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0011-0001-new_command005] -ws = ws - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0011-0001-NewL_command006] -ws = ws -scrdev = scrdev -win = win -dsa = dsa - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0011-0001-StartL_command007] -reason = ETerminateRegion - - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0012-0001-new_command003] -ws = ws - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0012-0001-new_command005] -ws = ws - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0012-0001-Construct_command006] -clienthandle = 1 - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0012-0001-new_command007] -ws = ws - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0012-0001-Construct_command008] -parent = wingrp -handle = 3 - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0012-0001-NewL_command009] -ws = ws -scrdev = scrdev -win = win -dsa = dsa - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0012-0001-StartL_command010] -reason = ETerminateRegion - - - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0013-0001-new_command003] -ws = ws - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0013-0001-new_command005] -ws = ws - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0013-0001-Construct_command006] -clienthandle = 1 - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0013-0001-new_command007] -ws = ws - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0013-0001-Construct_command008] -parent = wingrp -handle = 3 - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0013-0001-NewL_command009] -ws = ws -scrdev = scrdev -win = win -dsa = dsa - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0013-0001-StartL_command010] -reason = ETerminateRegion - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0013-0001-StartL_command011] -reason = ETerminateRegion - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0014-0001-new_command003] -ws = ws - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0014-0001-new_command005] -ws = ws - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0014-0001-Construct_command006] -clienthandle = 1 - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0014-0001-new_command007] -ws = ws - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0014-0001-Construct_command008] -parent = wingrp -handle = 3 - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0014-0001-NewL_command009] -ws = ws -scrdev = scrdev -win = win -dsa = dsa - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0014-0001-ScreenDevice_command010] -ScreenDevice = fbsScreenDevice - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0015-0001-new_command003] -ws = ws - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0015-0001-new_command005] -ws = ws - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0015-0001-Construct_command006] -clienthandle = 1 - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0015-0001-new_command007] -ws = ws - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0015-0001-Construct_command008] -parent = wingrp -handle = 3 - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0015-0001-NewL_command009] -ws = ws -scrdev = scrdev -win = win -dsa = dsa - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0015-0001-Gc_command010] -gc = bgc - - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0016-0001-new_command003] -ws = ws - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0016-0001-new_command005] -ws = ws - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0016-0001-Construct_command006] -clienthandle = 1 - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0016-0001-new_command007] -ws = ws - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0016-0001-Construct_command008] -parent = wingrp -handle = 3 - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0016-0001-NewL_command009] -ws = ws -scrdev = scrdev -win = win -dsa = dsa - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0016-0001-StartL_command010] -reason = ETerminateRegion - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0016-0001-ScreenDevice_command011] -ScreenDevice = fbsScreenDevice - - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0017-0001-new_command003] -ws = ws - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0017-0001-new_command005] -ws = ws - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0017-0001-Construct_command006] -clienthandle = 1 - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0017-0001-new_command007] -ws = ws - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0017-0001-Construct_command008] -parent = wingrp -handle = 3 - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0017-0001-NewL_command009] -ws = ws -scrdev = scrdev -win = win -dsa = dsa - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0017-0001-StartL_command010] -reason = ETerminateRegion - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0017-0001-ScreenDevice_command011] -ScreenDevice = fbsScreenDevice - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0017-0001-Gc_command012] -gc = bgc - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0017-0001-Activate_command013] -device = fbsScreenDevice - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0017-0001-DrawLine_command014] -point1_x = 25 -point1_y = 26 -point2_x = 50 -point2_y = 60 - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0017-0001-DrawLine_command015] -point1_x = -10000 -point1_y = -10000 -point2_x = 500000 -point2_y = 600000 - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0018-0001-new_command003] -ws = ws - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0018-0001-new_command005] -ws = ws - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0018-0001-Construct_command006] -clienthandle = 1 - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0018-0001-new_command007] -ws = ws - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0018-0001-Construct_command008] -parent = wingrp -handle = 3 - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0018-0001-SetShape_command010] -region1_top = 0 -region1_left = 0 -region1_bottom = 50 -region1_right = 50 - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0018-0001-NewL_command011] -ws = ws -scrdev = scrdev -win = win -dsa = dsa - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0018-0001-StartL_command012] -reason = ETerminateRegion - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0018-0001-DrawingRegion_command013] -region1_top = 0 -region1_left = 0 -region1_bottom = 50 -region1_right = 50 - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0018-0001-SetShape_command016] -region1_top = 50 -region1_left = 50 -region1_bottom = 200 -region1_right = 200 - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0018-0001-StartL_command017] -reason = ETerminateRegion - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0018-0001-DrawingRegion_command018] -region1_top = 50 -region1_left = 50 -region1_bottom = 200 -region1_right = 200 - - - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0019-0001-new_command003] -ws = ws - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0019-0001-new_command005] -ws = ws - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0019-0001-Construct_command006] -clienthandle = 1 - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0019-0001-new_command007] -ws = ws - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0019-0001-Construct_command008] -parent = wingrp -handle = 3 - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0019-0001-NewL_command009] -ws = ws -scrdev = scrdev -win = win -dsa = dsa - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0019-0001-StartL_command010] -reason = ETerminateRegion - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0019-0001-BringAppFg_command011] -app = System -ws = ws - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0019-0001-StartL_command013] -reason = ETerminateRegion - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0020-0001-SetRequiredDisplayMode_command010] -mode =EColor64K - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0020-0001-DisplayMode_command011] -expected =EColor64K - -[GRAPHICS-WSERV-DirectScreenAccess-PublicApi-0020-0001-StartL_command012] -reason = ETerminateRegion diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/testdata/GRAPHICS-WSERV-DsaSession-PublicApi.ini --- a/graphicsapitest/graphicssvs/wserv/testdata/GRAPHICS-WSERV-DsaSession-PublicApi.ini Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,109 +0,0 @@ -[include] -file1 = \graphics\t_graphics.ini - -[ws] -name = ws - -[wingrp] -name = wingrp - -[win] -name = win - -[win2] -name = win2 - -[scrdev] -name = scrdev - -[rdsa] -name = rdsa - -[rdsa2] -name = rdsa2 - -[wingc] -name = wingc - -[GRAPHICS-WSERV-DsaSession-Setup-0002-0001-new_command003] -ws = ws - -[GRAPHICS-WSERV-DsaSession-Setup-0004-0001-CreateContext_command005] -windowgc= wingc - -[GRAPHICS-WSERV-DsaSession-Setup-0004-0001-Construct_command007] -clienthandle = 1 - -[GRAPHICS-WSERV-DsaSession-Setup-0004-0001-Construct_command009] -parent = wingrp -handle = 2 - -[GRAPHICS-WSERV-DsaSession-Setup-0004-0001-SetShape_command010] -region1_top = 0 -region1_left = 0 -region1_bottom = 50 -region1_right = 60 - -[GRAPHICS-WSERV-DsaSession-PublicApi-0004-0001-Request_command014] -win = win -region1_top = 0 -region1_left = 0 -region1_bottom = 50 -region1_right = 60 - -[GRAPHICS-WSERV-DsaSession-Setup-0004-0001-Activate_command015] -device = win - -[GRAPHICS-WSERV-DsaSession-Setup-0004-0001-DrawLine_command017] -point1_x = 25 -point1_y = 26 -point2_x = 50 -point2_y = 60 - -[GRAPHICS-WSERV-DsaSession-PublicApi-0008-0001-SetVisible_command008] -state =FALSE - -[GRAPHICS-WSERV-DsaSession-PublicApi-0008-0001-Request_command011] -win = win - -[GRAPHICS-WSERV-DsaSession-PublicApi-0009-0001-Util_EatupMemory_command011] -memleft=20 - -[GRAPHICS-WSERV-DsaSession-PublicApi-0009-0001-Request_command012] -win = win - - -[GRAPHICS-WSERV-DsaSession-PublicApi-0010-0001-Request_command006] -win = win -region1_top = 0 -region1_left = 0 -region1_bottom = 50 -region1_right = 60 - -[GRAPHICS-WSERV-DsaSession-PublicApi-0013-0001-Request_command011] -win = win - -[GRAPHICS-WSERV-DsaSession-PublicApi-0013-0001-Request_command014] -win = win - -[GRAPHICS-WSERV-DsaSession-Setup-0004-0001-Construct_command111] -parent = wingrp -handle = 4 - - -[GRAPHICS-WSERV-DsaSession-Setup-0004-0001-Activate_command111] -device = win2 - -[GRAPHICS-WSERV-DsaSession-PublicApi-0014-0001-Request_command014] -win = win -region1_top = 0 -region1_left = 0 -region1_bottom = 50 -region1_right = 60 - -[GRAPHICS-WSERV-DsaSession-PublicApi-0015-0001-Request_command009] -win = win -region1_top = 0 -region1_left = 0 -region1_bottom = 50 -region1_right = 60 diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/testdata/GRAPHICS-WSERV-Events-PublicApi.ini --- a/graphicsapitest/graphicssvs/wserv/testdata/GRAPHICS-WSERV-Events-PublicApi.ini Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,288 +0,0 @@ -[include] -file1 =\graphics\t_graphics.ini - - -[we] -name =we - -[ws] -name =ws - -[wingrp] -name =wingrp - -[win] -name =win - - -[GRAPHICS-WSERV-Events-PublicApi-0001-0001-new_command04] -ws =ws - -[GRAPHICS-WSERV-Events-PublicApi-0001-0001-Construct_command05] -clienthandle =1 - -[GRAPHICS-WSERV-Events-PublicApi-0001-0001-GetEvent_command07] -store =we - -[GRAPHICS-WSERV-Events-PublicApi-0001-0001-Type_command08] -expected =EEventFocusGained - - -[GRAPHICS-WSERV-Events-PublicApi-0002-0001-SetType_command01] -type =EEventUser - -[GRAPHICS-WSERV-Events-PublicApi-0002-0001-Type_command02] -expected =EEventUser - -[GRAPHICS-WSERV-Events-PublicApi-0002-0001-Int_command03] -new_value =100 - -[GRAPHICS-WSERV-Events-PublicApi-0002-0001-Int_command04] -expected =100 - - -[GRAPHICS-WSERV-Events-PublicApi-0003-0001-SetType_command01] -type =EEventUser - -[GRAPHICS-WSERV-Events-PublicApi-0003-0001-Type_command02] -expected =EEventUser - -[GRAPHICS-WSERV-Events-PublicApi-0003-0001-ErrorMessage_command03] -errorcategory =100 -error =200 - -[GRAPHICS-WSERV-Events-PublicApi-0003-0001-ErrorMessage_command04] -expected_errorcategory =100 -expected_error =200 - - -[GRAPHICS-WSERV-Events-PublicApi-0004-0001-SetType_command01] -type =EEventUser - -[GRAPHICS-WSERV-Events-PublicApi-0004-0001-Type_command02] -expected =EEventUser - -[GRAPHICS-WSERV-Events-PublicApi-0004-0001-EventData_command03] -new_value1 =10 -new_value2 =20 -new_value3 =30 - -[GRAPHICS-WSERV-Events-PublicApi-0004-0001-EventData_command04] -expected1 =10 -expected2 =20 -expected3 =30 - - -[GRAPHICS-WSERV-Events-PublicApi-0005-0001-SetHandle_command02] -handle =2 - -[GRAPHICS-WSERV-Events-PublicApi-0005-0001-Handle_command03] -expected =2 - - -[GRAPHICS-WSERV-Events-PublicApi-0006-0001-SetType_command02] -type =EEventKeyUp - -[GRAPHICS-WSERV-Events-PublicApi-0006-0001-Type_command03] -expected =EEventKeyUp - - -[GRAPHICS-WSERV-Events-PublicApi-0007-0001-Construct_command01] -handle =2 -parent =wingrp - -[GRAPHICS-WSERV-Events-PublicApi-0007-0001-SimulateRawEvent_command02] -type =EButton1Down -pos_x =10 -pos_y =15 - -[GRAPHICS-WSERV-Events-PublicApi-0007-0001-GetEvent_command03] -store =we - -[GRAPHICS-WSERV-Events-PublicApi-0007-0001-Type_command04] -expected =EEventPointer - -[GRAPHICS-WSERV-Events-PublicApi-0007-0001-Handle_command05] -expected =2 - -[GRAPHICS-WSERV-Events-PublicApi-0007-0001-Pointer_command06] -expected_type =EButton1Down -expected_pos_x =10 -expected_pos_y =15 - - -[GRAPHICS-WSERV-Events-PublicApi-0008-0001-SimulateKeyEvent_command01] -keycode =EKeyF1 -modifiers =EModifierCtrl - -[GRAPHICS-WSERV-Events-PublicApi-0008-0001-GetEvent_command02] -store =we - -[GRAPHICS-WSERV-Events-PublicApi-0008-0001-Type_command03] -expected =EEventKey - -[GRAPHICS-WSERV-Events-PublicApi-0008-0001-Handle_command04] -expected =1 - -[GRAPHICS-WSERV-Events-PublicApi-0008-0001-Key_command05] -expected_code =EKeyF1 -expected_modifier =EModifierCtrl -expected_repeats =0 - - -[GRAPHICS-WSERV-Events-PublicApi-0011-0001-EnableModifierChangedEvents_command01] -inputEventModifier =EModifierCapsLock -inputEventControl =EEventControlAlways - -[GRAPHICS-WSERV-Events-PublicApi-0011-0001-SimulateRawEvent_command02] -type =EKeyDown -stdscancode =EStdKeyCapsLock - -[GRAPHICS-WSERV-Events-PublicApi-0011-0001-SimulateRawEvent_command03] -type =EKeyUp -stdscancode =EStdKeyCapsLock - -[GRAPHICS-WSERV-Events-PublicApi-0011-0001-GetEvent_command04] -store =we - -[GRAPHICS-WSERV-Events-PublicApi-0011-0001-Type_command05] -expected =EEventModifiersChanged - -[GRAPHICS-WSERV-Events-PublicApi-0011-0001-Handle_command06] -expected =1 - -[GRAPHICS-WSERV-Events-PublicApi-0011-0001-ModifiersChanged_command07] -expected_modifier =EModifierCapsLock -expected_changedmodifier=EModifierCapsLock - -[GRAPHICS-WSERV-Events-PublicApi-0011-0001-SimulateRawEvent_command08] -type =EKeyDown -stdscancode =EStdKeyCapsLock - -[GRAPHICS-WSERV-Events-PublicApi-0011-0001-SimulateRawEvent_command09] -type =EKeyUp -stdscancode =EStdKeyCapsLock - -[GRAPHICS-WSERV-Events-PublicApi-0011-0001-GetEvent_command10] -store =we - - -[GRAPHICS-WSERV-Events-PublicApi-0012-0001-Construct_command01] -handle =2 -parent =wingrp - -[GRAPHICS-WSERV-Events-PublicApi-0012-0001-GetEvent_command02] -store =we - -[GRAPHICS-WSERV-Events-PublicApi-0012-0001-Type_command03] -expected =EEventWindowVisibilityChanged - -[GRAPHICS-WSERV-Events-PublicApi-0012-0001-Handle_command04] -expected =2 - -[GRAPHICS-WSERV-Events-PublicApi-0012-0001-VisibilityChanged_command05] -expected =ECanBeSeen|EFullyVisible - - -[GRAPHICS-WSERV-Events-PublicApi-0013-0001-Construct_command01] -handle =2 -parent =wingrp - -[GRAPHICS-WSERV-Events-PublicApi-0013-0001-GetEvent_command02] -store =we - -[GRAPHICS-WSERV-Events-PublicApi-0013-0001-Type_command03] -expected =EEventWindowVisibilityChanged - -[GRAPHICS-WSERV-Events-PublicApi-0013-0001-Handle_command04] -expected =2 - -[GRAPHICS-WSERV-Events-PublicApi-0013-0001-VisibilityChanged_command05] -useconst =TRUE -expected =ECanBeSeen|EFullyVisible - - -[GRAPHICS-WSERV-Events-Setup-0014-0001-new_command001] -ws =ws - -[GRAPHICS-WSERV-Events-Setup-0014-0001-Construct_command002] -clienthandle =1 - -[GRAPHICS-WSERV-Events-PublicApi-0014-0001-AddPriorityKey_command001] -keycode =EKeyF1 -modifiermask =EModifierCtrl -modifier =EModifierCtrl - -[GRAPHICS-WSERV-Events-PublicApi-0014-0001-SimulateKeyEvent_command002] -keycode =EKeyF1 -modifiers =EModifierCtrl - -[GRAPHICS-WSERV-Events-PublicApi-0014-0001-GetPriorityKey_command003] -store =we - -[GRAPHICS-WSERV-Events-PublicApi-0014-0001-Key_command004] -expected_code =EKeyF1 -expected_modifier =EModifierCtrl -expected_repeats =0 - - -[GRAPHICS-WSERV-Events-PublicApi-0015-0001-AddPriorityKey_command001] -keycode =EKeyF1 -modifiermask =EModifierCtrl -modifier =EModifierCtrl - -[GRAPHICS-WSERV-Events-PublicApi-0015-0001-SimulateKeyEvent_command002] -keycode =EKeyF1 -modifiers =EModifierCtrl - -[GRAPHICS-WSERV-Events-PublicApi-0015-0001-GetPriorityKey_command003] -store =we - -[GRAPHICS-WSERV-Events-PublicApi-0015-0001-Handle_command004] -expected =1 - - -[GRAPHICS-WSERV-Events-PublicApi-0016-0001-SetHandle_command001] -handle =2 - -[GRAPHICS-WSERV-Events-PublicApi-0016-0001-Handle_command002] -expected =2 - - -[GRAPHICS-WSERV-Events-Setup-0017-0001-new_command001] -ws =ws - -[GRAPHICS-WSERV-Events-Setup-0017-0001-Construct_command002] -clienthandle =1 - -[GRAPHICS-WSERV-Events-Setup-0017-0001-Construct_command003] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-Events-Setup-0017-0001-SetExtent_command004] -point_x =5 -point_y =6 -size_width =10 -size_height =15 - -[GRAPHICS-WSERV-Events-PublicApi-0017-0001-GetRedraw_command001] -store =we - -[GRAPHICS-WSERV-Events-PublicApi-0017-0001-Handle_command002] -expected =2 - - -[GRAPHICS-WSERV-Events-PublicApi-0018-0001-GetRedraw_command001] -store =we - -[GRAPHICS-WSERV-Events-PublicApi-0018-0001-Rect_command002] -expected_top =0 -expected_left =0 -expected_bottom =15 -expected_right =10 - -[GRAPHICS-WSERV-Events-PublicApi-0020-0001-SetType_command02] -type =-1 - -[GRAPHICS-WSERV-Events-PublicApi-0020-0001-Type_command03] -expected =-1 diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/testdata/GRAPHICS-WSERV-Frame-PublicApi.ini --- a/graphicsapitest/graphicssvs/wserv/testdata/GRAPHICS-WSERV-Frame-PublicApi.ini Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,88 +0,0 @@ -[include] -file1 =\graphics\t_graphics.ini - -[frame] -name =frame - -[fbssession] -name =fbssession - -[bitmap] -name =bitmap - -[mask] -name =mask - - -[GRAPHICS-WSERV-Frame-PublicApi-0002-0001-FrameInfo-command002] -flags=0 - - -[GRAPHICS-WSERV-Frame-PublicApi-0003-0001-SetFrameInfo-command002] -flags =EColor - -[GRAPHICS-WSERV-Frame-PublicApi-0003-0001-FrameInfo-command003] -flags =EColor - - -[GRAPHICS-WSERV-Frame-PublicApi-0004-0001-Bitmap-command002] -got_bitmap =bitmap -expected_bitmap =bitmap - - -[GRAPHICS-WSERV-Frame-PublicApi-0005-0001-Load-command04] -bitmap_id =1 -file_name =\graphics\wserv\WsGraphicBitmapAnimation.mbm -share_if_loaded =TRUE -use_rfile =FALSE - -[GRAPHICS-WSERV-Frame-PublicApi-0005-0001-SetBitmap-command005] -setbitmap =bitmap - -[GRAPHICS-WSERV-Frame-PublicApi-0005-0001-Bitmap-command006] -expected_bitmap =bitmap - - -[GRAPHICS-WSERV-Frame-PublicApi-0006-0001-Mask-command002] -got_mask =mask -expected_mask =mask - - -[GRAPHICS-WSERV-Frame-PublicApi-0007-0001-Load-command04] -bitmap_id =0 -file_name =\graphics\wserv\WsGraphicBitmapAnimation.mbm -share_if_loaded =TRUE -use_rfile =FALSE - -[GRAPHICS-WSERV-Frame-PublicApi-0007-0001-SetMask-command005] -setmask =mask - -[GRAPHICS-WSERV-Frame-PublicApi-0007-0001-Mask-command006] -expected_mask =mask - -[GRAPHICS-WSERV-Frame-PublicApi-0008-0001-Load-command04] -bitmap_id =1 -file_name =\graphics\wserv\WsGraphicBitmapAnimation.mbm -share_if_loaded =TRUE -use_rfile =FALSE - -[GRAPHICS-WSERV-Frame-PublicApi-0008-0001-SetBitmap-command005] -setbitmap =bitmap - -[GRAPHICS-WSERV-Frame-PublicApi-0008-0001-SetBitmap-command006] -setbitmap =bitmap - -[GRAPHICS-WSERV-Frame-PublicApi-0009-0001-Load-command04] -bitmap_id =0 -file_name =\graphics\wserv\WsGraphicBitmapAnimation.mbm -share_if_loaded =TRUE -use_rfile =FALSE - -[GRAPHICS-WSERV-Frame-PublicApi-0009-0001-SetMask-command005] -setmask =mask - -[GRAPHICS-WSERV-Frame-PublicApi-0009-0001-SetMask-command006] -setmask =mask - - - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/testdata/GRAPHICS-WSERV-Session-PublicApi.ini --- a/graphicsapitest/graphicssvs/wserv/testdata/GRAPHICS-WSERV-Session-PublicApi.ini Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,741 +0,0 @@ -[include] -file1 =\graphics\t_graphics.ini - - -[win] -name =win - -[wingrp] -name =wingrp - -[wtreenode] -name =wtreenode - -[we] -name =we - -[wingc] -name =wingc - -[ws] -name =ws - -[scrdev] -name =scrdev - -[fbsbmp] -name =fbsbmp - - - -[GRAPHICS-WSERV-Session-PublicApi-0004-0001-ResourceCount_command003] -expected_diff =0 - - -[GRAPHICS-WSERV-Session-PublicApi-0006-0001-SetAutoFlush_command003] -newFlushstate =TRUE -expectedFlushstate =FALSE - -[GRAPHICS-WSERV-Session-PublicApi-0006-0001-SetAutoFlush_command004] -newFlushstate =FALSE -expectedFlushstate =TRUE - - -[GRAPHICS-WSERV-Session-PublicApi-0007-0001-SetBufferSizeL_command003] -setbuffer =639 - - -[GRAPHICS-WSERV-Session-PublicApi-0008-0001-SetBufferSizeL_command003] -setbuffer =640 - -[GRAPHICS-WSERV-Session-PublicApi-0008-0001-SetMaxBufferSizeL_command004] -setmaxbuffer =16384 - - -[GRAPHICS-WSERV-Session-PublicApi-0009-0001-SetDefaultFadingParameters_command003] -defblackmapfading =0 -defwhitemapfading =255 - -[GRAPHICS-WSERV-Session-PublicApi-0009-0001-SetSystemFaded_command004] -sysfadonoff =ETrue - - -[GRAPHICS-WSERV-Session-PublicApi-0010-0001-SetDefaultFadingParameters_command003] -defblackmapfading =0 -defwhitemapfading =255 - -[GRAPHICS-WSERV-Session-PublicApi-0010-0001-SetSystemFaded_command004] -sysfadonoff =ETrue -blackmapfading =10 -whitemapfading =244 - - -[GRAPHICS-WSERV-Session-PublicApi-0011-0001-SetShadowVector_command003] -shadowvector_x =50 -shadowvector_y =50 - -[GRAPHICS-WSERV-Session-PublicApi-0011-0001-ShadowVector_command004] -expectshdwvet_x =50 -expectshdwvet_y =50 - - -[GRAPHICS-WSERV-Session-PublicApi-0012-0001-SetPointerCursorArea_command003] -ptrcurarea_top =-90 -ptrcurarea_left =-51 -ptrcurarea_bottom =696 -ptrcurarea_right =312 - -[GRAPHICS-WSERV-Session-PublicApi-0012-0001-PointerCursorArea_command004] -ptrcurarea_top =-90 -ptrcurarea_left =-51 -ptrcurarea_bottom =696 -ptrcurarea_right =312 - - -[GRAPHICS-WSERV-Session-PublicApi-0013-0001-SetPointerCursorArea_command003] -screensizemode =0 -ptrcurarea_top =-90 -ptrcurarea_left =-51 -ptrcurarea_bottom =696 -ptrcurarea_right =312 - -[GRAPHICS-WSERV-Session-PublicApi-0013-0001-PointerCursorArea_command004] -ptrcurarea_top =-90 -ptrcurarea_left =-51 -ptrcurarea_bottom =696 -ptrcurarea_right =312 -screensizemode =0 - - -[GRAPHICS-WSERV-Session-PublicApi-0014-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-Session-PublicApi-0014-0001-Construct_command004] -clienthandle =1 -isfocusable =TRUE - -[GRAPHICS-WSERV-Session-PublicApi-0014-0001-SetPointerCursorMode_command005] -pointercurmode =EPointerCursorNormal - -[GRAPHICS-WSERV-Session-PublicApi-0014-0001-PointerCursorMode_command006] -expected =EPointerCursorNormal - - -[GRAPHICS-WSERV-Session-PublicApi-0015-0001-SetClientCursorMode_command003] -cltcurmode =EPointerCursorNormal - - -[GRAPHICS-WSERV-Session-PublicApi-0016-0001-SetPointerCursorPosition_command003] -ptrcurpos_x =6 -ptrcurpos_y =0 - -[GRAPHICS-WSERV-Session-PublicApi-0016-0001-PointerCursorPosition_command004] -point_x =6 -point_y =0 - - -[GRAPHICS-WSERV-Session-PublicApi-0017-0001-GetKeyboardRepeatRate_command003] -store =TRUE - -[GRAPHICS-WSERV-Session-PublicApi-0017-0001-SetKeyboardRepeatRate_command004] -kbreprateinterval =1200 -kbrepratetime =500 - -[GRAPHICS-WSERV-Session-PublicApi-0017-0001-GetKeyboardRepeatRate_command005] -expectedkbinittime =1200 -expectedkbRepeattime =500 - -[GRAPHICS-WSERV-Session-PublicApi-0017-0001-SetKeyboardRepeatRate_command006] - - -[GRAPHICS-WSERV-Session-PublicApi-0018-0001-SetDoubleClick_command003] -maxinterval =3 -maxdistance =5 - -[GRAPHICS-WSERV-Session-PublicApi-0018-0001-GetDoubleClickSettings_command004] -expecteddblmaxinittime =3 -expecteddblmaxdistance =5 - - -[GRAPHICS-WSERV-Session-PublicApi-0019-0001-Connect_command002] -userfs =TRUE - - -[GRAPHICS-WSERV-Session-PublicApi-0020-0001-Version_command003] -major =1 -build =151 -minor =0 - - -[GRAPHICS-WSERV-Session-PublicApi-0021-0001-WindowGroupList_command004] -usearray =FALSE - - -[GRAPHICS-WSERV-Session-PublicApi-0022-0001-SetDefaultSystemPointerCursor_command005] -defaultsyscurnum ={default_wserv,pointercursor} - - -[GRAPHICS-WSERV-Session-PublicApi-0024-0001-new_command003] -ws =ws -[GRAPHICS-WSERV-Session-PublicApi-0024-0001-Construct_command004] -clienthandle =1 -isfocusable =TRUE -[GRAPHICS-WSERV-Session-PublicApi-0024-0001-SetWindowGroupOrdinalPosition_command005] -windowgroup =wingrp -position =1 - -[GRAPHICS-WSERV-Session-PublicApi-0025-0001-SetAutoFlush_command004] -newFlushstate =TRUE -expectedFlushstate =FALSE - -[GRAPHICS-WSERV-Session-PublicApi-0025-0001-WindowGroupList_command006] -priority =0 -usearray =TRUE - - -[GRAPHICS-WSERV-Session-PublicApi-0026-0001-SetAutoFlush_command003] -newFlushstate =TRUE -expectedFlushstate =FALSE - -[GRAPHICS-WSERV-Session-PublicApi-0026-0001-new_command005] -ws =ws - -[GRAPHICS-WSERV-Session-PublicApi-0026-0001-Construct_command006] -clienthandle =26 -isfocusable =TRUE - -[GRAPHICS-WSERV-Session-PublicApi-0026-0001-NumWindowGroups_command007] -expected_diff =1 - -[GRAPHICS-WSERV-Session-PublicApi-0026-0001-WindowGroupList_command008] -usearray =TRUE - -[GRAPHICS-WSERV-Session-PublicApi-0026-0001-GetWindowGroupClientThreadId_command009] -wgIdentifier =9 - - -[GRAPHICS-WSERV-Session-PublicApi-0027-0001-SetAutoFlush_command004] -newFlushstate =TRUE -expectedFlushstate =FALSE - -[GRAPHICS-WSERV-Session-PublicApi-0027-0001-FindWindowGroupIdentifier_command005] -matchwgname =*e* - - -[GRAPHICS-WSERV-Session-PublicApi-0029-0001-SetFocusScreen_command004] -setfocusscreen ={default_wserv,screen} - -[GRAPHICS-WSERV-Session-PublicApi-0029-0001-GetFocusScreen_command005] -expected ={default_wserv,screen} - - -[GRAPHICS-WSERV-Session-PublicApi-0030-0001-SetAutoFlush_command004] -newFlushstate =TRUE -expectedFlushstate =FALSE - -[GRAPHICS-WSERV-Session-PublicApi-0030-0001-SetBackgroundColor_command005] -bgcolour_red =245 -bgcolour_green =245 -bgcolour_blue =255 - -[GRAPHICS-WSERV-Session-PublicApi-0030-0001-GetBackgroundColor_command006] -expectbgcolour_red =245 -expectbgcolour_green =245 -expectbgcolour_blue =255 - -[GRAPHICS-WSERV-Session-PublicApi-0030-0001-GetDefaultOwningWindow_command007] -expected =0 - - -[GRAPHICS-WSERV-Session-PublicApi-0031-0001-WindowGroupList_command005] -priority =0 -usearray =TRUE - -[GRAPHICS-WSERV-Session-PublicApi-0031-0001-GetWindowGroupOrdinalPriority_command006] -wgid =13 - - -[GRAPHICS-WSERV-Session-PublicApi-0032-0001-SetBufferSizeL_command004] -setbuffer =640 - -[GRAPHICS-WSERV-Session-PublicApi-0032-0001-WindowGroupList_command006] -priority =0 -usearray =FALSE - - -[GRAPHICS-WSERV-Session-PublicApi-0033-0001-SetMaxBufferSizeL_command004] -setmaxbuffer =16389 - - -[GRAPHICS-WSERV-Session-PublicApi-0036-0001-SetAutoFlush_command004] -newFlushstate =TRUE -expectedFlushstate =FALSE - - -[GRAPHICS-WSERV-Session-PublicApi-0037-0001-SetAutoFlush_command004] -newFlushstate =TRUE -expectedFlushstate =FALSE - - -[GRAPHICS-WSERV-Session-PublicApi-0038-0001-new_command01] -ws =ws - -[GRAPHICS-WSERV-Session-PublicApi-0038-0001-Construct_command02] -clienthandle =1 -isfocusable =TRUE - -[GRAPHICS-WSERV-Session-PublicApi-0038-0001-RequestOffEvents_command003] -seteventoffon =False - - -[GRAPHICS-WSERV-Session-PublicApi-0039-0001-new_command01] -ws =ws - -[GRAPHICS-WSERV-Session-PublicApi-0039-0001-Construct_command02] -clienthandle =1 -isfocusable =TRUE - -[GRAPHICS-WSERV-Session-PublicApi-0039-0001-RequestOffEvents_command003] -seteventoffon =TRUE -treenodeobj =wingrp - - -[GRAPHICS-WSERV-Session-PublicApi-0040-0001-NumWindowGroups_command003] -givenwgpriority =0 - - -[GRAPHICS-WSERV-Session-PublicApi-0041-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-Session-PublicApi-0041-0001-Construct_command004] -clienthandle =13 -isfocusable =TRUE - -[GRAPHICS-WSERV-Session-PublicApi-0041-0001-WindowGroupList_command006] -priority =0 -usearray =TRUE - -[GRAPHICS-WSERV-Session-PublicApi-0041-0001-GetWindowGroupHandle_command007] -inputWGId =13 - - -[GRAPHICS-WSERV-Session-PublicApi-0045-0001-SetHotKey_command004] -hotkey =EHotKeyIncBrightness -keycode =EKeyLeftAlt - - -[GRAPHICS-WSERV-Session-PublicApi-0046-0001-ClearHotKeys_command004] -clshotkey =EHotKeyIncBrightness - - -[GRAPHICS-WSERV-Session-PublicApi-0047-0001-RestoreDefaultHotKey_command004] -restoredefhk =EHotKeyIncBrightness - - -[GRAPHICS-WSERV-Session-PublicApi-0048-0001-SetModifierState_command004] -inputpermanmodif =EModifierLeftCtrl -inputpermanmodifstate =ETurnOnModifier - - -[GRAPHICS-WSERV-Session-PublicApi-0049-0001-GetDefaultOwningWindow_command004] -expected =0 - - -[GRAPHICS-WSERV-Session-PublicApi-0050-0001-GetDefaultOwningWindow_command004] -screennum ={default_wserv,screen} -expected =0 - -[GRAPHICS-WSERV-Session-PublicApi-0051-0001-NumWindowGroups_command003] -specifiescrnno ={default_wserv,screen} -givenwgpriority =0 - - -[GRAPHICS-WSERV-Session-PublicApi-0052-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-Session-PublicApi-0052-0001-new_command005] -ws =ws -screendevice =scrdev - -[GRAPHICS-WSERV-Session-PublicApi-0052-0001-Construct_command006] -clienthandle =52 -isfocusable =TRUE - -[GRAPHICS-WSERV-Session-PublicApi-0052-0001-GetFocusWindowGroup_command007] -screennum ={default_wserv,screen} - - -[GRAPHICS-WSERV-Session-PublicApi-0053-0001-WindowGroupList_command005] -priority =EAllPriorities -usearray =TRUE -screennum ={default_wserv,screen} - - -[GRAPHICS-WSERV-Session-PublicApi-0054-0001-Load_command001] -bitmap_id =0 -file_name =\graphics\wserv\test_board.mbm -share_if_loaded =TRUE -use_rfile =FALSE - -[GRAPHICS-WSERV-Session-PublicApi-0054-0001-SetCustomTextCursor_command002] -identifier =100 -spritemember1_bitmap =fbsbmp -spritemember1_drawmode =EDrawModeAND -spritemember1_offset_x =5 -spritemember1_offset_y =5 -spriteflags =ESpriteNoShadows -alignment =ECustomTextCursorAlignTop - - -[GRAPHICS-WSERV-Session-PublicApi-0055-0001-new_command04] -ws =ws - -[GRAPHICS-WSERV-Session-PublicApi-0055-0001-Construct_command05] -clienthandle =1 - -[GRAPHICS-WSERV-Session-PublicApi-0055-0001-CaptureKey_command006] -keycode =EKeyF1 -modifiermask =0 -modifier =0 - -[GRAPHICS-WSERV-Session-PublicApi-0055-0001-AddPriorityKey_command007] -keycode =EKeyF1 -modifiermask =0 -modifier =0 - -[GRAPHICS-WSERV-Session-PublicApi-0055-0001-SimulateKeyEvent_command008] -keycode =EKeyF1 -modifiers =0 - -[GRAPHICS-WSERV-Session-PublicApi-0055-0001-GetPriorityKey_command009] -store =we - -[GRAPHICS-WSERV-Session-PublicApi-0055-0001-Key_command010] -expected_code =EKeyF1 -expected_modifier =0 -expected_repeats =0 - -[GRAPHICS-WSERV-Session-PublicApi-0057-0001-new_command01] -ws =ws - -[GRAPHICS-WSERV-Session-PublicApi-0057-0001-Construct_command02] -clienthandle =1 - -[GRAPHICS-WSERV-Session-PublicApi-0057-0001-Construct_command003] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-Session-PublicApi-0057-0001-SetExtent_command004] -point_x =5 -point_y =6 -size_width =10 -size_height =15 - -[GRAPHICS-WSERV-Session-PublicApi-0057-0001-GetRedraw_command005] -store =we - -[GRAPHICS-WSERV-Session-PublicApi-0057-0001-Rect_command006] -expected_top =0 -expected_left =0 -expected_bottom =15 -expected_right =10 - - -[GRAPHICS-WSERV-Session-PublicApi-0059-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-Session-PublicApi-0059-0001-Construct_command004] -clienthandle =13 -isfocusable =TRUE - -[GRAPHICS-WSERV-Session-PublicApi-0059-0001-WindowGroupList_command006] -priority =0 -usearray =TRUE - -[GRAPHICS-WSERV-Session-PublicApi-0059-0001-GetWindowGroupHandle_command007] -inputWGId =13 - -[GRAPHICS-WSERV-Session-PublicApi-0059-0001-FindWindowGroupIdentifier_command008] -prewgid =0 - - -[GRAPHICS-WSERV-Session-PublicApi-0062-0001-ClearSystemPointerCursor_command005] -inputcursornumber ={default_wserv,pointercursor} - - -[GRAPHICS-WSERV-Session-PublicApi-0064-0001-ComputeMode_command004] -computemode =EPriorityControlDisabled - - -[GRAPHICS-WSERV-Session-PublicApi-0068-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-Session-PublicApi-0068-0001-Construct_command004] -clienthandle =68 -isfocusable =TRUE - - -[GRAPHICS-WSERV-Session-PublicApi-0070-0001-GetColorModeList_command003] -nullpointer =TRUE - -[GRAPHICS-WSERV-Session-PublicApi-0070-0001-GetColorModeList_command004] -nullpointer =FALSE - - -[GRAPHICS-WSERV-Session-PublicApi-0071-0001-GetDefModeMaxNumColors_command004] -defDisplayMode ={default_wserv,display_mode} -defModeMaxNumColor ={default_wserv,max_colors} -defModeMaxNumGray ={default_wserv,max_grays} - - -[GRAPHICS-WSERV-Session-PublicApi-0072-0001-new_command03] -ws =ws - -[GRAPHICS-WSERV-Session-PublicApi-0072-0001-Construct_command04] -clienthandle =72 -isfocusable =TRUE - -[GRAPHICS-WSERV-Session-PublicApi-0072-0001-GetWindowGroupClientThreadId_command006] -wgIdentifier =72 - - -[GRAPHICS-WSERV-Session-PublicApi-0073-0001-HeapCount_command004] -heapCount =1200 - - -[GRAPHICS-WSERV-Session-PublicApi-0075-0001-PointerCursorArea_command004] -screenSizeMode =0 -ptrcurarea_right =312 -ptrcurarea_left =-51 -ptrcurarea_bottom =696 -ptrcurarea_top =-90 - - -[GRAPHICS-WSERV-Session-PublicApi-0076-0001-PointerCursorArea_command004] -ptrcurarea_right =312 -ptrcurarea_left =-51 -ptrcurarea_bottom =696 -ptrcurarea_top =-90 - - -[GRAPHICS-WSERV-Session-PublicApi-0077-0001-PointerCursorMode_command004] -expected ={default_wserv,pointercursormode} - - -[GRAPHICS-WSERV-Session-PublicApi-0078-0001-PointerCursorPosition_command004] -point_x =0 -point_y =0 - - -[GRAPHICS-WSERV-Session-PublicApi-0080-0001-LogCommand_command004] -logCommand =ELoggingStatusDump - - -[GRAPHICS-WSERV-Session-PublicApi-0081-0001-LogMessage_command004] -logMessage =TestMessage - - -[GRAPHICS-WSERV-Session-PublicApi-0082-0001-NumberOfScreens_command004] -expected ={default_wserv,screens} - -[GRAPHICS-WSERV-Session-PublicApi-0082-0001-GetFocusScreen_command005] -expected ={default_wserv,screen} - -[GRAPHICS-WSERV-Session-PublicApi-0082-0001-GetColorModeList_command006] -nullpointer =TRUE - -[GRAPHICS-WSERV-Session-PublicApi-0082-0001-GetColorModeList_command007] -nullpointer =FALSE -inputscreenno ={default_wserv,screen} - - -[GRAPHICS-WSERV-Session-PublicApi-0083-0001-GetColorModeList_command004] -nullpointer =TRUE -inputscreenno ={default_wserv,screen} - -[GRAPHICS-WSERV-Session-PublicApi-0083-0001-GetColorModeList_command005] -nullpointer =FALSE -inputscreenno ={default_wserv,screen} - - -[GRAPHICS-WSERV-Session-PublicApi-0086-0001-GetDefModeMaxNumColors_command004] -screennum ={default_wserv,screen} -defDisplayMode ={default_wserv,display_mode} -defModeMaxNumColor ={default_wserv,max_colors} -defModeMaxNumGray ={default_wserv,max_grays} - -[GRAPHICS-WSERV-Session-PublicApi-0087-0001-ComputeMode_command004] -computemode =EPriorityControlComputeOn - -[GRAPHICS-WSERV-Session-PublicApi-0088-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-Session-PublicApi-0088-0001-Construct_command004] -clienthandle =13 -isfocusable =TRUE - -[GRAPHICS-WSERV-Session-PublicApi-0088-0001-WindowGroupList_command006] -priority =0 -usearray =TRUE - -[GRAPHICS-WSERV-Session-PublicApi-0088-0001-GetWindowGroupHandle_command007] -inputWGId =23 - -[GRAPHICS-WSERV-Session-PublicApi-0088-0001-FindWindowGroupIdentifier_command008] -prewgid =0 - -[GRAPHICS-WSERV-Session-PublicApi-0090-0001-SetPointerCursorArea_command003] -screensizemode =-1 -ptrcurarea_top =-90 -ptrcurarea_left =-51 -ptrcurarea_bottom =-696 -ptrcurarea_right =-312 - -[GRAPHICS-WSERV-Session-PublicApi-0090-0001-PointerCursorArea_command004] -ptrcurarea_top =-90 -ptrcurarea_left =-51 -ptrcurarea_bottom =-696 -ptrcurarea_right =-312 -screensizemode =-1 - -[GRAPHICS-WSERV-Session-PublicApi-0091-0001-new_command01] -ws =ws - -[GRAPHICS-WSERV-Session-PublicApi-0091-0001-Construct_command02] -clienthandle =1 -isfocusable =TRUE - -[GRAPHICS-WSERV-Session-PublicApi-0091-0001-SetBufferSizeL_command003] -setbuffer =-1 - -[GRAPHICS-WSERV-Session-PublicApi-0091-0001-RequestOffEvents_command004] -seteventoffon =ETrue - - -[GRAPHICS-WSERV-Session-PublicApi-0092-0001-RestoreDefaultHotKey_command004] -restoredefhk =-1 - -[GRAPHICS-WSERV-Session-PublicApi-0093-0001-SetAutoFlush_command003] -newFlushstate =FALSE -expectedFlushstate =FALSE - -[GRAPHICS-WSERV-Session-PublicApi-0094-0001-SetBufferSizeL_command003] -setbuffer =131072 - -[GRAPHICS-WSERV-Session-PublicApi-0094-0001-SetMaxBufferSizeL_command004] -setmaxbuffer =635 - -[GRAPHICS-WSERV-Session-PublicApi-0094-0001-SetBackgroundColor_command005] -bgcolour_red =-1 -bgcolour_green =-1 -bgcolour_blue =-1 - -[GRAPHICS-WSERV-Session-PublicApi-0096-0001-SetClientCursorMode_command003] -cltcurmode =EPointerCursorNone - -[GRAPHICS-WSERV-Session-PublicApi-0097-0001-Load_command001] -bitmap_id =0 -file_name =\graphics\wserv\test_board.mbm -share_if_loaded =TRUE -use_rfile =FALSE - -[GRAPHICS-WSERV-Session-PublicApi-0097-0001-SetCustomTextCursor_command002] -identifier =-1 -spritemember1_bitmap =fbsbmp -spritemember1_drawmode =EDrawModeAND -spritemember1_offset_x =-5 -spritemember1_offset_y =-5 -spriteflags =ESpriteNoShadows -alignment =ECustomTextCursorAlignTop - -[GRAPHICS-WSERV-Session-PublicApi-0098-0001-SetDefaultFadingParameters_command003] -defblackmapfading =-1 -defwhitemapfading =-255 - -[GRAPHICS-WSERV-Session-PublicApi-0098-0001-SetSystemFaded_command004] -sysfadonoff =EFalse - -[GRAPHICS-WSERV-Session-PublicApi-0099-0001-SetDoubleClick_command003] -maxinterval =-3 -maxdistance =-5 - -[GRAPHICS-WSERV-Session-PublicApi-0099-0001-GetDoubleClickSettings_command004] -expecteddblmaxinittime =-3 -expecteddblmaxdistance =-5 - -[GRAPHICS-WSERV-Session-PublicApi-0100-0001-SetHotKey_command004] -hotkey =EHotKeyOff -keycode =EKeyLeftAlt - - -[GRAPHICS-WSERV-Session-PublicApi-0102-0001-SetModifierState_command004] -inputpermanmodif =EModifierLeftCtrl -inputpermanmodifstate =ETurnOffModifier - -[GRAPHICS-WSERV-Session-PublicApi-0103-0001-SetPointerCursorArea_command003] -ptrcurarea_top =-90 -ptrcurarea_left =-51 -ptrcurarea_bottom =-696 -ptrcurarea_right =-312 - -[GRAPHICS-WSERV-Session-PublicApi-0103-0001-PointerCursorArea_command004] -ptrcurarea_top =-90 -ptrcurarea_left =-51 -ptrcurarea_bottom =-696 -ptrcurarea_right =-312 - -[GRAPHICS-WSERV-Session-PublicApi-0104-0001-SetPointerCursorArea_command003] -screensizemode =-1 -ptrcurarea_top =-90 -ptrcurarea_left =-51 -ptrcurarea_bottom =-696 -ptrcurarea_right =-312 - -[GRAPHICS-WSERV-Session-PublicApi-0104-0001-PointerCursorArea_command004] -ptrcurarea_top =-90 -ptrcurarea_left =-51 -ptrcurarea_bottom =-696 -ptrcurarea_right =-312 -screensizemode =-1 - -[GRAPHICS-WSERV-Session-PublicApi-0105-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-Session-PublicApi-0105-0001-Construct_command004] -clienthandle =1 -isfocusable =TRUE - -[GRAPHICS-WSERV-Session-PublicApi-0105-0001-SetPointerCursorMode_command005] -pointercurmode =EPointerCursorNone - -[GRAPHICS-WSERV-Session-PublicApi-0105-0001-PointerCursorMode_command006] -expected =EPointerCursorNone - -[GRAPHICS-WSERV-Session-PublicApi-0106-0001-SetPointerCursorPosition_command003] -ptrcurpos_x =-1 -ptrcurpos_y =-1 - -[GRAPHICS-WSERV-Session-PublicApi-0106-0001-PointerCursorPosition_command004] -point_x =-1 -point_y =-1 - -[GRAPHICS-WSERV-Session-PublicApi-0109-0001-SetSystemFaded_command003] -sysfadonoff =EFalse -blackmapfading =-10 -whitemapfading =-244 - -[GRAPHICS-WSERV-Session-PublicApi-0110-0001-SetWindowGroupOrdinalPosition_command005] -identifier =12 -position =-1 - -[GRAPHICS-WSERV-Session-PublicApi-0111-0001-FindWindowGroupIdentifier_command004] -matchwgname =*GVNKWTX* - -[GRAPHICS-WSERV-Session-PublicApi-0114-0001-NumWindowGroups_command003] -specifiescrnno ={default_wserv,screen_negative} -givenwgpriority =-1 - -[GRAPHICS-WSERV-Session-PublicApi-0115-0001-WindowGroupList_command005] -priority =EAllPriorities -usearray =TRUE -screennum ={default_wserv,screen_negative} diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/testdata/GRAPHICS-WSERV-SoundPlugin-PublicAPI.ini --- a/graphicsapitest/graphicssvs/wserv/testdata/GRAPHICS-WSERV-SoundPlugin-PublicAPI.ini Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,268 +0,0 @@ - -[include] -file1=\graphics\t_graphics.ini - - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0004-001-new_Command01] -ws=ws - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0005-001-new_Command01] -ws=ws - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0006-001-new_Command01] -ws=ws - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0007-001-new_Command01] -ws=ws - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0007-001-Construct_Command02] -uid={default_wserv,defSoundPluginUid} -# dll uid - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0007-001-Load_Command03] -filename={default_wserv,defSoundPlugin} - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0007-001-IsLoaded_Command04] -expected_bool=TRUE -isChangeable=TRUE -#! This value depends. See API doc. - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0007-001-CommandReply_Command05] -opcode=1 -args=test commandreply -#! Not sure. - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0008-001-new_Command01] -ws=ws - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0008-001-SetKeyClick_Command03] -enabled=TRUE - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0008-001-KeyClickEnabled_Command04] -expected_bool=TRUE - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0009-001-new_Command01] -ws=ws - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0009-001-SetKeyClick_Command03] -enabled=FALSE - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0009-001-KeyClickEnabled_Command04] -expected_bool=FALSE - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0010-001-new_Command01] -ws=ws - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0010-001-SetPenClick_Command03] -enabled=TRUE - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0010-001-PenClickEnabled_Command04] -expected_bool=TRUE - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0011-001-new_Command01] -ws=ws - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0011-001-SetPenClick_Command03] -enabled=FALSE - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0011-001-PenClickEnabled_Command04] -expected_bool=FALSE - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0012-001-new_Command01] -ws=ws - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0012-001-Construct_Command02] -uid={default_wserv,defSoundPluginUid} -# dll uid - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0012-001-Load_Command03] -filename={default_wserv,defSoundPlugin} - - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0012-001-IsLoaded_Command04] -expected_bool=TRUE -isChangeable=TRUE -#! This value depends. See API doc. - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0012-001-CommandReply_Command05] -opcode=0 -args=test commandreply -#! Not sure. - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0013-001-new_Command01] -ws=ws - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0013-001-Load_Command03] -filename={default_wserv,defSoundPlugin} - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0013-001-IsLoaded_Command04] -expected_bool=TRUE -isChangeable=TRUE -#! This value depends. See API doc. - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0013-001-CommandReply_Command05] -opcode=0 -args=test commandreply - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0013-001-IsLoaded_Command07] -expected_bool=FALSE -#! This value depends. See API doc. - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0014-001-new_Command01] -ws=ws - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0014-001-Load_Command03] -filename={default_wserv,defSoundPlugin} - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0014-001-SetKeyClick_Command04] -enabled=FALSE - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0014-001-KeyClickEnabled_Command05] -expected_bool=FALSE - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0014-001-SetPenClick_Command06] -enabled=TRUE - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0014-001-PenClickEnabled_Command07] -expected_bool=TRUE - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0014-001-KeyClickEnabled_Command09] -expected_bool=FALSE - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0014-001-PenClickEnabled_Command10] -expected_bool=TRUE - - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0015-001-new_Command01] -ws=ws - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0015-001-Load_Command04] -filename=NoneExistFile.dll - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0015-001-IsLoaded_Command05] -expected_bool=FALSE -#! This value depends. See API doc. - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0015-001-Load_Command06] -filename=elocl.loc -# This file is existed, but not a plugin dll. - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0015-001-IsLoaded_Command07] -expected_bool=FALSE -#! This value depends. See API doc. - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0015-001-Load_Command08] -filename=euser.dll -# This file is a system dll, but not a plugin. - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0015-001-IsLoaded_Command09] -expected_bool=FALSE -#! This value depends. See API doc. - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0016-001-new_Command01] -ws=ws - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0016-001-Construct_Command02] -uid={default_wserv,defSoundPluginUid} -# dll uid - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0016-001-Load_Command03] -filename={default_wserv,defSoundPlugin} - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0016-001-Load_Command04] -filename={default_wserv,defSoundPlugin} - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0016-001-IsLoaded_Command05] -expected_bool=TRUE -isChangeable=TRUE -#! This value depends. See API doc. - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0016-001-CommandReply_Command06] -opcode=0 -args=test commandreply - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0017-001-new_Command01] -ws=ws - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0017-001-Construct_Command02] -uid={default_wserv,defSoundPluginUid} -# dll uid - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0017-001-Load_Command03] -filename={default_wserv,defSoundPlugin} - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0017-001-IsLoaded_Command07] -expected_bool=FLASE -#! This value depends. See API doc. - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0017-001-CommandReply_Command08] -opcode=0 -args=test commandreply - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0018-001-new_Command03] -ws=ws - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0019-001-new_Command03] -ws=ws - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0021-001-new_Command01] -ws=ws - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0021-001-Construct_Command02] -uid=200000000 -# An error dll uid - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0021-001-Load_Command03] -filename={default_wserv,defSoundPlugin} - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0021-001-IsLoaded_Command04] -expected_bool=TRUE -isChangeable=TRUE -#! This value depends. See API doc. - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0021-001-CommandReply_Command5] -opcode=0 -args=test commandreply - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0023-001-new_Command01] -ws=ws - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0023-001-Load_Command03] -filename={default_wserv,defSoundPlugin} - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0023-001-SetKeyClick_Command05] -enabled=TRUE - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0023-001-KeyClickEnabled_Command06] -expected_bool=TRUE - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0023-001-SetKeyClick_Command07] -enabled=FALSE - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0023-001-KeyClickEnabled_Command08] -expected_bool=FALSE - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0024-001-new_Command01] -ws=ws - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0024-001-Load_Command03] -filename={default_wserv,defSoundPlugin} - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0024-001-SetPenClick_Command05] -enabled=TRUE - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0024-001-PenClickEnabled_Command06] -expected_bool=TRUE - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0024-001-SetPenClick_Command07] -enabled=FALSE - -[GRAPHICS-WSERV-SoundPlugin-PublicAPI-0024-001-PenClickEnabled_Command08] -expected_bool=FALSE - - -[soundPlugIn] -name=soundPlugIn - -[ws] -name=ws diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/testdata/GRAPHICS-WSERV-Window-PublicApi.ini --- a/graphicsapitest/graphicssvs/wserv/testdata/GRAPHICS-WSERV-Window-PublicApi.ini Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,2690 +0,0 @@ -[include] -file1 =\graphics\t_graphics.ini - - -// -// RWindowGroup wingrp_100 -// +- RBlankWindow bnkwin_110 -// | +- RBlankWindow bnkwin_111 -// | +- RWindow win_112 -// +- RWindow win_120 -// +- RWindow win_121 -// +- RWindow win_122 -// +- RBankWindow bnkwin_123 -// - -[wingrp_100] -name =wingrp_100 - -[bnkwin_110] -name =bnkwin_110 - -[bnkwin_111] -name =bnkwin_111 - -[win_112] -name =win_112 - -[win_120] -name =win_120 - -[win_121] -name =win_121 - -[win_122] -name =win_122 - -[bnkwin_123] -name =bnkwin_123 - -//------------------------------------- -[wingc] -name =wingc - -[fbsbmp] -name =fbsbmp - -[backwin] -name =backwin - -[ws] -name =ws - -[win] -name =win - -[wingrp] -name =wingrp - -[wingrp1] -name =wingrp1 - -[wsbmp] -name =wsbmp - -[scrdev] -name =scrdev - -[bmputil] -name =bmputil - -[we] -name =we - - -[GRAPHICS-WSERV-Window-Setup-0001-0001-new_command004] -ws =ws - -[GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command005] -clienthandle =1 - -[GRAPHICS-WSERV-Window-Setup-0001-0001-new_command007] -ws =ws - -[GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command008] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-Window-Setup-0001-0001-new_command010] -ws =ws - -[GRAPHICS-WSERV-Window-Setup-0001-0001-Construct_command011] -parent =backwin -handle =3 - - -[GRAPHICS-WSERV-Window-Setup-0002-0001-new_command004] -ws =ws - -[GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command005] -//defaultscreennumber =1 - -[GRAPHICS-WSERV-Window-Setup-0002-0001-CreateContext_command006] -windowgc =wingc - -[GRAPHICS-WSERV-Window-Setup-0002-0001-new_command008] -ws =ws - -[GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command009] -clienthandle =1 - -[GRAPHICS-WSERV-Window-Setup-0002-0001-new_command011] -ws =ws - -[GRAPHICS-WSERV-Window-Setup-0002-0001-Construct_command012] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-Window-Setup-0002-0001-SetRequiredDisplayMode_command013] -mode ={default_wserv,display_mode} - -[GRAPHICS-WSERV-Window-Setup-0002-0001-SetAutoFlush_command015] -newFlushstate =TRUE -expectedFlushstate =FALSE - -[GRAPHICS-WSERV-Window-Setup-0002-0001-Activate_command017] -device =win - -[GRAPHICS-WSERV-Window-Setup-0002-0001-SetBrushColor_command18] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-WSERV-Window-Setup-0002-0001-SetBrushStyle_command19] -brushstyle =ESolidBrush - -[GRAPHICS-WSERV-Window-Setup-0002-0001-SetSize_command20] -size_height =100 -size_width =100 - - -[GRAPHICS-WSERV-Window-Setup-0003-0001-new_command004] -ws =ws - -[GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command005] -//defaultscreennumber =1 - -[GRAPHICS-WSERV-Window-Setup-0003-0001-CreateContext_command006] -windowgc =wingc - -[GRAPHICS-WSERV-Window-Setup-0003-0001-new_command008] -ws =ws - -[GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command009] -clienthandle =1 - -[GRAPHICS-WSERV-Window-Setup-0003-0001-new_command011] -ws =ws - -[GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command012] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command013] -mode ={default_wserv,display_mode} - -[GRAPHICS-WSERV-Window-Setup-0003-0001-SetBackgroundColor_command014] -color_green =255 -color_red =255 -color_blue =0 - -[GRAPHICS-WSERV-Window-Setup-0003-0001-new_command022] -ws =ws - -[GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command023] -parent =backwin -handle =3 - -[GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command024] -parent =wingrp -handle =3 - -[GRAPHICS-WSERV-Window-Setup-0003-0001-SetRequiredDisplayMode_command025] -mode ={default_wserv,display_mode} - -[GRAPHICS-WSERV-Window-Setup-0003-0001-SetSize_command026] -size_height =100 -size_width =100 - -[GRAPHICS-WSERV-Window-Setup-0003-0001-SetAutoFlush_command027] -newFlushstate =TRUE -expectedFlushstate =FALSE - -[GRAPHICS-WSERV-Window-Setup-0003-0001-Activate_command030] -device =win - -[GRAPHICS-WSERV-Window-Setup-0003-0001-Construct_command031] -parent =wingrp -handle =3 - - -[GRAPHICS-WSERV-Window-PublicApi-0000-0001-SetPointerGrab_TRUE] -state =TRUE - -[GRAPHICS-WSERV-Window-PublicApi-0000-0001-SetPointerGrab_FALSE] -state =FALSE - -[GRAPHICS-WSERV-Window-PublicApi-0000-0001-ClaimPointerGrab_TRUE] -sendupevent =TRUE - -[GRAPHICS-WSERV-Window-PublicApi-0000-0001-ClaimPointerGrab_FALSE] -sendupevent =FALSE - -[GRAPHICS-WSERV-Window-PublicApi-0000-0001-EnableBackup_EWindowBackupAreaBehind] -backuptype =EWindowBackupAreaBehind - -[GRAPHICS-WSERV-Window-PublicApi-0000-0001-EnableBackup_EWindowBackupFullScreen] -backuptype =EWindowBackupFullScreen - -[GRAPHICS-WSERV-Window-PublicApi-0000-0001-PasswordWindow_EPasswordCancel] -passwordmode =EPasswordCancel - -[GRAPHICS-WSERV-Window-PublicApi-0000-0001-PasswordWindow_EPasswordNone] -passwordmode =EPasswordNone - -[GRAPHICS-WSERV-Window-PublicApi-0000-0001-PasswordWindow_EPasswordOnceADay] -passwordmode =EPasswordOnceADay - -[GRAPHICS-WSERV-Window-PublicApi-0000-0001-PasswordWindow_EPasswordAlways] -passwordmode =EPasswordAlways - -[GRAPHICS-WSERV-Window-PublicApi-0000-0001-PasswordWindow_EPasswordAlwaysTriggerNow] -passwordmode =EPasswordAlwaysTriggerNow - -[GRAPHICS-WSERV-Window-PublicApi-0000-0001-PasswordWindow_EPasswordOnceADayTriggerNow] -passwordmode =EPasswordOnceADayTriggerNow - -[GRAPHICS-WSERV-Window-PublicApi-0000-0001-FadeBehind_TRUE] -fade =TRUE - -[GRAPHICS-WSERV-Window-PublicApi-0000-0001-FadeBehind_FALSE] -fade =FALSE - -[GRAPHICS-WSERV-Window-PublicApi-0000-0001-expected_TRUE] -expected =TRUE - -[GRAPHICS-WSERV-Window-PublicApi-0000-0001-expected_FALSE] -expected =FALSE - -[GRAPHICS-WSERV-Window-PublicApi-0000-0001-SetNonFading_TRUE] -inputNonFading =TRUE - -[GRAPHICS-WSERV-Window-PublicApi-0000-0001-SetNonFading_FALSE] -inputNonFading =FALSE - - -[GRAPHICS-WSERV-Window-PublicApi-0002-0001-new_command004] -ws =ws - - -[GRAPHICS-WSERV-Window-PublicApi-0003-0001-new_command004] -ws =ws - -[GRAPHICS-WSERV-Window-PublicApi-0003-0001-Construct_command005] -clienthandle =1 - -[GRAPHICS-WSERV-Window-PublicApi-0003-0001-new_command007] -ws =ws - -[GRAPHICS-WSERV-Window-PublicApi-0003-0001-Construct_command008] -parent =wingrp -handle =2 - - -[GRAPHICS-WSERV-Window-PublicApi-0004-0001-GetDrawRect_command001] -expected_top =0 -expected_left =0 -expected_bottom =0 -expected_right =0 - -[GRAPHICS-WSERV-Window-PublicApi-0004-0001-GetDrawRect_command003] -expected_top =0 -expected_left =0 -expected_bottom ={default_wserv,scr_height} -expected_right ={default_wserv,scr_width} - - -[GRAPHICS-WSERV-Window-PublicApi-0005-0001-GetDrawRect_command001] -expected_top =0 -expected_left =0 -expected_bottom =0 -expected_right =0 - -[GRAPHICS-WSERV-Window-PublicApi-0005-0001-BeginRedraw_command002] -rect_top =20 -rect_left =21 -rect_bottom =50 -rect_right =51 - -[GRAPHICS-WSERV-Window-PublicApi-0005-0001-GetDrawRect_command003] -expected_top =20 -expected_left =21 -expected_bottom =50 -expected_right =51 - - -[GRAPHICS-WSERV-Window-PublicApi-0006-0001-GetDrawRect_command003] -expected_top =0 -expected_left =0 -expected_bottom =0 -expected_right =0 - - -[GRAPHICS-WSERV-Window-PublicApi-0007-0001-GetInvalidRegion_command004] -expected1_top =0 -expected1_left =0 -expected1_bottom =0 -expected1_right =0 - -[GRAPHICS-WSERV-Window-PublicApi-0007-0001-GetInvalidRegion_command006] -expected1_top =0 -expected1_left =0 -expected1_bottom ={default_wserv,scr_height} -expected1_right ={default_wserv,scr_width} - - -[GRAPHICS-WSERV-Window-PublicApi-0008-0001-GetInvalidRegion_command004] -expected1_top =0 -expected1_left =0 -expected1_bottom =0 -expected1_right =0 - -[GRAPHICS-WSERV-Window-PublicApi-0008-0001-Invalidate_command005] -rect_top =10 -rect_left =11 -rect_bottom =60 -rect_right =81 - -[GRAPHICS-WSERV-Window-PublicApi-0008-0001-GetInvalidRegion_command006] -expected1_top =10 -expected1_left =11 -expected1_bottom =60 -expected1_right =81 - - -[GRAPHICS-WSERV-Window-PublicApi-0009-0001-GetInvalidRegion_command001] -expected1_top =0 -expected1_left =0 -expected1_bottom =0 -expected1_right =0 - -[GRAPHICS-WSERV-Window-PublicApi-0009-0001-GetInvalidRegion_command003] -expected1_top =0 -expected1_left =0 -expected1_bottom ={default_wserv,scr_height} -expected1_right ={default_wserv,scr_width} - - -[GRAPHICS-WSERV-Window-PublicApi-0010-0001-SetBackgroundColor_command001] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-WSERV-Window-PublicApi-0010-0001-checkRectColor_command006] -rect1_top =0 -rect1_left =0 -rect1_bottom =20 -rect1_right =20 -expected1_red =255 -expected1_green =0 -expected1_blue =0 -rect2_top =0 -rect2_left =180 -rect2_bottom =20 -rect2_right =200 -expected2_red =255 -expected2_green =0 -expected2_blue =0 -rect3_top =180 -rect3_left =0 -rect3_bottom =200 -rect3_right =20 -expected3_red =255 -expected3_green =0 -expected3_blue =0 -rect4_top =180 -rect4_left =180 -rect4_bottom =200 -rect4_right =200 -expected4_red =255 -expected4_green =0 -expected4_blue =0 - -[GRAPHICS-WSERV-Window-PublicApi-0011-0001-SetBackgroundColor_command005] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-WSERV-Window-PublicApi-0011-0001-checkRectColor_command006] -rect1_top =0 -rect1_left =0 -rect1_bottom =20 -rect1_right =20 -expected1_red =255 -expected1_green =255 -expected1_blue =255 -rect2_top =0 -rect2_left =180 -rect2_bottom =20 -rect2_right =200 -expected2_red =255 -expected2_green =255 -expected2_blue =255 -rect3_top =180 -rect3_left =0 -rect3_bottom =200 -rect3_right =20 -expected3_red =255 -expected3_green =255 -expected3_blue =255 -rect4_top =180 -rect4_left =180 -rect4_bottom =200 -rect4_right =200 -expected4_red =255 -expected4_green =255 -expected4_blue =255 - - -[GRAPHICS-WSERV-Window-PublicApi-0012-0001-SetSize_command001] -size_height =40 -size_width =50 - - -[GRAPHICS-WSERV-Window-PublicApi-0012-0001-Size_command002] -expected_height =40 -expected_width =50 - - -[GRAPHICS-WSERV-Window-PublicApi-0013-0001-SetExtent_command001] -size_height =30 -size_width =40 -point_x =10 -point_y =11 - -[GRAPHICS-WSERV-Window-PublicApi-0013-0001-AbsPosition_command002] -expected_y =11 -expected_x =10 - -[GRAPHICS-WSERV-Window-PublicApi-0013-0001-Size_command003] -expected_height =30 -expected_width =40 - - -[GRAPHICS-WSERV-Window-PublicApi-0014-0001-Create_command002] -width =5 -height =1 -displaymode =EGray256 - -[GRAPHICS-WSERV-Window-PublicApi-0014-0001-SetBackgroundColor_command004] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-WSERV-Window-PublicApi-0014-0001-SetTransparencyBitmap_command005] -transparencybitmap =fbsbmp - -[GRAPHICS-WSERV-Window-PublicApi-0014-0001-checkRectColor_command010] -rect1_top =0 -rect1_left =0 -rect1_bottom =20 -rect1_right =20 -expected1_red =0 -expected1_green =0 -expected1_blue =255 - -[GRAPHICS-WSERV-Window-PublicApi-0014-0001-New_command012] -bitmap =fbsbmp - -[GRAPHICS-WSERV-Window-PublicApi-0014-0001-Begin_command013] -point_x =0 -point_y =0 - -[GRAPHICS-WSERV-Window-PublicApi-0014-0001-SetPixel_command014] -color =0 - -[GRAPHICS-WSERV-Window-PublicApi-0014-0001-SetPos_command015] -point_x =1 -point_y =0 - -[GRAPHICS-WSERV-Window-PublicApi-0014-0001-SetPixel_command016] -color =64 - -[GRAPHICS-WSERV-Window-PublicApi-0014-0001-SetPos_command017] -point_x =2 -point_y =0 - -[GRAPHICS-WSERV-Window-PublicApi-0014-0001-SetPixel_command018] -color =128 - -[GRAPHICS-WSERV-Window-PublicApi-0014-0001-SetPos_command019] -point_x =3 -point_y =0 - -[GRAPHICS-WSERV-Window-PublicApi-0014-0001-SetPixel_command020] -color =192 - -[GRAPHICS-WSERV-Window-PublicApi-0014-0001-SetPos_command021] -point_x =4 -point_y =0 - -[GRAPHICS-WSERV-Window-PublicApi-0014-0001-SetPixel_command022] -color =255 - -[GRAPHICS-WSERV-Window-PublicApi-0014-0001-checkAlphaBlend_command027] -srcbmp_red =0 -srcbmp_green =0 -srcbmp_blue =255 -winbmp_red =255 -winbmp_green =255 -winbmp_blue =0 -alphabmp =fbsbmp -rect1_top =0 -rect1_left =0 -rect1_bottom =1 -rect1_right =20 - -[GRAPHICS-WSERV-Window-PublicApi-0014-0001-checkPixels_command028] -pixel1_x =0 -pixel1_y =0 -pixel2_x =1 -pixel2_y =0 -pixel3_x =2 -pixel3_y =0 -pixel4_x =3 -pixel4_y =0 -pixel5_x =4 -pixel5_y =0 - - -[GRAPHICS-WSERV-Window-PublicApi-0015-0001-SetBackgroundColor_command001] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-WSERV-Window-PublicApi-0015-0001-SetTransparencyFactor_command002] -transparencyfactor_red =17 -transparencyfactor_green=17 -transparencyfactor_blue =17 - -[GRAPHICS-WSERV-Window-PublicApi-0015-0001-checkPixels_command007] -pixel1_x =10 -pixel1_y =10 -pixel2_x =100 -pixel2_y =100 - -[GRAPHICS-WSERV-Window-PublicApi-0015-0001-checkAlphaBlend_command008] -srcbmp_red =0 -srcbmp_green =0 -srcbmp_blue =255 -winbmp_red =255 -winbmp_green =255 -winbmp_blue =0 -alphabmp_red =17 -alphabmp_green =17 -alphabmp_blue =17 -rect1_top =0 -rect1_left =0 -rect1_bottom =10 -rect1_right =80 - - -[GRAPHICS-WSERV-Window-PublicApi-0016-0001-Load_command002] -bitmap_id =0 -file_name =\graphics\wserv\test_alpha.mbm -share_if_loaded =TRUE -use_rfile =FALSE - -[GRAPHICS-WSERV-Window-PublicApi-0016-0001-SetTransparencyBitmap_command004] -transparencybitmap =fbsbmp - -[GRAPHICS-WSERV-Window-PublicApi-0016-0001-SetBackgroundColor_command005] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-WSERV-Window-PublicApi-0016-0001-checkAlphaBlend_command010] -srcbmp_red =0 -srcbmp_green =0 -srcbmp_blue =255 -winbmp_red =255 -winbmp_green =255 -winbmp_blue =0 -alphabmp =fbsbmp -rect1_top =0 -rect1_left =0 -rect1_bottom =10 -rect1_right =80 - - -[GRAPHICS-WSERV-Window-PublicApi-0017-0001-new_command001] -ws =ws - -[GRAPHICS-WSERV-Window-PublicApi-0017-0001-Load_command002] -id =0 -filename =\graphics\wserv\test_alpha.mbm -shareifloaded =TRUE - -[GRAPHICS-WSERV-Window-PublicApi-0017-0001-SetTransparencyWsBitmap_command004] -transparencybitmap =wsbmp - -[GRAPHICS-WSERV-Window-PublicApi-0017-0001-SetBackgroundColor_command005] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-WSERV-Window-PublicApi-0017-0001-checkAlphaBlend_command010] -srcbmp_red =0 -srcbmp_green =0 -srcbmp_blue =255 -winbmp_red =255 -winbmp_green =255 -winbmp_blue =0 -alphabmp =wsbmp -rect1_top =0 -rect1_left =0 -rect1_bottom =10 -rect1_right =80 - - -[GRAPHICS-WSERV-Window-PublicApi-0018-0001-SetBackgroundColor_command002] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-WSERV-Window-PublicApi-0018-0001-checkRectColor_command007] -rect1_top =0 -rect1_left =0 -rect1_bottom =10 -rect1_right =80 -expected1_red =0 -expected1_green =0 -expected1_blue =255 - - -[GRAPHICS-WSERV-Window-PublicApi-0019-0001-EnableRedrawStore_command001] -enabled =FALSE - -[GRAPHICS-WSERV-Window-PublicApi-0019-0001-IsRedrawStoreEnabled_command002] -expected =FALSE - - -[GRAPHICS-WSERV-Window-PublicApi-0020-0001-SetRequiredDisplayMode_command001] -mode =EColor16MA - -[GRAPHICS-WSERV-Window-PublicApi-0020-0001-SetBackgroundColor_command002] -color_red =0 -color_green =0 -color_blue =255 -color_alpha =196 - -[GRAPHICS-WSERV-Window-PublicApi-0020-0001-DisplayMode_command003] -expected ={default_wserv,nearest_to_color16ma} - -[GRAPHICS-WSERV-Window-PublicApi-0020-0001-EnableRedrawStore_command004] -enabled =FALSE - -[GRAPHICS-WSERV-Window-PublicApi-0020-0001-IsRedrawStoreEnabled_command005] -expected =FALSE - -[GRAPHICS-WSERV-Window-PublicApi-0020-0001-IsRedrawStoreEnabled_command007] -expected =TRUE - -[GRAPHICS-WSERV-Window-PublicApi-0020-0001-checkPixels_command012] -pixel1_x =10 -pixel1_y =10 -pixel2_x =100 -pixel2_y =100 - -[GRAPHICS-WSERV-Window-PublicApi-0020-0001-checkAlphaBlend_command013] -srcbmp_red =0 -srcbmp_green =0 -srcbmp_blue =255 -winbmp_red =255 -winbmp_green =255 -winbmp_blue =0 -alphabmp_red =196 -alphabmp_green =196 -alphabmp_blue =196 -rect1_top =10 -rect1_left =10 -rect1_bottom =40 -rect1_right =40 - - -[GRAPHICS-WSERV-Window-PublicApi-0021-0001-SetBackgroundColor_command001] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-WSERV-Window-PublicApi-0021-0001-SetTransparencyFactor_command002] -transparencyfactor_red =0 -transparencyfactor_green=28 -transparencyfactor_blue =0 - -[GRAPHICS-WSERV-Window-PublicApi-0021-0001-SetTransparentRegion_command003] -region1_top =10 -region1_left =10 -region1_bottom =20 -region1_right =20 -region2_top =20 -region2_left =20 -region2_bottom =25 -region2_right =25 -region3_top =25 -region3_left =25 -region3_bottom =40 -region3_right =40 - -[GRAPHICS-WSERV-Window-PublicApi-0021-0001-checkRectColor_command008] -rect1_top =0 -rect1_left =0 -rect1_bottom =10 -rect1_right =45 -expected1_red =0 -expected1_green =0 -expected1_blue =255 -rect2_top =10 -rect2_left =0 -rect2_bottom =20 -rect2_right =10 -expected2_red =0 -expected2_green =0 -expected2_blue =255 -rect3_top =10 -rect3_left =20 -rect3_bottom =20 -rect3_right =45 -expected3_red =0 -expected3_green =0 -expected3_blue =255 -rect4_top =20 -rect4_left =0 -rect4_bottom =25 -rect4_right =20 -expected4_red =0 -expected4_green =0 -expected4_blue =255 -rect5_top =20 -rect5_left =25 -rect5_bottom =25 -rect5_right =45 -expected5_red =0 -expected5_green =0 -expected5_blue =255 -rect6_top =25 -rect6_left =0 -rect6_bottom =40 -rect6_right =25 -expected6_red =0 -expected6_green =0 -expected6_blue =255 -rect7_top =25 -rect7_left =40 -rect7_bottom =40 -rect7_right =45 -expected7_red =0 -expected7_green =0 -expected7_blue =255 - -[GRAPHICS-WSERV-Window-PublicApi-0021-0001-checkAlphaBlend_command009] -srcbmp_red =0 -srcbmp_green =0 -srcbmp_blue =255 -winbmp_red =255 -winbmp_green =255 -winbmp_blue =0 -alphabmp_red =0 -alphabmp_green =28 -alphabmp_blue =0 -rect1_top =10 -rect1_left =10 -rect1_bottom =20 -rect1_right =20 -rect2_top =20 -rect2_left =20 -rect2_bottom =25 -rect2_right =25 -rect3_top =25 -rect3_left =25 -rect3_bottom =40 -rect3_right =40 - - -[GRAPHICS-WSERV-Window-PublicApi-0022-0001-SetBackgroundColor_command001] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-WSERV-Window-PublicApi-0022-0001-SetTransparencyFactor_command002] -transparencyfactor_red =51 -transparencyfactor_green=51 -transparencyfactor_blue =51 - -[GRAPHICS-WSERV-Window-PublicApi-0022-0001-SetTransparencyPolicy_command003] -policy =ETransparencyDefault - -[GRAPHICS-WSERV-Window-PublicApi-0022-0001-checkPixels_command009] -pixel1_x =10 -pixel1_y =10 -pixel2_x =100 -pixel2_y =100 - -[GRAPHICS-WSERV-Window-PublicApi-0022-0001-checkAlphaBlend_command010] -srcbmp_red =0 -srcbmp_green =0 -srcbmp_blue =255 -winbmp_red =255 -winbmp_green =255 -winbmp_blue =0 -alphabmp_red =51 -alphabmp_green =51 -alphabmp_blue =51 -rect1_top =0 -rect1_left =0 -rect1_bottom =10 -rect1_right =80 - -[GRAPHICS-WSERV-Window-PublicApi-0022-0001-Activate_command013] -device =backwin - -[GRAPHICS-WSERV-Window-PublicApi-0022-0001-SetBackgroundColor_command015] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-WSERV-Window-PublicApi-0022-0001-checkPixels_command020] -pixel1_x =10 -pixel1_y =10 -pixel2_x =100 -pixel2_y =100 - -[GRAPHICS-WSERV-Window-PublicApi-0022-0001-checkAlphaBlend_command021] -srcbmp_red =0 -srcbmp_green =0 -srcbmp_blue =255 -winbmp_red =255 -winbmp_green =0 -winbmp_blue =0 -alphabmp_red =51 -alphabmp_green =51 -alphabmp_blue =51 -rect1_top =0 -rect1_left =0 -rect1_bottom =10 -rect1_right =80 - - -[GRAPHICS-WSERV-Window-PublicApi-0023-0001-IsRedrawStoreEnabled_command001] -expected =TRUE - - -[GRAPHICS-WSERV-Window-PublicApi-0024-0001-EnableOSB_command001] -flag =TRUE - -[GRAPHICS-WSERV-Window-PublicApi-0024-0001-SetBackgroundColor_command002] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-WSERV-Window-PublicApi-0024-0001-Activate_command003] -device =win - -[GRAPHICS-WSERV-Window-PublicApi-0024-0001-SetBrushColor_command006] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-WSERV-Window-PublicApi-0024-0001-SetBrushStyle_command007] -brushstyle =ESolidBrush - -[GRAPHICS-WSERV-Window-PublicApi-0024-0001-DrawRect_command008] -rect_top =10 -rect_left =10 -rect_bottom =30 -rect_right =30 - -[GRAPHICS-WSERV-Window-PublicApi-0024-0001-checkRectColor_command012] -rect1_top =11 -rect1_left =11 -rect1_bottom =29 -rect1_right =29 -expected1_red =255 -expected1_green =0 -expected1_blue =0 -rect2_top =11 -rect2_left =31 -rect2_bottom =29 -rect2_right =49 -expected2_red =0 -expected2_green =0 -expected2_blue =255 -rect3_top =11 -rect3_left =51 -rect3_bottom =29 -rect3_right =69 -expected3_red =0 -expected3_green =0 -expected3_blue =255 - -[GRAPHICS-WSERV-Window-PublicApi-0024-0001-DrawRect_command017] -rect_top =10 -rect_left =50 -rect_bottom =30 -rect_right =70 - -[GRAPHICS-WSERV-Window-PublicApi-0024-0001-checkRectColor_command021] -rect1_top =11 -rect1_left =11 -rect1_bottom =29 -rect1_right =29 -expected1_red =0 -expected1_green =0 -expected1_blue =255 -rect2_top =11 -rect2_left =31 -rect2_bottom =29 -rect2_right =49 -expected2_red =0 -expected2_green =0 -expected2_blue =255 -rect3_top =11 -rect3_left =51 -rect3_bottom =29 -rect3_right =69 -expected3_red =255 -expected3_green =0 -expected3_blue =0 - - -[GRAPHICS-WSERV-Window-PublicApi-0025-0001-EnableOSB_command001] -flag =FALSE - -[GRAPHICS-WSERV-Window-PublicApi-0025-0001-SetBackgroundColor_command002] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-WSERV-Window-PublicApi-0025-0001-Activate_command003] -device =win - -[GRAPHICS-WSERV-Window-PublicApi-0025-0001-SetBrushColor_command006] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-WSERV-Window-PublicApi-0025-0001-SetBrushStyle_command007] -brushstyle =ESolidBrush - -[GRAPHICS-WSERV-Window-PublicApi-0025-0001-DrawRect_command008] -rect_top =10 -rect_left =10 -rect_bottom =30 -rect_right =30 - -[GRAPHICS-WSERV-Window-PublicApi-0025-0001-checkRectColor_command012] -rect1_top =11 -rect1_left =11 -rect1_bottom =29 -rect1_right =29 -expected1_red =255 -expected1_green =0 -expected1_blue =0 - - - -// **************************************************************************** -// RWindow Public APIs inherited from RDrawableWindow -// **************************************************************************** - - -[GRAPHICS-WSERV-Window-PublicApi-0101-0001-DrawRect_command03] -rect_top =2 -rect_left =3 -rect_bottom =30 -rect_right =40 - -[GRAPHICS-WSERV-Window-PublicApi-0101-0001-GetInvalidRegion_command06] -expected1_top =0 -expected1_left =0 -expected1_bottom =0 -expected1_right =0 - -[GRAPHICS-WSERV-Window-PublicApi-0101-0001-Scroll_command10] -offset_x =5 -offset_y =4 - - -[GRAPHICS-WSERV-Window-PublicApi-0101-0001-GetInvalidRegion_command11] -expected1_top =0 -expected1_left =0 -expected1_bottom =4 -expected1_right =100 -expected2_top =4 -expected2_left =0 -expected2_bottom =100 -expected2_right =5 - -[GRAPHICS-WSERV-Window-PublicApi-0101-0001-checkLineColor_command13] -start1_x =8 -start1_y =6 -finish1_x =45 -finish1_y =6 -expected1_red =0 -expected1_green =0 -expected1_blue =0 -start2_x =8 -start2_y =33 -finish2_x =45 -finish2_y =33 -expected2_red =0 -expected2_green =0 -expected2_blue =0 -start3_x =8 -start3_y =6 -finish3_x =8 -finish3_y =34 -expected3_red =0 -expected3_green =0 -expected3_blue =0 -start4_x =44 -start4_y =6 -finish4_x =44 -finish4_y =34 -expected4_red =0 -expected4_green =0 -expected4_blue =0 - -[GRAPHICS-WSERV-Window-PublicApi-0101-0001-checkRectColor_command14] -rect1_top =7 -rect1_left =9 -rect1_bottom =32 -rect1_right =43 -expected1_red =255 -expected1_green =0 -expected1_blue =0 -rect2_top =4 -rect2_left =5 -rect2_bottom =6 -rect2_right =100 -expected2_red =255 -expected2_green =255 -expected2_blue =255 -rect3_top =34 -rect3_left =5 -rect3_bottom =100 -rect3_right =100 -expected3_red =255 -expected3_green =255 -expected3_blue =255 -rect4_top =6 -rect4_left =5 -rect4_bottom =34 -rect4_right =8 -expected4_red =255 -expected4_green =255 -expected4_blue =255 -rect5_top =6 -rect5_left =45 -rect5_bottom =34 -rect5_right =100 -expected5_red =255 -expected5_green =255 -expected5_blue =255 - -[GRAPHICS-WSERV-Window-PublicApi-0101-0001-checkLineColor_command15] -start1_x =3 -start1_y =2 -finish1_x =40 -finish1_y =2 -expected1_red =0 -expected1_green =0 -expected1_blue =0 -start2_x =3 -start2_y =29 -finish2_x =5 -finish2_y =29 -expected2_red =0 -expected2_green =0 -expected2_blue =0 -start3_x =3 -start3_y =2 -finish3_x =3 -finish3_y =30 -expected3_red =0 -expected3_green =0 -expected3_blue =0 -start4_x =39 -start4_y =2 -finish4_x =39 -finish4_y =4 -expected4_red =0 -expected4_green =0 -expected4_blue =0 - -[GRAPHICS-WSERV-Window-PublicApi-0101-0001-checkRectColor_command16] -rect1_top =3 -rect1_left =4 -rect1_bottom =4 -rect1_right =38 -expected1_red =255 -expected1_green =0 -expected1_blue =0 -rect2_top =3 -rect2_left =4 -rect2_bottom =28 -rect2_right =5 -expected2_red =255 -expected2_green =0 -expected2_blue =0 -rect3_top =0 -rect3_left =0 -rect3_bottom =2 -rect3_right =100 -expected3_red =255 -expected3_green =255 -expected3_blue =255 -rect4_top =0 -rect4_left =0 -rect4_bottom =100 -rect4_right =3 -expected4_red =255 -expected4_green =255 -expected4_blue =255 -rect5_top =2 -rect5_left =40 -rect5_bottom =4 -rect5_right =100 -expected5_red =255 -expected5_green =255 -expected5_blue =255 -rect6_top =30 -rect6_left =3 -rect6_bottom =100 -rect6_right =5 -expected6_red =255 -expected6_green =255 -expected6_blue =255 - -[GRAPHICS-WSERV-Window-PublicApi-0102-0001-DrawRect_command03] -rect_top =10 -rect_left =11 -rect_bottom =30 -rect_right =41 - -[GRAPHICS-WSERV-Window-PublicApi-0102-0001-GetInvalidRegion_command06] -expected1_top =0 -expected1_left =0 -expected1_bottom =0 -expected1_right =0 - -[GRAPHICS-WSERV-Window-PublicApi-0102-0001-Scroll_command10] -offset_x =10 -offset_y =5 -cliprect_top =10 -cliprect_left =10 -cliprect_bottom =40 -cliprect_right =30 - -[GRAPHICS-WSERV-Window-PublicApi-0102-0001-GetInvalidRegion_command11] -expected1_top =10 -expected1_left =10 -expected1_bottom =15 -expected1_right =30 -expected2_top =10 -expected2_left =10 -expected2_bottom =40 -expected2_right =20 - -[GRAPHICS-WSERV-Window-PublicApi-0102-0001-checkLineColor_command13] -start1_x =21 -start1_y =15 -finish1_x =30 -finish1_y =15 -expected1_red =0 -expected1_green =0 -expected1_blue =0 -start2_x =21 -start2_y =34 -finish2_x =30 -finish2_y =34 -expected2_red =0 -expected2_green =0 -expected2_blue =0 -start3_x =21 -start3_y =15 -finish3_x =21 -finish3_y =34 -expected3_red =0 -expected3_green =0 -expected3_blue =0 - -[GRAPHICS-WSERV-Window-PublicApi-0102-0001-checkRectColor_command14] -rect1_top =16 -rect1_left =22 -rect1_bottom =33 -rect1_right =30 -expected1_red =255 -expected1_green =0 -expected1_blue =0 -rect2_top =15 -rect2_left =20 -rect2_bottom =34 -rect2_right =21 -expected2_red =255 -expected2_green =255 -expected2_blue =255 -rect3_top =35 -rect3_left =20 -rect3_bottom =40 -rect3_right =30 -expected3_red =255 -expected3_green =255 -expected3_blue =255 - -[GRAPHICS-WSERV-Window-PublicApi-0102-0001-checkLineColor_command15] -start1_x =11 -start1_y =10 -finish1_x =30 -finish1_y =10 -expected1_red =0 -expected1_green =0 -expected1_blue =0 -start2_x =11 -start2_y =29 -finish2_x =20 -finish2_y =29 -expected2_red =0 -expected2_green =0 -expected2_blue =0 -start3_x =11 -start3_y =10 -finish3_x =11 -finish3_y =30 -expected3_red =0 -expected3_green =0 -expected3_blue =0 - -[GRAPHICS-WSERV-Window-PublicApi-0102-0001-checkRectColor_command16] -rect1_top =11 -rect1_left =12 -rect1_bottom =14 -rect1_right =39 -expected1_red =255 -expected1_green =0 -expected1_blue =0 -rect2_top =14 -rect2_left =12 -rect2_bottom =28 -rect2_right =20 -expected2_red =255 -expected2_green =0 -expected2_blue =0 - -[GRAPHICS-WSERV-Window-PublicApi-0103-0001-DrawRect_command03] -rect_top =10 -rect_left =11 -rect_bottom =30 -rect_right =41 - -[GRAPHICS-WSERV-Window-PublicApi-0103-0001-GetInvalidRegion_command06] -expected1_top =0 -expected1_left =0 -expected1_bottom =0 -expected1_right =0 - - -[GRAPHICS-WSERV-Window-PublicApi-0103-0001-Scroll_command10] -offset_x =10 -offset_y =5 -rect_top =10 -rect_left =10 -rect_bottom =40 -rect_right =30 - -[GRAPHICS-WSERV-Window-PublicApi-0103-0001-GetInvalidRegion_command11] -expected1_top =0 -expected1_left =0 -expected1_bottom =0 -expected1_right =0 - -[GRAPHICS-WSERV-Window-PublicApi-0103-0001-checkLineColor_command13] -start1_x =21 -start1_y =15 -finish1_x =40 -finish1_y =15 -expected1_red =0 -expected1_green =0 -expected1_blue =0 -start2_x =21 -start2_y =34 -finish2_x =40 -finish2_y =34 -expected2_red =0 -expected2_green =0 -expected2_blue =0 -start3_x =21 -start3_y =15 -finish3_x =21 -finish3_y =34 -expected3_red =0 -expected3_green =0 -expected3_blue =0 - -[GRAPHICS-WSERV-Window-PublicApi-0103-0001-checkRectColor_command14] -rect1_top =16 -rect1_left =22 -rect1_bottom =33 -rect1_right =40 -expected1_red =255 -expected1_green =0 -expected1_blue =0 -rect2_top =15 -rect2_left =20 -rect2_bottom =34 -rect2_right =21 -expected2_red =255 -expected2_green =255 -expected2_blue =255 -rect3_top =35 -rect3_left =20 -rect3_bottom =45 -rect3_right =40 -expected3_red =255 -expected3_green =255 -expected3_blue =255 - -[GRAPHICS-WSERV-Window-PublicApi-0103-0001-checkLineColor_command15] -start1_x =11 -start1_y =10 -finish1_x =40 -finish1_y =10 -expected1_red =0 -expected1_green =0 -expected1_blue =0 -start2_x =11 -start2_y =29 -finish2_x =20 -finish2_y =29 -expected2_red =0 -expected2_green =0 -expected2_blue =0 -start3_x =11 -start3_y =10 -finish3_x =11 -finish3_y =30 -expected3_red =0 -expected3_green =0 -expected3_blue =0 - -[GRAPHICS-WSERV-Window-PublicApi-0103-0001-checkRectColor_command16] -rect1_top =11 -rect1_left =12 -rect1_bottom =15 -rect1_right =39 -expected1_red =255 -expected1_green =0 -expected1_blue =0 -rect2_top =15 -rect2_left =12 -rect2_bottom =28 -rect2_right =20 -expected2_red =255 -expected2_green =0 -expected2_blue =0 - -[GRAPHICS-WSERV-Window-PublicApi-0104-0001-DrawRect_command03] -rect_top =10 -rect_left =11 -rect_bottom =30 -rect_right =41 - -[GRAPHICS-WSERV-Window-PublicApi-0104-0001-GetInvalidRegion_command06] -expected1_top =0 -expected1_left =0 -expected1_bottom =0 -expected1_right =0 - -[GRAPHICS-WSERV-Window-PublicApi-0104-0001-Scroll_command10] -offset_x =40 -offset_y =30 -cliprect_top =15 -cliprect_left =20 -cliprect_bottom =100 -cliprect_right =100 -rect_top =10 -rect_left =10 -rect_bottom =30 -rect_right =41 - -[GRAPHICS-WSERV-Window-PublicApi-0104-0001-GetInvalidRegion_command11] -expected1_top =40 -expected1_left =50 -expected1_bottom =45 -expected1_right =81 -expected2_top =45 -expected2_left =50 -expected2_bottom =60 -expected2_right =60 - -[GRAPHICS-WSERV-Window-PublicApi-0104-0001-checkLineColor_command13] -start1_x =80 -start1_y =45 -finish1_x =80 -finish1_y =60 -expected1_red =0 -expected1_green =0 -expected1_blue =0 -start2_x =60 -start2_y =59 -finish2_x =80 -finish2_y =59 -expected2_red =0 -expected2_green =0 -expected2_blue =0 - -[GRAPHICS-WSERV-Window-PublicApi-0104-0001-checkRectColor_command14] -rect1_top =45 -rect1_left =60 -rect1_bottom =59 -rect1_right =79 -expected1_red =255 -expected1_green =0 -expected1_blue =0 -rect2_top =45 -rect2_left =81 -rect2_bottom =60 -rect2_right =100 -expected2_red =255 -expected2_green =255 -expected2_blue =255 -rect3_top =60 -rect3_left =60 -rect3_bottom =100 -rect3_right =100 -expected3_red =255 -expected3_green =255 -expected3_blue =255 - -[GRAPHICS-WSERV-Window-PublicApi-0104-0001-checkLineColor_command15] -start1_x =11 -start1_y =10 -finish1_x =41 -finish1_y =10 -expected1_red =0 -expected1_green =0 -expected1_blue =0 -start2_x =11 -start2_y =29 -finish2_x =41 -finish2_y =29 -expected2_red =0 -expected2_green =0 -expected2_blue =0 -start3_x =11 -start3_y =10 -finish3_x =11 -finish3_y =10 -expected3_red =0 -expected3_green =0 -expected3_blue =0 -start4_x =40 -start4_y =10 -finish4_x =40 -finish4_y =10 -expected4_red =0 -expected4_green =0 -expected4_blue =0 - -[GRAPHICS-WSERV-Window-PublicApi-0104-0001-checkRectColor_command16] -rect1_top =11 -rect1_left =12 -rect1_bottom =29 -rect1_right =40 -expected1_red =255 -expected1_green =0 -expected1_blue =0 - - -[GRAPHICS-WSERV-Window-PublicApi-0105-0001-GetDrawRect_command01] -expected_top =0 -expected_left =0 -expected_bottom =0 -expected_right =0 - -[GRAPHICS-WSERV-Window-PublicApi-0105-0001-BeginRedraw_command02] -rect_top =20 -rect_left =21 -rect_bottom =50 -rect_right =51 - -[GRAPHICS-WSERV-Window-PublicApi-0105-0001-GetDrawRect_command03] -expected_top =20 -expected_left =21 -expected_bottom =50 -expected_right =51 - -[GRAPHICS-WSERV-Window-PublicApi-0105-0001-GetDrawRect_command05] -expected_top =0 -expected_left =0 -expected_bottom =0 -expected_right =0 - - -// **************************************************************************** -// RWindow Public APIs inherited from RWindowBase -// **************************************************************************** - - -[GRAPHICS-WSERV-Window-PublicApi-0202-0001-SetPosition_command01] -point_x =11 -point_y =12 - -[GRAPHICS-WSERV-Window-PublicApi-0202-0001-Position_command02] -expected_x =11 -expected_y =12 - - -[GRAPHICS-WSERV-Window-PublicApi-0203-0001-SetSizeErr_command01] -size_height =50 -size_width =40 - -[GRAPHICS-WSERV-Window-PublicApi-0203-0001-Size_command02] -expected_height =50 -expected_width =40 - - -[GRAPHICS-WSERV-Window-PublicApi-0204-0001-SetExtentErr_command01] -size_height =50 -size_width =40 -point_x =11 -point_y =12 - -[GRAPHICS-WSERV-Window-PublicApi-0204-0001-Position_command02] -expected_y =12 -expected_x =11 - -[GRAPHICS-WSERV-Window-PublicApi-0204-0001-Size_command03] -expected_height =50 -expected_width =40 - - -[GRAPHICS-WSERV-Window-PublicApi-0205-0001-Size_command01] -expected_height ={default_wserv,scr_height} -expected_width ={default_wserv,scr_width} - -[GRAPHICS-WSERV-Window-PublicApi-0205-0001-SetSizeErr_command02] -size_height =200 -size_width =120 - -[GRAPHICS-WSERV-Window-PublicApi-0205-0001-Size_command03] -expected_height =200 -expected_width =120 - - -[GRAPHICS-WSERV-Window-PublicApi-0206-0001-InquireOffset_command01] -window =wingrp -expected_y =0 -expected_x =0 - - -[GRAPHICS-WSERV-Window-PublicApi-0206-0001-SetPosition_command02] -point_x =11 -point_y =12 - - -[GRAPHICS-WSERV-Window-PublicApi-0206-0001-InquireOffset_command03] -window =wingrp -expected_y =12 -expected_x =11 - - -[GRAPHICS-WSERV-Window-PublicApi-0207-0001-PointerFilter_command01] -filterMask =EPointerFilterEnterExit|EPointerFilterMove -filter =EPointerFilterMove - - -[GRAPHICS-WSERV-Window-PublicApi-0210-0001-SetPointerCapture_command01] -flags =TCaptureFlagEnabled|TCaptureFlagDragDrop|TCaptureFlagAllGroups - - -[GRAPHICS-WSERV-Window-PublicApi-0211-0001-SetPointerCapturePriority_command01] -priority =5 - -[GRAPHICS-WSERV-Window-PublicApi-0211-0001-GetPointerCapturePriority_command02] -expected =5 - - -[GRAPHICS-WSERV-Window-PublicApi-0212-0001-GetPointerCapturePriority_command01] -expected =0 - - -[GRAPHICS-WSERV-Window-PublicApi-0213-0001-SetBackgroundColor_command01] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-WSERV-Window-PublicApi-0213-0001-checkRectColor_command03] -rect1_top =0 -rect1_left =0 -rect1_bottom =10 -rect1_right =10 -expected1_red =255 -expected1_green =0 -expected1_blue =0 -rect2_top =90 -rect2_left =90 -rect2_bottom =100 -rect2_right =100 -expected2_red =255 -expected2_green =0 -expected2_blue =0 - -[GRAPHICS-WSERV-Window-PublicApi-0213-0001-SetVisible_command05] -state =FALSE - -[GRAPHICS-WSERV-Window-PublicApi-0213-0001-checkRectColor_command07] -rect1_top =0 -rect1_left =0 -rect1_bottom =10 -rect1_right =10 -expected1_red =255 -expected1_green =255 -expected1_blue =0 -rect2_top =90 -rect2_left =90 -rect2_bottom =100 -rect2_right =100 -expected2_red =255 -expected2_green =255 -expected2_blue =0 - - -[GRAPHICS-WSERV-Window-PublicApi-0214-0001-SetBackgroundColor_command01] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-WSERV-Window-PublicApi-0214-0001-SetExtentErr_command02] -point_x =10 -point_y =10 -size_height =30 -size_width =30 - -[GRAPHICS-WSERV-Window-PublicApi-0214-0001-SetShadowDisabled_command03] -state =FALSE - -[GRAPHICS-WSERV-Window-PublicApi-0214-0001-SetShadowHeight_command04] -height =1 - -[GRAPHICS-WSERV-Window-PublicApi-0214-0001-SetShadowHeight_command07] -height =3 - - -[GRAPHICS-WSERV-Window-PublicApi-0215-0001-SetBackgroundColor_command01] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-WSERV-Window-PublicApi-0215-0001-SetExtentErr_command02] -point_x =10 -point_y =10 -size_height =30 -size_width =30 - -[GRAPHICS-WSERV-Window-PublicApi-0215-0001-SetShadowDisabled_command03] -state =FALSE - - -[GRAPHICS-WSERV-Window-PublicApi-0215-0001-SetShadowHeight_command04] -height =1 - - -[GRAPHICS-WSERV-Window-PublicApi-0215-0001-SetBackgroundColor_command05] -color_red =0 -color_green =255 -color_blue =0 - -[GRAPHICS-WSERV-Window-PublicApi-0215-0001-SetShadowDisabled_command07] -state =TRUE - - -[GRAPHICS-WSERV-Window-PublicApi-0216-0001-Position_command01] -expected_y =0 -expected_x =0 - -[GRAPHICS-WSERV-Window-PublicApi-0216-0001-SetPosition_command03] -point_x =11 -point_y =12 - -[GRAPHICS-WSERV-Window-PublicApi-0216-0001-Position_command05] -expected_y =0 -expected_x =0 - -[GRAPHICS-WSERV-Window-PublicApi-0216-0001-SetPosition_command06] -point_x =20 -point_y =30 - -[GRAPHICS-WSERV-Window-PublicApi-0216-0001-Position_command07] -expected_y =30 -expected_x =20 - - -[GRAPHICS-WSERV-Window-PublicApi-0217-0001-AbsPosition_command01] -expected_y =0 -expected_x =0 - -[GRAPHICS-WSERV-Window-PublicApi-0217-0001-SetPosition_command03] -point_x =11 -point_y =12 - -[GRAPHICS-WSERV-Window-PublicApi-0217-0001-AbsPosition_command05] -expected_y =12 -expected_x =11 - -[GRAPHICS-WSERV-Window-PublicApi-0217-0001-SetPosition_command06] -point_x =20 -point_y =30 - -[GRAPHICS-WSERV-Window-PublicApi-0217-0001-AbsPosition_command07] -expected_y =42 -expected_x =31 - - -[GRAPHICS-WSERV-Window-PublicApi-0218-0001-SetBackgroundColor_command01] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-WSERV-Window-PublicApi-0218-0001-SetSize_command02] -size_height =30 -size_width =30 - -[GRAPHICS-WSERV-Window-PublicApi-0218-0001-SetCornerType_command03] -cornertype =EWindowCorner3 -cornerflags =70000 - -[GRAPHICS-WSERV-Window-PublicApi-0218-0001-checkRectColor_command05] -rect1_top =0 -rect1_left =5 -rect1_bottom =5 -rect1_right =25 -expected1_red =255 -expected1_green =0 -expected1_blue =0 -rect2_top =5 -rect2_left =0 -rect2_bottom =25 -rect2_right =30 -expected2_red =255 -expected2_green =0 -expected2_blue =0 -rect3_top =25 -rect3_left =5 -rect3_bottom =30 -rect3_right =25 -expected3_red =255 -expected3_green =0 -expected3_blue =0 -rect4_top =0 -rect4_left =0 -rect4_bottom =5 -rect4_right =5 -expected4_red =255 -expected4_green =0 -expected4_blue =0 -rect5_top =0 -rect5_left =25 -rect5_bottom =5 -rect5_right =30 -expected5_red =255 -expected5_green =0 -expected5_blue =0 -rect6_top =25 -rect6_left =0 -rect6_bottom =30 -rect6_right =5 -expected6_red =255 -expected6_green =0 -expected6_blue =0 - -[GRAPHICS-WSERV-Window-PublicApi-0218-0001-checkPixels_command06] -pixel1_x =29 -pixel1_y =27 -expected1_red =255 -expected1_green =255 -expected1_blue =0 -pixel2_x =29 -pixel2_y =28 -expected2_red =255 -expected2_green =255 -expected2_blue =0 -pixel3_x =27 -pixel3_y =29 -expected3_red =255 -expected3_green =255 -expected3_blue =0 -pixel4_x =28 -pixel4_y =29 -expected4_red =255 -expected4_green =255 -expected4_blue =0 -pixel5_x =29 -pixel5_y =29 -expected5_red =255 -expected5_green =255 -expected5_blue =0 -pixel6_x =29 -pixel6_y =26 -expected6_red =255 -expected6_green =0 -expected6_blue =0 -pixel7_x =28 -pixel7_y =27 -expected7_red =255 -expected7_green =0 -expected7_blue =0 -pixel8_x =28 -pixel8_y =28 -expected8_red =255 -expected8_green =0 -expected8_blue =0 -pixel9_x =27 -pixel9_y =28 -expected9_red =255 -expected9_green =0 -expected9_blue =0 -pixel10_x =26 -pixel10_y =29 -expected10_red =255 -expected10_green =0 -expected10_blue =0 - - -[GRAPHICS-WSERV-Window-PublicApi-0219-0001-SetShape_command01] -region1_top =10 -region1_left =10 -region1_bottom =40 -region1_right =20 -region2_top =20 -region2_left =20 -region2_bottom =30 -region2_right =30 -region3_top =10 -region3_left =30 -region3_bottom =40 -region3_right =40 - -[GRAPHICS-WSERV-Window-PublicApi-0219-0001-SetBackgroundColor_command02] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-WSERV-Window-PublicApi-0219-0001-checkRectColor_command04] -rect1_top =10 -rect1_left =10 -rect1_bottom =40 -rect1_right =20 -expected1_red =255 -expected1_green =0 -expected1_blue =0 -rect2_top =20 -rect2_left =20 -rect2_bottom =30 -rect2_right =30 -expected2_red =255 -expected2_green =0 -expected2_blue =0 -rect3_top =10 -rect3_left =30 -rect3_bottom =40 -rect3_right =40 -expected3_red =255 -expected3_green =0 -expected3_blue =0 -rect4_top =0 -rect4_left =0 -rect4_bottom =10 -rect4_right =50 -expected4_red =255 -expected4_green =255 -expected4_blue =0 -rect5_top =10 -rect5_left =20 -rect5_bottom =20 -rect5_right =30 -expected5_red =255 -expected5_green =255 -expected5_blue =0 -rect6_top =30 -rect6_left =20 -rect6_bottom =40 -rect6_right =30 -expected6_red =255 -expected6_green =255 -expected6_blue =0 -rect7_top =40 -rect7_left =0 -rect7_bottom =50 -rect7_right =50 -expected7_red =255 -expected7_green =255 -expected7_blue =0 -rect8_top =10 -rect8_left =0 -rect8_bottom =40 -rect8_right =10 -expected8_red =255 -expected8_green =255 -expected8_blue =0 -rect9_top =10 -rect9_left =40 -rect9_bottom =40 -rect9_right =50 -expected9_red =255 -expected9_green =255 -expected9_blue =0 - - -[GRAPHICS-WSERV-Window-PublicApi-0220-0001-SetRequiredDisplayMode_command01] -mode =EColor256 -expected ={default_wserv,nearest_to_color256} - - -[GRAPHICS-WSERV-Window-PublicApi-0221-0001-DisplayMode_command01] -expected ={default_wserv,display_mode} - - -[GRAPHICS-WSERV-Window-PublicApi-0223-0001-RequestPointerRepeatEvent_command01] -rect_top =10 -rect_left =10 -rect_bottom =100 -rect_right =100 -time =1000000 - - -[GRAPHICS-WSERV-Window-PublicApi-0224-0001-RequestPointerRepeatEvent_command01] -rect_top =10 -rect_left =10 -rect_bottom =100 -rect_right =100 -time =1000000 - - -[GRAPHICS-WSERV-Window-PublicApi-0225-0001-AllocPointerMoveBuffer_command01] -maxpoints =1000 -flags =0 - - -[GRAPHICS-WSERV-Window-PublicApi-0226-0001-AllocPointerMoveBuffer_command01] -maxpoints =1000 -flags =0 - - -[GRAPHICS-WSERV-Window-PublicApi-0227-0001-AllocPointerMoveBuffer_command01] -maxpoints =1000 -flags =0 - - -[GRAPHICS-WSERV-Window-PublicApi-0228-0001-AllocPointerMoveBuffer_command01] -maxpoints =1000 -flags =0 - - -[GRAPHICS-WSERV-Window-PublicApi-0231-0001-AddKeyRect_command01] -rect_top =10 -rect_left =10 -rect_bottom =100 -rect_right =100 -scancode =EStdKeyF1 -activatedbypointerswitchon =TRUE - - -[GRAPHICS-WSERV-Window-PublicApi-0234-0001-SetBackgroundColor_command01] -color_red =0 -color_green =0 -color_blue =255 - -[GRAPHICS-WSERV-Window-PublicApi-0234-0001-SetExtentErr_command02] -point_x =10 -point_y =10 -size_height =30 -size_width =30 - -[GRAPHICS-WSERV-Window-PublicApi-0234-0001-checkRectColor_command03] -rect1_top =10 -rect1_left =10 -rect1_bottom =40 -rect1_right =40 -expected1_red =0 -expected1_green =0 -expected1_blue =255 -rect2_top =0 -rect2_left =0 -rect2_bottom =10 -rect2_right =50 -expected2_red =255 -expected2_green =255 -expected2_blue =0 -rect3_top =40 -rect3_left =0 -rect3_bottom =50 -rect3_right =50 -expected3_red =255 -expected3_green =255 -expected3_blue =0 -rect4_top =10 -rect4_left =0 -rect4_bottom =40 -rect4_right =10 -expected4_red =255 -expected4_green =255 -expected4_blue =0 -rect5_top =10 -rect5_left =40 -rect5_bottom =40 -rect5_right =50 -expected5_red =255 -expected5_green =255 -expected5_blue =0 - - -[GRAPHICS-WSERV-Window-PublicApi-0235-0001-FadeBehind_command01] -fade =TRUE - -[GRAPHICS-WSERV-Window-PublicApi-0235-0001-FadeBehind_command02] -fade =FALSE - - -[GRAPHICS-WSERV-Window-PublicApi-0237-0001-new_command01] -ws =ws - -[GRAPHICS-WSERV-Window-PublicApi-0237-0001-Construct_command02] -clienthandle =100 - -[GRAPHICS-WSERV-Window-PublicApi-0237-0001-Parent_command04] -expected =1 - -[GRAPHICS-WSERV-Window-PublicApi-0237-0001-MoveToGroup_command05] -identifier_name =wingrp1 - -[GRAPHICS-WSERV-Window-PublicApi-0237-0001-Parent_command06] -expected =100 - - -[GRAPHICS-WSERV-Window-PublicApi-0238-0001-SetExtentErr_command01] -size_height =50 -size_width =40 -point_x =0 -point_y =0 - -[GRAPHICS-WSERV-Window-PublicApi-0238-0001-PointerFilter_command01] -filterMask =EPointerMoveEvents|EPointerFilterDrag|EPointerFilterEnterExit -filter =0 - -[GRAPHICS-WSERV-Window-PublicApi-0238-0001-SimulateRawEvent_command02] -type =EButton1Down -pos_x =10 -pos_y =15 - -[GRAPHICS-WSERV-Window-PublicApi-0238-0001-SimulateRawEvent_command03] -type =EButton1Up -pos_x =10 -pos_y =15 - -[GRAPHICS-WSERV-Window-PublicApi-0238-0001-GetEvent_command03] -store =we - -[GRAPHICS-WSERV-Window-PublicApi-0238-0001-Type_command04] -expected =EEventFocusGained - -[GRAPHICS-WSERV-Window-PublicApi-0238-0001-Handle_command05] -expected =1 - -[GRAPHICS-WSERV-Window-PublicApi-0238-0001-Type_command06] -expected =EEventPointerEnter - -[GRAPHICS-WSERV-Window-PublicApi-0238-0001-Handle_command07] -expected =2 - -[GRAPHICS-WSERV-Window-PublicApi-0238-0001-Type_command08] -expected =EEventPointer - - - -[GRAPHICS-WSERV-Window-PublicApi-0239-0001-SetExtentErr_command01] -size_height =50 -size_width =40 -point_x =0 -point_y =0 - -[GRAPHICS-WSERV-Window-PublicApi-0239-0001-GetEvent_command03] -store =we - -[GRAPHICS-WSERV-Window-PublicApi-0239-0001-Type_command04] -expected =EEventFocusGained - -[GRAPHICS-WSERV-Window-PublicApi-0239-0001-Handle_command05] -expected =1 - -[GRAPHICS-WSERV-Window-PublicApi-0239-0001-Handle_command06] -expected =2 - -[GRAPHICS-WSERV-Window-PublicApi-0239-0001-PointerFilter_command07] -filterMask =EPointerMoveEvents|EPointerFilterDrag|EPointerFilterEnterExit -filter =0 - -[GRAPHICS-WSERV-Window-PublicApi-0239-0001-AllocPointerMoveBuffer_command09] -maxpoints =5 -flags =0 - -[GRAPHICS-WSERV-Window-PublicApi-0239-0001-SimulateRawEvent_command10] -type =EButton1Down -pos_x =15 -pos_y =20 - -[GRAPHICS-WSERV-Window-PublicApi-0239-0001-SimulateRawEvent_command11] -type =EPointerMove -pos_x =20 -pos_y =20 - -[GRAPHICS-WSERV-Window-PublicApi-0239-0001-SimulateRawEvent_command12] -type =EPointerMove -pos_x =20 -pos_y =25 - -[GRAPHICS-WSERV-Window-PublicApi-0239-0001-SimulateRawEvent_command13] -type =EPointerMove -pos_x =25 -pos_y =30 - -[GRAPHICS-WSERV-Window-PublicApi-0239-0001-SimulateRawEvent_command14] -type =EButton1Up -pos_x =25 -pos_y =30 - -[GRAPHICS-WSERV-Window-PublicApi-0239-0001-Type_command15] -expected =EEventPointerEnter - -[GRAPHICS-WSERV-Window-PublicApi-0239-0001-Type_command16] -expected =EEventPointer - -[GRAPHICS-WSERV-Window-PublicApi-0239-0001-Type_command17] -expected =EEventPointerBufferReady - -[GRAPHICS-WSERV-Window-PublicApi-0239-0001-RetrievePointerMoveBuffer_command18] -maxpoints =5 -expected1_x =20 -expected1_y =20 -expected2_x =20 -expected2_y =25 -expected3_x =25 -expected3_y =30 - - -// **************************************************************************** -// RWindow Public APIs implemented for MWsClientClass -// **************************************************************************** - - -[GRAPHICS-WSERV-Window-PublicApi-0401-0001-WsHandle_expected0] -expected =0 - -[GRAPHICS-WSERV-Window-PublicApi-0401-0001-WsHandle_expectnot0] -expectnot =0 - - -// **************************************************************************** -// RWindow Public APIs inherited from RWindowTreeNode -// **************************************************************************** - - -[GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command004] -ws =ws - -[GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command005] -clienthandle =100 - -[GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command007] -ws =ws - -[GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command008] -parent =wingrp_100 -handle =110 - -[GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command010] -ws =ws - -[GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command011] -parent =bnkwin_110 -handle =111 - -[GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command013] -ws =ws - -[GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command014] -parent =bnkwin_110 -handle =112 - -[GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command016] -ws =ws - -[GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command017] -parent =wingrp_100 -handle =120 - -[GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command019] -ws =ws - -[GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command020] -parent =win_120 -handle =121 - -[GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command022] -ws =ws - -[GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command023] -parent =win_120 -handle =122 - -[GRAPHICS-WSERV-Window-PublicApi-3000-0001-new_command025] -ws =ws - -[GRAPHICS-WSERV-Window-PublicApi-3000-0001-Construct_command026] -parent =win_120 -handle =123 - - -[GRAPHICS-WSERV-Window-PublicApi-3003-0001-Parent_command002] -expected =120 - -[GRAPHICS-WSERV-Window-PublicApi-3003-0001-Parent_command004] -expected =120 - -[GRAPHICS-WSERV-Window-PublicApi-3003-0001-Parent_command006] -expected =120 - -[GRAPHICS-WSERV-Window-PublicApi-3003-0001-Parent_command008] -expected =100 - -[GRAPHICS-WSERV-Window-PublicApi-3003-0001-Parent_command010] -expected =110 - -[GRAPHICS-WSERV-Window-PublicApi-3003-0001-Parent_command012] -expected =110 - -[GRAPHICS-WSERV-Window-PublicApi-3003-0001-Parent_command014] -expected =100 - -[GRAPHICS-WSERV-Window-PublicApi-3003-0001-Parent_command016] -expected =0 - - -[GRAPHICS-WSERV-Window-PublicApi-3004-0001-PrevSibling_command002] -expected =0 - -[GRAPHICS-WSERV-Window-PublicApi-3004-0001-PrevSibling_command004] -expected =123 - -[GRAPHICS-WSERV-Window-PublicApi-3004-0001-PrevSibling_command006] -expected =122 - -[GRAPHICS-WSERV-Window-PublicApi-3004-0001-PrevSibling_command008] -expected =0 - -[GRAPHICS-WSERV-Window-PublicApi-3004-0001-PrevSibling_command010] -expected =0 - -[GRAPHICS-WSERV-Window-PublicApi-3004-0001-PrevSibling_command012] -expected =112 - -[GRAPHICS-WSERV-Window-PublicApi-3004-0001-PrevSibling_command014] -expected =120 - -[GRAPHICS-WSERV-Window-PublicApi-3004-0001-PrevSibling_command016] -expected =0 - - -[GRAPHICS-WSERV-Window-PublicApi-3005-0001-NextSibling_command002] -expected =122 - -[GRAPHICS-WSERV-Window-PublicApi-3005-0001-NextSibling_command004] -expected =121 - -[GRAPHICS-WSERV-Window-PublicApi-3005-0001-NextSibling_command006] -expected =0 - -[GRAPHICS-WSERV-Window-PublicApi-3005-0001-NextSibling_command008] -expected =110 - -[GRAPHICS-WSERV-Window-PublicApi-3005-0001-NextSibling_command010] -expected =111 - -[GRAPHICS-WSERV-Window-PublicApi-3005-0001-NextSibling_command012] -expected =0 - -[GRAPHICS-WSERV-Window-PublicApi-3005-0001-NextSibling_command014] -expected =0 - -[GRAPHICS-WSERV-Window-PublicApi-3005-0001-NextSibling_command016] -expected =0 - - -[GRAPHICS-WSERV-Window-PublicApi-3006-0001-Child_command002] -expected =0 - -[GRAPHICS-WSERV-Window-PublicApi-3006-0001-Child_command004] -expected =0 - -[GRAPHICS-WSERV-Window-PublicApi-3006-0001-Child_command006] -expected =0 - -[GRAPHICS-WSERV-Window-PublicApi-3006-0001-Child_command008] -expected =123 - -[GRAPHICS-WSERV-Window-PublicApi-3006-0001-Child_command010] -expected =0 - -[GRAPHICS-WSERV-Window-PublicApi-3006-0001-Child_command012] -expected =0 - -[GRAPHICS-WSERV-Window-PublicApi-3006-0001-Child_command014] -expected =112 - -[GRAPHICS-WSERV-Window-PublicApi-3006-0001-Child_command016] -expected =120 - - -[GRAPHICS-WSERV-Window-PublicApi-3007-0001-OrdinalPriority_command002] -expected =0 - -[GRAPHICS-WSERV-Window-PublicApi-3007-0001-OrdinalPriority_command004] -expected =0 - -[GRAPHICS-WSERV-Window-PublicApi-3007-0001-OrdinalPriority_command006] -expected =0 - -[GRAPHICS-WSERV-Window-PublicApi-3007-0001-OrdinalPriority_command008] -expected =0 - -[GRAPHICS-WSERV-Window-PublicApi-3007-0001-OrdinalPriority_command010] -expected =0 - -[GRAPHICS-WSERV-Window-PublicApi-3007-0001-OrdinalPriority_command012] -expected =0 - -[GRAPHICS-WSERV-Window-PublicApi-3007-0001-OrdinalPriority_command014] -expected =0 - -[GRAPHICS-WSERV-Window-PublicApi-3007-0001-OrdinalPriority_command016] -expected =0 - - -[GRAPHICS-WSERV-Window-PublicApi-3008-0001-OrdinalPosition_command002] -expected =0 - -[GRAPHICS-WSERV-Window-PublicApi-3008-0001-OrdinalPosition_command004] -expected =1 - -[GRAPHICS-WSERV-Window-PublicApi-3008-0001-OrdinalPosition_command006] -expected =2 - -[GRAPHICS-WSERV-Window-PublicApi-3008-0001-OrdinalPosition_command008] -expected =0 - -[GRAPHICS-WSERV-Window-PublicApi-3008-0001-OrdinalPosition_command010] -expected =0 - -[GRAPHICS-WSERV-Window-PublicApi-3008-0001-OrdinalPosition_command012] -expected =1 - -[GRAPHICS-WSERV-Window-PublicApi-3008-0001-OrdinalPosition_command014] -expected =1 - -[GRAPHICS-WSERV-Window-PublicApi-3008-0001-OrdinalPosition_command016] -expected =0 - - -[GRAPHICS-WSERV-Window-PublicApi-3009-0001-FullOrdinalPosition_command002] -expected =0 - -[GRAPHICS-WSERV-Window-PublicApi-3009-0001-FullOrdinalPosition_command004] -expected =1 - -[GRAPHICS-WSERV-Window-PublicApi-3009-0001-FullOrdinalPosition_command006] -expected =2 - -[GRAPHICS-WSERV-Window-PublicApi-3009-0001-FullOrdinalPosition_command008] -expected =0 - -[GRAPHICS-WSERV-Window-PublicApi-3009-0001-FullOrdinalPosition_command010] -expected =0 - -[GRAPHICS-WSERV-Window-PublicApi-3009-0001-FullOrdinalPosition_command012] -expected =1 - -[GRAPHICS-WSERV-Window-PublicApi-3009-0001-FullOrdinalPosition_command014] -expected =1 - - -[GRAPHICS-WSERV-Window-PublicApi-3010-0001-SetOrdinalPosition_command002] -inputWindowPosition =2 - -[GRAPHICS-WSERV-Window-PublicApi-3010-0001-SetOrdinalPosition_command004] -inputWindowPosition =0 - -[GRAPHICS-WSERV-Window-PublicApi-3010-0001-SetOrdinalPosition_command006] -inputWindowPosition =1 - -[GRAPHICS-WSERV-Window-PublicApi-3010-0001-OrdinalPosition_command008] -expected =2 - -[GRAPHICS-WSERV-Window-PublicApi-3010-0001-OrdinalPosition_command010] -expected =0 - -[GRAPHICS-WSERV-Window-PublicApi-3010-0001-OrdinalPosition_command012] -expected =1 - - -[GRAPHICS-WSERV-Window-PublicApi-3011-0001-SetOrdinalPosition_command002] -inputWindowPosition =2 -inputWindowPriority =1 - -[GRAPHICS-WSERV-Window-PublicApi-3011-0001-SetOrdinalPosition_command004] -inputWindowPosition =0 -inputWindowPriority =1 - -[GRAPHICS-WSERV-Window-PublicApi-3011-0001-SetOrdinalPosition_command006] -inputWindowPosition =1 -inputWindowPriority =1 - -[GRAPHICS-WSERV-Window-PublicApi-3011-0001-OrdinalPosition_command008] -expected =2 - -[GRAPHICS-WSERV-Window-PublicApi-3011-0001-OrdinalPosition_command010] -expected =0 - -[GRAPHICS-WSERV-Window-PublicApi-3011-0001-OrdinalPosition_command012] -expected =1 - -[GRAPHICS-WSERV-Window-PublicApi-3011-0001-OrdinalPriority_command014] -expected =1 - -[GRAPHICS-WSERV-Window-PublicApi-3011-0001-OrdinalPriority_command016] -expected =1 - -[GRAPHICS-WSERV-Window-PublicApi-3011-0001-OrdinalPriority_command018] -expected =1 - - -[GRAPHICS-WSERV-Window-PublicApi-3013-0001-SetPointerCursor_command002] -inputCursorNumber =EPointerCursorFixed - - -[GRAPHICS-WSERV-Window-PublicApi-3014-0001-SetCustomPointerCursor_command002] -objectName =ws - - -[GRAPHICS-WSERV-Window-PublicApi-3015-0001-EnableOnEvents_command002] -inputEventControl =EEventControlOnlyWhenVisible - - -[GRAPHICS-WSERV-Window-PublicApi-3016-0001-EnableOnEvents_command002] -inputEventControl =EEventControlOnlyWhenVisible - - -[GRAPHICS-WSERV-Window-PublicApi-3025-0001-EnableErrorMessages_command002] -inputEventControl =EEventControlAlways - - -[GRAPHICS-WSERV-Window-PublicApi-3026-0001-EnableErrorMessages_command002] -inputEventControl =EEventControlAlways - - -[GRAPHICS-WSERV-Window-PublicApi-3027-0001-EnableModifierChangedEvents_command002] -inputEventControl =EEventControlAlways -inputEventModifier =EAllModifiers - - -[GRAPHICS-WSERV-Window-PublicApi-3028-0001-EnableModifierChangedEvents_command002] -inputEventControl =EEventControlAlways -inputEventModifier =EAllModifiers - - -[GRAPHICS-WSERV-Window-PublicApi-3029-0001-SetNonFading_command002] -inputNonFading =TRUE - - -[GRAPHICS-WSERV-Window-PublicApi-3030-0001-SetFaded_command002] -inputFaded =TRUE -inputFadeControl =EFadeWindowOnly - - -[GRAPHICS-WSERV-Window-PublicApi-3031-0001-SetFaded_command002] -inputBlackMap =192 -inputWhiteMap =192 -inputFaded =TRUE -inputFadeControl =EFadeWindowOnly - - -[GRAPHICS-WSERV-Window-PublicApi-3032-0001-SetPointerCursor_command002] -inputCursorNumber =EPointerCursorFixed - - - - - - -// **************************************************************************** -// Negative testcases of RWindow -// **************************************************************************** - -[GRAPHICS-WSERV-Window-PublicApi-1006-0001-BeginRedraw_command001] -rect_top =20 -rect_left =21 -rect_bottom =50 -rect_right =51 - - -[GRAPHICS-WSERV-Window-PublicApi-1007-0001-BeginRedraw_command001] -rect_top =0 -rect_left =0 -rect_bottom =-10 -rect_right =-20 - -[GRAPHICS-WSERV-Window-PublicApi-1007-0001-GetDrawRect_command002] -expected_top =0 -expected_left =0 -expected_bottom =-10 -expected_right =-20 - - -[GRAPHICS-WSERV-Window-PublicApi-1009-0001-GetInvalidRegion_command001] -expected1_top =0 -expected1_left =0 -expected1_bottom =0 -expected1_right =0 - -[GRAPHICS-WSERV-Window-PublicApi-1009-0001-Invalidate_command002] -rect_top =0 -rect_left =0 -rect_bottom =-10 -rect_right =-20 - - -[GRAPHICS-WSERV-Window-PublicApi-1010-0001-SetSize_command001] -size_width =-20 -size_height =-30 - -[GRAPHICS-WSERV-Window-PublicApi-1010-0001-Size_command002] -expected_height =0 -expected_width =0 - - -[GRAPHICS-WSERV-Window-PublicApi-1011-0001-SetExtent_command001] -point_x =-5 -point_y =-6 -size_width =-20 -size_height =-30 - -[GRAPHICS-WSERV-Window-PublicApi-1011-0001-Size_command002] -expected_height =0 -expected_width =0 - - - - -// **************************************************************************** -// Negative testcases of RWindow inherited from RDrawableWindow -// **************************************************************************** - - - - -// **************************************************************************** -// Negative testcases of RWindow inherited from RWindowBase -// **************************************************************************** - -[GRAPHICS-WSERV-Window-PublicApi-1202-0001-SetSizeErr_command001] -size_width =-20 -size_height =-30 - -[GRAPHICS-WSERV-Window-PublicApi-1202-0001-Size_command002] -expected_height =0 -expected_width =0 - - -[GRAPHICS-WSERV-Window-PublicApi-1203-0001-SetExtentErr_command001] -point_x =-5 -point_y =-6 -size_width =-20 -size_height =-30 - -[GRAPHICS-WSERV-Window-PublicApi-1203-0001-Size_command002] -expected_height =0 -expected_width =0 - - -[GRAPHICS-WSERV-Window-PublicApi-1204-0001-InquireOffset_command001] -window =ws - - -[GRAPHICS-WSERV-Window-PublicApi-1205-0001-SetShadowHeight_command001] -height =-3 - - -[GRAPHICS-WSERV-Window-PublicApi-1206-0001-SetCornerType_command001] -cornertype =-1 -cornerflags =0 - - -[GRAPHICS-WSERV-Window-PublicApi-1207-0001-SetCornerType_command001] -cornertype =EWindowCornerSquare -cornerflags =1 - - -[GRAPHICS-WSERV-Window-PublicApi-1208-0001-SetRequiredDisplayMode_command001] -mode =ENone -expected =EGray2 - - -[GRAPHICS-WSERV-Window-PublicApi-1209-0001-SetRequiredDisplayMode_command001] -mode =-1 -expected =EGray2 - - -[GRAPHICS-WSERV-Window-PublicApi-1210b-0001-SetRequiredDisplayMode_command001] -mode =10000 -expected ={default_wserv,large_displaymode} - - -[GRAPHICS-WSERV-Window-PublicApi-1212-0001-AllocPointerMoveBuffer_command001] -maxpoints =5 -flags =0 - - -[GRAPHICS-WSERV-Window-PublicApi-1215-0001-AllocPointerMoveBuffer_command001] -maxpoints =5 -flags =0 - - - - -// **************************************************************************** -// Negative testcases of RWindow implemented for MWsClientClass -// **************************************************************************** - - - -// **************************************************************************** -// Negative testcases of RWindow inherited from RWindowTreeNode -// **************************************************************************** - -[GRAPHICS-WSERV-Window-PublicApi-3101-0001-SetOrdinalPosition_command002] -inputWindowPosition =-99999999 - -[GRAPHICS-WSERV-Window-PublicApi-3101-0001-SetOrdinalPosition_command004] -inputWindowPosition =-99999999 - -[GRAPHICS-WSERV-Window-PublicApi-3101-0001-SetOrdinalPosition_command006] -inputWindowPosition =-99999999 - - -[GRAPHICS-WSERV-Window-PublicApi-3102-0001-SetOrdinalPosition_command002] -inputWindowPosition =2 -inputWindowPriority =-9999999999999999 - -[GRAPHICS-WSERV-Window-PublicApi-3102-0001-SetOrdinalPosition_command004] -inputWindowPosition =0 -inputWindowPriority =-9999999999999999 - -[GRAPHICS-WSERV-Window-PublicApi-3102-0001-SetOrdinalPosition_command006] -inputWindowPosition =1 -inputWindowPriority =-9999999999999999 - - -[GRAPHICS-WSERV-Window-PublicApi-3103-0001-SetFaded_command002] -inputBlackMap =-192 -inputWhiteMap =-192 -inputFaded =TRUE -inputFadeControl =EFadeWindowOnly diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/testdata/GRAPHICS-WSERV-WindowGc-PublicApi.ini --- a/graphicsapitest/graphicssvs/wserv/testdata/GRAPHICS-WSERV-WindowGc-PublicApi.ini Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,2526 +0,0 @@ -[include] -file1 =\graphics\t_graphics.ini - - -[wsgraph] -name =wsgraph - -[scrdev] -name =scrdev - -[scrdev1] -name =scrdev1 - -[fbsbmp] -name =fbsbmp - -[fbsBitmap] -name =fbsBitmap - -[wsalphabmp] -name =wsalphabmp - -[ws] -name =ws - -[win] -name =win - -[wingrp] -name =wingrp - -[fbsalphabmp] -name =fbsalphabmp - -[wsbmp] -name =wsbmp - -[wsgraphmsg] -name =wsgraphmsg - -[wsmaskbmp] -name =wsmaskbmp - -[fbsmaskbmp] -name =fbsmaskbmp - -[wingc] -name =wingc - -[CFbsTypefaceStore1] -name =CFbsTypefaceStore1 - -[CFbsFont1] -name =CFbsFont1 - - -[GRAPHICS-WSERV-WindowGc-Setup-0001-0001-new_command004] -ws =ws - -[GRAPHICS-WSERV-WindowGc-Setup-0001-0001-new_command007] -device =scrdev - - -[GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command004] -ws =ws - -[GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command005] -//defaultscreennumber =1 - -[GRAPHICS-WSERV-WindowGc-Setup-0002-0001-CreateContext_command006] -windowgc =wingc - -[GRAPHICS-WSERV-WindowGc-PublicApi-0002-0001-new_command007] -device =scrdev - -[GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command008] -ws =ws - -[GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command009] -clienthandle =1 - -[GRAPHICS-WSERV-WindowGc-Setup-0002-0001-new_command011] -ws =ws - -[GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Construct_command012] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetRequiredDisplayMode_command013] -mode ={default_wserv,display_mode} - -[GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBackgroundColor_command014] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetAutoFlush_command017] -newFlushstate =TRUE -expectedFlushstate =FALSE - -[GRAPHICS-WSERV-WindowGc-Setup-0002-0001-Activate_command019] -device =win - -[GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushColor_command020] -color_red =255 -color_green =0 -color_blue =0 - -[GRAPHICS-WSERV-WindowGc-Setup-0002-0001-SetBrushStyle_command021] -brushstyle =ESolidBrush - - -[GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command004] -ws =ws - -[GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-CreateContext_command006] -windowgc =wingc - -[GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command008] -ws =ws - -[GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command009] -clienthandle =1 - -[GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-new_command011] -ws =ws - -[GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Construct_command012] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetRequiredDisplayMode_command013] -mode ={default_wserv,display_mode} - -[GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetBackgroundColor_command014] -color_green =255 -color_red =255 -color_blue =0 - -[GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-SetAutoFlush_command017] -newFlushstate =TRUE -expectedFlushstate =FALSE - -[GRAPHICS-WSERV-WindowGc-PublicApi-SetupGraphicContext-0001-Activate_command019] -device =win - -[GRAPHICS-WSERV-WindowGc-PublicApi-0001-0001-new_command004] -ws =ws - -[GRAPHICS-WSERV-WindowGc-PublicApi-0001-0001-new_command007] -device =scrdev - - -[GRAPHICS-WSERV-WindowGc-PublicApi-0002-0001-new_command004] -ws =ws - - -[GRAPHICS-WSERV-WindowGc-PublicApi-0003-0001-new_command004] -ws =ws - -[GRAPHICS-WSERV-WindowGc-PublicApi-0003-0001-new_command007] -device =scrdev - - -[GRAPHICS-WSERV-WindowGc-PublicApi-0004-0001-new_command001] -ws =ws - -[GRAPHICS-WSERV-WindowGc-PublicApi-0004-0001-Construct_command002] -clienthandle =1 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0004-0001-new_command004] -ws =ws - - -[GRAPHICS-WSERV-WindowGc-PublicApi-0004-0001-Construct_command005] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0004-0001-Activate_command007] -device =win - - -[GRAPHICS-WSERV-WindowGc-PublicApi-0005-0001-new_command001] -ws =ws - -[GRAPHICS-WSERV-WindowGc-PublicApi-0005-0001-Construct_command002] -clienthandle =1 - - -[GRAPHICS-WSERV-WindowGc-PublicApi-0005-0001-new_command004] -ws =ws - -[GRAPHICS-WSERV-WindowGc-PublicApi-0005-0001-Construct_command005] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0005-0001-Activate_command007] -device =win - - -[GRAPHICS-WSERV-WindowGc-PublicApi-0006-0001-Device_command001] -device =scrdev1 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0006-0001-GetScreenNumber_command002] -expected =0 - - -[GRAPHICS-WSERV-WindowGc-PublicApi-0009-0001-SetClippingRect_command003] -rect_top =10 -rect_left =20 -rect_bottom =50 -rect_right =40 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0009-0001-DrawRect_command004] -rect_top =10 -rect_left =10 -rect_bottom =50 -rect_right =50 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0009-0001-checkLineColor_command008] -start1_x =20 -start1_y =10 -finish1_x =40 -finish1_y =10 -expected1_red =0 -expected1_green =0 -expected1_blue =0 -start2_x =20 -start2_y =49 -finish2_x =40 -finish2_y =49 -expected2_red =0 -expected2_green =0 -expected2_blue =0 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0009-0001-checkRectColor_command009] -rect1_top =11 -rect1_left =20 -rect1_bottom =49 -rect1_right =40 -expected1_red =255 -expected1_green =0 -expected1_blue =0 -rect2_top =0 -rect2_left =0 -rect2_bottom =60 -rect2_right =20 -expected2_red =255 -expected2_green =255 -expected2_blue =255 -rect3_top =0 -rect3_left =40 -rect3_bottom =60 -rect3_right =60 -expected3_red =255 -expected3_green =255 -expected3_blue =255 -rect4_top =0 -rect4_left =20 -rect4_bottom =10 -rect4_right =40 -expected4_red =255 -expected4_green =255 -expected4_blue =255 -rect5_top =50 -rect5_left =20 -rect5_bottom =60 -rect5_right =40 -expected5_red =255 -expected5_green =255 -expected5_blue =255 - - -[GRAPHICS-WSERV-WindowGc-PublicApi-0010-0001-SetClippingRect_command003] -rect_top =10 -rect_left =20 -rect_bottom =50 -rect_right =40 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0010-0001-DrawRect_command005] -rect_top =10 -rect_left =10 -rect_bottom =50 -rect_right =50 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0010-0001-checkLineColor_command009] -start1_x =10 -start1_y =10 -finish1_x =50 -finish1_y =10 -expected1_red =0 -expected1_green =0 -expected1_blue =0 -start2_x =49 -start2_y =10 -finish2_x =49 -finish2_y =50 -expected2_red =0 -expected2_green =0 -expected2_blue =0 -start3_x =10 -start3_y =10 -finish3_x =10 -finish3_y =50 -expected3_red =0 -expected3_green =0 -expected3_blue =0 -start4_x =10 -start4_y =49 -finish4_x =50 -finish4_y =49 -expected4_red =0 -expected4_green =0 -expected4_blue =0 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0010-0001-checkRectColor_command010] -rect1_top =11 -rect1_left =11 -rect1_bottom =49 -rect1_right =49 -expected1_red =255 -expected1_green =0 -expected1_blue =0 -rect2_top =0 -rect2_left =0 -rect2_bottom =60 -rect2_right =10 -expected2_red =255 -expected2_green =255 -expected2_blue =255 -rect3_top =0 -rect3_left =10 -rect3_bottom =10 -rect3_right =50 -expected3_red =255 -expected3_green =255 -expected3_blue =255 -rect4_top =50 -rect4_left =10 -rect4_bottom =60 -rect4_right =50 -expected4_red =255 -expected4_green =255 -expected4_blue =255 -rect5_top =0 -rect5_left =50 -rect5_bottom =60 -rect5_right =60 -expected5_red =255 -expected5_green =255 -expected5_blue =255 - - -[GRAPHICS-WSERV-WindowGc-PublicApi-0026-0001-MoveTo_command003] -point_x =20 -point_y =10 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0026-0001-DrawLineTo_command004] -point_x =50 -point_y =30 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0026-0001-MoveTo_command005] -point_x =20 -point_y =30 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0026-0001-DrawLineTo_command006] -point_x =10 -point_y =50 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0026-0001-checkLineColor_command010] -start1_x =20 -start1_y =10 -finish1_x =50 -finish1_y =30 -expected1_red =0 -expected1_green =0 -expected1_blue =0 -start2_x =20 -start2_y =11 -finish2_x =50 -finish2_y =31 -expected2_red =255 -expected2_green =255 -expected2_blue =255 -start3_x =20 -start3_y =9 -finish3_x =50 -finish3_y =29 -expected3_red =255 -expected3_green =255 -expected3_blue =255 -start4_x =20 -start4_y =30 -finish4_x =10 -finish4_y =50 -expected4_red =0 -expected4_green =0 -expected4_blue =0 -start5_x =21 -start5_y =30 -finish5_x =11 -finish5_y =50 -expected5_red =255 -expected5_green =255 -expected5_blue =255 -start6_x =19 -start6_y =30 -finish6_x =9 -finish6_y =50 -expected6_red =255 -expected6_green =255 -expected6_blue =255 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0026-0001-checkPixels_command011] -pixel1_x =19 -pixel1_y =10 -expected1_red =255 -expected1_green =255 -expected1_blue =255 -pixel2_x =50 -pixel2_y =30 -expected2_red =255 -expected2_green =255 -expected2_blue =255 -pixel3_x =20 -pixel3_y =29 -expected3_red =255 -expected3_green =255 -expected3_blue =255 -pixel4_x =10 -pixel4_y =50 -expected4_red =255 -expected4_green =255 -expected4_blue =255 - - -[GRAPHICS-WSERV-WindowGc-PublicApi-0027-0001-MoveTo_command002] -point_x =0 -point_y =0 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0027-0001-MoveBy_command003] -point_x =20 -point_y =0 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0027-0001-MoveBy_command004] -point_x =0 -point_y =20 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0027-0001-DrawLineTo_command005] -point_x =50 -point_y =30 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0027-0001-MoveBy_command006] -point_x =-30 -point_y =0 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0027-0001-DrawLineTo_command007] -point_x =10 -point_y =50 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0027-0001-checkLineColor_command011] -start1_x =20 -start1_y =20 -finish1_x =50 -finish1_y =30 -expected1_red =0 -expected1_green =0 -expected1_blue =0 -start2_x =20 -start2_y =21 -finish2_x =50 -finish2_y =31 -expected2_red =255 -expected2_green =255 -expected2_blue =255 -start3_x =20 -start3_y =19 -finish3_x =50 -finish3_y =29 -expected3_red =255 -expected3_green =255 -expected3_blue =255 -start4_x =20 -start4_y =30 -finish4_x =10 -finish4_y =50 -expected4_red =0 -expected4_green =0 -expected4_blue =0 -start5_x =21 -start5_y =30 -finish5_x =11 -finish5_y =50 -expected5_red =255 -expected5_green =255 -expected5_blue =255 -start6_x =19 -start6_y =30 -finish6_x =9 -finish6_y =50 -expected6_red =255 -expected6_green =255 -expected6_blue =255 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0027-0001-checkPixels_command012] -pixel1_x =19 -pixel1_y =20 -expected1_red =255 -expected1_green =255 -expected1_blue =255 -pixel2_x =50 -pixel2_y =30 -expected2_red =255 -expected2_green =255 -expected2_blue =255 -pixel3_x =20 -pixel3_y =29 -expected3_red =255 -expected3_green =255 -expected3_blue =255 -pixel4_x =10 -pixel4_y =50 -expected4_red =255 -expected4_green =255 -expected4_blue =255 - - -[GRAPHICS-WSERV-WindowGc-PublicApi-0028-0001-Plot_command003] -point_x =25 -point_y =26 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0028-0001-checkPixels_command007] -pixel1_x =25 -pixel1_y =26 -expected1_red =0 -expected1_green =0 -expected1_blue =0 -pixel2_x =25 -pixel2_y =25 -expected2_red =255 -expected2_green =255 -expected2_blue =255 -pixel3_x =25 -pixel3_y =27 -expected3_red =255 -expected3_green =255 -expected3_blue =255 -pixel4_x =24 -pixel4_y =26 -expected4_red =255 -expected4_green =255 -expected4_blue =255 -pixel5_x =26 -pixel5_y =26 -expected5_red =255 -expected5_green =255 -expected5_blue =255 - - -[GRAPHICS-WSERV-WindowGc-PublicApi-0029-0001-DrawArc_command003] -rect_top =20 -rect_left =21 -rect_bottom =50 -rect_right =100 -start_x =90 -start_y =53 -end_x =80 -end_y =22 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0029-0001-checkPixels_command007] -pixel1_x =81 -pixel1_y =47 -expected1_red =0 -expected1_green =0 -expected1_blue =0 -pixel2_x =80 -pixel2_y =22 -expected2_red =0 -expected2_green =0 -expected2_blue =0 -pixel3_x =99 -pixel3_y =35 -expected3_red =0 -expected3_green =0 -expected3_blue =0 -pixel4_x =90 -pixel4_y =44 -expected4_red =0 -expected4_green =0 -expected4_blue =0 -pixel5_x =90 -pixel5_y =25 -expected5_red =0 -expected5_green =0 -expected5_blue =0 -pixel6_x =100 -pixel6_y =35 -expected6_red =255 -expected6_green =255 -expected6_blue =255 -pixel7_x =98 -pixel7_y =35 -expected7_red =255 -expected7_green =255 -expected7_blue =255 -pixel8_x =80 -pixel8_y =47 -expected8_red =255 -expected8_green =255 -expected8_blue =255 -pixel9_x =81 -pixel9_y =48 -expected9_red =255 -expected9_green =255 -expected9_blue =255 -pixel10_x =79 -pixel10_y =22 -expected10_red =255 -expected10_green =255 -expected10_blue =255 -pixel11_x =80 -pixel11_y =21 -expected11_red =255 -expected11_green =255 -expected11_blue =255 -pixel12_x =60 -pixel12_y =35 -expected12_red =255 -expected12_green =255 -expected12_blue =255 - - -[GRAPHICS-WSERV-WindowGc-PublicApi-0030-0001-DrawLine_command003] -point1_x =25 -point1_y =26 -point2_x =50 -point2_y =60 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0030-0001-checkLineColor_command007] -start1_x =25 -start1_y =26 -finish1_x =50 -finish1_y =60 -expected1_red =0 -expected1_green =0 -expected1_blue =0 -start2_x =26 -start2_y =26 -finish2_x =51 -finish2_y =60 -expected2_red =255 -expected2_green =255 -expected2_blue =255 -start3_x =24 -start3_y =26 -finish3_x =49 -finish3_y =60 -expected3_red =255 -expected3_green =255 -expected3_blue =255 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0030-0001-checkPixels_command008] -pixel1_x =25 -pixel1_y =25 -expected1_red =255 -expected1_green =255 -expected1_blue =255 -pixel2_x =50 -pixel2_y =60 -expected2_red =255 -expected2_green =255 -expected2_blue =255 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0031-0001-MoveTo_command002] -point_x =0 -point_y =0 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0031-0001-DrawLineTo_command003] -point_x =40 -point_y =30 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0031-0001-DrawLineTo_command004] -point_x =50 -point_y =60 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0031-0001-checkLineColor_command008] -start1_x =0 -start1_y =0 -finish1_x =40 -finish1_y =30 -expected1_red =0 -expected1_green =0 -expected1_blue =0 -start2_x =0 -start2_y =1 -finish2_x =40 -finish2_y =31 -expected2_red =255 -expected2_green =255 -expected2_blue =255 -start3_x =0 -start3_y =-1 -finish3_x =40 -finish3_y =29 -expected3_red =255 -expected3_green =255 -expected3_blue =255 -start4_x =40 -start4_y =30 -finish4_x =50 -finish4_y =60 -expected4_red =0 -expected4_green =0 -expected4_blue =0 -start5_x =41 -start5_y =30 -finish5_x =51 -finish5_y =60 -expected5_red =255 -expected5_green =255 -expected5_blue =255 -start6_x =39 -start6_y =30 -finish6_x =49 -finish6_y =60 -expected6_red =255 -expected6_green =255 -expected6_blue =255 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0031-0001-checkPixels_command009] -pixel1_x =40 -pixel1_y =30 -expected1_red =0 -expected1_green =0 -expected1_blue =0 -pixel2_x =40 -pixel2_y =29 -expected2_red =255 -expected2_green =255 -expected2_blue =255 -pixel3_x =50 -pixel3_y =60 -expected3_red =255 -expected3_green =255 -expected3_blue =255 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0032-0001-MoveTo_command002] -point_x =0 -point_y =0 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0032-0001-DrawLineBy_command003] -point_x =30 -point_y =40 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0032-0001-DrawLineBy_command004] -point_x =30 -point_y =10 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0032-0001-checkLineColor_command008] -start1_x =0 -start1_y =0 -finish1_x =30 -finish1_y =40 -expected1_red =0 -expected1_green =0 -expected1_blue =0 -start2_x =1 -start2_y =0 -finish2_x =41 -finish2_y =40 -expected2_red =255 -expected2_green =255 -expected2_blue =255 -start3_x =-1 -start3_y =0 -finish3_x =29 -finish3_y =40 -expected3_red =255 -expected3_green =255 -expected3_blue =255 -start4_x =30 -start4_y =40 -finish4_x =60 -finish4_y =50 -expected4_red =0 -expected4_green =0 -expected4_blue =0 -start5_x =30 -start5_y =41 -finish5_x =60 -finish5_y =51 -expected5_red =255 -expected5_green =255 -expected5_blue =255 -start6_x =30 -start6_y =39 -finish6_x =60 -finish6_y =49 -expected6_red =255 -expected6_green =255 -expected6_blue =255 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0032-0001-checkPixels_command009] -pixel1_x =30 -pixel1_y =40 -expected1_red =0 -expected1_green =0 -expected1_blue =0 -pixel2_x =29 -pixel2_y =40 -expected2_red =255 -expected2_green =255 -expected2_blue =255 -pixel3_x =60 -pixel3_y =50 -expected3_red =255 -expected3_green =255 -expected3_blue =255 - - -[GRAPHICS-WSERV-WindowGc-PublicApi-0033-0001-DrawPolyLine_command003] -pointlist1_x =30 -pointlist1_y =40 -pointlist2_x =50 -pointlist2_y =60 -pointlist3_x =60 -pointlist3_y =50 -pointlist4_x =70 -pointlist4_y =70 -pointlist5_x =90 -pointlist5_y =40 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0033-0001-checkLineColor_command007] -start1_x =30 -start1_y =40 -finish1_x =50 -finish1_y =60 -expected1_red =0 -expected1_green =0 -expected1_blue =0 -start2_x =50 -start2_y =60 -finish2_x =60 -finish2_y =50 -expected2_red =0 -expected2_green =0 -expected2_blue =0 -start3_x =60 -start3_y =50 -finish3_x =70 -finish3_y =70 -expected3_red =0 -expected3_green =0 -expected3_blue =0 -start4_x =70 -start4_y =70 -finish4_x =90 -finish4_y =40 -expected4_red =0 -expected4_green =0 -expected4_blue =0 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0033-0001-checkPixels_command008] -pixel1_x =90 -pixel1_y =40 -expected1_red =0 -expected1_green =0 -expected1_blue =0 -pixel2_x =60 -pixel2_y =40 -expected2_red =255 -expected2_green =255 -expected2_blue =255 - - -[GRAPHICS-WSERV-WindowGc-PublicApi-0034-0001-DrawPolyLine_command003] -numpoints =5 -pointlist1_x =30 -pointlist1_y =40 -pointlist2_x =50 -pointlist2_y =60 -pointlist3_x =60 -pointlist3_y =50 -pointlist4_x =70 -pointlist4_y =70 -pointlist5_x =90 -pointlist5_y =30 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0034-0001-checkLineColor_command007] -start1_x =30 -start1_y =40 -finish1_x =50 -finish1_y =60 -expected1_red =0 -expected1_green =0 -expected1_blue =0 -start2_x =50 -start2_y =60 -finish2_x =60 -finish2_y =50 -expected2_red =0 -expected2_green =0 -expected2_blue =0 -start3_x =60 -start3_y =50 -finish3_x =70 -finish3_y =70 -expected3_red =0 -expected3_green =0 -expected3_blue =0 -start4_x =70 -start4_y =70 -finish4_x =90 -finish4_y =30 -expected4_red =0 -expected4_green =0 -expected4_blue =0 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0034-0001-checkPixels_command008] -pixel1_x =90 -pixel1_y =30 -expected1_red =0 -expected1_green =0 -expected1_blue =0 -pixel2_x =60 -pixel2_y =35 -expected2_red =255 -expected2_green =255 -expected2_blue =255 - - -[GRAPHICS-WSERV-WindowGc-PublicApi-0035-0001-DrawPie_command003] -rect_top =20 -rect_left =21 -rect_bottom =50 -rect_right =100 -start_x =90 -start_y =53 -end_x =80 -end_y =22 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0035-0001-checkPixels_command007] -pixel1_x =60 -pixel1_y =35 -expected1_red =0 -expected1_green =0 -expected1_blue =0 -pixel2_x =81 -pixel2_y =47 -expected2_red =0 -expected2_green =0 -expected2_blue =0 -pixel3_x =80 -pixel3_y =22 -expected3_red =0 -expected3_green =0 -expected3_blue =0 -pixel4_x =67 -pixel4_y =39 -expected4_red =0 -expected4_green =0 -expected4_blue =0 -pixel5_x =74 -pixel5_y =43 -expected5_red =0 -expected5_green =0 -expected5_blue =0 -pixel6_x =67 -pixel6_y =30 -expected6_red =0 -expected6_green =0 -expected6_blue =0 -pixel7_x =74 -pixel7_y =26 -expected7_red =0 -expected7_green =0 -expected7_blue =0 -pixel8_x =99 -pixel8_y =35 -expected8_red =0 -expected8_green =0 -expected8_blue =0 -pixel9_x =90 -pixel9_y =44 -expected9_red =0 -expected9_green =0 -expected9_blue =0 -pixel10_x =90 -pixel10_y =25 -expected10_red =0 -expected10_green =0 -expected10_blue =0 -pixel11_x =90 -pixel11_y =40 -expected11_red =255 -expected11_green =0 -expected11_blue =0 -pixel12_x =90 -pixel12_y =30 -expected12_red =255 -expected12_green =0 -expected12_blue =0 -pixel13_x =100 -pixel13_y =35 -expected13_red =255 -expected13_green =255 -expected13_blue =255 -pixel14_x =70 -pixel14_y =25 -expected14_red =255 -expected14_green =255 -expected14_blue =255 -pixel15_x =70 -pixel15_y =45 -expected15_red =255 -expected15_green =255 -expected15_blue =255 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0036-0001-DrawEllipse_command003] -rect_top =20 -rect_left =21 -rect_bottom =50 -rect_right =100 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0036-0001-checkPixels_command007] -pixel1_x =21 -pixel1_y =35 -expected1_red =0 -expected1_green =0 -expected1_blue =0 -pixel2_x =99 -pixel2_y =35 -expected2_red =0 -expected2_green =0 -expected2_blue =0 -pixel3_x =60 -pixel3_y =20 -expected3_red =0 -expected3_green =0 -expected3_blue =0 -pixel4_x =60 -pixel4_y =49 -expected4_red =0 -expected4_green =0 -expected4_blue =0 -pixel5_x =40 -pixel5_y =22 -expected5_red =0 -expected5_green =0 -expected5_blue =0 -pixel6_x =40 -pixel6_y =47 -expected6_red =0 -expected6_green =0 -expected6_blue =0 -pixel7_x =80 -pixel7_y =22 -expected7_red =0 -expected7_green =0 -expected7_blue =0 -pixel8_x =80 -pixel8_y =47 -expected8_red =0 -expected8_green =0 -expected8_blue =0 -pixel9_x =100 -pixel9_y =50 -expected9_red =255 -expected9_green =255 -expected9_blue =255 -pixel10_x =100 -pixel10_y =35 -expected10_red =255 -expected10_green =255 -expected10_blue =255 -pixel11_x =60 -pixel11_y =50 -expected11_red =255 -expected11_green =255 -expected11_blue =255 -pixel12_x =60 -pixel12_y =35 -expected12_red =255 -expected12_green =0 -expected12_blue =0 -pixel13_x =60 -pixel13_y =10 -expected13_red =255 -expected13_green =255 -expected13_blue =255 - - -[GRAPHICS-WSERV-WindowGc-PublicApi-0037-0001-DrawRect_command003] -rect_top =20 -rect_left =21 -rect_bottom =50 -rect_right =80 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0037-0001-checkLineColor_command007] -start1_x =21 -start1_y =20 -finish1_x =80 -finish1_y =20 -expected1_red =0 -expected1_green =0 -expected1_blue =0 -start2_x =21 -start2_y =20 -finish2_x =21 -finish2_y =50 -expected2_red =0 -expected2_green =0 -expected2_blue =0 -start3_x =79 -start3_y =20 -finish3_x =79 -finish3_y =50 -expected3_red =0 -expected3_green =0 -expected3_blue =0 -start4_x =21 -start4_y =49 -finish4_x =80 -finish4_y =49 -expected4_red =0 -expected4_green =0 -expected4_blue =0 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0037-0001-checkRectColor_command008] -rect1_top =21 -rect1_left =22 -rect1_bottom =49 -rect1_right =79 -expected1_red =255 -expected1_green =0 -expected1_blue =0 -rect2_top =0 -rect2_left =0 -rect2_bottom =60 -rect2_right =21 -expected2_red =255 -expected2_green =255 -expected2_blue =255 -rect3_top =0 -rect3_left =80 -rect3_bottom =60 -rect3_right =100 -expected3_red =255 -expected3_green =255 -expected3_blue =255 -rect4_top =0 -rect4_left =21 -rect4_bottom =20 -rect4_right =80 -expected4_red =255 -expected4_green =255 -expected4_blue =255 -rect5_top =50 -rect5_left =21 -rect5_bottom =60 -rect5_right =80 -expected5_red =255 -expected5_green =255 -expected5_blue =255 - - -[GRAPHICS-WSERV-WindowGc-PublicApi-0038-0001-DrawRoundRect_command003] -rect_top =20 -rect_left =21 -rect_bottom =50 -rect_right =80 -size_width =10 -size_height =8 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0038-0001-checkLineColor_command007] -start1_x =31 -start1_y =20 -finish1_x =70 -finish1_y =20 -expected1_red =0 -expected1_green =0 -expected1_blue =0 -start2_x =21 -start2_y =28 -finish2_x =21 -finish2_y =42 -expected2_red =0 -expected2_green =0 -expected2_blue =0 -start3_x =79 -start3_y =28 -finish3_x =79 -finish3_y =42 -expected3_red =0 -expected3_green =0 -expected3_blue =0 -start4_x =31 -start4_y =49 -finish4_x =70 -finish4_y =49 -expected4_red =0 -expected4_green =0 -expected4_blue =0 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0038-0001-checkRectColor_command008] -rect1_top =21 -rect1_left =31 -rect1_bottom =49 -rect1_right =70 -expected1_red =255 -expected1_green =0 -expected1_blue =0 -rect2_top =28 -rect2_left =22 -rect2_bottom =42 -rect2_right =31 -expected2_red =255 -expected2_green =0 -expected2_blue =0 -rect3_top =28 -rect3_left =70 -rect3_bottom =42 -rect3_right =79 -expected3_red =255 -expected3_green =0 -expected3_blue =0 -rect4_top =0 -rect4_left =0 -rect4_bottom =60 -rect4_right =21 -expected4_red =255 -expected4_green =255 -expected4_blue =255 -rect5_top =0 -rect5_left =80 -rect5_bottom =60 -rect5_right =100 -expected5_red =255 -expected5_green =255 -expected5_blue =255 -rect6_top =0 -rect6_left =21 -rect6_bottom =20 -rect6_right =80 -expected6_red =255 -expected6_green =255 -expected6_blue =255 -rect7_top =50 -rect7_left =21 -rect7_bottom =60 -rect7_right =80 -expected7_red =255 -expected7_green =255 -expected7_blue =255 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0038-0001-checkPixels_command009] -pixel1_x =23 -pixel1_y =23 -expected1_red =0 -expected1_green =0 -expected1_blue =0 -pixel2_x =26 -pixel2_y =21 -expected2_red =0 -expected2_green =0 -expected2_blue =0 -pixel3_x =23 -pixel3_y =46 -expected3_red =0 -expected3_green =0 -expected3_blue =0 -pixel4_x =26 -pixel4_y =48 -expected4_red =0 -expected4_green =0 -expected4_blue =0 -pixel5_x =77 -pixel5_y =23 -expected5_red =0 -expected5_green =0 -expected5_blue =0 -pixel6_x =74 -pixel6_y =21 -expected6_red =0 -expected6_green =0 -expected6_blue =0 -pixel7_x =77 -pixel7_y =46 -expected7_red =0 -expected7_green =0 -expected7_blue =0 -pixel8_x =74 -pixel8_y =48 -expected8_red =0 -expected8_green =0 -expected8_blue =0 -pixel9_x =24 -pixel9_y =23 -expected9_red =255 -expected9_green =0 -expected9_blue =0 -pixel10_x =24 -pixel10_y =46 -expected10_red =255 -expected10_green =0 -expected10_blue =0 -pixel11_x =76 -pixel11_y =23 -expected11_red =255 -expected11_green =0 -expected11_blue =0 -pixel12_x =76 -pixel12_y =46 -expected12_red =255 -expected12_green =0 -expected12_blue =0 - - -[GRAPHICS-WSERV-WindowGc-PublicApi-0039-0001-DrawPolygon_command003] -pointlist1_x =30 -pointlist1_y =40 -pointlist2_x =50 -pointlist2_y =60 -pointlist3_x =60 -pointlist3_y =50 -pointlist4_x =70 -pointlist4_y =70 -pointlist5_x =90 -pointlist5_y =40 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0039-0001-checkLineColor_command007] -start1_x =30 -start1_y =40 -finish1_x =50 -finish1_y =60 -expected1_red =0 -expected1_green =0 -expected1_blue =0 -start2_x =50 -start2_y =60 -finish2_x =60 -finish2_y =50 -expected2_red =0 -expected2_green =0 -expected2_blue =0 -start3_x =60 -start3_y =50 -finish3_x =70 -finish3_y =70 -expected3_red =0 -expected3_green =0 -expected3_blue =0 -start4_x =70 -start4_y =70 -finish4_x =90 -finish4_y =40 -expected4_red =0 -expected4_green =0 -expected4_blue =0 -start5_x =90 -start5_y =40 -finish5_x =30 -finish5_y =40 -expected5_red =0 -expected5_green =0 -expected5_blue =0 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0039-0001-checkPixels_command008] -pixel1_x =60 -pixel1_y =45 -expected1_red =255 -expected1_green =0 -expected1_blue =0 -pixel2_x =60 -pixel2_y =30 -expected2_red =255 -expected2_green =255 -expected2_blue =255 - - -[GRAPHICS-WSERV-WindowGc-PublicApi-0040-0001-DrawPolygon_command003] -numpoints =5 -pointlist1_x =30 -pointlist1_y =40 -pointlist2_x =50 -pointlist2_y =60 -pointlist3_x =60 -pointlist3_y =50 -pointlist4_x =70 -pointlist4_y =70 -pointlist5_x =90 -pointlist5_y =40 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0040-0001-checkLineColor_command007] -start1_x =30 -start1_y =40 -finish1_x =50 -finish1_y =60 -expected1_red =0 -expected1_green =0 -expected1_blue =0 -start2_x =50 -start2_y =60 -finish2_x =60 -finish2_y =50 -expected2_red =0 -expected2_green =0 -expected2_blue =0 -start3_x =60 -start3_y =50 -finish3_x =70 -finish3_y =70 -expected3_red =0 -expected3_green =0 -expected3_blue =0 -start4_x =70 -start4_y =70 -finish4_x =90 -finish4_y =40 -expected4_red =0 -expected4_green =0 -expected4_blue =0 -start5_x =90 -start5_y =40 -finish5_x =30 -finish5_y =40 -expected5_red =0 -expected5_green =0 -expected5_blue =0 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0040-0001-checkPixels_command008] -pixel1_x =60 -pixel1_y =45 -expected1_red =255 -expected1_green =0 -expected1_blue =0 -pixel2_x =60 -pixel2_y =30 -expected2_red =255 -expected2_green =255 -expected2_blue =255 - - -[GRAPHICS-WSERV-WindowGc-PublicApi-0041-0001-Load_command002] -bitmap_id =0 -file_name =\graphics\wserv\test_board.mbm -share_if_loaded =TRUE -use_rfile =FALSE - -[GRAPHICS-WSERV-WindowGc-PublicApi-0041-0001-SetSizeInTwips_command003] -width =183 -height =183 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0041-0001-DrawBitmap_command010] -topleft_x =10 -topleft_y =10 -bitmap =fbsbmp - -[GRAPHICS-WSERV-WindowGc-PublicApi-0042-0001-Load_command002] -bitmap_id =0 -file_name =\graphics\wserv\test_board.mbm -share_if_loaded =TRUE -use_rfile =FALSE - -[GRAPHICS-WSERV-WindowGc-PublicApi-0042-0001-DrawBitmap_command009] -destrect_top =10 -destrect_left =10 -destrect_bottom =110 -destrect_right =110 -bitmap =fbsbmp - -[GRAPHICS-WSERV-WindowGc-PublicApi-0043-0001-Load_command002] -bitmap_id =0 -file_name =\graphics\wserv\test_board.mbm -share_if_loaded =TRUE -use_rfile =FALSE - -[GRAPHICS-WSERV-WindowGc-PublicApi-0043-0001-DrawBitmap_command009] -destrect_top =10 -destrect_left =10 -destrect_bottom =170 -destrect_right =170 -bitmap =fbsbmp -sourcerect_top =20 -sourcerect_left =21 -sourcerect_bottom =100 -sourcerect_right =101 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0044-0001-Load_command002] -bitmap_id =0 -file_name =\graphics\wserv\test_board.mbm -share_if_loaded =TRUE -use_rfile =FALSE - -[GRAPHICS-WSERV-WindowGc-PublicApi-0044-0001-Load_command010] -bitmap_id =0 -file_name =\graphics\wserv\test_mask.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WindowGc-PublicApi-0044-0001-DrawBitmapMasked_command015] -destrect_top =10 -destrect_left =10 -destrect_bottom =170 -destrect_right =170 -bitmap =fbsbmp -sourcerect_top =20 -sourcerect_left =20 -sourcerect_bottom =100 -sourcerect_right =100 -maskbitmap =fbsmaskbmp -invertmask =TRUE - -[GRAPHICS-WSERV-WindowGc-PublicApi-0045-0001-new_command001] -ws =ws - -[GRAPHICS-WSERV-WindowGc-PublicApi-0045-0001-Load_command002] -id =0 -filename =\graphics\wserv\test_board.mbm -shareifloaded =TRUE - -[GRAPHICS-WSERV-WindowGc-PublicApi-0045-0001-new_command004] -ws =ws - -[GRAPHICS-WSERV-WindowGc-PublicApi-0045-0001-Load_command005] -id =0 -filename =\graphics\wserv\test_mask.mbm -shareifloaded =TRUE - -[GRAPHICS-WSERV-WindowGc-PublicApi-0045-0001-DrawBitmapMasked_command009] -destrect_top =10 -destrect_left =10 -destrect_bottom =170 -destrect_right =170 -wsbitmap =wsbmp -sourcerect_top =20 -sourcerect_left =20 -sourcerect_bottom =90 -sourcerect_right =90 -maskbitmap =wsmaskbmp -invertmask =TRUE - -[GRAPHICS-WSERV-WindowGc-PublicApi-0048-0001-checkRectColor_command005] -rect1_top =0 -rect1_left =0 -rect1_bottom =20 -rect1_right =20 -expected1_red =255 -expected1_green =255 -expected1_blue =255 -rect2_top =0 -rect2_left =180 -rect2_bottom =20 -rect2_right =200 -expected2_red =255 -expected2_green =255 -expected2_blue =255 -rect3_top =180 -rect3_left =0 -rect3_bottom =200 -rect3_right =20 -expected3_red =255 -expected3_green =255 -expected3_blue =255 -rect4_top =180 -rect4_left =180 -rect4_bottom =200 -rect4_right =200 -expected4_red =255 -expected4_green =255 -expected4_blue =255 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0048-0001-checkRectColor_command013] -rect1_top =0 -rect1_left =0 -rect1_bottom =20 -rect1_right =20 -expected1_red =255 -expected1_green =0 -expected1_blue =0 -rect2_top =0 -rect2_left =180 -rect2_bottom =20 -rect2_right =200 -expected2_red =255 -expected2_green =0 -expected2_blue =0 -rect3_top =180 -rect3_left =0 -rect3_bottom =200 -rect3_right =20 -expected3_red =255 -expected3_green =0 -expected3_blue =0 -rect4_top =180 -rect4_left =180 -rect4_bottom =200 -rect4_right =200 -expected4_red =255 -expected4_green =0 -expected4_blue =0 - - -[GRAPHICS-WSERV-WindowGc-PublicApi-0049-0001-Clear_command003] -rect_top =10 -rect_left =11 -rect_bottom =40 -rect_right =41 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0049-0001-checkRectColor_command007] -rect1_top =10 -rect1_left =11 -rect1_bottom =40 -rect1_right =41 -expected1_red =255 -expected1_green =0 -expected1_blue =0 -rect2_top =0 -rect2_left =0 -rect2_bottom =50 -rect2_right =11 -expected2_red =255 -expected2_green =255 -expected2_blue =255 -rect3_top =0 -rect3_left =41 -rect3_bottom =50 -rect3_right =50 -expected3_red =255 -expected3_green =255 -expected3_blue =255 -rect4_top =0 -rect4_left =11 -rect4_bottom =10 -rect4_right =41 -expected4_red =255 -expected4_green =255 -expected4_blue =255 -rect5_top =40 -rect5_left =11 -rect5_bottom =50 -rect5_right =41 -expected5_red =255 -expected5_green =255 -expected5_blue =255 - - -[GRAPHICS-WSERV-WindowGc-PublicApi-0050-0001-DrawRect_command003] -rect_top =10 -rect_left =10 -rect_bottom =40 -rect_right =40 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0050-0001-CopyRect_command007] -offset_x =20 -offset_y =10 -rect_top =10 -rect_left =0 -rect_bottom =40 -rect_right =30 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0050-0001-checkLineColor_command009] -start1_x =10 -start1_y =10 -finish1_x =40 -finish1_y =10 -expected1_red =0 -expected1_green =0 -expected1_blue =0 -start2_x =10 -start2_y =10 -finish2_x =10 -finish2_y =40 -expected2_red =0 -expected2_green =0 -expected2_blue =0 -start3_x =39 -start3_y =10 -finish3_x =39 -finish3_y =20 -expected3_red =0 -expected3_green =0 -expected3_blue =0 -start4_x =10 -start4_y =39 -finish4_x =20 -finish4_y =39 -expected4_red =0 -expected4_green =0 -expected4_blue =0 -start5_x =30 -start5_y =20 -finish5_x =50 -finish5_y =20 -expected5_red =0 -expected5_green =0 -expected5_blue =0 -start6_x =30 -start6_y =20 -finish6_x =30 -finish6_y =50 -expected6_red =0 -expected6_green =0 -expected6_blue =0 -start7_x =30 -start7_y =49 -finish7_x =50 -finish7_y =49 -expected7_red =0 -expected7_green =0 -expected7_blue =0 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0050-0001-checkRectColor_command010] -rect1_top =11 -rect1_left =11 -rect1_bottom =39 -rect1_right =20 -expected1_red =255 -expected1_green =0 -expected1_blue =0 -rect2_top =11 -rect2_left =20 -rect2_bottom =19 -rect2_right =39 -expected2_red =255 -expected2_green =0 -expected2_blue =0 -rect3_top =21 -rect3_left =31 -rect3_bottom =49 -rect3_right =49 -expected3_red =255 -expected3_green =0 -expected3_blue =0 -rect4_top =20 -rect4_left =20 -rect4_bottom =50 -rect4_right =30 -expected4_red =255 -expected4_green =255 -expected4_blue =255 -rect5_top =0 -rect5_left =0 -rect5_bottom =60 -rect5_right =10 -expected5_red =255 -expected5_green =255 -expected5_blue =255 -rect6_top =0 -rect6_left =50 -rect6_bottom =60 -rect6_right =60 -expected6_red =255 -expected6_green =255 -expected6_blue =255 -rect7_top =0 -rect7_left =10 -rect7_bottom =10 -rect7_right =50 -expected7_red =255 -expected7_green =255 -expected7_blue =255 -rect8_top =50 -rect8_left =10 -rect8_bottom =60 -rect8_right =50 -expected8_red =255 -expected8_green =255 -expected8_blue =255 -rect9_top =10 -rect9_left =40 -rect9_bottom =20 -rect9_right =50 -expected9_red =255 -expected9_green =255 -expected9_blue =255 -rect10_top =40 -rect10_left =10 -rect10_bottom =50 -rect10_right =20 -expected10_red =255 -expected10_green =255 -expected10_blue =255 - - -[GRAPHICS-WSERV-WindowGc-PublicApi-0051-0001-Load_command002] -bitmap_id =0 -file_name =\graphics\wserv\test_board.mbm -share_if_loaded =TRUE -use_rfile =FALSE - -[GRAPHICS-WSERV-WindowGc-PublicApi-0051-0001-BitBlt_command009] -point_x =10 -point_y =11 -bitmap =fbsbmp - -[GRAPHICS-WSERV-WindowGc-PublicApi-0052-0001-Load_command002] -bitmap_id =0 -file_name =\graphics\wserv\test_board.mbm -share_if_loaded =TRUE -use_rfile =FALSE - -[GRAPHICS-WSERV-WindowGc-PublicApi-0052-0001-BitBlt_command009] -destination_x =10 -destination_y =11 -bitmap =fbsbmp -source_top =20 -source_left =21 -source_bottom =100 -source_right =101 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0053-0001-Load_command002] -bitmap_id =0 -file_name =\graphics\wserv\test_board.mbm -share_if_loaded =TRUE -use_rfile =FALSE - -[GRAPHICS-WSERV-WindowGc-PublicApi-0053-0001-Load_command008] -bitmap_id =0 -file_name =\graphics\wserv\test_mask.mbm -share_if_loaded =TRUE -use_rfile =FALSE - -[GRAPHICS-WSERV-WindowGc-PublicApi-0053-0001-BitBltMasked_command012] -point_x =10 -point_y =11 -bitmap =fbsbmp -sourcerect_top =0 -sourcerect_left =0 -sourcerect_bottom =180 -sourcerect_right =180 -maskbitmap =fbsmaskbmp -invertmask =FALSE - -[GRAPHICS-WSERV-WindowGc-PublicApi-0054-0001-new_command001] -ws =ws - -[GRAPHICS-WSERV-WindowGc-PublicApi-0054-0001-Load_command002] -id =0 -filename =\graphics\wserv\test_board.mbm -shareifloaded =TRUE - -[GRAPHICS-WSERV-WindowGc-PublicApi-0054-0001-BitBlt_command006] -point_x =10 -point_y =11 -wsbitmap =wsbmp - - -[GRAPHICS-WSERV-WindowGc-PublicApi-0055-0001-new_command001] -ws =ws - -[GRAPHICS-WSERV-WindowGc-PublicApi-0055-0001-Load_command002] -id =0 -filename =\graphics\wserv\test_board.mbm -shareifloaded =TRUE - -[GRAPHICS-WSERV-WindowGc-PublicApi-0055-0001-BitBlt_command006] -destination_x =10 -destination_y =11 -wsbitmap =wsbmp -source_top =20 -source_left =21 -source_bottom =100 -source_right =101 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0056-0001-new_command001] -ws =ws - -[GRAPHICS-WSERV-WindowGc-PublicApi-0056-0001-Load_command002] -id =0 -filename =\graphics\wserv\test_board.mbm -shareifloaded =TRUE - -[GRAPHICS-WSERV-WindowGc-PublicApi-0056-0001-new_command004] -ws =ws - -[GRAPHICS-WSERV-WindowGc-PublicApi-0056-0001-Load_command005] -id =0 -filename =\graphics\wserv\test_mask.mbm -shareifloaded =TRUE - -[GRAPHICS-WSERV-WindowGc-PublicApi-0056-0001-BitBltMasked_command009] -point_x =10 -point_y =11 -wsbitmap =wsbmp -sourcerect_top =0 -sourcerect_left =0 -sourcerect_bottom =180 -sourcerect_right =180 -maskbitmap =wsmaskbmp -invertmask =TRUE - -[GRAPHICS-WSERV-WindowGc-PublicApi-0061-0001-SetClippingRegion_command003] -region1_top =10 -region1_left =10 -region1_bottom =20 -region1_right =20 -region2_top =10 -region2_left =40 -region2_bottom =20 -region2_right =50 -region3_top =20 -region3_left =20 -region3_bottom =40 -region3_right =40 -region4_top =40 -region4_left =10 -region4_bottom =50 -region4_right =20 -region5_top =40 -region5_left =40 -region5_bottom =50 -region5_right =50 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0061-0001-DrawRect_command004] -rect_top =10 -rect_left =10 -rect_bottom =50 -rect_right =50 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0061-0001-checkLineColor_command008] -start1_x =10 -start1_y =10 -finish1_x =20 -finish1_y =10 -expected1_red =0 -expected1_green =0 -expected1_blue =0 -start2_x =40 -start2_y =10 -finish2_x =50 -finish2_y =10 -expected2_red =0 -expected2_green =0 -expected2_blue =0 -start3_x =10 -start3_y =10 -finish3_x =10 -finish3_y =20 -expected3_red =0 -expected3_green =0 -expected3_blue =0 -start4_x =10 -start4_y =40 -finish4_x =10 -finish4_y =50 -expected4_red =0 -expected4_green =0 -expected4_blue =0 -start5_x =10 -start5_y =49 -finish5_x =20 -finish5_y =49 -expected5_red =0 -expected5_green =0 -expected5_blue =0 -start6_x =40 -start6_y =49 -finish6_x =50 -finish6_y =49 -expected6_red =0 -expected6_green =0 -expected6_blue =0 -start7_x =49 -start7_y =10 -finish7_x =49 -finish7_y =20 -expected7_red =0 -expected7_green =0 -expected7_blue =0 -start8_x =49 -start8_y =40 -finish8_x =49 -finish8_y =50 -expected8_red =0 -expected8_green =0 -expected8_blue =0 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0061-0001-checkRectColor_command009] -rect1_top =11 -rect1_left =11 -rect1_bottom =20 -rect1_right =20 -expected1_red =255 -expected1_green =0 -expected1_blue =0 -rect2_top =11 -rect2_left =40 -rect2_bottom =20 -rect2_right =49 -expected2_red =255 -expected2_green =0 -expected2_blue =0 -rect3_top =20 -rect3_left =20 -rect3_bottom =40 -rect3_right =40 -expected3_red =255 -expected3_green =0 -expected3_blue =0 -rect4_top =40 -rect4_left =11 -rect4_bottom =49 -rect4_right =20 -expected4_red =255 -expected4_green =0 -expected4_blue =0 -rect5_top =40 -rect5_left =40 -rect5_bottom =49 -rect5_right =49 -expected5_red =255 -expected5_green =0 -expected5_blue =0 -rect6_top =0 -rect6_left =20 -rect6_bottom =20 -rect6_right =40 -expected6_red =255 -expected6_green =255 -expected6_blue =255 -rect7_top =20 -rect7_left =10 -rect7_bottom =40 -rect7_right =20 -expected7_red =255 -expected7_green =255 -expected7_blue =255 -rect8_top =20 -rect8_left =40 -rect8_bottom =40 -rect8_right =50 -expected8_red =255 -expected8_green =255 -expected8_blue =255 -rect9_top =40 -rect9_left =20 -rect9_bottom =50 -rect9_right =40 -expected9_red =255 -expected9_green =255 -expected9_blue =255 -rect10_top =0 -rect10_left =0 -rect10_bottom =60 -rect10_right =10 -expected10_red =255 -expected10_green =255 -expected10_blue =255 -rect11_top =0 -rect11_left =50 -rect11_bottom =60 -rect11_right =60 -expected11_red =255 -expected11_green =255 -expected11_blue =255 -rect12_top =0 -rect12_left =10 -rect12_bottom =10 -rect12_right =50 -expected12_red =255 -expected12_green =255 -expected12_blue =255 -rect13_top =50 -rect13_left =10 -rect13_bottom =60 -rect13_right =50 -expected13_red =255 -expected13_green =255 -expected13_blue =255 - - -[GRAPHICS-WSERV-WindowGc-PublicApi-0062-0001-SetClippingRegion_command003] -region1_top =10 -region1_left =10 -region1_bottom =20 -region1_right =20 -region2_top =10 -region2_left =40 -region2_bottom =20 -region2_right =50 -region3_top =20 -region3_left =20 -region3_bottom =40 -region3_right =40 -region4_top =40 -region4_left =10 -region4_bottom =50 -region4_right =20 -region5_top =40 -region5_left =40 -region5_bottom =50 -region5_right =50 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0062-0001-DrawRect_command005] -rect_top =10 -rect_left =10 -rect_bottom =50 -rect_right =50 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0062-0001-checkLineColor_command009] -start1_x =10 -start1_y =10 -finish1_x =50 -finish1_y =10 -expected1_red =0 -expected1_green =0 -expected1_blue =0 -start2_x =49 -start2_y =10 -finish2_x =49 -finish2_y =50 -expected2_red =0 -expected2_green =0 -expected2_blue =0 -start3_x =10 -start3_y =10 -finish3_x =10 -finish3_y =50 -expected3_red =0 -expected3_green =0 -expected3_blue =0 -start4_x =10 -start4_y =49 -finish4_x =50 -finish4_y =49 -expected4_red =0 -expected4_green =0 -expected4_blue =0 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0062-0001-checkRectColor_command010] -rect1_top =11 -rect1_left =11 -rect1_bottom =49 -rect1_right =49 -expected1_red =255 -expected1_green =0 -expected1_blue =0 -rect2_top =0 -rect2_left =0 -rect2_bottom =60 -rect2_right =10 -expected2_red =255 -expected2_green =255 -expected2_blue =255 -rect3_top =0 -rect3_left =10 -rect3_bottom =10 -rect3_right =50 -expected3_red =255 -expected3_green =255 -expected3_blue =255 -rect4_top =50 -rect4_left =10 -rect4_bottom =60 -rect4_right =50 -expected4_red =255 -expected4_green =255 -expected4_blue =255 -rect5_top =0 -rect5_left =50 -rect5_bottom =60 -rect5_right =60 -expected5_red =255 -expected5_green =255 -expected5_blue =255 - - -[GRAPHICS-WSERV-WindowGc-PublicApi-0066-0001-Load_command002] -bitmap_id =0 -file_name =\graphics\wserv\test_board.mbm -share_if_loaded =TRUE -use_rfile =FALSE - -[GRAPHICS-WSERV-WindowGc-PublicApi-0066-0001-Load_command007] -bitmap_id =0 -file_name =\graphics\wserv\test_alpha.mbm -share_if_loaded =TRUE -use_rfile =FALSE - -[GRAPHICS-WSERV-WindowGc-PublicApi-0066-0001-AlphaBlendBitmaps_command013] -destpt_x =10 -destpt_y =10 -srcbmp =fbsbmp -srcrect_top =0 -srcrect_left =0 -srcrect_bottom =183 -srcrect_right =183 -alphabmp =fbsalphabmp -alphapt_x =0 -alphapt_y =0 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0067-0001-new_command001] -ws =ws - -[GRAPHICS-WSERV-WindowGc-PublicApi-0067-0001-Load_command002] -id =0 -filename =\graphics\wserv\test_board.mbm -shareifloaded =TRUE - -[GRAPHICS-WSERV-WindowGc-PublicApi-0067-0001-new_command004] -ws =ws - -[GRAPHICS-WSERV-WindowGc-PublicApi-0067-0001-Load_command005] -id =0 -filename =\graphics\wserv\test_alpha.mbm -shareifloaded =TRUE - -[GRAPHICS-WSERV-WindowGc-PublicApi-0067-0001-AlphaBlendBitmaps_command009] -destpt_x =10 -destpt_y =10 -srcwsbmp =wsbmp -srcrect_top =0 -srcrect_left =0 -srcrect_bottom =183 -srcrect_right =183 -alphabmp =wsalphabmp -alphapt_x =0 -alphapt_y =0 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0068-0001-Load_command002] -bitmap_id =0 -file_name =\graphics\wserv\test_board.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WindowGc-PublicApi-0068-0001-Load_command005] -bitmap_id =0 -file_name =\graphics\wserv\test_mask.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WindowGc-PublicApi-0068-0001-NewL_command007] -uid =9876 -bitmap =fbsbmp -mask =fbsmaskbmp - -[GRAPHICS-WSERV-WindowGc-PublicApi-0068-0001-DrawWsGraphic_command011] -id_uid =9876 -destrect_top =10 -destrect_left =11 -destrect_bottom =110 -destrect_right =111 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0069-0001-Load_command002] -bitmap_id =0 -file_name =\graphics\wserv\test_board.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WindowGc-PublicApi-0069-0001-Load_command005] -bitmap_id =0 -file_name =\graphics\wserv\test_mask.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WindowGc-PublicApi-0069-0001-NewL_command007] -uid =9876 -bitmap =fbsbmp -mask =fbsmaskbmp - -[GRAPHICS-WSERV-WindowGc-PublicApi-0069-0001-DrawWsGraphic_command013] -id_uid =9876 -destrect_top =10 -destrect_left =11 -destrect_bottom =110 -destrect_right =111 -data =wsgraphmsg - -[GRAPHICS-WSERV-WindowGc-PublicApi-0101-0001-SetPenColor_command002] -color_red =255 -color_green =0 -color_blue =0 - - -[GRAPHICS-WSERV-WindowGc-PublicApi-0102-0001-SetPenStyle_command002] -penstyle =EDotDotDashPen - - -[GRAPHICS-WSERV-WindowGc-PublicApi-0103-0001-SetPenSize_command002] -size_height =40 -size_width =20 - - -[GRAPHICS-WSERV-WindowGc-PublicApi-0104-0001-SetBrushColor_command002] -color_red =0 -color_green =0 -color_blue =255 - - -[GRAPHICS-WSERV-WindowGc-PublicApi-0105-0001-SetBrushStyle_command002] -brushstyle =ESolidBrush - - -[GRAPHICS-WSERV-WindowGc-PublicApi-0106-0001-SetBrushOrigin_command002] -point_x =0 -point_y =0 - - -[GRAPHICS-WSERV-WindowGc-PublicApi-0107-0001-SetOrigin_command002] -point_x =200 -point_y =20 - - -[GRAPHICS-WSERV-WindowGc-PublicApi-0108-0001-SetDrawMode_command002] -drawmode =EDrawModeXOR - - -[GRAPHICS-WSERV-WindowGc-PublicApi-0109-0001-SetOpaque_command002] -drawOpaque =TRUE - -[GRAPHICS-WSERV-WindowGc-PublicApi-0109-0001-SetPenColor_command003] -color_red =0 -color_green =255 -color_blue =0 - - -[GRAPHICS-WSERV-WindowGc-PublicApi-0110-0001-SetFaded_command002] -faded =TRUE - - -[GRAPHICS-WSERV-WindowGc-PublicApi-0111-0001-SetFadingParameters_command002] -blackmap =100 -whitemap =100 - - -[GRAPHICS-WSERV-WindowGc-PublicApi-0112-0001-SetDitherOrigin_command002] -point_x =250 -point_y =25 - - -[GRAPHICS-WSERV-WindowGc-PublicApi-0113-0001-MapColors_command002] -rect_top =50 -rect_left =110 -rect_bottom =100 -rect_right =150 -numcolors =2 -rgblist1_red =0 -rgblist1_green =0 -rgblist1_blue =255 -rgblist2_red =60 -rgblist2_green =230 -rgblist2_blue =200 -mapforwards =TRUE - - -[GRAPHICS-WSERV-WindowGc-PublicApi-0115-0001-Load_command003] -file_name =\graphics\wserv\test_board.mbm -bitmap_id =0 -share_if_loaded =TRUE - -[GRAPHICS-WSERV-WindowGc-PublicApi-0115-0001-UseBrushPattern_command005] -bitmap =fbsBitmap - -[GRAPHICS-WSERV-WindowGc-PublicApi-0115-0001-SetPenStyle_command006] -penstyle =ENullPen - -[GRAPHICS-WSERV-WindowGc-PublicApi-0115-0001-SetBrushStyle_command007] -brushstyle =EPatternedBrush - - -[GRAPHICS-WSERV-WindowGc-PublicApi-0116-0001-GetNearestFontToDesignHeightInPixels_command001] -font_height =30 -font_name =Arial -font_data_object_name =CFbsFont1 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0116-0001-UseFont_command002] -font =CFbsFont1 - -[GRAPHICS-WSERV-WindowGc-PublicApi-0116-0001-DrawText_command003] -text =DrawText Fun -point_x =50 -point_y =100 - - -[GRAPHICS-WSERV-WindowGc-PublicApi-0118-0001-DrawText_command003] -text =DrawText More Fun -rect_top =0 -rect_left =0 -rect_bottom =200 -rect_right =400 -baselineoffset =20 -leftmargin =10 -textalign =ELeft - - -[GRAPHICS-WSERV-WindowGc-PublicApi-0119-0001-SetWordJustification_command002] -excesswidth =50 -numgaps =2 - - -[GRAPHICS-WSERV-WindowGc-PublicApi-0120-0001-SetCharJustification_command002] -excesswidth =50 -numchars =10 - - -[GRAPHICS-WSERV-WindowGc-PublicApi-0121-0001-DrawTextVertical_command003] -text =TextVertical -up =FALSE -point_x =200 -point_y =0 - - -[GRAPHICS-WSERV-WindowGc-PublicApi-0122-0001-DrawTextVertical_command003] -text =VerticalText -up =FALSE -rect_top =0 -rect_left =50 -rect_bottom =250 -rect_right =200 -baselineoffset =20 -leftmargin =10 -textalign =ELeft - - -[GRAPHICS-WSERV-WindowGc-PublicApi-0123-0001-SetUnderlineStyle_command002] -fontunderline =EUnderlineOn - - -[GRAPHICS-WSERV-WindowGc-PublicApi-0124-0001-SetStrikethroughStyle_command002] -fontstrikethrough =EStrikethroughOn - - -[GRAPHICS-WSERV-WindowGc-PublicApi-0200-0001-DrawRect_command002] -rect_bottom =100 -rect_right =200 -rect_top =20 -rect_left =20 - - -[GRAPHICS-WSERV-WindowGc-PublicApi-0301-0001-DrawPie_command002] -end_y =10 -end_x =70 -rect_top =20 -rect_left =20 -start_y =225 -start_x =225 -rect_right =220 -rect_bottom =220 - - -[GRAPHICS-WSERV-WindowGc-PublicApi-0302-0001-DrawPie_command002] -end_y =225 -end_x =225 -rect_top =20 -rect_left =20 -start_y =10 -start_x =70 -rect_right =220 -rect_bottom =220 - - -// **************************************************************************** -// Negative testcases of CWindowGc -// **************************************************************************** - -[GRAPHICS-WSERV-WindowGc-PublicApi-1002-0001-Activate_command001] -device =win - - -[GRAPHICS-WSERV-WindowGc-PublicApi-1003-0001-Activate_command001] -device =wingrp - - -[GRAPHICS-WSERV-WindowGc-PublicApi-1126-0001-MapColors_command002] -rect_top =50 -rect_left =110 -rect_bottom =100 -rect_right =150 -numcolors =18 -rgblist1_red =0 -rgblist1_green =0 -rgblist1_blue =16 -rgblist2_red =16 -rgblist2_green =0 -rgblist2_blue =0 -rgblist3_red =0 -rgblist3_green =0 -rgblist3_blue =32 -rgblist4_red =32 -rgblist4_green =0 -rgblist4_blue =0 -rgblist5_red =0 -rgblist5_green =0 -rgblist5_blue =48 -rgblist6_red =48 -rgblist6_green =0 -rgblist6_blue =0 -rgblist7_red =0 -rgblist7_green =0 -rgblist7_blue =64 -rgblist8_red =64 -rgblist8_green =0 -rgblist8_blue =0 -rgblist9_red =0 -rgblist9_green =0 -rgblist9_blue =80 -rgblist10_red =80 -rgblist10_green =0 -rgblist10_blue =0 -rgblist11_red =0 -rgblist11_green =0 -rgblist11_blue =96 -rgblist12_red =96 -rgblist12_green =0 -rgblist12_blue =0 -rgblist13_red =0 -rgblist13_green =0 -rgblist13_blue =112 -rgblist14_red =112 -rgblist14_green =0 -rgblist14_blue =0 -rgblist15_red =0 -rgblist15_green =0 -rgblist15_blue =128 -rgblist16_red =128 -rgblist16_green =0 -rgblist16_blue =0 -rgblist17_red =0 -rgblist17_green =0 -rgblist17_blue =144 -rgblist18_red =144 -rgblist18_green =0 -rgblist18_blue =0 -mapforwards =TRUE - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/testdata/GRAPHICS-WSERV-WindowGroup-PublicApi.ini --- a/graphicsapitest/graphicssvs/wserv/testdata/GRAPHICS-WSERV-WindowGroup-PublicApi.ini Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,689 +0,0 @@ -[include] -file1 =\graphics\t_graphics.ini - - -[wtreenode] -name =wtreenode - - -[wingrp] -name =wingrp - -[wingrp2] -name =wingrp2 - - -[ws] -name =ws - - -[scrdev] -name =scrdev - - -[bnkwin] -name =bnkwin - - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0002-0001-new_command04] -ws =ws - - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0003-0001-new_command04] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0003-0001-Construct_command05] -clienthandle =1 - - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0004-0001-new_command04] -ws =ws - - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0004-0001-Construct_command05] -isfocusable =TRUE -clienthandle =1 - - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0005-0001-new_command01] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0005-0001-new_command04] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0005-0001-Construct_command05] -clienthandle =1 -screendevice =scrdev - - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0006-0001-new_command01] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0006-0001-new_command04] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0006-0001-Construct_command05] -clienthandle =1 -screendevice =scrdev -isfocusable =TRUE - - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0007-0001-new_command01] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0007-0001-Construct_command02] -isfocusable =TRUE -clienthandle =1 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0007-0001-new_command04] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0007-0001-ConstructChildApp_command05] -idofparentwindowgroup =wingrp -clienthandle =100 - - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0008-0001-new_command01] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0008-0001-Construct_command02] -isfocusable =TRUE -clienthandle =1 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0008-0001-ConstructChildApp_command03] -idofparentwindowgroup =wingrp -clienthandle =100 -isfocusable =TRUE - - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0009-0001-new_command04] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0009-0001-Construct_command05] -isfocusable =TRUE -clienthandle =1 - - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0010-0001-new_command04] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0010-0001-Construct_command05] -isfocusable =TRUE -clienthandle =1 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0010-0001-EnableReceiptOfFocus_command06] -state =TRUE - - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0011-0001-new_command04] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0011-0001-Construct_command05] -isfocusable =TRUE -clienthandle =1 - - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0012-0001-new_command04] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0012-0001-Construct_command05] -isfocusable =TRUE -clienthandle =1 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0012-0001-AutoForeground_command06] -state =TRUE - - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0013-0001-new_command04] -ws =ws - - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0013-0001-Construct_command05] -isfocusable =TRUE -clienthandle =1 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0013-0001-AllowProcessToCreateChildWindowGroups_command06] -processsid =1 - - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0014-0001-new_command04] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0014-0001-Construct_command05] -isfocusable =TRUE -clienthandle =1 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0014-0001-AddPriorityKey_command06] -keycode =EKeyF1 -modifiermask =EModifierAlt|EModifierCtrl -modifier =EModifierCtrl - - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0015-0001-new_command04] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0015-0001-Construct_command05] -isfocusable =TRUE -clienthandle =1 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0015-0001-RemovePriorityKey_command06] -keycode =EKeyF1 -modifiermask =EModifierAlt|EModifierCtrl -modifier =EModifierCtrl - - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0016-0001-new_command04] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0016-0001-Construct_command05] -isfocusable =TRUE -clienthandle =1 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0016-0001-SetName_command06] -inputWGN =MultiWindow_Set - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0016-0001-Name_command07] -expectRtnWGN =MultiWindow_Set - - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0017-0001-new_command04] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0017-0001-Construct_command05] -isfocusable =TRUE -clienthandle =1 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0017-0001-Name_command06] -expectRtnWGN = - - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0018-0001-new_command01] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0018-0001-Construct_command02] -isfocusable =TRUE -clienthandle =1 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0018-0001-new_command03] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0018-0001-Construct_command04] -isfocusable =TRUE -clienthandle =2 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0018-0001-SetChildGroup_command06] -id_name =wingrp2 - - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0019-0001-new_command01] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0019-0001-Construct_command02] -isfocusable =TRUE -clienthandle =1 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0019-0001-new_command04] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0019-0001-Construct_command05] -isfocusable =TRUE -clienthandle =2 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0019-0001-SetChildGroup_command07] -id_name =wingrp2 - - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0020-0001-new_command01] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0020-0001-Construct_command02] -isfocusable =TRUE -clienthandle =1 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0020-0001-new_command04] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0020-0001-Construct_command05] -isfocusable =TRUE -clienthandle =2 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0020-0001-SetOwningWindowGroup_command06] -OwningWGId_name =wingrp - - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0021-0001-new_command01] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0021-0001-Construct_command02] -isfocusable =TRUE -clienthandle =1 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0021-0001-Construct_command03] -isfocusable =TRUE -clienthandle =101 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0021-0001-SetOrdinalPriorityAdjust_command04] -adjust =4 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0021-0001-SetOrdinalPriorityAdjust_command05] -adjust =0 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0021-0001-expected_0] -expected =0 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0021-0001-expected_1] -expected =1 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0021-0001-expected_2] -expected =2 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0021-0001-expected_3] -expected =3 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0021-0001-expected_4] -expected =4 - - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-new_command01] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-Construct_command02] -isfocusable =TRUE -clienthandle =1 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-Construct_command03] -isfocusable =TRUE -clienthandle =101 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-SetOrdinalPositionErr_command04] -pos =4 -ordinalpriority =0 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-SetOrdinalPositionErr_command05] -pos =0 -ordinalpriority =0 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-SetOrdinalPositionErr_command06] -pos =3 -ordinalpriority =1 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-SetOrdinalPositionErr_command07] -pos =3 -ordinalpriority =0 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-expected_0] -expected =0 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-expected_1] -expected =1 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-expected_2] -expected =2 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-expected_3] -expected =3 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0022-0001-expected_4] -expected =4 - - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0023-0001-new_command01] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0023-0001-Construct_command02] -isfocusable =TRUE -clienthandle =1 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0023-0001-new_command03] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0023-0001-Construct_command04] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0023-0001-SetTextCursor_command05] -win =bnkwin -pos_x =10 -pos_y =10 -cursor_type =ETypeRectangle -cursor_flags =EFlagNoFlash - - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0024-0001-new_command04] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0024-0001-Construct_command05] -isfocusable =TRUE -clienthandle =1 - - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0025-0001-new_command01] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0025-0001-Construct_command02] -isfocusable =TRUE -clienthandle =1 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0025-0001-new_command03] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0025-0001-Construct_command04] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0025-0001-SetTextCursor_command05] -win =bnkwin -pos_x =10 -pos_y =10 -cursor_type =ETypeRectangle -cursor_flags =EFlagNoFlash -cliprect_top =5 -cliprect_left =5 -cliprect_bottom =50 -cliprect_right =50 - - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0026-0001-new_command04] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0026-0001-Construct_command05] -isfocusable =TRUE -clienthandle =1 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0026-0001-DisableKeyClick_command06] -state =TRUE - - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0027-0001-new_command04] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0027-0001-Construct_command05] -isfocusable =TRUE -clienthandle =1 - - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0028-0001-new_command04] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0028-0001-Construct_command05] -isfocusable =TRUE -clienthandle =1 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0028-0001-SimulatePointerEvent_command06] -type =EPointerMove - - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0034-0001-new_command04] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0034-0001-Construct_command05] -isfocusable =TRUE -clienthandle =1 - - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0035-0001-new_command04] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0035-0001-Construct_command05] -clienthandle =1 -isfocusable =TRUE - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0035-0001-CaptureKey_command6] -keycode =EKeyF1 -modifiermask =EModifierAlt|EModifierCtrl -modifier =EModifierCtrl - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0035-0001-Construct_command09] -clienthandle =2 -isfocusable =TRUE - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0035-0001-CaptureKey_command10] -keycode =EKeyF1 -modifiermask =EModifierAlt|EModifierCtrl -modifier =EModifierCtrl -priority =1 - - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0036-0001-CancelCaptureKey_command7] -capturekey =-1 - - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0037-0001-CaptureKeyUpAndDowns_command6] -scancode =EStdKeyF1 -modifiermask =EModifierAlt|EModifierCtrl -modifier =EModifierCtrl - - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0038-0001-CancelCaptureKeyUpAndDOwns] -capturekey =-1 - - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0039-0001-CaptureKeyUpAndDowns_command10] -scancode =EStdKeyF1 -modifiermask =EModifierAlt|EModifierCtrl -modifier =EModifierCtrl -priority =1 - - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0040-0001-CaptureLongKey_command6] -inputkeycode =EKeyF1 -outputkeycode =EKeyF1 -modifiermask =EModifierAlt|EModifierCtrl -modifier =EModifierCtrl -priority =1 -flags =ELongCaptureNormal - - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0041-0001-CancelCaptureLongKey_command7] -capturekey =-1 - - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0042-0001-CaptureLongKey_command10] -inputkeycode =EKeyF1 -outputkeycode =EKeyF1 -modifiermask =EModifierAlt|EModifierCtrl -modifier =EModifierCtrl -priority =1 -flags =ELongCaptureNormal -repeattime =1 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0043-0001-new_command04] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0043-0001-Construct_command05] -isfocusable =TRUE -clienthandle =1 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0043-0001-AddPriorityKey_command06] -keycode =EKeyOff -modifiermask =EModifierAlt|EModifierCtrl -modifier =EModifierCtrl - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0044-0001-new_command04] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0044-0001-Construct_command05] -isfocusable =TRUE -clienthandle =1 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0044-0001-DisableKeyClick_command06] -state =FALSE - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0045-0001-new_command04] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0045-0001-Construct_command05] -isfocusable =TRUE -clienthandle =1 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0045-0001-EnableReceiptOfFocus_command06] -state =FALSE - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0046-0001-new_command04] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0046-0001-Construct_command05] -isfocusable =TRUE -clienthandle =1 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0046-0001-SetName_command06] -inputWGN = - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0046-0001-Name_command07] -expectRtnWGN = - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0047-0001-new_command01] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0047-0001-Construct_command02] -isfocusable =TRUE -clienthandle =1 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0047-0001-new_command04] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0047-0001-Construct_command05] -isfocusable =TRUE -clienthandle =2 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0047-0001-SetOwningWindowGroup_command06] -OwningWGId =-1 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0048-0001-new_command04] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0048-0001-Construct_command05] -clienthandle =-99999999 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0049-0001-new_command04] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0049-0001-Construct_command05] -isfocusable =TRUE -clienthandle =-99999999 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0050-0001-new_command01] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0050-0001-new_command04] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0050-0001-Construct_command05] -clienthandle =-99999999 -screendevice =scrdev - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0051-0001-new_command01] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0051-0001-new_command04] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0051-0001-Construct_command05] -clienthandle =-99999999 -screendevice =scrdev -isfocusable =TRUE - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0052-0001-new_command01] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0052-0001-Construct_command02] -isfocusable =TRUE -clienthandle =1 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0052-0001-new_command04] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0052-0001-ConstructChildApp_command05] -idofparentwindowgroup =wingrp -clienthandle =-99999999 - - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0053-0001-new_command01] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0053-0001-Construct_command02] -isfocusable =TRUE -clienthandle =1 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0053-0001-ConstructChildApp_command03] -idofparentwindowgroup =wingrp -clienthandle =-99999999 -isfocusable =TRUE - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0054-0001-new_command04] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0054-0001-Construct_command05] -isfocusable =TRUE -clienthandle =1 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0054-0001-AllowProcessToCreateChildWindowGroups_command06] -processsid =-99999999 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0055-0001-new_command01] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0055-0001-Construct_command02] -isfocusable =TRUE -clienthandle =1 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0055-0001-SetOrdinalPriorityAdjust_command03] -adjust =99999999 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0056-0001-new_command01] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0056-0001-Construct_command02] -isfocusable =TRUE -clienthandle =1 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0056-0001-SetOrdinalPositionErr_command03] -pos =-99999999 -ordinalpriority =99999999 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0057-0001-new_command01] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0057-0001-Construct_command02] -isfocusable =TRUE -clienthandle =1 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0057-0001-new_command03] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0057-0001-Construct_command04] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0057-0001-SetTextCursor_command05] -win =bnkwin -pos_x =-99999999 -pos_y =-99999999 -cursor_type =ETypeRectangle -cursor_flags =EFlagNoFlash - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0058-0001-new_command01] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0058-0001-Construct_command02] -isfocusable =TRUE -clienthandle =1 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0058-0001-new_command03] -ws =ws - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0058-0001-Construct_command04] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-WindowGroup-PublicApi-0058-0001-SetTextCursor_command05] -win =bnkwin -pos_x =-99999999 -pos_y =-99999999 -cursor_type =ETypeRectangle -cursor_flags =EFlagNoFlash -cliprect_top =-99999999 -cliprect_left =-99999999 -cliprect_bottom =-99999999 -cliprect_right =-99999999 - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/testdata/GRAPHICS-WSERV-WsBitmap-PublicApi.ini --- a/graphicsapitest/graphicssvs/wserv/testdata/GRAPHICS-WSERV-WsBitmap-PublicApi.ini Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,282 +0,0 @@ -[include] -file1 =\graphics\t_graphics.ini - - -[wsbmp_src] -name =wsbmp_src - - -[wsbmp] -name =wsbmp - - -[ws] -name =ws - - -[GRAPHICS-WSERV-WsBitmap-PublicApi-0002-0001-new_command04] -ws =ws - - -[GRAPHICS-WSERV-WsBitmap-PublicApi-0003-0001-new_command04] -ws =ws - - -[GRAPHICS-WSERV-WsBitmap-PublicApi-0004-0001-new_command04] -ws =ws - -[GRAPHICS-WSERV-WsBitmap-PublicApi-0004-0001-Handle_command05] -expected_int =0 - -[GRAPHICS-WSERV-WsBitmap-PublicApi-0004-0001-WsHandle_command06] -expected =0 - -[GRAPHICS-WSERV-WsBitmap-PublicApi-0004-0001-SizeInPixels_command07] -width =0 -height =0 - -[GRAPHICS-WSERV-WsBitmap-PublicApi-0004-0001-DisplayMode_command08] -displaymode =ENone - -[GRAPHICS-WSERV-WsBitmap-PublicApi-0004-0001-Create_command09] -dispmode =EColor64K -sizeinpixels_height =50 -sizeinpixels_width =60 - -[GRAPHICS-WSERV-WsBitmap-PublicApi-0004-0001-SizeInPixels_command10] -width =60 -height =50 - -[GRAPHICS-WSERV-WsBitmap-PublicApi-0004-0001-DisplayMode_command11] -displaymode =EColor64K - -[GRAPHICS-WSERV-WsBitmap-PublicApi-0004-0001-WsHandle_command13] -expectnot =0 - - -[GRAPHICS-WSERV-WsBitmap-PublicApi-0005-0001-new_command04] -ws =ws - -[GRAPHICS-WSERV-WsBitmap-PublicApi-0005-0001-Create_command05] -dispmode =EColor64K -sizeinpixels_height =50 -sizeinpixels_width =60 - -[GRAPHICS-WSERV-WsBitmap-PublicApi-0005-0001-WsHandle_command07] -expectnot =0 - -[GRAPHICS-WSERV-WsBitmap-PublicApi-0005-0001-new_command09] -ws =ws - -[GRAPHICS-WSERV-WsBitmap-PublicApi-0005-0001-Handle_command10] -expected_int =0 - -[GRAPHICS-WSERV-WsBitmap-PublicApi-0005-0001-WsHandle_command11] -expected =0 - -[GRAPHICS-WSERV-WsBitmap-PublicApi-0005-0001-SizeInPixels_command12] -width =0 -height =0 - -[GRAPHICS-WSERV-WsBitmap-PublicApi-0005-0001-DisplayMode_command13] -displaymode =ENone - -[GRAPHICS-WSERV-WsBitmap-PublicApi-0005-0001-Duplicate_command14] -handle_name =wsbmp_src - -[GRAPHICS-WSERV-WsBitmap-PublicApi-0005-0001-SizeInPixels_command15] -width =60 -height =50 - -[GRAPHICS-WSERV-WsBitmap-PublicApi-0005-0001-DisplayMode_command16] -displaymode =EColor64K - -[GRAPHICS-WSERV-WsBitmap-PublicApi-0005-0001-WsHandle_command18] -expectnot =0 - - -[GRAPHICS-WSERV-WsBitmap-PublicApi-0006-0001-new_command04] -ws =ws - -[GRAPHICS-WSERV-WsBitmap-PublicApi-0006-0001-Create_command05] -dispmode =EColor64K -sizeinpixels_height =50 -sizeinpixels_width =60 - -[GRAPHICS-WSERV-WsBitmap-PublicApi-0006-0001-Save_command06] -file_name =\graphics\test_wsbitmap.tmp -use_rfile =FALSE - -[GRAPHICS-WSERV-WsBitmap-PublicApi-0006-0001-WsHandle_command08] -expectnot =0 - -[GRAPHICS-WSERV-WsBitmap-PublicApi-0006-0001-new_command10] -ws =ws - -[GRAPHICS-WSERV-WsBitmap-PublicApi-0006-0001-Handle_command11] -expected_int =0 - -[GRAPHICS-WSERV-WsBitmap-PublicApi-0006-0001-WsHandle_command12] -expected =0 - -[GRAPHICS-WSERV-WsBitmap-PublicApi-0006-0001-SizeInPixels_command13] -width =0 -height =0 - -[GRAPHICS-WSERV-WsBitmap-PublicApi-0006-0001-Load_command14] -shareifloaded =TRUE -id =0 -filename =\graphics\test_wsbitmap.tmp - - -[GRAPHICS-WSERV-WsBitmap-PublicApi-0007-0001-new_command04] -ws =ws - -[GRAPHICS-WSERV-WsBitmap-PublicApi-0007-0001-Create_command05] -dispmode =EColor64K -sizeinpixels_height =50 -sizeinpixels_width =60 - -[GRAPHICS-WSERV-WsBitmap-PublicApi-0007-0001-ExternalizeL_command06] -file_name =\graphics\test_wsbitmap.tmp -use_closed_stream =FALSE - -[GRAPHICS-WSERV-WsBitmap-PublicApi-0007-0001-new_command08] -ws =ws - -[GRAPHICS-WSERV-WsBitmap-PublicApi-0007-0001-Handle_command09] -expected_int =0 - -[GRAPHICS-WSERV-WsBitmap-PublicApi-0007-0001-WsHandle_command10] -expected =0 - -[GRAPHICS-WSERV-WsBitmap-PublicApi-0007-0001-SizeInPixels_command11] -width =0 -height =0 - -[GRAPHICS-WSERV-WsBitmap-PublicApi-0007-0001-InternalizeL_command12] -filename =\graphics\test_wsbitmap.tmp -use_closed_stream =FALSE - -[GRAPHICS-WSERV-WsBitmap-PublicApi-0007-0001-WsHandle_command14] -expectnot =0 - -[GRAPHICS-WSERV-WsBitmap-PublicApi-0007-0001-SizeInPixels_command15] -width =60 -height =50 - - -[GRAPHICS-WSERV-WsBitmap-PublicApi-0008-0001-new_command04] -ws =ws - -[GRAPHICS-WSERV-WsBitmap-PublicApi-0008-0001-Create_command05] -sizeinpixels_height =50 -dispmode =EColor64K -sizeinpixels_width =60 - -[GRAPHICS-WSERV-WsBitmap-PublicApi-0008-0001-WsHandle_command07] -expectnot =0 - -[GRAPHICS-WSERV-WsBitmap-PublicApi-0008-0001-Handle_command09] -expected_int =0 - -[GRAPHICS-WSERV-WsBitmap-PublicApi-0008-0001-WsHandle_command10] -expected =0 - -[GRAPHICS-WSERV-WsBitmap-PublicApi-0008-0001-SizeInPixels_command11] -width =0 -height =0 - -[GRAPHICS-WSERV-WsBitmap-PublicApi-0008-0001-DisplayMode_command12] -displaymode =ENone - -// **************************************************************************** -// Negative testcases of CWsBitmap -// **************************************************************************** - -[GRAPHICS-WSERV-WsBitmap-PublicApi-1001-0001-Create_command01] -dispmode =EColor64K -sizeinpixels_height =50 -sizeinpixels_width =60 - - -[GRAPHICS-WSERV-WsBitmap-PublicApi-1002-0001-new_command01] -ws =ws - -[GRAPHICS-WSERV-WsBitmap-PublicApi-1002-0001-Create_command02] -dispmode =EColor64K -sizeinpixels_height =50 -sizeinpixels_width =60 - - -[GRAPHICS-WSERV-WsBitmap-PublicApi-1003-0001-new_command01] -ws =ws - -[GRAPHICS-WSERV-WsBitmap-PublicApi-1003-0001-Create_command02] -dispmode =EColor64K -sizeinpixels_height =-50 -sizeinpixels_width =-60 - - -[GRAPHICS-WSERV-WsBitmap-PublicApi-1004-0001-new_command01] -ws =ws - -[GRAPHICS-WSERV-WsBitmap-PublicApi-1004-0001-Create_command02] -dispmode =ENone -sizeinpixels_height =50 -sizeinpixels_width =60 - - -[GRAPHICS-WSERV-WsBitmap-PublicApi-1005-0001-new_command01] -ws =ws - -[GRAPHICS-WSERV-WsBitmap-PublicApi-1005-0001-Duplicate_command02] -handle =-1 - - -[GRAPHICS-WSERV-WsBitmap-PublicApi-1006-0001-new_command01] -ws =ws - -[GRAPHICS-WSERV-WsBitmap-PublicApi-1006-0001-Create_command02] -dispmode =EColor64K -sizeinpixels_height =50 -sizeinpixels_width =60 - -[GRAPHICS-WSERV-WsBitmap-PublicApi-1006-0001-Duplicate_command03] -handle_name =wsbmp_src - - -[GRAPHICS-WSERV-WsBitmap-PublicApi-1007-0001-new_command01] -ws =ws - -[GRAPHICS-WSERV-WsBitmap-PublicApi-1007-0001-Load_command02] -shareifloaded =TRUE -id =0 -filename =\graphics\wserv\test_board.mbm - - -[GRAPHICS-WSERV-WsBitmap-PublicApi-1008-0001-new_command01] -ws =ws - -[GRAPHICS-WSERV-WsBitmap-PublicApi-1008-0001-Load_command02] -shareifloaded =TRUE -id =10000 -filename =\graphics\wserv\test_board.mbm - - -[GRAPHICS-WSERV-WsBitmap-PublicApi-1009-0001-new_command01] -ws =ws - -[GRAPHICS-WSERV-WsBitmap-PublicApi-1009-0001-Load_command02] -shareifloaded =TRUE -id =1 -filename =\graphics\wserv\file_not_found.txt - - -[GRAPHICS-WSERV-WsBitmap-PublicApi-1010-0001-new_command01] -ws =ws - -[GRAPHICS-WSERV-WsBitmap-PublicApi-1010-0001-InternalizeL_command02] -filename =\graphics\wserv\test_board.mbm -use_closed_stream =FALSE - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/testdata/GRAPHICS-WSERV-WsGraphicBitmap-PublicApi.ini --- a/graphicsapitest/graphicssvs/wserv/testdata/GRAPHICS-WSERV-WsGraphicBitmap-PublicApi.ini Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,314 +0,0 @@ -[include] -file1 =\graphics\t_graphics.ini - - -[fbsbmp] -name =fbsbmp - -[fbsbmp2] -name =fbsbmp2 - -[fbsmaskbmp] -name =fbsmaskbmp - -[ws] -name =ws - -[wsgraph] -name =wsgraph - -[wsgraph2] -name =wsgraph2 - - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0001-0001-Load_command05] -bitmap_id =0 -file_name =\graphics\wserv\test_board.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0001-0001-Load_command08] -bitmap_id =0 -file_name =\graphics\wserv\test_mask.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0001-0001-NewL_command10] -bitmap =fbsbmp -mask =fbsmaskbmp - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0001-0001-Id_command11] -expectnot_id =0 - - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0002-0001-Load_command05] -bitmap_id =0 -file_name =\graphics\wserv\test_board.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0002-0001-Load_command08] -bitmap_id =0 -file_name =\graphics\wserv\test_mask.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0002-0001-NewL_command10] -uid =98765 -bitmap =fbsbmp -mask =fbsmaskbmp - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0002-0001-Id_command11] -expected_uid =98765 - - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0003-0001-Load_command05] -bitmap_id =0 -file_name =\graphics\wserv\test_board.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0003-0001-Load_command08] -bitmap_id =0 -file_name =\graphics\wserv\test_mask.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0003-0001-NewL_command10] -uid =98765 -bitmap =fbsbmp -mask =fbsmaskbmp - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0003-0001-Id_command11] -expected_uid =98765 - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0003-0001-Load_command14] -bitmap_id =0 -file_name =\graphics\wserv\test_alpha.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0003-0001-NewL_command16] -replace_name =wsgraph -bitmap =fbsbmp2 -mask =fbsmaskbmp - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0003-0001-Id_command17] -expected_uid =98765 - - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0004-0001-Load_command05] -bitmap_id =0 -file_name =\graphics\wserv\test_board.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0004-0001-Load_command08] -bitmap_id =0 -file_name =\graphics\wserv\test_mask.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0004-0001-NewL_command10] -bitmap =fbsbmp -mask =fbsmaskbmp - - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0005-0001-Load_command05] -bitmap_id =0 -file_name =\graphics\wserv\test_board.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0005-0001-Load_command08] -bitmap_id =0 -file_name =\graphics\wserv\test_mask.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0005-0001-NewL_command10] -uid =98765 -bitmap =fbsbmp -mask =fbsmaskbmp - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0005-0001-Id_command11] -expected_uid =98765 - - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0006-0001-Load_command05] -bitmap_id =0 -file_name =\graphics\wserv\test_board.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0006-0001-Load_command08] -bitmap_id =0 -file_name =\graphics\wserv\test_mask.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0006-0001-NewL_command10] -uid =98765 -bitmap =fbsbmp -mask =fbsmaskbmp - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0006-0001-Id_command11] -expected_uid =98765 - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0006-0001-Share_command12] -clientid =10 - - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0007-0001-Load_command05] -bitmap_id =0 -file_name =\graphics\wserv\test_board.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0007-0001-Load_command08] -bitmap_id =0 -file_name =\graphics\wserv\test_mask.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0007-0001-NewL_command10] -uid =98765 -bitmap =fbsbmp -mask =fbsmaskbmp - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0007-0001-Id_command11] -expected_uid =98765 - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0007-0001-Share_command12] -clientid =10 - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0007-0001-UnShare_command13] -clientid =10 - - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0008-0001-Load_command05] -bitmap_id =0 -file_name =\graphics\wserv\test_board.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0008-0001-Load_command08] -bitmap_id =0 -file_name =\graphics\wserv\test_mask.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0008-0001-NewL_command10] -uid =98765 -bitmap =fbsbmp -mask =fbsmaskbmp - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0008-0001-Id_command11] -expected_uid =98765 - - - - - - -// **************************************************************************** -// CWsGraphicBitmap Public APIs inherited from CWsGraphic -// **************************************************************************** - - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0101-0001-Load_command05] -bitmap_id =0 -file_name =\graphics\wserv\test_board.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0101-0001-Load_command08] -bitmap_id =0 -file_name =\graphics\wserv\test_mask.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0101-0001-NewL_command10] -bitmap =fbsbmp -mask =fbsmaskbmp - - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0102-0001-Load_command05] -bitmap_id =0 -file_name =\graphics\wserv\test_board.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0102-0001-Load_command08] -bitmap_id =0 -file_name =\graphics\wserv\test_mask.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0102-0001-NewL_command10] -bitmap =fbsbmp -mask =fbsmaskbmp - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0102-0001-Id_command11] -expectnot_id =0 - - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0103-0001-Load_command05] -bitmap_id =0 -file_name =\graphics\wserv\test_board.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0103-0001-Load_command08] -bitmap_id =0 -file_name =\graphics\wserv\test_mask.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0103-0001-NewL_command10] -bitmap =fbsbmp -mask =fbsmaskbmp - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0103-0001-IsActive_command11] -expected =TRUE - - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0104-0001-Load_command05] -bitmap_id =0 -file_name =\graphics\wserv\test_board.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0104-0001-Load_command08] -bitmap_id =0 -file_name =\graphics\wserv\test_mask.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0104-0001-NewL_command10] -bitmap =fbsbmp -mask =fbsmaskbmp - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0104-0001-IsActive_command11] -expected =TRUE - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0104-0001-Id_command12] -expectnot_id =0 - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0104-0001-IsActive_command14] -expected =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-0104-0001-Id_command15] -expected_id =0 - - - - -// **************************************************************************** -// Negative testcases of CWsGraphicBitmap -// **************************************************************************** - -[GRAPHICS-WSERV-WsGraphicBitmap-PublicApi-1002-0001-NewL_command01] -replace_uid =98765 -bitmap =fbsbmp -mask =fbsmaskbmp diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/testdata/GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi.ini --- a/graphicsapitest/graphicssvs/wserv/testdata/GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi.ini Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1159 +0,0 @@ -[include] -file1 =\graphics\t_graphics.ini - -[bmpanim] -name =bmpanim - -[bmpanim1] -name =bmpanim1 - -[bmpanim2] -name =bmpanim2 - -[win] -name =win - -[fbssession] -name =fbssession - -[frame1] -name =frame1 - -[frame2] -name =frame2 - -[bitmap1] -name =bitmap1 - -[bitmap2] -name =bitmap2 - -[mask1] -name =mask1 - -[mask2] -name =mask2 - -[ws] -name =ws - -[scrdev] -name =scrdev - -[wgc] -name =wgc - -[wingrp] -name =wingrp - -[wsga] -name =wsga - - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0001-0001-Load-command005] -bitmap_id =1 -file_name =\graphics\wserv\WsGraphicBitmapAnimation.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0001-0001-Load-command006] -bitmap_id =0 -file_name =\graphics\wserv\WsGraphicBitmapAnimation.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0001-0001-SetFrameInfo-command007] -frameinfostate =EFrameInfoUnitialised -framecoordsinpixels_top =50 -framecoordsinpixels_left =50 -framecoordsinpixels_right =100 -framecoordsinpixels_bottom =100 -framesizeintwips_height =50 -framesizeintwips_width =50 -bitsperpixel =8 -delay =10000 -flags =EColor -framedisplaymode =EGray256 - - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0001-0001-SetBitmap-command008] -setbitmap =bitmap1 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0001-0001-SetMask-command009] -setmask =mask1 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0001-0001-NewL-command010] -framescount =1 -frame1 =frame1 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0002-0001-Load-command008] -bitmap_id =1 -file_name =\graphics\wserv\WsGraphicBitmapAnimation.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0002-0001-Load-command009] -bitmap_id =2 -file_name =\graphics\wserv\WsGraphicBitmapAnimation.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0002-0001-Load-command010] -bitmap_id =0 -file_name =\graphics\wserv\WsGraphicBitmapAnimation.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0002-0001-Load-command011] -bitmap_id =3 -file_name =\graphics\wserv\WsGraphicBitmapAnimation.mbm -share_if_loaded =FALSE -use_rfile =FALSE - - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0002-0001-SetFrameInfo-command012] -frameinfostate =EFrameInfoUnitialised -framecoordsinpixels_top =50 -framecoordsinpixels_left =50 -framecoordsinpixels_right =100 -framecoordsinpixels_bottom =100 -framesizeintwips_height =50 -framesizeintwips_width =50 -bitsperpixel =8 -delay =10000 -flags =EColor -framedisplaymode =EGray256 - - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0002-0001-SetBitmap-command013] -setbitmap =bitmap1 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0002-0001-SetMask-command014] -setmask =mask1 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0002-0001-SetFrameInfo-command015] -frameinfostate =EFrameInfoUnitialised -framecoordsinpixels_top =50 -framecoordsinpixels_left =50 -framecoordsinpixels_right =100 -framecoordsinpixels_bottom =100 -framesizeintwips_height =50 -framesizeintwips_width =50 -bitsperpixel =8 -delay =10000 -flags =EColor -framedisplaymode =EGray256 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0002-0001-SetBitmap-command016] -setbitmap =bitmap2 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0002-0001-SetMask-command017] -setmask =mask2 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0002-0001-NewL-command018] -framescount =2 -frame1 =frame1 -frame2 =frame2 - - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0003-0001-Load-command005] -bitmap_id =1 -file_name =\graphics\wserv\WsGraphicBitmapAnimation.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0003-0001-Load-command006] -bitmap_id =0 -file_name =\graphics\wserv\WsGraphicBitmapAnimation.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0003-0001-SetFrameInfo-command007] -frameinfostate =EFrameInfoUnitialised -framecoordsinpixels_top =50 -framecoordsinpixels_left =50 -framecoordsinpixels_right =100 -framecoordsinpixels_bottom =100 -framesizeintwips_height =50 -framesizeintwips_width =50 -bitsperpixel =8 -delay =10000 -flags =EColor -framedisplaymode =EGray256 - - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0003-0001-SetBitmap-command008] -setbitmap =bitmap1 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0003-0001-SetMask-command009] -setmask =mask1 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0003-0001-NewL-command010] -framescount =1 -uid =0 -frame1 =frame1 - - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0004-0001-Load-command008] -bitmap_id =1 -file_name =\graphics\wserv\WsGraphicBitmapAnimation.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0004-0001-Load-command009] -bitmap_id =2 -file_name =\graphics\wserv\WsGraphicBitmapAnimation.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0004-0001-Load-command010] -bitmap_id =0 -file_name =\graphics\wserv\WsGraphicBitmapAnimation.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0004-0001-Load-command011] -bitmap_id =3 -file_name =\graphics\wserv\WsGraphicBitmapAnimation.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0004-0001-SetFrameInfo-command012] -frameinfostate =EFrameInfoUnitialised -framecoordsinpixels_top =50 -framecoordsinpixels_left =50 -framecoordsinpixels_right =100 -framecoordsinpixels_bottom =100 -framesizeintwips_height =50 -framesizeintwips_width =50 -bitsperpixel =8 -delay =10000 -flags =EColor -framedisplaymode =EGray256 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0004-0001-SetBitmap-command013] -setbitmap =bitmap1 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0004-0001-SetMask-command014] -setmask =mask1 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0004-0001-SetFrameInfo-command015] -frameinfostate =EFrameInfoUnitialised -framecoordsinpixels_top =50 -framecoordsinpixels_left =50 -framecoordsinpixels_right =100 -framecoordsinpixels_bottom =100 -framesizeintwips_height =50 -framesizeintwips_width =50 -bitsperpixel =8 -delay =10000 -flags =EColor -framedisplaymode =EGray256 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0004-0001-SetBitmap-command016] -setbitmap =bitmap2 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0004-0001-SetMask-command017] -setmask =mask2 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0004-0001-NewL-command018] -uid =0 -framescount =2 -frame1 =frame1 -frame2 =frame2 - - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0005-0001-Load-command005] -bitmap_id =1 -file_name =\graphics\wserv\WsGraphicBitmapAnimation.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0005-0001-Load-command006] -bitmap_id =0 -file_name =\graphics\wserv\WsGraphicBitmapAnimation.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0005-0001-SetFrameInfo-command007] -frameinfostate =EFrameInfoUnitialised -framecoordsinpixels_top =50 -framecoordsinpixels_left =50 -framecoordsinpixels_right =100 -framecoordsinpixels_bottom =100 -framesizeintwips_height =50 -framesizeintwips_width =50 -bitsperpixel =8 -delay =10000 -flags =EColor -framedisplaymode =EGray256 - - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0005-0001-SetBitmap-command008] -setbitmap =bitmap1 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0005-0001-SetMask-command009] -setmask =mask1 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0005-0001-NewL-command010] -uid =1 -framescount =1 -frame1 =frame1 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0005-0001-NewL-command011] -replace_uid =1 -framescount =1 -frame1 =frame1 - - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0006-0001-Load-command008] -bitmap_id =1 -file_name =\graphics\wserv\WsGraphicBitmapAnimation.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0006-0001-Load-command009] -bitmap_id =2 -file_name =\graphics\wserv\WsGraphicBitmapAnimation.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0006-0001-Load-command010] -bitmap_id =0 -file_name =\graphics\wserv\WsGraphicBitmapAnimation.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0006-0001-Load-command011] -bitmap_id =3 -file_name =\graphics\wserv\WsGraphicBitmapAnimation.mbm -share_if_loaded =FALSE -use_rfile =FALSE - - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0006-0001-SetFrameInfo-command012] -frameinfostate =EFrameInfoUnitialised -framecoordsinpixels_top =50 -framecoordsinpixels_left =50 -framecoordsinpixels_right =100 -framecoordsinpixels_bottom =100 -framesizeintwips_height =50 -framesizeintwips_width =50 -bitsperpixel =8 -delay =10000 -flags =EColor -framedisplaymode =EGray256 - - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0006-0001-SetBitmap-command013] -setbitmap =bitmap1 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0006-0001-SetMask-command014] -setmask =mask1 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0006-0001-SetFrameInfo-command015] -frameinfostate =EFrameInfoUnitialised -framecoordsinpixels_top =50 -framecoordsinpixels_left =50 -framecoordsinpixels_right =100 -framecoordsinpixels_bottom =100 -framesizeintwips_height =50 -framesizeintwips_width =50 -bitsperpixel =8 -delay =10000 -flags =EColor -framedisplaymode =EGray256 - - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0006-0001-SetBitmap-command016] -setbitmap =bitmap2 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0006-0001-SetMask-command017] -setmask =mask2 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0006-0001-NewL-command018] -uid =1 -framescount =2 -frame1 =frame1 -frame2 =frame2 -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0006-0001-NewL-command019] -replace_uid =1 -framescount =2 -frame1 =frame1 -frame2 =frame2 - - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0007-0001-Load-command008] -bitmap_id =1 -file_name =\graphics\wserv\WsGraphicBitmapAnimation.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0007-0001-Load-command009] -bitmap_id =2 -file_name =\graphics\wserv\WsGraphicBitmapAnimation.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0007-0001-Load-command010] -bitmap_id =0 -file_name =\graphics\wserv\WsGraphicBitmapAnimation.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0007-0001-Load-command011] -bitmap_id =3 -file_name =\graphics\wserv\WsGraphicBitmapAnimation.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0007-0001-SetFrameInfo-command012] -frameinfostate =EFrameInfoUnitialised -framecoordsinpixels_top =50 -framecoordsinpixels_left =50 -framecoordsinpixels_right =100 -framecoordsinpixels_bottom =100 -framesizeintwips_height =50 -framesizeintwips_width =50 -bitsperpixel =8 -delay =10000 -flags =EColor -framedisplaymode =EGray256 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0007-0001-SetBitmap-command013] -setbitmap =bitmap1 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0007-0001-SetMask-command014] -setmask =mask1 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0007-0001-SetFrameInfo-command015] -frameinfostate =EFrameInfoUnitialised -framecoordsinpixels_top =50 -framecoordsinpixels_left =50 -framecoordsinpixels_right =100 -framecoordsinpixels_bottom =100 -framesizeintwips_height =50 -framesizeintwips_width =50 -bitsperpixel =8 -delay =10000 -flags =EColor -framedisplaymode =EGray256 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0007-0001-SetBitmap-command016] -setbitmap =bitmap2 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0007-0001-SetMask-command017] -setmask =mask2 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0007-0001-NewL-command018] -framescount =2 -frame1 =frame1 -frame2 =frame2 - - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0008-0001-Load-command008] -bitmap_id =1 -file_name =\graphics\wserv\WsGraphicBitmapAnimation.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0008-0001-Load-command009] -bitmap_id =2 -file_name =\graphics\wserv\WsGraphicBitmapAnimation.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0008-0001-Load-command010] -bitmap_id =0 -file_name =\graphics\wserv\WsGraphicBitmapAnimation.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0008-0001-Load-command011] -bitmap_id =3 -file_name =\graphics\wserv\WsGraphicBitmapAnimation.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0008-0001-SetFrameInfo-command012] -frameinfostate =EFrameInfoUnitialised -framecoordsinpixels_top =50 -framecoordsinpixels_left =50 -framecoordsinpixels_right =100 -framecoordsinpixels_bottom =100 -framesizeintwips_height =50 -framesizeintwips_width =50 -bitsperpixel =8 -delay =10000 -flags =EColor -framedisplaymode =EGray256 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0008-0001-SetBitmap-command013] -setbitmap =bitmap1 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0008-0001-SetMask-command014] -setmask =mask1 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0008-0001-SetFrameInfo-command015] -frameinfostate =EFrameInfoUnitialised -framecoordsinpixels_top =50 -framecoordsinpixels_left =50 -framecoordsinpixels_right =100 -framecoordsinpixels_bottom =100 -framesizeintwips_height =50 -framesizeintwips_width =50 -bitsperpixel =8 -delay =10000 -flags =EColor -framedisplaymode =EGray256 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0008-0001-SetBitmap-command016] -setbitmap =bitmap2 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0008-0001-SetMask-command017] -setmask =mask2 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0008-0001-NewL-command018] -framescount =2 -frame1 =frame1 -frame2 =frame2 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0008-0001-Share-command019] -clientid =1 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0008-0001-UnShare-command020] -clientid =1 - - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0009-0001-Load-command008] -bitmap_id =1 -file_name =\graphics\wserv\WsGraphicBitmapAnimation.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0009-0001-Load-command009] -bitmap_id =2 -file_name =\graphics\wserv\WsGraphicBitmapAnimation.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0009-0001-Load-command010] -bitmap_id =0 -file_name =\graphics\wserv\WsGraphicBitmapAnimation.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0009-0001-Load-command011] -bitmap_id =3 -file_name =\graphics\wserv\WsGraphicBitmapAnimation.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0009-0001-SetFrameInfo-command012] -frameinfostate =EFrameInfoUnitialised -framecoordsinpixels_top =50 -framecoordsinpixels_left =50 -framecoordsinpixels_right =100 -framecoordsinpixels_bottom =100 -framesizeintwips_height =50 -framesizeintwips_width =50 -bitsperpixel =8 -delay =10000 -flags =EColor -framedisplaymode =EGray256 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0009-0001-SetBitmap-command013] -setbitmap =bitmap1 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0009-0001-SetMask-command014] -setmask =mask1 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0009-0001-SetFrameInfo-command015] -frameinfostate =EFrameInfoUnitialised -framecoordsinpixels_top =50 -framecoordsinpixels_left =50 -framecoordsinpixels_right =100 -framecoordsinpixels_bottom =100 -framesizeintwips_height =50 -framesizeintwips_width =50 -bitsperpixel =8 -delay =10000 -flags =EColor -framedisplaymode =EGray256 - - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0009-0001-SetBitmap-command016] -setbitmap =bitmap2 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0009-0001-SetMask-command017] -setmask =mask2 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0009-0001-NewL-command018] -framescount =2 -frame1 =frame1 -frame2 =frame2 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0009-0001-UnShare-command019] -clientid =1 - - - - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0010-0001-Load-command008] -bitmap_id =1 -file_name =\graphics\wserv\WsGraphicBitmapAnimation.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0010-0001-Load-command009] -bitmap_id =2 -file_name =\graphics\wserv\WsGraphicBitmapAnimation.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0010-0001-Load-command010] -bitmap_id =0 -file_name =\graphics\wserv\WsGraphicBitmapAnimation.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0010-0001-Load-command011] -bitmap_id =3 -file_name =\graphics\wserv\WsGraphicBitmapAnimation.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0010-0001-SetFrameInfo-command012] -frameinfostate =EFrameInfoUnitialised -framecoordsinpixels_top =50 -framecoordsinpixels_left =50 -framecoordsinpixels_right =100 -framecoordsinpixels_bottom =100 -framesizeintwips_height =50 -framesizeintwips_width =50 -bitsperpixel =8 -delay =10000 -flags =EColor -framedisplaymode =EGray256 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0010-0001-SetBitmap-command013] -setbitmap =bitmap1 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0010-0001-SetMask-command014] -setmask =mask1 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0010-0001-SetFrameInfo-command015] -frameinfostate =EFrameInfoUnitialised -framecoordsinpixels_top =50 -framecoordsinpixels_left =50 -framecoordsinpixels_right =100 -framecoordsinpixels_bottom =100 -framesizeintwips_height =50 -framesizeintwips_width =50 -bitsperpixel =8 -delay =10000 -flags =EColor -framedisplaymode =EGray256 - - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0010-0001-SetBitmap-command016] -setbitmap =bitmap2 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0010-0001-SetMask-command017] -setmask =mask2 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0010-0001-NewL-command018] -framescount =2 -frame1 =frame1 -frame2 =frame2 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0011-0001-SetFrameInfo-command003] -frameinfostate =EFrameInfoUnitialised -framecoordsinpixels_top =50 -framecoordsinpixels_left =50 -framecoordsinpixels_right =100 -framecoordsinpixels_bottom =100 -framesizeintwips_height =50 -framesizeintwips_width =50 -bitsperpixel =8 -flags =EColor -framedisplaymode =EGray256 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0011-0001-NewL-command004] -framescount =1 -frame1 =frame1 - - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0012-0001-Load-command004] -bitmap_id =1 -file_name =\graphics\wserv\WsGraphicBitmapAnimation.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0012-0001-SetFrameInfo-command005] -frameinfostate =EFrameInfoUnitialised -framecoordsinpixels_top =0 -framecoordsinpixels_left =0 -framecoordsinpixels_right =100 -framecoordsinpixels_bottom =150 -framesizeintwips_height =150 -framesizeintwips_width =100 -bitsperpixel =8 -delay =10000 -flags =EColor -framedisplaymode =EGray256 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0012-0001-SetBitmap-command006] -setbitmap =bitmap1 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0012-0001-NewL-command007] -uid =98765 -framescount =1 -frame1 =frame1 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0012-0001-Id-command008] -expected_uid =98765 - - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-new-command006] -ws =ws - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-CreateContext_command008] -context =wgc - - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-Load-command010] -bitmap_id =1 -file_name =\graphics\wserv\WsGraphicBitmapAnimation.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-SetFrameInfo-command011] -frameinfostate =EFrameInfoUnitialised -framecoordsinpixels_top =0 -framecoordsinpixels_left =0 -framecoordsinpixels_right =100 -framecoordsinpixels_bottom =150 -framesizeintwips_height =150 -framesizeintwips_width =100 -bitsperpixel =8 -delay =10000 -flags =EColor -framedisplaymode =EGray256 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-SetBitmap-command012] -setbitmap =bitmap1 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-NewL-command013] -uid =98765 -framescount =1 -frame1 =frame1 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-new_command014] -ws =ws - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-Construct_command015] -clienthandle =1 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-new_command016] -ws =ws - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-Construct_command017] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-SetRequiredDisplayMode_command018] -mode ={default_wserv, display_mode} - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-SetBackgroundColor_command019] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-SetAutoFlush_command021] -newFlushstate =true -expectedFlushstate =false - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-Activate_command022] -device =win - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-DrawWsGraphic_command024] -id_uid =98765 -destrect_top =10 -destrect_left =10 -destrect_bottom =160 -destrect_right =110 -wsga =wsga - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-Util_StartAnimTesterClientL_command027] -processname =TWsGraphicShare -id =98765 -rect_top =10 -rect_left =120 -rect_bottom =160 -rect_right =220 -wsga =wsga - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-RectCompare_command028] -rect1_top =10 -rect1_left =10 -rect1_bottom =160 -rect1_right =110 -rect2_top =10 -rect2_left =120 -rect2_bottom =160 -rect2_right =220 -expected =false -flags =EIncludeSprite - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-Util_CloseAnimTesterClientL_command029] -processname =TWsGraphicShare - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-Util_StartAnimTesterClientL_command031] -processname =TWsGraphicShare -id =98765 -rect_top =10 -rect_left =120 -rect_bottom =160 -rect_right =220 -wsga =wsga - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-RectCompare_command032] -rect1_top =10 -rect1_left =10 -rect1_bottom =160 -rect1_right =110 -rect2_top =10 -rect2_left =120 -rect2_bottom =160 -rect2_right =220 -expected =true -flags =EIncludeSprite - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-Util_CloseAnimTesterClientL_command033] -processname =TWsGraphicShare - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-Util_StartAnimTesterClientL_command035] -processname =TWsGraphicShare -id =98765 -rect_top =10 -rect_left =120 -rect_bottom =160 -rect_right =220 -wsga =wsga - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-RectCompare_command036] -rect1_top =10 -rect1_left =10 -rect1_bottom =160 -rect1_right =110 -rect2_top =10 -rect2_left =120 -rect2_bottom =160 -rect2_right =220 -expected =false -flags =EIncludeSprite - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0013-0001-Util_CloseAnimTesterClientL_command037] -processname =TWsGraphicShare - - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-new-command006] -ws =ws - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-CreateContext_command008] -context =wgc - - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-Load-command010] -bitmap_id =1 -file_name =\graphics\wserv\WsGraphicBitmapAnimation.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-SetFrameInfo-command011] -frameinfostate =EFrameInfoUnitialised -framecoordsinpixels_top =0 -framecoordsinpixels_left =0 -framecoordsinpixels_right =100 -framecoordsinpixels_bottom =150 -framesizeintwips_height =150 -framesizeintwips_width =100 -bitsperpixel =8 -delay =10000 -flags =EColor -framedisplaymode =EGray256 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-SetBitmap-command012] -setbitmap =bitmap1 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-NewL-command013] -uid =98765 -framescount =1 -frame1 =frame1 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-new_command014] -ws =ws - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-Construct_command015] -clienthandle =1 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-new_command016] -ws =ws - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-Construct_command017] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-SetRequiredDisplayMode_command018] -mode ={default_wserv, display_mode} - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-SetBackgroundColor_command019] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-SetAutoFlush_command021] -newFlushstate =true -expectedFlushstate =false - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-Activate_command022] -device =win - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-DrawWsGraphic_command024] -id_uid =98765 -destrect_top =10 -destrect_left =10 -destrect_bottom =160 -destrect_right =110 -wsga =wsga - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-Util_StartAnimTesterClientL_command027] -processname =TWsGraphicShare -id =98765 -rect_top =10 -rect_left =120 -rect_bottom =160 -rect_right =220 -wsga =wsga - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-RectCompare_command028] -rect1_top =10 -rect1_left =10 -rect1_bottom =160 -rect1_right =110 -rect2_top =10 -rect2_left =120 -rect2_bottom =160 -rect2_right =220 -expected =false -flags =EIncludeSprite - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-Util_CloseAnimTesterClientL_command029] -processname =TWsGraphicShare - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-Share-command030] -clientid =-525956871 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-Util_StartAnimTesterClientL_command031] -processname =TWsGraphicShare -id =98765 -rect_top =10 -rect_left =120 -rect_bottom =160 -rect_right =220 -wsga =wsga - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-RectCompare_command032] -rect1_top =10 -rect1_left =10 -rect1_bottom =160 -rect1_right =110 -rect2_top =10 -rect2_left =120 -rect2_bottom =160 -rect2_right =220 -expected =true -flags =EIncludeSprite - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-Util_CloseAnimTesterClientL_command033] -processname =TWsGraphicShare - - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-UnShare-command034] -clientid =-525956871 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-Util_StartAnimTesterClientL_command035] -processname =TWsGraphicShare -id =98765 -rect_top =10 -rect_left =120 -rect_bottom =160 -rect_right =220 -wsga =wsga - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-RectCompare_command036] -rect1_top =10 -rect1_left =10 -rect1_bottom =160 -rect1_right =110 -rect2_top =10 -rect2_left =120 -rect2_bottom =160 -rect2_right =220 -expected =false -flags =EIncludeSprite - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0014-0001-Util_CloseAnimTesterClientL_command037] -processname =TWsGraphicShare - - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-new-command006] -ws =ws - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-CreateContext_command008] -context =wgc - - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-Load-command010] -bitmap_id =1 -file_name =\graphics\wserv\WsGraphicBitmapAnimation.mbm -share_if_loaded =FALSE -use_rfile =FALSE - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-SetFrameInfo-command011] -frameinfostate =EFrameInfoUnitialised -framecoordsinpixels_top =0 -framecoordsinpixels_left =0 -framecoordsinpixels_right =100 -framecoordsinpixels_bottom =150 -framesizeintwips_height =150 -framesizeintwips_width =100 -bitsperpixel =8 -delay =10000 -flags =EColor -framedisplaymode =EGray256 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-SetBitmap-command012] -setbitmap =bitmap1 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-NewL-command013] -uid =98765 -framescount =1 -frame1 =frame1 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-new_command014] -ws =ws - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-Construct_command015] -clienthandle =1 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-new_command016] -ws =ws - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-Construct_command017] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-SetRequiredDisplayMode_command018] -mode ={default_wserv, display_mode} - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-SetBackgroundColor_command019] -color_red =255 -color_green =255 -color_blue =255 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-SetAutoFlush_command021] -newFlushstate =true -expectedFlushstate =false - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-Activate_command022] -device =win - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-DrawWsGraphic_command024] -id_uid =98765 -destrect_top =10 -destrect_left =10 -destrect_bottom =160 -destrect_right =110 -wsga =wsga - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-Util_StartAnimTesterClientL_command027] -processname =TWsGraphicUnshare -id =98765 -rect_top =10 -rect_left =120 -rect_bottom =160 -rect_right =220 -wsga =wsga - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-RectCompare_command028] -rect1_top =10 -rect1_left =10 -rect1_bottom =160 -rect1_right =110 -rect2_top =10 -rect2_left =120 -rect2_bottom =160 -rect2_right =220 -expected =false -flags =EIncludeSprite - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-Util_CloseAnimTesterClientL_command029] -processname =TWsGraphicUnshare - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-Share-command030] -clientid =-525956871 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-Util_StartAnimTesterClientL_command031] -processname =TWsGraphicUnshare -id =98765 -rect_top =10 -rect_left =120 -rect_bottom =160 -rect_right =220 -wsga =wsga - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-RectCompare_command032] -rect1_top =10 -rect1_left =10 -rect1_bottom =160 -rect1_right =110 -rect2_top =10 -rect2_left =120 -rect2_bottom =160 -rect2_right =220 -expected =false -flags =EIncludeSprite - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-Util_CloseAnimTesterClientL_command033] -processname =TWsGraphicUnshare - - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-UnShare-command034] -clientid =-525956871 - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-Util_StartAnimTesterClientL_command035] -processname =TWsGraphicUnshare -id =98765 -rect_top =10 -rect_left =120 -rect_bottom =160 -rect_right =220 -wsga =wsga - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-RectCompare_command036] -rect1_top =10 -rect1_left =10 -rect1_bottom =160 -rect1_right =110 -rect2_top =10 -rect2_left =120 -rect2_bottom =160 -rect2_right =220 -expected =false -flags =EIncludeSprite - -[GRAPHICS-WSERV-WsGraphicBitmapAnimation-PublicApi-0015-0001-Util_CloseAnimTesterClientL_command037] -processname =TWsGraphicUnshare - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/testdata/GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.ini --- a/graphicsapitest/graphicssvs/wserv/testdata/GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi.ini Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,111 +0,0 @@ -[include] -file1 =\graphics\t_graphics.ini - - -[wsGraphicMsgBuf] -name =wsGraphicMsgBuf - - -[GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0003-0001-Append_command02] -inputTypeId =1234 -inputText =Symbian OS -inputUseText8 =TRUE - - -[GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0004-0001-Append_command02] -inputTypeId =4321 -inputText =Symbian Library -inputUseText8 =FALSE - - -[GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0005-0001-Append_command02] -inputTypeId =1122 -inputText =Symbian -inputUseText8 =TRUE -inputMsgLen =7 - - -[GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0007-0001-Append_command02] -inputTypeId =1234 -inputText =Symbian OS -inputUseText8 =TRUE - -[GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0007-0001-Data_command03] -inputMsgPosition =0 -expected =Symbian OS - - -[GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0008-0001-Append_command02] -inputTypeId =1111 -inputText =SymbianPhone -inputUseText8 =TRUE - -[GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0008-0001-Data_command03] -inputMsgPosition =0 -inputFormat =%S - - -[GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0009-0001-Append_command02] -inputTypeId =1234 -inputText =Symbian OS -inputUseText8 =TRUE - -[GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0009-0001-Count_command03] -expected =1 - - -[GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0010-0001-Append_command02] -inputTypeId =1234 -inputText =Symbian OS -inputUseText8 =TRUE - -[GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0010-0001-TypeId_command03] -expected =1234 -inputMsgPosition =0 - - -[GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0011-0001-Append_command02] -inputTypeId =1234 -inputText =Symbian OS -inputUseText8 =TRUE - -[GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0011-0001-Remove_command03] -inputMsgPosition =0 - - -[GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0012-0001-Append_command02] -inputTypeId =1234 -inputText =Symbian OS -inputUseText8 =TRUE - - -[GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0013-0001-GetFixedMsg_command03] -inputMsgPosition =0 - - -[GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0101-0001-Append_command02] -inputTypeId =1234 -inputText =Symbian OS -inputUseText8 =TRUE - -[GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0101-0001-Data_command03] -inputMsgPosition =-1 -expected =Symbian OS - - -[GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0102-0001-Append_command02] -inputTypeId =1234 -inputText =Symbian OS -inputUseText8 =TRUE - -[GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0102-0001-TypeId_command03] -expected =1234 -inputMsgPosition =-1 - - -[GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0103-0001-Remove_command02] -inputMsgPosition =-1 - - -[GRAPHICS-WSERV-WsGraphicMsgBuf-PublicApi-0104-0001-Remove_command02] -inputMsgPosition =0 diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/testdata/GRAPHICS-WSERV-WsPointerCursor-PublicApi.ini --- a/graphicsapitest/graphicssvs/wserv/testdata/GRAPHICS-WSERV-WsPointerCursor-PublicApi.ini Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,185 +0,0 @@ -[include] -file1 =\graphics\t_graphics.ini - -[ws] -name =ws - -[win] -name =win - -[win2] -name =win2 - -[wingrp] -name =wingrp - -[pointcursor] -name =pointcursor -[mask1] -name =mask1 - -[bitmap1] -name =bitmap1 - -[bitmap2] -name =bitmap2 - -[bitmap3] -name =bitmap3 - -[bitmap4] -name =bitmap4 - -[RFbsSession1] -name =RFbsSession1 - -[scrdev] -name =scrdev - -[GRAPHICS-WSERV-WsPointerCursor-PublicApi-0002-0001-new_command004] -ws =ws - -[GRAPHICS-WSERV-WsPointerCursor-PublicApi-0003-0001-new_command004] -ws =ws - -[GRAPHICS-WSERV-WsPointerCursor-PublicApi-0003-0001-Construct_command005] -flag=0 - -[GRAPHICS-WSERV-WsPointerCursor-Setup-0004-0001-new_command001] -ws =ws - -[GRAPHICS-WSERV-WsPointerCursor-Setup-0004-0001-Construct_command002] -clienthandle =1 - -[GRAPHICS-WSERV-WsPointerCursor-PublicApi-0004-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-WsPointerCursor-Setup-0004-0001-Construct_command004] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-WsPointerCursor-PublicApi-0004-0001-new_command006] -ws =ws - -[GRAPHICS-WSERV-WsPointerCursor-PublicApi-0004-0001-Construct_command007] -flag=0 - -[GRAPHICS-WSERV-WsPointerCursor-PublicApi-0004-0001-Load_command009] -bitmap_id =0 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile=FALSE - -[GRAPHICS-WSERV-WsPointerCursor-PublicApi-0004-0001-Load_command011] -bitmap_id =1 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile=FALSE - -[GRAPHICS-WSERV-WsPointerCursor-PublicApi-0004-0001-AppendMember_command012] -spritemember_bitmap =bitmap1 -spritemember_maskbitmap =mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask =FALSE; - -[GRAPHICS-WSERV-WsPointerCursor-PublicApi-0004-0001-Load_command014] -bitmap_id =2 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE - -[GRAPHICS-WSERV-WsPointerCursor-PublicApi-0004-0001-AppendMember_command015] -spritemember_bitmap =bitmap2 -spritemember_maskbitmap=mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; - -[GRAPHICS-WSERV-WsPointerCursor-PublicApi-0004-0001-Load_command017] -bitmap_id =3 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE - -[GRAPHICS-WSERV-WsPointerCursor-PublicApi-0004-0001-AppendMember_command018] -spritemember_bitmap =bitmap3 -spritemember_maskbitmap=mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; - -[GRAPHICS-WSERV-WsPointerCursor-PublicApi-0004-0001-SetCustomPointerCursor_command020] -pointerCursor=pointcursor - -[GRAPHICS-WSERV-WsPointerCursor-PublicApi-0004-0001-new_command21] -ws =ws - -[GRAPHICS-WSERV-WsPointerCursor-PublicApi-0004-0001-RectCompare_command23] -flags=EIncludeSprite -rect1_top=10 -rect1_left=10 -rect1_bottom=60 -rect1_right=60 -rect2_top=150 -rect2_left=150 -rect2_bottom=200 -rect2_right=200 -expected=true - -[GRAPHICS-WSERV-WsPointerCursor-PublicApi-0004-0001-SetPointerCursorMode_command24] -pointercurmode=EPointerCursorNormal - -[GRAPHICS-WSERV-WsPointerCursor-PublicApi-0004-0001-SimulatePointerEvent_command25] -type =EButton1Down -pos_x =10 -pos_y =10 - -[GRAPHICS-WSERV-WsPointerCursor-PublicApi-0004-0001-SetPointerCursorPosition_command26] -ptrcurpos_x=150 -ptrcurpos_y=150 - -[GRAPHICS-WSERV-WsPointerCursor-PublicApi-0004-0001-RectCompare_command27] -flags=EIncludeSprite -rect1_top=10 -rect1_left=10 -rect1_bottom=60 -rect1_right=60 -rect2_top=150 -rect2_left=150 -rect2_bottom=200 -rect2_right=200 -expected=false - -[GRAPHICS-WSERV-WsPointerCursor-PublicApi-0005-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-WsPointerCursor-PublicApi-0005-0001-Construct_command004] -flag=ESpriteFlash|ESpriteNoChildClip|ESpriteNoShadows - -[GRAPHICS-WSERV-WsPointerCursor-PublicApi-0006-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-WsPointerCursor-PublicApi-0006-0001-Construct_command004] -flag=ESpriteNoChildClip - -[GRAPHICS-WSERV-WsPointerCursor-PublicApi-0007-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-WsPointerCursor-PublicApi-0007-0001-Construct_command004] -flag=ESpriteNoShadows - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/testdata/GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini --- a/graphicsapitest/graphicssvs/wserv/testdata/GRAPHICS-WSERV-WsScreenDevice-PublicAPI.ini Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,4059 +0,0 @@ -[include] -file1=\graphics\t_graphics.ini - -[ws] -name=ws - -[scrdev] -name=scrdev - -[gct] -name=gct - -[wgc] -name=wgc - -[font] -name=font - -[palette] -name=palette - -[algstyle] -name=algstyle - -[fbsbitmap] -name=fbsbitmap - -[wingrp] -name=wingrp - -[win] -name=win - -[wingrp] -name=wingrp - -[sprite1] -name=sprite1 - -[sprite2] -name=sprite2 - -[sprite3] -name=sprite3 - -[fbsbmp1] -name =fbsbmp1 - -[fbsbmp2] -name =fbsbmp2 - -[fbsbmp3] -name =fbsbmp3 - -[fbsbmp4] -name =fbsbmp4 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0002-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0003-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0004-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0005-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0005-0001-Construct_command04] -defaultscreennumber=0 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0006-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0006-0001-DisplayMode_command05] -displaymode={default_wserv, display_mode} - - - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0010-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0010-0001-PointerRect_command05] -expected_left={default_wserv, pointer_rect_left} -expected_top={default_wserv, pointer_rect_top} -expected_right={default_wserv, pointer_rect_right} -expected_bottom={default_wserv, pointer_rect_bottom} - - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0011-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0011-0001-CreateContext_command05] -context=wgc - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0011-0001-new_command06] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0011-0001-Construct_command07] -clienthandle=1 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0011-0001-new_command08] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0011-0001-Construct_command09] -parent=wingrp -handle=2 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0011-0001-SetRequiredDisplayMode_command10] -mode=EColor4K - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0011-0001-SetBackgroundColor_command11] -color_red=255 -color_green=0 -color_blue=0 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0011-0001-SetAutoFlush_command13] -newFlushstate=TRUE -expectedFlushstate=FALSE - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0011-0001-Activate_command14] -device=win - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0011-0001-checkPixels_command17] -pixel1_x=19 -pixel1_y=10 -expected1_red=255 -expected1_green=0 -expected1_blue=0 -pixel2_x=50 -pixel2_y=30 -expected2_red=255 -expected2_green=0 -expected2_blue=0 -pixel3_x=20 -pixel3_y=29 -expected1_red=255 -expected1_green=0 -expected1_blue=0 -pixel4_x=10 -pixel4_y=50 -expected4_red=255 -expected4_green=0 -expected4_blue=0 - - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0012-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0012-0001-CreateContext_command05] -windowgc=wgc - - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0012-0001-new_command06] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0012-0001-Construct_command07] -clienthandle=1 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0012-0001-new_command08] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0012-0001-Construct_command09] -parent=wingrp -handle=2 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0012-0001-SetRequiredDisplayMode_command10] -mode=EColor4K - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0012-0001-SetBackgroundColor_command11] -color_red=0 -color_green=255 -color_blue=0 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0012-0001-SetAutoFlush_command13] -newFlushstate=TRUE -expectedFlushstate=FALSE - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0012-0001-Activate_command14] -device=win - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0012-0001-checkPixels_command17] -pixel1_x=19 -pixel1_y=10 -expected1_red=0 -expected1_green=255 -expected1_blue=0 -pixel2_x=50 -pixel2_y=30 -expected2_red=0 -expected2_green=255 -expected2_blue=0 -pixel3_x=20 -pixel3_y=29 -expected1_red=0 -expected1_green=255 -expected1_blue=0 -pixel4_x=10 -pixel4_y=50 -expected4_red=0 -expected4_green=255 -expected4_blue=0 - - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0013-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0013-0001-GetNearestFontToDesignHeightInTwips_command05] -font_name=DejaVu Sans Mono -font_height=72 -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0013-0001-FontSpecInTwips_command06] -expected_font_name=DejaVu Sans Mono -expected_font_height=72 - - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0014-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0014-0001-GetNearestFontToMaxHeightInTwips_command05] -font_name=DejaVu Sans Mono -font_height=72 -maxheight=100 -font=font - - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0014-0001-FontSpecInTwips_command06] -expected_font_name=DejaVu Sans Mono -expected_font_height=72 - - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0015-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0015-0001-NumTypefaces_command05] -expected={default_wserv,typefaces} - - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0016-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0016-0001-TypefaceSupport_command05] -index=0 -expected_typeface_name=Symbol - - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0017-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0017-0001-TypefaceSupport_command05] -index=100 -expected_typeface_name= - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0018-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0018-0001-FontHeightInTwips_command05] -typeface_index=0 -height_index=0 -expected={default_wserv,font_height} - - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0019-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0019-0001-FontHeightInTwips_command05] -typeface_index=100 -height_index=10 -expected=0 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0020-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0020-0001-SizeInPixels_command05] -expected_width={default_wserv, scr_width} -expected_height={default_wserv, scr_height} - - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0021-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0021-0001-SizeInTwips_command05] -expected_width={default_wserv, scr_twips_width} -expected_height={default_wserv, scr_twips_height} - - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0022-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0022-0001-HorizontalTwipsToPixels_command05] -twips={default_wserv, scr_twips_width} -expected={default_wserv, scr_width} - - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0023-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0023-0001-VerticalTwipsToPixels_command05] -twips={default_wserv, scr_twips_height} -expected={default_wserv, scr_height} - - - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0024-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0024-0001-HorizontalPixelsToTwips_command05] -pixels={default_wserv, scr_width} -expected={default_wserv, scr_twips_width} - - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0025-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0025-0001-VerticalPixelsToTwips_command05] -pixels={default_wserv, scr_height} -expected={default_wserv, scr_twips_height} - - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0048-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0048-0001-SetScreenSizeAndRotation_command05] -rotation=EGraphicsOrientationNormal -pixelsize_width={default_wserv, scr_width} -pixelsize_height={default_wserv, scr_height} - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0048-0001-GetDefaultScreenSizeAndRotation_command06] -rotation=EGraphicsOrientationNormal -pixelsize_width={default_wserv, scr_width} -pixelsize_height={default_wserv, scr_height} -twips=FALSE - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0049-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0049-0001-GetScreenModeSizeAndRotation_command05] -mode=0 -rotation=EGraphicsOrientationNormal -pixelsize_width={default_wserv, scr_width} -pixelsize_height={default_wserv, scr_height} -twips=FALSE - - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0050-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0050-0001-SetScreenSizeAndRotation_command05] -rotation=EGraphicsOrientationNormal -pixelsize_width={default_wserv, scr_width} -pixelsize_height={default_wserv, scr_height} -twipssize_width={default_wserv, scr_twips_width} -twipssize_height={default_wserv, scr_twips_height} - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0050-0001-GetDefaultScreenSizeAndRotation_command06] -rotation=EGraphicsOrientationNormal -pixelsize_width={default_wserv, scr_width} -pixelsize_height={default_wserv, scr_height} -twips=TRUE -twipssize_width={default_wserv, scr_twips_width} -twipssize_height={default_wserv, scr_twips_height} - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0051-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0051-0001-GetScreenModeSizeAndRotation_command05] -mode=0 -rotation=EGraphicsOrientationNormal -pixelsize_width={default_wserv, scr_width} -pixelsize_height={default_wserv, scr_height} -twips=TRUE -twipssize_width={default_wserv, scr_twips_width} -twipssize_height={default_wserv, scr_twips_height} - - - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0052-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0052-0001-ScreenModeEnforcement_command05] -expected=ESizeEnforcementNone - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0053-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0053-0001-NumScreenModes_command05] -expected={default_wserv, screens} - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0054-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0054-0001-GetScreenSizeModeList_command05] -expectedcount=1 -mode1=0 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0055-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0055-0001-GetDefaultScreenModeOrigin_command05] -expected_x=0 -expected_y=0 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0056-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0056-0001-CurrentScreenMode_command05] -expected={default_wserv, screen} - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0057-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0057-0001-GetRotationsList_command05] -mode={default_wserv, screen} -expectedcount=1 -rotation1=EGraphicsOrientationNormal - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0058-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0058-0001-GetScreenModeOrigin_command05] -mode={default_wserv, screen} -expected_x=0 -expected_y=0 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0059-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0059-0001-SetAppScreenMode_command05] -mode={default_wserv, screen} - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0060-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0060-0001-GetCurrentScreenModeScale_command05] -expected_width=1 -expected_height=1 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0061-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0061-0001-GetScreenModeScale_command05] -mode={default_wserv, screen} -expected_width=1 -expected_height=1 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0062-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0062-0001-GetCurrentScreenModeScaledOrigin_command05] -expected_x=0 -expected_y=0 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0063-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0063-0001-GetScreenModeScaledOrigin_command05] -mode={default_wserv, screen} -expected_x=0 -expected_y=0 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0064-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0064-0001-GetScreenModeDisplayMode_command05] -mode={default_wserv, screen} -expected={default_wserv, display_mode} - - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0100-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0100-0001-Construct_command04] -defaultscreennumber=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0100-0001-GetPixel_command05] -expected_red=255 -expected_green=255 -expected_blue=255 -point_x=1 -point_y=1 - - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0101-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0101-0001-CreateContext_command05] -context=wgc -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0101-0001-new_command06] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0101-0001-Construct_command07] -clienthandle=1 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0101-0001-new_command08] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0101-0001-Construct_command09] -parent=wingrp -handle=2 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0101-0001-SetRequiredDisplayMode_command10] -mode={default_wserv, display_mode} -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0101-0001-SetBackgroundColor_command11] -color_red=255 -color_green=0 -color_blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0101-0001-SetAutoFlush_command13] -newFlushstate=true -expectedFlushstate=false -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0101-0001-Activate_command14] -device=win -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0101-0001-GetScanLine_command17] -point_x=1 -point_y=1 -length=50 -buff_length=500 -displaymode={default_wserv, display_mode} -#for checking scanline which is got. Below is optional. -checkScanLine=true -size_width=100 -size_height=100 -displaymode={default_wserv, display_mode} -scanline_y=1 -checkPointNum=3 -point1_x=1 -expected_point1_red=255 -expected_point1_blue=0 -expected_point1_green=0 -point2_x=25 -expected_point2_red=255 -expected_point2_blue=0 -expected_point2_green=0 -point3_x=49 -expected_point3_red=255 -expected_point3_blue=0 -expected_point3_green=0 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0102-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0102-0001-Construct_command04] -defaultscreennumber=0 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0102-0001-GetNearestFontToDesignHeightInTwips_command05] -font_name=Acb14 -font_height=10 -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0102-0001-FontSpecInTwips_command06] -expected_font_name=Acb14 -expected_font_height=10 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0102-0001-ReleaseFont_command07] -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0102-0001-AddFile_command08] -file=\graphics\wserv\testfontws.gdr - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0102-0001-GetNearestFontToDesignHeightInTwips_command09] -font_name=Acb14 -font_height=167 -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0102-0001-FontSpecInTwips_command10] -expected_font_name=Acb14 -expected_font_height=167 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0102-0001-ReleaseFont_command11] -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0102-0001-RemoveFile_command12] -file=\graphics\wserv\testfontws.gdr - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0102-0001-GetNearestFontToDesignHeightInTwips_command13] -font_name=Acb14 -font_height=15 -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0102-0001-FontSpecInTwips_command14] -expected_font_name=Acb14 -expected_font_height=15 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0102-0001-ReleaseFont_command15] -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0104-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0104-0001-Construct_command04] -defaultscreennumber=0 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0104-0001-GetNearestFontToDesignHeightInPixels_command05] -font_name=DejaVu Sans Mono -font_height=30 -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0104-0001-FontSpecInTwips_command06] -expected_font_name=DejaVu Sans Mono -expected_font_height=357 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0104-0001-ReleaseFont_command07] -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0105-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0105-0001-Construct_command04] -defaultscreennumber=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0105-0001-GetNearestFontToMaxHeightInPixels_command05] -font_name=DejaVu Sans Mono -font_height=30 -font=font -maxheight=60 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0105-0001-FontSpecInTwips_command06] -expected_font_name=DejaVu Sans Mono - -expected_font_height=560 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0105-0001-ReleaseFont_command07] -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0106-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0106-0001-CreateContext_command05] -context=wgc -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0106-0001-new_command06] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0106-0001-Construct_command07] -clienthandle=1 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0106-0001-new_command08] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0106-0001-Construct_command09] -parent=wingrp -handle=2 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0106-0001-SetRequiredDisplayMode_command10] -mode={default_wserv, display_mode} -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0106-0001-SetBackgroundColor_command11] -color_red=255 -color_green=255 -color_blue=255 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0106-0001-SetAutoFlush_command13] -newFlushstate=true -expectedFlushstate=false -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0106-0001-Activate_command14] -device=win -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0106-0001-SetBrushColor_command16] -color_red=255 -color_green=0 -color_blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0106-0001-SetBrushStyle_command17] -brushstyle=ESolidBrush -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0106-0001-SetPenColor_command18] -color_red=0 -color_green=0 -color_blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0106-0001-DrawRect_command19] -rect_top=0 -rect_left=0 -rect_bottom=50 -rect_right=50 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0106-0001-DrawRect_command20] -rect_top=0 -rect_left=50 -rect_bottom=50 -rect_right=100 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0106-0001-DrawRect_command21] -rect_top=0 -rect_left=100 -rect_bottom=50 -rect_right=110 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0106-0001-RectCompare_command23] -rect1_top=0 -rect1_left=0 -rect1_bottom=50 -rect1_right=50 -rect2_top=0 -rect2_left=50 -rect2_bottom=50 -rect2_right=100 -expected=true -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0106-0001-RectCompare_command24] -rect1_top=0 -rect1_left=0 -rect1_bottom=50 -rect1_right=50 -rect2_top=0 -rect2_left=100 -rect2_bottom=50 -rect2_right=150 -expected=false - - - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0107-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0107-0001-CreateContext_command05] -context=wgc -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0107-0001-new_command06] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0107-0001-Construct_command07] -clienthandle=1 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0107-0001-new_command08] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0107-0001-Construct_command09] -parent=wingrp -handle=2 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0107-0001-SetRequiredDisplayMode_command10] -mode={default_wserv, display_mode} -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0107-0001-SetBackgroundColor_command11] -color_red=255 -color_green=255 -color_blue=255 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0107-0001-SetAutoFlush_command13] -newFlushstate=true -expectedFlushstate=false -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0107-0001-Activate_command14] -device=win -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0107-0001-SetBrushColor_command16] -color_red=255 -color_green=0 -color_blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0107-0001-SetBrushStyle_command17] -brushstyle=ESolidBrush -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0107-0001-SetPenColor_command18] -color_red=0 -color_green=0 -color_blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0107-0001-DrawRect_command19] -rect_top=0 -rect_left=0 -rect_bottom=50 -rect_right=50 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0107-0001-DrawRect_command20] -rect_top=0 -rect_left=50 -rect_bottom=50 -rect_right=100 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0107-0001-DrawRect_command21] -rect_top=0 -rect_left=100 -rect_bottom=50 -rect_right=110 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0107-0001-RectCompare_command23] -rect1_top=0 -rect1_left=0 -rect1_bottom=50 -rect1_right=50 -rect2_top=0 -rect2_left=50 -rect2_bottom=50 -rect2_right=100 -expected=true -flags=EIncludeSprite -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0107-0001-RectCompare_command24] -rect1_top=0 -rect1_left=0 -rect1_bottom=50 -rect1_right=50 -rect2_top=0 -rect2_left=100 -rect2_bottom=50 -rect2_right=150 -expected=false -flags=EIncludeSprite - - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-CreateContext_command05] -context=wgc -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-new_command06] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-Construct_command07] -clienthandle =1 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-new_command08] -ws =ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-Construct_command09] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-SetAutoFlush_command11] -newFlushstate=true -expectedFlushstate=false - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-Activate_command12] -device=win - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-new_command15] -ws =ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-construct_command16] -win =win -flag =1 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-loadmask_command18] -bitmap_id =0 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =TRUE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile=FALSE -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-load_command20] -bitmap_id =1 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =TRUE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile=FALSE -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-appendmember_command21] -spritemember_bitmap =fbsbmp2 -spritemember_maskbitmap =fbsbmp1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask =FALSE -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-load_command23] -bitmap_id =2 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =TRUE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-appendmember_command24] -spritemember_bitmap =fbsbmp3 -spritemember_maskbitmap=fbsbmp1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-load_command26] -bitmap_id =3 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =TRUE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-appendmember_command27] -spritemember_bitmap =fbsbmp4 -spritemember_maskbitmap=fbsbmp1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-SetPosition_command28] -pos_x=0 -pos_y=0 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-new_command29] -ws =ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-construct_command30] -win =win -flag =1 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-appendmember_command31] -spritemember_bitmap =fbsbmp2 -spritemember_maskbitmap =fbsbmp1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask =FALSE; - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-appendmember_command32] -spritemember_bitmap =fbsbmp3 -spritemember_maskbitmap=fbsbmp1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-appendmember_command33] -spritemember_bitmap =fbsbmp4 -spritemember_maskbitmap=fbsbmp1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-SetPosition_command34] -pos_x=100 -pos_y=0 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-SetTextCursor_command37] -win=win -pos_x=0 -pos_y=80 -cursor_type=ETypeRectangle -cursor_flags=EFlagNoFlash -cursor_height=30 -cursor_width=10 -cursor_ascent=10 -cursor_color_red=255 -cursor_color_green=255 -cursor_color_blue=255 - - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-RectCompare_command38] -rect1_left=0 -rect1_top=0 -rect1_right=50 -rect1_bottom=50 -rect2_left=120 -rect2_top=0 -rect2_right=170 -rect2_bottom=50 -expected=true -flags=ERemoveSprite - - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-RectCompare_command39] -rect1_left=0 -rect1_top=0 -rect1_right=50 -rect1_bottom=50 -rect2_left=100 -rect2_top=0 -rect2_right=150 -rect2_bottom=50 -expected=true -flags=EIncludeSprite - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0108-0001-RectCompare_command40] -rect1_left=0 -rect1_top=80 -rect1_right=50 -rect1_bottom=180 -rect2_left=100 -rect2_top=80 -rect2_right=150 -rect2_bottom=180 -expected=false -flags=EIncludeTextCursor - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0109-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0109-0001-Construct_command04] -defaultscreennumber=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0109-0001-GetScreenNumber_command05] -expected=0 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0110-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0110-0001-Construct_command04] -defaultscreennumber=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0110-0001-SetBackLight_command05] -backlight=false -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0110-0001-SetBackLight_command06] -backlight=true - - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0146-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0146-0001-GetNearestFontToDesignHeightInPixels_command05] -font_name={default_fbserv,font_name} -#Arial -font_height=10 -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0146-0001-ReleaseFont_command06] -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0146-0001-GetNearestFontToDesignHeightInPixels_command07] -font_name={default_fbserv,font_name} -#Arial -font_height=10 -font=font - - - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0150-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0150-0001-FontHeightInPixels_command05] -typeface_index=0 -height_index=0 -expected=11 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0150-0001-FontHeightInPixels_command06] -typeface_index=1 -height_index=0 -expected=13 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0150-0001-FontHeightInPixels_command07] -typeface_index=0 -height_index=1 -expected=16 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0150-0001-FontHeightInPixels_command08] -typeface_index=1 -height_index=1 -expected=18 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0151-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0151-0001-FontHeightInPixels_command05] -typeface_index=10 -height_index=10 -expected={default_wserv, font_height_10_10} - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0151-0001-FontHeightInPixels_command06] -typeface_index=100 -height_index=100 -expected=0 - - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0153-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0153-0001-PaletteAttributes_command05] -expected_modifiable=false -expected_entries=65536 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0154-0001-NewL_command01] -number_of_colors=256 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0154-0001-new_command04] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0154-0001-SetCustomPalette_command06] -palette=palette -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0154-0001-GetPalette_command07] -palette=palette - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0156-0001-new_command04] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0156-0001-GetFontById_command07] -font_uid=268435493 -#positive test uid -alg_style=algstyle -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0156-0001-HeightInPixels_command08] -expected_result=13 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0157-0001-new_command04] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0157-0001-GetFontById_command07] -font_uid=270504055 -#negative test uid -alg_style=algstyle -font=font - - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-CreateContext_command05] -context=wgc -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-new_command06] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-Construct_command07] -clienthandle=1 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-new_command08] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-Construct_command09] -parent=wingrp -handle=2 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-SetRequiredDisplayMode_command10] -mode={default_wserv, display_mode} -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-SetBackgroundColor_command11] -color_red=255 -color_green=255 -color_blue=255 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-SetAutoFlush_command13] -newFlushstate=true -expectedFlushstate=false -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-Activate_command14] -device=win -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-SetBrushColor_command16] -color_red=255 -color_green=0 -color_blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-SetBrushStyle_command17] -brushstyle=ESolidBrush -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-SetPenColor_command18] -color_red=0 -color_green=0 -color_blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-DrawRect_command19] -rect_top=0 -rect_left=0 -rect_bottom=100 -rect_right=100 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-Create_command22] -height={default_wserv, scr_height} -width={default_wserv, scr_width} -displaymode={default_wserv, display_mode} -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-CopyScreenToBitmap_command23] -bitmap=fbsbitmap -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-GetPixel_command24] -point_x=0 -point_y=0 -red=0 -green=0 -blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-GetPixel_command25] -point_x=99 -point_y=99 -red=0 -green=0 -blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-GetPixel_command26] -point_x=50 -point_y=99 -red=0 -green=0 -blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-GetPixel_command27] -point_x=99 -point_y=50 -red=0 -green=0 -blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-GetPixel_command28] -point_x=50 -point_y=100 -red=255 -green=255 -blue=255 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-GetPixel_command29] -point_x=100 -point_y=50 -red=255 -green=255 -blue=255 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-GetPixel_command30] -point_x=1 -point_y=1 -red=255 -green=0 -blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0158-0001-GetPixel_command31] -point_x=98 -point_y=98 -red=255 -green=0 -blue=0 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-CreateContext_command05] -context=wgc -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-new_command06] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-Construct_command07] -clienthandle=1 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-new_command08] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-Construct_command09] -parent=wingrp -handle=2 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-SetRequiredDisplayMode_command10] -mode={default_wserv, display_mode} -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-SetBackgroundColor_command11] -color_red=255 -color_green=255 -color_blue=255 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-SetAutoFlush_command13] -newFlushstate=true -expectedFlushstate=false -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-Activate_command14] -device=win -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-SetBrushColor_command16] -color_red=255 -color_green=0 -color_blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-SetBrushStyle_command17] -brushstyle=ESolidBrush -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-SetPenColor_command18] -color_red=0 -color_green=0 -color_blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-DrawRect_command19] -rect_top=0 -rect_left=0 -rect_bottom=100 -rect_right=100 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-Create_command22] -height=100 -width=100 -displaymode={default_wserv, display_mode} -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-CopyScreenToBitmap_command23] -bitmap=fbsbitmap -rect_top=0 -rect_left=0 -rect_bottom=100 -rect_right=100 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-GetPixel_command24] -point_x=0 -point_y=0 -red=0 -green=0 -blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-GetPixel_command25] -point_x=99 -point_y=99 -red=0 -green=0 -blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-GetPixel_command26] -point_x=50 -point_y=99 -red=0 -green=0 -blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-GetPixel_command27] -point_x=99 -point_y=50 -red=0 -green=0 -blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-GetPixel_command28] -point_x=1 -point_y=1 -red=255 -green=0 -blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0159-0001-GetPixel_command29] -point_x=98 -point_y=98 -red=255 -green=0 -blue=0 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0160-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0160-0001-Construct_command04] -defaultscreennumber=10000 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0161-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0161-0001-HorizontalTwipsToPixels_command05] -twips={device_map, horizontal_twips_1} -expected={device_map, horizontal_pixels_1} -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0161-0001-HorizontalTwipsToPixels_command06] -twips=0 -expected=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0161-0001-HorizontalTwipsToPixels_command07] -twips={device_map, horizontal_twips_2} -expected={device_map, horizontal_pixels_2} - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0162-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0162-0001-VerticalTwipsToPixels_command05] -twips={device_map, vertical_twips_1} -expected={device_map, vertical_pixels_1} -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0162-0001-VerticalTwipsToPixels_command06] -twips=0 -expected=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0162-0001-VerticalTwipsToPixels_command07] -twips={device_map, vertical_twips_2} -expected={device_map, vertical_pixels_2} - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0163-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0163-0001-HorizontalPixelsToTwips_command05] -pixels={device_map, horizontal_pixels_3} -expected={device_map, horizontal_twips_3} -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0163-0001-HorizontalPixelsToTwips_command06] -pixels=0 -expected=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0163-0001-HorizontalPixelsToTwips_command07] -pixels={device_map, horizontal_pixels_4} -expected={device_map, horizontal_twips_4} - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0164-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0164-0001-VerticalPixelsToTwips_command05] -pixels={device_map, vertical_pixels_3} -expected={device_map, vertical_twips_3} -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0164-0001-VerticalPixelsToTwips_command06] -pixels=0 -expected=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0164-0001-VerticalPixelsToTwips_command07] -pixels={device_map, vertical_pixels_4} -expected={device_map, vertical_twips_4} - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0165-0001-CreateContext_command02] -windowgc=wgc - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0180-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0180-0001-GetNearestFontToDesignHeightInTwips_command05] -font_name=DejaVu Sans Mono -font_height=1000000 -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0180-0001-FontSpecInTwips_command06] -expected_font_name={default_wserv, font_maxheight} - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0180-0001-GetNearestFontToDesignHeightInTwips_command07] -font_name=DejaVu Sans Mono -font_height=0 -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0180-0001-FontSpecInTwips_command08] -expected_font_name={default_wserv, font_minheight} - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0180-0001-GetNearestFontToDesignHeightInTwips_command09] -font_name=DejaVu Sans Mono -font_height=-1 -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0180-0001-FontSpecInTwips_command10] -expected_font_name={default_wserv, font_minheight} - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0181-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0181-0001-GetNearestFontToDesignHeightInTwips_command05] -font_name= -font_height=50 -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0181-0001-FontSpecInTwips_command06] -expected_font_name=DejaVu Sans Mono - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0182-0001-new_command03] -ws=ws - - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0182-0001-GetNearestFontToDesignHeightInTwips_command05] -font_name=Acb14 -font_height=167 -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0182-0001-FontSpecInTwips_command06] -expected_font_name=Acb14 -expected_font_height=167 - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0182-0001-ReleaseFont_command07] -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0182-0001-AddFile_command08] -file=\graphics\wserv\testfontws.gdr - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0182-0001-GetNearestFontToDesignHeightInTwips_command09] -font_name=Acb14 -font_height=167 -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0182-0001-FontSpecInTwips_command10] -expected_font_name=Acb14 -expected_font_height=167 - - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0182-0001-ReleaseFont_command11] -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0182-0001-RemoveFile_command12] -file=\graphics\wserv\testfontws.gdr - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0182-0001-GetNearestFontToDesignHeightInTwips_command13] -font_name=Acb14 -font_height=167 -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0182-0001-FontSpecInTwips_command14] -expected_font_name=Acb14 -expected_font_height=167 - - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0182-0001-ReleaseFont_command15] -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0183-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0183-0001-GetNearestFontToMaxHeightInTwips_command05] -font_name=DejaVu Sans Mono -font_height=1000000 -maxheight=100 -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0183-0001-FontSpecInTwips_command06] -expected_font_name=DejaVu Sans Mono - -# expected_font_name={default_wserv, font_maxheight} -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0183-0001-ReleaseFont_command07] -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0183-0001-GetNearestFontToMaxHeightInTwips_command08] -font_name=DejaVu Sans Mono -font_height=0 -maxheight=100 -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0183-0001-FontSpecInTwips_command09] -expected_font_name=DejaVu Sans Mono - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0183-0001-ReleaseFont_command10] -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0183-0001-GetNearestFontToMaxHeightInTwips_command11] -font_name=DejaVu Sans Mono -font_height=-1 -maxheight=100 -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0183-0001-FontSpecInTwips_command12] -expected_font_name=DejaVu Sans Mono - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0183-0001-ReleaseFont_command13] -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0183-0001-GetNearestFontToMaxHeightInTwips_command14] -font_name=DejaVu Sans Mono -font_height=72 -maxheight=100000 -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0183-0001-ReleaseFont_command15] -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0183-0001-GetNearestFontToMaxHeightInTwips_command16] -font_name=DejaVu Sans Mono -font_height=72 -maxheight=0 -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0183-0001-FontSpecInTwips_command17] -expected_font_name=DejaVu Sans Mono - - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0183-0001-ReleaseFont_command18] -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0183-0001-GetNearestFontToMaxHeightInTwips_command19] -font_name=DejaVu Sans Mono -font_height=72 -maxheight=-1 -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0183-0001-FontSpecInTwips_command20] -expected_font_name=DejaVu Sans Mono - - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0183-0001-ReleaseFont_command21] -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0183-0001-GetNearestFontToMaxHeightInTwips_command22] -font_name=DejaVu Sans Mono -font_height=100000 -maxheight=-1 -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0183-0001-FontSpecInTwips_command23] -expected_font_name=DejaVu Sans Mono - - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0183-0001-ReleaseFont_command24] -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0184-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0184-0001-GetNearestFontToMaxHeightInTwips_command05] -font_name= -font_height=50 -maxheight=60 -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0184-0001-FontSpecInTwips_command06] -expected_font_name=DejaVu Sans Mono - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0184-0001-ReleaseFont_command07] -font=font - - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0185-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0185-0001-GetNearestFontToMaxHeightInTwips_command05] -font_name=Acb14 -font_height=167 -maxheight=200 -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0185-0001-FontSpecInTwips_command06] -expected_font_name=Acb14 -expected_font_height=167 - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0185-0001-ReleaseFont_command07] -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0185-0001-AddFile_command08] -file=\graphics\wserv\testfontws.gdr - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0185-0001-GetNearestFontToMaxHeightInTwips_command09] -font_name=Acb14 -font_height=167 -maxheight=200 -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0185-0001-FontSpecInTwips_command10] -expected_font_name=Acb14 -expected_font_height=167 - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0185-0001-ReleaseFont_command11] -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0185-0001-RemoveFile_command12] -file=\graphics\wserv\testfontws.gdr - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0185-0001-GetNearestFontToMaxHeightInTwips_command13] -font_name=Acb14 -font_height=167 -maxheight=200 -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0185-0001-FontSpecInTwips_command14] -expected_font_name=Acb14 -expected_font_height=167 - - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0185-0001-ReleaseFont_command15] -font=font - -#186 -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0186-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0186-0001-AddFile_command05] -file=\graphics\wserv\testfontws.gdr - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0186-0001-GetNearestFontToDesignHeightInTwips_command06] -font_name=Acb14 -font_height=167 -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0186-0001-FontSpecInTwips_command07] -expected_font_name=Acb14 -expected_font_height=167 - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0186-0001-ReleaseFont_command08] -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0186-0001-RemoveFile_command09] -file=\graphics\wserv\testfontws.gdr -#end of 186 - -#187 -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0187-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0187-0001-AddFile_command05] -file=\graphics\wserv\testfontws.gdr - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0187-0001-GetNearestFontToMaxHeightInTwips_command06] -font_name=Acb14 -font_height=167 -maxheight=200 -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0187-0001-FontSpecInTwips_command07] -expected_font_name=Acb14 -expected_font_height=167 - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0187-0001-ReleaseFont_command08] -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0187-0001-RemoveFile_command09] -file=\graphics\wserv\testfontws.gdr -#end of 187 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0192-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0192-0001-TypefaceSupport_command05] -index=-1 -expected_typeface_name= - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0194-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0194-0001-FontHeightInTwips_command05] -typeface_index=0 -height_index=-1 -expected=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0194-0001-FontHeightInTwips_command06] -typeface_index=10000 -height_index=10000 -expected=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0194-0001-FontHeightInTwips_command07] -typeface_index=0 -height_index=10000 -expected={default_wserv,font_height_case0194} - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0195-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0195-0001-FontHeightInTwips_command05] -typeface_index=-1 -height_index=0 -expected=0 - -#Target datum of test cases 0200 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0200-0001-new_command03] -ws=ws -#GetPixel() test for negative x-coordinate -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0200-0001-GetPixel_command05] -point_x=-1 -point_y=0 -red=255 -green=255 -blue=255 -#GetPixel() test for negative y-coordinate -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0200-0001-GetPixel_command06] -point_x=0 -point_y=-1 -red=255 -green=255 -blue=255 -#GetPixel() test for negative x- and y-coordinate -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0200-0001-GetPixel_command07] -point_x=-1 -point_y=-1 -red=255 -green=255 -blue=255 -#GetPixel() test for too big x-coordinate -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0200-0001-GetPixel_command08] -point_x=10000 -point_y=0 -red=255 -green=255 -blue=255 -#GetPixel() test for too big y-coordinate -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0200-0001-GetPixel_command09] -point_x=0 -point_y=10000 -red=255 -green=255 -blue=255 -#GetPixel() test for too big x- and y-coordinate -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0200-0001-GetPixel_command10] -point_x=10000 -point_y=10000 -red=255 -green=255 -blue=255 -#End of datum definition - -#Target datum of test cases 0201 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0201-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0201-0001-AddFile_command05] -file=\graphics\wserv\non-exist.gdr -#End of datum definition - -#Target datum of test cases 0202 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0202-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0202-0001-AddFile_command05] -file=\graphics\wserv\test_rwssprite_bitmap.mbm -#End of datum definition - -#Target datum of test cases 0203 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0203-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0203-0001-GetNearestFontToDesignHeightInPixels_command05] -font_name=DejaVu Sans Mono -font_height=-1 -font=font -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0203-0001-FontSpecInTwips_command06] -expected_font_name={default_wserv, font_minheight} -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0203-0001-GetNearestFontToDesignHeightInPixels_command07] -font_name=DejaVu Sans Mono -font_height=10000 -font=font -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0203-0001-FontSpecInTwips_command08] -expected_font_name={default_wserv, font_maxheight} -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0203-0001-GetNearestFontToDesignHeightInPixels_command09] -font_name=DejaVu Sans Mono -font_height=0 -font=font -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0203-0001-FontSpecInTwips_command10] -expected_font_name={default_wserv, font_minheight} -#End of datum definition - -#Target datum of test cases 0204 -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0204-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0204-0001-GetNearestFontToDesignHeightInPixels_command05] -font_name= -font_height=50 -font=font -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0204-0001-FontSpecInTwips_command06] -expected_font_name=DejaVu Sans Mono - -#End of datum definition - -#Target datum of test cases 0206 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0206-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0206-0001-GetNearestFontToDesignHeightInPixels_command05] -font_name=Acb14 -font_height=167 -font=font -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0206-0001-FontSpecInTwips_command06] -expected_font_name=Acb14 -expected_font_height=167 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0206-0001-ReleaseFont_command07] -font=font -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0206-0001-AddFile_command08] -file=\graphics\wserv\testfontws.gdr -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0206-0001-GetNearestFontToDesignHeightInPixels_command09] -font_name=Acb14 -font_height=167 -font=font -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0206-0001-FontSpecInTwips_command10] -expected_font_name=Acb14 -expected_font_height=167 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0206-0001-ReleaseFont_command11] -font=font -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0206-0001-RemoveFile_command12] -file=\graphics\wserv\testfontws.gdr -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0206-0001-GetNearestFontToDesignHeightInPixels_command13] -font_name=Acb14 -font_height=167 -font=font -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0206-0001-FontSpecInTwips_command14] -expected_font_name=Acb14 -expected_font_height=167 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0206-0001-ReleaseFont_command15] -font=font -#End of datum definition - -#Target datum of test cases 0207 -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0207-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0207-0001-GetNearestFontToMaxHeightInPixels_command05] -font_name=DejaVu Sans Mono -font_height=1000000 -maxheight=100 -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0207-0001-FontSpecInTwips_command06] -expected_font_name=DejaVu Sans Mono - - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0207-0001-ReleaseFont_command07] -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0207-0001-GetNearestFontToMaxHeightInPixels_command08] -font_name=DejaVu Sans Mono -font_height=0 -maxheight=1000 -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0207-0001-FontSpecInTwips_command09] -expected_font_name=DejaVu Sans Mono - - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0207-0001-ReleaseFont_command10] -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0207-0001-GetNearestFontToMaxHeightInPixels_command11] -font_name=DejaVu Sans Mono -font_height=-1 -maxheight=1000 -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0207-0001-FontSpecInTwips_command12] -expected_font_name=DejaVu Sans Mono - - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0207-0001-ReleaseFont_command13] -font=font -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0207-0001-GetNearestFontToMaxHeightInPixels_command14] -font_name=DejaVu Sans Mono -font_height=1000 -maxheight=1000000 -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0207-0001-ReleaseFont_command15] -font=font -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0207-0001-GetNearestFontToMaxHeightInPixels_command16] -font_name=DejaVu Sans Mono -font_height=1000 -maxheight=0 -font=font -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0207-0001-FontSpecInTwips_command17] -expected_font_name=DejaVu Sans Mono - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0207-0001-ReleaseFont_command18] -font=font -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0207-0001-GetNearestFontToMaxHeightInPixels_command19] -font_name=DejaVu Sans Mono -font_height=1000 -maxheight=-1 -font=font -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0207-0001-FontSpecInTwips_command20] -expected_font_name=DejaVu Sans Mono - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0207-0001-ReleaseFont_command21] -font=font -#End of datum definition - -#Target datum of test cases 0208 -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0208-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0208-0001-GetNearestFontToMaxHeightInPixels_command05] -font_name= -font_height=50 -maxheight=60 -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0208-0001-FontSpecInTwips_command06] -expected_font_name=DejaVu Sans Mono -#End of datum definition - - -#Target datum of test cases 0210 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0210-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0210-0001-GetNearestFontToMaxHeightInPixels_command05] -font_name=Acb14 -font_height=167 -font=font -maxheight=167 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0210-0001-FontSpecInTwips_command06] -expected_font_name=Acb14 -expected_font_height=167 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0210-0001-ReleaseFont_command07] -font=font -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0210-0001-AddFile_command08] -file=\graphics\wserv\testfontws.gdr -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0210-0001-GetNearestFontToMaxHeightInPixels_command09] -font_name=Acb14 -font_height=167 -font=font -maxheight=167 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0210-0001-FontSpecInTwips_command10] -expected_font_name=Acb14 -expected_font_height=167 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0210-0001-ReleaseFont_command11] -font=font -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0210-0001-RemoveFile_command12] -file=\graphics\wserv\testfontws.gdr -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0210-0001-GetNearestFontToMaxHeightInPixels_command13] -font_name=Acb14 -font_height=167 -font=font -maxheight=167 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0210-0001-FontSpecInTwips_command14] -expected_font_name=Acb14 -expected_font_height=167 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0210-0001-ReleaseFont_command15] -font=font -#End of datum definition - -#Target datum of test cases 0211 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0211-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0211-0001-CreateContext_command05] -context=wgc -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0211-0001-new_command06] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0211-0001-Construct_command07] -clienthandle=1 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0211-0001-new_command08] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0211-0001-Construct_command09] -parent=wingrp -handle=2 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0211-0001-SetRequiredDisplayMode_command10] -mode={default_wserv, display_mode} -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0211-0001-SetBackgroundColor_command11] -color_red=255 -color_green=0 -color_blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0211-0001-SetAutoFlush_command13] -newFlushstate=true -expectedFlushstate=false -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0211-0001-Activate_command14] -device=win -#PanicString=WSERV and PanicCode=37 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0211-0001-GetScanLine_command17] -point_x=1 -point_y=1 -length=50 -buff_length=0 -displaymode={default_wserv, display_mode} -#End of datum definition - -#Target datum of test cases 0214 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0214-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0214-0001-CreateContext_command05] -context=wgc -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0214-0001-new_command06] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0214-0001-Construct_command07] -clienthandle=1 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0214-0001-new_command08] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0214-0001-Construct_command09] -parent=wingrp -handle=2 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0214-0001-SetRequiredDisplayMode_command10] -mode={default_wserv, display_mode} -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0214-0001-SetBackgroundColor_command11] -color_red=255 -color_green=0 -color_blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0214-0001-SetAutoFlush_command13] -newFlushstate=true -expectedFlushstate=false -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0214-0001-Activate_command14] -device=win -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0214-0001-GetScanLine_command17] -point_x=1 -point_y=1 -length=0 -buff_length=500 -displaymode={default_wserv, display_mode} -displaymode={default_wserv, display_mode} -#for checking scanline which is got. Below is optional. -checkScanLine=true -#check the scan line's length is 0. -scanLineBufferLength=0 -#End of datum definition - -#Target datum of test cases 0215 -#[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0215-0001-new_command03] -#ws=ws -#[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0215-0001-CreateContext_command05] -#context=wgc -#[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0215-0001-new_command06] -#ws=ws -#[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0215-0001-Construct_command07] -#clienthandle=1 -#[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0215-0001-new_command08] -#ws=ws -#[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0215-0001-Construct_command09] -#parent=wingrp -#handle=2 -#[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0215-0001-SetRequiredDisplayMode_command10] -#mode={default_wserv, display_mode} -#[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0215-0001-SetBackgroundColor_command11] -#color_red=255 -#color_green=0 -#color_blue=0 -#[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0215-0001-SetAutoFlush_command13] -#newFlushstate=true -#expectedFlushstate=false -#[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0215-0001-Activate_command14] -#device=win -#[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0215-0001-GetScanLine_command17] -#point_x=1 -#point_y=1 -#length=-1 -#buff_length=500 -#displaymode={default_wserv, display_mode} -#End of datum definition - -#Target datum of test cases 0216 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0216-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0216-0001-FontHeightInPixels_command05] -height_index=0 -typeface_index=-1 -expected=13 -#End of datum definition - -#Target datum of test cases 0217 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0217-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0217-0001-FontHeightInPixels_command05] -height_index=-1 -typeface_index=0 -expected=0 -#End of datum definition - -#Target datum of test cases 0218 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0218-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0218-0001-FontHeightInPixels_command05] -height_index=10000 -typeface_index=10000 -expected=0 -#End of datum definition - -#Target datum of test cases 0219 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0219-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0219-0001-CreateContext_command05] -context=wgc -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0219-0001-new_command06] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0219-0001-Construct_command07] -clienthandle=1 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0219-0001-new_command08] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0219-0001-Construct_command09] -parent=wingrp -handle=2 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0219-0001-SetRequiredDisplayMode_command10] -mode={default_wserv, display_mode} -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0219-0001-SetBackgroundColor_command11] -color_red=255 -color_green=0 -color_blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0219-0001-SetAutoFlush_command13] -newFlushstate=true -expectedFlushstate=false -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0219-0001-Activate_command14] -device=win -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0219-0001-GetScanLine_command17] -point_x=0 -point_y=0 -length=99999 -buff_length=10000 -displaymode={default_wserv, display_mode} -#End of datum definition - -#Target datum of test cases 0220 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0220-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0220-0001-CreateContext_command05] -context=wgc -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0220-0001-new_command06] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0220-0001-Construct_command07] -clienthandle=1 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0220-0001-new_command08] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0220-0001-Construct_command09] -parent=wingrp -handle=2 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0220-0001-SetRequiredDisplayMode_command10] -mode={default_wserv, display_mode} -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0220-0001-SetBackgroundColor_command11] -color_red=255 -color_green=0 -color_blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0220-0001-SetAutoFlush_command13] -newFlushstate=true -expectedFlushstate=false -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0220-0001-Activate_command14] -device=win -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0220-0001-GetScanLine_command17] -point_x=-1 -point_y=-1 -length=10 -buff_length=500 -displaymode={default_wserv, display_mode} -#for checking scanline which is got. Below is optional. -checkScanLine=true -size_width=10 -size_height=10 -displaymode={default_wserv, display_mode} -scanline_y=1 -checkPointNum=3 -point1_x=1 -expected_point1_red=255 -expected_point1_blue=255 -expected_point1_green=255 -point2_x=5 -expected_point2_red=255 -expected_point2_blue=255 -expected_point2_green=255 -point3_x=9 -expected_point3_red=255 -expected_point3_blue=255 -expected_point3_green=255 -#End of datum definition - -#Target datum of test cases 0221 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0221-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0221-0001-CreateContext_command05] -context=wgc -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0221-0001-new_command06] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0221-0001-Construct_command07] -clienthandle=1 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0221-0001-new_command08] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0221-0001-Construct_command09] -parent=wingrp -handle=2 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0221-0001-SetRequiredDisplayMode_command10] -mode={default_wserv, display_mode} -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0221-0001-SetBackgroundColor_command11] -color_red=255 -color_green=0 -color_blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0221-0001-SetAutoFlush_command13] -newFlushstate=true -expectedFlushstate=false -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0221-0001-Activate_command14] -device=win -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0221-0001-GetScanLine_command17] -point_x=10000 -point_y=10000 -length=10 -buff_length=500 -displaymode={default_wserv, display_mode} -#for checking scanline which is got. Below is optional. -checkScanLine=true -size_width=10 -size_height=10 -displaymode={default_wserv, display_mode} -scanline_y=1 -checkPointNum=3 -point1_x=1 -expected_point1_red=255 -expected_point1_blue=255 -expected_point1_green=255 -point2_x=5 -expected_point2_red=255 -expected_point2_blue=255 -expected_point2_green=255 -point3_x=9 -expected_point3_red=255 -expected_point3_blue=255 -expected_point3_green=255 -#End of datum definition - -#Target datum of test cases 0222 -#[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0222-0001-new_command03] -#ws=ws -#[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0222-0001-CreateContext_command05] -#context=wgc -#[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0222-0001-new_command06] -#ws=ws -#[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0222-0001-Construct_command07] -#clienthandle=1 -#[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0222-0001-new_command08] -#ws=ws -#[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0222-0001-Construct_command09] -#parent=wingrp -#handle=2 -#[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0222-0001-SetRequiredDisplayMode_command10] -#mode={default_wserv, display_mode} -#[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0222-0001-SetBackgroundColor_command11] -#color_red=255 -#color_green=0 -#color_blue=0 -#[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0222-0001-SetAutoFlush_command13] -#newFlushstate=true -#expectedFlushstate=false -#[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0222-0001-Activate_command14] -#device=win -#[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0222-0001-GetScanLine_command17] -#point_x=0 -#point_y=0 -#length=10 -#buff_length=500 -#displaymode=-1 -##for checking scanline which is got. Below is optional. -#checkScanLine=true -#size_width=100 -#size_height=100 -#displaymode={default_wserv, display_mode} -#point_x=1 -#point_y=1 -#expected_red=255 -#expected_blue=0 -#expected_green=0 -#End of datum definition - -#Target datum of test cases 0223 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0223-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0223-0001-CreateContext_command05] -context=wgc -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0223-0001-new_command06] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0223-0001-Construct_command07] -clienthandle=1 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0223-0001-new_command08] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0223-0001-Construct_command09] -parent=wingrp -handle=2 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0223-0001-SetRequiredDisplayMode_command10] -mode={default_wserv, display_mode} -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0223-0001-SetBackgroundColor_command11] -color_red=255 -color_green=0 -color_blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0223-0001-SetAutoFlush_command13] -newFlushstate=true -expectedFlushstate=false -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0223-0001-Activate_command14] -device=win -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0223-0001-GetScanLine_command17] -point_x=0 -point_y=0 -length=0 -buff_length=500 -displaymode={default_wserv, display_mode} -#for checking scanline which is got. Below is optional. -#check the scan line's length is 0. -checkScanLine=true -scanLineBufferLength=0 -#End of datum definition - - - - - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0230-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0230-0001-CreateContext_command05] -context=wgc - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0230-0001-new_command06] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0230-0001-Construct_command07] -clienthandle=1 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0230-0001-new_command08] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0230-0001-Construct_command09] -parent=wingrp -handle=2 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0230-0001-SetRequiredDisplayMode_command10] -mode=EColor4K - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0230-0001-SetAutoFlush_command12] -newFlushstate=TRUE -expectedFlushstate=FALSE - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0230-0001-Activate_command13] -device=win - - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0230-0001-SetPenColor_command015] -color_red=255 -color_green=0 -color_blue=255 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0230-0001-GetNearestFontToDesignHeightInPixels_command016] -font_height=30 -font_name=Arial -font=font - - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0230-0001-UseFont_command017] -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0230-0001-DrawText_command018] -text=DrawText Fun -point_x=50 -point_y=100 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0230-0001-ReleaseFont_command19] -font=font -disown=false - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0230-0001-UseFont_command020] -font=font - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0230-0001-DrawText_command021] -text=DrawText Fun -point_x=50 -point_y=100 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0231-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0231-0001-ReleaseFont_command05] -font=font - - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-CreateContext_command05] -context=wgc -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-new_command06] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-Construct_command07] -clienthandle =1 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-new_command08] -ws =ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-Construct_command09] -parent =wingrp -handle =2 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-SetAutoFlush_command11] -newFlushstate=true -expectedFlushstate=false -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-Activate_command12] -device=win -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-SetBrushColor_command14] -color_red=255 -color_green=0 -color_blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-SetBrushStyle_command15] -brushstyle=ESolidBrush -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-SetPenColor_command16] -color_red=0 -color_green=0 -color_blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-DrawRect_command17] -rect_top=0 -rect_left=0 -rect_bottom=60 -rect_right=60 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-DrawRect_command18] -rect_top=0 -rect_left=70 -rect_bottom=60 -rect_right=130 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-new_command20] -ws =ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-construct_command21] -win =win -flag =ESpriteNoChildClip -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-loadmask_command23] -bitmap_id =0 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =TRUE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile=FALSE -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-load_command25] -bitmap_id =1 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =TRUE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile=FALSE -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-appendmember_command26] -spritemember_bitmap =fbsbmp2 -spritemember_maskbitmap =fbsbmp1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask =FALSE -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-load_command28] -bitmap_id =2 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =TRUE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-appendmember_command29] -spritemember_bitmap =fbsbmp3 -spritemember_maskbitmap=fbsbmp1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-load_command31] -bitmap_id =3 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =TRUE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-appendmember_command32] -spritemember_bitmap =fbsbmp4 -spritemember_maskbitmap=fbsbmp1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-SetPosition_command33] -pos_x=70 -pos_y=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-new_command34] -ws =ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-construct_command35] -win =win -flag =ESpriteNoChildClip -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-appendmember_command36] -spritemember_bitmap =fbsbmp2 -spritemember_maskbitmap =fbsbmp1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask =FALSE; -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-appendmember_command37] -spritemember_bitmap =fbsbmp3 -spritemember_maskbitmap=fbsbmp1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-appendmember_command38] -spritemember_bitmap =fbsbmp4 -spritemember_maskbitmap=fbsbmp1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-SetPosition_command39] -pos_x=140 -pos_y=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-RectCompare_command43] -rect1_left=0 -rect1_top=0 -rect1_right=70 -rect1_bottom=70 -rect2_left=70 -rect2_top=0 -rect2_right=140 -rect2_bottom=70 -expected=true -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-RectCompare_command44] -rect1_left=140 -rect1_top=0 -rect1_right=210 -rect1_bottom=70 -rect2_left=70 -rect2_top=0 -rect2_right=140 -rect2_bottom=70 -expected=false -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-SetTextCursor_command51] -win=win -pos_x=80 -pos_y=20 -cursor_type=ETypeRectangle -cursor_flags=EFlagNoFlash -cursor_height=30 -cursor_width=10 -cursor_ascent=10 -cursor_color_red=255 -cursor_color_green=255 -cursor_color_blue=255 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-RectCompare_command53] -rect1_left=0 -rect1_top=0 -rect1_right=70 -rect1_bottom=70 -rect2_left=70 -rect2_top=0 -rect2_right=140 -rect2_bottom=70 -expected=true -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0279-0001-RectCompare_command54] -rect1_left=140 -rect1_top=0 -rect1_right=210 -rect1_bottom=70 -rect2_left=70 -rect2_top=0 -rect2_right=140 -rect2_bottom=70 -expected=false - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0280-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0280-0001-CreateContext_command05] -context=wgc -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0280-0001-new_command06] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0280-0001-Construct_command07] -clienthandle=1 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0280-0001-new_command08] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0280-0001-Construct_command09] -parent=wingrp -handle=2 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0280-0001-SetRequiredDisplayMode_command10] -mode={default_wserv, display_mode} -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0280-0001-SetBackgroundColor_command11] -color_red=255 -color_green=255 -color_blue=255 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0280-0001-SetAutoFlush_command13] -newFlushstate=true -expectedFlushstate=false -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0280-0001-Activate_command14] -device=win -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0280-0001-SetBrushColor_command16] -color_red=255 -color_green=0 -color_blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0280-0001-SetBrushStyle_command17] -brushstyle=ESolidBrush -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0280-0001-SetPenColor_command18] -color_red=0 -color_green=0 -color_blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0280-0001-DrawRect_command19] -rect_top=0 -rect_left=0 -rect_bottom=50 -rect_right=50 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0280-0001-DrawRect_command20] -rect_top=0 -rect_left=50 -rect_bottom=50 -rect_right=100 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0280-0001-DrawRect_command21] -rect_top=50 -rect_left=0 -rect_bottom=100 -rect_right=50 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0280-0001-RectCompare_command23] -rect1_top=-50 -rect1_left=0 -rect1_bottom=50 -rect1_right=50 -rect2_top=-50 -rect2_left=50 -rect2_bottom=50 -rect2_right=100 -expected=false -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0280-0001-RectCompare_command24] -rect1_top=0 -rect1_left=-50 -rect1_bottom=50 -rect1_right=50 -rect2_top=50 -rect2_left=-50 -rect2_bottom=100 -rect2_right=50 -expected=false - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0280-0001-RectCompare_command25] -rect1_top=-10000 -rect1_left=-10000 -rect1_bottom=0 -rect1_right=0 -rect2_top=0 -rect2_left=0 -rect2_bottom=10000 -rect2_right=10000 -expected=false - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-CreateContext_command05] -context=wgc -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-new_command06] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-Construct_command07] -clienthandle =1 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-new_command08] -ws =ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-Construct_command09] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-SetAutoFlush_command11] -newFlushstate=true -expectedFlushstate=false - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-Activate_command12] -device=win - - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-SetBrushColor_command14] -color_red=255 -color_green=0 -color_blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-SetBrushStyle_command15] -brushstyle=ESolidBrush -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-SetPenColor_command16] -color_red=0 -color_green=0 -color_blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-DrawRect_command17] -rect_top=0 -rect_left=0 -rect_bottom=60 -rect_right=60 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-DrawRect_command18] -rect_top=0 -rect_left=70 -rect_bottom=60 -rect_right=130 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-new_command19] -ws =ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-construct_command20] -win =win -flag =ESpriteNoChildClip -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-loadmask_command22] -bitmap_id =0 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =TRUE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile=FALSE -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-load_command24] -bitmap_id =1 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =TRUE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile=FALSE -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-appendmember_command25] -spritemember_bitmap =fbsbmp2 -spritemember_maskbitmap =fbsbmp1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask =FALSE -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-load_command27] -bitmap_id =2 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =TRUE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-appendmember_command28] -spritemember_bitmap =fbsbmp3 -spritemember_maskbitmap=fbsbmp1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-load_command30] -bitmap_id =3 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =TRUE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-appendmember_command31] -spritemember_bitmap =fbsbmp4 -spritemember_maskbitmap=fbsbmp1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-SetPosition_command32] -pos_x=70 -pos_y=0 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-new_command33] -ws =ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-construct_command34] -win =win -flag =ESpriteNoChildClip - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-appendmember_command35] -spritemember_bitmap =fbsbmp2 -spritemember_maskbitmap =fbsbmp1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask =FALSE; - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-appendmember_command36] -spritemember_bitmap =fbsbmp3 -spritemember_maskbitmap=fbsbmp1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-appendmember_command37] -spritemember_bitmap =fbsbmp4 -spritemember_maskbitmap=fbsbmp1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-SetPosition_command38] -pos_x=140 -pos_y=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-new_command39] -ws =ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-construct_command40] -win =win -flag =ESpriteNoChildClip - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-appendmember_command41] -spritemember_bitmap =fbsbmp2 -spritemember_maskbitmap =fbsbmp1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask =FALSE; - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-appendmember_command42] -spritemember_bitmap =fbsbmp3 -spritemember_maskbitmap=fbsbmp1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-appendmember_command43] -spritemember_bitmap =fbsbmp4 -spritemember_maskbitmap=fbsbmp1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-SetPosition_command44] -pos_x=210 -pos_y=0 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-RectCompare_command49] -rect1_left=0 -rect1_top=0 -rect1_right=70 -rect1_bottom=70 -rect2_left=70 -rect2_top=0 -rect2_right=140 -rect2_bottom=70 -expected=true -flags=ERemoveSprite - - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-RectCompare_command50] -rect1_left=140 -rect1_top=0 -rect1_right=210 -rect1_bottom=70 -rect2_left=70 -rect2_top=0 -rect2_right=140 -rect2_bottom=70 -expected=false -flags=ERemoveSprite - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-RectCompare_command51] -rect1_left=0 -rect1_top=0 -rect1_right=70 -rect1_bottom=70 -rect2_left=70 -rect2_top=0 -rect2_right=140 -rect2_bottom=70 -expected=false -flags=EIncludeSprite - - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-RectCompare_command52] -rect1_left=140 -rect1_top=0 -rect1_right=210 -rect1_bottom=70 -rect2_left=70 -rect2_top=0 -rect2_right=140 -rect2_bottom=70 -expected=false -flags=EIncludeSprite - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-RectCompare_command53] -rect1_left=140 -rect1_top=0 -rect1_right=210 -rect1_bottom=70 -rect2_left=210 -rect2_top=0 -rect2_right=280 -rect2_bottom=70 -expected=true -flags=EIncludeSprite - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-SetTextCursor_command61] -win=win -pos_x=80 -pos_y=20 -cursor_type=ETypeRectangle -cursor_flags=EFlagNoFlash -cursor_height=30 -cursor_width=10 -cursor_ascent=10 -cursor_color_red=255 -cursor_color_green=255 -cursor_color_blue=255 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-RectCompare_command63] -rect1_left=0 -rect1_top=0 -rect1_right=70 -rect1_bottom=70 -rect2_left=70 -rect2_top=0 -rect2_right=140 -rect2_bottom=70 -expected=true -flags=ERemoveSprite - - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-RectCompare_command64] -rect1_left=140 -rect1_top=0 -rect1_right=210 -rect1_bottom=70 -rect2_left=70 -rect2_top=0 -rect2_right=140 -rect2_bottom=70 -expected=false -flags=ERemoveSprite - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-RectCompare_command65] -rect1_left=0 -rect1_top=0 -rect1_right=70 -rect1_bottom=70 -rect2_left=70 -rect2_top=0 -rect2_right=140 -rect2_bottom=70 -expected=false -flags=EIncludeTextCursor - - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-RectCompare_command66] -rect1_left=140 -rect1_top=0 -rect1_right=210 -rect1_bottom=70 -rect2_left=70 -rect2_top=0 -rect2_right=140 -rect2_bottom=70 -expected=false -flags=EIncludeTextCursor - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0281-0001-RectCompare_command67] -rect1_left=140 -rect1_top=0 -rect1_right=210 -rect1_bottom=70 -rect2_left=210 -rect2_top=0 -rect2_right=280 -rect2_bottom=70 -expected=true -flags=EIncludeTextCursor - - - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-CreateContext_command05] -context=wgc -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-new_command06] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-Construct_command07] -clienthandle =1 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-new_command08] -ws =ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-Construct_command09] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-SetAutoFlush_command11] -newFlushstate=true -expectedFlushstate=false - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-Activate_command12] -device=win - - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-SetBrushColor_command14] -color_red=255 -color_green=0 -color_blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-SetBrushStyle_command15] -brushstyle=ESolidBrush -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-SetPenColor_command16] -color_red=0 -color_green=0 -color_blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-DrawRect_command17] -rect_top=-30 -rect_left=0 -rect_bottom=30 -rect_right=60 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-DrawRect_command18] -rect_top=-30 -rect_left=70 -rect_bottom=30 -rect_right=130 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-new_command19] -ws =ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-construct_command20] -win =win -flag =ESpriteNoChildClip -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-loadmask_command22] -bitmap_id =0 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =TRUE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile=FALSE -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-load_command24] -bitmap_id =1 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =TRUE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile=FALSE -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-appendmember_command25] -spritemember_bitmap =fbsbmp2 -spritemember_maskbitmap =fbsbmp1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask =FALSE -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-load_command27] -bitmap_id =2 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =TRUE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-appendmember_command28] -spritemember_bitmap =fbsbmp3 -spritemember_maskbitmap=fbsbmp1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-load_command30] -bitmap_id =3 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =TRUE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-appendmember_command31] -spritemember_bitmap =fbsbmp4 -spritemember_maskbitmap=fbsbmp1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-SetPosition_command32] -pos_x=70 -pos_y=-25 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-new_command33] -ws =ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-construct_command34] -win =win -flag =ESpriteNoChildClip - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-appendmember_command35] -spritemember_bitmap =fbsbmp2 -spritemember_maskbitmap =fbsbmp1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask =FALSE; - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-appendmember_command36] -spritemember_bitmap =fbsbmp3 -spritemember_maskbitmap=fbsbmp1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-appendmember_command37] -spritemember_bitmap =fbsbmp4 -spritemember_maskbitmap=fbsbmp1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-SetPosition_command38] -pos_x=140 -pos_y=-25 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-new_command39] -ws =ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-construct_command40] -win =win -flag =ESpriteNoChildClip - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-appendmember_command41] -spritemember_bitmap =fbsbmp2 -spritemember_maskbitmap =fbsbmp1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask =FALSE; - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-appendmember_command42] -spritemember_bitmap =fbsbmp3 -spritemember_maskbitmap=fbsbmp1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-appendmember_command43] -spritemember_bitmap =fbsbmp4 -spritemember_maskbitmap=fbsbmp1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-SetPosition_command44] -pos_x=210 -pos_y=-25 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-RectCompare_command49] -rect1_left=0 -rect1_top=-30 -rect1_right=70 -rect1_bottom=70 -rect2_left=70 -rect2_top=-30 -rect2_right=140 -rect2_bottom=70 -expected=false -flags=ERemoveSprite - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-RectCompare_command50] -rect1_left=140 -rect1_top=-30 -rect1_right=210 -rect1_bottom=70 -rect2_left=210 -rect2_top=-30 -rect2_right=280 -rect2_bottom=70 -expected=false -flags=EIncludeSprite - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-SetTextCursor_command58] -win=win -pos_x=80 -pos_y=-10 -cursor_type=ETypeRectangle -cursor_flags=EFlagNoFlash -cursor_height=30 -cursor_width=10 -cursor_ascent=10 -cursor_color_red=255 -cursor_color_green=255 -cursor_color_blue=255 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-RectCompare_command60] -rect1_left=0 -rect1_top=-30 -rect1_right=70 -rect1_bottom=70 -rect2_left=70 -rect2_top=-30 -rect2_right=140 -rect2_bottom=70 -expected=false -flags=ERemoveSprite - - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0282-0001-RectCompare_command61] -rect1_left=140 -rect1_top=-30 -rect1_right=210 -rect1_bottom=70 -rect2_left=210 -rect2_top=-30 -rect2_right=280 -rect2_bottom=70 -expected=false -flags=EIncludeTextCursor - - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-CreateContext_command05] -context=wgc -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-new_command06] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-Construct_command07] -clienthandle =1 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-new_command08] -ws =ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-Construct_command09] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-SetAutoFlush_command11] -newFlushstate=true -expectedFlushstate=false - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-Activate_command12] -device=win - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-new_command15] -ws =ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-construct_command16] -win =win -flag =ESpriteNoChildClip -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-loadmask_command18] -bitmap_id =0 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =TRUE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile=FALSE -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-load_command20] -bitmap_id =1 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =TRUE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile=FALSE -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-appendmember_command21] -spritemember_bitmap =fbsbmp2 -spritemember_maskbitmap =fbsbmp1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask =FALSE -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-load_command23] -bitmap_id =2 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =TRUE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-appendmember_command24] -spritemember_bitmap =fbsbmp3 -spritemember_maskbitmap=fbsbmp1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE - - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-SetPosition_command25] -pos_x=50 -pos_y=10 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-new_command26] -ws =ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-construct_command27] -win =win -flag =ESpriteNoChildClip - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-load_command29] -bitmap_id =3 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =TRUE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-appendmember_command30] -spritemember_bitmap =fbsbmp4 -spritemember_maskbitmap =fbsbmp1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask =FALSE; - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-SetPosition_command31] -pos_x=150 -pos_y=10 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-RectCompare_command34] -rect1_left=50 -rect1_top=10 -rect1_right=100 -rect1_bottom=60 -rect2_left=150 -rect2_top=10 -rect2_right=200 -rect2_bottom=60 -expected=true -flags=ERemoveSprite - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0283-0001-RectCompare_command35] -rect1_left=50 -rect1_top=10 -rect1_right=100 -rect1_bottom=60 -rect2_left=150 -rect2_top=10 -rect2_right=200 -rect2_bottom=60 -expected=false -flags=EIncludeSprite - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0291-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0291-0001-CreateContext_command05] -context=wgc -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0291-0001-new_command06] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0291-0001-Construct_command07] -clienthandle=1 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0291-0001-new_command08] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0291-0001-Construct_command09] -parent=wingrp -handle=2 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0291-0001-SetRequiredDisplayMode_command10] -mode={default_wserv, display_mode} -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0291-0001-SetBackgroundColor_command11] -color_red=255 -color_green=255 -color_blue=255 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0291-0001-SetAutoFlush_command13] -newFlushstate=true -expectedFlushstate=false -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0291-0001-Activate_command14] -device=win -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0291-0001-SetBrushColor_command16] -color_red=255 -color_green=0 -color_blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0291-0001-SetBrushStyle_command17] -brushstyle=ESolidBrush -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0291-0001-SetPenColor_command18] -color_red=0 -color_green=0 -color_blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0291-0001-DrawRect_command19] -rect_top=0 -rect_left=0 -rect_bottom=100 -rect_right=100 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0291-0001-CopyScreenToBitmap_command20] -bitmap=fbsbitmap - - - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-CreateContext_command05] -context=wgc -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-new_command06] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-Construct_command07] -clienthandle=1 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-new_command08] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-Construct_command09] -parent=wingrp -handle=2 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-SetRequiredDisplayMode_command10] -mode={default_wserv, display_mode} -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-SetBackgroundColor_command11] -color_red=255 -color_green=255 -color_blue=255 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-SetAutoFlush_command13] -newFlushstate=true -expectedFlushstate=false -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-Activate_command14] -device=win -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-SetBrushColor_command16] -color_red=255 -color_green=0 -color_blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-SetBrushStyle_command17] -brushstyle=ESolidBrush -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-SetPenColor_command18] -color_red=0 -color_green=0 -color_blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-DrawRect_command19] -rect_top=-50 -rect_left=0 -rect_bottom=50 -rect_right=100 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-Create_command22] -height=100 -width=100 -displaymode={default_wserv, display_mode} -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-CopyScreenToBitmap_command23] -bitmap=fbsbitmap -rect_top=-50 -rect_left=0 -rect_bottom=50 -rect_right=100 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-GetPixel_command24] -point_x=0 -point_y=0 -red=255 -green=255 -blue=255 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-GetPixel_command25] -point_x=99 -point_y=99 -red=0 -green=0 -blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-GetPixel_command26] -point_x=0 -point_y=49 -red=255 -green=255 -blue=255 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-GetPixel_command27] -point_x=99 -point_y=49 -red=255 -green=255 -blue=255 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-GetPixel_command28] -point_x=1 -point_y=1 -red=255 -green=255 -blue=255 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-GetPixel_command29] -point_x=0 -point_y=99 -red=0 -green=0 -blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-GetPixel_command30] -point_x=1 -point_y=50 -red=255 -green=0 -blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0293-0001-GetPixel_command31] -point_x=98 -point_y=98 -red=255 -green=0 -blue=0 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-CreateContext_command05] -context=wgc -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-new_command06] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-Construct_command07] -clienthandle=1 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-new_command08] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-Construct_command09] -parent=wingrp -handle=2 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-SetRequiredDisplayMode_command10] -mode={default_wserv, display_mode} -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-SetBackgroundColor_command11] -color_red=255 -color_green=255 -color_blue=255 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-SetAutoFlush_command13] -newFlushstate=true -expectedFlushstate=false -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-Activate_command14] -device=win -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-SetBrushColor_command16] -color_red=255 -color_green=0 -color_blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-SetBrushStyle_command17] -brushstyle=ESolidBrush -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-SetPenColor_command18] -color_red=0 -color_green=0 -color_blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-DrawRect_command19] -rect_top=0 -rect_left=0 -rect_bottom=100 -rect_right=100 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-Create_command22] -height={default_fbserv,large_height} -width={default_fbserv,large_width} -displaymode={default_wserv, display_mode} -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-CopyScreenToBitmap_command23] -bitmap=fbsbitmap -rect_top=0 -rect_left=0 -rect_bottom={default_fbserv,large_height} -rect_right={default_fbserv,large_width} -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-GetPixel_command24] -point_x=0 -point_y=0 -red=0 -green=0 -blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-GetPixel_command25] -point_x=99 -point_y=99 -red=0 -green=0 -blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-GetPixel_command26] -point_x=50 -point_y=99 -red=0 -green=0 -blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-GetPixel_command27] -point_x=99 -point_y=50 -red=0 -green=0 -blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-GetPixel_command28] -point_x=1 -point_y=1 -red=255 -green=0 -blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-GetPixel_command29] -point_x=98 -point_y=98 -red=255 -green=0 -blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-GetPixel_command30] -point_x=100 -point_y=100 -red=255 -green=255 -blue=255 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0294-0001-GetPixel_command31] -point_x=999 -point_y=1999 -red=255 -green=255 -blue=255 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0295-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0295-0001-CreateContext_command05] -context=wgc -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0295-0001-new_command06] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0295-0001-Construct_command07] -clienthandle=1 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0295-0001-new_command08] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0295-0001-Construct_command09] -parent=wingrp -handle=2 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0295-0001-SetRequiredDisplayMode_command10] -mode={default_wserv, display_mode} -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0295-0001-SetBackgroundColor_command11] -color_red=255 -color_green=255 -color_blue=255 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0295-0001-SetAutoFlush_command13] -newFlushstate=true -expectedFlushstate=false -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0295-0001-Activate_command14] -device=win -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0295-0001-SetBrushColor_command16] -color_red=255 -color_green=0 -color_blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0295-0001-SetBrushStyle_command17] -brushstyle=ESolidBrush -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0295-0001-SetPenColor_command18] -color_red=0 -color_green=0 -color_blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0295-0001-DrawRect_command19] -rect_top=0 -rect_left=0 -rect_bottom=100 -rect_right=100 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0295-0001-CopyScreenToBitmap_command20] -bitmap=fbsbitmap -rect_top=0 -rect_left=0 -rect_bottom=100 -rect_right=100 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-CreateContext_command05] -context=wgc -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-new_command06] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-Construct_command07] -clienthandle=1 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-new_command08] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-Construct_command09] -parent=wingrp -handle=2 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-SetRequiredDisplayMode_command10] -mode={default_wserv, display_mode} -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-SetBackgroundColor_command11] -color_red=255 -color_green=255 -color_blue=255 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-SetAutoFlush_command13] -newFlushstate=true -expectedFlushstate=false -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-Activate_command14] -device=win -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-SetBrushColor_command16] -color_red=255 -color_green=0 -color_blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-SetBrushStyle_command17] -brushstyle=ESolidBrush -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-SetPenColor_command18] -color_red=0 -color_green=0 -color_blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-DrawRect_command19] -rect_top=0 -rect_left=0 -rect_bottom=100 -rect_right=100 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-Create_command22] -height=200 -width=200 -displaymode={default_wserv, display_mode} -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-CopyScreenToBitmap_command23] -bitmap=fbsbitmap -rect_top=0 -rect_left=0 -rect_bottom=100 -rect_right=100 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-GetPixel_command24] -point_x=0 -point_y=0 -red=0 -green=0 -blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-GetPixel_command25] -point_x=99 -point_y=99 -red=0 -green=0 -blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-GetPixel_command26] -point_x=50 -point_y=99 -red=0 -green=0 -blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-GetPixel_command27] -point_x=99 -point_y=50 -red=0 -green=0 -blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-GetPixel_command28] -point_x=1 -point_y=1 -red=255 -green=0 -blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-GetPixel_command29] -point_x=98 -point_y=98 -red=255 -green=0 -blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0296-0001-GetPixel_command30] -point_x=100 -point_y=100 -red=255 -green=255 -blue=255 - - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-CreateContext_command05] -context=wgc -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-new_command06] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-Construct_command07] -clienthandle=1 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-new_command08] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-Construct_command09] -parent=wingrp -handle=2 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-SetRequiredDisplayMode_command10] -mode={default_wserv, display_mode} -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-SetBackgroundColor_command11] -color_red=255 -color_green=255 -color_blue=255 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-SetAutoFlush_command13] -newFlushstate=true -expectedFlushstate=false -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-Activate_command14] -device=win -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-SetBrushColor_command16] -color_red=255 -color_green=0 -color_blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-SetBrushStyle_command17] -brushstyle=ESolidBrush -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-SetPenColor_command18] -color_red=0 -color_green=0 -color_blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-DrawRect_command19] -rect_top=0 -rect_left=0 -rect_bottom=100 -rect_right=100 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-Create_command22] -height=10 -width=10 -displaymode={default_wserv, display_mode} -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-CopyScreenToBitmap_command23] -bitmap=fbsbitmap -rect_top=0 -rect_left=0 -rect_bottom=100 -rect_right=100 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-GetPixel_command24] -point_x=0 -point_y=0 -red=0 -green=0 -blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-GetPixel_command25] -point_x=9 -point_y=0 -red=0 -green=0 -blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-GetPixel_command26] -point_x=0 -point_y=9 -red=0 -green=0 -blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-GetPixel_command27] -point_x=1 -point_y=1 -red=255 -green=0 -blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0297-0001-GetPixel_command28] -point_x=9 -point_y=9 -red=255 -green=0 -blue=0 - - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-CreateContext_command05] -context=wgc -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-new_command06] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-Construct_command07] -clienthandle=1 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-new_command08] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-Construct_command09] -parent=wingrp -handle=2 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-SetRequiredDisplayMode_command10] -mode={default_wserv, display_mode} -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-SetBackgroundColor_command11] -color_red=255 -color_green=255 -color_blue=255 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-SetAutoFlush_command13] -newFlushstate=true -expectedFlushstate=false -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-Activate_command14] -device=win -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-SetBrushColor_command16] -color_red=255 -color_green=0 -color_blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-SetBrushStyle_command17] -brushstyle=ESolidBrush -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-SetPenColor_command18] -color_red=0 -color_green=0 -color_blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-DrawRect_command19] -rect_top=500 -rect_left=500 -rect_bottom=600 -rect_right=600 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-Create_command22] -height=100 -width=100 -displaymode={default_wserv, display_mode} -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-CopyScreenToBitmap_command23] -bitmap=fbsbitmap -rect_top=500 -rect_left=500 -rect_bottom=600 -rect_right=600 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-GetPixel_command24] -point_x=0 -point_y=0 -red=255 -green=255 -blue=255 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-GetPixel_command25] -point_x=99 -point_y=99 -red=255 -green=255 -blue=255 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-GetPixel_command26] -point_x=50 -point_y=99 -red=255 -green=255 -blue=255 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-GetPixel_command27] -point_x=99 -point_y=50 -red=255 -green=255 -blue=255 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-GetPixel_command28] -point_x=1 -point_y=1 -red=255 -green=255 -blue=255 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0298-0001-GetPixel_command29] -point_x=98 -point_y=98 -red=255 -green=255 -blue=255 - - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-CreateContext_command05] -context=wgc -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-new_command06] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-Construct_command07] -clienthandle=1 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-new_command08] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-Construct_command09] -parent=wingrp -handle=2 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-SetRequiredDisplayMode_command10] -mode={default_wserv, display_mode} -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-SetBackgroundColor_command11] -color_red=255 -color_green=255 -color_blue=255 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-SetAutoFlush_command13] -newFlushstate=true -expectedFlushstate=false -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-Activate_command14] -device=win -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-SetBrushColor_command16] -color_red=255 -color_green=0 -color_blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-SetBrushStyle_command17] -brushstyle=ESolidBrush -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-SetPenColor_command18] -color_red=0 -color_green=0 -color_blue=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-DrawRect_command19] -rect_top=-100 -rect_left=-100 -rect_bottom=0 -rect_right=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-Create_command22] -height=100 -width=100 -displaymode={default_wserv, display_mode} -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-CopyScreenToBitmap_command23] -bitmap=fbsbitmap -rect_top=-100 -rect_left=-100 -rect_bottom=0 -rect_right=0 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-GetPixel_command24] -point_x=0 -point_y=0 -red=255 -green=255 -blue=255 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-GetPixel_command25] -point_x=99 -point_y=99 -red=255 -green=255 -blue=255 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-GetPixel_command26] -point_x=50 -point_y=99 -red=255 -green=255 -blue=255 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-GetPixel_command27] -point_x=99 -point_y=50 -red=255 -green=255 -blue=255 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-GetPixel_command28] -point_x=1 -point_y=1 -red=255 -green=255 -blue=255 -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0299-0001-GetPixel_command29] -point_x=98 -point_y=98 -red=255 -green=255 -blue=255 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0300-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0300-0001-GetScreenModeSizeAndRotation_command05] -mode=-1 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0301-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0301-0001-GetScreenModeSizeAndRotation_command05] -mode=-1 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0302-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0302-0001-GetRotationsList_command05] -mode=-1 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0303-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0303-0001-SetAppScreenMode_command05] -mode=-1 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0304-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0304-0001-GetScreenModeOrigin_command05] -mode=-1 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0305-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0305-0001-GetScreenModeScale_command05] -mode=-1 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0306-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0306-0001-GetScreenModeScaledOrigin_command05] -mode=-1 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0307-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0307-0001-GetScreenModeDisplayMode_command05] -mode=-1 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0308-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0308-0001-GetDefaultScreenSizeAndRotation_command05] -rotation={default_wserv, scr_rotation} -pixelsize_width={default_wserv, scr_width} -pixelsize_height={default_wserv, scr_height} -twips=FALSE - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0308-0001-SetScreenSizeAndRotation_command06] -rotation=EGraphicsOrientationNormal -pixelsize_width=10000 -pixelsize_height=10000 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0308-0001-SetScreenSizeAndRotation_command07] -rotation=EGraphicsOrientationRotated90 -pixelsize_width=1 -pixelsize_height=1 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0308-0001-SetScreenSizeAndRotation_command08] -rotation=EGraphicsOrientationRotated180 -pixelsize_width=0 -pixelsize_height=0 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0308-0001-SetScreenSizeAndRotation_command09] -rotation=EGraphicsOrientationRotated270 -pixelsize_width=-1 -pixelsize_height=-1 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0308-0001-SetScreenSizeAndRotation_command10] -rotation=EGraphicsOrientationNormal -pixelsize_width=-10000 -pixelsize_height=-10000 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0308-0001-SetScreenSizeAndRotation_command11] -rotation=EGraphicsOrientationNormal -pixelsize_width={default_wserv, scr_height} -pixelsize_height={default_wserv, scr_width} - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0308-0001-SetScreenSizeAndRotation_command12] -rotation=EGraphicsOrientationNormal -pixelsize_width=10000 -pixelsize_height={default_wserv, scr_width} - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0308-0001-GetDefaultScreenSizeAndRotation_command13] -rotation={default_wserv, scr_rotation} -pixelsize_width={default_wserv, scr_width} -pixelsize_height={default_wserv, scr_height} -twips=FALSE - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0309-0001-new_command03] -ws=ws - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0309-0001-GetDefaultScreenSizeAndRotation_command05] -rotation={default_wserv, scr_rotation} -pixelsize_width={default_wserv, scr_width} -pixelsize_height={default_wserv, scr_height} -twips=TRUE -twipssize_width={default_wserv, scr_twips_width} -twipssize_height={default_wserv, scr_twips_height} - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0309-0001-SetScreenSizeAndRotation_command06] -rotation=EGraphicsOrientationNormal -pixelsize_width=10000 -pixelsize_height=10000 -twipssize_width=100000 -twipssize_height=100000 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0309-0001-SetScreenSizeAndRotation_command07] -rotation=EGraphicsOrientationRotated90 -pixelsize_width=1 -pixelsize_height=1 -twipssize_width=1 -twipssize_height=1 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0309-0001-SetScreenSizeAndRotation_command08] -rotation=EGraphicsOrientationRotated180 -pixelsize_width=0 -pixelsize_height=0 -twipssize_width=0 -twipssize_height=0 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0309-0001-SetScreenSizeAndRotation_command09] -rotation=EGraphicsOrientationRotated270 -pixelsize_width=-1 -pixelsize_height=-1 -twipssize_width=-1 -twipssize_height=-1 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0309-0001-SetScreenSizeAndRotation_command10] -rotation=EGraphicsOrientationNormal -pixelsize_width=-10000 -pixelsize_height=-10000 -twipssize_width=-100000 -twipssize_height=-100000 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0309-0001-SetScreenSizeAndRotation_command11] -rotation=EGraphicsOrientationNormal -pixelsize_width={default_wserv, scr_width} -pixelsize_height=200 -twipssize_width={default_wserv, scr_twips_width} -twipssize_height=2000 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0309-0001-SetScreenSizeAndRotation_command12] -rotation=EGraphicsOrientationNormal -pixelsize_width={default_wserv, scr_height} -pixelsize_height={default_wserv, scr_width} -twipssize_width={default_wserv, scr_twips_height} -twipssize_height={default_wserv, scr_twips_width} - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0309-0001-SetScreenSizeAndRotation_command13] -rotation=EGraphicsOrientationNormal -pixelsize_width={default_wserv, scr_height} -pixelsize_height={default_wserv, scr_width} -twipssize_width={default_wserv, scr_twips_height} -twipssize_height=2000 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0309-0001-SetScreenSizeAndRotation_command14] -rotation=EGraphicsOrientationNormal -pixelsize_width={default_wserv, scr_height} -pixelsize_height={default_wserv, scr_width} -twipssize_width=2000 -twipssize_height=2000 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0309-0001-SetScreenSizeAndRotation_command15] -rotation=EGraphicsOrientationNormal -pixelsize_width={default_wserv, scr_height} -pixelsize_height=200 -twipssize_width=2000 -twipssize_height=2000 - -[GRAPHICS-WSERV-WsScreenDevice-PublicApi-0309-0001-GetDefaultScreenSizeAndRotation_command16] -rotation={default_wserv, scr_rotation} -pixelsize_width={default_wserv, scr_width} -pixelsize_height={default_wserv, scr_height} -twips=TRUE -twipssize_width={default_wserv, scr_twips_width} -twipssize_height={default_wserv, scr_twips_height} - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0310-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0310-0001-GetScreenModeSizeAndRotation_command05] -mode=1000 - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0311-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0311-0001-GetScreenModeSizeAndRotation_command05] -mode=1000 - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0312-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0312-0001-GetRotationsList_command05] -mode=1000 - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0313-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0313-0001-SetAppScreenMode_command05] -mode=1000 - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0314-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0314-0001-GetScreenModeOrigin_command05] -mode=1000 - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0315-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0315-0001-GetScreenModeScale_command05] -mode=1000 - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0316-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0316-0001-GetScreenModeScaledOrigin_command05] -mode=1000 - -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0317-0001-new_command03] -ws=ws -[GRAPHICS-WSERV-WsScreenDevice-PublicAPI-0317-0001-GetScreenModeDisplayMode_command05] -mode=1000 diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/testdata/GRAPHICS-WSERV-WsSprite-PublicApi.ini --- a/graphicsapitest/graphicssvs/wserv/testdata/GRAPHICS-WSERV-WsSprite-PublicApi.ini Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1978 +0,0 @@ -[include] -file1 =\graphics\t_graphics.ini - -[ws] -name =ws - -[win] -name =win - -[win2] -name =win2 - -[wingrp] -name =wingrp - -[sprite] -name =sprite - -[sprite2] -name =sprite2 - -[mask1] -name =mask1 - -[bitmap1] -name =bitmap1 - -[bitmap2] -name =bitmap2 - -[bitmap3] -name =bitmap3 - -[bitmap4] -name =bitmap4 - -[RFbsSession1] -name =RFbsSession1 - -[scrdev] -name =scrdev - -[GRAPHICS-WSERV-WsSprite-PublicApi-0002-0001-new_command004] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0003-0001-new_command004] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0003-0001-new_command006] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0003-0001-Construct_command007] -win =win -flag =1 - -[GRAPHICS-WSERV-WsSprite-Setup-0003-0001-new_command001] -ws =ws - -[GRAPHICS-WSERV-WsSprite-Setup-0003-0001-Construct_command002] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-WsSprite-Setup-0003-0001-Construct_command003] -clienthandle =1 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0004-0001-new_command004] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0004-0001-new_command006] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0004-0001-Construct_command007] -win =win -flag =1 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0004-0001-Load_command009] -bitmap_id =0 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile=FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0004-0001-Load_command011] -bitmap_id =1 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile=FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0004-0001-AppendMember_command012] -spritemember_bitmap =bitmap1 -spritemember_maskbitmap=mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0004-0001-Load_command014] -bitmap_id =2 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile=FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0004-0001-AppendMember_command015] -spritemember_bitmap =bitmap2 -spritemember_maskbitmap=mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0004-0001-Load_command017] -bitmap_id =3 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile=FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0004-0001-AppendMember_command018] -spritemember_bitmap =bitmap3 -spritemember_maskbitmap=mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; - -[GRAPHICS-WSERV-WsSprite-Setup-0004-0001-new_command001] -ws =ws - -[GRAPHICS-WSERV-WsSprite-Setup-0004-0001-Construct_command002] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-WsSprite-Setup-0004-0001-Construct_command003] -clienthandle=1 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0005-0001-new_command004] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0005-0001-new_command006] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0005-0001-Construct_command007] -win =win -flag =1 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0005-0001-Load_command009] -bitmap_id =0 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile=FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0005-0001-Load_command011] -bitmap_id =1 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile=FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0005-0001-AppendMember_command012] -spritemember_bitmap =bitmap1 -spritemember_maskbitmap=mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0005-0001-Load_command014] -bitmap_id =2 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile=FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0005-0001-AppendMember_command015] -spritemember_bitmap =bitmap2 -spritemember_maskbitmap=mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0005-0001-Load_command017] -bitmap_id =3 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0005-0001-AppendMember_command018] -spritemember_bitmap =bitmap3 -spritemember_maskbitmap=mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; - -[GRAPHICS-WSERV-WsSprite-Setup-0005-0001-new_command001] -ws =ws - -[GRAPHICS-WSERV-WsSprite-Setup-0005-0001-Construct_command002] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-WsSprite-Setup-0005-0001-Construct_command003] -clienthandle =1 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-Construct_command004] -clienthandle =1 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-new_command005] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-Construct_command006] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-new_command008] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-Construct_command009] -win =win -flag =0 -pos_x =10 -pos_y =10 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-new_command010] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-Construct_command011] -win =win -flag =0 -pos_x =10 -pos_y =70 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-Load_command013] -bitmap_id =0 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile=FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-Load_command015] -bitmap_id =1 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile=FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-AppendMember_command016] -spritemember_bitmap =bitmap1 -spritemember_maskbitmap =mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask =FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-Load_command018] -bitmap_id =2 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-AppendMember_command019] -spritemember_bitmap =bitmap2 -spritemember_maskbitmap =mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask =FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-Load_command021] -bitmap_id =1 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-AppendMember_command022] -spritemember_bitmap =bitmap3 -spritemember_maskbitmap =mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-Load_command024] -bitmap_id =2 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-AppendMember_command025] -spritemember_bitmap =bitmap4 -spritemember_maskbitmap =mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-new_command028] -ws=ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-RectCompare_command032] -flags=EIncludeSprite -rect1_top=10 -rect1_left=10 -rect1_bottom=60 -rect1_right=60 -rect2_top=70 -rect2_left=10 -rect2_bottom=120 -rect2_right=60 -expected=true - -[GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-Resize_command033] -width =40 -height =40 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-UpdateMember_command034] -index=0 -oneparameter=TRUE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0006-0001-RectCompare_command035] -flags=EIncludeSprite -rect1_top=10 -rect1_left=10 -rect1_bottom=60 -rect1_right=60 -rect2_top=70 -rect2_left=10 -rect2_bottom=120 -rect2_right=60 -expected=false - -[GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-Construct_command004] -clienthandle =1 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-new_command005] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-Construct_command006] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-new_command008] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-Construct_command009] -win =win -flag =0 -pos_x =20 -pos_y =20 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-new_command010] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-Construct_command011] -win =win -flag =0 -pos_x =20 -pos_y =80 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-Load_command013] -bitmap_id =0 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile=FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-Load_command015] -bitmap_id =1 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile=FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-AppendMember_command016] -spritemember_bitmap =bitmap1 -spritemember_maskbitmap =mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask =FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-AppendMember_command017] -spritemember_bitmap =bitmap1 -spritemember_maskbitmap =mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask =FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-Load_command019] -bitmap_id =2 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-AppendMember_command020] -spritemember_bitmap =bitmap2 -spritemember_maskbitmap=mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-AppendMember_command021] -spritemember_bitmap =bitmap2 -spritemember_maskbitmap=mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-new_command24] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-RectCompare_command028] -flags=EIncludeSprite -rect1_top=10 -rect1_left=10 -rect1_bottom=60 -rect1_right=60 -rect2_top=70 -rect2_left=10 -rect2_bottom=120 -rect2_right=60 -expected=true - -[GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-Load_command030] -bitmap_id =3 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-UpdateMember_command031] -index=0 -oneparameter=FALSE - -spritemember_bitmap =bitmap3 -spritemember_maskbitmap=mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0007-0001-RectCompare_command032] -flags=EIncludeSprite -rect1_top=10 -rect1_left=10 -rect1_bottom=60 -rect1_right=60 -rect2_top=70 -rect2_left=10 -rect2_bottom=120 -rect2_right=60 -expected=false - -[GRAPHICS-WSERV-WsSprite-PublicApi-0008-0001-new_command004] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0008-0001-new_command006] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0008-0001-Construct_command007] -win =win -flag =1 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0008-0001-Load_command009] -bitmap_id =0 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile=FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0008-0001-Load_command011] -bitmap_id =1 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile=FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0008-0001-AppendMember_command012] -spritemember_bitmap =bitmap1 -spritemember_maskbitmap =mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask =FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0008-0001-Load_command014] -bitmap_id =2 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0008-0001-AppendMember_command015] -spritemember_bitmap =bitmap2 -spritemember_maskbitmap=mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0008-0001-Load_command017] -bitmap_id =3 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0008-0001-AppendMember_command018] -spritemember_bitmap =bitmap3 -spritemember_maskbitmap=mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0008-0001-SetPosition_command019] -pos_x=10 -pos_y=10 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0008-0001-SetPosition_command021] -pos_x=50 -pos_y=50 - -[GRAPHICS-WSERV-WsSprite-Setup-0008-0001-new_command001] -ws =ws - -[GRAPHICS-WSERV-WsSprite-Setup-0008-0001-Construct_command002] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-WsSprite-Setup-0008-0001-Construct_command003] -clienthandle=1 - -[GRAPHICS-WSERV-WsSprite-Setup-0009-0001-new_command001] -ws =ws - -[GRAPHICS-WSERV-WsSprite-Setup-0009-0001-Construct_command002] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-WsSprite-Setup-0009-0001-Construct_command003] -clienthandle=1 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-new_command004] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-new_command006] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-Construct_command007] -win =win -flag =1 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-Load_command009] -bitmap_id =0 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile=FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-Load_command011] -bitmap_id =1 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile=FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-AppendMember_command012] -spritemember_bitmap =bitmap1 -spritemember_maskbitmap =mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask =FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-Load_command014] -bitmap_id =2 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-AppendMember_command015] -spritemember_bitmap =bitmap2 -spritemember_maskbitmap=mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-Load_command017] -bitmap_id =3 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-AppendMember_command018] -spritemember_bitmap =bitmap3 -spritemember_maskbitmap=mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-SetPosition_command019] -pos_x=10 -pos_y=10 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-SetPosition_command020] -pos_x=150 -pos_y=150 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-new_command21] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-RectCompare_command23] -flags=EIncludeSprite -rect1_top=10 -rect1_left=10 -rect1_bottom=60 -rect1_right=60 -rect2_top=150 -rect2_left=150 -rect2_bottom=200 -rect2_right=200 -expected=false - -[GRAPHICS-WSERV-WsSprite-PublicApi-0009-0001-RectCompare_command24] -flags=EIncludeSprite -rect1_top=10 -rect1_left=10 -rect1_bottom=60 -rect1_right=60 -rect2_top=150 -rect2_left=150 -rect2_bottom=200 -rect2_right=200 -expected=true - -[GRAPHICS-WSERV-WsSprite-PublicApi-0010-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0010-0001-Construct_command004] -clienthandle =1 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0010-0001-new_command005] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0010-0001-Construct_command006] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0010-0001-new_command007] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0010-0001-Construct_command008] -win =win -flag =0 -pos_x =-20 -pos_y =-20 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-Construct_command004] -clienthandle =1 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-new_command005] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-Construct_command006] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-new_command008] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-Construct_command009] -win =win -flag =0 -pos_x =20 -pos_y =20 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-new_command010] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-Construct_command011] -win =win -flag =ESpriteFlash -pos_x =20 -pos_y =80 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-Load_command013] -bitmap_id =0 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile=FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-Load_command015] -bitmap_id =1 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile=FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-AppendMember_command016] -spritemember_bitmap =bitmap1 -spritemember_maskbitmap =mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask =FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-AppendMember_command017] -spritemember_bitmap =bitmap1 -spritemember_maskbitmap =mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask =FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-Load_command019] -bitmap_id =2 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-AppendMember_command020] -spritemember_bitmap =bitmap2 -spritemember_maskbitmap=mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-AppendMember_command021] -spritemember_bitmap =bitmap2 -spritemember_maskbitmap=mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-Load_command023] -bitmap_id =3 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-AppendMember_command024] -spritemember_bitmap =bitmap3 -spritemember_maskbitmap=mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-AppendMember_command025] -spritemember_bitmap =bitmap3 -spritemember_maskbitmap=mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-new_command28] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0011-0001-RectCompare_command32] -flags=EIncludeSprite -rect1_top=0 -rect1_left=0 -rect1_bottom=50 -rect1_right=50 -rect2_top=60 -rect2_left=0 -rect2_bottom=110 -rect2_right=50 -expected=false - -[GRAPHICS-WSERV-WsSprite-PublicApi-0012-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0012-0001-Construct_command004] -clienthandle =1 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0012-0001-new_command005] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0012-0001-Construct_command006] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0012-0001-new_command007] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0012-0001-Construct_command008] -win =win -flag =ESpriteFlash -pos_x =-20 -pos_y =-20 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-Construct_command004] -clienthandle=1 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-new_command005] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-Construct_command006] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-new_command007] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-Construct_command008] -parent =win -handle =3 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-new_command009] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-Construct_command010] -win =win -flag =ESpriteNoChildClip -pos_x =20 -pos_y =20 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-new_command011] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-Construct_command012] -win =win -flag =0 -pos_x =20 -pos_y =80 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-Load_command014] -bitmap_id =0 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile=FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-Load_command016] -bitmap_id =1 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile=FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-AppendMember_command017] -spritemember_bitmap =bitmap1 -spritemember_maskbitmap =mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask =FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-AppendMember_command018] -spritemember_bitmap =bitmap1 -spritemember_maskbitmap =mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask =FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-Load_command020] -bitmap_id =2 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-AppendMember_command021] -spritemember_bitmap =bitmap2 -spritemember_maskbitmap=mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-AppendMember_command022] -spritemember_bitmap =bitmap2 -spritemember_maskbitmap=mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-Load_command024] -bitmap_id =3 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-AppendMember_command025] -spritemember_bitmap =bitmap3 -spritemember_maskbitmap=mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-AppendMember_command026] -spritemember_bitmap =bitmap3 -spritemember_maskbitmap=mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-SetPosition_command031] -point_x=20 -point_y=20 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-SetSize_command032] -size_height=100 -size_width=100 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-new_command037] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0013-0001-RectCompare_command039] -flags=EIncludeSprite -rect1_top=0 -rect1_left=0 -rect1_bottom=50 -rect1_right=50 -rect2_top=60 -rect2_left=0 -rect2_bottom=110 -rect2_right=50 -expected=false - - -[GRAPHICS-WSERV-WsSprite-PublicApi-0014-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0014-0001-Construct_command004] -clienthandle =1 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0014-0001-new_command005] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0014-0001-Construct_command006] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0014-0001-new_command007] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0014-0001-Construct_command008] -win =win -flag =ESpriteNoChildClip -pos_x =-20 -pos_y =-20 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-Construct_command004] -clienthandle=1 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-new_command005] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-Construct_command006] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-new_command007] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-Construct_command008] -parent =wingrp -handle =3 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-new_command009] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-Construct_command010] -win =win -flag =ESpriteNoShadows -pos_x =210 -pos_y =80 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-new_command011] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-Construct_command012] -win =win -flag =0 -pos_x =210 -pos_y =140 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-Load_command014] -bitmap_id =0 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile=FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-Load_command016] -bitmap_id =1 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile=FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-AppendMember_command017] -spritemember_bitmap =bitmap1 -spritemember_maskbitmap =mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask =FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-AppendMember_command018] -spritemember_bitmap =bitmap1 -spritemember_maskbitmap =mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask =FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-Load_command020] -bitmap_id =2 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-AppendMember_command021] -spritemember_bitmap =bitmap2 -spritemember_maskbitmap=mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-AppendMember_command022] -spritemember_bitmap =bitmap2 -spritemember_maskbitmap=mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-Load_command024] -bitmap_id =3 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-AppendMember_command025] -spritemember_bitmap =bitmap3 -spritemember_maskbitmap=mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-AppendMember_command026] -spritemember_bitmap =bitmap3 -spritemember_maskbitmap=mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-SetPosition_command031] -point_x=0 -point_y=0 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-SetSize_command032] -size_height=200 -size_width=200 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-SetShadowHeight_command033] -height=15 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-new_command038] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0015-0001-RectCompare_command040] -flags=EIncludeSprite -rect1_top=60 -rect1_left=190 -rect1_bottom=110 -rect1_right=240 -rect2_top=120 -rect2_left=190 -rect2_bottom=170 -rect2_right=240 -expected=false - -[GRAPHICS-WSERV-WsSprite-PublicApi-0016-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0016-0001-Construct_command004] -clienthandle =1 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0016-0001-new_command005] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0016-0001-Construct_command006] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0016-0001-new_command007] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0016-0001-Construct_command008] -win =win -flag =ESpriteNoShadows -pos_x =-20 -pos_y =-20 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0017-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0017-0001-Construct_command004] -clienthandle=1 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0017-0001-new_command005] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0017-0001-Construct_command006] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0017-0001-new_command008] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0017-0001-Construct_command009] -win =win -flag =ESpriteFlash - -[GRAPHICS-WSERV-WsSprite-PublicApi-0017-0001-Load_command011] -bitmap_id =0 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile=FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0017-0001-Load_command013] -bitmap_id =1 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile=FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0017-0001-AppendMember_command014] -spritemember_bitmap =bitmap1 -spritemember_maskbitmap =mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask =FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0017-0001-Load_command016] -bitmap_id =2 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0017-0001-AppendMember_command017] -spritemember_bitmap =bitmap2 -spritemember_maskbitmap=mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0017-0001-Load_command019] -bitmap_id =3 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0017-0001-AppendMember_command020] -spritemember_bitmap =bitmap3 -spritemember_maskbitmap=mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0017-0001-SetPosition_command022] -pos_x=-50 -pos_y=-50 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0017-0001-SetPosition_command023] -pos_x=50 -pos_y=50 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0017-0001-SetPosition_command024] -pos_x=5000 -pos_y=5000 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0018-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0018-0001-Construct_command004] -clienthandle=1 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0018-0001-new_command005] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0018-0001-Construct_command006] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0018-0001-new_command008] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0018-0001-Construct_command009] -win =win -flag =ESpriteNoChildClip - -[GRAPHICS-WSERV-WsSprite-PublicApi-0018-0001-Load_command011] -bitmap_id =0 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile=FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0018-0001-Load_command013] -bitmap_id =1 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile=FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0018-0001-AppendMember_command014] -spritemember_bitmap =bitmap1 -spritemember_maskbitmap =mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask =FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0018-0001-Load_command016] -bitmap_id =2 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0018-0001-AppendMember_command017] -spritemember_bitmap =bitmap2 -spritemember_maskbitmap=mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0018-0001-Load_command019] -bitmap_id =3 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0018-0001-AppendMember_command020] -spritemember_bitmap =bitmap3 -spritemember_maskbitmap=mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0018-0001-SetPosition_command022] -pos_x=-50 -pos_y=-50 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0018-0001-SetPosition_command023] -pos_x=50 -pos_y=50 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0018-0001-SetPosition_command024] -pos_x=5000 -pos_y=5000 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0019-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0019-0001-Construct_command004] -clienthandle=1 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0019-0001-new_command005] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0019-0001-Construct_command006] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0019-0001-new_command008] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0019-0001-Construct_command009] -win =win -flag =ESpriteNoShadows - -[GRAPHICS-WSERV-WsSprite-PublicApi-0019-0001-Load_command011] -bitmap_id =0 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile=FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0019-0001-Load_command013] -bitmap_id =1 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile=FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0019-0001-AppendMember_command014] -spritemember_bitmap =bitmap1 -spritemember_maskbitmap =mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask =FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0019-0001-Load_command016] -bitmap_id =2 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0019-0001-AppendMember_command017] -spritemember_bitmap =bitmap2 -spritemember_maskbitmap=mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0019-0001-Load_command019] -bitmap_id =3 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0019-0001-AppendMember_command020] -spritemember_bitmap =bitmap3 -spritemember_maskbitmap=mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0019-0001-SetPosition_command022] -pos_x=-50 -pos_y=-50 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0019-0001-SetPosition_command023] -pos_x=50 -pos_y=50 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0019-0001-SetPosition_command024] -pos_x=5000 -pos_y=5000 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0020-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0020-0001-Construct_command004] -clienthandle=1 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0020-0001-new_command005] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0020-0001-Construct_command006] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0020-0001-new_command008] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0020-0001-Construct_command009] -win =win -flag =ESpriteNoShadows - -[GRAPHICS-WSERV-WsSprite-PublicApi-0020-0001-Load_command011] -bitmap_id =0 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile=FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0020-0001-Load_command013] -bitmap_id =1 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile=FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0020-0001-AppendMember_command014] -spritemember_bitmap =bitmap1 -spritemember_maskbitmap =mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask =FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0020-0001-Load_command016] -bitmap_id =2 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0020-0001-AppendMember_command017] -spritemember_bitmap =bitmap2 -spritemember_maskbitmap=mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0020-0001-Load_command019] -bitmap_id =3 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0020-0001-AppendMember_command020] -spritemember_bitmap =bitmap3 -spritemember_maskbitmap=mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0020-0001-new_command021] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0020-0001-RectCompare_command025] -flags=EIncludeSprite -rect1_top=0 -rect1_left=0 -rect1_bottom=100 -rect1_right=100 -rect2_top=0 -rect2_left=110 -rect2_bottom=100 -rect2_right=210 -expected=true - -[GRAPHICS-WSERV-WsSprite-PublicApi-0020-0001-SetPosition_command027] -pos_x=140 -pos_y=30 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0020-0001-RectCompare_command028] -flags=EIncludeSprite -rect1_top=0 -rect1_left=0 -rect1_bottom=100 -rect1_right=100 -rect2_top=0 -rect2_left=110 -rect2_bottom=100 -rect2_right=210 -expected=false - -[GRAPHICS-WSERV-WsSprite-PublicApi-0022-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0022-0001-Construct_command004] -clienthandle=1 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0022-0001-new_command005] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0022-0001-Construct_command006] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0022-0001-new_command008] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0022-0001-Construct_command009] -win =win -flag =ESpriteNoShadows - -[GRAPHICS-WSERV-WsSprite-PublicApi-0023-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0023-0001-Construct_command004] -clienthandle=1 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0023-0001-new_command005] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0023-0001-Construct_command006] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0023-0001-new_command008] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0023-0001-Construct_command009] -win =win -flag =ESpriteNoShadows - -[GRAPHICS-WSERV-WsSprite-PublicApi-0023-0001-Load_command011] -bitmap_id =0 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0023-0001-Load_command013] -bitmap_id =1 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0023-0001-AppendMember_command014] -spritemember_bitmap =bitmap1 -spritemember_maskbitmap =mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0023-0001-Load_command016] -bitmap_id =2 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0023-0001-AppendMember_command017] -spritemember_bitmap =bitmap2 -spritemember_maskbitmap =mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask =FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0023-0001-Load_command019] -bitmap_id =3 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0023-0001-AppendMember_command020] -spritemember_bitmap =bitmap3 -spritemember_maskbitmap =mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0023-0001-UpdateMember_command022] -index=-1 -oneparameter=FALSE -spritemember_bitmap =bitmap3 -spritemember_maskbitmap =mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0024-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0024-0001-Construct_command004] -clienthandle=1 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0024-0001-new_command005] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0024-0001-Construct_command006] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0024-0001-new_command008] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0024-0001-Construct_command009] -win =win -flag =ESpriteNoShadows - -[GRAPHICS-WSERV-WsSprite-PublicApi-0024-0001-Load_command011] -bitmap_id =0 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0024-0001-Load_command013] -bitmap_id =1 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0024-0001-AppendMember_command014] -spritemember_bitmap =bitmap1 -spritemember_maskbitmap =mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0024-0001-Load_command016] -bitmap_id =2 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0024-0001-AppendMember_command017] -spritemember_bitmap =bitmap2 -spritemember_maskbitmap =mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask =FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0024-0001-Load_command019] -bitmap_id =3 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0024-0001-AppendMember_command020] -spritemember_bitmap =bitmap3 -spritemember_maskbitmap =mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0024-0001-UpdateMember_command022] -index=-1 -oneparameter=TRUE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0025-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0025-0001-Construct_command004] -clienthandle=1 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0025-0001-new_command005] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0025-0001-Construct_command006] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0025-0001-new_command008] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0025-0001-Construct_command009] -win =win -flag =ESpriteNoShadows - -[GRAPHICS-WSERV-WsSprite-PublicApi-0025-0001-Load_command011] -bitmap_id =0 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0025-0001-Load_command013] -bitmap_id =1 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0025-0001-AppendMember_command014] -spritemember_bitmap =bitmap1 -spritemember_maskbitmap =mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0025-0001-Load_command016] -bitmap_id =2 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0025-0001-AppendMember_command017] -spritemember_bitmap =bitmap2 -spritemember_maskbitmap =mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask =FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0025-0001-Load_command019] -bitmap_id =3 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0025-0001-AppendMember_command020] -spritemember_bitmap =bitmap3 -spritemember_maskbitmap =mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0025-0001-Load_command023] -bitmap_id =4 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0025-0001-UpdateMember_command024] -index=0 -oneparameter=FALSE -spritemember_bitmap =bitmap1 -spritemember_maskbitmap =bitmap4 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0026-0001-new_command003] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0026-0001-Construct_command004] -clienthandle=1 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0026-0001-new_command005] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0026-0001-Construct_command006] -parent =wingrp -handle =2 - -[GRAPHICS-WSERV-WsSprite-PublicApi-0026-0001-new_command008] -ws =ws - -[GRAPHICS-WSERV-WsSprite-PublicApi-0026-0001-Construct_command009] -win =win -flag =ESpriteNoShadows - -[GRAPHICS-WSERV-WsSprite-PublicApi-0026-0001-Load_command011] -bitmap_id =0 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0026-0001-Load_command013] -bitmap_id =1 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0026-0001-AppendMember_command014] -spritemember_bitmap =bitmap1 -spritemember_maskbitmap =mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0026-0001-Load_command016] -bitmap_id =2 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0026-0001-AppendMember_command017] -spritemember_bitmap =bitmap2 -spritemember_maskbitmap =mask1 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask =FALSE; - -[GRAPHICS-WSERV-WsSprite-PublicApi-0026-0001-Load_command019] -bitmap_id =4 -file_name =\graphics\wserv\test_RWsSprite_bitmap.mbm -share_if_loaded =FALSE -use_rfile =FALSE -#file_offset =8 -use_closed_rfile =FALSE - -[GRAPHICS-WSERV-WsSprite-PublicApi-0026-0001-AppendMember_command020] -spritemember_bitmap =bitmap1 -spritemember_maskbitmap =bitmap3 -spritemember_drawmode =EDrawModeAND -spritemember_offset_x =5 -spritemember_offset_y =5 -spritemember_interval =1000 -spritemember_invertmask=FALSE; - -[GRAPHICS-WSERV-WsSprite-Setup-0001-0001-SimulateKeyEvent_command001] -keycode=EKeyEnter -modifiers=0 diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/testdata/WsGraphicBitmapAnimation.mbm Binary file graphicsapitest/graphicssvs/wserv/testdata/WsGraphicBitmapAnimation.mbm has changed diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/testdata/datafile/WsGraphicBitmapAnimation.mbm Binary file graphicsapitest/graphicssvs/wserv/testdata/datafile/WsGraphicBitmapAnimation.mbm has changed diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/testdata/datafile/test_alpha.mbm Binary file graphicsapitest/graphicssvs/wserv/testdata/datafile/test_alpha.mbm has changed diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/testdata/datafile/test_board.mbm Binary file graphicsapitest/graphicssvs/wserv/testdata/datafile/test_board.mbm has changed diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/testdata/datafile/test_mask.mbm Binary file graphicsapitest/graphicssvs/wserv/testdata/datafile/test_mask.mbm has changed diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/testdata/datafile/test_rwssprite_bitmap.mbm Binary file graphicsapitest/graphicssvs/wserv/testdata/datafile/test_rwssprite_bitmap.mbm has changed diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/testdata/datafile/testfontws.gdr Binary file graphicsapitest/graphicssvs/wserv/testdata/datafile/testfontws.gdr has changed diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/testdata/test_alpha.bmp Binary file graphicsapitest/graphicssvs/wserv/testdata/test_alpha.bmp has changed diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/testdata/test_board.bmp Binary file graphicsapitest/graphicssvs/wserv/testdata/test_board.bmp has changed diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/graphicssvs/wserv/testdata/test_mask.bmp Binary file graphicsapitest/graphicssvs/wserv/testdata/test_mask.bmp has changed diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsapitest/screendriverhaitest/screendriver/group/t_screendriver_testdata_helium.pkg --- a/graphicsapitest/screendriverhaitest/screendriver/group/t_screendriver_testdata_helium.pkg Wed Jun 23 19:41:15 2010 +0300 +++ b/graphicsapitest/screendriverhaitest/screendriver/group/t_screendriver_testdata_helium.pkg Tue Jul 06 15:45:57 2010 +0300 @@ -35,5 +35,5 @@ ;*Files To Copy... -"Epoc32\data\z\graphics\graphics-screendriver-cfbsdrawdevice-automated.script"-"c:\graphics\graphics-screendriver-cfbsdrawdevice-automated.script" +"\epoc32\data\z\graphics\graphics-screendriver-cfbsdrawdevice-automated.script"-"c:\graphics\graphics-screendriver-cfbsdrawdevice-automated.script" diff -r 7f25ef56562d -r 29ddb8a72f0e graphicscomposition/openwfsupport/test/group/wfcinterop_tests_helium.pkg --- a/graphicscomposition/openwfsupport/test/group/wfcinterop_tests_helium.pkg Wed Jun 23 19:41:15 2010 +0300 +++ b/graphicscomposition/openwfsupport/test/group/wfcinterop_tests_helium.pkg Tue Jul 06 15:45:57 2010 +0300 @@ -36,5 +36,5 @@ ;REM OpenWFC adaptation Test Scripts [no plugins] ;//Please execute only the tests appropriate to your hardware capabilities. -"..\scripts\wfctest\tstreamoperation.script"-"c:\wfctest\tstreamoperation.script" +"\epoc32\data\z\wfctest\tstreamoperation.script"-"c:\wfctest\tstreamoperation.script" diff -r 7f25ef56562d -r 29ddb8a72f0e graphicscomposition/openwfsupport/test/tstreamoperation/tnativestream.cpp --- a/graphicscomposition/openwfsupport/test/tstreamoperation/tnativestream.cpp Wed Jun 23 19:41:15 2010 +0300 +++ b/graphicscomposition/openwfsupport/test/tstreamoperation/tnativestream.cpp Tue Jul 06 15:45:57 2010 +0300 @@ -954,7 +954,7 @@ ASSERT_EQUALS(attWidth, width); ASSERT_EQUALS(attHeight, height); - ASSERT_EQUALS(attStreamFormat, (TInt32)supportedFormats[x].symbianPixelFormat); + ASSERT_EQUALS((TInt32)attStreamFormat, (TInt32)supportedFormats[x].symbianPixelFormat); if (BytesPerPixel(supportedFormats[x].symbianPixelFormat) > 0) { ASSERT_EQUALS(attStreamStride, (streamPixelSize * width)); @@ -4746,7 +4746,7 @@ ASSERT_EQUALS(preFlipWidth, height); ASSERT_EQUALS(preFlipHeight, width); - ASSERT_EQUALS(preFlipStreamFormat, streamFormat); + ASSERT_EQUALS((TInt32)preFlipStreamFormat,(TInt32)streamFormat); ASSERT_TRUE(streamStride == halStride); ASSERT_EQUALS(preFlipStreamPixelSize, streamPixelSize); diff -r 7f25ef56562d -r 29ddb8a72f0e graphicscomposition/surfaceupdate/group/surfaceupdatetest_helium.pkg --- a/graphicscomposition/surfaceupdate/group/surfaceupdatetest_helium.pkg Wed Jun 23 19:41:15 2010 +0300 +++ b/graphicscomposition/surfaceupdate/group/surfaceupdatetest_helium.pkg Tue Jul 06 15:45:57 2010 +0300 @@ -33,5 +33,5 @@ ;*Files To Copy... -"..\tsrc\surfaceupdate.script"-"c:\surfaceupdate\surfaceupdate.script" +"\epoc32\data\z\surfaceupdate\surfaceupdate.script"-"c:\surfaceupdate\surfaceupdate.script" diff -r 7f25ef56562d -r 29ddb8a72f0e graphicscomposition/surfaceupdate/group/surfaceupdatetest_integ_helium.pkg --- a/graphicscomposition/surfaceupdate/group/surfaceupdatetest_integ_helium.pkg Wed Jun 23 19:41:15 2010 +0300 +++ b/graphicscomposition/surfaceupdate/group/surfaceupdatetest_integ_helium.pkg Tue Jul 06 15:45:57 2010 +0300 @@ -35,5 +35,5 @@ ;*Files To Copy... -"..\tsrc\surfaceupdateinteg.script"-"c:\surfaceupdate\surfaceupdateinteg.script" +"\epoc32\data\z\surfaceupdate\surfaceupdateinteg.script"-"c:\surfaceupdate\surfaceupdateinteg.script" diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsdeviceinterface/bitgdi/Documentation/FONTFILE.rtf --- a/graphicsdeviceinterface/bitgdi/Documentation/FONTFILE.rtf Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,68 +0,0 @@ -{\rtf1\ansi \deff4\deflang1033{\fonttbl{\f4\froman\fcharset0\fprq2 Times New Roman;}{\f5\fswiss\fcharset0\fprq2 Arial;}{\f11\fmodern\fcharset0\fprq1 Courier New;}}{\colortbl;\red0\green0\blue0;\red0\green0\blue255; -\red0\green255\blue255;\red0\green255\blue0;\red255\green0\blue255;\red255\green0\blue0;\red255\green255\blue0;\red255\green255\blue255;\red0\green0\blue128;\red0\green128\blue128;\red0\green128\blue0;\red128\green0\blue128;\red128\green0\blue0; -\red128\green128\blue0;\red128\green128\blue128;\red192\green192\blue192;}{\stylesheet{\widctlpar \f4\fs20\lang2057 \snext0 Normal;}{\s1\sb240\sa60\keepn\widctlpar \b\f5\fs28\lang2057\kerning28 \sbasedon0\snext0 heading 1;}{\s2\sb240\sa60\keepn\widctlpar -\b\i\f5\lang2057 \sbasedon0\snext0 heading 2;}{\s3\sb240\sa60\keepn\widctlpar \b\f4\lang2057 \sbasedon0\snext0 heading 3;}{\*\cs10 \additive Default Paragraph Font;}}{\info{\title Protea font file format}{\author Steve Townsend}{\operator Lane Roberts} -{\creatim\yr1995\mo6\dy5\hr13\min36}{\revtim\yr1999\mo10\dy15\hr17\min35}{\printim\yr1995\mo6\dy5\hr14\min2}{\version7}{\edmins55}{\nofpages2}{\nofwords340}{\nofchars1941}{\*\company Dell Computer Corporation}{\vern57443}} -\widowctrl\ftnbj\aenddoc\formshade \fet0\sectd \linex0\headery709\footery709\colsx709\endnhere {\*\pnseclvl1\pnucrm\pnstart1\pnindent720\pnhang{\pntxta .}}{\*\pnseclvl2\pnucltr\pnstart1\pnindent720\pnhang{\pntxta .}}{\*\pnseclvl3 -\pndec\pnstart1\pnindent720\pnhang{\pntxta .}}{\*\pnseclvl4\pnlcltr\pnstart1\pnindent720\pnhang{\pntxta )}}{\*\pnseclvl5\pndec\pnstart1\pnindent720\pnhang{\pntxtb (}{\pntxta )}}{\*\pnseclvl6\pnlcltr\pnstart1\pnindent720\pnhang{\pntxtb (}{\pntxta )}} -{\*\pnseclvl7\pnlcrm\pnstart1\pnindent720\pnhang{\pntxtb (}{\pntxta )}}{\*\pnseclvl8\pnlcltr\pnstart1\pnindent720\pnhang{\pntxtb (}{\pntxta )}}{\*\pnseclvl9\pnlcrm\pnstart1\pnindent720\pnhang{\pntxtb (}{\pntxta )}}\pard\plain -\s1\ri-1050\sb240\sa60\keepn\widctlpar \b\f5\fs28\lang2057\kerning28 Font file format -\par \pard\plain \ri-1050\widctlpar \f4\fs20\lang2057 -\par The font can be broken down into the following sections:- -\par -\par \pard \ri-1050\widctlpar {\f11 Signature -\par Header info -\par Character map -\par Font metrics -\par Font encoding -\par }\pard\plain \s3\ri-1050\sb240\sa60\keepn\widctlpar \b\f4\lang2057 Signature -\par \pard\plain \ri-1050\widctlpar \f4\fs20\lang2057 T.B.S, will be designed to fit in with a global Protea standard -\par \pard\plain \s3\ri-1050\sb240\sa60\keepn\widctlpar \b\f4\lang2057 Header Info -\par \pard\plain \ri-1050\widctlpar \f4\fs20\lang2057 {\f11 \{ -\par WORD cell_height; -\par WORD ascent; -\par WORD descent; -\par BYTE uline_pos; -\par UBYTE uline_hgt; -\par WORD section_count; -\par UWORD flags; -\par TEXT name[PRF_NAME_SIZE]; -\par \} -\par }\pard\plain \s3\ri-1050\sb240\sa60\keepn\widctlpar \b\f4\lang2057 Character map -\par \pard\plain \ri-1050\widctlpar \f4\fs20\lang2057 List of {\f11 section_count} - of following structure specifying sections of the character space that contain characters. (Note, it is assumed there will be very large empty sections so a solid block of characters with holes would be very inefficient). -\par \pard \ri-1050\widctlpar\tx4395 {\f11 \{ -\par WORD start; -\par WORD end; -\par \} -\par }\pard\plain \s3\ri-1050\sb240\sa60\keepn\widctlpar \b\f4\lang2057 Font metrics -\par \pard\plain \ri-1050\widctlpar \f4\fs20\lang2057 {\f11 \{ -\par BYTE leftAdjust;\tab // Adjustment for left hand side of the character cell -\par BYTE rightAdjust; // Adjustment for right hand side of the character cell -\par WORD ascent;\tab // Ascent of top of character cell from print position -\par WORD height;\tab // Height of character cell -\par WORD move;\tab \tab // Amount to move the print position -\par LONG offset;\tab // Offset of character encoding from start of encoding data -\par \} -\par }\pard\plain \s3\sb240\sa60\keepn\widctlpar \b\f4\lang2057 Font encoding -\par \pard\plain \ri-1050\widctlpar \f4\fs20\lang2057 -The font encoding is compacted together with no bit alignement within each character, although each character will start on a byte boundary. Each section of encoding is preceeded by a count that specifies either the numbe -r of times the next line will repeat or the number of non-repeating lines to read before another count is encountered. The count is stored in 5 bits, if the first is set the count is a count of non-repeating lines following, if the bit is clear the count -specifies the number of times to repeat the following line. -\par \pard \ri-1050\widctlpar -\par \pard\plain \s3\sb240\sa60\keepn\widctlpar \b\f4\lang2057 Example of encoding. -\par \pard\plain \ri-1049\keepn\widctlpar \f4\fs20\lang2057 {\f11\fs24 XXX.....XXX -\par .X.......X. -\par .X.......X. -\par .X.......X. -\par .XXXXXXXXX. -\par .X.......X. -\par .X.......X. -\par .X.......X. -\par XXX.....XXX -\par }\pard \ri-1050\widctlpar {\f11\fs24 -\par }\pard \ri-1050\widctlpar First count could either be specified as a repeat of 1 or 1 non-repeating scan line, followed by 11 bits of picture data ({\f11 XXX.....XXX} -). Then a repeat count of 3 followed the next 11 bits of picture data specifying the line to repeat ({\f11 .X.......X.}). Then again either a repeat of 1 or a non-repeat count of 1 followed by the picture data ({\f11 .XXXXXXXXX.} -). Another repeat of 3 and the picture data ({\f11 .X.......X.}), and a repeat of non-repeat count of 1 and the final line of picture data ({\f11 XXX.....XXX}). -\par \pard \ri-1050\widctlpar The total storage space for this example would be 80 bits (10 bytes), .Made up of 5x5bits of count info + 5x11 bits of picture info. -\par } \ No newline at end of file diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsdeviceinterface/bitgdi/Documentation/TestCode.rtf --- a/graphicsdeviceinterface/bitgdi/Documentation/TestCode.rtf Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,77 +0,0 @@ -{\rtf1\ansi\ansicpg1252\uc1 \deff0\deflang1033\deflangfe1033{\fonttbl{\f0\froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}{\f1\fswiss\fcharset0\fprq2{\*\panose 020b0604020202020204}Arial;} -{\f16\froman\fcharset238\fprq2 Times New Roman CE;}{\f17\froman\fcharset204\fprq2 Times New Roman Cyr;}{\f19\froman\fcharset161\fprq2 Times New Roman Greek;}{\f20\froman\fcharset162\fprq2 Times New Roman Tur;} -{\f21\froman\fcharset186\fprq2 Times New Roman Baltic;}{\f22\fswiss\fcharset238\fprq2 Arial CE;}{\f23\fswiss\fcharset204\fprq2 Arial Cyr;}{\f25\fswiss\fcharset161\fprq2 Arial Greek;}{\f26\fswiss\fcharset162\fprq2 Arial Tur;} -{\f27\fswiss\fcharset186\fprq2 Arial Baltic;}}{\colortbl;\red0\green0\blue0;\red0\green0\blue255;\red0\green255\blue255;\red0\green255\blue0;\red255\green0\blue255;\red255\green0\blue0;\red255\green255\blue0;\red255\green255\blue255;\red0\green0\blue128; -\red0\green128\blue128;\red0\green128\blue0;\red128\green0\blue128;\red128\green0\blue0;\red128\green128\blue0;\red128\green128\blue128;\red192\green192\blue192;}{\stylesheet{\widctlpar\adjustright \fs20\lang2057 \snext0 Normal;}{ -\s1\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\lang2057\kerning28 \sbasedon0 \snext0 heading 1;}{\s2\sb240\sa60\keepn\widctlpar\adjustright \b\i\f1\lang2057 \sbasedon0 \snext0 heading 2;}{\s3\sb240\sa60\keepn\widctlpar\adjustright \f1\lang2057 -\sbasedon0 \snext0 heading 3;}{\s4\keepn\widctlpar\outlinelevel3\adjustright \b\f1\fs20\lang2057 \sbasedon0 \snext0 heading 4;}{\s5\keepn\widctlpar\outlinelevel4\adjustright \b\f1\lang2057 \sbasedon0 \snext0 heading 5;}{\*\cs10 \additive -Default Paragraph Font;}}{\*\listtable{\list\listtemplateid38323078\listsimple{\listlevel\levelnfc23\leveljc0\levelfollow0\levelstartat0\levelspace0\levelindent0{\leveltext\'01-;}{\levelnumbers;}\f0\fbias0 \fi-360\li1800\jclisttab\tx1800 }{\listname -;}\listid817500656}{\list\listtemplateid38323078\listsimple{\listlevel\levelnfc23\leveljc0\levelfollow0\levelstartat0\levelspace0\levelindent0{\leveltext\'01-;}{\levelnumbers;}\f0\fbias0 \fi-360\li1800\jclisttab\tx1800 }{\listname ;}\listid1308366115} -{\list\listtemplateid38323078\listsimple{\listlevel\levelnfc23\leveljc0\levelfollow0\levelstartat0\levelspace0\levelindent0{\leveltext\'01-;}{\levelnumbers;}\f0\fbias0 \fi-360\li1800\jclisttab\tx1800 }{\listname ;}\listid1721782559}}{\*\listoverridetable -{\listoverride\listid1308366115\listoverridecount0\ls1}{\listoverride\listid817500656\listoverridecount0\ls2}{\listoverride\listid1721782559\listoverridecount0\ls3}}{\info{\author Lane Roberts}{\operator Derek Clarke}{\creatim\yr2000\mo8\dy30\hr9\min15} -{\revtim\yr2002\mo10\dy10\hr17\min46}{\version7}{\edmins41}{\nofpages1}{\nofwords171}{\nofchars977}{\*\company Dell Computer Corporation}{\nofcharsws0}{\vern113}}\paperw11909\paperh16834\margl1440\margr1440 -\widowctrl\ftnbj\aenddoc\hyphcaps0\formshade\viewkind1\viewscale100 \fet0\sectd \psz9\linex0\headery706\footery706\colsx709\endnhere\sectdefaultcl {\*\pnseclvl1\pnucrm\pnstart1\pnindent720\pnhang{\pntxta .}}{\*\pnseclvl2 -\pnucltr\pnstart1\pnindent720\pnhang{\pntxta .}}{\*\pnseclvl3\pndec\pnstart1\pnindent720\pnhang{\pntxta .}}{\*\pnseclvl4\pnlcltr\pnstart1\pnindent720\pnhang{\pntxta )}}{\*\pnseclvl5\pndec\pnstart1\pnindent720\pnhang{\pntxtb (}{\pntxta )}}{\*\pnseclvl6 -\pnlcltr\pnstart1\pnindent720\pnhang{\pntxtb (}{\pntxta )}}{\*\pnseclvl7\pnlcrm\pnstart1\pnindent720\pnhang{\pntxtb (}{\pntxta )}}{\*\pnseclvl8\pnlcltr\pnstart1\pnindent720\pnhang{\pntxtb (}{\pntxta )}}{\*\pnseclvl9\pnlcrm\pnstart1\pnindent720\pnhang -{\pntxtb (}{\pntxta )}}\pard\plain \s1\sb240\sa60\keepn\widctlpar\outlinelevel0\adjustright \b\f1\fs28\lang2057\kerning28 {BITGDI test code -\par }\pard\plain \widctlpar\adjustright \fs20\lang2057 {\f1 -\par }{\b\f1\fs24 Test executable file locations -\par -\par }\trowd \trgaph108\trleft-108\trbrdrt\brdrs\brdrw10 \trbrdrl\brdrs\brdrw10 \trbrdrb\brdrs\brdrw10 \trbrdrr\brdrs\brdrw10 \trbrdrh\brdrs\brdrw10 \trbrdrv\brdrs\brdrw10 \clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr -\brdrs\brdrw10 \clshdng10000\cltxlrtb \cellx3050\clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 \clshdng10000\cltxlrtb \cellx6208\pard \widctlpar\intbl\adjustright {\b\f1 WINS location\cell -Hardware location\cell }\pard \widctlpar\intbl\adjustright {\b\f1 \row }\trowd \trgaph108\trleft-108\trbrdrt\brdrs\brdrw10 \trbrdrl\brdrs\brdrw10 \trbrdrb\brdrs\brdrw10 \trbrdrr\brdrs\brdrw10 \trbrdrh\brdrs\brdrw10 \trbrdrv\brdrs\brdrw10 \clvertalt -\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 \cltxlrtb \cellx3050\clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 \cltxlrtb \cellx6208\pard -\widctlpar\intbl\adjustright {\f1 \\epoc32\\release\\wins\\udeb\\ -\par or -\par \\epoc32\\release\\wins\\urel\\\cell c:\\ or z:\\\cell }\pard \widctlpar\intbl\adjustright {\f1 \row }\pard \widctlpar\adjustright {\f1 -\par }\pard\plain \s5\keepn\widctlpar\outlinelevel4\adjustright \b\f1\lang2057 {Automatic test executables - should be run before every release -\par }\pard\plain \widctlpar\adjustright \fs20\lang2057 {\f1 Success: Test program exits cleanly, apart from panic dialogs due to panic testing conducted by TAUTO.EXE. -\par Failure: Test program stops with an error message.}{ -\par }{\b\f1 -\par }\trowd \trgaph108\trleft-108\trbrdrt\brdrs\brdrw10 \trbrdrl\brdrs\brdrw10 \trbrdrb\brdrs\brdrw10 \trbrdrr\brdrs\brdrw10 \trbrdrh\brdrs\brdrw10 \trbrdrv\brdrs\brdrw10 \clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr -\brdrs\brdrw10 \clshdng10000\cltxlrtb \cellx2380\clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 \clshdng10000\cltxlrtb \cellx8155\pard\plain \s4\keepn\widctlpar\intbl\outlinelevel3\adjustright -\b\f1\fs20\lang2057 {Filename\cell Purpose\cell }\pard\plain \widctlpar\intbl\adjustright \fs20\lang2057 {\b\f1 \row }\trowd \trgaph108\trleft-108\trbrdrt\brdrs\brdrw10 \trbrdrl\brdrs\brdrw10 \trbrdrb\brdrs\brdrw10 \trbrdrr\brdrs\brdrw10 \trbrdrh -\brdrs\brdrw10 \trbrdrv\brdrs\brdrw10 \clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 \cltxlrtb \cellx2380\clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr -\brdrs\brdrw10 \cltxlrtb \cellx8155\pard \widctlpar\intbl\adjustright {\f1 TACCELERATOR.EXE\tab \cell Graphics accelerator test}{\b\f1 \cell }\pard \widctlpar\intbl\adjustright {\b\f1 \row }\pard \widctlpar\intbl\adjustright {\f1 TAUTO.EXE\tab \tab -\cell Colour mapping, alloc heaven, bitmap blitting and panic tests}{\b\f1 \cell }\pard \widctlpar\intbl\adjustright {\b\f1 \row }\pard \widctlpar\intbl\adjustright {\f1 TBASE.EXE\tab \tab \cell Drawing primitives test}{\b\f1 \cell }\pard -\widctlpar\intbl\adjustright {\b\f1 \row }\pard \widctlpar\intbl\adjustright {\f1 TCLIP.EXE\tab \tab \cell Clipping test}{\b\f1 \cell }\pard \widctlpar\intbl\adjustright {\b\f1 \row }\pard \widctlpar\intbl\adjustright {\f1 TPARAM.EXE\tab \tab \cell - Huge parameter handling test}{\b\f1 \cell }\pard \widctlpar\intbl\adjustright {\b\f1 \row }\trowd \trgaph108\trleft-108\trbrdrt\brdrs\brdrw10 \trbrdrl\brdrs\brdrw10 \trbrdrb\brdrs\brdrw10 \trbrdrr\brdrs\brdrw10 \trbrdrh\brdrs\brdrw10 \trbrdrv -\brdrs\brdrw10 \clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 \cltxlrtb \cellx2380\clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 \cltxlrtb -\cellx8155\pard \widctlpar\intbl\adjustright {\f1 TSWITCH.EXE\tab \tab \cell Display mode switching test}{\b\f1 \cell }\pard \widctlpar\intbl\adjustright {\b\f1 \row }\pard \widctlpar\adjustright {\b\f1 -\par }{\b\f1\fs24 Manual test executables - should be run if relevant changes have been made}{\f1 -\par }{\b\f1 -\par }\trowd \trgaph108\trleft-108\trbrdrt\brdrs\brdrw10 \trbrdrl\brdrs\brdrw10 \trbrdrb\brdrs\brdrw10 \trbrdrr\brdrs\brdrw10 \trbrdrh\brdrs\brdrw10 \trbrdrv\brdrs\brdrw10 \clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr -\brdrs\brdrw10 \clshdng10000\cltxlrtb \cellx1487\clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 \clshdng10000\cltxlrtb \cellx7817\pard \widctlpar\intbl\adjustright {\b\f1 Filename\cell Purpose\cell -}\pard \widctlpar\intbl\adjustright {\b\f1 \row }\trowd \trgaph108\trleft-108\trbrdrt\brdrs\brdrw10 \trbrdrl\brdrs\brdrw10 \trbrdrb\brdrs\brdrw10 \trbrdrr\brdrs\brdrw10 \trbrdrh\brdrs\brdrw10 \trbrdrv\brdrs\brdrw10 \clvertalt\clbrdrt\brdrs\brdrw10 -\clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 \cltxlrtb \cellx1487\clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 \cltxlrtb \cellx7817\pard \widctlpar\intbl\adjustright {\f1 -TDEMO.EXE\cell Visual display mode switching test\cell }\pard \widctlpar\intbl\adjustright {\f1 \row }\pard \widctlpar\intbl\adjustright {\f1 TEMPTY.EXE\cell Empty source file for checking that object file compiles to zero bytes\cell }\pard -\widctlpar\intbl\adjustright {\f1 \row }\pard \widctlpar\intbl\adjustright {\f1 TFONT.EXE\cell Visual font display test\cell }\pard \widctlpar\intbl\adjustright {\f1 \row }\pard \widctlpar\intbl\adjustright {\f1 TMODE.EXE\cell Visual display mode test -\cell }\pard \widctlpar\intbl\adjustright {\f1 \row }\pard \widctlpar\intbl\adjustright {\f1 TSHAPE.EXE\cell Visual graphics primitives test\cell }\pard \widctlpar\intbl\adjustright {\f1 \row }\trowd \trgaph108\trleft-108\trbrdrt\brdrs\brdrw10 \trbrdrl -\brdrs\brdrw10 \trbrdrb\brdrs\brdrw10 \trbrdrr\brdrs\brdrw10 \trbrdrh\brdrs\brdrw10 \trbrdrv\brdrs\brdrw10 \clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 \cltxlrtb \cellx1487\clvertalt\clbrdrt -\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 \cltxlrtb \cellx7817\pard \widctlpar\intbl\adjustright {\f1 TTIME.EXE\cell Manual benchmarks\cell }\pard \widctlpar\intbl\adjustright {\f1 \row }\pard -\widctlpar\adjustright {\b\f1\fs24 -\par Test support files}{\f1 -\par }{\b\f1 -\par }\trowd \trgaph108\trleft-108\trbrdrt\brdrs\brdrw10 \trbrdrl\brdrs\brdrw10 \trbrdrb\brdrs\brdrw10 \trbrdrr\brdrs\brdrw10 \trbrdrh\brdrs\brdrw10 \trbrdrv\brdrs\brdrw10 \clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr -\brdrs\brdrw10 \clshdng10000\cltxlrtb \cellx1297\clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 \clshdng10000\cltxlrtb \cellx4501\clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb -\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 \clshdng10000\cltxlrtb \cellx6563\clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 \clshdng10000\cltxlrtb \cellx8969\pard \widctlpar\intbl\adjustright {\b\f1 -Filename\cell Emulator location\cell Hardware location\cell Used by\cell }\pard \widctlpar\intbl\adjustright {\b\f1 \row }\trowd \trgaph108\trleft-108\trbrdrt\brdrs\brdrw10 \trbrdrl\brdrs\brdrw10 \trbrdrb\brdrs\brdrw10 \trbrdrr\brdrs\brdrw10 \trbrdrh -\brdrs\brdrw10 \trbrdrv\brdrs\brdrw10 \clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 \cltxlrtb \cellx1297\clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr -\brdrs\brdrw10 \cltxlrtb \cellx4501\clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 \cltxlrtb \cellx6563\clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr -\brdrs\brdrw10 \cltxlrtb \cellx8969\pard \widctlpar\intbl\adjustright {\f1 TGDI.DLL\cell \\epoc32\\release\\wins\\[udeb|urel]\\\cell [c|z]:\\\cell TBASE.EXE\cell }\pard \widctlpar\intbl\adjustright {\f1 \row }\pard \widctlpar\intbl\adjustright {\f1 -TBMP.MBM\cell \\epoc32\\wins\\c\\\cell [c|z]:\\\cell TBASE.EXE -\par TCLIP.EXE -\par TDEMO.EXE -\par TGDI.DLL -\par TMODE.EXE -\par TPARAM.EXE -\par TSWITCH.EXE -\par TTIME.EXE\cell }\pard \widctlpar\intbl\adjustright {\f1 \row }\trowd \trgaph108\trleft-108\trbrdrt\brdrs\brdrw10 \trbrdrl\brdrs\brdrw10 \trbrdrb\brdrs\brdrw10 \trbrdrr\brdrs\brdrw10 \trbrdrh\brdrs\brdrw10 \trbrdrv\brdrs\brdrw10 \clvertalt\clbrdrt -\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 \cltxlrtb \cellx1297\clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 \cltxlrtb \cellx4501\clvertalt\clbrdrt -\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 \cltxlrtb \cellx6563\clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 \cltxlrtb \cellx8969\pard -\widctlpar\intbl\adjustright {\f1 TILE.MBM\cell \\epoc32\\wins\\c\\\cell [c|z]:\\\cell TACCELERATOR.EXE\cell }\pard \widctlpar\intbl\adjustright {\f1 \row }\pard \widctlpar\adjustright {\b\f1\fs24 -\par Test rom building -\par }{\f1 -\par \\bitgdi\\group\\bitgditest.iby is listed in bld.inf as a test export with destination \\epoc32\\rom\\include\\. This automatically includes all test programs and files in a rom when used as follows from \\epoc32\\rom\\: \ldblquote tools\\ -buildrom assabet Techview bitgditest.iby\rdblquote . -\par }} \ No newline at end of file diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsdeviceinterface/bitgdi/Documentation/bitgdi.mdl --- a/graphicsdeviceinterface/bitgdi/Documentation/bitgdi.mdl Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,2178 +0,0 @@ - -(object Petal - version 37) - -(object Design "" - is_unit TRUE - is_loaded TRUE - defaults (object defaults - rightMargin 0.250000 - leftMargin 0.250000 - topMargin 0.250000 - bottomMargin 0.500000 - pageOverlap 0.250000 - clipIconLabels TRUE - autoResize FALSE - snapToGrid TRUE - gridX 25 - gridY 25 - defaultFont (object Font - size 10 - face "helvetica" - bold FALSE - italics FALSE - underline FALSE - strike FALSE - color 0 - default_color TRUE) - showMessageNum 3 - showClassOfObject TRUE - notation "Booch") - root_category (object Class_Category "" - exportControl "Public" - global TRUE - subsystem "" - logical_models (list unit_reference_list - (object Class "$UNNAMED$0") - (object Class "$UNNAMED$1") - (object Class "$UNNAMED$2") - (object Class_Utility "$UNNAMED$3") - (object Class "$UNNAMED$4") - (object Class "$UNNAMED$5" - nonclass TRUE) - (object Class "HDC" - nonclass TRUE) - (object Class "CWingdiwn" - superclasses (list inheritance_relationship_list - (object Inheritance_Relationship - supplier "CFbsBitGC"))) - (object Class "CWingdibm" - superclasses (list inheritance_relationship_list - (object Inheritance_Relationship - supplier "CFbsBitGC"))) - (object Class "RDrawWinScreen" - fields (list has_relationship_list - (object Has_Relationship - documentation "Window handle for main screen." - label "iHwnd" - supplier "HWND" - exportControl "Private" - Containment "By Value" - supplier_cardinality (value cardinality "1") - client_cardinality (value cardinality "1")) - (object Has_Relationship - documentation "Windows device context handle for main screen." - label "iHdc" - supplier "HDC" - exportControl "Private" - Containment "By Value") - (object Has_Relationship - documentation "Windows palette handle for main screen." - label "iPalette" - supplier "HPALETTE" - exportControl "Private" - Containment "By Value")) - superclasses (list inheritance_relationship_list - (object Inheritance_Relationship - supplier "RDrawWin" - virtual TRUE)) - abstract TRUE) - (object Class "RDrawWinScreenGrey256" - superclasses (list inheritance_relationship_list - (object Inheritance_Relationship - supplier "RDrawWinScreen" - virtual TRUE))) - (object Class "RDrawWinScreenColour" - superclasses (list inheritance_relationship_list - (object Inheritance_Relationship - supplier "RDrawWinScreen" - virtual TRUE))) - (object Class "$UNNAMED$6" - nonclass TRUE) - (object Class "$UNNAMED$7") - (object Class "$UNNAMED$8") - (object Class "$UNNAMED$9" - nonclass TRUE) - (object Class "TSize" - nonclass TRUE) - (object Class "HRGN" - nonclass TRUE) - (object Class "HPEN" - nonclass TRUE) - (object Class "TInt" - nonclass TRUE) - (object Class "Draw*" - nonclass TRUE) - (object Class "CGdiFont*" - nonclass TRUE) - (object Class "HBRUSH" - nonclass TRUE) - (object Class "TBool" - nonclass TRUE) - (object Class "HBITMAP" - nonclass TRUE) - (object Class "HPALETTE" - nonclass TRUE) - (object Class "TPoint" - nonclass TRUE) - (object Class "CRegion" - nonclass TRUE) - (object Class "$UNNAMED$10") - (object Class "RDrawWin" - fields (list has_relationship_list - (object Has_Relationship - documentation "Pointer to bitmap pixel data." - label "iBitmapBits" - supplier "TUint8 *" - exportControl "Protected" - Containment "By Value") - (object Has_Relationship - documentation "Pointer to bitmap palette array." - label "iBitmapColours" - supplier "LPRGBQUAD" - exportControl "Protected" - Containment "By Value") - (object Has_Relationship - documentation "Windows device context handle for printing text to the bitmap." - label "iBitmapDC" - supplier "HDC" - exportControl "Protected" - Containment "By Value") - (object Has_Relationship - documentation "Windows bitmap handle." - label "iBitmapHandle" - supplier "HBITMAP" - exportControl "Protected" - Containment "By Value") - (object Has_Relationship - documentation "Pointer to bitmap info structure." - label "iBitmapInfo" - supplier "LPBITMAPINFO" - exportControl "Protected" - Containment "By Value") - (object Has_Relationship - documentation "Pointer to bitmap info header structure." - label "iBitmapInfoHdr" - supplier "LPBITMAPINFOHEADER" - exportControl "Protected" - Containment "By Value")) - superclasses (list inheritance_relationship_list - (object Inheritance_Relationship - supplier "RFbsDrawDevice" - virtual TRUE)) - abstract TRUE) - (object Class "RDrawWinBitmap" - fields (list has_relationship_list - (object Has_Relationship - documentation "Bitmap handle." - label "iBitmap" - supplier "HBITMAP" - exportControl "Private" - Containment "By Value" - supplier_cardinality (value cardinality "1") - client_cardinality (value cardinality "1"))) - superclasses (list inheritance_relationship_list - (object Inheritance_Relationship - supplier "RDrawWin" - virtual TRUE)) - abstract TRUE) - (object Class "CBase" - abstract TRUE) - (object Class "TGraphicsInfo" - fields (list has_relationship_list - (object Has_Relationship - label "iFont" - supplier "RBitwiseFont" - Containment "By Reference" - supplier_cardinality (value cardinality "1") - client_cardinality (value cardinality "1")) - (object Has_Relationship - label "iPatBrush" - supplier "CBitwiseBitmap" - Containment "By Reference" - supplier_cardinality (value cardinality "1") - client_cardinality (value cardinality "1")) - (object Has_Relationship - label "iPalette" - supplier "RPalette" - Containment "By Reference" - supplier_cardinality (value cardinality "1") - client_cardinality (value cardinality "1")) - (object Has_Relationship - documentation "Pen colour." - label "iPen" - supplier "TRgb" - Containment "By Value") - (object Has_Relationship - documentation "Brush colour." - label "iBrush" - supplier "TRgb" - Containment "By Value") - (object Has_Relationship - documentation "Drawing mode." - label "iDrawMode" - supplier "CGdiBase::TGdiDrawMode" - Containment "By Value") - (object Has_Relationship - documentation "Specifies transparent/opaque text background." - label "iTextBackGround" - supplier "CGdiBase::TTextBackGround" - Containment "By Value") - (object Has_Relationship - documentation "Rectangle to which all drawing operations will be clipped." - label "iClipRect" - supplier "TRect" - Containment "By Value") - (object Has_Relationship - documentation "Position at which any patterned brush painting should originate. Painting may still take place to the left and above this, in which case this is the point that the bottom right-hand corner of the patterned brush lines up with." - label "iPatBrushOrigin" - supplier "TPoint" - Containment "By Value")) - used_nodes (list uses_relationship_list - (object Uses_Relationship - supplier "RPalette") - (object Uses_Relationship - supplier "CBitwiseBitmap") - (object Uses_Relationship - supplier "RBitwiseFont"))) - (object Class "CGdiSprite" - nonclass TRUE) - (object Class "HWND" - nonclass TRUE) - (object Class "RRegion" - nonclass TRUE) - (object Class "CGdiBase::TGdiDrawMode" - nonclass TRUE) - (object Class "CGdiBase::TTextBackGround" - nonclass TRUE) - (object Class "TRect" - nonclass TRUE) - (object Class "RSpriteBase" - nonclass TRUE) - (object Class "TUint" - nonclass TRUE) - (object Class "TUint8 *" - nonclass TRUE) - (object Class "LPRGBQUAD" - nonclass TRUE) - (object Class "LPBITMAPINFO" - nonclass TRUE) - (object Class "LPBITMAPINFOHEADER" - nonclass TRUE) - (object Class "RSpriteBase *" - nonclass TRUE) - (object Class "TGdiAttributes" - nonclass TRUE) - (object Class "TDisplayMode" - nonclass TRUE) - (object Class "TUint8" - nonclass TRUE) - (object Class "TRegionFix<1>" - nonclass TRUE) - (object Class "const TRegion *" - nonclass TRUE) - (object Class "const TRegion" - nonclass TRUE) - (object Class "TDrawMode" - nonclass TRUE) - (object Class "TLine" - nonclass TRUE) - (object Class "TTextBackGround" - nonclass TRUE) - (object Class "TWideLine" - nonclass TRUE) - (object Class "RSessionBase") - (object Class_Category "$UNNAMED$11" - exportControl "Public" - logical_models (list unit_reference_list) - logical_presentations (list unit_reference_list)) - (object Class_Category "BitGdi" - visible_categories (list visibility_relationship_list - (object Visibility_Relationship - supplier "FontBitmapServer")) - exportControl "Public" - logical_models (list unit_reference_list - (object Class "CFbsBitGC" - fields (list has_relationship_list - (object Has_Relationship - documentation "Last print position, used by PrintText with no print position supplied." - label "iLastPrintPosition" - supplier "TPoint" - exportControl "Private" - Containment "By Value") - (object Has_Relationship - label "iDefaultRegion" - supplier "TRegionFix<1>" - exportControl "Protected" - Containment "By Value") - (object Has_Relationship - documentation "Hardware dependent drawing functions" - label "iDrawLowLevel" - supplier "RFbsDrawDevice" - exportControl "Protected" - Containment "By Reference" - supplier_cardinality (value cardinality "0,1") - client_cardinality (value cardinality "n")) - (object Has_Relationship - label "iFont" - supplier "CFbsFont" - exportControl "Protected" - Containment "By Reference" - supplier_cardinality (value cardinality "0,1") - client_cardinality (value cardinality "0..n")) - (object Has_Relationship - label "iPalette" - supplier "RPalette" - Containment "By Reference" - supplier_cardinality (value cardinality "0,1") - client_cardinality (value cardinality "0..n")) - (object Has_Relationship - label "iClipRect" - supplier "TRect" - exportControl "Protected" - Containment "By Value") - (object Has_Relationship - label "iDefaultRegionPtr" - supplier "const TRegion" - exportControl "Protected" - Containment "By Reference") - (object Has_Relationship - label "iDrawMode" - supplier "TDrawMode" - exportControl "Protected" - Containment "By Value") - (object Has_Relationship - label "iLastPosAdjust" - supplier "TInt" - exportControl "Protected" - Containment "By Value") - (object Has_Relationship - label "iLastPosUsed" - supplier "TBool" - exportControl "Protected" - Containment "By Value") - (object Has_Relationship - label "iLine" - supplier "TLine" - exportControl "Protected" - Containment "By Value") - (object Has_Relationship - label "iLineWidth" - supplier "TInt" - exportControl "Protected" - Containment "By Value") - (object Has_Relationship - label "iPatBrushOrigin" - supplier "TPoint" - exportControl "Protected" - Containment "By Value") - (object Has_Relationship - label "iPen" - supplier "TRgb" - exportControl "Protected" - Containment "By Value") - (object Has_Relationship - label "iTextBackGround" - supplier "TTextBackGround" - exportControl "Protected" - Containment "By Value") - (object Has_Relationship - label "iWideLine" - supplier "TWideLine" - exportControl "Protected" - Containment "By Value") - (object Has_Relationship - label "iTextBackGroundColour" - supplier "TRgb" - exportControl "Protected" - Containment "By Value") - (object Has_Relationship - label "iBrushPattern" - supplier "CFbsBitmap" - exportControl "Protected" - Containment "By Reference" - supplier_cardinality (value cardinality "0..1") - client_cardinality (value cardinality "0..n")) - (object Has_Relationship - supplier "CFbsFont" - exportControl "Protected" - supplier_cardinality (value cardinality "0..1") - client_cardinality (value cardinality "0..n")) - (object Has_Relationship - supplier "CFbsBitmap" - exportControl "Protected" - supplier_cardinality (value cardinality "0..1") - client_cardinality (value cardinality "0..n")) - (object Has_Relationship - supplier "TRgb") - (object Has_Relationship - supplier "TRgb") - (object Has_Relationship - supplier "TLinearDDA") - (object Has_Relationship - supplier "TEllipse")) - superclasses (list inheritance_relationship_list - (object Inheritance_Relationship - supplier "CBitmapContext")) - used_nodes (list uses_relationship_list - (object Uses_Relationship - label "iDrawable" - supplier "RFbsDrawDevice" - supplier_cardinality (value cardinality "1") - client_cardinality (value cardinality "0..n")) - (object Uses_Relationship - supplier "CBitwiseBitmap" - exportControl "Protected" - supplier_cardinality (value cardinality "0..1") - client_cardinality (value cardinality "0..n")) - (object Uses_Relationship - supplier "CBitmapFont" - exportControl "Protected" - supplier_cardinality (value cardinality "0..1") - client_cardinality (value cardinality "0..n")) - (object Uses_Relationship - label "iBrushPattern" - supplier "CFbsBitmap" - exportControl "Protected" - supplier_cardinality (value cardinality "0..1") - client_cardinality (value cardinality "0..n"))) - module "G32 (main)") - (object Class "RFbsDrawDevice" - fields (list has_relationship_list - (object Has_Relationship - documentation "Size of gdi area." - label "iSize" - supplier "TSize" - exportControl "Protected" - Containment "By Value" - supplier_cardinality (value cardinality "1") - client_cardinality (value cardinality "1")) - (object Has_Relationship - documentation "Display mode of device." - label "iDispMode" - supplier "TDisplayMode" - exportControl "Protected" - Containment "By Value" - supplier_cardinality (value cardinality "1") - client_cardinality (value cardinality "1")) - (object Has_Relationship - documentation "Single sprite pointer." - label "iSprite" - supplier "RSpriteBase *" - exportControl "Protected" - Containment "By Value" - supplier_cardinality (value cardinality "1") - client_cardinality (value cardinality "1")) - (object Has_Relationship - documentation "The class handle." - label "iHandle" - supplier "TUint" - exportControl "Protected" - Containment "By Value") - (object Has_Relationship - label "iAttributes" - supplier "TGdiAttributes" - exportControl "Protected" - Containment "By Value") - (object Has_Relationship - label "iLongWidth" - supplier "TInt" - exportControl "Protected" - Containment "By Value") - (object Has_Relationship - label "iBitmapBits" - supplier "TUint8" - exportControl "Protected" - Containment "By Reference") - (object Has_Relationship - label "iScanLineBuffer" - supplier "TUint8 *" - exportControl "Protected" - Containment "By Value") - (object Has_Relationship - label "iScanLineBytes" - supplier "TInt" - exportControl "Protected" - Containment "By Value") - (object Has_Relationship - label "iSpriteDraw" - supplier "TBool" - exportControl "Protected" - Containment "By Value")) - superclasses (list inheritance_relationship_list - (object Inheritance_Relationship - supplier "RDrawBase")) - abstract TRUE - module "G32 (main)") - (object Class "RPaletteBase" - abstract TRUE - module "G32 (main)") - (object Class "CFbsScreenDevice" - superclasses (list inheritance_relationship_list - (object Inheritance_Relationship - supplier "CFbsDevice")) - used_nodes (list uses_relationship_list - (object Uses_Relationship - supplier "CFbsBitGC" - supplier_cardinality (value cardinality "0..n") - client_cardinality (value cardinality "1")) - (object Uses_Relationship - supplier "RFbsDrawDevice")) - operations (list Operations - (object Operation "CreateContext" - concurrency "Sequential" - opExportControl "Public" - uid 0))) - (object Class "CFbsDevice" - superclasses (list inheritance_relationship_list - (object Inheritance_Relationship - supplier "CBitmapDevice")) - used_nodes (list uses_relationship_list - (object Uses_Relationship - supplier "CFbsTypefaceStore")) - abstract TRUE) - (object Class "CFbsBitmapDevice" - superclasses (list inheritance_relationship_list - (object Inheritance_Relationship - supplier "CFbsDevice")) - used_nodes (list uses_relationship_list - (object Uses_Relationship - supplier "CFbsBitGC" - supplier_cardinality (value cardinality "0..n") - client_cardinality (value cardinality "1")))) - (object Class_Category "Low Level -Drawing" - exportControl "Public" - logical_models (list unit_reference_list - (object Class "RFbsDrawFourBppBitmap" - superclasses (list inheritance_relationship_list - (object Inheritance_Relationship - supplier "RFbsDrawBitmap")) - persistence "Persistent" - module "G32 (main)") - (object Class "RDrawEightBppBitmap -" - superclasses (list inheritance_relationship_list - (object Inheritance_Relationship - supplier "RFbsDrawBitmap")) - persistence "Persistent" - module "G32 (main)") - (object Class "RFbsDrawFourBppScreenBitmap" - superclasses (list inheritance_relationship_list - (object Inheritance_Relationship - supplier "RFbsDrawScreen") - (object Inheritance_Relationship - supplier "RFbsDrawFourBppBitmap")) - persistence "Persistent" - module "G32 (main)") - (object Class "RFbsDrawTwoBppScreenBitmap" - superclasses (list inheritance_relationship_list - (object Inheritance_Relationship - supplier "RFbsDrawScreen") - (object Inheritance_Relationship - supplier "RFbsDrawTwoBppBitmap")) - persistence "Persistent" - module "G32 (main)") - (object Class "RFbsDrawTwoBppBitmap" - superclasses (list inheritance_relationship_list - (object Inheritance_Relationship - supplier "RFbsDrawBitmap"))) - (object Class "RFbsDrawOneBppBitmap" - superclasses (list inheritance_relationship_list - (object Inheritance_Relationship - supplier "RFbsDrawBitmap"))) - (object Class "RDrawOneBppScreen" - superclasses (list inheritance_relationship_list - (object Inheritance_Relationship - supplier "RFbsDrawScreen"))) - (object Class "RFbsDrawScreen" - superclasses (list inheritance_relationship_list - (object Inheritance_Relationship - supplier "RFbsDrawDevice")) - abstract TRUE) - (object Class "RFbsDrawBitmap" - superclasses (list inheritance_relationship_list - (object Inheritance_Relationship - supplier "RFbsDrawDevice")) - abstract TRUE)) - logical_presentations (list unit_reference_list - (object ClassDiagram "Main" - title "Main" - zoom 100 - max_height 28350 - max_width 21600 - origin_x 0 - origin_y 0 - items (list diagram_item_list - (object ClassView "Class" "RFbsDrawDevice" @1 - location (1500, 175) - label (object ItemLabel - Parent_View @1 - location (1368, 68) - nlines 2 - max_width 310 - justify 0 - label "RFbsDrawDevice") - width 450 - height 318 - annotation 8 - autoResize TRUE) - (object ClassView "Class" "RFbsDrawFourBppBitmap" @2 - location (2175, 1050) - label (object ItemLabel - Parent_View @2 - location (2052, 966) - nlines 2 - max_width 288 - justify 0 - label "RFbsDrawFourBppBitmap") - width 420 - annotation 8 - autoResize TRUE) - (object ClassView "Class" "RFbsDrawFourBppScreenBitmap" @3 - location (2175, 1575) - label (object ItemLabel - Parent_View @3 - location (2032, 1491) - nlines 2 - max_width 334 - justify 0 - label "RFbsDrawFourBppScreenBitmap") - width 488 - annotation 8 - autoResize TRUE) - (object ClassView "Class" "RFbsDrawTwoBppScreenBitmap" @4 - location (700, 1600) - label (object ItemLabel - Parent_View @4 - location (558, 1516) - nlines 2 - max_width 333 - justify 0 - label "RFbsDrawTwoBppScreenBitmap") - width 486 - annotation 8 - autoResize TRUE) - (object ClassView "Class" "RFbsDrawTwoBppBitmap" @5 - location (700, 1075) - label (object ItemLabel - Parent_View @5 - location (583, 991) - nlines 2 - max_width 274 - justify 0 - label "RFbsDrawTwoBppBitmap") - width 400 - annotation 8 - autoResize TRUE) - (object ClassView "Class" "RFbsDrawOneBppBitmap" @6 - location (1500, 1050) - label (object ItemLabel - Parent_View @6 - location (1377, 966) - nlines 2 - max_width 286 - justify 0 - label "RFbsDrawOneBppBitmap") - width 418 - annotation 8 - autoResize TRUE) - (object ClassView "Class" "RFbsDrawBitmap" @7 - location (1500, 575) - label (object ItemLabel - Parent_View @7 - location (1396, 491) - nlines 2 - max_width 240 - justify 0 - label "RFbsDrawBitmap") - annotation 8 - autoResize TRUE) - (object InheritView "" @8 - client @2 - supplier @7 - line_style 0) - (object InheritView "" @9 - client @5 - supplier @7 - line_style 0) - (object InheritView "" @10 - client @6 - supplier @7 - line_style 0) - (object InheritView "" @11 - client @7 - supplier @1 - line_style 0) - (object InheritView "" @12 - client @4 - supplier @5 - line_style 0) - (object InheritView "" @13 - client @3 - supplier @2 - line_style 0))))) - (object Class_Category "Screen/Bitmap Context" - exportControl "Public" - logical_models (list unit_reference_list - (object Class "TEllipse")) - logical_presentations (list unit_reference_list - (object ClassDiagram "Main" - title "Main" - zoom 100 - max_height 28350 - max_width 21600 - origin_x 0 - origin_y 0 - items (list diagram_item_list - (object ClassView "Class" "CFbsBitGC" @14 - location (1675, 1050) - label (object ItemLabel - Parent_View @14 - location (1558, 955) - nlines 2 - max_width 275 - justify 0 - label "CFbsBitGC") - width 400 - height 287 - annotation 8) - (object ClassView "Class" "CFbsFont" @15 - location (1625, 1725) - label (object ItemLabel - Parent_View @15 - location (1479, 1605) - nlines 2 - max_width 344 - justify 0 - label "CFbsFont") - width 500 - height 357 - annotation 8) - (object ClassView "Class" "CFbsBitmap" @16 - location (2525, 1475) - label (object ItemLabel - Parent_View @16 - location (2393, 1366) - nlines 2 - max_width 310 - justify 0 - label "CFbsBitmap") - width 450 - height 325 - annotation 8) - (object HasView "iFont" @17 - client @14 - supplier @15 - line_style 0) - (object HasView "iBrushPattern" @18 - client @14 - supplier @16 - line_style 0) - (object ClassView "Class" "TRgb" @19 - location (850, 1275) - label (object ItemLabel - Parent_View @19 - location (733, 1179) - nlines 2 - max_width 275 - justify 0 - label "TRgb") - width 400 - height 288 - annotation 8) - (object ClassView "Class" "TRgb" @20 - location (875, 850) - label (object ItemLabel - Parent_View @20 - location (758, 754) - nlines 2 - max_width 275 - justify 0 - label "TRgb") - width 400 - height 288 - annotation 8) - (object HasView "iPen" @21 - client @14 - supplier @19 - line_style 0) - (object HasView "iTextBackGroundColour" @22 - client @14 - supplier @20 - line_style 0) - (object ClassView "Class" "TLinearDDA" @23 - location (1400, 500) - label (object ItemLabel - Parent_View @23 - location (1296, 416) - nlines 2 - max_width 240 - justify 0 - label "TLinearDDA") - annotation 8) - (object HasView "" @24 - client @14 - supplier @23 - line_style 0) - (object ClassView "Class" "TEllipse" @25 - location (1975, 525) - label (object ItemLabel - Parent_View @25 - location (1871, 441) - nlines 2 - max_width 240 - justify 0 - label "TEllipse") - annotation 8) - (object HasView "" @26 - client @14 - supplier @25 - line_style 0)))))) - logical_presentations (list unit_reference_list - (object ClassDiagram "Main" - title "Main" - zoom 92 - max_height 28350 - max_width 21600 - origin_x 0 - origin_y 0 - items (list diagram_item_list - (object ClassView "Class" "CFbsBitGC" @27 - location (2500, 975) - label (object ItemLabel - Parent_View @27 - location (2396, 891) - nlines 2 - max_width 240 - justify 0 - label "CFbsBitGC") - annotation 8) - (object ClassView "Class" "RFbsDrawDevice" @28 - location (1650, 650) - label (object ItemLabel - Parent_View @28 - location (1546, 566) - nlines 2 - max_width 240 - justify 0 - label "RFbsDrawDevice") - annotation 8) - (object ClassView "Class" "CFbsScreenDevice" @29 - location (2025, 1375) - label (object ItemLabel - Parent_View @29 - location (1894, 1268) - nlines 2 - max_width 309 - justify 0 - label "CFbsScreenDevice") - compartment (object Compartment - Parent_View @29 - location (1584, 1386) - anchor 2 - nlines 1 - max_width 927 - justify 0 - compartmentItems (list Compartment - "CreateContext( )")) - width 448 - height 319 - annotation 8) - (object UsesView "" @30 - client @29 - supplier @27 - line_style 0) - (object ClassView "Class" "CFbsDevice" @31 - location (1250, 1125) - label (object ItemLabel - Parent_View @31 - location (1146, 1041) - nlines 2 - max_width 240 - justify 0 - label "CFbsDevice") - annotation 8) - (object InheritView "" @32 - client @29 - supplier @31 - line_style 0) - (object ClassView "Class" "CBitmapContext" @33 - location (2775, 325) - label (object ItemLabel - Parent_View @33 - location (2616, 195) - nlines 2 - max_width 374 - justify 0 - label "CBitmapContext") - width 543 - height 387 - annotation 8) - (object InheritView "" @34 - client @27 - supplier @33 - line_style 0) - (object ClassView "Class" "CFbsTypefaceStore" @35 - location (475, 1500) - label (object ItemLabel - Parent_View @35 - location (316, 1370) - nlines 2 - max_width 374 - justify 0 - label "CFbsTypefaceStore") - width 543 - height 387 - annotation 8) - (object UsesView "iDrawable" @36 - label (object ItemLabel - Parent_View @36 - location (2082, 815) - anchor_loc 1 - nlines 1 - max_width 450 - justify 0 - label "iDrawable") - client @27 - supplier @28 - line_style 0) - (object CategoryView "Low Level -Drawing" @37 - location (1675, 400) - label (object ItemLabel - Parent_View @37 - location (1508, 305) - nlines 2 - max_width 334 - justify 0 - label -|Low Level -|Drawing - ) - width 346 - height 203) - (object CategoryView "Screen/Bitmap Context" @38 - location (2850, 1025) - label (object ItemLabel - Parent_View @38 - location (2706, 941) - nlines 2 - max_width 288 - justify 0 - label "Screen/Bitmap Context") - compartment (object Compartment - Parent_View @38 - location (2729, 1059) - anchor 2 - nlines 1 - max_width 720 - compartmentItems (list Compartment - "TEllipse")) - width 300 - height 180) - (object ClassView "Class" "CBitmapDevice" @39 - location (750, 525) - label (object ItemLabel - Parent_View @39 - location (619, 418) - nlines 2 - max_width 309 - justify 0 - label "CBitmapDevice") - width 448 - height 319 - annotation 8) - (object InheritView "" @40 - client @31 - supplier @39 - line_style 0) - (object ClassView "Class" "CFbsBitmapDevice" @41 - location (2150, 1975) - label (object ItemLabel - Parent_View @41 - location (2040, 1891) - nlines 2 - max_width 256 - justify 0 - label "CFbsBitmapDevice") - width 372 - annotation 8) - (object InheritView "" @42 - client @41 - supplier @31 - line_style 0) - (object UsesView "" @43 - client @31 - supplier @35 - line_style 0) - (object UsesView "" @44 - client @41 - supplier @27 - line_style 0))))) - (object Class_Category "FontBitmapServer" - visible_categories (list visibility_relationship_list - (object Visibility_Relationship - supplier "Psibit") - (object Visibility_Relationship - supplier "FntStore") - (object Visibility_Relationship - supplier "Gdi")) - exportControl "Public" - logical_models (list unit_reference_list - (object Class "RFbsSession" - superclasses (list inheritance_relationship_list - (object Inheritance_Relationship - supplier "RSessionBase")) - operations (list Operations - (object Operation "SendCommand" - concurrency "Sequential" - opExportControl "Public" - uid 0))) - (object Class "CFbsFont" - superclasses (list inheritance_relationship_list - (object Inheritance_Relationship - supplier "CFont")) - used_nodes (list uses_relationship_list - (object Uses_Relationship - supplier "RFbsSession") - (object Uses_Relationship - supplier "CBitmapFont" - supplier_cardinality (value cardinality "1") - client_cardinality (value cardinality "1")))) - (object Class "CBitmappedDevice" - abstract TRUE) - (object Class "CFbsBitmap" - superclasses (list inheritance_relationship_list - (object Inheritance_Relationship - supplier "CDiBitmap")) - used_nodes (list uses_relationship_list - (object Uses_Relationship - supplier "RFbsSession") - (object Uses_Relationship - supplier "CBitwiseBitmap" - supplier_cardinality (value cardinality "1") - client_cardinality (value cardinality "1")))) - (object Class "CFbsTypefaceStore" - fields (list has_relationship_list - (object Has_Relationship - supplier "RFbsSession")) - superclasses (list inheritance_relationship_list - (object Inheritance_Relationship - supplier "CTypefaceStore")) - used_nodes (list uses_relationship_list - (object Uses_Relationship - supplier "CFbsFont"))) - (object Association "IPC" - quid "3198EF07008C" - roles (list role_list - (object Role "$UNNAMED$12" - supplier "RFbsSession" - client_cardinality (value cardinality "0..n")) - (object Role "$UNNAMED$13" - supplier "CFontBitmapServer" - client_cardinality (value cardinality "1")))) - (object Association "iConnectionHandle" - quid "3198EF07008D" - roles (list role_list - (object Role "$UNNAMED$14" - supplier "RFbsSession" - client_cardinality (value cardinality "1")) - (object Role "$UNNAMED$15" - supplier "CFbClient" - client_cardinality (value cardinality "1")))) - (object Class_Category "Font/BitmapServer" - exportControl "Public" - logical_models (list unit_reference_list - (object Class "CFontBitmapServer" - superclasses (list inheritance_relationship_list - (object Inheritance_Relationship - supplier "CServer")) - used_nodes (list uses_relationship_list - (object Uses_Relationship - supplier "CFbClient" - supplier_cardinality (value cardinality "0..n") - client_cardinality (value cardinality "1")))) - (object Class "CServer") - (object Class "CSession") - (object Class "CFbsTop" - used_nodes (list uses_relationship_list - (object Uses_Relationship - supplier "CFontStore" - supplier_cardinality (value cardinality "1") - client_cardinality (value cardinality "1")))) - (object Class "CFbClient" - fields (list has_relationship_list - (object Has_Relationship - label "iIx" - supplier "CObjectIx" - supplier_cardinality (value cardinality "1") - client_cardinality (value cardinality "1"))) - superclasses (list inheritance_relationship_list - (object Inheritance_Relationship - supplier "CSession")) - used_nodes (list uses_relationship_list - (object Uses_Relationship - supplier "CFbsObject" - supplier_cardinality (value cardinality "0..n") - client_cardinality (value cardinality "1")) - (object Uses_Relationship - supplier "CBitwiseBitmap" - supplier_cardinality (value cardinality "1") - client_cardinality (value cardinality "0..n")) - (object Uses_Relationship - supplier "CBitmapFont" - supplier_cardinality (value cardinality "1") - client_cardinality (value cardinality "0..n")))) - (object Class "CBitwiseBitmap" - superclasses (list inheritance_relationship_list - (object Inheritance_Relationship - supplier "RBrushBase") - (object Inheritance_Relationship - supplier "CDiBitmap")) - module "G32 (main)") - (object Association "$UNNAMED$16" - quid "3198EF0700FA" - roles (list role_list - (object Role "$UNNAMED$17" - supplier "CFontBitmapServer" - client_cardinality (value cardinality "1")) - (object Role "$UNNAMED$18" - supplier "CFbsTop" - client_cardinality (value cardinality "1")))) - (object Association "$UNNAMED$19" - quid "3198EF0700FB" - roles (list role_list - (object Role "$UNNAMED$20" - supplier "CFbClient" - client_cardinality (value cardinality "0..n")) - (object Role "$UNNAMED$21" - supplier "RFbTop" - client_cardinality (value cardinality "1")))) - (object Association "$UNNAMED$22" - quid "3198EF0700FC" - roles (list role_list - (object Role "$UNNAMED$23" - supplier "CFbClient" - client_cardinality (value cardinality "0..n")) - (object Role "$UNNAMED$24" - supplier "CFbsTop" - client_cardinality (value cardinality "1"))))) - logical_presentations (list unit_reference_list - (object ClassDiagram "Main" - title "Main" - zoom 100 - max_height 28350 - max_width 21600 - origin_x 0 - origin_y 0 - items (list diagram_item_list - (object ClassView "Class" "CServer" @45 - location (1550, 300) - label (object ItemLabel - Parent_View @45 - location (1446, 216) - nlines 2 - max_width 240 - justify 0 - label "CServer") - annotation 8) - (object ClassView "Class" "CSession" @46 - location (1650, 1900) - label (object ItemLabel - Parent_View @46 - location (1546, 1816) - nlines 2 - max_width 240 - justify 0 - label "CSession") - annotation 8) - (object ClassView "Class" "RSessionBase" @47 - location (375, 425) - label (object ItemLabel - Parent_View @47 - location (258, 329) - nlines 2 - max_width 275 - justify 0 - label "RSessionBase") - width 400 - height 288 - annotation 8) - (object ClassView "Class" "CBitwiseBitmap" @48 - location (1175, 1725) - label (object ItemLabel - Parent_View @48 - location (1071, 1641) - nlines 2 - max_width 240 - justify 0 - label "CBitwiseBitmap") - annotation 8) - (object ClassView "Class" "CBitmapFont" @49 - location (2300, 1750) - label (object ItemLabel - Parent_View @49 - location (2196, 1666) - nlines 2 - max_width 240 - justify 0 - label "CBitmapFont") - annotation 8) - (object ClassView "Class" "CDiBitmap" @50 - location (675, 1875) - label (object ItemLabel - Parent_View @50 - location (571, 1791) - nlines 2 - max_width 240 - justify 0 - label "CDiBitmap") - annotation 8) - (object ClassView "Class" "CFontStore" @51 - location (2625, 450) - label (object ItemLabel - Parent_View @51 - location (2521, 366) - nlines 2 - max_width 240 - justify 0 - label "CFontStore") - annotation 8) - (object InheritView "" @52 - client @48 - supplier @50 - line_style 0) - (object ClassView "Class" "RFbsSession" @53 - location (375, 1000) - label (object ItemLabel - Parent_View @53 - location (243, 891) - nlines 2 - max_width 310 - justify 0 - label "RFbsSession") - width 450 - height 325 - annotation 8) - (object InheritView "" @54 - client @53 - supplier @47 - line_style 0) - (object ClassView "Class" "CFbClient" @55 - location (1600, 1525) - label (object ItemLabel - Parent_View @55 - location (1496, 1441) - nlines 2 - max_width 240 - justify 0 - label "CFbClient") - annotation 8) - (object AssociationViewNew "iConnectionHandle" @56 - location (1017, 1275) - label (object SegLabel @57 - Parent_View @56 - location (1017, 1216) - anchor 1 - anchor_loc 1 - nlines 1 - max_width 600 - justify 0 - label "iConnectionHandle" - pctDist 0.500000 - height 60 - orientation 0) - quidu "3198EF07008D" - roleview_list (list RoleViews - (object RoleView "$UNNAMED$14" @58 - Parent_View @56 - location (642, 275) - client @56 - supplier @53 - line_style 0 - label (object SegLabel @59 - Parent_View @58 - location (593, 1150) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 15 - justify 0 - label "1" - pctDist 0.900000 - height 54 - orientation 0)) - (object RoleView "$UNNAMED$15" @60 - Parent_View @56 - location (642, 275) - client @56 - supplier @55 - line_style 0 - label (object SegLabel @61 - Parent_View @60 - location (1403, 1499) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 15 - justify 0 - label "1" - pctDist 0.900000 - height 54 - orientation 1)))) - (object InheritView "" @62 - client @55 - supplier @46 - line_style 0) - (object UsesView "" @63 - client @55 - supplier @48 - line_style 0) - (object UsesView "" @64 - client @55 - supplier @49 - line_style 0) - (object ClassView "Class" "CFontBitmapServer" @65 - location (1550, 775) - label (object ItemLabel - Parent_View @65 - location (1445, 691) - nlines 2 - max_width 245 - justify 0 - label "CFontBitmapServer") - width 356 - annotation 8) - (object AssociationViewNew "IPC" @66 - location (996, 881) - label (object SegLabel @67 - Parent_View @66 - location (996, 822) - anchor 1 - anchor_loc 1 - nlines 1 - max_width 600 - justify 0 - label "IPC" - pctDist 0.500000 - height 60 - orientation 0) - quidu "3198EF07008C" - roleview_list (list RoleViews - (object RoleView "$UNNAMED$12" @68 - Parent_View @66 - location (621, -119) - client @66 - supplier @53 - line_style 0 - label (object SegLabel @69 - Parent_View @68 - location (633, 1007) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 15 - justify 0 - label "0..n" - pctDist 0.900000 - height 54 - orientation 0)) - (object RoleView "$UNNAMED$13" @70 - Parent_View @66 - location (621, -119) - client @66 - supplier @65 - line_style 0 - label (object SegLabel @71 - Parent_View @70 - location (1377, 861) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 15 - justify 0 - label "1" - pctDist 0.900000 - height 54 - orientation 1)))) - (object UsesView "" @72 - client @65 - supplier @55 - line_style 0) - (object InheritView "" @73 - client @65 - supplier @45 - line_style 0) - (object ClassView "Class" "CFbsTop" @74 - location (2450, 875) - label (object ItemLabel - Parent_View @74 - location (2346, 791) - nlines 2 - max_width 240 - justify 0 - label "CFbsTop") - annotation 8) - (object UsesView "" @75 - client @74 - supplier @51 - line_style 0) - (object AssociationViewNew "$UNNAMED$22" @76 - location (2042, 1187) - quidu "3198EF0700FC" - roleview_list (list RoleViews - (object RoleView "$UNNAMED$23" @77 - Parent_View @76 - location (442, -338) - client @76 - supplier @55 - line_style 0 - label (object SegLabel @78 - Parent_View @77 - location (1786, 1451) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 15 - justify 0 - label "0..n" - pctDist 0.900000 - height 54 - orientation 0)) - (object RoleView "$UNNAMED$24" @79 - Parent_View @76 - location (442, -338) - client @76 - supplier @74 - line_style 0 - label (object SegLabel @80 - Parent_View @79 - location (2364, 1009) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 15 - justify 0 - label "1" - pctDist 0.900000 - height 54 - orientation 1)))) - (object AssociationViewNew "$UNNAMED$16" @81 - location (1992, 823) - quidu "3198EF0700FA" - roleview_list (list RoleViews - (object RoleView "$UNNAMED$17" @82 - Parent_View @81 - location (442, 48) - client @81 - supplier @65 - line_style 0 - label (object SegLabel @83 - Parent_View @82 - location (1727, 847) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 15 - justify 0 - label "1" - pctDist 0.900000 - height 54 - orientation 0)) - (object RoleView "$UNNAMED$18" @84 - Parent_View @81 - location (442, 48) - client @81 - supplier @74 - line_style 0 - label (object SegLabel @85 - Parent_View @84 - location (2247, 908) - anchor 2 - anchor_loc 1 - nlines 1 - max_width 15 - justify 0 - label "1" - pctDist 0.900000 - height 54 - orientation 1))))))))) - logical_presentations (list unit_reference_list - (object ClassDiagram "Main" - title "Main" - zoom 100 - max_height 28350 - max_width 21600 - origin_x 0 - origin_y 0 - items (list diagram_item_list - (object ClassView "Class" "RFbsSession" @86 - location (1475, 950) - label (object ItemLabel - Parent_View @86 - location (1343, 841) - nlines 2 - max_width 310 - justify 0 - label "RFbsSession") - compartment (object Compartment - Parent_View @86 - location (1032, 907) - anchor 2 - nlines 1 - max_width 931 - justify 0 - compartmentItems (list Compartment - "SendCommand( )")) - width 450 - height 325 - annotation 8) - (object ClassView "Class" "CFbsFont" @87 - location (2450, 950) - label (object ItemLabel - Parent_View @87 - location (2346, 866) - nlines 2 - max_width 240 - justify 0 - label "CFbsFont") - annotation 8) - (object ClassView "Class" "CFbsBitmap" @88 - location (700, 950) - label (object ItemLabel - Parent_View @88 - location (596, 866) - nlines 2 - max_width 240 - justify 0 - label "CFbsBitmap") - annotation 8) - (object ClassView "Class" "RSessionBase" @89 - location (1475, 400) - label (object ItemLabel - Parent_View @89 - location (1371, 316) - nlines 2 - max_width 240 - justify 0 - label "RSessionBase") - annotation 8) - (object InheritView "" @90 - client @86 - supplier @89 - line_style 0) - (object ClassView "Class" "CFont" @91 - location (2450, 325) - label (object ItemLabel - Parent_View @91 - location (2346, 241) - nlines 2 - max_width 240 - justify 0 - label "CFont") - annotation 8) - (object InheritView "" @92 - client @87 - supplier @91 - line_style 0) - (object ClassView "Class" "CDiBitmap" @93 - location (700, 325) - label (object ItemLabel - Parent_View @93 - location (596, 241) - nlines 2 - max_width 240 - justify 0 - label "CDiBitmap") - annotation 8) - (object InheritView "" @94 - client @88 - supplier @93 - line_style 0) - (object CategoryView "Font/BitmapServer" @95 - location (1675, 675) - label (object ItemLabel - Parent_View @95 - location (1506, 578) - nlines 2 - max_width 338 - justify 0 - label "Font/BitmapServer") - compartment (object Compartment - Parent_View @95 - location (1534, 644) - anchor 2 - nlines 1 - max_width 840 - compartmentItems (list Compartment - "CBitwiseBitmap")) - width 350 - height 206) - (object ClassView "Class" "CFbsTypefaceStore" @96 - location (1925, 1525) - label (object ItemLabel - Parent_View @96 - location (1809, 1441) - nlines 2 - max_width 270 - justify 0 - label "CFbsTypefaceStore") - width 392 - annotation 8) - (object HasView "" @97 - client @96 - supplier @86 - line_style 0) - (object ClassView "Class" "CTypefaceStore" @98 - location (2600, 1725) - label (object ItemLabel - Parent_View @98 - location (2481, 1630) - nlines 2 - max_width 275 - justify 0 - label "CTypefaceStore") - width 399 - height 287 - annotation 8) - (object InheritView "" @99 - client @96 - supplier @98 - line_style 0) - (object UsesView "" @100 - client @96 - supplier @87 - line_style 0) - (object UsesView "" @101 - client @88 - supplier @86 - line_style 0) - (object UsesView "" @102 - client @87 - supplier @86 - line_style 0))))) - (object Class_Category "WindowServer" - visible_categories (list visibility_relationship_list - (object Visibility_Relationship - supplier "BitGdi")) - exportControl "Public" - logical_models (list unit_reference_list) - logical_presentations (list unit_reference_list - (object ClassDiagram "Main" - title "Main" - zoom 100 - max_height 28350 - max_width 21600 - origin_x 0 - origin_y 0 - items (list diagram_item_list)))) - (object Class_Category "Psibit" - visible_categories (list visibility_relationship_list - (object Visibility_Relationship - supplier "Gdi")) - exportControl "Public" - logical_models (list unit_reference_list - (object Class "RPsiBit" - used_nodes (list uses_relationship_list - (object Uses_Relationship - supplier "CBitwiseBitmap")) - operations (list Operations - (object Operation "InitLoadBitmapL" - concurrency "Sequential" - opExportControl "Public" - uid 0) - (object Operation "ExecLoadBitmapL" - concurrency "Sequential" - opExportControl "Public" - uid 0) - (object Operation "StoreBitmapL" - concurrency "Sequential" - opExportControl "Public" - uid 0)))) - logical_presentations (list unit_reference_list - (object ClassDiagram "Main" - title "Main" - zoom 100 - max_height 28350 - max_width 21600 - origin_x 0 - origin_y 0 - items (list diagram_item_list - (object ClassView "Class" "RPsiBit" @103 - location (1800, 950) - label (object ItemLabel - Parent_View @103 - location (1641, 817) - nlines 2 - max_width 374 - justify 0 - label "RPsiBit") - compartment (object Compartment - Parent_View @103 - location (1271, 883) - anchor 2 - nlines 3 - max_width 1124 - justify 0 - compartmentItems (list Compartment - "ExecLoadBitmapL( )" - "InitLoadBitmapL( )" - "StoreBitmapL( )")) - width 543 - height 394 - annotation 8) - (object ClassView "Class" "CBitwiseBitmap" @104 - location (1800, 1575) - label (object ItemLabel - Parent_View @104 - location (1625, 1429) - nlines 2 - max_width 413 - justify 0 - label "CBitwiseBitmap") - width 599 - height 431 - annotation 8) - (object UsesView "" @105 - client @103 - supplier @104 - line_style 0))))) - (object Class_Category "FntStore" - exportControl "Public" - logical_models (list unit_reference_list - (object Class "CBitmapFont" - superclasses (list inheritance_relationship_list - (object Inheritance_Relationship - supplier "CFont"))) - (object Class "CFontStore" - superclasses (list inheritance_relationship_list - (object Inheritance_Relationship - supplier "CBase")) - used_nodes (list uses_relationship_list - (object Uses_Relationship - supplier "CBitmapFont")))) - logical_presentations (list unit_reference_list - (object ClassDiagram "Main" - title "Main" - zoom 100 - max_height 28350 - max_width 21600 - origin_x 0 - origin_y 0 - items (list diagram_item_list - (object ClassView "Class" "CBitmapFont" @106 - location (1550, 1100) - label (object ItemLabel - Parent_View @106 - location (1446, 1016) - nlines 2 - max_width 240 - justify 0 - label "CBitmapFont") - annotation 8) - (object ClassView "Class" "CFontStore" @107 - location (700, 1100) - label (object ItemLabel - Parent_View @107 - location (596, 1016) - nlines 2 - max_width 240 - justify 0 - label "CFontStore") - annotation 8) - (object UsesView "" @108 - client @107 - supplier @106 - line_style 0) - (object ClassView "Class" "CFont" @109 - location (1550, 375) - label (object ItemLabel - Parent_View @109 - location (1446, 291) - nlines 2 - max_width 240 - justify 0 - label "CFont") - annotation 8) - (object InheritView "" @110 - client @106 - supplier @109 - line_style 0) - (object ClassView "Class" "CBase" @111 - location (700, 375) - label (object ItemLabel - Parent_View @111 - location (596, 291) - nlines 2 - max_width 240 - justify 0 - label "CBase") - annotation 8) - (object InheritView "" @112 - client @107 - supplier @111 - line_style 0))))) - (object Class_Category "Gdi" - exportControl "Public" - logical_models (list unit_reference_list - (object Class "CGraphicsDevice" - superclasses (list inheritance_relationship_list - (object Inheritance_Relationship - supplier "CBase")) - used_nodes (list uses_relationship_list - (object Uses_Relationship - supplier "CGraphicsContext") - (object Uses_Relationship - supplier "CFont")) - abstract TRUE) - (object Class "CFont" - superclasses (list inheritance_relationship_list - (object Inheritance_Relationship - supplier "CBase")) - abstract TRUE) - (object Class "CGraphicsContext" - used_nodes (list uses_relationship_list - (object Uses_Relationship - supplier "CFont")) - abstract TRUE) - (object Class "CTypefaceStore" - superclasses (list inheritance_relationship_list - (object Inheritance_Relationship - supplier "CBase")) - used_nodes (list uses_relationship_list - (object Uses_Relationship - supplier "CFont")) - abstract TRUE) - (object Class "TRgb" - nonclass TRUE) - (object Class "CDiBitmap" - abstract TRUE) - (object Class "TLinearDDA") - (object Class "CBitmapContext" - superclasses (list inheritance_relationship_list - (object Inheritance_Relationship - supplier "CGraphicsContext")) - abstract TRUE) - (object Class "CBitmapDevice" - superclasses (list inheritance_relationship_list - (object Inheritance_Relationship - supplier "CGraphicsDevice")) - abstract TRUE) - (object Class_Category "Utility Classes" - exportControl "Public" - logical_models (list unit_reference_list) - logical_presentations (list unit_reference_list - (object ClassDiagram "Main" - title "Main" - zoom 100 - max_height 28350 - max_width 21600 - origin_x 0 - origin_y 0 - items (list diagram_item_list))))) - logical_presentations (list unit_reference_list - (object ClassDiagram "Main" - title "Main" - zoom 100 - max_height 28350 - max_width 21600 - origin_x 0 - origin_y 0 - items (list diagram_item_list - (object ClassView "Class" "CFont" @113 - location (1500, 875) - label (object ItemLabel - Parent_View @113 - location (1396, 791) - nlines 2 - max_width 240 - justify 0 - label "CFont") - annotation 8) - (object ClassView "Class" "CGraphicsContext" @114 - location (975, 1250) - label (object ItemLabel - Parent_View @114 - location (871, 1166) - nlines 2 - max_width 240 - justify 0 - label "CGraphicsContext") - annotation 8) - (object ClassView "Class" "CGraphicsDevice" @115 - location (925, 750) - label (object ItemLabel - Parent_View @115 - location (821, 666) - nlines 2 - max_width 240 - justify 0 - label "CGraphicsDevice") - annotation 8) - (object ClassView "Class" "CBase" @116 - location (1425, 225) - label (object ItemLabel - Parent_View @116 - location (1321, 141) - nlines 2 - max_width 240 - justify 0 - label "CBase") - annotation 8) - (object ClassView "Class" "CTypefaceStore" @117 - location (2200, 850) - label (object ItemLabel - Parent_View @117 - location (2096, 766) - nlines 2 - max_width 240 - justify 0 - label "CTypefaceStore") - annotation 8) - (object InheritView "" @118 - client @113 - supplier @116 - line_style 0) - (object ClassView "Class" "TRgb" @119 - location (650, 1700) - label (object ItemLabel - Parent_View @119 - location (546, 1616) - nlines 2 - max_width 240 - justify 0 - label "TRgb") - annotation 8) - (object ClassView "Class" "CDiBitmap" @120 - location (1550, 1725) - label (object ItemLabel - Parent_View @120 - location (1446, 1641) - nlines 2 - max_width 240 - justify 0 - label "CDiBitmap") - annotation 8) - (object ClassView "Class" "TLinearDDA" @121 - location (2250, 1675) - label (object ItemLabel - Parent_View @121 - location (2146, 1591) - nlines 2 - max_width 240 - justify 0 - label "TLinearDDA") - annotation 8) - (object InheritView "" @122 - client @115 - supplier @116 - line_style 0) - (object InheritView "" @123 - client @117 - supplier @116 - line_style 0) - (object UsesView "" @124 - client @117 - supplier @113 - line_style 0) - (object UsesView "" @125 - client @114 - supplier @113 - line_style 0) - (object ClassView "Class" "CBitmapContext" @126 - location (450, 1275) - label (object ItemLabel - Parent_View @126 - location (346, 1191) - nlines 2 - max_width 240 - justify 0 - label "CBitmapContext") - annotation 8) - (object ClassView "Class" "CBitmapDevice" @127 - location (575, 475) - label (object ItemLabel - Parent_View @127 - location (471, 391) - nlines 2 - max_width 240 - justify 0 - label "CBitmapDevice") - annotation 8) - (object InheritView "" @128 - client @126 - supplier @114 - line_style 0) - (object UsesView "" @129 - client @115 - supplier @114 - line_style 0) - (object UsesView "" @130 - client @115 - supplier @113 - line_style 0) - (object InheritView "" @131 - client @127 - supplier @115 - line_style 0))))) - (object Mechanism @132 - logical_models (list unit_reference_list))) - logical_presentations (list unit_reference_list - (object ClassDiagram "Main" - title "Main" - zoom 100 - max_height 28350 - max_width 21600 - origin_x 0 - origin_y 0 - items (list diagram_item_list - (object CategoryView "BitGdi" @133 - location (1175, 900) - label (object ItemLabel - Parent_View @133 - location (981, 756) - nlines 2 - max_width 388 - justify 0 - label "BitGdi") - compartment (object Compartment - Parent_View @133 - location (1014, 822) - anchor 2 - nlines 3 - max_width 347 - compartmentItems (list Compartment - "CFbsScreenDevice" - "CFbsBitGC" - "RPaletteBase")) - width 400 - height 300) - (object CategoryView "FontBitmapServer" @134 - location (1875, 900) - label (object ItemLabel - Parent_View @134 - location (1656, 756) - nlines 2 - max_width 438 - justify 0 - label "FontBitmapServer") - compartment (object Compartment - Parent_View @134 - location (1694, 822) - anchor 2 - nlines 4 - max_width 360 - compartmentItems (list Compartment - "CFbsFont" - "CFbsTypefaceStore" - "CFbsBitmap" - "RFbsSession")) - width 450 - height 300) - (object CategoryView "WindowServer" @135 - location (525, 900) - label (object ItemLabel - Parent_View @135 - location (381, 816) - nlines 2 - max_width 288 - justify 0 - label "WindowServer") - width 300 - height 180) - (object ImportView "" @136 - client @135 - supplier @133 - line_style 0) - (object ImportView "" @137 - client @133 - supplier @134 - line_style 0) - (object CategoryView "FntStore" @138 - location (1875, 1525) - label (object ItemLabel - Parent_View @138 - location (1731, 1441) - nlines 2 - max_width 288 - justify 0 - label "FntStore") - compartment (object Compartment - Parent_View @138 - location (1754, 1507) - anchor 2 - nlines 2 - max_width 720 - compartmentItems (list Compartment - "CBitmapFont" - "CFontStore")) - width 300 - height 180) - (object ImportView "" @139 - client @134 - supplier @138 - line_style 0) - (object CategoryView "Gdi" @140 - location (2600, 900) - label (object ItemLabel - Parent_View @140 - location (2406, 631) - nlines 2 - max_width 388 - justify 0 - label "Gdi") - compartment (object Compartment - Parent_View @140 - location (2439, 697) - anchor 2 - nlines 9 - max_width 347 - compartmentItems (list Compartment - "CFont" - "CGraphicsDevice" - "CTypefaceStore" - "CGraphicsContext" - "CDiBitmap" - "TLinearDDA" - "TRgb" - "CBitmapContext" - "CBitmapDevice")) - width 400 - height 550) - (object ImportView "" @141 - client @134 - supplier @140 - line_style 0))) - (object ObjectDiagram "Untitled" - mechanism_ref @132 - title "Untitled" - zoom 100 - max_height 28350 - max_width 21600 - origin_x 0 - origin_y 0 - items (list diagram_item_list)))) - root_subsystem (object SubSystem "" - physical_models (list unit_reference_list - (object module "G32" "SubType" "Main")) - physical_presentations (list unit_reference_list - (object Module_Diagram "Main" - title "Main" - zoom 100 - max_height 28350 - max_width 21600 - origin_x 0 - origin_y 0 - items (list diagram_item_list)))) - process_structure (object Processes - ProcsNDevs (list - (object Process_Diagram "" - title "" - zoom 100 - max_height 28350 - max_width 21600 - origin_x 0 - origin_y 0 - items (list diagram_item_list)))) - properties (object Properties)) diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsdeviceinterface/bitgdi/group/TBitgdiServer.mmp --- a/graphicsdeviceinterface/bitgdi/group/TBitgdiServer.mmp Wed Jun 23 19:41:15 2010 +0300 +++ b/graphicsdeviceinterface/bitgdi/group/TBitgdiServer.mmp Tue Jul 06 15:45:57 2010 +0300 @@ -78,10 +78,6 @@ LIBRARY fontinjector.lib #endif -#if !defined(WINS) -LIBRARY viewsrv.lib -#endif - // We're quite heavy on the stack... 4k in WinS isn't enough... EPOCSTACKSIZE 0x6000 diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsdeviceinterface/bitgdi/group/bitgditest_helium.pkg --- a/graphicsdeviceinterface/bitgdi/group/bitgditest_helium.pkg Wed Jun 23 19:41:15 2010 +0300 +++ b/graphicsdeviceinterface/bitgdi/group/bitgditest_helium.pkg Tue Jul 06 15:45:57 2010 +0300 @@ -34,20 +34,20 @@ ;*Files To Copy... ;//script files -"..\tbit\scripts\bitgdiTest_T_Accelerator.script"-"c:\bitgdiTest\bitgdiTest_T_Accelerator.script" -"..\tbit\scripts\bitgdiTest_T_AlphaBlending.script"-"c:\bitgdiTest\bitgdiTest_T_AlphaBlending.script" -"..\tbit\scripts\bitgdiTest_T_Auto.script"-"c:\bitgdiTest\bitgdiTest_T_Auto.script" -"..\tbit\scripts\bitgdiTest_T_Clip.script"-"c:\bitgdiTest\bitgdiTest_T_Clip.script" -"..\tbit\scripts\bitgdiTest_T_Clip2.script"-"c:\bitgdiTest\bitgdiTest_T_Clip2.script" -"..\tbit\scripts\bitgdiTest_T_Defect.script"-"c:\bitgdiTest\bitgdiTest_T_Defect.script" -"..\tbit\scripts\bitgdiTest_T_Defect2.script"-"c:\bitgdiTest\bitgdiTest_T_Defect2.script" -"..\tbit\scripts\bitgdiTest_T_Font.script"-"c:\bitgdiTest\bitgdiTest_T_Font.script" -"..\tbit\scripts\bitgdiTest_T_FontSelect.script"-"c:\bitgdiTest\bitgdiTest_T_FontSelect.script" -"..\tbit\scripts\bitgdiTest_T_Gdi.script"-"c:\bitgdiTest\bitgdiTest_T_Gdi.script" -"..\tbit\scripts\bitgdiTest_T_Param.script"-"c:\bitgdiTest\bitgdiTest_T_Param.script" -"..\tbit\scripts\bitgdiTest_T_BitBlt.script"-"c:\bitgdiTest\bitgdiTest_T_BitBlt.script" -"..\tbit\scripts\bitgdiTest_T_Scaling.script"-"c:\bitgdiTest\bitgdiTest_T_Scaling.script" -"..\tbit\scripts\bitgdiTest_T_Switch.script"-"c:\bitgdiTest\bitgdiTest_T_Switch.script" -"..\tbit\scripts\bitgditest_t_extendedbitmap.script"-"c:\bitgditest\bitgditest_t_extendedbitmap.script" -"..\tbit\scripts\bitgditest_t_outlineandshadowfonts.script"-"c:\bitgditest\bitgditest_t_outlineandshadowfonts.script" +"\epoc32\data\z\bitgditest\bitgdiTest_T_Accelerator.script"-"c:\bitgdiTest\bitgdiTest_T_Accelerator.script" +"\epoc32\data\z\bitgditest\bitgdiTest_T_AlphaBlending.script"-"c:\bitgdiTest\bitgdiTest_T_AlphaBlending.script" +"\epoc32\data\z\bitgditest\bitgdiTest_T_Auto.script"-"c:\bitgdiTest\bitgdiTest_T_Auto.script" +"\epoc32\data\z\bitgditest\bitgdiTest_T_Clip.script"-"c:\bitgdiTest\bitgdiTest_T_Clip.script" +"\epoc32\data\z\bitgditest\bitgdiTest_T_Clip2.script"-"c:\bitgdiTest\bitgdiTest_T_Clip2.script" +"\epoc32\data\z\bitgditest\bitgdiTest_T_Defect.script"-"c:\bitgdiTest\bitgdiTest_T_Defect.script" +"\epoc32\data\z\bitgditest\bitgdiTest_T_Defect2.script"-"c:\bitgdiTest\bitgdiTest_T_Defect2.script" +"\epoc32\data\z\bitgditest\bitgdiTest_T_Font.script"-"c:\bitgdiTest\bitgdiTest_T_Font.script" +"\epoc32\data\z\bitgditest\bitgdiTest_T_FontSelect.script"-"c:\bitgdiTest\bitgdiTest_T_FontSelect.script" +"\epoc32\data\z\bitgditest\bitgdiTest_T_Gdi.script"-"c:\bitgdiTest\bitgdiTest_T_Gdi.script" +"\epoc32\data\z\bitgditest\bitgdiTest_T_Param.script"-"c:\bitgdiTest\bitgdiTest_T_Param.script" +"\epoc32\data\z\bitgditest\bitgdiTest_T_BitBlt.script"-"c:\bitgdiTest\bitgdiTest_T_BitBlt.script" +"\epoc32\data\z\bitgditest\bitgdiTest_T_Scaling.script"-"c:\bitgdiTest\bitgdiTest_T_Scaling.script" +"\epoc32\data\z\bitgditest\bitgdiTest_T_Switch.script"-"c:\bitgdiTest\bitgdiTest_T_Switch.script" +"\epoc32\data\z\bitgditest\bitgditest_t_extendedbitmap.script"-"c:\bitgditest\bitgditest_t_extendedbitmap.script" +"\epoc32\data\z\bitgditest\bitgditest_t_outlineandshadowfonts.script"-"c:\bitgditest\bitgditest_t_outlineandshadowfonts.script" diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsdeviceinterface/directgdi/group/directgditest_helium.pkg --- a/graphicsdeviceinterface/directgdi/group/directgditest_helium.pkg Wed Jun 23 19:41:15 2010 +0300 +++ b/graphicsdeviceinterface/directgdi/group/directgditest_helium.pkg Tue Jul 06 15:45:57 2010 +0300 @@ -34,6 +34,6 @@ ;*Files To Copy... ;//script files -"..\test\scripts\directgditest\directgditest_t_general_hw.script"-"c:\directgditest\directgditest_t_general.script" -"..\test\scripts\directgditest\directgditest_t_no_adapter.script"-"c:\directgditest\directgditest_t_no_adapter.script" +"\epoc32\z\data\directgditest\directgditest_t_general_hw.script"-"c:\directgditest\directgditest_t_general.script" +"\epoc32\z\data\directgditest\directgditest_t_no_adapter.script"-"c:\directgditest\directgditest_t_no_adapter.script" diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsdeviceinterface/gdi/Documentation/TestCode.rtf --- a/graphicsdeviceinterface/gdi/Documentation/TestCode.rtf Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,44 +0,0 @@ -{\rtf1\ansi\ansicpg1252\uc1 \deff0\deflang1033\deflangfe1033{\fonttbl{\f0\froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}{\f1\fswiss\fcharset0\fprq2{\*\panose 020b0604020202020204}Arial;} -{\f16\froman\fcharset238\fprq2 Times New Roman CE;}{\f17\froman\fcharset204\fprq2 Times New Roman Cyr;}{\f19\froman\fcharset161\fprq2 Times New Roman Greek;}{\f20\froman\fcharset162\fprq2 Times New Roman Tur;} -{\f21\froman\fcharset186\fprq2 Times New Roman Baltic;}{\f22\fswiss\fcharset238\fprq2 Arial CE;}{\f23\fswiss\fcharset204\fprq2 Arial Cyr;}{\f25\fswiss\fcharset161\fprq2 Arial Greek;}{\f26\fswiss\fcharset162\fprq2 Arial Tur;} -{\f27\fswiss\fcharset186\fprq2 Arial Baltic;}}{\colortbl;\red0\green0\blue0;\red0\green0\blue255;\red0\green255\blue255;\red0\green255\blue0;\red255\green0\blue255;\red255\green0\blue0;\red255\green255\blue0;\red255\green255\blue255;\red0\green0\blue128; -\red0\green128\blue128;\red0\green128\blue0;\red128\green0\blue128;\red128\green0\blue0;\red128\green128\blue0;\red128\green128\blue128;\red192\green192\blue192;}{\stylesheet{\widctlpar\adjustright \fs20\lang2057 \snext0 Normal;}{ -\s1\sb240\sa60\keepn\widctlpar\adjustright \b\f1\fs28\lang2057\kerning28 \sbasedon0 \snext0 heading 1;}{\s2\sb240\sa60\keepn\widctlpar\adjustright \b\i\f1\lang2057 \sbasedon0 \snext0 heading 2;}{\s3\sb240\sa60\keepn\widctlpar\adjustright \f1\lang2057 -\sbasedon0 \snext0 heading 3;}{\s4\keepn\widctlpar\outlinelevel3\adjustright \b\f1\fs20\lang2057 \sbasedon0 \snext0 heading 4;}{\s5\keepn\widctlpar\outlinelevel4\adjustright \b\f1\lang2057 \sbasedon0 \snext0 heading 5;}{\*\cs10 \additive -Default Paragraph Font;}}{\*\listtable{\list\listtemplateid38323078\listsimple{\listlevel\levelnfc23\leveljc0\levelfollow0\levelstartat0\levelspace0\levelindent0{\leveltext\'01-;}{\levelnumbers;}\f0\fbias0 \fi-360\li1800\jclisttab\tx1800 }{\listname -;}\listid817500656}{\list\listtemplateid38323078\listsimple{\listlevel\levelnfc23\leveljc0\levelfollow0\levelstartat0\levelspace0\levelindent0{\leveltext\'01-;}{\levelnumbers;}\f0\fbias0 \fi-360\li1800\jclisttab\tx1800 }{\listname ;}\listid1308366115} -{\list\listtemplateid38323078\listsimple{\listlevel\levelnfc23\leveljc0\levelfollow0\levelstartat0\levelspace0\levelindent0{\leveltext\'01-;}{\levelnumbers;}\f0\fbias0 \fi-360\li1800\jclisttab\tx1800 }{\listname ;}\listid1721782559}}{\*\listoverridetable -{\listoverride\listid1308366115\listoverridecount0\ls1}{\listoverride\listid817500656\listoverridecount0\ls2}{\listoverride\listid1721782559\listoverridecount0\ls3}}{\info{\title BITGDI test code}{\author Lane Roberts}{\operator Derek Clarke} -{\creatim\yr2001\mo6\dy14\hr11\min14}{\revtim\yr2002\mo10\dy10\hr17\min45}{\version4}{\edmins3}{\nofpages1}{\nofwords171}{\nofchars977}{\*\company Dell Computer Corporation}{\nofcharsws0}{\vern113}}\paperw11909\paperh16834\margl1440\margr1440 -\widowctrl\ftnbj\aenddoc\hyphcaps0\formshade\viewkind1\viewscale100 \fet0\sectd \psz9\linex0\headery706\footery706\colsx709\endnhere\sectdefaultcl {\*\pnseclvl1\pnucrm\pnstart1\pnindent720\pnhang{\pntxta .}}{\*\pnseclvl2 -\pnucltr\pnstart1\pnindent720\pnhang{\pntxta .}}{\*\pnseclvl3\pndec\pnstart1\pnindent720\pnhang{\pntxta .}}{\*\pnseclvl4\pnlcltr\pnstart1\pnindent720\pnhang{\pntxta )}}{\*\pnseclvl5\pndec\pnstart1\pnindent720\pnhang{\pntxtb (}{\pntxta )}}{\*\pnseclvl6 -\pnlcltr\pnstart1\pnindent720\pnhang{\pntxtb (}{\pntxta )}}{\*\pnseclvl7\pnlcrm\pnstart1\pnindent720\pnhang{\pntxtb (}{\pntxta )}}{\*\pnseclvl8\pnlcltr\pnstart1\pnindent720\pnhang{\pntxtb (}{\pntxta )}}{\*\pnseclvl9\pnlcrm\pnstart1\pnindent720\pnhang -{\pntxtb (}{\pntxta )}}\pard\plain \s1\sb240\sa60\keepn\widctlpar\outlinelevel0\adjustright \b\f1\fs28\lang2057\kerning28 {GDI test code -\par }\pard\plain \widctlpar\adjustright \fs20\lang2057 {\f1 -\par }{\b\f1\fs24 Test executable file locations -\par -\par }\trowd \trgaph108\trleft-108\trbrdrt\brdrs\brdrw10 \trbrdrl\brdrs\brdrw10 \trbrdrb\brdrs\brdrw10 \trbrdrr\brdrs\brdrw10 \trbrdrh\brdrs\brdrw10 \trbrdrv\brdrs\brdrw10 \clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr -\brdrs\brdrw10 \clshdng10000\cltxlrtb \cellx3050\clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 \clshdng10000\cltxlrtb \cellx6208\pard \widctlpar\intbl\adjustright {\b\f1 WINS location\cell -Hardware location\cell }\pard \widctlpar\intbl\adjustright {\b\f1 \row }\trowd \trgaph108\trleft-108\trbrdrt\brdrs\brdrw10 \trbrdrl\brdrs\brdrw10 \trbrdrb\brdrs\brdrw10 \trbrdrr\brdrs\brdrw10 \trbrdrh\brdrs\brdrw10 \trbrdrv\brdrs\brdrw10 \clvertalt -\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 \cltxlrtb \cellx3050\clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 \cltxlrtb \cellx6208\pard -\widctlpar\intbl\adjustright {\f1 \\epoc32\\release\\wins\\udeb\\ -\par or -\par \\epoc32\\release\\wins\\urel\\\cell c:\\ or z:\\\cell }\pard \widctlpar\intbl\adjustright {\f1 \row }\pard \widctlpar\adjustright {\f1 -\par }\pard\plain \s5\keepn\widctlpar\outlinelevel4\adjustright \b\f1\lang2057 {Automatic test executables - should be run before every release -\par }\pard\plain \widctlpar\adjustright \fs20\lang2057 {\f1 Success: Test program exits cleanly. -\par Failure: Test program stops with an error message.}{ -\par }{\b\f1 -\par }\trowd \trgaph108\trleft-108\trbrdrt\brdrs\brdrw10 \trbrdrl\brdrs\brdrw10 \trbrdrb\brdrs\brdrw10 \trbrdrr\brdrs\brdrw10 \trbrdrh\brdrs\brdrw10 \trbrdrv\brdrs\brdrw10 \clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr -\brdrs\brdrw10 \clshdng10000\cltxlrtb \cellx2380\clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 \clshdng10000\cltxlrtb \cellx8155\pard\plain \s4\keepn\widctlpar\intbl\outlinelevel3\adjustright -\b\f1\fs20\lang2057 {Filename\cell Purpose\cell }\pard\plain \widctlpar\intbl\adjustright \fs20\lang2057 {\b\f1 \row }\trowd \trgaph108\trleft-108\trbrdrt\brdrs\brdrw10 \trbrdrl\brdrs\brdrw10 \trbrdrb\brdrs\brdrw10 \trbrdrr\brdrs\brdrw10 \trbrdrh -\brdrs\brdrw10 \trbrdrv\brdrs\brdrw10 \clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 \cltxlrtb \cellx2380\clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr -\brdrs\brdrw10 \cltxlrtb \cellx8155\pard \widctlpar\intbl\adjustright {\f1 TRGB.EXE\tab \cell TRgb tests}{\b\f1 \cell }\pard \widctlpar\intbl\adjustright {\b\f1 \row }\pard \widctlpar\intbl\adjustright {\f1 TTYPES.EXE\tab \tab \cell General tests}{\b\f1 -\cell }\pard \widctlpar\intbl\adjustright {\b\f1 \row }\pard \widctlpar\intbl\adjustright {\f1 TLINEBREAK.EXE\tab \cell MLinebreaker tests}{\b\f1 \cell }\pard \widctlpar\intbl\adjustright {\b\f1 \row }\trowd \trgaph108\trleft-108\trbrdrt\brdrs\brdrw10 -\trbrdrl\brdrs\brdrw10 \trbrdrb\brdrs\brdrw10 \trbrdrr\brdrs\brdrw10 \trbrdrh\brdrs\brdrw10 \trbrdrv\brdrs\brdrw10 \clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 \cltxlrtb \cellx2380\clvertalt\clbrdrt -\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 \cltxlrtb \cellx8155\pard \widctlpar\intbl\adjustright {\f1 TBIDI.EXE\tab \tab \cell Bidirectional algorithm tests}{\b\f1 \cell }\pard \widctlpar\intbl\adjustright {\b\f1 -\row }\pard \widctlpar\adjustright {\b\f1 -\par }{\b\f1\fs24 Test rom building -\par }{\f1 -\par \\gdi\\group\\gditest.iby is listed in bld.inf as a test export with destination \\epoc32\\rom\\include\\. This automatically includes all test programs and files in a rom when used as follows from \\epoc32\\rom\\: \ldblquote tools\\buildrom assabet -Techview gditest.iby\rdblquote . -\par }} \ No newline at end of file diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsdeviceinterface/gdi/group/TGdiServer.mmp --- a/graphicsdeviceinterface/gdi/group/TGdiServer.mmp Wed Jun 23 19:41:15 2010 +0300 +++ b/graphicsdeviceinterface/gdi/group/TGdiServer.mmp Tue Jul 06 15:45:57 2010 +0300 @@ -64,10 +64,6 @@ LIBRARY bitgdi.lib LIBRARY fbscli.lib -#if !defined(WINS) -LIBRARY viewsrv.lib -#endif - // We're quite heavy on the stack... 4k in WinS isn't enough... EPOCSTACKSIZE 0x10000 diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsdeviceinterface/gdi/group/gditest_helium.pkg --- a/graphicsdeviceinterface/gdi/group/gditest_helium.pkg Wed Jun 23 19:41:15 2010 +0300 +++ b/graphicsdeviceinterface/gdi/group/gditest_helium.pkg Tue Jul 06 15:45:57 2010 +0300 @@ -34,10 +34,10 @@ ;*Files To Copy... ;//script file -"..\tgdi\scripts\gditest_T_Rgb.script"-"c:\gditest\gditest_T_Rgb.script" -"..\tgdi\scripts\gditest_T_Types.script"-"c:\gditest\gditest_T_Types.script" -"..\tgdi\scripts\gditest_T_BiDiDefect.script"-"c:\gditest\gditest_T_BiDiDefect.script" -"..\tgdi\scripts\gditest_T_LineBreak.script"-"c:\gditest\gditest_T_LineBreak.script" -"..\tgdi\scripts\gditest_T_GlyphSelection.script"-"c:\gditest\gditest_T_GlyphSelection.script" -"..\tgdi\scripts\gditest_T_BiDi.script"-"c:\gditest\gditest_T_BiDi.script" +"\epoc32\data\z\gditest\gditest_T_Rgb.script"-"c:\gditest\gditest_T_Rgb.script" +"\epoc32\data\z\gditest\gditest_T_Types.script"-"c:\gditest\gditest_T_Types.script" +"\epoc32\data\z\gditest\gditest_T_BiDiDefect.script"-"c:\gditest\gditest_T_BiDiDefect.script" +"\epoc32\data\z\gditest\gditest_T_LineBreak.script"-"c:\gditest\gditest_T_LineBreak.script" +"\epoc32\data\z\gditest\gditest_T_GlyphSelection.script"-"c:\gditest\gditest_T_GlyphSelection.script" +"\epoc32\data\z\gditest\gditest_T_BiDi.script"-"c:\gditest\gditest_T_BiDi.script" diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsdeviceinterface/screendriver/Documentation/ColourSpec.rtf --- a/graphicsdeviceinterface/screendriver/Documentation/ColourSpec.rtf Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,446 +0,0 @@ -{\rtf1\ansi\ansicpg1252\uc1\deff0\stshfdbch0\stshfloch0\stshfhich0\stshfbi0\deflang1033\deflangfe1033{\fonttbl{\f0\froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}{\f1\fswiss\fcharset0\fprq2{\*\panose 020b0604020202020204}Arial;} -{\f67\froman\fcharset238\fprq2 Times New Roman CE;}{\f68\froman\fcharset204\fprq2 Times New Roman Cyr;}{\f70\froman\fcharset161\fprq2 Times New Roman Greek;}{\f71\froman\fcharset162\fprq2 Times New Roman Tur;} -{\f72\froman\fcharset177\fprq2 Times New Roman (Hebrew);}{\f73\froman\fcharset178\fprq2 Times New Roman (Arabic);}{\f74\froman\fcharset186\fprq2 Times New Roman Baltic;}{\f75\froman\fcharset163\fprq2 Times New Roman (Vietnamese);} -{\f77\fswiss\fcharset238\fprq2 Arial CE;}{\f78\fswiss\fcharset204\fprq2 Arial Cyr;}{\f80\fswiss\fcharset161\fprq2 Arial Greek;}{\f81\fswiss\fcharset162\fprq2 Arial Tur;}{\f82\fswiss\fcharset177\fprq2 Arial (Hebrew);} -{\f83\fswiss\fcharset178\fprq2 Arial (Arabic);}{\f84\fswiss\fcharset186\fprq2 Arial Baltic;}{\f85\fswiss\fcharset163\fprq2 Arial (Vietnamese);}}{\colortbl;\red0\green0\blue0;\red0\green0\blue255;\red0\green255\blue255;\red0\green255\blue0; -\red255\green0\blue255;\red255\green0\blue0;\red255\green255\blue0;\red255\green255\blue255;\red0\green0\blue128;\red0\green128\blue128;\red0\green128\blue0;\red128\green0\blue128;\red128\green0\blue0;\red128\green128\blue0;\red128\green128\blue128; -\red192\green192\blue192;\red255\green255\blue255;}{\stylesheet{\ql \li0\ri0\widctlpar\faauto\adjustright\rin0\lin0\itap0 \fs20\lang2057\langfe1033\cgrid\langnp2057\langfenp1033 \snext0 Normal;}{ -\s1\ql \li0\ri0\sb480\sa200\keepn\widctlpar\faauto\outlinelevel0\adjustright\rin0\lin0\itap0 \b\f1\fs28\lang2057\langfe1033\kerning28\cgrid\langnp2057\langfenp1033 \sbasedon0 \snext0 heading 1;}{ -\s2\ql \li0\ri0\sb280\sa120\keepn\widctlpar\faauto\outlinelevel1\adjustright\rin0\lin0\itap0 \b\f1\fs24\lang2057\langfe1033\cgrid\langnp2057\langfenp1033 \sbasedon0 \snext0 heading 2;}{ -\s3\ql \li0\ri0\sb120\sa120\keepn\widctlpar\faauto\outlinelevel2\adjustright\rin0\lin0\itap0 \b\f1\fs20\lang2057\langfe1033\cgrid\langnp2057\langfenp1033 \sbasedon0 \snext0 heading 3;}{\*\cs10 \additive \ssemihidden Default Paragraph Font;}{\* -\ts11\tsrowd\trftsWidthB3\trpaddl108\trpaddr108\trpaddfl3\trpaddft3\trpaddfb3\trpaddfr3\tscellwidthfts0\tsvertalt\tsbrdrt\tsbrdrl\tsbrdrb\tsbrdrr\tsbrdrdgl\tsbrdrdgr\tsbrdrh\tsbrdrv -\ql \li0\ri0\widctlpar\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0 \fs20\lang1024\langfe1024\cgrid\langnp1024\langfenp1024 \snext11 \ssemihidden Normal Table;}{\s15\ql \li0\ri0\widctlpar\faauto\adjustright\rin0\lin0\itap0 -\fs20\lang2057\langfe1033\cgrid\langnp2057\langfenp1033 \sbasedon0 \snext15 Table;}{\s16\ql \li0\ri0\sa120\widctlpar\tqc\tx4819\tqr\tx9071\faauto\adjustright\rin0\lin0\itap0 \fs20\lang2057\langfe1033\cgrid\langnp2057\langfenp1033 \sbasedon0 \snext16 -footer;}{\s17\ql \li0\ri0\sa120\widctlpar\tqc\tx4819\tqr\tx9071\faauto\adjustright\rin0\lin0\itap0 \fs20\lang2057\langfe1033\cgrid\langnp2057\langfenp1033 \sbasedon0 \snext17 header;}{ -\s18\ql \li170\ri0\sa120\widctlpar\faauto\adjustright\rin0\lin170\itap0 \i\v\f1\fs18\cf2\lang2057\langfe1033\cgrid\langnp2057\langfenp1033 \sbasedon0 \snext18 Hidden;}{\s19\ql \li0\ri0\widctlpar\tqr\tldot\tx8640\faauto\adjustright\rin0\lin0\itap0 -\fs20\lang2057\langfe1033\cgrid\langnp2057\langfenp1033 \sbasedon0 \snext0 \sautoupd \ssemihidden toc 1;}{\s20\ql \li200\ri0\widctlpar\tqr\tldot\tx8640\faauto\adjustright\rin0\lin200\itap0 \fs20\lang2057\langfe1033\cgrid\langnp2057\langfenp1033 -\sbasedon0 \snext0 \sautoupd \ssemihidden toc 2;}{\s21\ql \li400\ri0\widctlpar\tqr\tldot\tx8640\faauto\adjustright\rin0\lin400\itap0 \fs20\lang2057\langfe1033\cgrid\langnp2057\langfenp1033 \sbasedon0 \snext0 \sautoupd \ssemihidden toc 3;}{ -\s22\ql \li600\ri0\widctlpar\tqr\tldot\tx8640\faauto\adjustright\rin0\lin600\itap0 \fs20\lang2057\langfe1033\cgrid\langnp2057\langfenp1033 \sbasedon0 \snext0 \sautoupd \ssemihidden toc 4;}{\s23\ql \li800\ri0\widctlpar -\tqr\tldot\tx8640\faauto\adjustright\rin0\lin800\itap0 \fs20\lang2057\langfe1033\cgrid\langnp2057\langfenp1033 \sbasedon0 \snext0 \sautoupd \ssemihidden toc 5;}{\s24\ql \li1000\ri0\widctlpar\tqr\tldot\tx8640\faauto\adjustright\rin0\lin1000\itap0 -\fs20\lang2057\langfe1033\cgrid\langnp2057\langfenp1033 \sbasedon0 \snext0 \sautoupd \ssemihidden toc 6;}{\s25\ql \li1200\ri0\widctlpar\tqr\tldot\tx8640\faauto\adjustright\rin0\lin1200\itap0 \fs20\lang2057\langfe1033\cgrid\langnp2057\langfenp1033 -\sbasedon0 \snext0 \sautoupd \ssemihidden toc 7;}{\s26\ql \li1400\ri0\widctlpar\tqr\tldot\tx8640\faauto\adjustright\rin0\lin1400\itap0 \fs20\lang2057\langfe1033\cgrid\langnp2057\langfenp1033 \sbasedon0 \snext0 \sautoupd \ssemihidden toc 8;}{ -\s27\ql \li1600\ri0\widctlpar\tqr\tldot\tx8640\faauto\adjustright\rin0\lin1600\itap0 \fs20\lang2057\langfe1033\cgrid\langnp2057\langfenp1033 \sbasedon0 \snext0 \sautoupd \ssemihidden toc 9;}}{\*\rsidtbl \rsid10634874\rsid10954813} -{\*\generator Microsoft Word 10.0.4219;}{\info{\title Requirements/Functional specification}{\author Lane Roberts}{\operator EXTShambulingK}{\creatim\yr1997\mo12\dy8\hr10\min1}{\revtim\yr2003\mo11\dy19\hr18\min43}{\version8}{\edmins8}{\nofpages5} -{\nofwords2316}{\nofchars13207}{\*\company Dell Computer Corporation}{\nofcharsws15493}{\vern16469}}\paperw11909\paperh16834\margl1829\margr1440 -\widowctrl\ftnbj\aenddoc\noxlattoyen\expshrtn\noultrlspc\dntblnsbdb\nospaceforul\hyphcaps0\formshade\horzdoc\dghspace120\dgvspace120\dghorigin1701\dgvorigin1984\dghshow0\dgvshow3\jcompress\viewkind1\viewscale100\nolnhtadjtbl\rsidroot10634874 \fet0\sectd -\linex0\headery706\footery706\colsx709\endnhere\sectdefaultcl\sftnbj {\header \pard\plain \s17\qr \li0\ri0\sa120\widctlpar\tqc\tx4819\tqr\tx9071\faauto\adjustright\rin0\lin0\itap0 \fs20\lang2057\langfe1033\cgrid\langnp2057\langfenp1033 {\insrsid10634874 -Symbian Ltd.}{\insrsid10634874 confidential -\par }}{\footer \pard\plain \s16\qc \li0\ri0\sa120\widctlpar\tqc\tx4819\tqr\tx9071\faauto\adjustright\rin0\lin0\itap0 \fs20\lang2057\langfe1033\cgrid\langnp2057\langfenp1033 {\field{\*\fldinst {\insrsid10634874 PAGE}}{\fldrslt { -\lang1024\langfe1024\noproof\insrsid10634874 2}}}{\insrsid10634874 -\par }}{\*\pnseclvl1\pnucrm\pnstart1\pnindent720\pnhang {\pntxta .}}{\*\pnseclvl2\pnucltr\pnstart1\pnindent720\pnhang {\pntxta .}}{\*\pnseclvl3\pndec\pnstart1\pnindent720\pnhang {\pntxta .}}{\*\pnseclvl4\pnlcltr\pnstart1\pnindent720\pnhang {\pntxta )}} -{\*\pnseclvl5\pndec\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}{\*\pnseclvl6\pnlcltr\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}{\*\pnseclvl7\pnlcrm\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}{\*\pnseclvl8 -\pnlcltr\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}{\*\pnseclvl9\pnlcrm\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}\pard\plain \s1\ql \li0\ri0\sb480\sa200\keepn\widctlpar\faauto\outlinelevel0\adjustright\rin0\lin0\itap0 -\b\f1\fs28\lang2057\langfe1033\kerning28\cgrid\langnp2057\langfenp1033 {\fs32\insrsid10634874 {\*\bkmkstart _Toc492189371}Colour Requirements/Functional specification{\*\bkmkend _Toc492189371} -\par }\trowd \irow0\irowband0\ts11\trgaph108\trleft42\trkeep\trftsWidth1\trpaddl108\trpaddr108\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrs\brdrw15 \clbrdrl\brdrs\brdrw15 \clbrdrb\brdrnone \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth1678\clshdrawnil -\cellx1720\clvertalt\clbrdrt\brdrs\brdrw15 \clbrdrl\brdrnone \clbrdrb\brdrnone \clbrdrr\brdrs\brdrw15 \cltxlrtb\clftsWidth3\clwWidth6253\clshdrawnil \cellx7973\pard\plain \s15\ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 -\fs20\lang2057\langfe1033\cgrid\langnp2057\langfenp1033 {\insrsid10634874 Author\cell Lane Roberts\cell }\pard\plain \ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 \fs20\lang2057\langfe1033\cgrid\langnp2057\langfenp1033 { -\insrsid10634874 \trowd \irow0\irowband0\ts11\trgaph108\trleft42\trkeep\trftsWidth1\trpaddl108\trpaddr108\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrs\brdrw15 \clbrdrl\brdrs\brdrw15 \clbrdrb\brdrnone \clbrdrr\brdrnone -\cltxlrtb\clftsWidth3\clwWidth1678\clshdrawnil \cellx1720\clvertalt\clbrdrt\brdrs\brdrw15 \clbrdrl\brdrnone \clbrdrb\brdrnone \clbrdrr\brdrs\brdrw15 \cltxlrtb\clftsWidth3\clwWidth6253\clshdrawnil \cellx7973\row }\trowd \irow1\irowband1 -\ts11\trgaph108\trleft42\trkeep\trftsWidth1\trpaddl108\trpaddr108\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrnone \clbrdrl\brdrs\brdrw15 \clbrdrb\brdrnone \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth1678\clshdrawnil \cellx1720\clvertalt\clbrdrt -\brdrnone \clbrdrl\brdrnone \clbrdrb\brdrnone \clbrdrr\brdrs\brdrw15 \cltxlrtb\clftsWidth3\clwWidth6253\clshdrawnil \cellx7973\pard\plain \s15\ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 -\fs20\lang2057\langfe1033\cgrid\langnp2057\langfenp1033 {\insrsid10634874 Contributors\cell Simon Chisholm, Martin Tasker, Jeremy Wakefield\cell }\pard\plain \ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 -\fs20\lang2057\langfe1033\cgrid\langnp2057\langfenp1033 {\insrsid10634874 \trowd \irow1\irowband1\ts11\trgaph108\trleft42\trkeep\trftsWidth1\trpaddl108\trpaddr108\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrnone \clbrdrl\brdrs\brdrw15 \clbrdrb\brdrnone -\clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth1678\clshdrawnil \cellx1720\clvertalt\clbrdrt\brdrnone \clbrdrl\brdrnone \clbrdrb\brdrnone \clbrdrr\brdrs\brdrw15 \cltxlrtb\clftsWidth3\clwWidth6253\clshdrawnil \cellx7973\row }\pard\plain -\s15\ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 \fs20\lang2057\langfe1033\cgrid\langnp2057\langfenp1033 {\insrsid10634874 Date\cell 8}{\super\insrsid10634874 th}{\insrsid10634874 December 1997\cell }\pard\plain -\ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 \fs20\lang2057\langfe1033\cgrid\langnp2057\langfenp1033 {\insrsid10634874 \trowd \irow2\irowband2 -\ts11\trgaph108\trleft42\trkeep\trftsWidth1\trpaddl108\trpaddr108\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrnone \clbrdrl\brdrs\brdrw15 \clbrdrb\brdrnone \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth1678\clshdrawnil \cellx1720\clvertalt\clbrdrt -\brdrnone \clbrdrl\brdrnone \clbrdrb\brdrnone \clbrdrr\brdrs\brdrw15 \cltxlrtb\clftsWidth3\clwWidth6253\clshdrawnil \cellx7973\row }\pard\plain \s15\ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 -\fs20\lang2057\langfe1033\cgrid\langnp2057\langfenp1033 {\insrsid10634874 Revision\cell 1\cell }\pard\plain \ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 \fs20\lang2057\langfe1033\cgrid\langnp2057\langfenp1033 { -\insrsid10634874 \trowd \irow3\irowband3\ts11\trgaph108\trleft42\trkeep\trftsWidth1\trpaddl108\trpaddr108\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrnone \clbrdrl\brdrs\brdrw15 \clbrdrb\brdrnone \clbrdrr\brdrnone -\cltxlrtb\clftsWidth3\clwWidth1678\clshdrawnil \cellx1720\clvertalt\clbrdrt\brdrnone \clbrdrl\brdrnone \clbrdrb\brdrnone \clbrdrr\brdrs\brdrw15 \cltxlrtb\clftsWidth3\clwWidth6253\clshdrawnil \cellx7973\row }\pard\plain -\s15\ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 \fs20\lang2057\langfe1033\cgrid\langnp2057\langfenp1033 {\insrsid10634874 Distribution\cell }{\insrsid10634874 Symbian Ltd.}{\insrsid10634874 \cell }\pard\plain -\ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 \fs20\lang2057\langfe1033\cgrid\langnp2057\langfenp1033 {\insrsid10634874 \trowd \irow4\irowband4 -\ts11\trgaph108\trleft42\trkeep\trftsWidth1\trpaddl108\trpaddr108\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrnone \clbrdrl\brdrs\brdrw15 \clbrdrb\brdrnone \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth1678\clshdrawnil \cellx1720\clvertalt\clbrdrt -\brdrnone \clbrdrl\brdrnone \clbrdrb\brdrnone \clbrdrr\brdrs\brdrw15 \cltxlrtb\clftsWidth3\clwWidth6253\clshdrawnil \cellx7973\row }\trowd \irow5\irowband5\lastrow \ts11\trgaph108\trleft42\trkeep\trftsWidth1\trpaddl108\trpaddr108\trpaddfl3\trpaddfr3 -\clvertalt\clbrdrt\brdrnone \clbrdrl\brdrs\brdrw15 \clbrdrb\brdrs\brdrw15 \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth1678\clshdrawnil \cellx1720\clvertalt\clbrdrt\brdrnone \clbrdrl\brdrnone \clbrdrb\brdrs\brdrw15 \clbrdrr\brdrs\brdrw15 -\cltxlrtb\clftsWidth3\clwWidth6253\clshdrawnil \cellx7973\pard\plain \s15\ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 \fs20\lang2057\langfe1033\cgrid\langnp2057\langfenp1033 {\insrsid10634874 File\cell }{ -\lang1024\langfe1024\noproof\insrsid10634874 \\\\Sentinel-main\\src_era\\bitgdi\\}{\insrsid10634874 dspec\\ColourSpec.doc\cell }\pard\plain \ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 -\fs20\lang2057\langfe1033\cgrid\langnp2057\langfenp1033 {\insrsid10634874 \trowd \irow5\irowband5\lastrow \ts11\trgaph108\trleft42\trkeep\trftsWidth1\trpaddl108\trpaddr108\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrnone \clbrdrl\brdrs\brdrw15 \clbrdrb -\brdrs\brdrw15 \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth1678\clshdrawnil \cellx1720\clvertalt\clbrdrt\brdrnone \clbrdrl\brdrnone \clbrdrb\brdrs\brdrw15 \clbrdrr\brdrs\brdrw15 \cltxlrtb\clftsWidth3\clwWidth6253\clshdrawnil \cellx7973\row -}\pard\plain \s1\ql \li0\ri0\sb480\sa200\keepn\widctlpar\faauto\outlinelevel0\adjustright\rin0\lin0\itap0 \b\f1\fs28\lang2057\langfe1033\kerning28\cgrid\langnp2057\langfenp1033 {\insrsid10634874 {\*\bkmkstart _Toc492189372}Contents -{\*\bkmkend _Toc492189372} -\par }\pard\plain \s19\ql \li0\ri0\widctlpar\tqr\tldot\tx8640\faauto\adjustright\rin0\lin0\itap0 \fs20\lang2057\langfe1033\cgrid\langnp2057\langfenp1033 {\field\fldedit{\*\fldinst {\insrsid10634874 TOC \\o "1-3" }}{\fldrslt { -\lang1024\langfe1024\noproof\insrsid10634874 Colour Requirements/Functional specification\tab }{\field{\*\fldinst {\lang1024\langfe1024\noproof\insrsid10634874 GOTOBUTTON _Toc492189371 }{\field{\*\fldinst {\lang1024\langfe1024\noproof\insrsid10634874 - PAGEREF _Toc492189371 }}{\fldrslt {\lang1024\langfe1024\noproof\insrsid10634874 1}}}}}{\lang1024\langfe1024\noproof\insrsid10634874 -\par Contents\tab }{\field{\*\fldinst {\lang1024\langfe1024\noproof\insrsid10634874 GOTOBUTTON _Toc492189372 }{\field{\*\fldinst {\lang1024\langfe1024\noproof\insrsid10634874 PAGEREF _Toc492189372 }}{\fldrslt {\lang1024\langfe1024\noproof\insrsid10634874 1} -}}}}{\lang1024\langfe1024\noproof\insrsid10634874 -\par Document history\tab }{\field{\*\fldinst {\lang1024\langfe1024\noproof\insrsid10634874 GOTOBUTTON _Toc492189373 }{\field{\*\fldinst {\lang1024\langfe1024\noproof\insrsid10634874 PAGEREF _Toc492189373 }}{\fldrslt { -\lang1024\langfe1024\noproof\insrsid10634874 1}}}}}{\lang1024\langfe1024\noproof\insrsid10634874 -\par Glossary\tab }{\field{\*\fldinst {\lang1024\langfe1024\noproof\insrsid10634874 GOTOBUTTON _Toc492189374 }{\field{\*\fldinst {\lang1024\langfe1024\noproof\insrsid10634874 PAGEREF _Toc492189374 }}{\fldrslt {\lang1024\langfe1024\noproof\insrsid10634874 1} -}}}}{\lang1024\langfe1024\noproof\insrsid10634874 -\par Introduction\tab }{\field{\*\fldinst {\lang1024\langfe1024\noproof\insrsid10634874 GOTOBUTTON _Toc492189375 }{\field{\*\fldinst {\lang1024\langfe1024\noproof\insrsid10634874 PAGEREF _Toc492189375 }}{\fldrslt { -\lang1024\langfe1024\noproof\insrsid10634874 3}}}}}{\lang1024\langfe1024\noproof\insrsid10634874 -\par Requirements\tab }{\field{\*\fldinst {\lang1024\langfe1024\noproof\insrsid10634874 GOTOBUTTON _Toc492189376 }{\field{\*\fldinst {\lang1024\langfe1024\noproof\insrsid10634874 PAGEREF _Toc492189376 }}{\fldrslt { -\lang1024\langfe1024\noproof\insrsid10634874 3}}}}}{\lang1024\langfe1024\noproof\insrsid10634874 -\par Functional spec\tab }{\field{\*\fldinst {\lang1024\langfe1024\noproof\insrsid10634874 GOTOBUTTON _Toc492189377 }{\field{\*\fldinst {\lang1024\langfe1024\noproof\insrsid10634874 PAGEREF _Toc492189377 }}{\fldrslt { -\lang1024\langfe1024\noproof\insrsid10634874 3}}}}}{\lang1024\langfe1024\noproof\insrsid10634874 -\par Timescale estimates\tab }{\field{\*\fldinst {\lang1024\langfe1024\noproof\insrsid10634874 GOTOBUTTON _Toc492189378 }{\field{\*\fldinst {\lang1024\langfe1024\noproof\insrsid10634874 PAGEREF _Toc492189378 }}{\fldrslt { -\lang1024\langfe1024\noproof\insrsid10634874 3}}}}}{\lang1024\langfe1024\noproof\insrsid10634874 -\par Omissions\tab }{\field{\*\fldinst {\lang1024\langfe1024\noproof\insrsid10634874 GOTOBUTTON _Toc492189379 }{\field{\*\fldinst {\lang1024\langfe1024\noproof\insrsid10634874 PAGEREF _Toc492189379 }}{\fldrslt {\lang1024\langfe1024\noproof\insrsid10634874 4 -}}}}}{\lang1024\langfe1024\noproof\insrsid10634874 -\par Discussion\tab }{\field{\*\fldinst {\lang1024\langfe1024\noproof\insrsid10634874 GOTOBUTTON _Toc492189380 }{\field{\*\fldinst {\lang1024\langfe1024\noproof\insrsid10634874 PAGEREF _Toc492189380 }}{\fldrslt {\lang1024\langfe1024\noproof\insrsid10634874 -4}}}}}{\lang1024\langfe1024\noproof\insrsid10634874 -\par }}}\pard\plain \s19\ql \li0\ri0\widctlpar\tqr\tldot\tx8640\faauto\adjustright\rin0\lin0\itap0 \fs20\lang2057\langfe1033\cgrid\langnp2057\langfenp1033 {\insrsid10634874 -\par }\pard\plain \s1\ql \li0\ri0\sb480\sa200\keepn\widctlpar\faauto\outlinelevel0\adjustright\rin0\lin0\itap0 \b\f1\fs28\lang2057\langfe1033\kerning28\cgrid\langnp2057\langfenp1033 {\insrsid10634874 {\*\bkmkstart _Toc492189373}Document history -{\*\bkmkend _Toc492189373} -\par }\trowd \irow0\irowband0\ts11\trgaph108\trleft-108\trhdr\trbrdrt\brdrs\brdrw15\brdrcf1 \trbrdrl\brdrs\brdrw15\brdrcf1 \trbrdrb\brdrs\brdrw15\brdrcf1 \trbrdrr\brdrs\brdrw15\brdrcf1 \trbrdrh\brdrs\brdrw15\brdrcf1 \trbrdrv\brdrs\brdrw15\brdrcf1 -\trftsWidth1\trpaddl108\trpaddr108\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr\brdrs\brdrw15\brdrcf1 \clshdng10000\cltxlrtb\clftsWidth3\clwWidth1101\clshdngraw10000 -\cellx993\clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr\brdrs\brdrw15\brdrcf1 \clshdng10000\cltxlrtb\clftsWidth3\clwWidth1842\clshdngraw10000 \cellx2835\clvertalt\clbrdrt -\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr\brdrs\brdrw15\brdrcf1 \clshdng10000\cltxlrtb\clftsWidth3\clwWidth6096\clshdngraw10000 \cellx8931\pard\plain -\ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 \fs20\lang2057\langfe1033\cgrid\langnp2057\langfenp1033 {\insrsid10634874 Date\cell Revision Version\cell Description\cell }\pard -\ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 {\insrsid10634874 \trowd \irow0\irowband0\ts11\trgaph108\trleft-108\trhdr\trbrdrt\brdrs\brdrw15\brdrcf1 \trbrdrl\brdrs\brdrw15\brdrcf1 \trbrdrb\brdrs\brdrw15\brdrcf1 \trbrdrr -\brdrs\brdrw15\brdrcf1 \trbrdrh\brdrs\brdrw15\brdrcf1 \trbrdrv\brdrs\brdrw15\brdrcf1 \trftsWidth1\trpaddl108\trpaddr108\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr -\brdrs\brdrw15\brdrcf1 \clshdng10000\cltxlrtb\clftsWidth3\clwWidth1101\clshdngraw10000 \cellx993\clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr\brdrs\brdrw15\brdrcf1 -\clshdng10000\cltxlrtb\clftsWidth3\clwWidth1842\clshdngraw10000 \cellx2835\clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr\brdrs\brdrw15\brdrcf1 -\clshdng10000\cltxlrtb\clftsWidth3\clwWidth6096\clshdngraw10000 \cellx8931\row }\trowd \irow1\irowband1\ts11\trgaph108\trleft-108\trbrdrt\brdrs\brdrw15\brdrcf1 \trbrdrl\brdrs\brdrw15\brdrcf1 \trbrdrb\brdrs\brdrw15\brdrcf1 \trbrdrr\brdrs\brdrw15\brdrcf1 -\trbrdrh\brdrs\brdrw15\brdrcf1 \trbrdrv\brdrs\brdrw15\brdrcf1 \trftsWidth1\trpaddl108\trpaddr108\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr\brdrs\brdrw15\brdrcf1 -\cltxlrtb\clftsWidth3\clwWidth1101\clshdrawnil \cellx993\clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr\brdrs\brdrw15\brdrcf1 \cltxlrtb\clftsWidth3\clwWidth1842\clshdrawnil \cellx2835 -\clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr\brdrs\brdrw15\brdrcf1 \cltxlrtb\clftsWidth3\clwWidth6096\clshdrawnil \cellx8931\pard \ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 -{\insrsid10634874 8/12/97\cell 1\cell First version of document\cell }\pard \ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 {\insrsid10634874 \trowd \irow1\irowband1\ts11\trgaph108\trleft-108\trbrdrt\brdrs\brdrw15\brdrcf1 -\trbrdrl\brdrs\brdrw15\brdrcf1 \trbrdrb\brdrs\brdrw15\brdrcf1 \trbrdrr\brdrs\brdrw15\brdrcf1 \trbrdrh\brdrs\brdrw15\brdrcf1 \trbrdrv\brdrs\brdrw15\brdrcf1 \trftsWidth1\trpaddl108\trpaddr108\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 -\clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr\brdrs\brdrw15\brdrcf1 \cltxlrtb\clftsWidth3\clwWidth1101\clshdrawnil \cellx993\clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 -\clbrdrr\brdrs\brdrw15\brdrcf1 \cltxlrtb\clftsWidth3\clwWidth1842\clshdrawnil \cellx2835\clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr\brdrs\brdrw15\brdrcf1 -\cltxlrtb\clftsWidth3\clwWidth6096\clshdrawnil \cellx8931\row }\pard \ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 {\insrsid10634874 10/12/97\cell 1.1\cell Removed CONE references as no work should be necessary\cell }\pard -\ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 {\insrsid10634874 \trowd \irow2\irowband2\ts11\trgaph108\trleft-108\trbrdrt\brdrs\brdrw15\brdrcf1 \trbrdrl\brdrs\brdrw15\brdrcf1 \trbrdrb\brdrs\brdrw15\brdrcf1 \trbrdrr -\brdrs\brdrw15\brdrcf1 \trbrdrh\brdrs\brdrw15\brdrcf1 \trbrdrv\brdrs\brdrw15\brdrcf1 \trftsWidth1\trpaddl108\trpaddr108\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr -\brdrs\brdrw15\brdrcf1 \cltxlrtb\clftsWidth3\clwWidth1101\clshdrawnil \cellx993\clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr\brdrs\brdrw15\brdrcf1 -\cltxlrtb\clftsWidth3\clwWidth1842\clshdrawnil \cellx2835\clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr\brdrs\brdrw15\brdrcf1 \cltxlrtb\clftsWidth3\clwWidth6096\clshdrawnil \cellx8931\row -}\pard \ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 {\insrsid10634874 9/4/03\cell 1.2\cell 24 bpp unpacked video mode added \endash EColor16MU\cell }\pard \ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 { -\insrsid10634874 \trowd \irow3\irowband3\lastrow \ts11\trgaph108\trleft-108\trbrdrt\brdrs\brdrw15\brdrcf1 \trbrdrl\brdrs\brdrw15\brdrcf1 \trbrdrb\brdrs\brdrw15\brdrcf1 \trbrdrr\brdrs\brdrw15\brdrcf1 \trbrdrh\brdrs\brdrw15\brdrcf1 \trbrdrv -\brdrs\brdrw15\brdrcf1 \trftsWidth1\trpaddl108\trpaddr108\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr\brdrs\brdrw15\brdrcf1 -\cltxlrtb\clftsWidth3\clwWidth1101\clshdrawnil \cellx993\clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr\brdrs\brdrw15\brdrcf1 \cltxlrtb\clftsWidth3\clwWidth1842\clshdrawnil \cellx2835 -\clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr\brdrs\brdrw15\brdrcf1 \cltxlrtb\clftsWidth3\clwWidth6096\clshdrawnil \cellx8931\row }\pard\plain -\s1\ql \li0\ri0\sb480\sa200\keepn\widctlpar\faauto\outlinelevel0\adjustright\rin0\lin0\itap0 \b\f1\fs28\lang2057\langfe1033\kerning28\cgrid\langnp2057\langfenp1033 {\insrsid10634874 {\*\bkmkstart _Toc492189374}Glossary{\*\bkmkend _Toc492189374} -\par }\trowd \irow0\irowband0\ts11\trgaph108\trleft-108\trbrdrt\brdrs\brdrw15\brdrcf1 \trbrdrl\brdrs\brdrw15\brdrcf1 \trbrdrb\brdrs\brdrw15\brdrcf1 \trbrdrr\brdrs\brdrw15\brdrcf1 \trbrdrh\brdrs\brdrw15\brdrcf1 \trbrdrv\brdrs\brdrw15\brdrcf1 -\trftsWidth1\trpaddl108\trpaddr108\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr\brdrs\brdrw15\brdrcf1 \cltxlrtb\clftsWidth3\clwWidth1809\clshdrawnil \cellx1701 -\clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr\brdrs\brdrw15\brdrcf1 \cltxlrtb\clftsWidth3\clwWidth6946\clshdrawnil \cellx8647\pard\plain -\ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 \fs20\lang2057\langfe1033\cgrid\langnp2057\langfenp1033 {\insrsid10634874 BITGDI\cell The screen and bitmap specific graphics drawing component\cell }\pard -\ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 {\insrsid10634874 \trowd \irow0\irowband0\ts11\trgaph108\trleft-108\trbrdrt\brdrs\brdrw15\brdrcf1 \trbrdrl\brdrs\brdrw15\brdrcf1 \trbrdrb\brdrs\brdrw15\brdrcf1 \trbrdrr -\brdrs\brdrw15\brdrcf1 \trbrdrh\brdrs\brdrw15\brdrcf1 \trbrdrv\brdrs\brdrw15\brdrcf1 \trftsWidth1\trpaddl108\trpaddr108\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr -\brdrs\brdrw15\brdrcf1 \cltxlrtb\clftsWidth3\clwWidth1809\clshdrawnil \cellx1701\clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr\brdrs\brdrw15\brdrcf1 -\cltxlrtb\clftsWidth3\clwWidth6946\clshdrawnil \cellx8647\row }\pard \ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 {\insrsid10634874 BMCONV\cell Program for converting bitmaps between }{\insrsid10634874 Symbian}{\insrsid10634874 - and Windows formats\cell }\pard \ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 {\insrsid10634874 \trowd \irow1\irowband1\ts11\trgaph108\trleft-108\trbrdrt\brdrs\brdrw15\brdrcf1 \trbrdrl\brdrs\brdrw15\brdrcf1 \trbrdrb -\brdrs\brdrw15\brdrcf1 \trbrdrr\brdrs\brdrw15\brdrcf1 \trbrdrh\brdrs\brdrw15\brdrcf1 \trbrdrv\brdrs\brdrw15\brdrcf1 \trftsWidth1\trpaddl108\trpaddr108\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb -\brdrs\brdrw15\brdrcf1 \clbrdrr\brdrs\brdrw15\brdrcf1 \cltxlrtb\clftsWidth3\clwWidth1809\clshdrawnil \cellx1701\clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr\brdrs\brdrw15\brdrcf1 -\cltxlrtb\clftsWidth3\clwWidth6946\clshdrawnil \cellx8647\row }\pard \ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 {\insrsid10634874 CRT\cell Cathode Ray Tube - TV style computer monitor\cell }\pard -\ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 {\insrsid10634874 \trowd \irow2\irowband2\ts11\trgaph108\trleft-108\trbrdrt\brdrs\brdrw15\brdrcf1 \trbrdrl\brdrs\brdrw15\brdrcf1 \trbrdrb\brdrs\brdrw15\brdrcf1 \trbrdrr -\brdrs\brdrw15\brdrcf1 \trbrdrh\brdrs\brdrw15\brdrcf1 \trbrdrv\brdrs\brdrw15\brdrcf1 \trftsWidth1\trpaddl108\trpaddr108\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr -\brdrs\brdrw15\brdrcf1 \cltxlrtb\clftsWidth3\clwWidth1809\clshdrawnil \cellx1701\clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr\brdrs\brdrw15\brdrcf1 -\cltxlrtb\clftsWidth3\clwWidth6946\clshdrawnil \cellx8647\row }\pard \ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 {\insrsid10634874 Ecolor16\cell }{\insrsid10634874 Symbian}{\insrsid10634874 - display mode using a 4 bit index into a colour palette\cell }\pard \ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 {\insrsid10634874 \trowd \irow3\irowband3\ts11\trgaph108\trleft-108\trbrdrt\brdrs\brdrw15\brdrcf1 \trbrdrl -\brdrs\brdrw15\brdrcf1 \trbrdrb\brdrs\brdrw15\brdrcf1 \trbrdrr\brdrs\brdrw15\brdrcf1 \trbrdrh\brdrs\brdrw15\brdrcf1 \trbrdrv\brdrs\brdrw15\brdrcf1 \trftsWidth1\trpaddl108\trpaddr108\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl -\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr\brdrs\brdrw15\brdrcf1 \cltxlrtb\clftsWidth3\clwWidth1809\clshdrawnil \cellx1701\clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr -\brdrs\brdrw15\brdrcf1 \cltxlrtb\clftsWidth3\clwWidth6946\clshdrawnil \cellx8647\row }\pard \ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 {\insrsid10634874 Ecolor256\cell }{\insrsid10634874 Symbian}{\insrsid10634874 - display mode using an 8 bit index into a colour palette\cell }\pard \ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 {\insrsid10634874 \trowd \irow4\irowband4\ts11\trgaph108\trleft-108\trbrdrt\brdrs\brdrw15\brdrcf1 \trbrdrl -\brdrs\brdrw15\brdrcf1 \trbrdrb\brdrs\brdrw15\brdrcf1 \trbrdrr\brdrs\brdrw15\brdrcf1 \trbrdrh\brdrs\brdrw15\brdrcf1 \trbrdrv\brdrs\brdrw15\brdrcf1 \trftsWidth1\trpaddl108\trpaddr108\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl -\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr\brdrs\brdrw15\brdrcf1 \cltxlrtb\clftsWidth3\clwWidth1809\clshdrawnil \cellx1701\clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr -\brdrs\brdrw15\brdrcf1 \cltxlrtb\clftsWidth3\clwWidth6946\clshdrawnil \cellx8647\row }\pard \ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 {\insrsid10634874 Ecolor64K\cell }{\insrsid10634874 Symbian}{\insrsid10634874 - display mode using 16 bits to represent an RGB value (5,6,5)\cell }\pard \ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 {\insrsid10634874 \trowd \irow5\irowband5\ts11\trgaph108\trleft-108\trbrdrt\brdrs\brdrw15\brdrcf1 \trbrdrl -\brdrs\brdrw15\brdrcf1 \trbrdrb\brdrs\brdrw15\brdrcf1 \trbrdrr\brdrs\brdrw15\brdrcf1 \trbrdrh\brdrs\brdrw15\brdrcf1 \trbrdrv\brdrs\brdrw15\brdrcf1 \trftsWidth1\trpaddl108\trpaddr108\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl -\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr\brdrs\brdrw15\brdrcf1 \cltxlrtb\clftsWidth3\clwWidth1809\clshdrawnil \cellx1701\clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr -\brdrs\brdrw15\brdrcf1 \cltxlrtb\clftsWidth3\clwWidth6946\clshdrawnil \cellx8647\row }\pard \ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 {\insrsid10634874 Ecolor16M\cell }{\insrsid10634874 Symbian}{\insrsid10634874 - display mode using 24 bits to exactly represent an RGB value (8,8,8)\cell }\pard \ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 {\insrsid10634874 \trowd \irow6\irowband6\ts11\trgaph108\trleft-108\trbrdrt\brdrs\brdrw15\brdrcf1 -\trbrdrl\brdrs\brdrw15\brdrcf1 \trbrdrb\brdrs\brdrw15\brdrcf1 \trbrdrr\brdrs\brdrw15\brdrcf1 \trbrdrh\brdrs\brdrw15\brdrcf1 \trbrdrv\brdrs\brdrw15\brdrcf1 \trftsWidth1\trpaddl108\trpaddr108\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 -\clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr\brdrs\brdrw15\brdrcf1 \cltxlrtb\clftsWidth3\clwWidth1809\clshdrawnil \cellx1701\clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 -\clbrdrr\brdrs\brdrw15\brdrcf1 \cltxlrtb\clftsWidth3\clwWidth6946\clshdrawnil \cellx8647\row }\pard \ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 {\insrsid10634874 Ecolor16MU\cell }{\insrsid10634874 Symbian}{\insrsid10634874 - display mode using 24 bits to exactly represent an RGB value (8,8,8). 32 memory bits are occupied.\cell }\pard \ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 {\insrsid10634874 \trowd \irow7\irowband7\ts11\trgaph108\trleft-108 -\trbrdrt\brdrs\brdrw15\brdrcf1 \trbrdrl\brdrs\brdrw15\brdrcf1 \trbrdrb\brdrs\brdrw15\brdrcf1 \trbrdrr\brdrs\brdrw15\brdrcf1 \trbrdrh\brdrs\brdrw15\brdrcf1 \trbrdrv\brdrs\brdrw15\brdrcf1 \trftsWidth1\trpaddl108\trpaddr108\trpaddfl3\trpaddfr3 \clvertalt -\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr\brdrs\brdrw15\brdrcf1 \cltxlrtb\clftsWidth3\clwWidth1809\clshdrawnil \cellx1701\clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 -\clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr\brdrs\brdrw15\brdrcf1 \cltxlrtb\clftsWidth3\clwWidth6946\clshdrawnil \cellx8647\row }\pard \ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 {\insrsid10634874 Egray256\cell }{\insrsid10634874 Symbian}{ -\insrsid10634874 display mode using 8 bits to represent a grey value (0-black, 255-white)\cell }\pard \ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 {\insrsid10634874 \trowd \irow8\irowband8\ts11\trgaph108\trleft-108\trbrdrt -\brdrs\brdrw15\brdrcf1 \trbrdrl\brdrs\brdrw15\brdrcf1 \trbrdrb\brdrs\brdrw15\brdrcf1 \trbrdrr\brdrs\brdrw15\brdrcf1 \trbrdrh\brdrs\brdrw15\brdrcf1 \trbrdrv\brdrs\brdrw15\brdrcf1 \trftsWidth1\trpaddl108\trpaddr108\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt -\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr\brdrs\brdrw15\brdrcf1 \cltxlrtb\clftsWidth3\clwWidth1809\clshdrawnil \cellx1701\clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb -\brdrs\brdrw15\brdrcf1 \clbrdrr\brdrs\brdrw15\brdrcf1 \cltxlrtb\clftsWidth3\clwWidth6946\clshdrawnil \cellx8647\row }\pard \ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 {\insrsid10634874 EIKON\cell Policy-dependent graphical controls component -\cell }\pard \ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 {\insrsid10634874 \trowd \irow9\irowband9\ts11\trgaph108\trleft-108\trbrdrt\brdrs\brdrw15\brdrcf1 \trbrdrl\brdrs\brdrw15\brdrcf1 \trbrdrb\brdrs\brdrw15\brdrcf1 \trbrdrr -\brdrs\brdrw15\brdrcf1 \trbrdrh\brdrs\brdrw15\brdrcf1 \trbrdrv\brdrs\brdrw15\brdrcf1 \trftsWidth1\trpaddl108\trpaddr108\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr -\brdrs\brdrw15\brdrcf1 \cltxlrtb\clftsWidth3\clwWidth1809\clshdrawnil \cellx1701\clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr\brdrs\brdrw15\brdrcf1 -\cltxlrtb\clftsWidth3\clwWidth6946\clshdrawnil \cellx8647\row }\pard \ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 {\insrsid10634874 FBSERV\cell Font and Bitmap server - handles loading and storing bitmaps and fonts\cell }\pard -\ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 {\insrsid10634874 \trowd \irow10\irowband10\ts11\trgaph108\trleft-108\trbrdrt\brdrs\brdrw15\brdrcf1 \trbrdrl\brdrs\brdrw15\brdrcf1 \trbrdrb\brdrs\brdrw15\brdrcf1 \trbrdrr -\brdrs\brdrw15\brdrcf1 \trbrdrh\brdrs\brdrw15\brdrcf1 \trbrdrv\brdrs\brdrw15\brdrcf1 \trftsWidth1\trpaddl108\trpaddr108\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr -\brdrs\brdrw15\brdrcf1 \cltxlrtb\clftsWidth3\clwWidth1809\clshdrawnil \cellx1701\clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr\brdrs\brdrw15\brdrcf1 -\cltxlrtb\clftsWidth3\clwWidth6946\clshdrawnil \cellx8647\row }\pard \ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 {\insrsid10634874 FORM\cell Text formatting component\cell }\pard -\ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 {\insrsid10634874 \trowd \irow11\irowband11\ts11\trgaph108\trleft-108\trbrdrt\brdrs\brdrw15\brdrcf1 \trbrdrl\brdrs\brdrw15\brdrcf1 \trbrdrb\brdrs\brdrw15\brdrcf1 \trbrdrr -\brdrs\brdrw15\brdrcf1 \trbrdrh\brdrs\brdrw15\brdrcf1 \trbrdrv\brdrs\brdrw15\brdrcf1 \trftsWidth1\trpaddl108\trpaddr108\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr -\brdrs\brdrw15\brdrcf1 \cltxlrtb\clftsWidth3\clwWidth1809\clshdrawnil \cellx1701\clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr\brdrs\brdrw15\brdrcf1 -\cltxlrtb\clftsWidth3\clwWidth6946\clshdrawnil \cellx8647\row }\pard \ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 {\insrsid10634874 Gamma correction\cell A scheme to compensate for a display\rquote s non-linear voltage to intensity ratio -\cell }\pard \ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 {\insrsid10634874 \trowd \irow12\irowband12\ts11\trgaph108\trleft-108\trbrdrt\brdrs\brdrw15\brdrcf1 \trbrdrl\brdrs\brdrw15\brdrcf1 \trbrdrb\brdrs\brdrw15\brdrcf1 -\trbrdrr\brdrs\brdrw15\brdrcf1 \trbrdrh\brdrs\brdrw15\brdrcf1 \trbrdrv\brdrs\brdrw15\brdrcf1 \trftsWidth1\trpaddl108\trpaddr108\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 -\clbrdrr\brdrs\brdrw15\brdrcf1 \cltxlrtb\clftsWidth3\clwWidth1809\clshdrawnil \cellx1701\clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr\brdrs\brdrw15\brdrcf1 -\cltxlrtb\clftsWidth3\clwWidth6946\clshdrawnil \cellx8647\row }\pard \ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 {\insrsid10634874 GDI\cell The common abstract graphics classes component\cell }\pard -\ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 {\insrsid10634874 \trowd \irow13\irowband13\ts11\trgaph108\trleft-108\trbrdrt\brdrs\brdrw15\brdrcf1 \trbrdrl\brdrs\brdrw15\brdrcf1 \trbrdrb\brdrs\brdrw15\brdrcf1 \trbrdrr -\brdrs\brdrw15\brdrcf1 \trbrdrh\brdrs\brdrw15\brdrcf1 \trbrdrv\brdrs\brdrw15\brdrcf1 \trftsWidth1\trpaddl108\trpaddr108\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr -\brdrs\brdrw15\brdrcf1 \cltxlrtb\clftsWidth3\clwWidth1809\clshdrawnil \cellx1701\clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr\brdrs\brdrw15\brdrcf1 -\cltxlrtb\clftsWidth3\clwWidth6946\clshdrawnil \cellx8647\row }\pard \ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 {\insrsid10634874 High-colour\cell Common display mode using 15/16 bits to represent an RGB value (5,5,5/5,6,5)\cell }\pard -\ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 {\insrsid10634874 \trowd \irow14\irowband14\ts11\trgaph108\trleft-108\trbrdrt\brdrs\brdrw15\brdrcf1 \trbrdrl\brdrs\brdrw15\brdrcf1 \trbrdrb\brdrs\brdrw15\brdrcf1 \trbrdrr -\brdrs\brdrw15\brdrcf1 \trbrdrh\brdrs\brdrw15\brdrcf1 \trbrdrv\brdrs\brdrw15\brdrcf1 \trftsWidth1\trpaddl108\trpaddr108\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr -\brdrs\brdrw15\brdrcf1 \cltxlrtb\clftsWidth3\clwWidth1809\clshdrawnil \cellx1701\clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr\brdrs\brdrw15\brdrcf1 -\cltxlrtb\clftsWidth3\clwWidth6946\clshdrawnil \cellx8647\row }\pard \ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 {\insrsid10634874 LCD\cell Liquid Crystal Display - Laptop style computer monitor\cell }\pard -\ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 {\insrsid10634874 \trowd \irow15\irowband15\ts11\trgaph108\trleft-108\trbrdrt\brdrs\brdrw15\brdrcf1 \trbrdrl\brdrs\brdrw15\brdrcf1 \trbrdrb\brdrs\brdrw15\brdrcf1 \trbrdrr -\brdrs\brdrw15\brdrcf1 \trbrdrh\brdrs\brdrw15\brdrcf1 \trbrdrv\brdrs\brdrw15\brdrcf1 \trftsWidth1\trpaddl108\trpaddr108\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr -\brdrs\brdrw15\brdrcf1 \cltxlrtb\clftsWidth3\clwWidth1809\clshdrawnil \cellx1701\clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr\brdrs\brdrw15\brdrcf1 -\cltxlrtb\clftsWidth3\clwWidth6946\clshdrawnil \cellx8647\row }\pard \ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 {\insrsid10634874 Netscape\cell A popular Web browser\cell }\pard -\ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 {\insrsid10634874 \trowd \irow16\irowband16\ts11\trgaph108\trleft-108\trbrdrt\brdrs\brdrw15\brdrcf1 \trbrdrl\brdrs\brdrw15\brdrcf1 \trbrdrb\brdrs\brdrw15\brdrcf1 \trbrdrr -\brdrs\brdrw15\brdrcf1 \trbrdrh\brdrs\brdrw15\brdrcf1 \trbrdrv\brdrs\brdrw15\brdrcf1 \trftsWidth1\trpaddl108\trpaddr108\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr -\brdrs\brdrw15\brdrcf1 \cltxlrtb\clftsWidth3\clwWidth1809\clshdrawnil \cellx1701\clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr\brdrs\brdrw15\brdrcf1 -\cltxlrtb\clftsWidth3\clwWidth6946\clshdrawnil \cellx8647\row }\pard \ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 {\insrsid10634874 NextStep\cell A Unix-based operating system\cell }\pard -\ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 {\insrsid10634874 \trowd \irow17\irowband17\ts11\trgaph108\trleft-108\trbrdrt\brdrs\brdrw15\brdrcf1 \trbrdrl\brdrs\brdrw15\brdrcf1 \trbrdrb\brdrs\brdrw15\brdrcf1 \trbrdrr -\brdrs\brdrw15\brdrcf1 \trbrdrh\brdrs\brdrw15\brdrcf1 \trbrdrv\brdrs\brdrw15\brdrcf1 \trftsWidth1\trpaddl108\trpaddr108\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr -\brdrs\brdrw15\brdrcf1 \cltxlrtb\clftsWidth3\clwWidth1809\clshdrawnil \cellx1701\clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr\brdrs\brdrw15\brdrcf1 -\cltxlrtb\clftsWidth3\clwWidth6946\clshdrawnil \cellx8647\row }\pard \ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 {\insrsid10634874 RGB\cell Three byte value specifying components of a colour (Red, Green & Blue)\cell }\pard -\ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 {\insrsid10634874 \trowd \irow18\irowband18\ts11\trgaph108\trleft-108\trbrdrt\brdrs\brdrw15\brdrcf1 \trbrdrl\brdrs\brdrw15\brdrcf1 \trbrdrb\brdrs\brdrw15\brdrcf1 \trbrdrr -\brdrs\brdrw15\brdrcf1 \trbrdrh\brdrs\brdrw15\brdrcf1 \trbrdrv\brdrs\brdrw15\brdrcf1 \trftsWidth1\trpaddl108\trpaddr108\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr -\brdrs\brdrw15\brdrcf1 \cltxlrtb\clftsWidth3\clwWidth1809\clshdrawnil \cellx1701\clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr\brdrs\brdrw15\brdrcf1 -\cltxlrtb\clftsWidth3\clwWidth6946\clshdrawnil \cellx8647\row }\pard \ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 {\insrsid10634874 TRgb\cell }{\insrsid10634874 Symbian}{\insrsid10634874 class representing an RGB value\cell }\pard -\ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 {\insrsid10634874 \trowd \irow19\irowband19\ts11\trgaph108\trleft-108\trbrdrt\brdrs\brdrw15\brdrcf1 \trbrdrl\brdrs\brdrw15\brdrcf1 \trbrdrb\brdrs\brdrw15\brdrcf1 \trbrdrr -\brdrs\brdrw15\brdrcf1 \trbrdrh\brdrs\brdrw15\brdrcf1 \trbrdrv\brdrs\brdrw15\brdrcf1 \trftsWidth1\trpaddl108\trpaddr108\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr -\brdrs\brdrw15\brdrcf1 \cltxlrtb\clftsWidth3\clwWidth1809\clshdrawnil \cellx1701\clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr\brdrs\brdrw15\brdrcf1 -\cltxlrtb\clftsWidth3\clwWidth6946\clshdrawnil \cellx8647\row }\pard \ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 {\insrsid10634874 True-colour\cell Common display mode using 24 bits to represent an RGB value (8,8,8)\cell }\pard -\ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 {\insrsid10634874 \trowd \irow20\irowband20\ts11\trgaph108\trleft-108\trbrdrt\brdrs\brdrw15\brdrcf1 \trbrdrl\brdrs\brdrw15\brdrcf1 \trbrdrb\brdrs\brdrw15\brdrcf1 \trbrdrr -\brdrs\brdrw15\brdrcf1 \trbrdrh\brdrs\brdrw15\brdrcf1 \trbrdrv\brdrs\brdrw15\brdrcf1 \trftsWidth1\trpaddl108\trpaddr108\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr -\brdrs\brdrw15\brdrcf1 \cltxlrtb\clftsWidth3\clwWidth1809\clshdrawnil \cellx1701\clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr\brdrs\brdrw15\brdrcf1 -\cltxlrtb\clftsWidth3\clwWidth6946\clshdrawnil \cellx8647\row }\pard \ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 {\insrsid10634874 WSERV\cell Window server - handles multiple application UI events\cell }\pard -\ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 {\insrsid10634874 \trowd \irow21\irowband21\lastrow \ts11\trgaph108\trleft-108\trbrdrt\brdrs\brdrw15\brdrcf1 \trbrdrl\brdrs\brdrw15\brdrcf1 \trbrdrb\brdrs\brdrw15\brdrcf1 \trbrdrr -\brdrs\brdrw15\brdrcf1 \trbrdrh\brdrs\brdrw15\brdrcf1 \trbrdrv\brdrs\brdrw15\brdrcf1 \trftsWidth1\trpaddl108\trpaddr108\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr -\brdrs\brdrw15\brdrcf1 \cltxlrtb\clftsWidth3\clwWidth1809\clshdrawnil \cellx1701\clvertalt\clbrdrt\brdrs\brdrw15\brdrcf1 \clbrdrl\brdrs\brdrw15\brdrcf1 \clbrdrb\brdrs\brdrw15\brdrcf1 \clbrdrr\brdrs\brdrw15\brdrcf1 -\cltxlrtb\clftsWidth3\clwWidth6946\clshdrawnil \cellx8647\row }\pard\plain \s1\ql \li0\ri0\sb480\sa200\keepn\widctlpar\faauto\outlinelevel0\adjustright\rin0\lin0\itap0 \b\f1\fs28\lang2057\langfe1033\kerning28\cgrid\langnp2057\langfenp1033 { -\insrsid10634874 {\*\bkmkstart _Toc492189375}Introduction{\*\bkmkend _Toc492189375} -\par }\pard\plain \ql \li0\ri0\widctlpar\faauto\adjustright\rin0\lin0\itap0 \fs20\lang2057\langfe1033\cgrid\langnp2057\langfenp1033 {\insrsid10634874 -The aim of this project is to provide EPOC32 support for colour display devices. This requires work at a number of levels - from supporting colour bitmaps through to \'93colouring\'94 - the built-in applications. Whilst most interfaces support the notion of a full-colour \'93RGB\'94 - value, currently there is no code for displaying anything other than four and sixteen shades of grey (including black & white). This project aims to implement colour support in such a way as to be transparent to applications and EPOC32 com -ponents not directly involved in the project. -\par }\pard\plain \s1\ql \li0\ri0\sb480\sa200\keepn\widctlpar\faauto\outlinelevel0\adjustright\rin0\lin0\itap0 \b\f1\fs28\lang2057\langfe1033\kerning28\cgrid\langnp2057\langfenp1033 {\insrsid10634874 {\*\bkmkstart _Toc492189376}Requirements -{\*\bkmkend _Toc492189376} -\par }\pard\plain \ql \li0\ri0\widctlpar\faauto\adjustright\rin0\lin0\itap0 \fs20\lang2057\langfe1033\cgrid\langnp2057\langfenp1033 {\insrsid10634874 -The primary requirement is to allow the user to specify the use of a particular colour, as described by a TRgb, and have that colour rendered on a machine\rquote s display device as closely as possible to the colour specified. -\par -\par A related requirement is to allow arrays of colours to be stored as bitmaps and displayed at a later date in the same manner. It should also be possible to import colour bitmaps from a PC. -\par -\par The policy-dependent layer of EPOC32 - EIKON - should use colour in its display of controls and allow the user to change those colours, storing the user\rquote s current \'93palette\'94 of control colours. -\par }\pard\plain \s1\ql \li0\ri0\sb480\sa200\keepn\widctlpar\faauto\outlinelevel0\adjustright\rin0\lin0\itap0 \b\f1\fs28\lang2057\langfe1033\kerning28\cgrid\langnp2057\langfenp1033 {\insrsid10634874 {\*\bkmkstart _Toc492189377}Functional spec -{\*\bkmkend _Toc492189377} -\par }\pard\plain \ql \li0\ri0\widctlpar\faauto\adjustright\rin0\lin0\itap0 \fs20\lang2057\langfe1033\cgrid\langnp2057\langfenp1033 {\insrsid10634874 Required functionality categorised by component: -\par -\par }{\b\insrsid10634874 GDI}{\insrsid10634874 - Provision of TRgb functions for handling EColor256, EColor64, EColor16M and EColor16MU display mode colours, based on fixed palettes, is desirable. -\par -\par }{\b\insrsid10634874 BMCONV}{\insrsid10634874 - Allow conversion between windows bitmaps and }{\insrsid10634874 Symbian}{\insrsid10634874 bitmaps in any of the available display modes and back again (the framework for this is already in place). -\par -\par }{\b\insrsid10634874 FBSERV}{\insrsid10634874 - Extend support for loading, saving and reading from bitmaps to include EColor16 and EColor256 modes. -\par -\par }{\b\insrsid10634874 BITGDI}{\insrsid10634874 - - Support for drawing to bitmaps (class CFbsBitmapDevice) in EColor16 and EColor256 modes. Support for drawing to screen (class CFbsScreenDevice) in EColor16 and EColor256 modes in the appropriate platform format (hardware-dependent screen device driver -s). EColor16 mode should use an EGA palette consisting of the three primary colours and the three secondary colours in full and half brightness along with four shades of grey (including black & white). -\par -\par }{\b\insrsid10634874 WSERV}{\insrsid10634874 - Allow clients to use CFbsScreenDevice objects of the appropriate mode for the hardware present. -\par -\par }{\b\insrsid10634874 FORM}{\insrsid10634874 - Support for colour usage in FORM classes. (This shouldn\rquote t require any extra work.) -\par -\par }{\b\insrsid10634874 EIKON}{\insrsid10634874 - Allow applications and users control over the colours used for drawing UI elements. -\par -\par }{\b\insrsid10634874 Applications}{\insrsid10634874 - Support for colour usage generally. -\par }\pard\plain \s1\ql \li0\ri0\sb480\sa200\keepn\widctlpar\faauto\outlinelevel0\adjustright\rin0\lin0\itap0 \b\f1\fs28\lang2057\langfe1033\kerning28\cgrid\langnp2057\langfenp1033 {\insrsid10634874 {\*\bkmkstart _Toc492189378}Timescale estimates -{\*\bkmkend _Toc492189378} -\par }\pard\plain \ql \li0\ri0\widctlpar\faauto\adjustright\rin0\lin0\itap0 \fs20\lang2057\langfe1033\cgrid\langnp2057\langfenp1033 {\insrsid10634874 Timescales estimated by component: -\par -\par }{\b\insrsid10634874 GDI}{\insrsid10634874 \tab \tab - \'bd week -\par -\par }{\b\insrsid10634874 BMCONV}{\insrsid10634874 \tab - \'bd week -\par -\par }{\b\insrsid10634874 FBSERV}{\insrsid10634874 \tab - 1\'bd weeks -\par -\par }{\b\insrsid10634874 BITGDI}{\insrsid10634874 \tab - 3 weeks -\par -\par }{\b\insrsid10634874 WSERV}{\insrsid10634874 \tab - 4 weeks -\par -\par }{\b\insrsid10634874 FORM}{\insrsid10634874 \tab \tab - \'bd week -\par -\par }{\b\insrsid10634874 EIKON}{\insrsid10634874 \tab \tab - 4 weeks -\par -\par }{\b\insrsid10634874 Applications}{\insrsid10634874 \tab - Beyond the scope of this project -\par -\par }{\b\insrsid10634874 Total}{\insrsid10634874 \tab \tab - 14 weeks -\par }\pard\plain \s1\ql \li0\ri0\sb480\sa200\keepn\widctlpar\faauto\outlinelevel0\adjustright\rin0\lin0\itap0 \b\f1\fs28\lang2057\langfe1033\kerning28\cgrid\langnp2057\langfenp1033 {\insrsid10634874 {\*\bkmkstart _Toc492189379}Omissions -{\*\bkmkend _Toc492189379} -\par }\pard\plain \ql \li0\ri0\widctlpar\faauto\adjustright\rin0\lin0\itap0 \fs20\lang2057\langfe1033\cgrid\langnp2057\langfenp1033 {\insrsid10634874 -Variable palettes. Commonly supported colour schemes offer variable palettes for 16 and 256 colour modes. This enables (at least for 256 colour systems) applications to approach a more realistic display of images imported from high- or true-colour syste -ms. This functionality is unnecessary at this time. -\par -\par Gamma correction. Given that our primary targets are hand-held devices with LCD, gamma correction would seem to be overkill as far as this project is concerned. It is really only appropriate for WYSIWYG CRTs and high-end laptop LCD displays. -\par -\par Dithering. There are many dithering schemes possible that can give some improvement on the colours available. They operate on a per-pixel basis and can slow drawing code down dramatically. As such they are not considered appropriate for this project. - -\par }\pard\plain \s1\ql \li0\ri0\sb480\sa200\keepn\widctlpar\faauto\outlinelevel0\adjustright\rin0\lin0\itap0 \b\f1\fs28\lang2057\langfe1033\kerning28\cgrid\langnp2057\langfenp1033 {\insrsid10634874 {\*\bkmkstart _Toc492189380}Discussion -{\*\bkmkend _Toc492189380} -\par }\pard\plain \ql \li0\ri0\widctlpar\faauto\adjustright\rin0\lin0\itap0 \fs20\lang2057\langfe1033\cgrid\langnp2057\langfenp1033 {\b\insrsid10634874 Schemes for colour implementation -\par }{\insrsid10634874 -\par Both 16 and 256 colour modes use a hardware palette. The main choice to be made for the low-level is whether this palette is fixed or variable. - To retain acceptable clarity of display EIKON would require a number of colours to be guaranteed present. This could be accomplished in one of two ways. Reserve a fraction of the palette entries for the system, or have the whole palette fixed. -\par -\par The fir -st choice gives the user more power to display imported pictures more accurately because they can find the n (where n is the number of non-system palette entries) most common colours in their picture and set the palette appropriately. This is generally o -f use to picture viewer programs, although some interesting effects can be produced by animating the palette (of interest to games programmers and the like). -\par The second choice simplifies the low-level colour support design and reduces the development time o -f such a system. Given the minuscule size of a 16 colour palette it would seem more appropriate to simply use the EGA colour palette anyway. This consists of the three primary and three secondary colours at full and half brightness along with black, whi -te and light & dark grey. -\par -\par As for 256 colours, the Netscape Web browser uses the \'93Netscape colour cube\'94 [http://the-light.com/colclick.html] on 256 colour systems to give a generally acceptable default palette with a good distribution of colours that will m -ake most pictures recognisable, if not photo quality. This consists of all combinations of component values increasing in steps of 51 from 0 to 255. This gives a 6x6x6 colour cube, i.e. 216 colours. The remaining spaces could be filled with more grey s -h -ades or possibly more green/lighter colours as the eye is more sensitive to these shades. To experience this with Netscape or Internet Explorer, set your PC display mode to 256 colours and surf the web. The 40 extra colours could be composed of 10 extra - -greys to make a total of 16 grey-shades (including black & white) and 10 extra each of the three primaries. This scheme works well because it uses the values 0x11, 0x22, 0x44, 0x55, 0x77, 0x88, 0xaa, 0xbb, 0xdd and 0x33 which complement the 6x6x6 values -of 0x00, 0x33, 0x66, 0x99, 0xcc, 0xff. Furthermore, if the palette is arranged properly then inverting a colour simply requires the inverting of its palette index. This is achieved by centring the colours in the palette. An example layout might be: - -\par -\par }\trowd \irow0\irowband0\ts11\trgaph107\trleft-107\trbrdrt\brdrs\brdrw15 \trbrdrl\brdrs\brdrw15 \trbrdrb\brdrs\brdrw15 \trbrdrr\brdrs\brdrw15 \trftsWidth1\trpaddl107\trpaddr107\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrs\brdrw15 \clbrdrl\brdrs\brdrw15 -\clbrdrb\brdrnone \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth6204\clshdrawnil \cellx6097\clvertalt\clbrdrt\brdrs\brdrw15 \clbrdrl\brdrnone \clbrdrb\brdrnone \clbrdrr\brdrs\brdrw15 \cltxlrtb\clftsWidth3\clwWidth1558\clshdrawnil \cellx7655\pard -\ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 {\insrsid10634874 Colour range\cell Colours in range\cell }\pard \ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 {\insrsid10634874 \trowd \irow0\irowband0 -\ts11\trgaph107\trleft-107\trbrdrt\brdrs\brdrw15 \trbrdrl\brdrs\brdrw15 \trbrdrb\brdrs\brdrw15 \trbrdrr\brdrs\brdrw15 \trftsWidth1\trpaddl107\trpaddr107\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrs\brdrw15 \clbrdrl\brdrs\brdrw15 \clbrdrb\brdrnone \clbrdrr -\brdrnone \cltxlrtb\clftsWidth3\clwWidth6204\clshdrawnil \cellx6097\clvertalt\clbrdrt\brdrs\brdrw15 \clbrdrl\brdrnone \clbrdrb\brdrnone \clbrdrr\brdrs\brdrw15 \cltxlrtb\clftsWidth3\clwWidth1558\clshdrawnil \cellx7655\row }\trowd \irow1\irowband1 -\ts11\trgaph107\trleft-107\trbrdrt\brdrs\brdrw15 \trbrdrl\brdrs\brdrw15 \trbrdrb\brdrs\brdrw15 \trbrdrr\brdrs\brdrw15 \trftsWidth1\trpaddl107\trpaddr107\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrnone \clbrdrl\brdrs\brdrw15 \clbrdrb\brdrnone \clbrdrr -\brdrnone \cltxlrtb\clftsWidth3\clwWidth6204\clshdrawnil \cellx6097\clvertalt\clbrdrt\brdrnone \clbrdrl\brdrnone \clbrdrb\brdrnone \clbrdrr\brdrs\brdrw15 \cltxlrtb\clftsWidth3\clwWidth1558\clshdrawnil \cellx7655\pard -\ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 {\insrsid10634874 Extra Grey 1 (0x11, 0x11, 0x11), \'85, Extra Grey 5 (0x77, 0x77, 0x77),\cell 5\cell }\pard \ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 { -\insrsid10634874 \trowd \irow1\irowband1\ts11\trgaph107\trleft-107\trbrdrt\brdrs\brdrw15 \trbrdrl\brdrs\brdrw15 \trbrdrb\brdrs\brdrw15 \trbrdrr\brdrs\brdrw15 \trftsWidth1\trpaddl107\trpaddr107\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrnone \clbrdrl -\brdrs\brdrw15 \clbrdrb\brdrnone \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth6204\clshdrawnil \cellx6097\clvertalt\clbrdrt\brdrnone \clbrdrl\brdrnone \clbrdrb\brdrnone \clbrdrr\brdrs\brdrw15 \cltxlrtb\clftsWidth3\clwWidth1558\clshdrawnil \cellx7655 -\row }\pard \ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 {\insrsid10634874 Extra Red 1 (0x11,0,0), \'85, Extra Red 5 (0x77,0,0),\cell 5\cell }\pard \ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 {\insrsid10634874 -\trowd \irow2\irowband2\ts11\trgaph107\trleft-107\trbrdrt\brdrs\brdrw15 \trbrdrl\brdrs\brdrw15 \trbrdrb\brdrs\brdrw15 \trbrdrr\brdrs\brdrw15 \trftsWidth1\trpaddl107\trpaddr107\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrnone \clbrdrl\brdrs\brdrw15 \clbrdrb -\brdrnone \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth6204\clshdrawnil \cellx6097\clvertalt\clbrdrt\brdrnone \clbrdrl\brdrnone \clbrdrb\brdrnone \clbrdrr\brdrs\brdrw15 \cltxlrtb\clftsWidth3\clwWidth1558\clshdrawnil \cellx7655\row }\pard -\ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 {\insrsid10634874 Extra Green 1 (0,0x11,0), \'85, Extra Green 5 (0,0x77,0),\cell 5\cell }\pard \ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 {\insrsid10634874 -\trowd \irow3\irowband3\ts11\trgaph107\trleft-107\trbrdrt\brdrs\brdrw15 \trbrdrl\brdrs\brdrw15 \trbrdrb\brdrs\brdrw15 \trbrdrr\brdrs\brdrw15 \trftsWidth1\trpaddl107\trpaddr107\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrnone \clbrdrl\brdrs\brdrw15 \clbrdrb -\brdrnone \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth6204\clshdrawnil \cellx6097\clvertalt\clbrdrt\brdrnone \clbrdrl\brdrnone \clbrdrb\brdrnone \clbrdrr\brdrs\brdrw15 \cltxlrtb\clftsWidth3\clwWidth1558\clshdrawnil \cellx7655\row }\pard -\ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 {\insrsid10634874 Extra Blue 1 (0,0,0x11), \'85, Extra Blue 5 (0,0,0x77),\cell 5\cell }\pard \ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 {\insrsid10634874 -\trowd \irow4\irowband4\ts11\trgaph107\trleft-107\trbrdrt\brdrs\brdrw15 \trbrdrl\brdrs\brdrw15 \trbrdrb\brdrs\brdrw15 \trbrdrr\brdrs\brdrw15 \trftsWidth1\trpaddl107\trpaddr107\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrnone \clbrdrl\brdrs\brdrw15 \clbrdrb -\brdrnone \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth6204\clshdrawnil \cellx6097\clvertalt\clbrdrt\brdrnone \clbrdrl\brdrnone \clbrdrb\brdrnone \clbrdrr\brdrs\brdrw15 \cltxlrtb\clftsWidth3\clwWidth1558\clshdrawnil \cellx7655\row }\pard -\ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 {\insrsid10634874 Netscape Colour Cube colour 0, \'85, Netscape Colour Cube colour 215\cell 216\cell }\pard \ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 { -\insrsid10634874 \trowd \irow5\irowband5\ts11\trgaph107\trleft-107\trbrdrt\brdrs\brdrw15 \trbrdrl\brdrs\brdrw15 \trbrdrb\brdrs\brdrw15 \trbrdrr\brdrs\brdrw15 \trftsWidth1\trpaddl107\trpaddr107\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrnone \clbrdrl -\brdrs\brdrw15 \clbrdrb\brdrnone \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth6204\clshdrawnil \cellx6097\clvertalt\clbrdrt\brdrnone \clbrdrl\brdrnone \clbrdrb\brdrnone \clbrdrr\brdrs\brdrw15 \cltxlrtb\clftsWidth3\clwWidth1558\clshdrawnil \cellx7655 -\row }\pard \ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 {\insrsid10634874 Extra Blue 6 (0,0,0x88), \'85, Extra Blue 10 (0,0,0xee),\cell 5\cell }\pard \ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 { -\insrsid10634874 \trowd \irow6\irowband6\ts11\trgaph107\trleft-107\trbrdrt\brdrs\brdrw15 \trbrdrl\brdrs\brdrw15 \trbrdrb\brdrs\brdrw15 \trbrdrr\brdrs\brdrw15 \trftsWidth1\trpaddl107\trpaddr107\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrnone \clbrdrl -\brdrs\brdrw15 \clbrdrb\brdrnone \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth6204\clshdrawnil \cellx6097\clvertalt\clbrdrt\brdrnone \clbrdrl\brdrnone \clbrdrb\brdrnone \clbrdrr\brdrs\brdrw15 \cltxlrtb\clftsWidth3\clwWidth1558\clshdrawnil \cellx7655 -\row }\pard \ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 {\insrsid10634874 Extra Green 6 (0,0x88,0), \'85, Extra Green 10 (0,0xee,0),\cell 5\cell }\pard \ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 { -\insrsid10634874 \trowd \irow7\irowband7\ts11\trgaph107\trleft-107\trbrdrt\brdrs\brdrw15 \trbrdrl\brdrs\brdrw15 \trbrdrb\brdrs\brdrw15 \trbrdrr\brdrs\brdrw15 \trftsWidth1\trpaddl107\trpaddr107\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrnone \clbrdrl -\brdrs\brdrw15 \clbrdrb\brdrnone \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth6204\clshdrawnil \cellx6097\clvertalt\clbrdrt\brdrnone \clbrdrl\brdrnone \clbrdrb\brdrnone \clbrdrr\brdrs\brdrw15 \cltxlrtb\clftsWidth3\clwWidth1558\clshdrawnil \cellx7655 -\row }\pard \ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 {\insrsid10634874 Extra Red 6 (0x88,0,0), \'85, Extra Red 10 (0xee,0,0),\cell 5\cell }\pard \ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 {\insrsid10634874 -\trowd \irow8\irowband8\ts11\trgaph107\trleft-107\trbrdrt\brdrs\brdrw15 \trbrdrl\brdrs\brdrw15 \trbrdrb\brdrs\brdrw15 \trbrdrr\brdrs\brdrw15 \trftsWidth1\trpaddl107\trpaddr107\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrnone \clbrdrl\brdrs\brdrw15 \clbrdrb -\brdrnone \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth6204\clshdrawnil \cellx6097\clvertalt\clbrdrt\brdrnone \clbrdrl\brdrnone \clbrdrb\brdrnone \clbrdrr\brdrs\brdrw15 \cltxlrtb\clftsWidth3\clwWidth1558\clshdrawnil \cellx7655\row }\pard -\ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 {\insrsid10634874 Extra Grey 6 (0x88,0x88,0x88), \'85, Extra Grey 10 (0xee,0xee,0xee),\cell 5\cell }\pard \ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 { -\insrsid10634874 \trowd \irow9\irowband9\ts11\trgaph107\trleft-107\trbrdrt\brdrs\brdrw15 \trbrdrl\brdrs\brdrw15 \trbrdrb\brdrs\brdrw15 \trbrdrr\brdrs\brdrw15 \trftsWidth1\trpaddl107\trpaddr107\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrnone \clbrdrl -\brdrs\brdrw15 \clbrdrb\brdrnone \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth6204\clshdrawnil \cellx6097\clvertalt\clbrdrt\brdrnone \clbrdrl\brdrnone \clbrdrb\brdrnone \clbrdrr\brdrs\brdrw15 \cltxlrtb\clftsWidth3\clwWidth1558\clshdrawnil \cellx7655 -\row }\trowd \irow10\irowband10\lastrow \ts11\trgaph107\trleft-107\trbrdrt\brdrs\brdrw15 \trbrdrl\brdrs\brdrw15 \trbrdrb\brdrs\brdrw15 \trbrdrr\brdrs\brdrw15 \trftsWidth1\trpaddl107\trpaddr107\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrnone \clbrdrl -\brdrs\brdrw15 \clbrdrb\brdrs\brdrw15 \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth6204\clshdrawnil \cellx6097\clvertalt\clbrdrt\brdrnone \clbrdrl\brdrnone \clbrdrb\brdrs\brdrw15 \clbrdrr\brdrs\brdrw15 \cltxlrtb\clftsWidth3\clwWidth1558\clshdrawnil -\cellx7655\pard \ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 {\insrsid10634874 Total\cell 256\cell }\pard \ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 {\insrsid10634874 \trowd \irow10\irowband10\lastrow -\ts11\trgaph107\trleft-107\trbrdrt\brdrs\brdrw15 \trbrdrl\brdrs\brdrw15 \trbrdrb\brdrs\brdrw15 \trbrdrr\brdrs\brdrw15 \trftsWidth1\trpaddl107\trpaddr107\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrnone \clbrdrl\brdrs\brdrw15 \clbrdrb\brdrs\brdrw15 \clbrdrr -\brdrnone \cltxlrtb\clftsWidth3\clwWidth6204\clshdrawnil \cellx6097\clvertalt\clbrdrt\brdrnone \clbrdrl\brdrnone \clbrdrb\brdrs\brdrw15 \clbrdrr\brdrs\brdrw15 \cltxlrtb\clftsWidth3\clwWidth1558\clshdrawnil \cellx7655\row }\pard -\ql \li0\ri0\widctlpar\faauto\adjustright\rin0\lin0\itap0 {\insrsid10634874 -\par -\par }{\b\insrsid10634874 Mapping an RGB value that exists in the palette to its colour palette index -\par }{\insrsid10634874 -\par With small palette sizes based on an algorithmic distribution such as the EColor16 and EColor256 palettes suggested above, it is possible to identify an RGB value as actually being in the palette. Identifying component values characteristic of entries in - the palette is very quick and of constant order with respect to palette size. An example of this would be looking for RGB entries that have components that are all multiples of 0x33, identifying it as a member of the Netscape Colour Cube.}{ -\b\insrsid10634874 -\par -\par Mapping an arbitrary RGB value to a colour palette index -\par }{\insrsid10634874 -\par The use of a palette in a system where the user has the ability to request any 24 bit RGB value requires a palette mapping scheme. This matches the requested RGB to the nearest available one in the palette. One -way to achieve this is to use a scheme such as the Colour Manager on Apple computers [http://devworld.apple.com/ngs/lpp/adrpub/docs/dev/techsupport/insidemac/AdvancedColor/AdvancedColor-393.html]. -\par -\par Create an inverse look-up table by generating a table of a -ll 9, 12 or 15 bit RGB values and calculate all the palette indexes for them. Then an RGB gets its components (R, G & B) truncated to 3, 4 or 5 bits and concatenated to form the table index and the matching palette index is used for that colour. 3 = poo -r - resolution (too poor), 4 = okay resolution (probably acceptable), 5 = good resolution (perhaps too much). 3 bits for each component (9 bit RGB values) needs an inverse look-up table of 512 bytes. 4 bits for each component (12 bit RGB values) needs a ta -ble of 4 Kbytes. 5 bits for each component (15 bit RGB values) needs a table of 32 Kbytes. -\par -\par E.g. for a 12 bit RGB inverse palette index lookup table -\par }\trowd \irow0\irowband0\ts11\trgaph107\trleft0\trbrdrt\brdrs\brdrw15 \trbrdrl\brdrs\brdrw15 \trbrdrb\brdrs\brdrw15 \trbrdrr\brdrs\brdrw15 \trftsWidth1\trpaddl107\trpaddr107\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrs\brdrw15 \clbrdrl\brdrs\brdrw15 -\clbrdrb\brdrnone \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth709\clshdrawnil \cellx709\clvertalt\clbrdrt\brdrs\brdrw15 \clbrdrl\brdrnone \clbrdrb\brdrnone \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth709\clshdrawnil \cellx1418\clvertalt\clbrdrt -\brdrs\brdrw15 \clbrdrl\brdrnone \clbrdrb\brdrnone \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth709\clshdrawnil \cellx2127\clvertalt\clbrdrt\brdrs\brdrw15 \clbrdrl\brdrnone \clbrdrb\brdrnone \clbrdrr\brdrs\brdrw15 -\cltxlrtb\clftsWidth3\clwWidth1274\clshdrawnil \cellx3401\pard \ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 {\insrsid10634874 Blue\cell Green\cell Red\cell Palette index\cell }\pard -\ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 {\insrsid10634874 \trowd \irow0\irowband0\ts11\trgaph107\trleft0\trbrdrt\brdrs\brdrw15 \trbrdrl\brdrs\brdrw15 \trbrdrb\brdrs\brdrw15 \trbrdrr\brdrs\brdrw15 -\trftsWidth1\trpaddl107\trpaddr107\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrs\brdrw15 \clbrdrl\brdrs\brdrw15 \clbrdrb\brdrnone \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth709\clshdrawnil \cellx709\clvertalt\clbrdrt\brdrs\brdrw15 \clbrdrl\brdrnone -\clbrdrb\brdrnone \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth709\clshdrawnil \cellx1418\clvertalt\clbrdrt\brdrs\brdrw15 \clbrdrl\brdrnone \clbrdrb\brdrnone \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth709\clshdrawnil \cellx2127\clvertalt\clbrdrt -\brdrs\brdrw15 \clbrdrl\brdrnone \clbrdrb\brdrnone \clbrdrr\brdrs\brdrw15 \cltxlrtb\clftsWidth3\clwWidth1274\clshdrawnil \cellx3401\row }\trowd \irow1\irowband1\ts11\trgaph107\trleft0\trbrdrt\brdrs\brdrw15 \trbrdrl\brdrs\brdrw15 \trbrdrb\brdrs\brdrw15 -\trbrdrr\brdrs\brdrw15 \trftsWidth1\trpaddl107\trpaddr107\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrnone \clbrdrl\brdrs\brdrw15 \clbrdrb\brdrnone \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth709\clshdrawnil \cellx709\clvertalt\clbrdrt\brdrnone -\clbrdrl\brdrnone \clbrdrb\brdrnone \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth709\clshdrawnil \cellx1418\clvertalt\clbrdrt\brdrnone \clbrdrl\brdrnone \clbrdrb\brdrnone \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth709\clshdrawnil \cellx2127 -\clvertalt\clbrdrt\brdrnone \clbrdrl\brdrnone \clbrdrb\brdrnone \clbrdrr\brdrs\brdrw15 \cltxlrtb\clftsWidth3\clwWidth1274\clshdrawnil \cellx3401\pard \ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 {\insrsid10634874 0x0\cell 0x0\cell 0x0\cell I} -{\sub\insrsid10634874 0}{\insrsid10634874 \cell }\pard \ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 {\insrsid10634874 \trowd \irow1\irowband1\ts11\trgaph107\trleft0\trbrdrt\brdrs\brdrw15 \trbrdrl\brdrs\brdrw15 \trbrdrb -\brdrs\brdrw15 \trbrdrr\brdrs\brdrw15 \trftsWidth1\trpaddl107\trpaddr107\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrnone \clbrdrl\brdrs\brdrw15 \clbrdrb\brdrnone \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth709\clshdrawnil \cellx709\clvertalt\clbrdrt -\brdrnone \clbrdrl\brdrnone \clbrdrb\brdrnone \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth709\clshdrawnil \cellx1418\clvertalt\clbrdrt\brdrnone \clbrdrl\brdrnone \clbrdrb\brdrnone \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth709\clshdrawnil -\cellx2127\clvertalt\clbrdrt\brdrnone \clbrdrl\brdrnone \clbrdrb\brdrnone \clbrdrr\brdrs\brdrw15 \cltxlrtb\clftsWidth3\clwWidth1274\clshdrawnil \cellx3401\row }\pard \ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 {\insrsid10634874 \'85\cell -\'85\cell \'85\cell I}{\sub\insrsid10634874 1}{\insrsid10634874 \'85 I}{\sub\insrsid10634874 14}{\insrsid10634874 \cell }\pard \ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 {\insrsid10634874 \trowd \irow2\irowband2 -\ts11\trgaph107\trleft0\trbrdrt\brdrs\brdrw15 \trbrdrl\brdrs\brdrw15 \trbrdrb\brdrs\brdrw15 \trbrdrr\brdrs\brdrw15 \trftsWidth1\trpaddl107\trpaddr107\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrnone \clbrdrl\brdrs\brdrw15 \clbrdrb\brdrnone \clbrdrr -\brdrnone \cltxlrtb\clftsWidth3\clwWidth709\clshdrawnil \cellx709\clvertalt\clbrdrt\brdrnone \clbrdrl\brdrnone \clbrdrb\brdrnone \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth709\clshdrawnil \cellx1418\clvertalt\clbrdrt\brdrnone \clbrdrl\brdrnone -\clbrdrb\brdrnone \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth709\clshdrawnil \cellx2127\clvertalt\clbrdrt\brdrnone \clbrdrl\brdrnone \clbrdrb\brdrnone \clbrdrr\brdrs\brdrw15 \cltxlrtb\clftsWidth3\clwWidth1274\clshdrawnil \cellx3401\row }\pard -\ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 {\insrsid10634874 0x0\cell 0x0\cell 0xf\cell I}{\sub\insrsid10634874 15}{\insrsid10634874 \cell }\pard \ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 {\insrsid10634874 -\trowd \irow3\irowband3\ts11\trgaph107\trleft0\trbrdrt\brdrs\brdrw15 \trbrdrl\brdrs\brdrw15 \trbrdrb\brdrs\brdrw15 \trbrdrr\brdrs\brdrw15 \trftsWidth1\trpaddl107\trpaddr107\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrnone \clbrdrl\brdrs\brdrw15 \clbrdrb -\brdrnone \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth709\clshdrawnil \cellx709\clvertalt\clbrdrt\brdrnone \clbrdrl\brdrnone \clbrdrb\brdrnone \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth709\clshdrawnil \cellx1418\clvertalt\clbrdrt\brdrnone -\clbrdrl\brdrnone \clbrdrb\brdrnone \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth709\clshdrawnil \cellx2127\clvertalt\clbrdrt\brdrnone \clbrdrl\brdrnone \clbrdrb\brdrnone \clbrdrr\brdrs\brdrw15 \cltxlrtb\clftsWidth3\clwWidth1274\clshdrawnil \cellx3401 -\row }\pard \ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 {\insrsid10634874 0x0\cell 0x1\cell 0x0\cell I}{\sub\insrsid10634874 16}{\insrsid10634874 \cell }\pard \ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 { -\insrsid10634874 \trowd \irow4\irowband4\ts11\trgaph107\trleft0\trbrdrt\brdrs\brdrw15 \trbrdrl\brdrs\brdrw15 \trbrdrb\brdrs\brdrw15 \trbrdrr\brdrs\brdrw15 \trftsWidth1\trpaddl107\trpaddr107\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrnone \clbrdrl -\brdrs\brdrw15 \clbrdrb\brdrnone \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth709\clshdrawnil \cellx709\clvertalt\clbrdrt\brdrnone \clbrdrl\brdrnone \clbrdrb\brdrnone \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth709\clshdrawnil \cellx1418\clvertalt -\clbrdrt\brdrnone \clbrdrl\brdrnone \clbrdrb\brdrnone \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth709\clshdrawnil \cellx2127\clvertalt\clbrdrt\brdrnone \clbrdrl\brdrnone \clbrdrb\brdrnone \clbrdrr\brdrs\brdrw15 -\cltxlrtb\clftsWidth3\clwWidth1274\clshdrawnil \cellx3401\row }\pard \ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 {\insrsid10634874 \'85\cell \'85\cell \'85\cell I}{\sub\insrsid10634874 17}{\insrsid10634874 \'85 I}{\sub\insrsid10634874 254}{ -\insrsid10634874 \cell }\pard \ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 {\insrsid10634874 \trowd \irow5\irowband5\ts11\trgaph107\trleft0\trbrdrt\brdrs\brdrw15 \trbrdrl\brdrs\brdrw15 \trbrdrb\brdrs\brdrw15 \trbrdrr -\brdrs\brdrw15 \trftsWidth1\trpaddl107\trpaddr107\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrnone \clbrdrl\brdrs\brdrw15 \clbrdrb\brdrnone \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth709\clshdrawnil \cellx709\clvertalt\clbrdrt\brdrnone \clbrdrl -\brdrnone \clbrdrb\brdrnone \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth709\clshdrawnil \cellx1418\clvertalt\clbrdrt\brdrnone \clbrdrl\brdrnone \clbrdrb\brdrnone \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth709\clshdrawnil \cellx2127\clvertalt -\clbrdrt\brdrnone \clbrdrl\brdrnone \clbrdrb\brdrnone \clbrdrr\brdrs\brdrw15 \cltxlrtb\clftsWidth3\clwWidth1274\clshdrawnil \cellx3401\row }\pard \ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 {\insrsid10634874 0x0\cell 0xf\cell 0xf\cell I}{ -\sub\insrsid10634874 255}{\insrsid10634874 \cell }\pard \ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 {\insrsid10634874 \trowd \irow6\irowband6\ts11\trgaph107\trleft0\trbrdrt\brdrs\brdrw15 \trbrdrl\brdrs\brdrw15 \trbrdrb -\brdrs\brdrw15 \trbrdrr\brdrs\brdrw15 \trftsWidth1\trpaddl107\trpaddr107\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrnone \clbrdrl\brdrs\brdrw15 \clbrdrb\brdrnone \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth709\clshdrawnil \cellx709\clvertalt\clbrdrt -\brdrnone \clbrdrl\brdrnone \clbrdrb\brdrnone \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth709\clshdrawnil \cellx1418\clvertalt\clbrdrt\brdrnone \clbrdrl\brdrnone \clbrdrb\brdrnone \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth709\clshdrawnil -\cellx2127\clvertalt\clbrdrt\brdrnone \clbrdrl\brdrnone \clbrdrb\brdrnone \clbrdrr\brdrs\brdrw15 \cltxlrtb\clftsWidth3\clwWidth1274\clshdrawnil \cellx3401\row }\pard \ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 {\insrsid10634874 0x1\cell 0x0 -\cell 0x0\cell I}{\sub\insrsid10634874 256}{\insrsid10634874 \cell }\pard \ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 {\insrsid10634874 \trowd \irow7\irowband7\ts11\trgaph107\trleft0\trbrdrt\brdrs\brdrw15 \trbrdrl -\brdrs\brdrw15 \trbrdrb\brdrs\brdrw15 \trbrdrr\brdrs\brdrw15 \trftsWidth1\trpaddl107\trpaddr107\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrnone \clbrdrl\brdrs\brdrw15 \clbrdrb\brdrnone \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth709\clshdrawnil -\cellx709\clvertalt\clbrdrt\brdrnone \clbrdrl\brdrnone \clbrdrb\brdrnone \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth709\clshdrawnil \cellx1418\clvertalt\clbrdrt\brdrnone \clbrdrl\brdrnone \clbrdrb\brdrnone \clbrdrr\brdrnone -\cltxlrtb\clftsWidth3\clwWidth709\clshdrawnil \cellx2127\clvertalt\clbrdrt\brdrnone \clbrdrl\brdrnone \clbrdrb\brdrnone \clbrdrr\brdrs\brdrw15 \cltxlrtb\clftsWidth3\clwWidth1274\clshdrawnil \cellx3401\row }\pard -\ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 {\insrsid10634874 \'85\cell \'85\cell \'85\cell I}{\sub\insrsid10634874 257}{\insrsid10634874 \'85 I}{\sub\insrsid10634874 4094}{\insrsid10634874 \cell }\pard -\ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 {\insrsid10634874 \trowd \irow8\irowband8\ts11\trgaph107\trleft0\trbrdrt\brdrs\brdrw15 \trbrdrl\brdrs\brdrw15 \trbrdrb\brdrs\brdrw15 \trbrdrr\brdrs\brdrw15 -\trftsWidth1\trpaddl107\trpaddr107\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrnone \clbrdrl\brdrs\brdrw15 \clbrdrb\brdrnone \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth709\clshdrawnil \cellx709\clvertalt\clbrdrt\brdrnone \clbrdrl\brdrnone \clbrdrb -\brdrnone \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth709\clshdrawnil \cellx1418\clvertalt\clbrdrt\brdrnone \clbrdrl\brdrnone \clbrdrb\brdrnone \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth709\clshdrawnil \cellx2127\clvertalt\clbrdrt\brdrnone -\clbrdrl\brdrnone \clbrdrb\brdrnone \clbrdrr\brdrs\brdrw15 \cltxlrtb\clftsWidth3\clwWidth1274\clshdrawnil \cellx3401\row }\trowd \irow9\irowband9\lastrow \ts11\trgaph107\trleft0\trbrdrt\brdrs\brdrw15 \trbrdrl\brdrs\brdrw15 \trbrdrb\brdrs\brdrw15 \trbrdrr -\brdrs\brdrw15 \trftsWidth1\trpaddl107\trpaddr107\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrnone \clbrdrl\brdrs\brdrw15 \clbrdrb\brdrs\brdrw15 \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth709\clshdrawnil \cellx709\clvertalt\clbrdrt\brdrnone \clbrdrl -\brdrnone \clbrdrb\brdrs\brdrw15 \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth709\clshdrawnil \cellx1418\clvertalt\clbrdrt\brdrnone \clbrdrl\brdrnone \clbrdrb\brdrs\brdrw15 \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth709\clshdrawnil \cellx2127 -\clvertalt\clbrdrt\brdrnone \clbrdrl\brdrnone \clbrdrb\brdrs\brdrw15 \clbrdrr\brdrs\brdrw15 \cltxlrtb\clftsWidth3\clwWidth1274\clshdrawnil \cellx3401\pard \ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 {\insrsid10634874 0xf\cell 0xf\cell 0xf -\cell I}{\sub\insrsid10634874 4095}{\insrsid10634874 \cell }\pard \ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 {\insrsid10634874 \trowd \irow9\irowband9\lastrow \ts11\trgaph107\trleft0\trbrdrt\brdrs\brdrw15 \trbrdrl -\brdrs\brdrw15 \trbrdrb\brdrs\brdrw15 \trbrdrr\brdrs\brdrw15 \trftsWidth1\trpaddl107\trpaddr107\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrnone \clbrdrl\brdrs\brdrw15 \clbrdrb\brdrs\brdrw15 \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth709\clshdrawnil -\cellx709\clvertalt\clbrdrt\brdrnone \clbrdrl\brdrnone \clbrdrb\brdrs\brdrw15 \clbrdrr\brdrnone \cltxlrtb\clftsWidth3\clwWidth709\clshdrawnil \cellx1418\clvertalt\clbrdrt\brdrnone \clbrdrl\brdrnone \clbrdrb\brdrs\brdrw15 \clbrdrr\brdrnone -\cltxlrtb\clftsWidth3\clwWidth709\clshdrawnil \cellx2127\clvertalt\clbrdrt\brdrnone \clbrdrl\brdrnone \clbrdrb\brdrs\brdrw15 \clbrdrr\brdrs\brdrw15 \cltxlrtb\clftsWidth3\clwWidth1274\clshdrawnil \cellx3401\row }\pard -\ql \li0\ri0\widctlpar\faauto\adjustright\rin0\lin0\itap0 {\insrsid10634874 -\par In this case the 4096 palette indexes are not all unique and map onto the actual 256 colours in the palette. This technique may \'93hide\'94 - colours that are close together (differ only in the least significant four bits of each component) but have exact matches in the palette. However, the lookup time is O(1), not O(n) where n is the size of the palette, and the resolving power is equal to -a - palette of 4096 colours. For exact matching of the user-defined RGB value UrUgUb the minimum value of Abs(Ur-Pr) + Abs(Ug-Pg) + Abs(Ub-Pb) would have to be calculated for all palette entries PrPgPb. It could be argued that the Abs() should be replaced -by squaring the differences. This would then give more weight to palette entries that are closer across the three RGB components rather than ones that differ by more but only in one component. -\par -\par E.g. User RGB = (250,250,250) (very light grey). Closest pale -tte entries are (255,255,255) (white) and (250,250,235) (very light yellow). The first scheme could not differentiate between white and light yellow, whereas the second would choose white, which would seem the more appropriate choice. -\par However, squaring values would be much more costly than taking their absolute values, making this choice most undesirable. -\par }{\b\insrsid10634874 -\par Future EColor256 support}{\insrsid10634874 -\par -\par A possible problem with a fixed-palette 256 colour mode is that there may be a requirement for a variable-palette scheme in th -e future. As most of the colour handling is internal this difference is only an issue where the details are exposed to the user. There are functions defined in BITGDI: CFbsDevice::PaletteAttributes(TBool& aModifiable,TInt& aNumEntries) & CFbsDevice::Ge -tPalette() that could signify the presence of the \'93EPOC32 EColor256 default palette\'94 by saying that it is not modifiable and returning NULL from GetPalette(), and telling the truth when the \'93EPOC32 EColor256 variable palette\'94 is implemented.}{ -\b\insrsid10634874 -\par }{\insrsid10634874 -\par }{\b\insrsid10634874 EIKON level colour support}{\insrsid10634874 -\par -\par Colour usage in controls might be implemented in EIKON through a control enabling the selection of particular colours for individual controls. Perhaps a file could contain defaults for a particular platform, stored in ROM. Then if a user wa -nts to change the colour of a control the EIKON server would store the changed options. Resetting a control to its default colour would delete that entry from the EIKON array of changed options. Controls could then call an EIKON function, providing an e -n -um entry, requesting their default colour. The array would be scanned and if no entry was found the ROM file would be scanned for the default. The control itself could have black & white defaults built in for the worst case of not finding an entry for i -t in the ROM file. This would support any cases whereby the control had been added at a later stage or it didn\rquote t need colour support. The enum values can easily be extended in future versions to accommodate new controls. -\par -\par }{\b\insrsid10634874 Gamma correction}{\insrsid10634874 -\par -\par Gamma correction is explained at http://www.cgsd.com/papers/gamma_intro.html. An interesting site for checking gamma correction and hardware & software colour accuracy is http://colorcom.com/~colorcom/comput.html. This site places dithered black & white - rectangles next to grey rectangles and asks the user to step back 6 feet and decide which pair looks uniform. This then gives an estimate of the gamma correction of the display used. Gamma correction won\rquote -t be addressed by this project as it is judged to b -e not important enough. Also this site http://www.halted.com/online/cybermax.htm suggests that gamma correction for an LCD screen is more complicated than for a CRT, using a transfer-function more complicated than the traditional L = V ^ g, where L is li -g -ht intensity, V is input voltage and g is the gamma value. Gamma correction for a CRT basically involves raising the input values to the power of -g, thus cancelling out the gamma characteristics of the display device. Gamma correction for an LCD would -appear to be rather more complicated\'85 -\par -\par }{\b\insrsid10634874 Other platforms}{\insrsid10634874 -\par -\par The web site http://members.aol.com/pdcchrisd/wce/wce20scrn.htm has some interesting screen shots, although they must have been taken as bitmaps from a PC emulation. -\par -\par }} \ No newline at end of file diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsdeviceinterface/screendriver/Documentation/TestCode.rtf --- a/graphicsdeviceinterface/screendriver/Documentation/TestCode.rtf Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,72 +0,0 @@ -{\rtf1\ansi\ansicpg1252\uc1\deff0\stshfdbch0\stshfloch0\stshfhich0\stshfbi0\deflang2057\deflangfe2057{\fonttbl{\f0\froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}{\f1\fswiss\fcharset0\fprq2{\*\panose 020b0604020202020204}Arial;} -{\f36\froman\fcharset238\fprq2 Times New Roman CE;}{\f37\froman\fcharset204\fprq2 Times New Roman Cyr;}{\f39\froman\fcharset161\fprq2 Times New Roman Greek;}{\f40\froman\fcharset162\fprq2 Times New Roman Tur;} -{\f41\froman\fcharset177\fprq2 Times New Roman (Hebrew);}{\f42\froman\fcharset178\fprq2 Times New Roman (Arabic);}{\f43\froman\fcharset186\fprq2 Times New Roman Baltic;}{\f44\froman\fcharset163\fprq2 Times New Roman (Vietnamese);} -{\f46\fswiss\fcharset238\fprq2 Arial CE;}{\f47\fswiss\fcharset204\fprq2 Arial Cyr;}{\f49\fswiss\fcharset161\fprq2 Arial Greek;}{\f50\fswiss\fcharset162\fprq2 Arial Tur;}{\f51\fswiss\fcharset177\fprq2 Arial (Hebrew);} -{\f52\fswiss\fcharset178\fprq2 Arial (Arabic);}{\f53\fswiss\fcharset186\fprq2 Arial Baltic;}{\f54\fswiss\fcharset163\fprq2 Arial (Vietnamese);}}{\colortbl;\red0\green0\blue0;\red0\green0\blue255;\red0\green255\blue255;\red0\green255\blue0; -\red255\green0\blue255;\red255\green0\blue0;\red255\green255\blue0;\red255\green255\blue255;\red0\green0\blue128;\red0\green128\blue128;\red0\green128\blue0;\red128\green0\blue128;\red128\green0\blue0;\red128\green128\blue0;\red128\green128\blue128; -\red192\green192\blue192;}{\stylesheet{\ql \li0\ri0\widctlpar\faauto\adjustright\rin0\lin0\itap0 \fs20\lang2057\langfe2057\cgrid\langnp2057\langfenp2057 \snext0 Normal;}{ -\s1\ql \li0\ri0\sb240\sa60\keepn\widctlpar\faauto\outlinelevel0\adjustright\rin0\lin0\itap0 \b\f1\fs28\lang2057\langfe2057\kerning28\cgrid\langnp2057\langfenp2057 \sbasedon0 \snext0 heading 1;}{ -\s2\ql \li0\ri0\sb240\sa60\keepn\widctlpar\faauto\outlinelevel1\adjustright\rin0\lin0\itap0 \b\i\f1\fs24\lang2057\langfe2057\cgrid\langnp2057\langfenp2057 \sbasedon0 \snext0 heading 2;}{ -\s3\ql \li0\ri0\sb240\sa60\keepn\widctlpar\faauto\outlinelevel2\adjustright\rin0\lin0\itap0 \f1\fs24\lang2057\langfe2057\cgrid\langnp2057\langfenp2057 \sbasedon0 \snext0 heading 3;}{ -\s4\ql \li0\ri0\keepn\widctlpar\faauto\outlinelevel3\adjustright\rin0\lin0\itap0 \b\f1\fs20\lang2057\langfe2057\cgrid\langnp2057\langfenp2057 \sbasedon0 \snext0 heading 4;}{\s5\ql \li0\ri0\keepn\widctlpar\faauto\outlinelevel4\adjustright\rin0\lin0\itap0 -\b\f1\fs24\lang2057\langfe2057\cgrid\langnp2057\langfenp2057 \sbasedon0 \snext0 heading 5;}{\*\cs10 \additive \ssemihidden Default Paragraph Font;}{\* -\ts11\tsrowd\trftsWidthB3\trpaddl108\trpaddr108\trpaddfl3\trpaddft3\trpaddfb3\trpaddfr3\tscellwidthfts0\tsvertalt\tsbrdrt\tsbrdrl\tsbrdrb\tsbrdrr\tsbrdrdgl\tsbrdrdgr\tsbrdrh\tsbrdrv -\ql \li0\ri0\widctlpar\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0 \fs20\lang1024\langfe1024\cgrid\langnp1024\langfenp1024 \snext11 \ssemihidden Normal Table;}}{\*\listtable{\list\listtemplateid38323078\listsimple{\listlevel\levelnfc23\levelnfcn23 -\leveljc0\leveljcn0\levelfollow0\levelstartat0\levelspace0\levelindent0{\leveltext\'01-;}{\levelnumbers;}\f0\fbias0 \fi-360\li1800\jclisttab\tx1800\lin1800 }{\listname ;}\listid817500656}{\list\listtemplateid38323078\listsimple{\listlevel\levelnfc23 -\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat0\levelspace0\levelindent0{\leveltext\'01-;}{\levelnumbers;}\f0\fbias0 \fi-360\li1800\jclisttab\tx1800\lin1800 }{\listname ;}\listid1308366115}{\list\listtemplateid38323078\listsimple{\listlevel -\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat0\levelspace0\levelindent0{\leveltext\'01-;}{\levelnumbers;}\f0\fbias0 \fi-360\li1800\jclisttab\tx1800\lin1800 }{\listname ;}\listid1721782559}}{\*\listoverridetable -{\listoverride\listid1308366115\listoverridecount0\ls1}{\listoverride\listid817500656\listoverridecount0\ls2}{\listoverride\listid1721782559\listoverridecount0\ls3}}{\*\rsidtbl \rsid9334090\rsid13635173}{\*\generator Microsoft Word 10.0.6612;}{\info -{\title BITGDI test code}{\author Lane Roberts}{\operator Symbian}{\creatim\yr2001\mo6\dy14\hr11\min16}{\revtim\yr2004\mo4\dy27\hr18\min38}{\version5}{\edmins5}{\nofpages1}{\nofwords115}{\nofchars658}{\*\company Dell Computer Corporation}{\nofcharsws772} -{\vern16389}}\paperw11909\paperh16834\margl1440\margr1440 \widowctrl\ftnbj\aenddoc\noxlattoyen\expshrtn\noultrlspc\dntblnsbdb\nospaceforul\hyphcaps0\formshade\horzdoc\dghspace120\dgvspace120\dghorigin1701\dgvorigin1984\dghshow0\dgvshow3 -\jcompress\viewkind1\viewscale100\nolnhtadjtbl\rsidroot13635173 \fet0\sectd \psz9\linex0\headery706\footery706\colsx709\endnhere\sectdefaultcl\sftnbj {\*\pnseclvl1\pnucrm\pnstart1\pnindent720\pnhang {\pntxta .}}{\*\pnseclvl2 -\pnucltr\pnstart1\pnindent720\pnhang {\pntxta .}}{\*\pnseclvl3\pndec\pnstart1\pnindent720\pnhang {\pntxta .}}{\*\pnseclvl4\pnlcltr\pnstart1\pnindent720\pnhang {\pntxta )}}{\*\pnseclvl5\pndec\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}{\*\pnseclvl6 -\pnlcltr\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}{\*\pnseclvl7\pnlcrm\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}{\*\pnseclvl8\pnlcltr\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}{\*\pnseclvl9\pnlcrm\pnstart1\pnindent720\pnhang -{\pntxtb (}{\pntxta )}}\pard\plain \s1\ql \li0\ri0\sb240\sa60\keepn\widctlpar\faauto\outlinelevel0\adjustright\rin0\lin0\itap0 \b\f1\fs28\lang2057\langfe2057\kerning28\cgrid\langnp2057\langfenp2057 {\insrsid9334090 SCREENDRIVER test code -\par }\pard\plain \ql \li0\ri0\widctlpar\faauto\adjustright\rin0\lin0\itap0 \fs20\lang2057\langfe2057\cgrid\langnp2057\langfenp2057 {\f1\insrsid9334090 -\par }{\b\f1\fs24\insrsid9334090 Test executable file locations -\par -\par }\trowd \irow0\irowband0\ts11\trgaph108\trleft-108\trbrdrt\brdrs\brdrw10 \trbrdrl\brdrs\brdrw10 \trbrdrb\brdrs\brdrw10 \trbrdrr\brdrs\brdrw10 \trbrdrh\brdrs\brdrw10 \trbrdrv\brdrs\brdrw10 \trftsWidth1\trpaddl108\trpaddr108\trpaddfl3\trpaddfr3 \clvertalt -\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 \clshdng10000\cltxlrtb\clftsWidth3\clwWidth3158\clshdngraw10000 \cellx3050\clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr -\brdrs\brdrw10 \clshdng10000\cltxlrtb\clftsWidth3\clwWidth3158\clshdngraw10000 \cellx6208\pard \ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 {\b\f1\insrsid9334090 WINS location\cell Hardware location\cell }\pard -\ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 {\b\f1\insrsid9334090 \trowd \irow0\irowband0\ts11\trgaph108\trleft-108\trbrdrt\brdrs\brdrw10 \trbrdrl\brdrs\brdrw10 \trbrdrb\brdrs\brdrw10 \trbrdrr\brdrs\brdrw10 \trbrdrh -\brdrs\brdrw10 \trbrdrv\brdrs\brdrw10 \trftsWidth1\trpaddl108\trpaddr108\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 -\clshdng10000\cltxlrtb\clftsWidth3\clwWidth3158\clshdngraw10000 \cellx3050\clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 \clshdng10000\cltxlrtb\clftsWidth3\clwWidth3158\clshdngraw10000 \cellx6208\row -}\trowd \irow1\irowband1\lastrow \ts11\trgaph108\trleft-108\trbrdrt\brdrs\brdrw10 \trbrdrl\brdrs\brdrw10 \trbrdrb\brdrs\brdrw10 \trbrdrr\brdrs\brdrw10 \trbrdrh\brdrs\brdrw10 \trbrdrv\brdrs\brdrw10 \trftsWidth1\trpaddl108\trpaddr108\trpaddfl3\trpaddfr3 -\clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 \cltxlrtb\clftsWidth3\clwWidth3158\clshdrawnil \cellx3050\clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr -\brdrs\brdrw10 \cltxlrtb\clftsWidth3\clwWidth3158\clshdrawnil \cellx6208\pard \ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 {\f1\insrsid9334090 \\epoc32\\release\\wins\\udeb\\ -\par or -\par \\epoc32\\release\\wins\\urel\\\cell c:\\ or z:\\\cell }\pard \ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 {\f1\insrsid9334090 \trowd \irow1\irowband1\lastrow \ts11\trgaph108\trleft-108\trbrdrt\brdrs\brdrw10 \trbrdrl -\brdrs\brdrw10 \trbrdrb\brdrs\brdrw10 \trbrdrr\brdrs\brdrw10 \trbrdrh\brdrs\brdrw10 \trbrdrv\brdrs\brdrw10 \trftsWidth1\trpaddl108\trpaddr108\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr -\brdrs\brdrw10 \cltxlrtb\clftsWidth3\clwWidth3158\clshdrawnil \cellx3050\clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 \cltxlrtb\clftsWidth3\clwWidth3158\clshdrawnil \cellx6208\row }\pard -\ql \li0\ri0\widctlpar\faauto\adjustright\rin0\lin0\itap0 {\f1\insrsid9334090 -\par }\pard\plain \s5\ql \li0\ri0\keepn\widctlpar\faauto\outlinelevel4\adjustright\rin0\lin0\itap0 \b\f1\fs24\lang2057\langfe2057\cgrid\langnp2057\langfenp2057 {\insrsid9334090 Automatic test executables - should be run before every release -\par }\pard\plain \ql \li0\ri0\widctlpar\faauto\adjustright\rin0\lin0\itap0 \fs20\lang2057\langfe2057\cgrid\langnp2057\langfenp2057 {\f1\insrsid9334090 Success: Test program exits cleanly. -\par Failure: Test program stops with an error message.}{\insrsid9334090 -\par }{\b\f1\insrsid9334090 -\par }\trowd \irow0\irowband0\ts11\trgaph108\trleft-108\trbrdrt\brdrs\brdrw10 \trbrdrl\brdrs\brdrw10 \trbrdrb\brdrs\brdrw10 \trbrdrr\brdrs\brdrw10 \trbrdrh\brdrs\brdrw10 \trbrdrv\brdrs\brdrw10 -\trftsWidth1\trftsWidthB3\trftsWidthA3\trpaddl108\trpaddr108\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 \clshdng10000\cltxlrtb\clftsWidth3\clwWidth2488\clshdngraw10000 -\cellx2380\clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 \clshdng10000\cltxlrtb\clftsWidth3\clwWidth5775\clshdngraw10000 \cellx8155\pard\plain -\s4\ql \li0\ri0\keepn\widctlpar\intbl\faauto\outlinelevel3\adjustright\rin0\lin0 \b\f1\fs20\lang2057\langfe2057\cgrid\langnp2057\langfenp2057 {\insrsid9334090 Filename\cell Purpose\cell }\pard\plain -\ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 \fs20\lang2057\langfe2057\cgrid\langnp2057\langfenp2057 {\b\f1\insrsid9334090 \trowd \irow0\irowband0\ts11\trgaph108\trleft-108\trbrdrt\brdrs\brdrw10 \trbrdrl\brdrs\brdrw10 \trbrdrb -\brdrs\brdrw10 \trbrdrr\brdrs\brdrw10 \trbrdrh\brdrs\brdrw10 \trbrdrv\brdrs\brdrw10 \trftsWidth1\trftsWidthB3\trftsWidthA3\trpaddl108\trpaddr108\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr -\brdrs\brdrw10 \clshdng10000\cltxlrtb\clftsWidth3\clwWidth2488\clshdngraw10000 \cellx2380\clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 \clshdng10000\cltxlrtb\clftsWidth3\clwWidth5775\clshdngraw10000 -\cellx8155\row }\trowd \irow1\irowband1\ts11\trgaph108\trleft-108\trbrdrt\brdrs\brdrw10 \trbrdrl\brdrs\brdrw10 \trbrdrb\brdrs\brdrw10 \trbrdrr\brdrs\brdrw10 \trbrdrh\brdrs\brdrw10 \trbrdrv\brdrs\brdrw10 -\trftsWidth1\trftsWidthB3\trftsWidthA3\trpaddl108\trpaddr108\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 \cltxlrtb\clftsWidth3\clwWidth2488\clshdrawnil \cellx2380\clvertalt -\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 \cltxlrtb\clftsWidth3\clwWidth5775\clshdrawnil \cellx8155\pard \ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0 {\f1\insrsid9334090 TLLD.EXE\tab \cell }{ -\f1\insrsid13635173 Tests CFbsDrawDevice functionality}{\b\f1\insrsid9334090 \cell }\pard \ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 {\b\f1\insrsid9334090 \trowd \irow1\irowband1\ts11\trgaph108\trleft-108\trbrdrt -\brdrs\brdrw10 \trbrdrl\brdrs\brdrw10 \trbrdrb\brdrs\brdrw10 \trbrdrr\brdrs\brdrw10 \trbrdrh\brdrs\brdrw10 \trbrdrv\brdrs\brdrw10 \trftsWidth1\trftsWidthB3\trftsWidthA3\trpaddl108\trpaddr108\trpaddfl3\trpaddfr3 \clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl -\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 \cltxlrtb\clftsWidth3\clwWidth2488\clshdrawnil \cellx2380\clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 -\cltxlrtb\clftsWidth3\clwWidth5775\clshdrawnil \cellx8155\row }\pard \ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0\pararsid13635173 {\f1\insrsid13635173 TLLD2.EXE}{\f1\insrsid13635173\charrsid13635173 \cell }{\f1\insrsid13635173 -Tests CFbsDrawDevice functionality}{\f1\insrsid13635173\charrsid13635173 \cell }\pard \ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 {\insrsid13635173 \trowd \irow2\irowband2\ts11\trgaph108\trleft-108\trbrdrt\brdrs\brdrw10 -\trbrdrl\brdrs\brdrw10 \trbrdrb\brdrs\brdrw10 \trbrdrr\brdrs\brdrw10 \trbrdrh\brdrs\brdrw10 \trbrdrv\brdrs\brdrw10 \trftsWidth1\trftsWidthB3\trftsWidthA3\trpaddl108\trpaddr108\trpaddfl3\trpaddfr3\tblrsid13635173 \clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl -\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 \cltxlrtb\clftsWidth3\clwWidth2488\clshdrawnil \cellx2380\clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 -\cltxlrtb\clftsWidth3\clwWidth5775\clshdrawnil \cellx8155\row }\pard \ql \li0\ri0\widctlpar\intbl\faauto\adjustright\rin0\lin0\pararsid8783284 {\f1\insrsid9334090\charrsid9334090 TScdvScaling}{\f1\insrsid13635173 .EXE\tab \cell }{\f1\insrsid9334090 -Tests scaling feature in EColor256 display mode}{\f1\insrsid13635173\charrsid13635173 \cell }\pard \ql \li0\ri0\widctlpar\intbl\aspalpha\aspnum\faauto\adjustright\rin0\lin0 {\b\f1\insrsid13635173 \trowd \irow3\irowband3\lastrow \ts11\trgaph108\trleft-108 -\trbrdrt\brdrs\brdrw10 \trbrdrl\brdrs\brdrw10 \trbrdrb\brdrs\brdrw10 \trbrdrr\brdrs\brdrw10 \trbrdrh\brdrs\brdrw10 \trbrdrv\brdrs\brdrw10 \trftsWidth1\trftsWidthB3\trftsWidthA3\trpaddl108\trpaddr108\trpaddfl3\trpaddfr3\tblrsid13635173 \clvertalt\clbrdrt -\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 \cltxlrtb\clftsWidth3\clwWidth2488\clshdrawnil \cellx2380\clvertalt\clbrdrt\brdrs\brdrw10 \clbrdrl\brdrs\brdrw10 \clbrdrb\brdrs\brdrw10 \clbrdrr\brdrs\brdrw10 -\cltxlrtb\clftsWidth3\clwWidth5775\clshdrawnil \cellx8155\row }\pard \ql \li0\ri0\widctlpar\faauto\adjustright\rin0\lin0\itap0 {\b\f1\insrsid9334090 -\par }{\b\f1\fs24\insrsid9334090 Test rom building -\par }{\f1\insrsid9334090 -\par \\screendriver\\group\\scdvtest.iby is listed in bld.inf as a test export with destination \\epoc32\\rom\\include\\. This automatically includes all test programs and files in a rom when used as follows from \\epoc32\\rom\\: \'93tools\\ -buildrom assabet engbuild scdvtest.iby\'94. -\par }} \ No newline at end of file diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsdeviceinterface/screendriver/group/TScdvServer.mmp --- a/graphicsdeviceinterface/screendriver/group/TScdvServer.mmp Wed Jun 23 19:41:15 2010 +0300 +++ b/graphicsdeviceinterface/screendriver/group/TScdvServer.mmp Tue Jul 06 15:45:57 2010 +0300 @@ -65,9 +65,7 @@ LIBRARY testexecuteutils.lib tgraphicsharness.lib LIBRARY testexecutelogclient.lib -#if !defined(WINS) -LIBRARY viewsrv.lib -#else +#if defined (WINS) START WINS win32_library gdi32.lib win32_library user32.lib @@ -75,7 +73,6 @@ END #endif - // We're quite heavy on the stack... 4k in WinS isn't enough... EPOCSTACKSIZE 0x6000 EPOCHEAPSIZE 0x1000 0x400000 diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsdeviceinterface/screendriver/group/scdvtest_helium.pkg --- a/graphicsdeviceinterface/screendriver/group/scdvtest_helium.pkg Wed Jun 23 19:41:15 2010 +0300 +++ b/graphicsdeviceinterface/screendriver/group/scdvtest_helium.pkg Tue Jul 06 15:45:57 2010 +0300 @@ -1,4 +1,4 @@ -; Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +; Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). ; All rights reserved. ; This component and the accompanying materials are made available ; under the terms of "Eclipse Public License v1.0" @@ -33,12 +33,11 @@ ;*Files To Copy... -;// script file -"..\tsrc\scripts\scdvtest_t_LowLevel.script"-"c:\scdvtest\scdvtest_t_LowLevel.script" -"..\tsrc\scripts\scdvtest_t_LowLevel1.script"-"c:\scdvtest\scdvtest_t_LowLevel1.script" -"..\tsrc\scripts\scdvtest_t_RWindows.script"-"c:\scdvtest\scdvtest_t_RWindows.script" -"..\tsrc\scripts\scdvtest_t_Scaling.script"-"c:\scdvtest\scdvtest_t_Scaling.script" -"..\tsrc\scripts\scdvtest_t_Scdv.script"-"c:\scdvtest\scdvtest_t_Scdv.script" -"..\tsrc\scripts\scdvtest_t_devorientation.script"-"c:\scdvtest\scdvtest_t_devorientation.script" -"..\tsrc\scripts\scdvtest_t_directscreenbitmap.script"-"c:\scdvtest\scdvtest_t_directscreenbitmap.script" +"\epoc32\data\z\scdvtest\scdvtest_t_LowLevel.script"-"c:\scdvtest\scdvtest_t_LowLevel.script" +"\epoc32\data\z\scdvtest\scdvtest_t_LowLevel1.script"-"c:\scdvtest\scdvtest_t_LowLevel1.script" +"\epoc32\data\z\scdvtest\scdvtest_t_RWindows.script"-"c:\scdvtest\scdvtest_t_RWindows.script" +"\epoc32\data\z\scdvtest\scdvtest_t_Scaling.script"-"c:\scdvtest\scdvtest_t_Scaling.script" +"\epoc32\data\z\scdvtest\scdvtest_t_Scdv.script"-"c:\scdvtest\scdvtest_t_Scdv.script" +"\epoc32\data\z\scdvtest\scdvtest_t_devorientation.script"-"c:\scdvtest\scdvtest_t_devorientation.script" +"\epoc32\data\z\scdvtest\scdvtest_t_directscreenbitmap.script"-"c:\scdvtest\scdvtest_t_directscreenbitmap.script" diff -r 7f25ef56562d -r 29ddb8a72f0e graphicshwdrivers/surfacemgr/test/group/surfacemanagertest_helium.pkg --- a/graphicshwdrivers/surfacemgr/test/group/surfacemanagertest_helium.pkg Wed Jun 23 19:41:15 2010 +0300 +++ b/graphicshwdrivers/surfacemgr/test/group/surfacemanagertest_helium.pkg Tue Jul 06 15:45:57 2010 +0300 @@ -34,7 +34,7 @@ ;*Files To Copy... ;//script files -"..\scripts\surfacemgtest_T_auto.script"-"c:\surfacemgtest\surfacemgtest_T_auto.script" -"..\scripts\surfacemgtest_T_multiprocess.script"-"c:\surfacemgtest\surfacemgtest_T_multiprocess.script" -"..\scripts\surfacemgtest_T_multithread.script"-"c:\surfacemgtest\surfacemgtest_T_multithread.script" +"\epoc32\data\z\surfacemgtest\surfacemgtest_T_auto.script"-"c:\surfacemgtest\surfacemgtest_T_auto.script" +"\epoc32\data\z\surfacemgtest\surfacemgtest_T_multiprocess.script"-"c:\surfacemgtest\surfacemgtest_T_multiprocess.script" +"\epoc32\data\z\surfacemgtest\surfacemgtest_T_multithread.script"-"c:\surfacemgtest\surfacemgtest_T_multithread.script" diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsresourceservices/graphicsresource/group/graphicsresourcetest_helium.pkg --- a/graphicsresourceservices/graphicsresource/group/graphicsresourcetest_helium.pkg Wed Jun 23 19:41:15 2010 +0300 +++ b/graphicsresourceservices/graphicsresource/group/graphicsresourcetest_helium.pkg Tue Jul 06 15:45:57 2010 +0300 @@ -34,6 +34,6 @@ ;*Files To Copy... ;// script files -"..\test\scripts\graphicsresourcetest_t_generic.script"-"c:\graphicsresourcetest\graphicsresourcetest_t_generic.script" -"..\test\scripts\graphicsresourcetest_t_##GRAPHICSRESOURCETEST_DRV##.script"-"c:\graphicsresourcetest\graphicsresourcetest_t_##GRAPHICSRESOURCETEST_DRV##.script" +"\epoc32\data\z\graphicsresourcetest\graphicsresourcetest_t_generic.script"-"c:\graphicsresourcetest\graphicsresourcetest_t_generic.script" +"\epoc32\data\z\graphicsresourcetest\graphicsresourcetest_t_##GRAPHICSRESOURCETEST_DRV##.script"-"c:\graphicsresourcetest\graphicsresourcetest_t_##GRAPHICSRESOURCETEST_DRV##.script" diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsresourceservices/graphicsresourceimplementation/test/group/bld.inf --- a/graphicsresourceservices/graphicsresourceimplementation/test/group/bld.inf Wed Jun 23 19:41:15 2010 +0300 +++ b/graphicsresourceservices/graphicsresourceimplementation/test/group/bld.inf Tue Jul 06 15:45:57 2010 +0300 @@ -1,4 +1,4 @@ -// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). // All rights reserved. // This component and the accompanying materials are made available // under the terms of "Eclipse Public License v1.0" @@ -28,11 +28,15 @@ tgraphicsresourcesecondprocess.mmp tgraphicsresourceinternal.mmp tgraphicsresourceinternalsecondprocess.mmp +tgraphicsresourcemanualsecondprocess.mmp PRJ_TESTEXPORTS ../scripts/sgresourcetest_t_generic.script z:/sgresourcetest/sgresourcetest_t_generic.script ../scripts/sgresourcetest_t_internal.script z:/sgresourcetest/sgresourcetest_t_internal.script -../scripts/sgresourcetest_t_generic_manual.script z:/sgresourcetest/sgresourcetest_t_generic_manual.script +../scripts/sgresourcetest_t_stress_manual.script z:/sgresourcetest/sgresourcetest_t_stress_manual.script +../scripts/sgresourcetest_t_stress_auto.script z:/sgresourcetest/sgresourcetest_t_stress_auto.script +../scripts/sgresourcetest_t_stress_manual.ini z:/sgresourcetest/sgresourcetest_t_stress_manual.ini +../scripts/sgresourcetest_t_stress_auto.ini z:/sgresourcetest/sgresourcetest_t_stress_auto.ini sgresourcetest.iby /epoc32/rom/include/sgresourcetest.iby diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsresourceservices/graphicsresourceimplementation/test/group/sgresourcetest.iby --- a/graphicsresourceservices/graphicsresourceimplementation/test/group/sgresourcetest.iby Wed Jun 23 19:41:15 2010 +0300 +++ b/graphicsresourceservices/graphicsresourceimplementation/test/group/sgresourcetest.iby Tue Jul 06 15:45:57 2010 +0300 @@ -1,4 +1,4 @@ -// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). // All rights reserved. // This component and the accompanying materials are made available // under the terms of "Eclipse Public License v1.0" @@ -26,10 +26,14 @@ file=ABI_DIR\DEBUG_DIR\tgraphicsresourcesecondprocess2.exe \sys\bin\tgraphicsresourcesecondprocess2.exe file=ABI_DIR\DEBUG_DIR\tgraphicsresourceinternal2.exe \sys\bin\tgraphicsresourceinternal2.exe file=ABI_DIR\DEBUG_DIR\tgraphicsresourceinternalsecondprocess2.exe \sys\bin\tgraphicsresourceinternalsecondprocess2.exe +file=ABI_DIR\DEBUG_DIR\tgraphicsresourcemanualsecondprocess.exe \sys\bin\tgraphicsresourcemanualsecondprocess.exe // script files data=DATAZ_\sgresourcetest\sgresourcetest_t_generic.script \sgresourcetest\sgresourcetest_t_generic.script data=DATAZ_\sgresourcetest\sgresourcetest_t_internal.script \sgresourcetest\sgresourcetest_t_internal.script -data=DATAZ_\sgresourcetest\sgresourcetest_t_generic_manual.script \sgresourcetest\sgresourcetest_t_generic_manual.script +data=DATAZ_\sgresourcetest\sgresourcetest_t_stress_manual.script \sgresourcetest\sgresourcetest_t_stress_manual.script +data=DATAZ_\sgresourcetest\sgresourcetest_t_stress_auto.script \sgresourcetest\sgresourcetest_t_stress_auto.script +data=DATAZ_\sgresourcetest\sgresourcetest_t_stress_manual.ini \sgresourcetest\sgresourcetest_t_stress_manual.ini +data=DATAZ_\sgresourcetest\sgresourcetest_t_stress_auto.ini \sgresourcetest\sgresourcetest_t_stress_auto.ini #endif // SGRESOURCETEST_IBY diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsresourceservices/graphicsresourceimplementation/test/group/sgresourcetest_helium.pkg --- a/graphicsresourceservices/graphicsresourceimplementation/test/group/sgresourcetest_helium.pkg Wed Jun 23 19:41:15 2010 +0300 +++ b/graphicsresourceservices/graphicsresourceimplementation/test/group/sgresourcetest_helium.pkg Tue Jul 06 15:45:57 2010 +0300 @@ -12,14 +12,14 @@ ; ; Description: ; -;File: bitgdi.pkg; +; File: sgresourcetest_helium.pkg ; ;*Languages &EN ; ;*Standard SIS file header. This section specifies the package name, ;application UID, and version/build numbers. Add the package TYPE here if needed. -#{"SGResourceTest"},(0x101FB3E8),1,0,1; +#{"SgResourceTest"},(0x101FB3E8),1,0,1; ; ;*Unique (Non-Localized) Vendor name @@ -34,6 +34,7 @@ ;*Files To Copy... ;//script file -"..\scripts\sgresourcetest_t_generic.script"-"c:\sgresourcetest\sgresourcetest_t_generic.script" -"..\scripts\sgresourcetest_t_internal.script"-"c:\sgresourcetest\sgresourcetest_t_internal.script" +"\epoc32\data\z\sgresourcetest\sgresourcetest_t_generic.script"-"c:\sgresourcetest\sgresourcetest_t_generic.script" +"\epoc32\data\z\sgresourcetest\sgresourcetest_t_internal.script"-"c:\sgresourcetest\sgresourcetest_t_internal.script" +"\epoc32\data\z\sgresourcetest\sgresourcetest_t_stress_auto.script"-"c:\sgresourcetest\sgresourcetest_t_stress_auto.script" diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsresourceservices/graphicsresourceimplementation/test/group/tgraphicsresourcemanualsecondprocess.mmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/graphicsresourceservices/graphicsresourceimplementation/test/group/tgraphicsresourcemanualsecondprocess.mmp Tue Jul 06 15:45:57 2010 +0300 @@ -0,0 +1,28 @@ +// Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// + +TARGET tgraphicsresourcemanualsecondprocess.exe +TARGETTYPE exe + +OS_LAYER_SYSTEMINCLUDE +USERINCLUDE ../inc + +SOURCEPATH ../src +SOURCE tsggenericmanualsecondprocess.cpp + +LIBRARY euser.lib +LIBRARY sgresource.lib + +SMPSAFE diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsresourceservices/graphicsresourceimplementation/test/inc/tgraphicsresourceinternalsecondprocesstesthandler.h --- a/graphicsresourceservices/graphicsresourceimplementation/test/inc/tgraphicsresourceinternalsecondprocesstesthandler.h Wed Jun 23 19:41:15 2010 +0300 +++ b/graphicsresourceservices/graphicsresourceimplementation/test/inc/tgraphicsresourceinternalsecondprocesstesthandler.h Tue Jul 06 15:45:57 2010 +0300 @@ -1,4 +1,4 @@ -// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). // All rights reserved. // This component and the accompanying materials are made available // under the terms of "Eclipse Public License v1.0" @@ -29,7 +29,7 @@ { public: static CTSgResInternalSecondProcessTestHandler* NewLC(); - TInt RunTestCaseL(TInt aTestCase, TSgResIntTestInfo& aInfo); + TInt RunTestCaseL(const TSgResIntTestInfo& aInfo); void OpenDriverL(); private: @@ -45,7 +45,7 @@ void DoDrawableMemoryTestsL(); TInt TestDriverInitializeAndShutdownL(); TInt TestDriverInitializeAndShutdownManyTimes(); - TInt TestResourceProfiling(TSgResIntTestInfo& aInfo); + TInt TestResourceProfiling(const TSgResIntTestInfo& aInfo); void TestOpenImageL(TSgDrawableId aId); diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsresourceservices/graphicsresourceimplementation/test/inc/tgraphicsresourcemultiprocessthread.h --- a/graphicsresourceservices/graphicsresourceimplementation/test/inc/tgraphicsresourcemultiprocessthread.h Wed Jun 23 19:41:15 2010 +0300 +++ b/graphicsresourceservices/graphicsresourceimplementation/test/inc/tgraphicsresourcemultiprocessthread.h Tue Jul 06 15:45:57 2010 +0300 @@ -1,4 +1,4 @@ -// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). // All rights reserved. // This component and the accompanying materials are made available // under the terms of "Eclipse Public License v1.0" @@ -18,7 +18,6 @@ #include #include -#include class CTTMSGraphicsStep; @@ -134,4 +133,7 @@ CTTMSGraphicsStep* iTestStep; }; +// Message queue name for inter-process communication +_LIT(KSgTestMultiprocessMsgQ, "TestGraphicsResourceMultiprocessMsgQ"); + #endif diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsresourceservices/graphicsresourceimplementation/test/inc/tsggenericmanual.h --- a/graphicsresourceservices/graphicsresourceimplementation/test/inc/tsggenericmanual.h Wed Jun 23 19:41:15 2010 +0300 +++ b/graphicsresourceservices/graphicsresourceimplementation/test/inc/tsggenericmanual.h Tue Jul 06 15:45:57 2010 +0300 @@ -1,4 +1,4 @@ -// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). // All rights reserved. // This component and the accompanying materials are made available // under the terms of "Eclipse Public License v1.0" @@ -16,6 +16,7 @@ #ifndef TSGGENERICMANUAL_H #define TSGGENERICMANUAL_H +#include #include "tgraphicsresourceteststepbase.h" /** @@ -23,7 +24,7 @@ and not part of the automated testing system. */ class CTSgGenericManual : public CTSgTestStepBase -{ + { public: CTSgGenericManual(TBool aConformanceTests); ~CTSgGenericManual(); @@ -33,12 +34,16 @@ private: // utility methods - TInt CreateImages(const TSgImageInfo& aInfo, RArray& aTestImages); + TInt CreateImages(const TSgImageInfo& aInfo, RArray& aTestImages, TBool aDuplicate); void DestroyImages(RArray& aTestImages); // From CTSgTestStepBase virtual TVerdict doTestStepL(); -}; + +private: + RProcess iSecondProcess; + RMsgQueue iMsgQ; + }; _LIT(KTSgGenericManual,"TSgGenericManual"); diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsresourceservices/graphicsresourceimplementation/test/scripts/sgresourcetest_t_generic_manual.script --- a/graphicsresourceservices/graphicsresourceimplementation/test/scripts/sgresourcetest_t_generic_manual.script Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,19 +0,0 @@ -// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// Test script for running manual graphics resource tests - -PRINT Run Graphics Resource Manual Tests -// -LOAD_SUITE tgraphicsresource2 -RUN_TEST_STEP 100 tgraphicsresource2 TSgGenericManual diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsresourceservices/graphicsresourceimplementation/test/scripts/sgresourcetest_t_stress_auto.ini --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/graphicsresourceservices/graphicsresourceimplementation/test/scripts/sgresourcetest_t_stress_auto.ini Tue Jul 06 15:45:57 2010 +0300 @@ -0,0 +1,21 @@ +// Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// + +[TestStressResourceLeak] +NumIterations=10 +Tolerance=1 +ImageWidth=1000 +ImageHeight=1000 +DuplicateHandle=true diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsresourceservices/graphicsresourceimplementation/test/scripts/sgresourcetest_t_stress_auto.script --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/graphicsresourceservices/graphicsresourceimplementation/test/scripts/sgresourcetest_t_stress_auto.script Tue Jul 06 15:45:57 2010 +0300 @@ -0,0 +1,19 @@ +// Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// Test script for running manual graphics resource tests + +PRINT Run Graphics Resource Automated Stress Tests +// +LOAD_SUITE tgraphicsresource2 +RUN_TEST_STEP 1000 tgraphicsresource2 TSgGenericManual z:\sgresourcetest\sgresourcetest_t_stress_auto.ini diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsresourceservices/graphicsresourceimplementation/test/scripts/sgresourcetest_t_stress_manual.ini --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/graphicsresourceservices/graphicsresourceimplementation/test/scripts/sgresourcetest_t_stress_manual.ini Tue Jul 06 15:45:57 2010 +0300 @@ -0,0 +1,21 @@ +// Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// + +[TestStressResourceLeak] +NumIterations=100000 +Tolerance=10 +ImageWidth=1 +ImageHeight=1 +DuplicateHandle=false diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsresourceservices/graphicsresourceimplementation/test/scripts/sgresourcetest_t_stress_manual.script --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/graphicsresourceservices/graphicsresourceimplementation/test/scripts/sgresourcetest_t_stress_manual.script Tue Jul 06 15:45:57 2010 +0300 @@ -0,0 +1,19 @@ +// Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// Test script for running manual graphics resource tests + +PRINT Run Graphics Resource Manual Stress Tests +// +LOAD_SUITE tgraphicsresource2 +RUN_TEST_STEP 10000 tgraphicsresource2 TSgGenericManual z:\sgresourcetest\sgresourcetest_t_stress_manual.ini diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsresourceservices/graphicsresourceimplementation/test/src/tgraphicsresourceinternalsecondprocess.cpp --- a/graphicsresourceservices/graphicsresourceimplementation/test/src/tgraphicsresourceinternalsecondprocess.cpp Wed Jun 23 19:41:15 2010 +0300 +++ b/graphicsresourceservices/graphicsresourceimplementation/test/src/tgraphicsresourceinternalsecondprocess.cpp Tue Jul 06 15:45:57 2010 +0300 @@ -1,4 +1,4 @@ -// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). // All rights reserved. // This component and the accompanying materials are made available // under the terms of "Eclipse Public License v1.0" @@ -33,13 +33,12 @@ TPckgBuf infoPkg; User::LeaveIfError(User::GetDesParameter(KSecondProcessParametersSlot, infoPkg)); TSgResIntTestInfo& info = infoPkg(); - TSgResInternalTestCase testCase = info.iTestCase; TInt result = 0; CTSgResInternalSecondProcessTestHandler* handler = CTSgResInternalSecondProcessTestHandler::NewLC(); handler->OpenDriverL(); - result = handler->RunTestCaseL(testCase, info); + result = handler->RunTestCaseL(info); CleanupStack::PopAndDestroy(handler); // Handle check diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsresourceservices/graphicsresourceimplementation/test/src/tgraphicsresourceinternalsecondprocesstesthandler.cpp --- a/graphicsresourceservices/graphicsresourceimplementation/test/src/tgraphicsresourceinternalsecondprocesstesthandler.cpp Wed Jun 23 19:41:15 2010 +0300 +++ b/graphicsresourceservices/graphicsresourceimplementation/test/src/tgraphicsresourceinternalsecondprocesstesthandler.cpp Tue Jul 06 15:45:57 2010 +0300 @@ -1,4 +1,4 @@ -// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). // All rights reserved. // This component and the accompanying materials are made available // under the terms of "Eclipse Public License v1.0" @@ -36,11 +36,11 @@ @param TInt The test case to be run */ -TInt CTSgResInternalSecondProcessTestHandler::RunTestCaseL(TInt aTestCase, TSgResIntTestInfo& aInfo) +TInt CTSgResInternalSecondProcessTestHandler::RunTestCaseL(const TSgResIntTestInfo& aInfo) { - RDebug::Printf("CTSgResSecondProcessTestHandler::RunTestCaseL(%i)", aTestCase); + RDebug::Printf("CTSgResSecondProcessTestHandler::RunTestCaseL(%i)", aInfo.iTestCase); TInt result = 0; - switch (aTestCase) + switch (aInfo.iTestCase) { case ESgResIntDriverMemoryLeak: TestDriverMemoryLeakL(); @@ -373,7 +373,7 @@ global memory usage and resource counts, when another process has created images and then called into this process. */ -TInt CTSgResInternalSecondProcessTestHandler::TestResourceProfiling(TSgResIntTestInfo& aInfo) +TInt CTSgResInternalSecondProcessTestHandler::TestResourceProfiling(const TSgResIntTestInfo& aInfo) { __UHEAP_MARK; TInt result = 0; diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsresourceservices/graphicsresourceimplementation/test/src/tgraphicsresourcesecondprocess.cpp --- a/graphicsresourceservices/graphicsresourceimplementation/test/src/tgraphicsresourcesecondprocess.cpp Wed Jun 23 19:41:15 2010 +0300 +++ b/graphicsresourceservices/graphicsresourceimplementation/test/src/tgraphicsresourcesecondprocess.cpp Tue Jul 06 15:45:57 2010 +0300 @@ -1,4 +1,4 @@ -// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). // All rights reserved. // This component and the accompanying materials are made available // under the terms of "Eclipse Public License v1.0" @@ -36,7 +36,7 @@ TBool result = EFalse; if(aInfo1.iPixelFormat == aInfo2.iPixelFormat && aInfo1.iSizeInPixels == aInfo2.iSizeInPixels - && aInfo1.iUsage | aInfo2.iUsage) + && aInfo1.iUsage == aInfo2.iUsage) { result = ETrue; } @@ -79,18 +79,14 @@ { result |= EFifthTestPassed; } - if (id == aInfo.iDrawableId) - { - result |= ESixthTestPassed; - } TUid uid = { 0x12345678 }; if (KErrNotSupported == image.GetAttribute(uid, attribVal)) { - result |= ESeventhTestPassed; + result |= ESixthTestPassed; } if (KErrArgument == image.GetAttribute(KNullUid, attribVal)) { - result |= EEighthTestPassed; + result |= ESeventhTestPassed; } image.Close(); @@ -258,8 +254,8 @@ /** Method executed by secondary thread for test TestOpenImageMulththreadedL */ -_LIT(KTestOpenImageMultithreadedSem1, "TestOpenImageMulththreadedSem1"); -_LIT(KTestOpenImageMultithreadedSem2, "TestOpenImageMulththreadedSem2"); +_LIT(KTestOpenImageMultithreadedSem1, "TestOpenImageMultithreadedSem1"); +_LIT(KTestOpenImageMultithreadedSem2, "TestOpenImageMultithreadedSem2"); TInt OpenImageMultiSecondThread(TAny* aAny) { @@ -296,11 +292,11 @@ The second thread will then close its handle to the image. The main thread will then attempt to access the data of the image. */ -TInt TestOpenImageMulththreadedL(TSgProcessTestInfo& aInfo) +TInt TestOpenImageMultithreadedL(TSgProcessTestInfo& aInfo) { TInt result = 0; - //create a semaphore + //create two semaphores RSemaphore sem[2]; User::LeaveIfError(sem[0].CreateGlobal(KTestOpenImageMultithreadedSem1, 0, EOwnerThread)); CleanupClosePushL(sem[0]); @@ -308,10 +304,9 @@ CleanupClosePushL(sem[1]); //create secondary thread - _LIT(KMultipleThreadName, "TestOpenImageMulththreadedL"); + _LIT(KSecondaryThreadName, "TestOpenImageMultithreadedL"); RThread thread; - TBuf<50> threadName(KMultipleThreadName); - User::LeaveIfError(thread.Create(threadName, OpenImageMultiSecondThread, KDefaultStackSize, KSecondThreadMinHeapSize, KSecondThreadMaxHeapSize, &aInfo)); + User::LeaveIfError(thread.Create(KSecondaryThreadName, OpenImageMultiSecondThread, KDefaultStackSize, KSecondThreadMinHeapSize, KSecondThreadMaxHeapSize, &aInfo)); thread.Resume(); // Make the second thread open the image before this thread. @@ -375,7 +370,7 @@ result = TestCloseDriverOpenResources(sgDriver); break; case ESgresSecondProcessOpenImageMultithreaded: - result = TestOpenImageMulththreadedL(info); + result = TestOpenImageMultithreadedL(info); break; } } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsresourceservices/graphicsresourceimplementation/test/src/tgraphicsresourceteststepbase.cpp --- a/graphicsresourceservices/graphicsresourceimplementation/test/src/tgraphicsresourceteststepbase.cpp Wed Jun 23 19:41:15 2010 +0300 +++ b/graphicsresourceservices/graphicsresourceimplementation/test/src/tgraphicsresourceteststepbase.cpp Tue Jul 06 15:45:57 2010 +0300 @@ -339,17 +339,17 @@ /** Helper function to test the equivalence of two TSgImageInfo structures. -@see CTDirectGdiContextTarget::CompareInfos @param aInfo1 A TSgImageInfo structure to compare. -@param aInfo2 A TSgImageInfo structure to compare. +@param aInfo2 A TSgImageInfo structure to compare (may have extra usage bits). -@return ETrue if the two are identical, EFalse otherwise. +@return ETrue if the two are equivalent, EFalse otherwise. */ TBool CTSgTestStepBase::CompareInfos(TSgImageInfo& aInfo1, TSgImageInfo& aInfo2) { return (aInfo1.iPixelFormat == aInfo2.iPixelFormat && aInfo1.iSizeInPixels == aInfo2.iSizeInPixels - && aInfo1.iUsage == aInfo2.iUsage); + // check that all requested usage bits are set in the returned usage bits + && !(aInfo1.iUsage & ~aInfo2.iUsage)); } /** @@ -621,13 +621,12 @@ { result |= EFirstTestPassed; } - TSgImageInfo info3; - if(KErrNone == image.GetInfo(info3)) + TSgImageInfo info; + if(KErrNone == image.GetInfo(info)) { result |= ESecondTestPassed; } - TSgImageInfo info4 = aInfo->iImageInfo; - if(CTSgTestStepBase::CompareInfos(info4, info3)) + if(CTSgTestStepBase::CompareInfos(aInfo->iImageInfo, info)) { result |= EThirdTestPassed; } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsresourceservices/graphicsresourceimplementation/test/src/tsggenericmanual.cpp --- a/graphicsresourceservices/graphicsresourceimplementation/test/src/tsggenericmanual.cpp Wed Jun 23 19:41:15 2010 +0300 +++ b/graphicsresourceservices/graphicsresourceimplementation/test/src/tsggenericmanual.cpp Tue Jul 06 15:45:57 2010 +0300 @@ -1,4 +1,4 @@ -// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). // All rights reserved. // This component and the accompanying materials are made available // under the terms of "Eclipse Public License v1.0" @@ -29,14 +29,17 @@ CTSgGenericManual::~CTSgGenericManual() { + iSecondProcess.Close(); + iMsgQ.Close(); } /** This is intented to be used for TestStressResourceLeakL (GRAPHICS-RESOURCE-0050) test. It creates images until the memory full situation. The images are kept in the passed RArray of RSgImage. The returned error code is expected to be either KErrNoMemory or KErrNoGraphicsMemory. +Optionally, it opens and closes a duplicate handle to each image in the same process and in another process. */ -TInt CTSgGenericManual::CreateImages(const TSgImageInfo& aInfo, RArray& aTestImages) +TInt CTSgGenericManual::CreateImages(const TSgImageInfo& aInfo, RArray& aTestImages, TBool aDuplicate) { TInt err = KErrNone; while(err == KErrNone) @@ -46,8 +49,30 @@ if(err == KErrNone) { err = aTestImages.Append(image); + if (err != KErrNone) + { + image.Close(); + return err; + } + if (aDuplicate) + { + RSgImage image2; + err = image2.Open(image.Id()); + if (err != KErrNone) + { + return err; + } + // send the image ID to the second process and wait until the + // second process has opened and closed a handle to the image + TRequestStatus status; + iSecondProcess.Rendezvous(status); + iMsgQ.SendBlocking(image.Id()); + User::WaitForRequest(status); + image2.Close(); + err = status.Int(); + } } - } + } return err; } @@ -80,11 +105,12 @@ @SYMTestCaseDesc RSgImage exhaustive and resource leak test @SYMPREQ PREQ2637 @SYMFssID RSgImage::Create(const TSgImageInfo&, const TAny*, TInt) - RSgImage::Close() + RSgImage::Open(TSgDrawableId) + RSgImage::Close() @SYMTestPriority Medium @SYMTestType CT @SYMTestPurpose To ensure no resource leaks while creating and destroying RSgImage multiple times -@SYMTestActions Create images until it returns no memomy error. Close the created images and +@SYMTestActions Create images until it returns no memory error. Close the created images and create as many images as possible until memory is full. Test the number of images created and also for each iteration the number of images created to be the same. @SYMTestExpectedResults There should be no panics or leaves. @@ -92,20 +118,51 @@ void CTSgGenericManual::TestStressResourceLeakL() { TestOpenDriverL(); - - const TInt KNumIterations = 100000; + _LIT(KSection, "TestStressResourceLeak"); + TInt numIterations; + if (!GetIntFromConfig(KSection, _L("NumIterations"), numIterations)) + { + numIterations = 2; + } + TInt tolerance; + if (!GetIntFromConfig(KSection, _L("Tolerance"), tolerance)) + { + tolerance = -1; + } + TInt width; + if (!GetIntFromConfig(KSection, _L("ImageWidth"), width)) + { + width = 1; + } + TInt height; + if (!GetIntFromConfig(KSection, _L("ImageHeight"), height)) + { + height = 1; + } TSgImageInfo info; info.iPixelFormat = EUidPixelFormatRGB_565; - info.iSizeInPixels = TSize(1, 1); + info.iSizeInPixels = TSize(width, height); info.iUsage = ESgUsageBitOpenVgImage; - + TBool duplicate; + if (!GetBoolFromConfig(KSection, _L("DuplicateHandle"), duplicate)) + { + duplicate = EFalse; + } + if (duplicate) + { + User::LeaveIfError(iMsgQ.CreateGlobal(KSgTestMultiprocessMsgQ, 1)); + _LIT(KProcessName, "tgraphicsresourcemanualsecondprocess.exe"); + User::LeaveIfError(iSecondProcess.Create(KProcessName, KNullDesC)); + iSecondProcess.Resume(); + } + RArray testImages; TInt count(0); TInt err = KErrNone; - for(TInt i=0; i 0 && count != thisCount) + if (i == 0) + { + count = thisCount; + } + else { - ERR_PRINTF4(_L("Mismatch @ iteration %d : Was %d, now %d"), i, count, thisCount); - } - count = thisCount; + if (count != thisCount) + { + INFO_PRINTF4(_L("Mismatch @ iteration %d: initial %d, now %d"), i, count, thisCount); + } + if (tolerance >= 0) + { + TEST(Abs(count - thisCount) <= tolerance); + } + } } - INFO_PRINTF2(_L("%d images created \r\n"), count); + INFO_PRINTF2(_L("Last iteration: %d images created\r\n"), count); + if (duplicate) + { + // send a null ID to tell the second process to kill itself + // and wait until the second process terminates + TRequestStatus status; + iSecondProcess.Logon(status); + iMsgQ.SendBlocking(KSgNullDrawableId); + User::WaitForRequest(status); + iMsgQ.Close(); + iSecondProcess.Close(); + } TestCloseDriver(); } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsresourceservices/graphicsresourceimplementation/test/src/tsggenericmanualsecondprocess.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/graphicsresourceservices/graphicsresourceimplementation/test/src/tsggenericmanualsecondprocess.cpp Tue Jul 06 15:45:57 2010 +0300 @@ -0,0 +1,61 @@ +// Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// + +#include +#include +#include "tgraphicsresourcemultiprocessthread.h" + +// The second process waits for image IDs sent by the main test process +// and opens and closes RSgImage handles to the corresponding images. +// Image IDs are received through a message queue and synchronisation +// with the main process is achieved by means of rendezvous objects. +// A null ID indicates the end of the test. +void MainL() + { + RSgDriver driver; + User::LeaveIfError(driver.Open()); + CleanupClosePushL(driver); + RMsgQueue msgQ; + User::LeaveIfError(msgQ.OpenGlobal(KSgTestMultiprocessMsgQ)); + CleanupClosePushL(msgQ); + for (;;) + { + TSgDrawableId id; + msgQ.ReceiveBlocking(id); + if (id == KSgNullDrawableId) + { + break; + } + RSgImage image; + TInt err = image.Open(id); + image.Close(); + RProcess::Rendezvous(err); + } + CleanupStack::PopAndDestroy(2); + } + +GLDEF_C TInt E32Main() + { + __UHEAP_MARK; + CTrapCleanup* cleanup = CTrapCleanup::New(); + if (!cleanup) + { + return KErrNoMemory; + } + TRAPD(ret, MainL()); + delete cleanup; + __UHEAP_MARKEND; + return ret; + } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsresourceservices/graphicsresourceimplementation/test/src/tsgimagegeneric.cpp --- a/graphicsresourceservices/graphicsresourceimplementation/test/src/tsgimagegeneric.cpp Wed Jun 23 19:41:15 2010 +0300 +++ b/graphicsresourceservices/graphicsresourceimplementation/test/src/tsgimagegeneric.cpp Tue Jul 06 15:45:57 2010 +0300 @@ -1,4 +1,4 @@ -// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). // All rights reserved. // This component and the accompanying materials are made available // under the terms of "Eclipse Public License v1.0" @@ -580,7 +580,10 @@ image1.GetInfo(getInfo1); image2.GetInfo(getInfo2); - TEST(CompareInfos(getInfo1, getInfo2)); + TEST(CompareInfos(info1, getInfo1)); + TEST(getInfo1.iPixelFormat == getInfo2.iPixelFormat + && getInfo1.iSizeInPixels == getInfo2.iSizeInPixels + && getInfo1.iUsage == getInfo2.iUsage); if (iEnableConformanceTests) { @@ -602,7 +605,7 @@ TEST(testResult & EEighthTestPassed); //opening image in a second process - TSgProcessTestInfo processInfo(id1, info1, ESgresSecondProcessOpenImage); + TSgProcessTestInfo processInfo(id1, getInfo1, ESgresSecondProcessOpenImage); TRAP(err, testResult = CreateSecondProcessAndDoTestL(KSecondProcess, processInfo)); TEST(err == KErrNone); TEST(testResult >= 0); @@ -614,7 +617,6 @@ TEST(testResult & EFifthTestPassed); TEST(testResult & ESixthTestPassed); TEST(testResult & ESeventhTestPassed); - TEST(testResult & EEighthTestPassed); } image1.Close(); diff -r 7f25ef56562d -r 29ddb8a72f0e graphicstest/graphicstestharness/automation/graphicssystemgui.sysdef.xml --- a/graphicstest/graphicstestharness/automation/graphicssystemgui.sysdef.xml Wed Jun 23 19:41:15 2010 +0300 +++ b/graphicstest/graphicstestharness/automation/graphicssystemgui.sysdef.xml Tue Jul 06 15:45:57 2010 +0300 @@ -249,7 +249,7 @@ - + @@ -263,18 +263,8 @@ - - - - - - - - - - diff -r 7f25ef56562d -r 29ddb8a72f0e graphicstest/graphicstestharness/automation/h4/roms.txt --- a/graphicstest/graphicstestharness/automation/h4/roms.txt Wed Jun 23 19:41:15 2010 +0300 +++ b/graphicstest/graphicstestharness/automation/h4/roms.txt Tue Jul 06 15:45:57 2010 +0300 @@ -1,32 +1,32 @@ -RomAndAutoRom('armv5','h4hrp pagedrom techview platsec graphics_test.iby','-D__MMC -D_NAND2 -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_BASE_USE_GCE -DSYMBIAN_GRAPHICS_USE_GCE -DSYMBIAN_GRAPHICS_ADAPTATION=SGA_SW','h4hrp_graphics0a_armv5_dpdef','Graphics Test ROM (0a) DP Default','','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_00a.txt','') -RomAndAutoRom('armv5','h4hrp pagedrom techview platsec graphics_testharness.iby outlineshadow.iby FntStoreRebootTests.iby','-D__MMC -DGRAPHICS_MISTRAL_ROM -D_NAND2 -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_BASE_USE_GCE -DSYMBIAN_GRAPHICS_USE_GCE -DSYMBIAN_GRAPHICS_ADAPTATION=SGA_SW -DGRAPHICS_EXCLUDE_FREETYPE','h4hrp_graphics0b_armv5_dpdef','Graphics Test ROM (0b) - Outline Shadow DP Default','','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_00b.txt','') -RomAndAutoRom('armv5','h4hrp pagedrom techview platsec graphics_test.iby','-D__MMC -D_NAND2 -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_BASE_USE_GCE -DSYMBIAN_GRAPHICS_USE_GCE -DSYMBIAN_GRAPHICS_ADAPTATION=SGA_SW -DFBSRASTERIZER_DRV="^<"fbsrasterizer_test.iby"^>"','h4hrp_graphics0c_armv5_dpdef','Graphics Test ROM (0c) - Example Rasterizer Included DP Default','','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_00c.txt','') -RomAndAutoRom('armv5','h4hrp pagedrom techview platsec graphics_test1.iby','-D__MMC -D_NAND2 -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_BASE_USE_GCE -DSYMBIAN_GRAPHICS_USE_GCE -DSYMBIAN_GRAPHICS_ADAPTATION=SGA_SW','h4hrp_graphics1_armv5_dpdef','Graphics Test ROM (1) DP Default','','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_01.txt','') -RomAndAutoRom('armv5','h4hrp pagedrom techview platsec graphics_test1.iby fbsrasterizertests.iby','-D__MMC -D_NAND2 -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_BASE_USE_GCE -DSYMBIAN_GRAPHICS_USE_GCE -DSYMBIAN_GRAPHICS_ADAPTATION=SGA_SW -DFBSRASTERIZER_DRV="^<"fbsrasterizer_test.iby"^>"','h4hrp_graphics1a_armv5_dpdef','Graphics Test ROM (1a) - FbsRasterizer DP Default','','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_01a.txt','') -RomAndAutoRom('armv5','h4hrp pagedrom techview platsec graphics_test2.iby internaltestfonts.iby','-D__MMC -D_NAND2 -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_BASE_USE_GCE -DSYMBIAN_GRAPHICS_USE_GCE -DSYMBIAN_GRAPHICS_ADAPTATION=SGA_SW','h4hrp_graphics2_armv5_dpdef','Graphics Test ROM (2) DP Default','','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_02.txt','') -RomAndAutoRom('armv5','h4hrp pagedrom techview platsec graphics_testharness.iby openvgtest.iby','-D__MMC -D_NAND2 -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_BASE_USE_GCE -DSYMBIAN_GRAPHICS_USE_GCE -DSYMBIAN_GRAPHICS_ADAPTATION=SGA_SW','h4hrp_graphics3_armv5_dpdef','Graphics Test ROM (3) - OpenVG DP Default','\epoc32\data\z\graphics\wsini_integ.ini,\epoc32\data\z\system\data\wsini.ini','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_03.txt','') -RomAndAutoRom('armv5','h4hrp pagedrom techview platsec graphics_testharness.iby supplieropenvgtest.iby','-D__MMC -D_NAND2 -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_BASE_USE_GCE -DSYMBIAN_GRAPHICS_USE_GCE -DSYMBIAN_GRAPHICS_ADAPTATION=SGA_SW','h4hrp_graphics3a_armv5_dpdef','Graphics Test ROM (3a) - OpenVG tests requiring USB/Memory Card support DP Default','\epoc32\data\z\graphics\wsini_integ.ini,\epoc32\data\z\system\data\wsini.ini','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_03a.txt' ,'') -RomAndAutoRom('armv5','h4hrp pagedrom techview platsec wserv.oby','-D__MMC -D_NAND2 -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_BASE_USE_GCE -DSYMBIAN_GRAPHICS_USE_GCE -DSYMBIAN_GRAPHICS_ADAPTATION=SGA_SW','h4hrp_graphics4_armv5_dpdef','Graphics Test ROM (4) - WServ DP Default','\epoc32\data\z\system\data\ws_test.ini,\epoc32\data\z\system\data\wsini.ini','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_04.txt','') -RomAndAutoRom('armv5','h4hrp pagedrom techview platsec wserv.oby','-D__MMC -D_NAND2 -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_BASE_USE_GCE -DSYMBIAN_GRAPHICS_USE_GCE -DSYMBIAN_GRAPHICS_ADAPTATION=SGA_SW','h4hrp_graphics4ct_armv5_dpdef','Graphics Test ROM (4ct) - WServ Change Tracking DP Default','\epoc32\data\z\system\data\ws_test_changetracking.ini,\epoc32\data\z\system\data\wsini.ini','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_04ct.txt','') -RomAndAutoRom('armv5','h4hrp pagedrom techview platsec graphics_testharness.iby te_uibench.iby','-D__MMC -D_NAND2 -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_BASE_USE_GCE -DSYMBIAN_GRAPHICS_USE_GCE -DSYMBIAN_GRAPHICS_ADAPTATION=SGA_SW -DFBSRASTERIZER_DRV="^<"fbsrasterizer_test.iby"^>"','h4hrp_graphics5a_armv5_dpdef','Graphics Test ROM (5a) - UIBench DP Default','','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_05a.txt','') -RomAndAutoRom('armv5','h4hrp pagedrom techview platsec graphics_testharness.iby internaltestfonts.iby te_outlineshadow.iby','-D__MMC -D_NAND2 -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_BASE_USE_GCE -DSYMBIAN_GRAPHICS_USE_GCE -DSYMBIAN_GRAPHICS_ADAPTATION=SGA_SW -DGRAPHICS_EXCLUDE_FREETYPE','h4hrp_graphics5b_armv5_dpdef','Graphics Test ROM (5b) - UIBench - Outline Shadow DP Default','','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_05b.txt','') -RomAndAutoRom('armv5','h4hrp pagedrom techview platsec graphics_testharness.iby te_uibench_s60.iby egl.iby opengles.iby openvg.iby internaltestfonts.iby','-D__MMC -D_NAND2 -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_BASE_USE_GCE -DSYMBIAN_GRAPHICS_USE_GCE -DSYMBIAN_GRAPHICS_ADAPTATION=SGA_SW -DFBSRASTERIZER_DRV="^<"fbsrasterizer_test.iby"^>"','h4hrp_uibench_s60_armv5_dpdef','Graphics Test ROM UIBench S60 DP Default','','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_uibench_s60.txt','') -RomAndAutoRom('armv5','h4hrp pagedrom techview platsec graphics_test2.iby wservtest.iby csc_plugin.iby','-D__MMC -D_NAND2 -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_BASE_USE_GCE -DSYMBIAN_GRAPHICS_USE_GCE -DSYMBIAN_GRAPHICS_ADAPTATION=SGA_SW','h4hrp_graphics7_armv5_dpdef','Graphics Test ROM (7) DP Default','\epoc32\data\z\graphics\wsini_integ_color64k.ini,\epoc32\data\z\system\data\wsini.ini','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_07.txt','') -RomAndAutoRom('armv5','h4hrp pagedrom techview platsec t_wservinteg.iby opengles.iby graphics_testharness.iby','-D__MMC -D_NAND2 -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_BASE_USE_GCE -DSYMBIAN_GRAPHICS_USE_GCE -DSYMBIAN_GRAPHICS_ADAPTATION=SGA_SW','h4hrp_graphics8_armv5_dpdef','Graphics Test ROM (8) - WServ Integ DP Default','\epoc32\data\z\graphics\wsini_integ.ini,\epoc32\data\z\system\data\wsini.ini;\epoc32\data\z\system\data\testexecute_modified.ini,\epoc32\data\z\system\data\testexecute.ini','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_08.txt','') -RomAndAutoRom('armv5','h4hrp pagedrom textshell platsec surfacemanagertest.iby wservtest.iby gce_tests.iby tdisplaychannel.iby','-D__MMC -D_NAND2 -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_BASE_USE_GCE -DSYMBIAN_GRAPHICS_USE_GCE','h4hrp_graphics9_armv5_dpdef','Graphics Test ROM (9) - Hybrid GCE DP Default','','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_09.txt','') -RomAndAutoRom('armv5','h4hrp pagedrom techview platsec graphics_test2.iby wservtest.iby csc_plugin.iby','-D__MMC -D_NAND2 -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_BASE_USE_GCE -DSYMBIAN_GRAPHICS_USE_GCE -DSYMBIAN_GRAPHICS_ADAPTATION=SGA_SW','h4hrp_graphics12_armv5_dpdef','Graphics Test ROM (12) DP Default','\epoc32\data\z\graphics\wsini_integ_color16ma.ini,\epoc32\data\z\system\data\wsini.ini','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_12.txt','') -RomAndAutoRom('armv5','h4hrp pagedrom techview platsec graphics_testharness.iby t_wservgenericplugin.iby','-D__MMC -D_NAND2 -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_BASE_USE_GCE -DSYMBIAN_GRAPHICS_USE_GCE -DSYMBIAN_GRAPHICS_ADAPTATION=SGA_SW','h4hrp_graphics13_armv5_dpdef','Graphics Test ROM (13) - Generic Plugin DP Default','\epoc32\data\z\wstest\genericplugin\wsini_nga.ini,\epoc32\data\z\system\data\wsini.ini','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_13.txt','') -RomAndAutoRom('armv5','h4hrp pagedrom techview platsec graphics_testharness.iby twservstresstest.iby','-D__MMC -D_NAND2 -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_BASE_USE_GCE -DSYMBIAN_GRAPHICS_USE_GCE','h4hrp_graphics15_armv5_dpdef','Graphics Test ROM (15) - Stress DP Default','','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_15.txt','') -RomAndAutoRom('armv5','h4hrp pagedrom techview platsec graphics_testharness.iby t_extendedbitmaprenderstage.iby','-D__MMC -D_NAND2 -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_BASE_USE_GCE -DSYMBIAN_GRAPHICS_USE_GCE','h4hrp_graphics16_armv5_dpdef','Graphics Test ROM (16) - Extended Bitmap Render Stage DP Default','\epoc32\data\z\wstest\textendedbitmap\wsini.ini,\epoc32\data\z\system\data\wsini.ini','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_16.txt','') -RomAndAutoRom('armv5','h4hrp pagedrom techview platsec graphics_testharness.iby t_ratelimiter.iby','-D__MMC -D_NAND2 -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_BASE_USE_GCE -DSYMBIAN_GRAPHICS_USE_GCE','h4hrp_graphics17_armv5_dpdef','Graphics Test ROM (17) - Rate Limiter DP Default','\epoc32\data\z\wstest\ratelimiter\wsini.ini,\epoc32\data\z\system\data\wsini.ini','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_17.txt','') -RomAndAutoRom('armv5','h4hrp pagedrom minigui platsec graphics_testharness.iby csc_plugin.iby tcsc.iby openvgtest.iby surfaceupdatetest_integ.iby t_gcenotification.iby graphics_test2.iby','-D__MMC -D_NAND2 -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_BASE_USE_GCE -DSYMBIAN_GRAPHICS_USE_GCE','h4hrp_graphics18_armv5_dpdef','Graphics Test ROM (18) - Composited Screen Capture DP Default','\epoc32\data\z\wstest\wsini_csc_nga_qvga.ini,\epoc32\data\z\wsini_minigui.ini;\epoc32\data\z\graphicstest\testexecute_minigui.ini,\epoc32\data\z\system\data\testexecute.ini','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_18.txt','') -RomAndAutoRom('armv5','h4hrp pagedrom minigui platsec graphics_testharness.iby csc_plugin.iby tcsc.iby egltesthybrid.iby','-D__MMC -D_NAND2 -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_BASE_USE_GCE -DSYMBIAN_GRAPHICS_USE_GCE','h4hrp_graphicseglhybrid_armv5_dpdef','Graphics Test ROM (eglhybrid) - EGL Hybrid Graphics Implementation DP Default','\epoc32\data\z\wstest\wsini_csc_nga_qvga.ini,\epoc32\data\z\wsini_minigui.ini;\epoc32\data\z\graphicstest\testexecute_minigui.ini,\epoc32\data\z\system\data\testexecute.ini','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_eglhybrid.txt','') -RomAndAutoRom('armv5','h4hrp pagedrom minigui platsec graphics_testharness.iby csc_plugin.iby tcsc.iby egltestref.iby','-D__MMC -D_NAND2 -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_BASE_USE_GCE -DSYMBIAN_GRAPHICS_USE_GCE -DSYMBIAN_GRAPHICS_USE_EGL_REF','h4hrp_graphicseglref_armv5_dpdef','Graphics Test ROM (eglref) - EGL Reference Graphics Implementation DP Default','\epoc32\data\z\wstest\wsini_csc_nga_qvga.ini,\epoc32\data\z\wsini_minigui.ini;\epoc32\data\z\graphicstest\testexecute_minigui.ini,\epoc32\data\z\system\data\testexecute.ini','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_eglref.txt','') -RomAndAutoRom('armv5','h4hrp pagedrom techview platsec graphics_testharness.iby talf.iby','-D__MMC -D_NAND2 -DUSE_SDIO_SD_MMC -DSYMBIAN_BASE_USE_GCE -DSYMBIAN_GRAPHICS_USE_GCE','h4hrp_graphics23_armv5_dpdef','Graphics Test ROM (23) - ALF/ChangeTracking DP Default','\epoc32\data\z\talf\wsini.ini,\epoc32\data\z\system\data\wsini.ini','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_23.txt','') -RomAndAutoRom('armv5','h4hrp pagedrom techview platsec graphics_testharness.iby t_eventchecker.iby t_bitgdirenderstage.iby wserv.oby','-D__MMC -D_NAND2 -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_BASE_USE_GCE -DSYMBIAN_GRAPHICS_USE_GCE -DRVT','h4hrp_graphics24_armv5_dpdef','Graphics Test ROM (24) - BitGDI Renderstage DP Default','\epoc32\data\z\wstest\tbitgdirenderstage\arm\wsini.ini,\epoc32\data\z\system\data\wsini.ini','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_24.txt','') -RomAndAutoRom('armv5','h4hrp pagedrom techview platsec wserv.oby graphics_testharness.iby talf.iby','-D__MMC -D_NAND2 -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_BASE_USE_GCE -DSYMBIAN_GRAPHICS_USE_GCE -DSYMBIAN_GRAPHICS_ADAPTATION=SGA_SW','h4hrp_graphics25_armv5_dpdef','Graphics Test ROM (25) - ALF/ChangeTracking per screen DP Default','\epoc32\data\z\talf\wsini_ct_per_screen.ini,\epoc32\data\z\system\data\wsini.ini','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_25.txt','') -RomAndAutoRom('armv5','h4hrp pagedrom techview platsec graphics_testharness.iby tlayercompositiontest.iby csc_plugin.iby tcsc.iby','-D__MMC -D_NAND2 -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_BASE_USE_GCE -DSYMBIAN_GRAPHICS_USE_GCE -DSYMBIAN_GRAPHICS_ADAPTATION=SGA_SW','h4hrp_graphics29a_armv5_dpdef','Graphics Test ROM (29a) - Layer Composition DP Default','\epoc32\data\z\tlayercomposition\wsini.ini,\epoc32\data\z\system\data\wsini.ini','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_29a.txt','') -RomAndAutoRom('armv5','h4hrp pagedrom techview platsec graphics_testharness.iby tlayercompositiontest.iby csc_plugin.iby tcsc.iby','-D__MMC -D_NAND2 -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_BASE_USE_GCE -DSYMBIAN_GRAPHICS_USE_GCE -DSYMBIAN_GRAPHICS_ADAPTATION=SGA_SW','h4hrp_graphics29b_armv5_dpdef','Graphics Test ROM (29b) - Layer Composition, No Autoclear DP Default','\epoc32\data\z\tlayercomposition\wsini_noautoclear.ini,\epoc32\data\z\system\data\wsini.ini','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_29b.txt','') -RomAndAutoRom('armv5','h4hrp pagedrom techview platsec appfwk_test.iby','-D__MMC -D_NAND2 -DUSE_SDIO_SD_MMC -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_BASE_USE_GCE -DSYMBIAN_GRAPHICS_USE_GCE -D_DEBUG','h4hrp_uiframeworks_armv5_dpdef','UI Frameworks DP Default','','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_uif.txt','') -RomAndAutoRom('armv5','h4hrp pagedrom techview platsec graphics_testharness.iby sgresourcetest.iby opengles.iby','-D__MMC -D_NAND2 -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_BASE_USE_GCE -DSYMBIAN_GRAPHICS_USE_GCE -DSYMBIAN_GRAPHICS_ADAPTATION=SGA_SW','h4hrp_graphicsresource_armv5_dpdef','Graphics Test ROM (GRI) - Graphics Resource DP Default','','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_gri.txt','') +RomAndAutoRom('armv5','h4hrp minigui pagedrom platsec graphics_test.iby','-D__MMC -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_GRAPHICS_ADAPTATION=SGA_SW','h4hrp_graphics0a_armv5_dpdef','Graphics Test ROM (0a) DP Default','','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_00a.txt','') +RomAndAutoRom('armv5','h4hrp minigui pagedrom platsec graphics_testharness.iby outlineshadow.iby FntStoreRebootTests.iby','-D__MMC -DGRAPHICS_MISTRAL_ROM -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_GRAPHICS_ADAPTATION=SGA_SW -DGRAPHICS_EXCLUDE_FREETYPE','h4hrp_graphics0b_armv5_dpdef','Graphics Test ROM (0b) - Outline Shadow DP Default','','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_00b.txt','') +RomAndAutoRom('armv5','h4hrp minigui pagedrom platsec graphics_test.iby','-D__MMC -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_GRAPHICS_ADAPTATION=SGA_SW -DFBSRASTERIZER_DRV="^<"fbsrasterizer_test.iby"^>"','h4hrp_graphics0c_armv5_dpdef','Graphics Test ROM (0c) - Example Rasterizer Included DP Default','','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_00c.txt','') +RomAndAutoRom('armv5','h4hrp minigui pagedrom platsec graphics_test1.iby','-D__MMC -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_GRAPHICS_ADAPTATION=SGA_SW','h4hrp_graphics1_armv5_dpdef','Graphics Test ROM (1) DP Default','','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_01.txt','') +RomAndAutoRom('armv5','h4hrp minigui pagedrom platsec graphics_test1.iby fbsrasterizertests.iby','-D__MMC -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_GRAPHICS_ADAPTATION=SGA_SW -DFBSRASTERIZER_DRV="^<"fbsrasterizer_test.iby"^>"','h4hrp_graphics1a_armv5_dpdef','Graphics Test ROM (1a) - FbsRasterizer DP Default','','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_01a.txt','') +RomAndAutoRom('armv5','h4hrp minigui pagedrom platsec graphics_test2.iby internaltestfonts.iby','-D__MMC -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_GRAPHICS_ADAPTATION=SGA_SW','h4hrp_graphics2_armv5_dpdef','Graphics Test ROM (2) DP Default','','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_02.txt','') +RomAndAutoRom('armv5','h4hrp minigui pagedrom platsec graphics_testharness.iby openvgtest.iby',' -D__MMC -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_GRAPHICS_ADAPTATION=SGA_SW','h4hrp_graphics3_armv5_dpdef','Graphics Test ROM (3) - OpenVG DP Default','\epoc32\data\z\graphics\wsini_integ.ini,\epoc32\data\z\system\data\wsini.ini','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_03.txt','') +RomAndAutoRom('armv5','h4hrp minigui pagedrom platsec graphics_testharness.iby supplieropenvgtest.iby','-D__MMC -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_GRAPHICS_ADAPTATION=SGA_SW','h4hrp_graphics3a_armv5_dpdef','Graphics Test ROM (3a) - OpenVG tests requiring USB/Memory Card support DP Default','\epoc32\data\z\graphics\wsini_integ.ini,\epoc32\data\z\system\data\wsini.ini','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_03a.txt' ,'') +RomAndAutoRom('armv5','h4hrp minigui pagedrom platsec wserv.oby','-D__MMC -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_GRAPHICS_ADAPTATION=SGA_SW','h4hrp_graphics4_armv5_dpdef','Graphics Test ROM (4) - WServ DP Default','\epoc32\data\z\system\data\ws_test.ini,\epoc32\data\z\system\data\wsini.ini','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_04.txt','') +RomAndAutoRom('armv5','h4hrp minigui pagedrom platsec wserv.oby','-D__MMC -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_GRAPHICS_ADAPTATION=SGA_SW','h4hrp_graphics4ct_armv5_dpdef','Graphics Test ROM (4ct) - WServ Change Tracking DP Default','\epoc32\data\z\system\data\ws_test_changetracking.ini,\epoc32\data\z\system\data\wsini.ini','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_04ct.txt','') +RomAndAutoRom('armv5','h4hrp minigui pagedrom platsec graphics_testharness.iby te_uibench.iby','-D__MMC -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_GRAPHICS_ADAPTATION=SGA_SW -DFBSRASTERIZER_DRV="^<"fbsrasterizer_test.iby"^>"','h4hrp_graphics5a_armv5_dpdef','Graphics Test ROM (5a) - UIBench DP Default','','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_05a.txt','') +RomAndAutoRom('armv5','h4hrp minigui pagedrom platsec graphics_testharness.iby internaltestfonts.iby te_outlineshadow.iby','-D__MMC -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_GRAPHICS_ADAPTATION=SGA_SW -DGRAPHICS_EXCLUDE_FREETYPE','h4hrp_graphics5b_armv5_dpdef','Graphics Test ROM (5b) - UIBench - Outline Shadow DP Default','','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_05b.txt','') +RomAndAutoRom('armv5','h4hrp minigui pagedrom platsec graphics_testharness.iby te_uibench_s60.iby egl.iby opengles.iby openvg.iby internaltestfonts.iby','-D__MMC -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_GRAPHICS_ADAPTATION=SGA_SW -DFBSRASTERIZER_DRV="^<"fbsrasterizer_test.iby"^>"','h4hrp_uibench_s60_armv5_dpdef','Graphics Test ROM UIBench S60 DP Default','','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_uibench_s60.txt','') +RomAndAutoRom('armv5','h4hrp minigui pagedrom platsec graphics_test2.iby wservtest.iby csc_plugin.iby','-D__MMC -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_GRAPHICS_ADAPTATION=SGA_SW','h4hrp_graphics7_armv5_dpdef','Graphics Test ROM (7) DP Default','\epoc32\data\z\graphics\wsini_integ_color64k.ini,\epoc32\data\z\system\data\wsini.ini','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_07.txt','') +RomAndAutoRom('armv5','h4hrp minigui pagedrom platsec t_wservinteg.iby opengles.iby graphics_testharness.iby','-D__MMC -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_GRAPHICS_ADAPTATION=SGA_SW','h4hrp_graphics8_armv5_dpdef','Graphics Test ROM (8) - WServ Integ DP Default','\epoc32\data\z\graphics\wsini_integ.ini,\epoc32\data\z\system\data\wsini.ini;\epoc32\data\z\system\data\testexecute_modified.ini,\epoc32\data\z\system\data\testexecute.ini','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_08.txt','') +RomAndAutoRom('armv5','h4hrp pagedrom textshell platsec surfacemanagertest.iby wservtest.iby gce_tests.iby tdisplaychannel.iby','-D__MMC -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_BASE_USE_GCE -DSYMBIAN_GRAPHICS_USE_GCE','h4hrp_graphics9_armv5_dpdef','Graphics Test ROM (9) - Hybrid GCE DP Default','','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_09.txt','') +RomAndAutoRom('armv5','h4hrp minigui pagedrom platsec graphics_test2.iby wservtest.iby csc_plugin.iby','-D__MMC -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_GRAPHICS_ADAPTATION=SGA_SW','h4hrp_graphics12_armv5_dpdef','Graphics Test ROM (12) DP Default','\epoc32\data\z\graphics\wsini_integ_color16ma.ini,\epoc32\data\z\system\data\wsini.ini','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_12.txt','') +RomAndAutoRom('armv5','h4hrp minigui pagedrom platsec graphics_testharness.iby t_wservgenericplugin.iby','-D__MMC -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_GRAPHICS_ADAPTATION=SGA_SW','h4hrp_graphics13_armv5_dpdef','Graphics Test ROM (13) - Generic Plugin DP Default','\epoc32\data\z\wstest\genericplugin\wsini_nga.ini,\epoc32\data\z\system\data\wsini.ini','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_13.txt','') +RomAndAutoRom('armv5','h4hrp minigui pagedrom platsec graphics_testharness.iby twservstresstest.iby','-D__MMC -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_BASE_USE_GCE -DSYMBIAN_GRAPHICS_USE_GCE','h4hrp_graphics15_armv5_dpdef','Graphics Test ROM (15) - Stress DP Default','','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_15.txt','') +RomAndAutoRom('armv5','h4hrp minigui pagedrom platsec graphics_testharness.iby t_extendedbitmaprenderstage.iby','-D__MMC -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_BASE_USE_GCE -DSYMBIAN_GRAPHICS_USE_GCE','h4hrp_graphics16_armv5_dpdef','Graphics Test ROM (16) - Extended Bitmap Render Stage DP Default','\epoc32\data\z\wstest\textendedbitmap\wsini.ini,\epoc32\data\z\system\data\wsini.ini','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_16.txt','') +RomAndAutoRom('armv5','h4hrp minigui pagedrom platsec graphics_testharness.iby t_ratelimiter.iby','-D__MMC -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_BASE_USE_GCE -DSYMBIAN_GRAPHICS_USE_GCE','h4hrp_graphics17_armv5_dpdef','Graphics Test ROM (17) - Rate Limiter DP Default','\epoc32\data\z\wstest\ratelimiter\wsini.ini,\epoc32\data\z\system\data\wsini.ini','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_17.txt','') +RomAndAutoRom('armv5','h4hrp pagedrom minigui platsec graphics_testharness.iby csc_plugin.iby tcsc.iby openvgtest.iby surfaceupdatetest_integ.iby t_gcenotification.iby graphics_test2.iby','-D__MMC -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_BASE_USE_GCE -DSYMBIAN_GRAPHICS_USE_GCE','h4hrp_graphics18_armv5_dpdef','Graphics Test ROM (18) - Composited Screen Capture DP Default','\epoc32\data\z\wstest\wsini_csc_nga_qvga.ini,\epoc32\data\z\wsini_minigui.ini;\epoc32\data\z\graphicstest\testexecute_minigui.ini,\epoc32\data\z\system\data\testexecute.ini','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_18.txt','') +RomAndAutoRom('armv5','h4hrp pagedrom minigui platsec graphics_testharness.iby csc_plugin.iby tcsc.iby egltesthybrid.iby','-D__MMC -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_BASE_USE_GCE -DSYMBIAN_GRAPHICS_USE_GCE','h4hrp_graphicseglhybrid_armv5_dpdef','Graphics Test ROM (eglhybrid) - EGL Hybrid Graphics Implementation DP Default','\epoc32\data\z\wstest\wsini_csc_nga_qvga.ini,\epoc32\data\z\wsini_minigui.ini;\epoc32\data\z\graphicstest\testexecute_minigui.ini,\epoc32\data\z\system\data\testexecute.ini','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_eglhybrid.txt','') +RomAndAutoRom('armv5','h4hrp pagedrom minigui platsec graphics_testharness.iby csc_plugin.iby tcsc.iby egltestref.iby','-D__MMC -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_GRAPHICS_USE_EGL_REF','h4hrp_graphicseglref_armv5_dpdef','Graphics Test ROM (eglref) - EGL Reference Graphics Implementation DP Default','\epoc32\data\z\wstest\wsini_csc_nga_qvga.ini,\epoc32\data\z\wsini_minigui.ini;\epoc32\data\z\graphicstest\testexecute_minigui.ini,\epoc32\data\z\system\data\testexecute.ini','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_eglref.txt','') +RomAndAutoRom('armv5','h4hrp minigui pagedrom platsec graphics_testharness.iby talf.iby','-D__MMC -DUSE_SDIO_SD_MMC -DSYMBIAN_BASE_USE_GCE -DSYMBIAN_GRAPHICS_USE_GCE','h4hrp_graphics23_armv5_dpdef','Graphics Test ROM (23) - ALF/ChangeTracking DP Default','\epoc32\data\z\talf\wsini.ini,\epoc32\data\z\system\data\wsini.ini','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_23.txt','') +RomAndAutoRom('armv5','h4hrp minigui pagedrom platsec graphics_testharness.iby t_eventchecker.iby t_bitgdirenderstage.iby wserv.oby','-D__MMC -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DRVT','h4hrp_graphics24_armv5_dpdef','Graphics Test ROM (24) - BitGDI Renderstage DP Default','\epoc32\data\z\wstest\tbitgdirenderstage\arm\wsini.ini,\epoc32\data\z\system\data\wsini.ini','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_24.txt','') +RomAndAutoRom('armv5','h4hrp minigui pagedrom platsec wserv.oby graphics_testharness.iby talf.iby','-D__MMC -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_GRAPHICS_ADAPTATION=SGA_SW','h4hrp_graphics25_armv5_dpdef','Graphics Test ROM (25) - ALF/ChangeTracking per screen DP Default','\epoc32\data\z\talf\wsini_ct_per_screen.ini,\epoc32\data\z\system\data\wsini.ini','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_25.txt','') +RomAndAutoRom('armv5','h4hrp minigui pagedrom platsec graphics_testharness.iby tlayercompositiontest.iby csc_plugin.iby tcsc.iby','-D__MMC -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_GRAPHICS_ADAPTATION=SGA_SW','h4hrp_graphics29a_armv5_dpdef','Graphics Test ROM (29a) - Layer Composition DP Default','\epoc32\data\z\tlayercomposition\wsini.ini,\epoc32\data\z\system\data\wsini.ini','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_29a.txt','') +RomAndAutoRom('armv5','h4hrp minigui pagedrom platsec graphics_testharness.iby tlayercompositiontest.iby csc_plugin.iby tcsc.iby','-D__MMC -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_GRAPHICS_ADAPTATION=SGA_SW','h4hrp_graphics29b_armv5_dpdef','Graphics Test ROM (29b) - Layer Composition, No Autoclear DP Default','\epoc32\data\z\tlayercomposition\wsini_noautoclear.ini,\epoc32\data\z\system\data\wsini.ini','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_29b.txt','') +RomAndAutoRom('armv5','h4hrp minigui pagedrom platsec appfwk_test.iby','-D__MMC -DUSE_SDIO_SD_MMC -DUSE_24UBPP_DISPLAY_VARIANT_TV -D_DEBUG','h4hrp_uiframeworks_armv5_dpdef','UI Frameworks DP Default','','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_uif.txt','') +RomAndAutoRom('armv5','h4hrp minigui pagedrom platsec graphics_testharness.iby sgresourcetest.iby opengles.iby','-D__MMC -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -DSYMBIAN_GRAPHICS_ADAPTATION=SGA_SW','h4hrp_graphicsresource_armv5_dpdef','Graphics Test ROM (GRI) - Graphics Resource DP Default','','..\sf\os\graphics\graphicstest\graphicstestharness\automation\h4\tests_gri.txt','') Rom('armv5', 'h4hrp minigui', '-nosymbols -D__MMC -DUSE_SDIO_SD_MMC', 'h4hrp_minigui', 'MiniGUI ROM', '' ) diff -r 7f25ef56562d -r 29ddb8a72f0e graphicstest/graphicstestharness/automation/winscw/tests.txt --- a/graphicstest/graphicstestharness/automation/winscw/tests.txt Wed Jun 23 19:41:15 2010 +0300 +++ b/graphicstest/graphicstestharness/automation/winscw/tests.txt Tue Jul 06 15:45:57 2010 +0300 @@ -495,3 +495,8 @@ # UIBENCH S60 TESTEXECUTE, C:\logs\testexecute\te_uibench_s60_techview_emulator.htm, , c:\uibench_s60\te_uibench_s60_techview_emulator.script, 900 + +# OpenWF Conformance Tests run under testexecute +TESTEXECUTE, C:\logs\testexecute\ct_api.htm, , z:\wfctest\ct_api.script, 600, , z\gcetest\gcetest_setup_emu.bat install dabs, z\gcetest\gcetest_setup_emu.bat uninstall dabs +TESTEXECUTE, C:\logs\testexecute\ct_offscreen.htm, , z:\wfctest\ct_offscreen.script, 600, , z\gcetest\gcetest_setup_emu.bat install dabs, z\graphicstest\retain_files.cmd results ct\results z\gcetest\gcetest_setup_emu.bat uninstall dabs +TESTEXECUTE, C:\logs\testexecute\ct_onscreen.htm, , z:\wfctest\ct_onscreen.script, 600, , z\gcetest\gcetest_setup_emu.bat install dabs, z\graphicstest\retain_files.cmd results ct\results z\gcetest\gcetest_setup_emu.bat uninstall dabs \ No newline at end of file diff -r 7f25ef56562d -r 29ddb8a72f0e graphicstest/graphicstestharness/eabi/TGraphicsHarnessu.def --- a/graphicstest/graphicstestharness/eabi/TGraphicsHarnessu.def Wed Jun 23 19:41:15 2010 +0300 +++ b/graphicstest/graphicstestharness/eabi/TGraphicsHarnessu.def Tue Jul 06 15:45:57 2010 +0300 @@ -44,4 +44,8 @@ _ZTV21CTHashReferenceImages @ 43 NONAME _ZThn4_N14CTGraphicsBase15RunTestCaseLeftEi @ 44 NONAME _ZN17CTTMSGraphicsStep20MQCTestWithErrorCodeEiiPKhi @ 45 NONAME + _ZTI14TApaTaskFacade @ 46 NONAME + _ZTI18TApaTaskListFacade @ 47 NONAME + _ZTV14TApaTaskFacade @ 48 NONAME + _ZTV18TApaTaskListFacade @ 49 NONAME diff -r 7f25ef56562d -r 29ddb8a72f0e graphicstest/graphicstestharness/group/GraphicsTestUtils.mmp --- a/graphicstest/graphicstestharness/group/GraphicsTestUtils.mmp Wed Jun 23 19:41:15 2010 +0300 +++ b/graphicstest/graphicstestharness/group/GraphicsTestUtils.mmp Tue Jul 06 15:45:57 2010 +0300 @@ -1,4 +1,4 @@ -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). // All rights reserved. // This component and the accompanying materials are made available // under the terms of "Eclipse Public License v1.0" @@ -33,9 +33,7 @@ SOURCE GraphicsTestUtils.cpp USERINCLUDE ../inc -OS_LAYER_SYSTEMINCLUDE_SYMBIAN -MW_LAYER_SYSTEMINCLUDE_SYMBIAN -OS_LAYER_ESTLIB_SYSTEMINCLUDE +OS_LAYER_SYSTEMINCLUDE LIBRARY euser.lib diff -r 7f25ef56562d -r 29ddb8a72f0e graphicstest/graphicstestharness/group/GraphicsTestUtilsServer.mmp --- a/graphicstest/graphicstestharness/group/GraphicsTestUtilsServer.mmp Wed Jun 23 19:41:15 2010 +0300 +++ b/graphicstest/graphicstestharness/group/GraphicsTestUtilsServer.mmp Tue Jul 06 15:45:57 2010 +0300 @@ -1,4 +1,4 @@ -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). // All rights reserved. // This component and the accompanying materials are made available // under the terms of "Eclipse Public License v1.0" @@ -35,9 +35,7 @@ SOURCE GraphicsTestUtilsServer.cpp USERINCLUDE ../inc -OS_LAYER_SYSTEMINCLUDE_SYMBIAN -MW_LAYER_SYSTEMINCLUDE_SYMBIAN -OS_LAYER_ESTLIB_SYSTEMINCLUDE +OS_LAYER_SYSTEMINCLUDE LIBRARY euser.lib LIBRARY efsrv.lib diff -r 7f25ef56562d -r 29ddb8a72f0e graphicstest/graphicstestharness/group/RebootTests.mmp --- a/graphicstest/graphicstestharness/group/RebootTests.mmp Wed Jun 23 19:41:15 2010 +0300 +++ b/graphicstest/graphicstestharness/group/RebootTests.mmp Tue Jul 06 15:45:57 2010 +0300 @@ -1,4 +1,4 @@ -// Copyright (c) 2000-2009 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2000-2010 Nokia Corporation and/or its subsidiary(-ies). // All rights reserved. // This component and the accompanying materials are made available // under the terms of "Eclipse Public License v1.0" @@ -21,9 +21,7 @@ SOURCE T_RebootTests.cpp USERINCLUDE ../inc -OS_LAYER_SYSTEMINCLUDE_SYMBIAN -MW_LAYER_SYSTEMINCLUDE_SYMBIAN -OS_LAYER_ESTLIB_SYSTEMINCLUDE +OS_LAYER_SYSTEMINCLUDE CAPABILITY PowerMgmt ProtServ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicstest/graphicstestharness/group/TGraphicsHarness.mmp --- a/graphicstest/graphicstestharness/group/TGraphicsHarness.mmp Wed Jun 23 19:41:15 2010 +0300 +++ b/graphicstest/graphicstestharness/group/TGraphicsHarness.mmp Tue Jul 06 15:45:57 2010 +0300 @@ -1,4 +1,4 @@ -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). // All rights reserved. // This component and the accompanying materials are made available // under the terms of "Eclipse Public License v1.0" @@ -19,15 +19,14 @@ VENDORID 0x70000001 CAPABILITY All -tcb -MW_LAYER_SYSTEMINCLUDE_SYMBIAN -OS_LAYER_ESTLIB_SYSTEMINCLUDE +OS_LAYER_SYSTEMINCLUDE USERINCLUDE ../inc SOURCEPATH ../src -SOURCE TGraphicsHarness.cpp -SOURCE TTMSGraphicsStep.cpp -SOURCE thashreferenceimages.cpp - +SOURCE TGraphicsHarness.cpp +SOURCE TTMSGraphicsStep.cpp +SOURCE thashreferenceimages.cpp +SOURCE apgrfxfacade.cpp #if defined(WINS) // No special resource file required for emulator since eshell is not required. @@ -48,7 +47,6 @@ LIBRARY testexecuteutils.lib LIBRARY testexecutelogclient.lib LIBRARY ws32.lib -LIBRARY apgrfx.lib LIBRARY bitgdi.lib LIBRARY fbscli.lib LIBRARY hal.lib @@ -56,7 +54,6 @@ LIBRARY flogger.lib LIBRARY efsrv.lib LIBRARY bafl.lib - DEFFILE TGraphicsHarness.def START BITMAP wsautotest.mbm diff -r 7f25ef56562d -r 29ddb8a72f0e graphicstest/graphicstestharness/group/dummytest.mmp --- a/graphicstest/graphicstestharness/group/dummytest.mmp Wed Jun 23 19:41:15 2010 +0300 +++ b/graphicstest/graphicstestharness/group/dummytest.mmp Tue Jul 06 15:45:57 2010 +0300 @@ -27,8 +27,6 @@ CAPABILITY none OS_LAYER_SYSTEMINCLUDE_SYMBIAN -MW_LAYER_SYSTEMINCLUDE_SYMBIAN -OS_LAYER_ESTLIB_SYSTEMINCLUDE USERINCLUDE ../src SOURCEPATH ../src diff -r 7f25ef56562d -r 29ddb8a72f0e graphicstest/graphicstestharness/group/fontinjector.mmp --- a/graphicstest/graphicstestharness/group/fontinjector.mmp Wed Jun 23 19:41:15 2010 +0300 +++ b/graphicstest/graphicstestharness/group/fontinjector.mmp Tue Jul 06 15:45:57 2010 +0300 @@ -1,4 +1,4 @@ -// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). // All rights reserved. // This component and the accompanying materials are made available // under the terms of "Eclipse Public License v1.0" @@ -26,8 +26,6 @@ CAPABILITY All -tcb OS_LAYER_SYSTEMINCLUDE_SYMBIAN -MW_LAYER_SYSTEMINCLUDE_SYMBIAN -OS_LAYER_ESTLIB_SYSTEMINCLUDE USERINCLUDE ../fontinjector SOURCEPATH ../fontinjector diff -r 7f25ef56562d -r 29ddb8a72f0e graphicstest/graphicstestharness/group/graphicsimagecomparison.mmp --- a/graphicstest/graphicstestharness/group/graphicsimagecomparison.mmp Wed Jun 23 19:41:15 2010 +0300 +++ b/graphicstest/graphicstestharness/group/graphicsimagecomparison.mmp Tue Jul 06 15:45:57 2010 +0300 @@ -1,4 +1,4 @@ -// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). // All rights reserved. // This component and the accompanying materials are made available // under the terms of "Eclipse Public License v1.0" @@ -24,9 +24,7 @@ CAPABILITY All -Tcb -OS_LAYER_SYSTEMINCLUDE_SYMBIAN -MW_LAYER_SYSTEMINCLUDE_SYMBIAN -OS_LAYER_ESTLIB_SYSTEMINCLUDE +OS_LAYER_SYSTEMINCLUDE USERINCLUDE ../inc diff -r 7f25ef56562d -r 29ddb8a72f0e graphicstest/graphicstestharness/group/graphicsmemoryhogger.mmp --- a/graphicstest/graphicstestharness/group/graphicsmemoryhogger.mmp Wed Jun 23 19:41:15 2010 +0300 +++ b/graphicstest/graphicstestharness/group/graphicsmemoryhogger.mmp Tue Jul 06 15:45:57 2010 +0300 @@ -1,4 +1,4 @@ -// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). // All rights reserved. // This component and the accompanying materials are made available // under the terms of "Eclipse Public License v1.0" @@ -46,9 +46,7 @@ USERINCLUDE ../inc -OS_LAYER_SYSTEMINCLUDE_SYMBIAN -MW_LAYER_SYSTEMINCLUDE_SYMBIAN -OS_LAYER_ESTLIB_SYSTEMINCLUDE +OS_LAYER_SYSTEMINCLUDE LIBRARY euser.lib LIBRARY efsrv.lib diff -r 7f25ef56562d -r 29ddb8a72f0e graphicstest/graphicstestharness/group/graphicsscreencomparison.mmp --- a/graphicstest/graphicstestharness/group/graphicsscreencomparison.mmp Wed Jun 23 19:41:15 2010 +0300 +++ b/graphicstest/graphicstestharness/group/graphicsscreencomparison.mmp Tue Jul 06 15:45:57 2010 +0300 @@ -1,4 +1,4 @@ -// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). // All rights reserved. // This component and the accompanying materials are made available // under the terms of "Eclipse Public License v1.0" @@ -24,9 +24,7 @@ CAPABILITY All -Tcb -OS_LAYER_SYSTEMINCLUDE_SYMBIAN -MW_LAYER_SYSTEMINCLUDE_SYMBIAN -OS_LAYER_ESTLIB_SYSTEMINCLUDE +OS_LAYER_SYSTEMINCLUDE USERINCLUDE ../inc SOURCEPATH ../src diff -r 7f25ef56562d -r 29ddb8a72f0e graphicstest/graphicstestharness/group/textendedbitmapgc.mmp --- a/graphicstest/graphicstestharness/group/textendedbitmapgc.mmp Wed Jun 23 19:41:15 2010 +0300 +++ b/graphicstest/graphicstestharness/group/textendedbitmapgc.mmp Tue Jul 06 15:45:57 2010 +0300 @@ -1,4 +1,4 @@ -// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). // All rights reserved. // This component and the accompanying materials are made available // under the terms of "Eclipse Public License v1.0" @@ -27,9 +27,7 @@ CAPABILITY All -Tcb USERINCLUDE ../textendedbitmapgc -OS_LAYER_SYSTEMINCLUDE_SYMBIAN -MW_LAYER_SYSTEMINCLUDE_SYMBIAN -OS_LAYER_ESTLIB_SYSTEMINCLUDE +OS_LAYER_SYSTEMINCLUDE SOURCEPATH ../textendedbitmapgc SOURCE textendedbitmapgc.cpp diff -r 7f25ef56562d -r 29ddb8a72f0e graphicstest/graphicstestharness/group/tprofiler.mmp --- a/graphicstest/graphicstestharness/group/tprofiler.mmp Wed Jun 23 19:41:15 2010 +0300 +++ b/graphicstest/graphicstestharness/group/tprofiler.mmp Tue Jul 06 15:45:57 2010 +0300 @@ -1,4 +1,4 @@ -// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). // All rights reserved. // This component and the accompanying materials are made available // under the terms of "Eclipse Public License v1.0" @@ -22,7 +22,7 @@ SOURCE tprofiler.cpp USERINCLUDE ../inc -MW_LAYER_SYSTEMINCLUDE_SYMBIAN +OS_LAYER_SYSTEMINCLUDE LIBRARY euser.lib testexecuteutils.lib testexecutelogclient.lib hal.lib diff -r 7f25ef56562d -r 29ddb8a72f0e graphicstest/graphicstestharness/inc/apgrfxfacade.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/graphicstest/graphicstestharness/inc/apgrfxfacade.h Tue Jul 06 15:45:57 2010 +0300 @@ -0,0 +1,53 @@ +// Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// Provide an alternative to the apgrfx to avoid a dependency on middleware + +/** + @file + @test + @internalComponent - Internal Symbian test code +*/ + +#ifndef __APGRFXFACADE_H__ +#define __APGRFXFACADE_H__ + +#include +#include + +class TApaTaskFacade : public CBase + { +public: + TApaTaskFacade(RWsSession& aSession); + TApaTaskFacade(const TApaTaskFacade& aTaskFacade); + ~TApaTaskFacade(); + void BringToForeground(); + void SetWgId(TInt aWgId); +private: + RWsSession& iSession; + TInt iWgId; + }; + +class TApaTaskListFacade : public CBase + { +public: + TApaTaskListFacade(RWsSession& aSession); + ~TApaTaskListFacade(); + TApaTaskFacade FindByPos(TInt aPos); +private: + void FindByPosL(TApaTaskFacade& aTask,TInt aPos); +private: + RWsSession& iSession; + }; + +#endif // __APGRFXFACADE_H__ diff -r 7f25ef56562d -r 29ddb8a72f0e graphicstest/graphicstestharness/src/TGraphicsHarness.cpp --- a/graphicstest/graphicstestharness/src/TGraphicsHarness.cpp Wed Jun 23 19:41:15 2010 +0300 +++ b/graphicstest/graphicstestharness/src/TGraphicsHarness.cpp Tue Jul 06 15:45:57 2010 +0300 @@ -1,4 +1,4 @@ -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). // All rights reserved. // This component and the accompanying materials are made available // under the terms of "Eclipse Public License v1.0" @@ -13,12 +13,13 @@ // Description: // -#include + #include #include #include #include +#include "apgrfxfacade.h" #include "TGraphicsHarness.h" #include "GraphicsTestUtilsServer.h" @@ -502,10 +503,10 @@ theWindow.Activate(); //the following trick we need to put the window on the top - TApaTaskList taskList(ws); - TApaTask task = taskList.FindByPos(1); + TApaTaskListFacade taskList(ws); + TApaTaskFacade task = taskList.FindByPos(1); task.BringToForeground(); - TApaTask task1(ws); + TApaTaskFacade task1(ws); task1.SetWgId(theId1); task1.BringToForeground(); } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicstest/graphicstestharness/src/apgrfxfacade.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/graphicstest/graphicstestharness/src/apgrfxfacade.cpp Tue Jul 06 15:45:57 2010 +0300 @@ -0,0 +1,75 @@ +// Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// Provide an alternative to the apgrfx to avoid a dependency on middleware + +#include "apgrfxfacade.h" + +TApaTaskFacade::TApaTaskFacade(RWsSession& aSession) : + iSession(aSession), iWgId(0) + { + } + +TApaTaskFacade::~TApaTaskFacade() + { + } + +TApaTaskFacade::TApaTaskFacade(const TApaTaskFacade& aTaskFacade) : + iSession(aTaskFacade.iSession), iWgId(aTaskFacade.iWgId) + { + } + +void TApaTaskFacade::BringToForeground() + { + iSession.SetWindowGroupOrdinalPosition(iWgId, 0); + } + +void TApaTaskFacade::SetWgId(TInt aWgId) + { + iWgId = aWgId; + } + +TApaTaskListFacade::TApaTaskListFacade(RWsSession& aSession) : + iSession(aSession) + { + } + +TApaTaskListFacade::~TApaTaskListFacade() + { + } + +TApaTaskFacade TApaTaskListFacade::FindByPos(TInt aPos) + { + TApaTaskFacade task(iSession); + TRAP_IGNORE(FindByPosL(task, aPos)); + return task; + } + +void TApaTaskListFacade::FindByPosL(TApaTaskFacade& aTask,TInt aPos) + { + TInt wgId; + const TInt windowGroups=iSession.NumWindowGroups(0); + if (aPos < 0 || windowGroups < 0 || aPos > windowGroups) + { + wgId = 0; + } + else + { + CArrayFixFlat* wgIdArray=new(ELeave) CArrayFixFlat(windowGroups); + CleanupStack::PushL(wgIdArray); + User::LeaveIfError(iSession.WindowGroupList(0, wgIdArray)); + wgId=(*wgIdArray)[aPos]; + CleanupStack::PopAndDestroy(1); + } + aTask.SetWgId(wgId); + } diff -r 7f25ef56562d -r 29ddb8a72f0e graphicstest/graphicstestharness/src/graphicsimagecomparison.cpp --- a/graphicstest/graphicstestharness/src/graphicsimagecomparison.cpp Wed Jun 23 19:41:15 2010 +0300 +++ b/graphicstest/graphicstestharness/src/graphicsimagecomparison.cpp Tue Jul 06 15:45:57 2010 +0300 @@ -1,4 +1,4 @@ -// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). // All rights reserved. // This component and the accompanying materials are made available // under the terms of "Eclipse Public License v1.0" @@ -93,7 +93,7 @@ delete[] buffer1; return KErrNoMemory; } - TPtr8 scanLine2(buffer1, scanLineLength2, scanLineLength2); + TPtr8 scanLine2(buffer2, scanLineLength2, scanLineLength2); //Perform scanline to scanline comparison without comparison mask for(TInt y=0; y -"..\scripts\te_uibench_s60_tcopyrect.script"-"c:\uibench_s60\te_uibench_s60_tcopyrect.script" -"..\scripts\te_uibench_s60_tflowwindows.script"-"c:\uibench_s60\te_uibench_s60_tflowwindows.script" -"..\scripts\te_uibench_s60_tfonts.script"-"c:\uibench_s60\te_uibench_s60_tfonts.script" -"..\scripts\te_uibench_s60_tpan.script"-"c:\uibench_s60\te_uibench_s60_tpan.script" -"..\scripts\te_uibench_s60_trotate.script"-"c:\uibench_s60\te_uibench_s60_trotate.script" -"..\scripts\te_uibench_s60_tscale.script"-"c:\uibench_s60\te_uibench_s60_tscale.script" -"..\scripts\te_uibench_s60_tuiandvideo.script"-"c:\uibench_s60\te_uibench_s60_tuiandvideo.script" -"..\scripts\te_uibench_s60_tzorder.script"-"c:\uibench_s60\te_uibench_s60_tzorder.script" -"..\scripts\te_uibench_s60_dphone79.script"-"c:\uibench_s60\te_uibench_s60_dphone79.script" -"..\scripts\te_uibench_s60_techview_emulator.script"-"c:\uibench_s60\te_uibench_s60_techview_emulator.script" +"\epoc32\data\c\uibench_s60\te_uibench_s60_tcopyrect.script"-"c:\uibench_s60\te_uibench_s60_tcopyrect.script" +"\epoc32\data\c\uibench_s60\te_uibench_s60_tflowwindows.script"-"c:\uibench_s60\te_uibench_s60_tflowwindows.script" +"\epoc32\data\c\uibench_s60\te_uibench_s60_tfonts.script"-"c:\uibench_s60\te_uibench_s60_tfonts.script" +"\epoc32\data\c\uibench_s60\te_uibench_s60_tpan.script"-"c:\uibench_s60\te_uibench_s60_tpan.script" +"\epoc32\data\c\uibench_s60\te_uibench_s60_trotate.script"-"c:\uibench_s60\te_uibench_s60_trotate.script" +"\epoc32\data\c\uibench_s60\te_uibench_s60_tscale.script"-"c:\uibench_s60\te_uibench_s60_tscale.script" +"\epoc32\data\c\uibench_s60\te_uibench_s60_tuiandvideo.script"-"c:\uibench_s60\te_uibench_s60_tuiandvideo.script" +"\epoc32\data\c\uibench_s60\te_uibench_s60_tzorder.script"-"c:\uibench_s60\te_uibench_s60_tzorder.script" +"\epoc32\data\c\uibench_s60\te_uibench_s60_dphone79.script"-"c:\uibench_s60\te_uibench_s60_dphone79.script" +"\epoc32\data\c\uibench_s60\te_uibench_s60_techview_emulator.script"-"c:\uibench_s60\te_uibench_s60_techview_emulator.script" diff -r 7f25ef56562d -r 29ddb8a72f0e graphicsutils/commongraphicsheaders/test/group/tcommonheader_helium.pkg --- a/graphicsutils/commongraphicsheaders/test/group/tcommonheader_helium.pkg Wed Jun 23 19:41:15 2010 +0300 +++ b/graphicsutils/commongraphicsheaders/test/group/tcommonheader_helium.pkg Tue Jul 06 15:45:57 2010 +0300 @@ -33,5 +33,5 @@ ;*Files To Copy... -"..\scripts\tdisplayconfiguration.script"-"c:\commonheadertest\tdisplayconfiguration.script" +"\epoc32\data\z\commonheadertest\tdisplayconfiguration.script"-"c:\commonheadertest\tdisplayconfiguration.script" diff -r 7f25ef56562d -r 29ddb8a72f0e opengles/openglesinterface/documentation/implementers_guide.html --- a/opengles/openglesinterface/documentation/implementers_guide.html Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,403 +0,0 @@ -Khronos API Implementers' Guidelines

Khronos API Implementers' Guidelines

Edited by

Mark Callow

HI Corporation

This document is protected by copyright laws and contains - material proprietary to the Khronos Group, Inc. It or any components - may not be reproduced, republished, distributed, transmitted, - displayed, broadcast or otherwise exploited in any manner without - the express prior written permission of Khronos Group. - The receipt or possession of this - document does not convey any rights to reproduce, disclose, or - distribute its contents, or to manufacture, use, or sell anything - that it may describe, in whole or in part.

Khronos Group grants express permission to any current Promoter, - Contributor or Adopter member of Khronos to copy and redistribute - UNMODIFIED versions of this document in any fashion, provided - that NO CHARGE is made for the document and the latest available - update of the document is used whenever possible. - Such distributed document may be - re-formatted AS LONG AS the contents of the document are not - changed in any way. The document may be incorporated into a - product that is sold as long as such product includes significant - independent work developed by the seller. A link to the current - version of this document on the Khronos Group web-site should - be included whenever possible with document distributions.

Khronos Group makes no, and expressly disclaims any, - representations or warranties, express or implied, regarding this - document, including, without limitation, any implied warranties - of merchantability or fitness for a particular purpose or - non-infringement of any intellectual property. Khronos Group makes - no, and expressly disclaims any, warranties, express or implied, - regarding the correctness, accuracy, completeness, timeliness, and - reliability of the document. Under no circumstances will the Khronos - Group, or any of its Promoters, Contributors or Members or their - respective partners, officers, directors, employees, agents or - representatives be liable for any damages, whether direct, indirect, - special or consequential damages for lost revenues, lost profits, - or otherwise, arising from or in connection with these - materials.

Khronos™ is a trademark of - The Khronos Group Inc. OpenGL® - is a registered trademark, and - OpenGL ES™is a trademark, of - Silicon Graphics, Inc.

Revision History
Revision 0.9.02006-12-08 19:15:11 -0800msc
First docbook version
Revision 0.91.02006-12-12 17:26:03 -0800msc
Public review version: amended copyright notice; changed OpenKODE and GLES utility library names.

Abstract

Guidelines to be followed by implementers of Khronos Group - APIs


Introduction

This document provides guidelines for - implementers - - of OpenGL ES, OpenVG and other API - standards specified by the Khronos Group. - The aim of these hints is to provide commonality between implementations to - ease the logistical problems faced by developers using multiple different - implementations of an API. -

One of the primary goals is to allow an application binary to run - on top of multiple different OpenGL ES / OpenVG / EGL implementations - on the same platform.

Implementers are strongly urged to comply with these guidelines. -

General Guidelines

Vendor Controlled Platforms (e.g. BREW, SymbianOS)

Implementers should follow the linkage specifications established - by the - platform vendor - . -

  • Use the header files, (e.g., for OpenGL ES, gl.h & egl.h) - provided by the platform vendor.

  • Use the function names specified in those header files.

  • Implement all API - entry points in the same way as in the - vendor-provided - ABI. That is, - functions should be functions, in-line functions should be - in-line functions and macros should be macros. -

  • Use the platform specified library names.

Vendors of controlled platforms are strongly urged to follow the - recommendations given below for - Uncontrolled Platforms when adding a Khronos Group - API to their platform. -

Uncontrolled Platforms (e.g. GNU/Linux, Windows, Windows CE)

When providing implementations for platforms where the vendor - does not provide standard linkage specifications, implementers - are urged to follow the following recommendations.

Header Files

General
  • Use the Khronos provided header files (e.g., for OpenGL - ES, gl.h & - egl.h). If changes are - unavoidable, consider contributing your changes back to Khronos - by updating the standard header files in the Khronos Subversion - tree.

  • If you make your own header files and the platform is - Windows, make sure they are suitable for use with - MFC. - For example - #define EGL_DEFAULT_DISPLAY GetDC(0) - is broken for MFC. You need to use - ::GetDC(0) - because several MFC have their own - GetDC(void) - methods.

EGL
  • Package the EGL header files - egl.h - and - eglplatform.h - in the folder - EGL. -

  • eglplatform.h - contains platform - dependent items and needs to be modified by the implementer. - In particular the - eglNativeDisplayType, - eglNativeWindowType, and - eglNativePixmapType - typedefs must be defined as appropriate for the platform - (typically, they will be typedef'ed to corresponding types - in the native window system). Developer documentation should - mention the correspondence so that developers know what - parameters to pass to - eglCreateWindowSurface, - eglCreatePixmapSurface, and - eglCopyBuffers. - Documentation should also describe the format of the - display_id - parameter to - eglGetDisplay, - since this is a platform-specific identifier.

  • Include - eglplatform.h - in - egl.h - thus: - #include <EGL/eglplatform.h> - . Do not use - #include <eglplatform.h> - because app. makefiles will then need 2 different - -I<path> - options to find both include files.

  • Do not include - gl.h - in - egl.h - .

OpenGL ES 1.x
  • Package the OpenGL ES header files - gl.h - and - glplatform.h - in the folder - GLES - .

  • glplatform.h - contains platform dependent items and may need to be - modified by the implementer. Implementers are encouraged - to provide their additions for newly supported platforms - to the Khronos Group for inclusion in the Adopters' - distribution.

  • For compatibility with GLES 1.0 implementations, include - in - GLES - a special - egl.h - containing the following: -

    -#include <EGL/egl.h>
    -#include <GLES/gl.h>

    - This is because many early OpenGL ES 1.0 implementations - included - gl.h - in - egl.h - so many existing applications only include - egl.h - .

  • The name glu.h - is reserved for future use by the Khronos Group.

OpenGL ES 2.x
  • The core header files for OpenGL ES 2.x are called - gl2.h and - gl2platform.h to - keep them distinct from the GLES 1.x header files and enable - application to use both versions.

  • The function declarations and constant definitions for - OpenGL ES 2.x are divided into 2 header files: - gl2.h - declares and defines all the core functions and constants; - gl2ext.h - declares and defines functions and constants for all - Khronos approved extensions and can be used even if the - implementation doesn't provide a particular extension.

    Functions and constants for Implementer - extensions should be declared and defined in an implementer's - own header file using names and constant values obtained from - the Khronos Group's Extension Registry.

  • Package all these header files in the folder - GLES2.

  • The name glu2.h - is reserved for future use by the Khronos Group.

OpenKODE
  • Package the OpenKODE header files - kd.h - and - kdplatform.h - in the folder - KD. -

  • Implementers are encouraged to code - kd.h such that it - includes as few as possible of the platform's include files, - and to avoid declaring C and POSIX standard functions. This - will ease the creation of portable OpenKODE applications, - and help stop non-portable code being added accidentally. -

OpenVG
  • Package the OpenVG header files - openvg.h - and, when provided, - vgu.h - in the folder - VG - .

Header File Summary

Table 1. Header File Names and Locations

API Location Header Files How to include Provider
EGL 1.x - EGL - - egl.h - - #include <EGL/egl.h> - - Khronos -
- eglplatform.h - [1] - - Included by egl.h - - Vendor or Implementer -
OpenGL ES 1.x - GLES - - gl.h - - #include <GLES/gl.h> - - Khronos -
- glplatform.h - [2] - - Included by gl.h - - Vendor or Implementer -
- glu.h - - Reserved for future use -
OpenGL ES 2.x - GLES2 - - gl2.h - - #include <GLES2/gl2.h> - - Khronos -
- gl2platform.h - - Included by gl2.h - - Vendor or Implementer -
- gl2ext.h - - #include <GLES2/gl2ext.h> - - Khronos -
- glu2.h - - Reserved for future use -
OpenKODE 1.x - KD - - kd.h - - #include <KD/kd.h> - - Khronos -
- kdplatform.h - - Included by kd.h - - Vendor or Implementer -
OpenVG 1.x - VG - - openvg.h - - #include <VG/openvg.h> - - Khronos -
- vgu.h - [3] - - #include <VG/vgu.h> - - Khronos -

[1] - Many early EGL implementations used - egltypes.h - instead of the now recommended - eglplatform.h - .

[2] - glplatform.h - does not exist in many early implementations of - OpenGL ES 1.x. Platform dependent declarations were - included directly in gl.h - .

[3] - Required, if the OpenVG utility library is provided. -

Notes
  • To find the include files, use appropriate compiler - options in the makefiles for your sample programs; e.g. - -I (gcc, linux) or - /I (Visual C++). -

  • Given the different IDEs & compilers people use, - especially on Windows, it is not possible to recommend a system - location to place these include files. Where obvious choices - exist Khronos recommends implementers take advantage of them. -

  • In particular, GNU/Linux implementations should - follow the - - Filesystem Hierarchy Standard - - for location of headers and libraries. -

Libraries

  • It is highly desirable to implement all - API entry points as - function calls. However in the OpenKODE core, macros or in-lines - may be used instead of a function call provided the following - rules are followed: -

    • When calling a function, each argument must be evaluated - exactly once (although the order of evaluation is - undefined).

    • It must be possible to take the address of function. -

  • - Except in cases where macros are allowed, ensure the - API function - names exported by your lib & dll files match the function - names specified by the Khronos standard for the - API you are - implementing. -

Packaging
  • OpenGL ES, EGL, OpenVG and OpenKODE entry points should - be packaged in separate libraries.

  • However to provide backward compatibility for existing - applications, two OpenGL ES 1.1 libraries should be provided: - one with and one without the EGL entry points.

    - Note: There are extant implementations of the dual - OpenGL ES libraries demonstrating this is possible on Symbian, - GNU/Linux, Win32 and WinCE. -

    For OpenGL ES 2.x, only a library without EGL entry points - is needed.

Naming

Khronos recommends the library names shown in the following - table:

Table 2. Recommended Library Names

API/Entry Points Name
EGL - libEGL.{lib,dll} -
OpenGL ES 1.x with EGL (Common Profile) - libGLES_CM.{lib,dll} - [1] - [2] -
OpenGL ES 1.x with EGL (Lite Profile) - libGLES_CL.{lib,dll} - [1] - [2] -
OpenGL ES 1.x without EGL - libGLESv1_C[LM].{lib,dll} - [3] -
OpenGL ES 2.x without EGL - libGLESv2.{lib,dll} -
  - libGLUESv1.{lib,dll} - [4] -
  - libGLUESv2.{lib,dll} - [4] -
OpenKODE - libKD{lib,dll} -
OpenVG - libOpenVG{lib,dll} -
OpenVG Utilities (when present) - libOpenVGU.{lib,dll} -

[1] These names are required for OpenGL ES 1.0 - and the libraries must contain the EGL entry points - as detailed in Chapter 8, - Packaging, - of the OpenGL ES 1.0 specification.

[2] These names are deprecated for OpenGL ES 1.1 - and beyond and should only be used for a library - that includes the EGL entry points in order to support - legacy applications.

[3] - The OpenGL ES 1.1 specification at revision 1.1.09 - was updated to specify these alternate names for GLES - libraries that do not contain the EGL entry points. - -

[4] These names are reserved for future use by the - Khronos Group.

Notes
  • The extensions - .lib - & .dll - are allowed to vary by platform. On GNU/Linux for example - they should be .a and .so to match that platform's - conventions.

Acknowledgements

-

Thanks to all the members of the Khronos Group for their input - and in particular to the following: -

-
- Petri Kero -
- Jon Leech -
- Robert Palmer -
- Jani Vaarala -
- Hans-Martin Will -
-

Glossary

Application Binary Interface (ABI)

- The low-level interface between a compiled application program and the - operating system or its libraries. -

Application Programming Interface (API)

- The source-code level interface between an application program - and the operating system or its libraries. -

Implementer

- A company or person who implements a Khronos API. -

Microsoft Foundation Classes (MFC)

- A set of C++ utility classes provided by Microsoft Corporation. -

Platform Vendor (Vendor)

- A company providing an operating system platform that includes an - ABI - specification for one or more Khronos APIs. E.g., Qualcomm (OpenGL ES - on BREW) and Symbian (OpenGL ES on Symbian OS). A Vendor may also be - an Implementer. -

diff -r 7f25ef56562d -r 29ddb8a72f0e printingservices/printerdrivers/testdocs/TESTEMB Binary file printingservices/printerdrivers/testdocs/TESTEMB has changed diff -r 7f25ef56562d -r 29ddb8a72f0e printingservices/printerdrivers/testdocs/TESTPAI Binary file printingservices/printerdrivers/testdocs/TESTPAI has changed diff -r 7f25ef56562d -r 29ddb8a72f0e printingservices/printerdrivers/testdocs/TESTTEXT Binary file printingservices/printerdrivers/testdocs/TESTTEXT has changed diff -r 7f25ef56562d -r 29ddb8a72f0e printingservices/printerdriversupport/group/PDRPORT.MMP --- a/printingservices/printerdriversupport/group/PDRPORT.MMP Wed Jun 23 19:41:15 2010 +0300 +++ b/printingservices/printerdriversupport/group/PDRPORT.MMP Tue Jul 06 15:45:57 2010 +0300 @@ -1,4 +1,4 @@ -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). // All rights reserved. // This component and the accompanying materials are made available // under the terms of "Eclipse Public License v1.0" @@ -30,7 +30,7 @@ SOURCE PDRPORT.CPP USERINCLUDE ../inc -OS_LAYER_SYSTEMINCLUDE_SYMBIAN +OS_LAYER_SYSTEMINCLUDE LIBRARY c32.lib efsrv.lib euser.lib estor.lib diff -r 7f25ef56562d -r 29ddb8a72f0e printingservices/printerdriversupport/group/PDRSTORE.MMP --- a/printingservices/printerdriversupport/group/PDRSTORE.MMP Wed Jun 23 19:41:15 2010 +0300 +++ b/printingservices/printerdriversupport/group/PDRSTORE.MMP Tue Jul 06 15:45:57 2010 +0300 @@ -1,4 +1,4 @@ -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). // All rights reserved. // This component and the accompanying materials are made available // under the terms of "Eclipse Public License v1.0" @@ -38,7 +38,7 @@ SOURCE FBSDRV.CPP USERINCLUDE ../inc -OS_LAYER_SYSTEMINCLUDE_SYMBIAN +OS_LAYER_SYSTEMINCLUDE LIBRARY euser.lib estor.lib gdi.lib bitgdi.lib fbscli.lib diff -r 7f25ef56562d -r 29ddb8a72f0e printingservices/printerdriversupport/group/TPdrStoreServer.mmp --- a/printingservices/printerdriversupport/group/TPdrStoreServer.mmp Wed Jun 23 19:41:15 2010 +0300 +++ b/printingservices/printerdriversupport/group/TPdrStoreServer.mmp Tue Jul 06 15:45:57 2010 +0300 @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). // All rights reserved. // This component and the accompanying materials are made available // under the terms of "Eclipse Public License v1.0" @@ -30,8 +30,7 @@ userinclude ../../../graphicstest/graphicstestharness/inc userinclude ../tps ../inc -MW_LAYER_SYSTEMINCLUDE_SYMBIAN -OS_LAYER_SYSTEMINCLUDE_SYMBIAN +OS_LAYER_SYSTEMINCLUDE SOURCEPATH . SOURCEPATH ../tps @@ -51,10 +50,6 @@ LIBRARY tgraphicsharness.lib LIBRARY testexecutelogclient.lib -#if !defined(WINS) -LIBRARY viewsrv.lib -#endif - // We're quite heavy on the stack... 4k in WinS isn't enough... EPOCSTACKSIZE 0x6000 diff -r 7f25ef56562d -r 29ddb8a72f0e printingservices/printerdriversupport/group/pdrstoretest_helium.pkg --- a/printingservices/printerdriversupport/group/pdrstoretest_helium.pkg Wed Jun 23 19:41:15 2010 +0300 +++ b/printingservices/printerdriversupport/group/pdrstoretest_helium.pkg Tue Jul 06 15:45:57 2010 +0300 @@ -34,7 +34,7 @@ ;*Files To Copy... ;//script file -"..\tps\scripts\pdrstoretest_T_Pdr.script"-"c:\pdrstoretest\pdrstoretest_T_Pdr.script" -"..\tps\scripts\pdrstoretest_T_PdrLst.script"-"c:\pdrstoretest\pdrstoretest_T_PdrLst.script" -"..\tps\scripts\pdrstoretest_T_PdrMem.script"-"c:\pdrstoretest\pdrstoretest_T_PdrMem.script" +"\epoc32\data\z\pdrstoretest\pdrstoretest_T_Pdr.script"-"c:\pdrstoretest\pdrstoretest_T_Pdr.script" +"\epoc32\data\z\pdrstoretest\pdrstoretest_T_PdrLst.script"-"c:\pdrstoretest\pdrstoretest_T_PdrLst.script" +"\epoc32\data\z\pdrstoretest\pdrstoretest_T_PdrMem.script"-"c:\pdrstoretest\pdrstoretest_T_PdrMem.script" diff -r 7f25ef56562d -r 29ddb8a72f0e printingservices/printerdriversupport/tps/T_PDR.H --- a/printingservices/printerdriversupport/tps/T_PDR.H Wed Jun 23 19:41:15 2010 +0300 +++ b/printingservices/printerdriversupport/tps/T_PDR.H Tue Jul 06 15:45:57 2010 +0300 @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). // All rights reserved. // This component and the accompanying materials are made available // under the terms of "Eclipse Public License v1.0" @@ -27,12 +27,11 @@ #include #include #include -#include #include #include #include "TGraphicsHarness.h" - +#include "prnsetupfacade.h" class CPdrTestPrint : public CActive { diff -r 7f25ef56562d -r 29ddb8a72f0e printingservices/printerdriversupport/tps/T_PDRLST.CPP --- a/printingservices/printerdriversupport/tps/T_PDRLST.CPP Wed Jun 23 19:41:15 2010 +0300 +++ b/printingservices/printerdriversupport/tps/T_PDRLST.CPP Tue Jul 06 15:45:57 2010 +0300 @@ -13,7 +13,6 @@ // Description: // -#include #include "T_PDRLST.H" #include "prnpath.h" diff -r 7f25ef56562d -r 29ddb8a72f0e printingservices/printerdriversupport/tps/T_PDRLST.H --- a/printingservices/printerdriversupport/tps/T_PDRLST.H Wed Jun 23 19:41:15 2010 +0300 +++ b/printingservices/printerdriversupport/tps/T_PDRLST.H Tue Jul 06 15:45:57 2010 +0300 @@ -1,4 +1,4 @@ -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). // All rights reserved. // This component and the accompanying materials are made available // under the terms of "Eclipse Public License v1.0" @@ -17,6 +17,7 @@ #define __T_PDRLST_H__ #include "TGraphicsHarness.h" +#include "prnsetupfacade.h" class CTPdrLstStep : public CTGraphicsStep diff -r 7f25ef56562d -r 29ddb8a72f0e printingservices/printerdriversupport/tps/T_PDRMEM.CPP --- a/printingservices/printerdriversupport/tps/T_PDRMEM.CPP Wed Jun 23 19:41:15 2010 +0300 +++ b/printingservices/printerdriversupport/tps/T_PDRMEM.CPP Tue Jul 06 15:45:57 2010 +0300 @@ -13,7 +13,6 @@ // Description: // -#include #include "T_PDRMEM.H" #include "prnpath.h" diff -r 7f25ef56562d -r 29ddb8a72f0e printingservices/printerdriversupport/tps/T_PDRMEM.H --- a/printingservices/printerdriversupport/tps/T_PDRMEM.H Wed Jun 23 19:41:15 2010 +0300 +++ b/printingservices/printerdriversupport/tps/T_PDRMEM.H Tue Jul 06 15:45:57 2010 +0300 @@ -1,4 +1,4 @@ -// Copyright (c) 1996-2009 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 1996-2010 Nokia Corporation and/or its subsidiary(-ies). // All rights reserved. // This component and the accompanying materials are made available // under the terms of "Eclipse Public License v1.0" @@ -17,6 +17,7 @@ #define __T_PDRMEM_H__ #include "TGraphicsHarness.h" +#include "prnsetupfacade.h" class CTPdrMemStep : public CTGraphicsStep diff -r 7f25ef56562d -r 29ddb8a72f0e printingservices/printerdriversupport/tps/prnsetupfacade.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/printingservices/printerdriversupport/tps/prnsetupfacade.h Tue Jul 06 15:45:57 2010 +0300 @@ -0,0 +1,30 @@ +// Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// Provide a facade to prnsetup.h so that we don't dependent on the upper +// middleware layer + +/** + @file + @test + @internalComponent Internal Symbian test code +*/ + + +#if !defined(__PRNSETUPFACADE_H__) +#define __PRNSETUPFACADE_H__ + +_LIT( KDefaultPrinterDriverPath, "\\resource\\printers\\" ); + + +#endif diff -r 7f25ef56562d -r 29ddb8a72f0e windowing/windowserver/bwins/WsGraphicDrawerSwitchU.def --- a/windowing/windowserver/bwins/WsGraphicDrawerSwitchU.def Wed Jun 23 19:41:15 2010 +0300 +++ b/windowing/windowserver/bwins/WsGraphicDrawerSwitchU.def Tue Jul 06 15:45:57 2010 +0300 @@ -59,11 +59,11 @@ call_vector_58 @ 58 NONAME ; class TRegion const * TWservCrEvent::DrawingRegion(void) const call_vector_59 @ 59 NONAME ; int TWservCrEvent::WindowGroupIdentifier(void) const call_vector_60 @ 60 NONAME ; int CWsGraphicDrawerArray::Add(class CWsGraphicDrawer *) - call_vector_61 @ 61 NONAME ; class CWsGraphicDrawerArray::XRollBackBase * CWsGraphicDrawerArray::AddTLC(class CWsGraphicDrawer *) - call_vector_62 @ 62 NONAME ; void CWsGraphicDrawerArray::CommitP(class CWsGraphicDrawerArray::XRollBackBase *) - call_vector_63 @ 63 NONAME ; class CWsGraphicDrawerArray::XRollBackBase * CWsGraphicDrawerArray::RemoveTLC(struct TGraphicDrawerId const &) + call_vector_61 @ 61 NONAME ; struct CWsGraphicDrawerArray::XRollBackBase * CWsGraphicDrawerArray::AddTLC(class CWsGraphicDrawer *) + call_vector_62 @ 62 NONAME ; void CWsGraphicDrawerArray::CommitP(struct CWsGraphicDrawerArray::XRollBackBase *) + call_vector_63 @ 63 NONAME ; struct CWsGraphicDrawerArray::XRollBackBase * CWsGraphicDrawerArray::RemoveTLC(struct TGraphicDrawerId const &) call_vector_64 @ 64 NONAME ; int CWsGraphicDrawerArray::Swap(class CWsGraphicDrawer *) - call_vector_65 @ 65 NONAME ; class CWsGraphicDrawerArray::XRollBackBase * CWsGraphicDrawerArray::SwapTLC(class CWsGraphicDrawer *) + call_vector_65 @ 65 NONAME ; struct CWsGraphicDrawerArray::XRollBackBase * CWsGraphicDrawerArray::SwapTLC(class CWsGraphicDrawer *) call_vector_66 @ 66 NONAME ; enum CFbsBitGc::TGraphicsOrientation TWservCrEvent::Orientation(void) const call_vector_67 @ 67 NONAME ; void WsGraphicDrawer::FinalClose(void) call_vector_68 @ 68 NONAME ; int TWservCrEvent::WasVisible(void) const diff -r 7f25ef56562d -r 29ddb8a72f0e windowing/windowserver/bwins/samplegraphicsurfaceu.DEF --- a/windowing/windowserver/bwins/samplegraphicsurfaceu.DEF Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +0,0 @@ -EXPORTS - ??1CWsGraphicSurface@@UAE@XZ @ 1 NONAME ; CWsGraphicSurface::~CWsGraphicSurface(void) - ?CWsGraphicSurface_Reserved1@CWsGraphicSurface@@MAEHXZ @ 2 NONAME ; int CWsGraphicSurface::CWsGraphicSurface_Reserved1(void) - ?CWsGraphicSurface_Reserved2@CWsGraphicSurface@@MAEHXZ @ 3 NONAME ; int CWsGraphicSurface::CWsGraphicSurface_Reserved2(void) - ?CWsGraphicSurface_Reserved3@CWsGraphicSurface@@MAEHXZ @ 4 NONAME ; int CWsGraphicSurface::CWsGraphicSurface_Reserved3(void) - ?ConstructL@CWsGraphicSurface@@QAEXABVTSurfaceConfiguration@@IPBV?$TArray@I@@@Z @ 5 NONAME ; void CWsGraphicSurface::ConstructL(class TSurfaceConfiguration const &, unsigned int, class TArray const *) - ?ConstructL@CWsGraphicSurface@@QAEXABVTWsGraphicId@@ABVTSurfaceConfiguration@@IPBV?$TArray@I@@@Z @ 6 NONAME ; void CWsGraphicSurface::ConstructL(class TWsGraphicId const &, class TSurfaceConfiguration const &, unsigned int, class TArray const *) - ?ConstructL@CWsGraphicSurface@@QAEXVTUid@@ABVTSurfaceConfiguration@@IPBV?$TArray@I@@@Z @ 7 NONAME ; void CWsGraphicSurface::ConstructL(class TUid, class TSurfaceConfiguration const &, unsigned int, class TArray const *) - ?HandleMessage@CWsGraphicSurface@@EAEXABVTDesC8@@@Z @ 8 NONAME ; void CWsGraphicSurface::HandleMessage(class TDesC8 const &) - ?NewL@CWsGraphicSurface@@SAPAV1@ABVTSurfaceConfiguration@@IPBV?$TArray@I@@@Z @ 9 NONAME ; class CWsGraphicSurface * CWsGraphicSurface::NewL(class TSurfaceConfiguration const &, unsigned int, class TArray const *) - ?NewL@CWsGraphicSurface@@SAPAV1@ABVTWsGraphicId@@ABVTSurfaceConfiguration@@IPBV?$TArray@I@@@Z @ 10 NONAME ; class CWsGraphicSurface * CWsGraphicSurface::NewL(class TWsGraphicId const &, class TSurfaceConfiguration const &, unsigned int, class TArray const *) - ?NewL@CWsGraphicSurface@@SAPAV1@VTUid@@ABVTSurfaceConfiguration@@IPBV?$TArray@I@@@Z @ 11 NONAME ; class CWsGraphicSurface * CWsGraphicSurface::NewL(class TUid, class TSurfaceConfiguration const &, unsigned int, class TArray const *) - ?OnReplace@CWsGraphicSurface@@EAEXXZ @ 12 NONAME ; void CWsGraphicSurface::OnReplace(void) - ?Share@CWsGraphicSurface@@MAEHVTSecureId@@@Z @ 13 NONAME ; int CWsGraphicSurface::Share(class TSecureId) - ?ShareGlobally@CWsGraphicSurface@@MAEHXZ @ 14 NONAME ; int CWsGraphicSurface::ShareGlobally(void) - ?UnShare@CWsGraphicSurface@@MAEHVTSecureId@@@Z @ 15 NONAME ; int CWsGraphicSurface::UnShare(class TSecureId) - ?UnShareGlobally@CWsGraphicSurface@@MAEHXZ @ 16 NONAME ; int CWsGraphicSurface::UnShareGlobally(void) - ??0CWsGraphicSurface@@IAE@XZ @ 17 NONAME ; CWsGraphicSurface::CWsGraphicSurface(void) - ?RegisterScreens@CWsGraphicSurface@@IAEXABVTSurfaceConfiguration@@PBV?$TArray@I@@@Z @ 18 NONAME ; void CWsGraphicSurface::RegisterScreens(class TSurfaceConfiguration const &, class TArray const *) - ?UnRegisterScreens@CWsGraphicSurface@@IAEXXZ @ 19 NONAME ; void CWsGraphicSurface::UnRegisterScreens(void) - ?MakeParamsLC@CWsGraphicSurface@@IAEPAVTConstructParams@1@ABVTSurfaceConfiguration@@IPBV?$TArray@I@@@Z @ 20 NONAME ; class CWsGraphicSurface::TConstructParams * CWsGraphicSurface::MakeParamsLC(class TSurfaceConfiguration const &, unsigned int, class TArray const *) - ?SendMessage@CWsGraphicSurface@@IAEHABVTSurfaceConfiguration@@@Z @ 21 NONAME ; int CWsGraphicSurface::SendMessage(class TSurfaceConfiguration const &) - ?SendMessage@CWsGraphicSurface@@IAEHABVTWsGraphicAnimation@@@Z @ 22 NONAME ; int CWsGraphicSurface::SendMessage(class TWsGraphicAnimation const &) - diff -r 7f25ef56562d -r 29ddb8a72f0e windowing/windowserver/bwins/samplegraphictestsurfacemultiu.DEF --- a/windowing/windowserver/bwins/samplegraphictestsurfacemultiu.DEF Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,13 +0,0 @@ -EXPORTS - ??0CWsGraphicTestSurfaceMulti@@IAE@XZ @ 1 NONAME ; CWsGraphicTestSurfaceMulti::CWsGraphicTestSurfaceMulti(void) - ??1CWsGraphicTestSurfaceMulti@@UAE@XZ @ 2 NONAME ; CWsGraphicTestSurfaceMulti::~CWsGraphicTestSurfaceMulti(void) - ?CWsGraphicTestSurfaceMulti_Reserved1@CWsGraphicTestSurfaceMulti@@UAEHXZ @ 3 NONAME ; int CWsGraphicTestSurfaceMulti::CWsGraphicTestSurfaceMulti_Reserved1(void) - ?CWsGraphicTestSurfaceMulti_Reserved2@CWsGraphicTestSurfaceMulti@@UAEHXZ @ 4 NONAME ; int CWsGraphicTestSurfaceMulti::CWsGraphicTestSurfaceMulti_Reserved2(void) - ?CWsGraphicTestSurfaceMulti_Reserved3@CWsGraphicTestSurfaceMulti@@UAEHXZ @ 5 NONAME ; int CWsGraphicTestSurfaceMulti::CWsGraphicTestSurfaceMulti_Reserved3(void) - ?NewL@CWsGraphicTestSurfaceMulti@@SAPAV1@ABVTSurfaceConfiguration@@IPBV?$TArray@I@@@Z @ 6 NONAME ; class CWsGraphicTestSurfaceMulti * CWsGraphicTestSurfaceMulti::NewL(class TSurfaceConfiguration const &, unsigned int, class TArray const *) - ?NewL@CWsGraphicTestSurfaceMulti@@SAPAV1@ABVTWsGraphicId@@ABVTSurfaceConfiguration@@IPBV?$TArray@I@@@Z @ 7 NONAME ; class CWsGraphicTestSurfaceMulti * CWsGraphicTestSurfaceMulti::NewL(class TWsGraphicId const &, class TSurfaceConfiguration const &, unsigned int, class TArray const *) - ?NewL@CWsGraphicTestSurfaceMulti@@SAPAV1@VTUid@@ABVTSurfaceConfiguration@@IPBV?$TArray@I@@@Z @ 8 NONAME ; class CWsGraphicTestSurfaceMulti * CWsGraphicTestSurfaceMulti::NewL(class TUid, class TSurfaceConfiguration const &, unsigned int, class TArray const *) - ?ConstructL@CWsGraphicTestSurfaceMulti@@QAEXABVTSurfaceConfiguration@@IPBV?$TArray@I@@@Z @ 9 NONAME ; void CWsGraphicTestSurfaceMulti::ConstructL(class TSurfaceConfiguration const &, unsigned int, class TArray const *) - ?ConstructL@CWsGraphicTestSurfaceMulti@@QAEXABVTWsGraphicId@@ABVTSurfaceConfiguration@@IPBV?$TArray@I@@@Z @ 10 NONAME ; void CWsGraphicTestSurfaceMulti::ConstructL(class TWsGraphicId const &, class TSurfaceConfiguration const &, unsigned int, class TArray const *) - ?ConstructL@CWsGraphicTestSurfaceMulti@@QAEXVTUid@@ABVTSurfaceConfiguration@@IPBV?$TArray@I@@@Z @ 11 NONAME ; void CWsGraphicTestSurfaceMulti::ConstructL(class TUid, class TSurfaceConfiguration const &, unsigned int, class TArray const *) - diff -r 7f25ef56562d -r 29ddb8a72f0e windowing/windowserver/bwins/ws32switchu.def --- a/windowing/windowserver/bwins/ws32switchu.def Wed Jun 23 19:41:15 2010 +0300 +++ b/windowing/windowserver/bwins/ws32switchu.def Tue Jul 06 15:45:57 2010 +0300 @@ -333,7 +333,7 @@ call_vector_332 @ 332 NONAME ; public: void __thiscall RWsSession::SetPointerCursorArea(int,class TRect const &) call_vector_333 @ 333 NONAME ; public: void __thiscall RWsSession::SetPointerCursorMode(enum TPointerCursorMode) call_vector_334 @ 334 NONAME ; public: int __thiscall RWsSession::SetPointerCursorPosition(class TPoint const &) - call_vector_335 @ 335 NONAME ; public: void __thiscall RWsSession::SimulateXyInputType(enum TXYInputType) + call_vector_335 @ 335 NONAME ; void RWsSession::SimulateXyInputType(int) call_vector_336 @ 336 NONAME ; public: int __thiscall RWindowBase::MoveToGroup(int) call_vector_337 @ 337 NONAME ; public: int __thiscall RWsSession::SendMessageToAllWindowGroups(int,class TUid,class TDesC8 const &) call_vector_338 @ 338 NONAME ; public: int __thiscall RWsSession::SendMessageToAllWindowGroups(class TUid,class TDesC8 const &) diff -r 7f25ef56562d -r 29ddb8a72f0e windowing/windowserver/eabi/samplegraphicsurfaceu.DEF --- a/windowing/windowserver/eabi/samplegraphicsurfaceu.DEF Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,29 +0,0 @@ -EXPORTS - _ZN17CWsGraphicSurface10ConstructLE4TUidRK21TSurfaceConfigurationjPK6TArrayIjE @ 1 NONAME - _ZN17CWsGraphicSurface10ConstructLERK12TWsGraphicIdRK21TSurfaceConfigurationjPK6TArrayIjE @ 2 NONAME - _ZN17CWsGraphicSurface10ConstructLERK21TSurfaceConfigurationjPK6TArrayIjE @ 3 NONAME - _ZN17CWsGraphicSurface13HandleMessageERK6TDesC8 @ 4 NONAME - _ZN17CWsGraphicSurface13ShareGloballyEv @ 5 NONAME - _ZN17CWsGraphicSurface15UnShareGloballyEv @ 6 NONAME - _ZN17CWsGraphicSurface27CWsGraphicSurface_Reserved1Ev @ 7 NONAME - _ZN17CWsGraphicSurface27CWsGraphicSurface_Reserved2Ev @ 8 NONAME - _ZN17CWsGraphicSurface27CWsGraphicSurface_Reserved3Ev @ 9 NONAME - _ZN17CWsGraphicSurface4NewLE4TUidRK21TSurfaceConfigurationjPK6TArrayIjE @ 10 NONAME - _ZN17CWsGraphicSurface4NewLERK12TWsGraphicIdRK21TSurfaceConfigurationjPK6TArrayIjE @ 11 NONAME - _ZN17CWsGraphicSurface4NewLERK21TSurfaceConfigurationjPK6TArrayIjE @ 12 NONAME - _ZN17CWsGraphicSurface5ShareE9TSecureId @ 13 NONAME - _ZN17CWsGraphicSurface7UnShareE9TSecureId @ 14 NONAME - _ZN17CWsGraphicSurface9OnReplaceEv @ 15 NONAME - _ZN17CWsGraphicSurfaceD0Ev @ 16 NONAME - _ZN17CWsGraphicSurfaceD1Ev @ 17 NONAME - _ZN17CWsGraphicSurfaceD2Ev @ 18 NONAME - _ZTI17CWsGraphicSurface @ 19 NONAME - _ZTV17CWsGraphicSurface @ 20 NONAME - _ZN17CWsGraphicSurfaceC1Ev @ 21 NONAME - _ZN17CWsGraphicSurfaceC2Ev @ 22 NONAME - _ZN17CWsGraphicSurface12MakeParamsLCERK21TSurfaceConfigurationjPK6TArrayIjE @ 23 NONAME - _ZN17CWsGraphicSurface15RegisterScreensERK21TSurfaceConfigurationPK6TArrayIjE @ 24 NONAME - _ZN17CWsGraphicSurface17UnRegisterScreensEv @ 25 NONAME - _ZN17CWsGraphicSurface11SendMessageERK19TWsGraphicAnimation @ 26 NONAME - _ZN17CWsGraphicSurface11SendMessageERK21TSurfaceConfiguration @ 27 NONAME - diff -r 7f25ef56562d -r 29ddb8a72f0e windowing/windowserver/eabi/samplegraphictestsurfacemultiu.DEF --- a/windowing/windowserver/eabi/samplegraphictestsurfacemultiu.DEF Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,18 +0,0 @@ -EXPORTS - _ZN26CWsGraphicTestSurfaceMulti10ConstructLE4TUidRK21TSurfaceConfigurationjPK6TArrayIjE @ 1 NONAME - _ZN26CWsGraphicTestSurfaceMulti10ConstructLERK12TWsGraphicIdRK21TSurfaceConfigurationjPK6TArrayIjE @ 2 NONAME - _ZN26CWsGraphicTestSurfaceMulti10ConstructLERK21TSurfaceConfigurationjPK6TArrayIjE @ 3 NONAME - _ZN26CWsGraphicTestSurfaceMulti36CWsGraphicTestSurfaceMulti_Reserved1Ev @ 4 NONAME - _ZN26CWsGraphicTestSurfaceMulti36CWsGraphicTestSurfaceMulti_Reserved2Ev @ 5 NONAME - _ZN26CWsGraphicTestSurfaceMulti36CWsGraphicTestSurfaceMulti_Reserved3Ev @ 6 NONAME - _ZN26CWsGraphicTestSurfaceMulti4NewLE4TUidRK21TSurfaceConfigurationjPK6TArrayIjE @ 7 NONAME - _ZN26CWsGraphicTestSurfaceMulti4NewLERK12TWsGraphicIdRK21TSurfaceConfigurationjPK6TArrayIjE @ 8 NONAME - _ZN26CWsGraphicTestSurfaceMulti4NewLERK21TSurfaceConfigurationjPK6TArrayIjE @ 9 NONAME - _ZN26CWsGraphicTestSurfaceMultiC1Ev @ 10 NONAME - _ZN26CWsGraphicTestSurfaceMultiC2Ev @ 11 NONAME - _ZN26CWsGraphicTestSurfaceMultiD0Ev @ 12 NONAME - _ZN26CWsGraphicTestSurfaceMultiD1Ev @ 13 NONAME - _ZN26CWsGraphicTestSurfaceMultiD2Ev @ 14 NONAME - _ZTI26CWsGraphicTestSurfaceMulti @ 15 NONAME - _ZTV26CWsGraphicTestSurfaceMulti @ 16 NONAME - diff -r 7f25ef56562d -r 29ddb8a72f0e windowing/windowserver/group/graphics_wserv.mrp --- a/windowing/windowserver/group/graphics_wserv.mrp Wed Jun 23 19:41:15 2010 +0300 +++ b/windowing/windowserver/group/graphics_wserv.mrp Tue Jul 06 15:45:57 2010 +0300 @@ -8,7 +8,6 @@ ipr D ipr T \sf\os\graphics\windowing\windowserver\test -ipr F \sf\os\graphics\windowing\windowserver\nga\samplegraphicsurfacedrawer diff -r 7f25ef56562d -r 29ddb8a72f0e windowing/windowserver/group/openwfc/graphics_wserv.mrp --- a/windowing/windowserver/group/openwfc/graphics_wserv.mrp Wed Jun 23 19:41:15 2010 +0300 +++ b/windowing/windowserver/group/openwfc/graphics_wserv.mrp Tue Jul 06 15:45:57 2010 +0300 @@ -7,26 +7,7 @@ ipr D -ipr T \sf\os\graphics\windowing\windowserver\tanim -ipr T \sf\os\graphics\windowing\windowserver\tauto -ipr T \sf\os\graphics\windowing\windowserver\tcapability -ipr T \sf\os\graphics\windowing\windowserver\TClick -ipr T \sf\os\graphics\windowing\windowserver\tcrx ipr T \sf\os\graphics\windowing\windowserver\test -ipr T \sf\os\graphics\windowing\windowserver\tframerate -ipr T \sf\os\graphics\windowing\windowserver\tlib -ipr T \sf\os\graphics\windowing\windowserver\tlisten -ipr T \sf\os\graphics\windowing\windowserver\tman -ipr T \sf\os\graphics\windowing\windowserver\tredir -ipr T \sf\os\graphics\windowing\windowserver\ttime -ipr T \sf\os\graphics\windowing\windowserver\twsgraphic -ipr T \sf\os\graphics\windowing\windowserver\tcontaindrawer -ipr F \sf\os\graphics\windowing\windowserver\nga\samplegraphicsurfacedrawer -ipr T \sf\os\graphics\windowing\windowserver\t_integ -ipr T \sf\os\graphics\windowing\windowserver\tbufferdrawer -ipr T \sf\os\graphics\windowing\windowserver\tcsc -ipr T \sf\os\graphics\windowing\windowserver\tdynamicres -ipr T \sf\os\graphics\windowing\windowserver\tvalidationrenderstages diff -r 7f25ef56562d -r 29ddb8a72f0e windowing/windowserver/group/samplegraphicsurface.MMP --- a/windowing/windowserver/group/samplegraphicsurface.MMP Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,46 +0,0 @@ -// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// samplegraphicsurface.dll Sample CWsGraphics demonstrating PlaceSurface -// -// - -/** - @file -*/ - -TARGET samplegraphicsurface.dll -CAPABILITY All -Tcb -TARGETTYPE dll - -MACRO SYMBIAN_GRAPHICS_GCE - -UID 0x1000008D 0x10285C49 -VENDORID 0x70000001 - -DEFFILE samplegraphicsurface.DEF - -SOURCEPATH ../nga/samplegraphicsurfacedrawer - - -USERINCLUDE ../inc -OS_LAYER_SYSTEMINCLUDE_SYMBIAN - -LIBRARY euser.lib -LIBRARY wsgraphicdrawer.lib -LIBRARY fbscli.lib ws32.lib estor.lib -UNPAGED - -SOURCE graphicsurface.cpp - -SMPSAFE diff -r 7f25ef56562d -r 29ddb8a72f0e windowing/windowserver/group/samplegraphicsurfacedrawer.MMP --- a/windowing/windowserver/group/samplegraphicsurfacedrawer.MMP Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,47 +0,0 @@ -// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// samplegraphicsurfacedrawer.DLL sample Surface-based Graphics ECOM plugins for Window Server -// -// - -/** - @file -*/ - -TARGET 10285c4a.dll //samplegraphicsurfacedrawer.DLL -TARGETTYPE PLUGIN //ECOMIIC -UID 0x10009D8D 0x10285C4A -CAPABILITY All -Tcb -VENDORID 0x70000001 - -MACRO SYMBIAN_GRAPHICS_GCE - -#ifndef USERINCLUDE_WSGRAPHICDRAWERINTERFACE_H -macro USERINCLUDE_WSGRAPHICDRAWERINTERFACE_H -#endif - -OS_LAYER_SYSTEMINCLUDE_SYMBIAN - -LIBRARY ecom.lib estor.lib fbscli.lib euser.lib -LIBRARY wsgraphicdrawer.lib ws32.lib w32stdgraphic.lib - -UNPAGED - -SOURCEPATH ../nga/samplegraphicsurfacedrawer - -RESOURCE 10285C4A.RSS - -SOURCE proxy.cpp graphicsurfacedrawer.CPP - -SMPSAFE diff -r 7f25ef56562d -r 29ddb8a72f0e windowing/windowserver/group/samplegraphictestsurfacemulti.MMP --- a/windowing/windowserver/group/samplegraphictestsurfacemulti.MMP Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,46 +0,0 @@ -// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// samplegraphictestsurfacemulti.dll Sample test crp for surfaces -// -// - -/** - @file -*/ - -TARGET samplegraphictestsurfacemulti.dll -CAPABILITY All -Tcb -TARGETTYPE dll - -UID 0x1000008D 0x10285E99 -VENDORID 0x70000001 - -MACRO SYMBIAN_GRAPHICS_GCE - -DEFFILE samplegraphictestsurfacemulti.DEF - -SOURCEPATH ../tgce/samplegraphictestsurfacemultidrawer - -USERINCLUDE ../nga/samplegraphicsurfacedrawer ../inc - -OS_LAYER_SYSTEMINCLUDE_SYMBIAN - -LIBRARY euser.lib -LIBRARY wsgraphicdrawer.lib -LIBRARY samplegraphicsurface.lib -LIBRARY fbscli.lib ws32.lib estor.lib -UNPAGED - -SOURCE graphictestsurfacemulti.cpp -SMPSAFE diff -r 7f25ef56562d -r 29ddb8a72f0e windowing/windowserver/group/samplegraphictestsurfacemultidrawer.MMP --- a/windowing/windowserver/group/samplegraphictestsurfacemultidrawer.MMP Wed Jun 23 19:41:15 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,50 +0,0 @@ -// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// 10285E96.dll -// -// - -/** - @file -*/ - -TARGET 10285e96.dll //10285e96.dll -TARGETTYPE PLUGIN //ECOMIIC -UID 0x10009D8D 0x10285E96 -CAPABILITY All -Tcb -VENDORID 0x70000001 - -MACRO SYMBIAN_GRAPHICS_GCE - -#ifndef USERINCLUDE_WSGRAPHICDRAWERINTERFACE_H -macro USERINCLUDE_WSGRAPHICDRAWERINTERFACE_H -#endif - -USERINCLUDE ../tgce/samplegraphictestsurfacemultidrawer -USERINCLUDE ../nga/samplegraphicsurfacedrawer ../inc -MW_LAYER_SYSTEMINCLUDE_SYMBIAN -OS_LAYER_SYSTEMINCLUDE_SYMBIAN - -LIBRARY ecom.lib estor.lib fbscli.lib euser.lib -LIBRARY wsgraphicdrawer.lib ws32.lib w32stdgraphic.lib - -UNPAGED - -SOURCEPATH ../tgce/samplegraphictestsurfacemultidrawer -RESOURCE 10285E96.RSS -SOURCE proxy.cpp graphictestsurfacemultidrawer.CPP -SOURCEPATH ../nga/samplegraphicsurfacedrawer -SOURCE graphicsurfacedrawer.CPP - -SMPSAFE diff -r 7f25ef56562d -r 29ddb8a72f0e windowing/windowserver/minigui/group/minigui.oby --- a/windowing/windowserver/minigui/group/minigui.oby Wed Jun 23 19:41:15 2010 +0300 +++ b/windowing/windowserver/minigui/group/minigui.oby Tue Jul 06 15:45:57 2010 +0300 @@ -1,26 +1,43 @@ -/* -* Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* This OBY File is used to build miniGUI ROM Images. -*/ - #ifndef __MINIGUI_OBY__ #define __MINIGUI_OBY__ +// Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// This OBY File is used to build Mini-Gui ROM Images. +// +// Use the following buildrom command line, or similar: +// buildrom -orombld.img -DUSE_SDIO_SD_MMC -DWITH_TVOUT -DUSE_24UBPP_DISPLAY_VARIANT_TV -D_INTERNAL_MMC -DUSE_DATA_PAGING h4hrp minigui pagedrom platsec +// Note there is no need to specify -D_NAND2 + define OBEYFILE minigui define ROMDATE ##TODAY## +// We used to define _NAND2 on the commandline to buildrom. However, it +// does not make rombuild create a rofs image. Instead it needs to be +// specified in the oby file itself. +#define _NAND2 + +// Undefine things in global System Include that stops the NCP rom from working. +#undef USE_CUSTOM_MMC_PARTITION +#undef SYMBIAN_EXCLUDE_SCDV +#undef SYMBIAN_GRAPHICS_USE_GCE +#undef SYMBIAN_GRAPHICS_ADAPTATION +#undef SGA_SW_NO_GRAPHICSRESOURCE +#undef SYMBIAN_EXCLUDE_KEYMAP + + + #define NO_METROTRK_APP // don't want metrotrk application #define HAS_ETHERNET // include etherDrv, ether802, DHCP #define SYMBIAN_EXCLUDE_FAX @@ -28,14 +45,15 @@ #define SYMBIAN_EXCLUDE_OBEX #ifdef SYMBIAN_SYSTEM_STATE_MANAGEMENT -# define _SSMSTARTUPMODE 8 //for ssma boot up. +#define _SSMSTARTUPMODE 8 //for ssma boot up. #else -# define _STARTUPMODE8 // for sysstart.iby +#define _STARTUPMODE8 // for sysstart.iby #endif // Various workarounds to avoid dependencies on UIKON -#define __TLS_IBY__ // exclude TLS +#define __TLS_IBY__ // exclude TLS +#define __TLSPROVIDER_IBY__ // exclude TLSPROVIDER #define __OBEXPROTOCOL_IBY__ // exclude obex.dll etc #define __WLANEAPMETHODS_IBY__ // exclude eap_tls.msy & friends // @@ -43,47 +61,45 @@ #ifndef SYMBIAN_BASE_USE_GCE #define SYMBIAN_BASE_USE_GCE #endif - #ifndef SYMBIAN_GRAPHICS_USE_GCE #define SYMBIAN_GRAPHICS_USE_GCE #endif - #include /* ROM header definitions */ #include /* The lowest-level of the operating system */ #ifdef SYMBIAN_SYSTEM_STATE_MANAGEMENT -# include /*System State Management Architecture*/ -# include /*System State Management Plugins*/ + +#include /*System State Management Architecture*/ +#include /*System State Management Plugins*/ //Include SSM optional components to enable teams to build a plain textshell rom (on the lines of DEF128306), //following removal of h4_textshell_rom.oby. -# include -# include -# include -# include +#include +#include +#include #else -# include -# include +#include +#include #endif // SYMBIAN_SYSTEM_STATE_MANAGEMENT #include + #include + #include -file=ABI_DIR\BUILD_DIR\abclient.dll sys\bin\abclient.dll + file=ABI_DIR\BUILD_DIR\abclient.dll sys\bin\abclient.dll + #include + #include #include #include -#include #include - -// NGA stack -// #include -#include #include #include +#include #include #include #include @@ -91,33 +107,13 @@ #include data=DATAZ_\wsini_minigui.ini \system\data\wsini.ini -// include enough multimedia components to keep cone happy. includes symbian optional, reference and replacable components -#include -#include -#include -#include -#include -#include +#include -#ifdef SYMBIAN_MULTIMEDIA_A3FDEVSOUND -# include -# include -# include -# include -# include -# include -# include -#endif // SYMBIAN_MULTIMEDIA_A3FDEVSOUND + #include -#include -#include -#include -#include - #include /* needed for mmfcontrollerframework.dll */ -#include /* needed for mediaclientutils.dll */ #include #include #include // needed by commsdat @@ -139,44 +135,51 @@ /* Feature Management run-time */ #ifdef SYMBIAN_FEATURE_MANAGER + // Include both old and new components when Feature Manager enabled -# include -# include +#include +#include #else + // Include only the original Feature Registry otherwise -# include -# ifndef ROM_FEATURE_MANAGEMENT +#include +#ifndef ROM_FEATURE_MANAGEMENT /* Provide a default configuration file for the feature registry */ - data=EPOCROOT##epoc32\data\config\featreg_default.cfg private\102744CA\featreg.cfg -# endif +data=EPOCROOT##epoc32\data\config\featreg_default.cfg private\102744CA\featreg.cfg +#endif #endif -// This upward dependency need to be cleaned up - -#include /* Application architecture DLLs */ -#include /* Mime recognition */ - -// Stop buildrom complaining. Existing textshell.oby seems to be broken too. - -#include -#include -#include -#include - -#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK -#include -#include -#include -#endif - +// The following section are all indirect dependencies arising from TEF testexecute depending +// on apparc +#include #include file=ABI_DIR\BUILD_DIR\Http.dll System\Libs\Http.dll file=ABI_DIR\BUILD_DIR\httputils.dll System\Libs\httputils.dll #include #include #include +#include +#include +#include +#include +#include +#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK +#include +#include +#include +#endif +#ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK +#include +#include +#include +#endif +#include +#include /* Application architecture DLLs */ +#include /* Mime recognition */ +// This is the end of the indirect dependencies arising from TEF testexecute +// depending on apparc -file=ABI_DIR\BUILD_DIR\eikbackupsrv.dll System\Libs\eikbackupsrv.dll +#include // TEF #endif /* __MINIGUI_OBY__ */ diff -r 7f25ef56562d -r 29ddb8a72f0e windowing/windowserver/test/scripts/wstest_config.cmd --- a/windowing/windowserver/test/scripts/wstest_config.cmd Wed Jun 23 19:41:15 2010 +0300 +++ b/windowing/windowserver/test/scripts/wstest_config.cmd Tue Jul 06 15:45:57 2010 +0300 @@ -1,16 +1,16 @@ @echo off -rem Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). +rem Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). rem All rights reserved. rem This component and the accompanying materials are made available rem under the terms of "Eclipse Public License v1.0" rem which accompanies this distribution, and is available rem at the URL "http://www.eclipse.org/legal/epl-v10.html". -rem +rem rem Initial Contributors: rem Nokia Corporation - initial contribution. -rem +rem rem Contributors: -rem +rem rem Description: rem @internalComponent - Internal Symbian rem diff -r 7f25ef56562d -r 29ddb8a72f0e windowing/windowserver/test/t_capability/group/t_wservcapcheck_helium.pkg --- a/windowing/windowserver/test/t_capability/group/t_wservcapcheck_helium.pkg Wed Jun 23 19:41:15 2010 +0300 +++ b/windowing/windowserver/test/t_capability/group/t_wservcapcheck_helium.pkg Tue Jul 06 15:45:57 2010 +0300 @@ -33,5 +33,5 @@ ;*Files To Copy... -"..\scripts\graphics-wserv-capcheck-tsizemode.script"-"c:\graphics\graphics-wserv-capcheck-tsizemode.script" +"\epoc32\data\z\graphics\graphics-wserv-capcheck-tsizemode.script"-"c:\graphics\graphics-wserv-capcheck-tsizemode.script" diff -r 7f25ef56562d -r 29ddb8a72f0e windowing/windowserver/test/t_genericplugin/group/t_wservgenericplugin_helium.pkg --- a/windowing/windowserver/test/t_genericplugin/group/t_wservgenericplugin_helium.pkg Wed Jun 23 19:41:15 2010 +0300 +++ b/windowing/windowserver/test/t_genericplugin/group/t_wservgenericplugin_helium.pkg Tue Jul 06 15:45:57 2010 +0300 @@ -33,6 +33,5 @@ ;*Files To Copy... -"..\scripts\graphics-wserv-genericplugin-load-nga.script"-"c:\wstest\genericplugin\graphics-wserv-genericplugin-load-nga.script" -;"..\scripts\graphics-wserv-genericplugin-load-nonnga.script"-"c:\wstest\genericplugin\graphics-wserv-genericplugin-load-nonnga.script" +"\epoc32\data\z\wstest\genericplugin\graphics-wserv-genericplugin-load-nga.script"-"c:\wstest\genericplugin\graphics-wserv-genericplugin-load-nga.script" diff -r 7f25ef56562d -r 29ddb8a72f0e windowing/windowserver/test/t_integ/group/bld.inf --- a/windowing/windowserver/test/t_integ/group/bld.inf Wed Jun 23 19:41:15 2010 +0300 +++ b/windowing/windowserver/test/t_integ/group/bld.inf Tue Jul 06 15:45:57 2010 +0300 @@ -100,15 +100,20 @@ ../data/ini/wsini_wsgcesurfwin_emulator_color16ma_changetracking.ini /epoc32/release/winscw/urel/z/graphics/wsini_wsgcesurfwin_emulator_color16ma_changetracking.ini PRJ_TESTMMPFILES -//Requires Techview - t_app1.mmp -//Requires Techview - t_dsaapp.mmp +// The following applications inherently require middleware. These cannot be +// compiled in a NCP baseline release because such a release omits mw and app. +// The plan is to re-write to be QT-dependent and then move to the app level +// package "graphicsuis" +// t_app1.mmp +// t_dsaapp.mmp +// t_fpsapp.mmp +// t_pseudoapp.mmp +// t_pseudoapp1.mmp + t_inidata.mmp t_perfdata.mmp -//Requires Techview - t_pseudoapp.mmp -//Requires Techview - t_pseudoapp1.mmp -//Requires Techview - t_fpsapp.mmp -//Requires Techview - t_pseudoappengine.mmp -//Requires Techview - t_pseudoapppopupwindow.mmp +t_pseudoappengine.mmp +t_pseudoapppopupwindow.mmp t_testsurfacerasterizer.mmp t_winutils.mmp t_wservintegserver.mmp diff -r 7f25ef56562d -r 29ddb8a72f0e windowing/windowserver/test/t_integ/group/t_winutils.mmp --- a/windowing/windowserver/test/t_integ/group/t_winutils.mmp Wed Jun 23 19:41:15 2010 +0300 +++ b/windowing/windowserver/test/t_integ/group/t_winutils.mmp Tue Jul 06 15:45:57 2010 +0300 @@ -34,7 +34,7 @@ USERINCLUDE ../inc -MW_LAYER_SYSTEMINCLUDE_SYMBIAN +OS_LAYER_SYSTEMINCLUDE LIBRARY euser.lib LIBRARY bitgdi.lib diff -r 7f25ef56562d -r 29ddb8a72f0e windowing/windowserver/test/t_integ/group/t_wservinteg_helium.pkg --- a/windowing/windowserver/test/t_integ/group/t_wservinteg_helium.pkg Wed Jun 23 19:41:15 2010 +0300 +++ b/windowing/windowserver/test/t_integ/group/t_wservinteg_helium.pkg Tue Jul 06 15:45:57 2010 +0300 @@ -33,7 +33,6 @@ ;*Files To Copy... -"\epoc32\data\z\graphics\setup-graphics-wserv-integ.script"-"c:\graphics\setup-graphics-wserv-integ.script" "\epoc32\data\z\graphics\graphics-wserv-integ-basic.script"-"c:\graphics\graphics-wserv-integ-basic.script" "\epoc32\data\z\graphics\graphics-wserv-integ-surface1.script"-"c:\graphics\graphics-wserv-integ-surface1.script" "\epoc32\data\z\graphics\graphics-wserv-integ-surface2.script"-"c:\graphics\graphics-wserv-integ-surface2.script" diff -r 7f25ef56562d -r 29ddb8a72f0e windowing/windowserver/test/t_integ/group/t_wservintegserver.mmp --- a/windowing/windowserver/test/t_integ/group/t_wservintegserver.mmp Wed Jun 23 19:41:15 2010 +0300 +++ b/windowing/windowserver/test/t_integ/group/t_wservintegserver.mmp Tue Jul 06 15:45:57 2010 +0300 @@ -38,9 +38,7 @@ USERINCLUDE ../inc -APP_LAYER_SYSTEMINCLUDE_SYMBIAN -MW_LAYER_SYSTEMINCLUDE_SYMBIAN -OS_LAYER_SYSTEMINCLUDE_SYMBIAN +OS_LAYER_SYSTEMINCLUDE LIBRARY euser.lib LIBRARY testexecuteutils.lib diff -r 7f25ef56562d -r 29ddb8a72f0e windowing/windowserver/test/t_integ/inc/t_winutils.h --- a/windowing/windowserver/test/t_integ/inc/t_winutils.h Wed Jun 23 19:41:15 2010 +0300 +++ b/windowing/windowserver/test/t_integ/inc/t_winutils.h Tue Jul 06 15:45:57 2010 +0300 @@ -1,4 +1,4 @@ -// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). // All rights reserved. // This component and the accompanying materials are made available // under the terms of "Eclipse Public License v1.0" @@ -22,7 +22,11 @@ #ifndef __T_WINUTILS_H__ #define __T_WINUTILS_H__ -#include //Displaymode +#include +#include +#include +#include +#include #include class CTestBitmap : public CBase diff -r 7f25ef56562d -r 29ddb8a72f0e windowing/windowserver/test/t_integ/resource/t_app1.rss --- a/windowing/windowserver/test/t_integ/resource/t_app1.rss Wed Jun 23 19:41:15 2010 +0300 +++ b/windowing/windowserver/test/t_integ/resource/t_app1.rss Tue Jul 06 15:45:57 2010 +0300 @@ -22,7 +22,7 @@ NAME SMPL -#include +#include #include #include #include "t_app1.hrh" diff -r 7f25ef56562d -r 29ddb8a72f0e windowing/windowserver/test/t_integ/resource/t_dsaapp.rss --- a/windowing/windowserver/test/t_integ/resource/t_dsaapp.rss Wed Jun 23 19:41:15 2010 +0300 +++ b/windowing/windowserver/test/t_integ/resource/t_dsaapp.rss Tue Jul 06 15:45:57 2010 +0300 @@ -22,7 +22,7 @@ NAME SMPL -#include +#include #include #include #include "t_dsaapp.hrh" diff -r 7f25ef56562d -r 29ddb8a72f0e windowing/windowserver/test/t_integ/resource/t_fpsapp.rss --- a/windowing/windowserver/test/t_integ/resource/t_fpsapp.rss Wed Jun 23 19:41:15 2010 +0300 +++ b/windowing/windowserver/test/t_integ/resource/t_fpsapp.rss Tue Jul 06 15:45:57 2010 +0300 @@ -22,7 +22,7 @@ NAME SMPL -#include +#include #include #include diff -r 7f25ef56562d -r 29ddb8a72f0e windowing/windowserver/test/t_integ/resource/t_pseudoapp.rss --- a/windowing/windowserver/test/t_integ/resource/t_pseudoapp.rss Wed Jun 23 19:41:15 2010 +0300 +++ b/windowing/windowserver/test/t_integ/resource/t_pseudoapp.rss Tue Jul 06 15:45:57 2010 +0300 @@ -22,7 +22,7 @@ NAME SMPL -#include +#include #include #include diff -r 7f25ef56562d -r 29ddb8a72f0e windowing/windowserver/test/t_integ/resource/t_pseudoapp1.rss --- a/windowing/windowserver/test/t_integ/resource/t_pseudoapp1.rss Wed Jun 23 19:41:15 2010 +0300 +++ b/windowing/windowserver/test/t_integ/resource/t_pseudoapp1.rss Tue Jul 06 15:45:57 2010 +0300 @@ -22,7 +22,7 @@ NAME SMPL -#include +#include #include #include diff -r 7f25ef56562d -r 29ddb8a72f0e windowing/windowserver/test/t_integ/src/t_app1ui.cpp --- a/windowing/windowserver/test/t_integ/src/t_app1ui.cpp Wed Jun 23 19:41:15 2010 +0300 +++ b/windowing/windowserver/test/t_integ/src/t_app1ui.cpp Tue Jul 06 15:45:57 2010 +0300 @@ -21,7 +21,7 @@ #include #include -#include +#include #include #include "t_app1ui.h" #include "t_app1view.h" diff -r 7f25ef56562d -r 29ddb8a72f0e windowing/windowserver/test/t_integ/src/t_app1view.cpp --- a/windowing/windowserver/test/t_integ/src/t_app1view.cpp Wed Jun 23 19:41:15 2010 +0300 +++ b/windowing/windowserver/test/t_integ/src/t_app1view.cpp Tue Jul 06 15:45:57 2010 +0300 @@ -20,7 +20,7 @@ */ #include -#include +#include #include #include "t_app1view.h" #include "t_app1eng.h" diff -r 7f25ef56562d -r 29ddb8a72f0e windowing/windowserver/test/t_integ/src/t_pseudoappui.cpp --- a/windowing/windowserver/test/t_integ/src/t_pseudoappui.cpp Wed Jun 23 19:41:15 2010 +0300 +++ b/windowing/windowserver/test/t_integ/src/t_pseudoappui.cpp Tue Jul 06 15:45:57 2010 +0300 @@ -21,7 +21,7 @@ #include #include -#include +#include #include #include "t_pseudoappeng.h" diff -r 7f25ef56562d -r 29ddb8a72f0e windowing/windowserver/test/t_ratelimiter/group/t_ratelimiter_helium.pkg --- a/windowing/windowserver/test/t_ratelimiter/group/t_ratelimiter_helium.pkg Wed Jun 23 19:41:15 2010 +0300 +++ b/windowing/windowserver/test/t_ratelimiter/group/t_ratelimiter_helium.pkg Tue Jul 06 15:45:57 2010 +0300 @@ -33,5 +33,5 @@ ;*Files To Copy... -"..\scripts\graphics-wserv-ratelimiter-test.script"-"c:\wstest\ratelimiter\graphics-wserv-ratelimiter-test.script" +"\epoc32\data\z\wstest\ratelimiter\graphics-wserv-ratelimiter-test.script"-"c:\wstest\ratelimiter\graphics-wserv-ratelimiter-test.script" diff -r 7f25ef56562d -r 29ddb8a72f0e windowing/windowserver/test/t_stress/group/twservstresstest_helium.pkg --- a/windowing/windowserver/test/t_stress/group/twservstresstest_helium.pkg Wed Jun 23 19:41:15 2010 +0300 +++ b/windowing/windowserver/test/t_stress/group/twservstresstest_helium.pkg Tue Jul 06 15:45:57 2010 +0300 @@ -34,6 +34,5 @@ ;*Files To Copy... ;// script files -"..\scripts\wservstresstest.script"-"c:\wstest\wservstresstest.script" -"..\scripts\wservstresslog.script"-"c:\wstest\wservstresslog.script" +"\epoc32\data\z\wstest\wservstresstest.script"-"c:\wstest\wservstresstest.script" diff -r 7f25ef56562d -r 29ddb8a72f0e windowing/windowserver/test/t_wdp/group/t_wdp_helium.pkg --- a/windowing/windowserver/test/t_wdp/group/t_wdp_helium.pkg Wed Jun 23 19:41:15 2010 +0300 +++ b/windowing/windowserver/test/t_wdp/group/t_wdp_helium.pkg Tue Jul 06 15:45:57 2010 +0300 @@ -33,5 +33,5 @@ ;*Files To Copy... -"..\scripts\graphics-wserv-wdp-test.script"-"c:\wstest\twdp\graphics-wserv-wdp-test.script" +"\epoc32\data\z\wstest\twdp\graphics-wserv-wdp-test.script"-"c:\wstest\twdp\graphics-wserv-wdp-test.script" diff -r 7f25ef56562d -r 29ddb8a72f0e windowing/windowserver/test/tauto/TWINDOW.CPP --- a/windowing/windowserver/test/tauto/TWINDOW.CPP Wed Jun 23 19:41:15 2010 +0300 +++ b/windowing/windowserver/test/tauto/TWINDOW.CPP Tue Jul 06 15:45:57 2010 +0300 @@ -2367,18 +2367,9 @@ testSize = window.Size(); TEST((testSize.iWidth==windowSize.iWidth) && (testSize.iHeight==windowSize.iHeight)); - testSize = window.SizeForEgl(); - TEST((testSize.iWidth==windowSize.iWidth) && (testSize.iHeight==windowSize.iHeight)); - - err = window.FixNativeOrientation(); - TEST(err==KErrNotSupported); - testSize = window.Size(); TEST((testSize.iWidth==windowSize.iWidth) && (testSize.iHeight==windowSize.iHeight)); - testSize = window.SizeForEgl(); - TEST((testSize.iWidth==windowSize.iWidth) && (testSize.iHeight==windowSize.iHeight)); - window.Close(); group.Close(); } diff -r 7f25ef56562d -r 29ddb8a72f0e windowing/windowserver/test/tdynamicres/group/tdynamicresclassic.mmp --- a/windowing/windowserver/test/tdynamicres/group/tdynamicresclassic.mmp Wed Jun 23 19:41:15 2010 +0300 +++ b/windowing/windowserver/test/tdynamicres/group/tdynamicresclassic.mmp Tue Jul 06 15:45:57 2010 +0300 @@ -1,4 +1,4 @@ -// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). // All rights reserved. // This component and the accompanying materials are made available // under the terms of "Eclipse Public License v1.0" @@ -29,10 +29,7 @@ USERINCLUDE ../inc -MW_LAYER_SYSTEMINCLUDE_SYMBIAN -OS_LAYER_SYSTEMINCLUDE_SYMBIAN -OS_LAYER_LIBC_SYSTEMINCLUDE - +OS_LAYER_SYSTEMINCLUDE STATICLIBRARY tefunit.lib LIBRARY euser.lib diff -r 7f25ef56562d -r 29ddb8a72f0e windowing/windowserver/test/tdynamicres/group/wstestdynamicres_helium.pkg --- a/windowing/windowserver/test/tdynamicres/group/wstestdynamicres_helium.pkg Wed Jun 23 19:41:15 2010 +0300 +++ b/windowing/windowserver/test/tdynamicres/group/wstestdynamicres_helium.pkg Tue Jul 06 15:45:57 2010 +0300 @@ -36,11 +36,11 @@ ;REM Window Server Dynamic Resolution Test Scripts [no plugins] ;//Please execute only the tests appropriate to your hardware capabilities. -"..\scripts\wsdynamicresclassic.script"-"c:wstest\dynamicres\wsdynamicresclassic.script" +"\epoc32\data\z\wstest\dynamicres\wsdynamicresclassic.script"-"c:\wstest\dynamicres\wsdynamicresclassic.script" -"..\scripts\wsdynamicresbasic_anisotropic_scaling.script"-"c:wstest\dynamicres\wsdynamicresbasic_anisotropic_scaling.script" -"..\scripts\wsdynamicresbasic_integer_scaling.script"-"c:wstest\dynamicres\wsdynamicresbasic_integer_scaling.script" -"..\scripts\wsdynamicresbasic_isotropic_scaling.script"-"c:wstest\dynamicres\wsdynamicresbasic_isotropic_scaling.script" -"..\scripts\wsdynamicresbasic_no_scaling.script"-"c:wstest\dynamicres\wsdynamicresbasic_no_scaling.script" -"..\scripts\wsdynamicresbasic_openvg_isotropic.script"-"c:wstest\dynamicres\wsdynamicresbasic_openvg_isotropic.script" +"\epoc32\data\z\wstest\dynamicres\wsdynamicresbasic_anisotropic_scaling.script"-"c:\wstest\dynamicres\wsdynamicresbasic_anisotropic_scaling.script" +"\epoc32\data\z\wstest\dynamicres\wsdynamicresbasic_integer_scaling.script"-"c:\wstest\dynamicres\wsdynamicresbasic_integer_scaling.script" +"\epoc32\data\z\wstest\dynamicres\wsdynamicresbasic_isotropic_scaling.script"-"c:\wstest\dynamicres\wsdynamicresbasic_isotropic_scaling.script" +"\epoc32\data\z\wstest\dynamicres\wsdynamicresbasic_no_scaling.script"-"c:\wstest\dynamicres\wsdynamicresbasic_no_scaling.script" +"\epoc32\data\z\wstest\dynamicres\wsdynamicresbasic_openvg_isotropic.script"-"c:\wstest\dynamicres\wsdynamicresbasic_openvg_isotropic.script" diff -r 7f25ef56562d -r 29ddb8a72f0e windowing/windowserver/wins_switching/generate_stubs.pl --- a/windowing/windowserver/wins_switching/generate_stubs.pl Wed Jun 23 19:41:15 2010 +0300 +++ b/windowing/windowserver/wins_switching/generate_stubs.pl Tue Jul 06 15:45:57 2010 +0300 @@ -1,6 +1,6 @@ #!/bin/perl -w -# Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). +# Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies). # All rights reserved. # This component and the accompanying materials are made available # under the terms of "Eclipse Public License v1.0" @@ -19,7 +19,17 @@ # use strict; -my $COPYRIGHT = "Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies)."; + +my $COPYRIGHT = <<"EndCopyrightAndLicense"; +/* + * Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies). + * All rights reserved. + * This component and the accompanying materials are made available + * under the terms of "Eclipse Public License v1.0" + * which accompanies this distribution, and is available + * at the URL "http://www.eclipse.org/legal/epl-v10.html". + */ +EndCopyrightAndLicense my $SOURCE_DEF_SIZE = 0; my $WS32_DEF = "../BWINS/"; @@ -99,9 +109,8 @@ sub printHeaderStart(\$) { my ($fh) = @_; - print $fh "// Generated from \"$WS32_DEF\" file size: $SOURCE_DEF_SIZE\n" . - "// $COPYRIGHT\n" . - "\n" . + print $fh "$COPYRIGHT\n" . + "/* Generated from \"$WS32_DEF\" file size: $SOURCE_DEF_SIZE */\n\n" . "extern \"C\" {\n" . "void common_dispatch();\n" . "\n"; diff -r 7f25ef56562d -r 29ddb8a72f0e windowing/windowserver/wins_switching/remotegc_stubs.h --- a/windowing/windowserver/wins_switching/remotegc_stubs.h Wed Jun 23 19:41:15 2010 +0300 +++ b/windowing/windowserver/wins_switching/remotegc_stubs.h Tue Jul 06 15:45:57 2010 +0300 @@ -1,19 +1,13 @@ -// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// Generated from "../BWINS/remotegcu.def" file size: 2452 -// -// +/* + * Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies). + * All rights reserved. + * This component and the accompanying materials are made available + * under the terms of "Eclipse Public License v1.0" + * which accompanies this distribution, and is available + * at the URL "http://www.eclipse.org/legal/epl-v10.html". + */ + +/* Generated from "../BWINS/remotegcu.def" file size: 2452 */ extern "C" { void common_dispatch(); diff -r 7f25ef56562d -r 29ddb8a72f0e windowing/windowserver/wins_switching/wsgraphicdrawer_stubs.h --- a/windowing/windowserver/wins_switching/wsgraphicdrawer_stubs.h Wed Jun 23 19:41:15 2010 +0300 +++ b/windowing/windowserver/wins_switching/wsgraphicdrawer_stubs.h Tue Jul 06 15:45:57 2010 +0300 @@ -1,19 +1,13 @@ -// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// Generated from "../BWINS/graphicdraweru.def" file size: 11211 -// -// +/* + * Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies). + * All rights reserved. + * This component and the accompanying materials are made available + * under the terms of "Eclipse Public License v1.0" + * which accompanies this distribution, and is available + * at the URL "http://www.eclipse.org/legal/epl-v10.html". + */ + +/* Generated from "../BWINS/graphicdraweru.def" file size: 11100 */ extern "C" { void common_dispatch(); @@ -562,7 +556,7 @@ __declspec(naked) void call_vector_61 () { - // ; class CWsGraphicDrawerArray::XRollBackBase * CWsGraphicDrawerArray::AddTLC(class CWsGraphicDrawer *) + // ; struct CWsGraphicDrawerArray::XRollBackBase * CWsGraphicDrawerArray::AddTLC(class CWsGraphicDrawer *) _asm mov eax, 61 _asm jmp common_dispatch } @@ -571,7 +565,7 @@ __declspec(naked) void call_vector_62 () { - // ; void CWsGraphicDrawerArray::CommitP(class CWsGraphicDrawerArray::XRollBackBase *) + // ; void CWsGraphicDrawerArray::CommitP(struct CWsGraphicDrawerArray::XRollBackBase *) _asm mov eax, 62 _asm jmp common_dispatch } @@ -580,7 +574,7 @@ __declspec(naked) void call_vector_63 () { - // ; class CWsGraphicDrawerArray::XRollBackBase * CWsGraphicDrawerArray::RemoveTLC(struct TGraphicDrawerId const &) + // ; struct CWsGraphicDrawerArray::XRollBackBase * CWsGraphicDrawerArray::RemoveTLC(struct TGraphicDrawerId const &) _asm mov eax, 63 _asm jmp common_dispatch } @@ -598,7 +592,7 @@ __declspec(naked) void call_vector_65 () { - // ; class CWsGraphicDrawerArray::XRollBackBase * CWsGraphicDrawerArray::SwapTLC(class CWsGraphicDrawer *) + // ; struct CWsGraphicDrawerArray::XRollBackBase * CWsGraphicDrawerArray::SwapTLC(class CWsGraphicDrawer *) _asm mov eax, 65 _asm jmp common_dispatch }